Skip to content

Commit 9504fb8

Browse files
committed
regenerated clients, fixed tests
1 parent 83adc6b commit 9504fb8

56 files changed

Lines changed: 856 additions & 2026 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

ce/docs/BulkImportResultAsset.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77

88
| Name | Type | Description | Notes |
99
|------------ | ------------- | ------------- | -------------|
10-
| **created** | **Object** | | [optional] |
11-
| **updated** | **Object** | | [optional] |
12-
| **errors** | **Object** | | [optional] |
10+
| **created** | **Integer** | | [optional] |
11+
| **updated** | **Integer** | | [optional] |
12+
| **errors** | **Integer** | | [optional] |
1313
| **errorsList** | **List\<String\>** | | [optional] |
1414

1515

ce/docs/BulkImportResultDevice.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77

88
| Name | Type | Description | Notes |
99
|------------ | ------------- | ------------- | -------------|
10-
| **created** | **Object** | | [optional] |
11-
| **updated** | **Object** | | [optional] |
12-
| **errors** | **Object** | | [optional] |
10+
| **created** | **Integer** | | [optional] |
11+
| **updated** | **Integer** | | [optional] |
12+
| **errors** | **Integer** | | [optional] |
1313
| **errorsList** | **List\<String\>** | | [optional] |
1414

1515

ce/docs/BulkImportResultEdge.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77

88
| Name | Type | Description | Notes |
99
|------------ | ------------- | ------------- | -------------|
10-
| **created** | **Object** | | [optional] |
11-
| **updated** | **Object** | | [optional] |
12-
| **errors** | **Object** | | [optional] |
10+
| **created** | **Integer** | | [optional] |
11+
| **updated** | **Integer** | | [optional] |
12+
| **errors** | **Integer** | | [optional] |
1313
| **errorsList** | **List\<String\>** | | [optional] |
1414

1515

