Skip to content

Commit 9d71c33

Browse files
author
TeamCity
committed
Update CE OpenAPI spec (from master)
1 parent d9b1560 commit 9d71c33

File tree

7 files changed

+682
-23
lines changed

7 files changed

+682
-23
lines changed

ce/docs/RuleChainMetaData.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ A JSON value representing the rule chain metadata.
1515
| **nodes** | **List\<RuleNode\>** | List of rule node JSON objects | |
1616
| **connections** | **List\<NodeConnectionInfo\>** | List of JSON objects that represent connections between rule nodes | |
1717
| **ruleChainConnections** | **List\<RuleChainConnectionInfo\>** | List of JSON objects that represent connections between rule nodes and other rule chains. | |
18+
| **notes** | **List\<RuleChainNote\>** | List of sticky notes placed on the rule chain canvas | [optional] |
1819

1920

2021

ce/docs/RuleChainNote.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
2+
# RuleChainNote
3+
4+
`org.thingsboard.client.model.RuleChainNote`
5+
6+
## Properties
7+
8+
| Name | Type | Description | Notes |
9+
|------------ | ------------- | ------------- | -------------|
10+
| **id** | **String** | Unique identifier of the note on the canvas | [optional] |
11+
| **x** | **Integer** | Horizontal position of the note on the canvas, in pixels | [optional] |
12+
| **y** | **Integer** | Vertical position of the note on the canvas, in pixels | [optional] |
13+
| **width** | **Integer** | Width of the note, in pixels | [optional] |
14+
| **height** | **Integer** | Height of the note, in pixels | [optional] |
15+
| **content** | **String** | Markdown or HTML content of the note | [optional] |
16+
| **backgroundColor** | **String** | Background color of the note in CSS hex format, e.g. '#FFF9C4' | [optional] |
17+
| **borderColor** | **String** | Border color of the note in CSS hex format, e.g. '#E6C800' | [optional] |
18+
| **borderWidth** | **Integer** | Border width of the note in pixels | [optional] |
19+
| **applyDefaultMarkdownStyle** | **Boolean** | Whether to apply the default markdown stylesheet to the note content | [optional] |
20+
| **markdownCss** | **String** | Custom CSS styles applied to the note content | [optional] |
21+
22+
23+
24+
---
25+
26+
### Conventions
27+
28+
- **Package:** `org.thingsboard.client.model`
29+
- **Getter pattern:** `get<PropertyName>()` — e.g., `getId()`, `getName()`
30+
- **Setter pattern:** `set<PropertyName>(value)` — e.g., `setId(value)`, `setName(value)`
31+
- **Null fields:** Getters return `null` for unset optional fields; they do not throw exceptions
32+

ce/docs/ShortCustomerInfo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
|------------ | ------------- | ------------- | -------------|
1010
| **customerId** | **CustomerId** | JSON object with the customer Id. | [optional] |
1111
| **title** | **String** | Title of the customer. | [optional] |
12-
| **isPublic** | **Boolean** | Indicates special 'Public' customer used to embed dashboards on public websites. | [optional] |
12+
| **_public** | **Boolean** | Indicates special 'Public' customer used to embed dashboards on public websites. | [optional] |
1313

1414

1515

ce/spec/openapi.json

