Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pe/docs/RuleChainMetaData.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ A JSON value representing the rule chain metadata.
| **nodes** | **List\<RuleNode\>** | List of rule node JSON objects | |
| **connections** | **List\<NodeConnectionInfo\>** | List of JSON objects that represent connections between rule nodes | |
| **ruleChainConnections** | **List\<RuleChainConnectionInfo\>** | List of JSON objects that represent connections between rule nodes and other rule chains. | |
| **notes** | **List\<RuleChainNote\>** | List of sticky notes placed on the rule chain canvas | [optional] |



Expand Down
32 changes: 32 additions & 0 deletions pe/docs/RuleChainNote.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@

# RuleChainNote

`org.thingsboard.client.model.RuleChainNote`

## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
| **id** | **String** | Unique identifier of the note on the canvas | [optional] |
| **x** | **Integer** | Horizontal position of the note on the canvas, in pixels | [optional] |
| **y** | **Integer** | Vertical position of the note on the canvas, in pixels | [optional] |
| **width** | **Integer** | Width of the note, in pixels | [optional] |
| **height** | **Integer** | Height of the note, in pixels | [optional] |
| **content** | **String** | Markdown or HTML content of the note | [optional] |
| **backgroundColor** | **String** | Background color of the note in CSS hex format, e.g. '#FFF9C4' | [optional] |
| **borderColor** | **String** | Border color of the note in CSS hex format, e.g. '#E6C800' | [optional] |
| **borderWidth** | **Integer** | Border width of the note in pixels | [optional] |
| **applyDefaultMarkdownStyle** | **Boolean** | Whether to apply the default markdown stylesheet to the note content | [optional] |
| **markdownCss** | **String** | Custom CSS styles applied to the note content | [optional] |



---

### Conventions

- **Package:** `org.thingsboard.client.model`
- **Getter pattern:** `get<PropertyName>()` — e.g., `getId()`, `getName()`
- **Setter pattern:** `set<PropertyName>(value)` — e.g., `setId(value)`, `setName(value)`
- **Null fields:** Getters return `null` for unset optional fields; they do not throw exceptions

2 changes: 1 addition & 1 deletion pe/docs/ShortCustomerInfo.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
|------------ | ------------- | ------------- | -------------|
| **customerId** | **CustomerId** | JSON object with the customer Id. | [optional] |
| **title** | **String** | Title of the customer. | [optional] |
| **isPublic** | **Boolean** | Indicates special 'Public' customer used to embed dashboards on public websites. | [optional] |
| **_public** | **Boolean** | Indicates special 'Public' customer used to embed dashboards on public websites. | [optional] |