ce/docs/EntityRelationControllerApi.md

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
| [**findEntityRelationsByTo**](#findEntityRelationsByTo) | **GET** /api/relations/to/{toType}/{toId} | Get List of Relations (findEntityRelationsByTo) |
1515
| [**findEntityRelationsByToAndRelationType**](#findEntityRelationsByToAndRelationType) | **GET** /api/relations/to/{toType}/{toId}/{relationType} | Get List of Relations (findEntityRelationsByToAndRelationType) |
1616
| [**getRelation**](#getRelation) | **GET** /api/relation | Get Relation (getRelation) |
17-
| [**saveRelation**](#saveRelation) | **POST** /api/relation | Create Relation (saveRelation) |
18-
| [**saveRelationAndReturn**](#saveRelationAndReturn) | **POST** /api/v2/relation | Create Relation (saveRelationAndReturn) |
17+
| [**saveRelation**](#saveRelation) | **POST** /api/v2/relation | Create Relation (saveRelation) |
1918

2019

2120

@@ -291,33 +290,13 @@ Returns relation object between two specified entities if present. Otherwise thr
291290

292291
## saveRelation
293292

294-
> saveRelation(entityRelation)
293+
> EntityRelation saveRelation(entityRelation)
295294
296295
Create Relation (saveRelation)
297296

298297
Creates or updates a relation between two entities in the platform. Relations unique key is a combination of from/to entity id and relation type group and relation type. If the user has the authority of 'System Administrator', the server checks that 'from' and 'to' entities are owned by the sysadmin. If the user has the authority of 'Tenant Administrator', the server checks that 'from' and 'to' entities are owned by the same tenant. If the user has the authority of 'Customer User', the server checks that the 'from' and 'to' entities are assigned to the same customer.
299298

300299

301-
### Parameters
302-
303-
| Name | Type | Description | Notes |
304-
|------------- | ------------- | ------------- | -------------|
305-
| **entityRelation** | **EntityRelation** | | |
306-
307-
### Return type
308-
309-
null (empty response body)
310-
311-
312-
## saveRelationAndReturn
313-
314-
> EntityRelation saveRelationAndReturn(entityRelation)
315-
316-
Create Relation (saveRelationAndReturn)
317-
318-
Creates or updates a relation between two entities in the platform. Relations unique key is a combination of from/to entity id and relation type group and relation type. If the user has the authority of 'System Administrator', the server checks that 'from' and 'to' entities are owned by the sysadmin. If the user has the authority of 'Tenant Administrator', the server checks that 'from' and 'to' entities are owned by the same tenant. If the user has the authority of 'Customer User', the server checks that the 'from' and 'to' entities are assigned to the same customer.
319-
320-
321300
### Parameters
322301

323302
| Name | Type | Description | Notes |

ce/docs/NotificationRequestStats.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ Notification request processing statistics
99

1010
| Name | Type | Description | Notes |
1111
|------------ | ------------- | ------------- | -------------|
12-
| **sent** | **Map\<String, Object\>** | Number of successfully sent notifications per delivery method | [optional] |
12+
| **sent** | **Map\<String, Integer\>** | Number of successfully sent notifications per delivery method | [optional] |
1313
| **errors** | **Map\<String, Map<String, String>\>** | Errors per delivery method. Each entry maps recipient name to error message | [optional] |
14-
| **totalErrors** | **Object** | | [optional] |
14+
| **totalErrors** | **Integer** | Total number of errors across all delivery methods | [optional] |
1515
| **error** | **String** | General error message if the entire request failed | [optional] |
1616

1717

ce/spec/openapi.json

Lines changed: 15 additions & 140 deletions
Original file line numberDiff line numberDiff line change
@@ -38573,142 +38573,6 @@
3857338573
}
3857438574
]
3857538575
},
38576-
"post": {
38577-
"tags": [
38578-
"entity-relation-controller"
38579-
],
38580-
"summary": "Create Relation (saveRelation)",
38581-
"description": "Creates or updates a relation between two entities in the platform. Relations unique key is a combination of from/to entity id and relation type group and relation type. \n\nIf the user has the authority of 'System Administrator', the server checks that 'from' and 'to' entities are owned by the sysadmin. If the user has the authority of 'Tenant Administrator', the server checks that 'from' and 'to' entities are owned by the same tenant. If the user has the authority of 'Customer User', the server checks that the 'from' and 'to' entities are assigned to the same customer.",
38582-
"operationId": "saveRelation",
38583-
"requestBody": {
38584-
"content": {
38585-
"application/json": {
38586-
"schema": {
38587-
"$ref": "#/components/schemas/EntityRelation"
38588-
}
38589-
}
38590-
},
38591-
"required": true
38592-
},
38593-
"responses": {
38594-
"200": {
38595-
"description": "OK"
38596-
},
38597-
"400": {
38598-
"description": "Bad Request",
38599-
"content": {
38600-
"application/json": {
38601-
"schema": {
38602-
"$ref": "#/components/schemas/ThingsboardErrorResponse"
38603-
},
38604-
"examples": {
38605-
"error-code-400": {
38606-
"summary": "Bad Request",
38607-
"value": {
38608-
"status": 400,
38609-
"message": "Invalid request body",
38610-
"errorCode": 31,
38611-
"timestamp": 1609459200000
38612-
}
38613-
}
38614-
}
38615-
}
38616-
}
38617-
},
38618-
"401": {
38619-
"description": "Unauthorized",
38620-
"content": {
38621-
"application/json": {
38622-
"schema": {
38623-
"$ref": "#/components/schemas/ThingsboardErrorResponse"
38624-
},
38625-
"examples": {
38626-
"error-code-401": {
38627-
"summary": "Unauthorized",
38628-
"value": {
38629-
"status": 401,
38630-
"message": "Authentication failed",
38631-
"errorCode": 10,
38632-
"timestamp": 1609459200000
38633-
}
38634-
}
38635-
}
38636-
}
38637-
}
38638-
},
38639-
"403": {
38640-
"description": "Forbidden",
38641-
"content": {
38642-
"application/json": {
38643-
"schema": {
38644-
"$ref": "#/components/schemas/ThingsboardErrorResponse"
38645-
},
38646-
"examples": {
38647-
"error-code-403": {
38648-
"summary": "Forbidden",
38649-
"value": {
38650-
"status": 403,
38651-
"message": "You don't have permission to perform this operation!",
38652-
"errorCode": 20,
38653-
"timestamp": 1609459200000
38654-
}
38655-
}
38656-
}
38657-
}
38658-
}
38659-
},
38660-
"404": {
38661-
"description": "Not Found",
38662-
"content": {
38663-
"application/json": {
38664-
"schema": {
38665-
"$ref": "#/components/schemas/ThingsboardErrorResponse"
38666-
},
38667-
"examples": {
38668-
"error-code-404": {
38669-
"summary": "Not Found",
38670-
"value": {
38671-
"status": 404,
38672-
"message": "Requested item wasn't found!",
38673-
"errorCode": 32,
38674-
"timestamp": 1609459200000
38675-
}
38676-
}
38677-
}
38678-
}
38679-
}
38680-
},
38681-
"429": {
38682-
"description": "Too Many Requests",
38683-
"content": {
38684-
"application/json": {
38685-
"schema": {
38686-
"$ref": "#/components/schemas/ThingsboardErrorResponse"
38687-
},
38688-
"examples": {
38689-
"error-code-429": {
38690-
"summary": "Too Many Requests",
38691-
"value": {
38692-
"status": 429,
38693-
"message": "Too many requests for current tenant!",
38694-
"errorCode": 33,
38695-
"timestamp": 1609459200000
38696-
}
38697-
}
38698-
}
38699-
}
38700-
}
38701-
}
38702-
},
38703-
"security": [
38704-
{
38705-
"HttpLoginForm": []
38706-
},
38707-
{
38708-
"ApiKeyForm": []
38709-
}
38710-
]
38711-
},
3871238576
"delete": {
3871338577
"tags": [
3871438578
"entity-relation-controller"
@@ -40359,9 +40223,9 @@
4035940223
"tags": [
4036040224
"entity-relation-controller"
4036140225
],
40362-
"summary": "Create Relation (saveRelationAndReturn)",
40226+
"summary": "Create Relation (saveRelation)",
4036340227
"description": "Creates or updates a relation between two entities in the platform. Relations unique key is a combination of from/to entity id and relation type group and relation type. \n\nIf the user has the authority of 'System Administrator', the server checks that 'from' and 'to' entities are owned by the sysadmin. If the user has the authority of 'Tenant Administrator', the server checks that 'from' and 'to' entities are owned by the same tenant. If the user has the authority of 'Customer User', the server checks that the 'from' and 'to' entities are assigned to the same customer.",
40364-
"operationId": "saveRelationAndReturn",
40228+
"operationId": "saveRelation",
4036540229
"requestBody": {
4036640230
"content": {
4036740231
"application/json": {
@@ -47247,7 +47111,7 @@
4724747111
"message": "User password expired!",
4724847112
"errorCode": 15,
4724947113
"timestamp": 1609459200000,
47250-
"resetToken": "zfY1Qqi3tXlHwN2G8F4Z3D5iwG5dRH"
47114+
"resetToken": "GKUiVvgXp7IFwt5ZQhyTLh0MsE8trE"
4725147115
}
4725247116
}
4725347117
}
@@ -47357,7 +47221,7 @@
4735747221
"message": "User password expired!",
4735847222
"errorCode": 15,
4735947223
"timestamp": 1609459200000,
47360-
"resetToken": "zfY1Qqi3tXlHwN2G8F4Z3D5iwG5dRH"
47224+
"resetToken": "GKUiVvgXp7IFwt5ZQhyTLh0MsE8trE"
4736147225
}
4736247226
}
4736347227
}
@@ -85955,12 +85819,15 @@
8595585819
"type": "object",
8595685820
"properties": {
8595785821
"created": {
85822+
"type": "integer",
8595885823
"format": "int32"
8595985824
},
8596085825
"updated": {
85826+
"type": "integer",
8596185827
"format": "int32"
8596285828
},
8596385829
"errors": {
85830+
"type": "integer",
8596485831
"format": "int32"
8596585832
},
8596685833
"errorsList": {
@@ -85975,12 +85842,15 @@
8597585842
"type": "object",
8597685843
"properties": {
8597785844
"created": {
85845+
"type": "integer",
8597885846
"format": "int32"
8597985847
},
8598085848
"updated": {
85849+
"type": "integer",
8598185850
"format": "int32"
8598285851
},
8598385852
"errors": {
85853+
"type": "integer",
8598485854
"format": "int32"
8598585855
},
8598685856
"errorsList": {
@@ -85995,12 +85865,15 @@
8599585865
"type": "object",
8599685866
"properties": {
8599785867
"created": {
85868+
"type": "integer",
8599885869
"format": "int32"
8599985870
},
8600085871
"updated": {
85872+
"type": "integer",
8600185873
"format": "int32"
8600285874
},
8600385875
"errors": {
85876+
"type": "integer",
8600485877
"format": "int32"
8600585878
},
8600685879
"errorsList": {
@@ -92966,6 +92839,7 @@
9296692839
"sent": {
9296792840
"type": "object",
9296892841
"additionalProperties": {
92842+
"type": "integer",
9296992843
"format": "int32"
9297092844
},
9297192845
"description": "Number of successfully sent notifications per delivery method",
@@ -92985,6 +92859,7 @@
9298592859
"description": "Errors per delivery method. Each entry maps recipient name to error message"
9298692860
},
9298792861
"totalErrors": {
92862+
"type": "integer",
9298892863
"format": "int32",
9298992864
"description": "Total number of errors across all delivery methods"
9299092865
},

0 commit comments

Comments
 (0)