Lines changed: 62 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95035,6 +95035,13 @@
9503595035
"items": {
9503695036
"$ref": "#/components/schemas/RuleChainConnectionInfo"
9503795037
}
95038+
},
95039+
"notes": {
95040+
"type": "array",
95041+
"description": "List of sticky notes placed on the rule chain canvas",
95042+
"items": {
95043+
"$ref": "#/components/schemas/RuleChainNote"
95044+
}
9503895045
}
9503995046
},
9504095047
"required": [
@@ -95045,6 +95052,60 @@
9504595052
"ruleChainId"
9504695053
]
9504795054
},
95055+
"RuleChainNote": {
95056+
"type": "object",
95057+
"properties": {
95058+
"id": {
95059+
"type": "string",
95060+
"description": "Unique identifier of the note on the canvas"
95061+
},
95062+
"x": {
95063+
"type": "integer",
95064+
"format": "int32",
95065+
"description": "Horizontal position of the note on the canvas, in pixels"
95066+
},
95067+
"y": {
95068+
"type": "integer",
95069+
"format": "int32",
95070+
"description": "Vertical position of the note on the canvas, in pixels"
95071+
},
95072+
"width": {
95073+
"type": "integer",
95074+
"format": "int32",
95075+
"description": "Width of the note, in pixels"
95076+
},
95077+
"height": {
95078+
"type": "integer",
95079+
"format": "int32",
95080+
"description": "Height of the note, in pixels"
95081+
},
95082+
"content": {
95083+
"type": "string",
95084+
"description": "Markdown or HTML content of the note"
95085+
},
95086+
"backgroundColor": {
95087+
"type": "string",
95088+
"description": "Background color of the note in CSS hex format, e.g. '#FFF9C4'"
95089+
},
95090+
"borderColor": {
95091+
"type": "string",
95092+
"description": "Border color of the note in CSS hex format, e.g. '#E6C800'"
95093+
},
95094+
"borderWidth": {
95095+
"type": "integer",
95096+
"format": "int32",
95097+
"description": "Border width of the note in pixels"
95098+
},
95099+
"applyDefaultMarkdownStyle": {
95100+
"type": "boolean",
95101+
"description": "Whether to apply the default markdown stylesheet to the note content"
95102+
},
95103+
"markdownCss": {
95104+
"type": "string",
95105+
"description": "Custom CSS styles applied to the note content"
95106+
}
95107+
}
95108+
},
9504895109
"RuleChainOutputLabelsUsage": {
9504995110
"type": "object",
9505095111
"properties": {
@@ -95542,7 +95603,7 @@
9554295603
"type": "string",
9554395604
"description": "Title of the customer."
9554495605
},
95545-
"isPublic": {
95606+
"public": {
9554695607
"type": "boolean",
9554795608
"description": "Indicates special 'Public' customer used to embed dashboards on public websites."
9554895609
}

ce/src/main/java/org/thingsboard/client/model/RuleChainMetaData.java

Lines changed: 53 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
import org.thingsboard.client.model.NodeConnectionInfo;
3636
import org.thingsboard.client.model.RuleChainConnectionInfo;
3737
import org.thingsboard.client.model.RuleChainId;
38+
import org.thingsboard.client.model.RuleChainNote;
3839
import org.thingsboard.client.model.RuleNode;
3940
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
4041

@@ -49,7 +50,8 @@
4950
RuleChainMetaData.JSON_PROPERTY_FIRST_NODE_INDEX,
5051
RuleChainMetaData.JSON_PROPERTY_NODES,
5152
RuleChainMetaData.JSON_PROPERTY_CONNECTIONS,
52-
RuleChainMetaData.JSON_PROPERTY_RULE_CHAIN_CONNECTIONS
53+
RuleChainMetaData.JSON_PROPERTY_RULE_CHAIN_CONNECTIONS,
54+
RuleChainMetaData.JSON_PROPERTY_NOTES
5355
})
5456
@Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.20.0")
5557
public class RuleChainMetaData {
@@ -77,6 +79,10 @@ public class RuleChainMetaData {
7779
@Nonnull
7880
private List<RuleChainConnectionInfo> ruleChainConnections = new ArrayList<>();
7981

82+
public static final String JSON_PROPERTY_NOTES = "notes";
83+
@Nullable
84+
private List<RuleChainNote> notes = new ArrayList<>();
85+
8086
public RuleChainMetaData() {
8187
}
8288

@@ -246,6 +252,38 @@ public void setRuleChainConnections(@Nonnull List<RuleChainConnectionInfo> ruleC
246252
}
247253

248254

255+
public RuleChainMetaData notes(@Nullable List<RuleChainNote> notes) {
256+
this.notes = notes;
257+
return this;
258+
}
259+
260+
public RuleChainMetaData addNotesItem(RuleChainNote notesItem) {
261+
if (this.notes == null) {
262+
this.notes = new ArrayList<>();
263+
}
264+
this.notes.add(notesItem);
265+
return this;
266+
}
267+
268+
/**
269+
* List of sticky notes placed on the rule chain canvas
270+
* @return notes
271+
*/
272+
@Nullable
273+
@JsonProperty(value = JSON_PROPERTY_NOTES, required = false)
274+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
275+
public List<RuleChainNote> getNotes() {
276+
return notes;
277+
}
278+
279+
280+
@JsonProperty(value = JSON_PROPERTY_NOTES, required = false)
281+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
282+
public void setNotes(@Nullable List<RuleChainNote> notes) {
283+
this.notes = notes;
284+
}
285+
286+
249287
/**
250288
* Return true if this RuleChainMetaData object is equal to o.
251289
*/
@@ -263,12 +301,13 @@ public boolean equals(Object o) {
263301
Objects.equals(this.firstNodeIndex, ruleChainMetaData.firstNodeIndex) &&
264302
Objects.equals(this.nodes, ruleChainMetaData.nodes) &&
265303
Objects.equals(this.connections, ruleChainMetaData.connections) &&
266-
Objects.equals(this.ruleChainConnections, ruleChainMetaData.ruleChainConnections);
304+
Objects.equals(this.ruleChainConnections, ruleChainMetaData.ruleChainConnections) &&
305+
Objects.equals(this.notes, ruleChainMetaData.notes);
267306
}
268307

269308
@Override
270309
public int hashCode() {
271-
return Objects.hash(ruleChainId, version, firstNodeIndex, nodes, connections, ruleChainConnections);
310+
return Objects.hash(ruleChainId, version, firstNodeIndex, nodes, connections, ruleChainConnections, notes);
272311
}
273312

274313
@Override
@@ -281,6 +320,7 @@ public String toString() {
281320
sb.append(" nodes: ").append(toIndentedString(nodes)).append("\n");
282321
sb.append(" connections: ").append(toIndentedString(connections)).append("\n");
283322
sb.append(" ruleChainConnections: ").append(toIndentedString(ruleChainConnections)).append("\n");
323+
sb.append(" notes: ").append(toIndentedString(notes)).append("\n");
284324
sb.append("}");
285325
return sb.toString();
286326
}
@@ -373,6 +413,16 @@ public String toUrlQueryString(String prefix) {
373413
}
374414
}
375415

416+
// add `notes` to the URL query string
417+
if (getNotes() != null) {
418+
for (int i = 0; i < getNotes().size(); i++) {
419+
if (getNotes().get(i) != null) {
420+
joiner.add(getNotes().get(i).toUrlQueryString(String.format(java.util.Locale.ROOT, "%snotes%s%s", prefix, suffix,
421+
"".equals(suffix) ? "" : String.format(java.util.Locale.ROOT, "%s%d%s", containerPrefix, i, containerSuffix))));
422+
}
423+
}
424+
}
425+
376426
return joiner.toString();
377427
}
378428
}

0 commit comments

Comments
 (0)