Expand Down
63 changes: 62 additions & 1 deletion pe/spec/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -134196,6 +134196,13 @@
"items": {
"$ref": "#/components/schemas/RuleChainConnectionInfo"
}
},
"notes": {
"type": "array",
"description": "List of sticky notes placed on the rule chain canvas",
"items": {
"$ref": "#/components/schemas/RuleChainNote"
}
}
},
"required": [
Expand All @@ -134206,6 +134213,60 @@
"ruleChainId"
]
},
"RuleChainNote": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Unique identifier of the note on the canvas"
},
"x": {
"type": "integer",
"format": "int32",
"description": "Horizontal position of the note on the canvas, in pixels"
},
"y": {
"type": "integer",
"format": "int32",
"description": "Vertical position of the note on the canvas, in pixels"
},
"width": {
"type": "integer",
"format": "int32",
"description": "Width of the note, in pixels"
},
"height": {
"type": "integer",
"format": "int32",
"description": "Height of the note, in pixels"
},
"content": {
"type": "string",
"description": "Markdown or HTML content of the note"
},
"backgroundColor": {
"type": "string",
"description": "Background color of the note in CSS hex format, e.g. '#FFF9C4'"
},
"borderColor": {
"type": "string",
"description": "Border color of the note in CSS hex format, e.g. '#E6C800'"
},
"borderWidth": {
"type": "integer",
"format": "int32",
"description": "Border width of the note in pixels"
},
"applyDefaultMarkdownStyle": {
"type": "boolean",
"description": "Whether to apply the default markdown stylesheet to the note content"
},
"markdownCss": {
"type": "string",
"description": "Custom CSS styles applied to the note content"
}
}
},
"RuleChainOutputLabelsUsage": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -135242,7 +135303,7 @@
"type": "string",
"description": "Title of the customer."
},
"isPublic": {
"public": {
"type": "boolean",
"description": "Indicates special 'Public' customer used to embed dashboards on public websites."
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
import org.thingsboard.client.model.NodeConnectionInfo;
import org.thingsboard.client.model.RuleChainConnectionInfo;
import org.thingsboard.client.model.RuleChainId;
import org.thingsboard.client.model.RuleChainNote;
import org.thingsboard.client.model.RuleNode;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;

Expand All @@ -49,7 +50,8 @@
RuleChainMetaData.JSON_PROPERTY_FIRST_NODE_INDEX,
RuleChainMetaData.JSON_PROPERTY_NODES,
RuleChainMetaData.JSON_PROPERTY_CONNECTIONS,
RuleChainMetaData.JSON_PROPERTY_RULE_CHAIN_CONNECTIONS
RuleChainMetaData.JSON_PROPERTY_RULE_CHAIN_CONNECTIONS,
RuleChainMetaData.JSON_PROPERTY_NOTES
})
@Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.20.0")
public class RuleChainMetaData {
Expand Down Expand Up @@ -77,6 +79,10 @@ public class RuleChainMetaData {
@Nonnull
private List<RuleChainConnectionInfo> ruleChainConnections = new ArrayList<>();

public static final String JSON_PROPERTY_NOTES = "notes";
@Nullable
private List<RuleChainNote> notes = new ArrayList<>();

public RuleChainMetaData() {
}

Expand Down Expand Up @@ -246,6 +252,38 @@ public void setRuleChainConnections(@Nonnull List<RuleChainConnectionInfo> ruleC
}


public RuleChainMetaData notes(@Nullable List<RuleChainNote> notes) {
this.notes = notes;
return this;
}

public RuleChainMetaData addNotesItem(RuleChainNote notesItem) {
if (this.notes == null) {
this.notes = new ArrayList<>();
}
this.notes.add(notesItem);
return this;
}

/**
* List of sticky notes placed on the rule chain canvas
* @return notes
*/
@Nullable
@JsonProperty(value = JSON_PROPERTY_NOTES, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<RuleChainNote> getNotes() {
return notes;
}


@JsonProperty(value = JSON_PROPERTY_NOTES, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setNotes(@Nullable List<RuleChainNote> notes) {
this.notes = notes;
}


/**
* Return true if this RuleChainMetaData object is equal to o.
*/
Expand All @@ -263,12 +301,13 @@ public boolean equals(Object o) {
Objects.equals(this.firstNodeIndex, ruleChainMetaData.firstNodeIndex) &&
Objects.equals(this.nodes, ruleChainMetaData.nodes) &&
Objects.equals(this.connections, ruleChainMetaData.connections) &&
Objects.equals(this.ruleChainConnections, ruleChainMetaData.ruleChainConnections);
Objects.equals(this.ruleChainConnections, ruleChainMetaData.ruleChainConnections) &&
Objects.equals(this.notes, ruleChainMetaData.notes);
}

@Override
public int hashCode() {
return Objects.hash(ruleChainId, version, firstNodeIndex, nodes, connections, ruleChainConnections);
return Objects.hash(ruleChainId, version, firstNodeIndex, nodes, connections, ruleChainConnections, notes);
}

@Override
Expand All @@ -281,6 +320,7 @@ public String toString() {
sb.append(" nodes: ").append(toIndentedString(nodes)).append("\n");
sb.append(" connections: ").append(toIndentedString(connections)).append("\n");
sb.append(" ruleChainConnections: ").append(toIndentedString(ruleChainConnections)).append("\n");
sb.append(" notes: ").append(toIndentedString(notes)).append("\n");
sb.append("}");
return sb.toString();
}
Expand Down Expand Up @@ -373,6 +413,16 @@ public String toUrlQueryString(String prefix) {
}
}

// add `notes` to the URL query string
if (getNotes() != null) {
for (int i = 0; i < getNotes().size(); i++) {
if (getNotes().get(i) != null) {
joiner.add(getNotes().get(i).toUrlQueryString(String.format(java.util.Locale.ROOT, "%snotes%s%s", prefix, suffix,
"".equals(suffix) ? "" : String.format(java.util.Locale.ROOT, "%s%d%s", containerPrefix, i, containerSuffix))));
}
}
}

return joiner.toString();
}
}
Expand Down
Loading
Loading