@openremote/rest 1.12.0-snapshot.20251201131034 → 1.12.0-snapshot.20251203091344
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/umd/index.bundle.js +1 -1
- package/dist/umd/index.bundle.js.map +1 -1
- package/dist/umd/index.js +1 -1
- package/dist/umd/index.js.map +1 -1
- package/lib/restclient.d.ts +591 -591
- package/lib/restclient.js +1 -1
- package/lib/restclient.js.map +1 -1
- package/package.json +1 -1
package/lib/restclient.d.ts
CHANGED
|
@@ -9,205 +9,290 @@ export interface HttpClient<O> {
|
|
|
9
9
|
options?: O;
|
|
10
10
|
}): RestResponse<R>;
|
|
11
11
|
}
|
|
12
|
-
export declare class
|
|
12
|
+
export declare class AssetResourceClient<O> {
|
|
13
13
|
protected httpClient: HttpClient<O>;
|
|
14
14
|
constructor(httpClient: HttpClient<O>);
|
|
15
15
|
/**
|
|
16
|
-
* HTTP POST /
|
|
17
|
-
* Java method: org.openremote.model.
|
|
16
|
+
* HTTP POST /asset
|
|
17
|
+
* Java method: org.openremote.model.asset.AssetResource.create
|
|
18
18
|
*/
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
export declare class AssetPredictedDatapointResourceClient<O> {
|
|
22
|
-
protected httpClient: HttpClient<O>;
|
|
23
|
-
constructor(httpClient: HttpClient<O>);
|
|
19
|
+
create(asset: Model.Asset, options?: O): RestResponse<Model.Asset>;
|
|
24
20
|
/**
|
|
25
|
-
* HTTP
|
|
26
|
-
* Java method: org.openremote.model.
|
|
21
|
+
* HTTP DELETE /asset
|
|
22
|
+
* Java method: org.openremote.model.asset.AssetResource.delete
|
|
27
23
|
*/
|
|
28
|
-
|
|
24
|
+
delete(queryParams?: {
|
|
25
|
+
assetId?: string[];
|
|
26
|
+
}, options?: O): RestResponse<void>;
|
|
29
27
|
/**
|
|
30
|
-
* HTTP PUT /asset/
|
|
31
|
-
* Java method: org.openremote.model.
|
|
28
|
+
* HTTP PUT /asset/attributes
|
|
29
|
+
* Java method: org.openremote.model.asset.AssetResource.writeAttributeValues
|
|
32
30
|
*/
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
export declare class AlarmResourceClient<O> {
|
|
36
|
-
protected httpClient: HttpClient<O>;
|
|
37
|
-
constructor(httpClient: HttpClient<O>);
|
|
31
|
+
writeAttributeValues(attributeStates: Model.AttributeState[], options?: O): RestResponse<Model.AttributeWriteResult[]>;
|
|
38
32
|
/**
|
|
39
|
-
* HTTP
|
|
40
|
-
* Java method: org.openremote.model.
|
|
33
|
+
* HTTP PUT /asset/attributes/timestamp
|
|
34
|
+
* Java method: org.openremote.model.asset.AssetResource.writeAttributeEvents
|
|
41
35
|
*/
|
|
42
|
-
|
|
36
|
+
writeAttributeEvents(attributeEvents: Model.AttributeEvent[], options?: O): RestResponse<Model.AttributeWriteResult[]>;
|
|
37
|
+
/**
|
|
38
|
+
* HTTP DELETE /asset/parent
|
|
39
|
+
* Java method: org.openremote.model.asset.AssetResource.updateNoneParent
|
|
40
|
+
*/
|
|
41
|
+
updateNoneParent(queryParams?: {
|
|
43
42
|
assetIds?: string[];
|
|
44
|
-
}, options?: O): RestResponse<
|
|
43
|
+
}, options?: O): RestResponse<void>;
|
|
45
44
|
/**
|
|
46
|
-
* HTTP GET /
|
|
47
|
-
* Java method: org.openremote.model.
|
|
45
|
+
* HTTP GET /asset/partial/{assetId}
|
|
46
|
+
* Java method: org.openremote.model.asset.AssetResource.getPartial
|
|
48
47
|
*/
|
|
49
|
-
|
|
48
|
+
getPartial(assetId: string, options?: O): RestResponse<Model.Asset>;
|
|
49
|
+
/**
|
|
50
|
+
* HTTP POST /asset/query
|
|
51
|
+
* Java method: org.openremote.model.asset.AssetResource.queryAssets
|
|
52
|
+
*/
|
|
53
|
+
queryAssets(query: Model.AssetQuery, options?: O): RestResponse<Model.Asset[]>;
|
|
54
|
+
/**
|
|
55
|
+
* HTTP POST /asset/tree
|
|
56
|
+
* Java method: org.openremote.model.asset.AssetResource.queryAssetTree
|
|
57
|
+
*/
|
|
58
|
+
queryAssetTree(query: Model.AssetQuery, options?: O): RestResponse<Model.AssetTree>;
|
|
59
|
+
/**
|
|
60
|
+
* HTTP GET /asset/user/current
|
|
61
|
+
* Java method: org.openremote.model.asset.AssetResource.getCurrentUserAssets
|
|
62
|
+
*/
|
|
63
|
+
getCurrentUserAssets(options?: O): RestResponse<Model.Asset[]>;
|
|
64
|
+
/**
|
|
65
|
+
* HTTP POST /asset/user/link
|
|
66
|
+
* Java method: org.openremote.model.asset.AssetResource.createUserAssetLinks
|
|
67
|
+
*/
|
|
68
|
+
createUserAssetLinks(userAssets: Model.UserAssetLink[], options?: O): RestResponse<void>;
|
|
69
|
+
/**
|
|
70
|
+
* HTTP GET /asset/user/link
|
|
71
|
+
* Java method: org.openremote.model.asset.AssetResource.getUserAssetLinks
|
|
72
|
+
*/
|
|
73
|
+
getUserAssetLinks(queryParams?: {
|
|
50
74
|
realm?: string;
|
|
51
|
-
|
|
75
|
+
userId?: string;
|
|
52
76
|
assetId?: string;
|
|
53
|
-
|
|
54
|
-
}, options?: O): RestResponse<Model.SentAlarm[]>;
|
|
77
|
+
}, options?: O): RestResponse<Model.UserAssetLink[]>;
|
|
55
78
|
/**
|
|
56
|
-
* HTTP
|
|
57
|
-
* Java method: org.openremote.model.
|
|
79
|
+
* HTTP POST /asset/user/link/delete
|
|
80
|
+
* Java method: org.openremote.model.asset.AssetResource.deleteUserAssetLinks
|
|
58
81
|
*/
|
|
59
|
-
|
|
82
|
+
deleteUserAssetLinks(userAssets: Model.UserAssetLink[], options?: O): RestResponse<void>;
|
|
60
83
|
/**
|
|
61
|
-
* HTTP
|
|
62
|
-
* Java method: org.openremote.model.
|
|
84
|
+
* HTTP DELETE /asset/user/link/{realm}/{userId}
|
|
85
|
+
* Java method: org.openremote.model.asset.AssetResource.deleteAllUserAssetLinks
|
|
63
86
|
*/
|
|
64
|
-
|
|
87
|
+
deleteAllUserAssetLinks(realm: string, userId: string, options?: O): RestResponse<void>;
|
|
65
88
|
/**
|
|
66
|
-
* HTTP
|
|
67
|
-
* Java method: org.openremote.model.
|
|
89
|
+
* HTTP DELETE /asset/user/link/{realm}/{userId}/{assetId}
|
|
90
|
+
* Java method: org.openremote.model.asset.AssetResource.deleteUserAssetLink
|
|
68
91
|
*/
|
|
69
|
-
|
|
92
|
+
deleteUserAssetLink(realm: string, userId: string, assetId: string, options?: O): RestResponse<void>;
|
|
70
93
|
/**
|
|
71
|
-
* HTTP
|
|
72
|
-
* Java method: org.openremote.model.
|
|
94
|
+
* HTTP GET /asset/{assetId}
|
|
95
|
+
* Java method: org.openremote.model.asset.AssetResource.get
|
|
73
96
|
*/
|
|
74
|
-
|
|
97
|
+
get(assetId: string, options?: O): RestResponse<Model.Asset>;
|
|
75
98
|
/**
|
|
76
|
-
* HTTP PUT /
|
|
77
|
-
* Java method: org.openremote.model.
|
|
99
|
+
* HTTP PUT /asset/{assetId}
|
|
100
|
+
* Java method: org.openremote.model.asset.AssetResource.update
|
|
78
101
|
*/
|
|
79
|
-
|
|
102
|
+
update(assetId: string, asset: Model.Asset, options?: O): RestResponse<Model.Asset>;
|
|
80
103
|
/**
|
|
81
|
-
* HTTP
|
|
82
|
-
* Java method: org.openremote.model.
|
|
104
|
+
* HTTP PUT /asset/{assetId}/attribute/{attributeName}
|
|
105
|
+
* Java method: org.openremote.model.asset.AssetResource.writeAttributeValue
|
|
83
106
|
*/
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
107
|
+
writeAttributeValue$PUT$asset_assetId_attribute_attributeName(assetId: string, attributeName: string, value: any, options?: O): RestResponse<Model.AttributeWriteResult>;
|
|
108
|
+
/**
|
|
109
|
+
* HTTP PUT /asset/{assetId}/attribute/{attributeName}/{timestamp}
|
|
110
|
+
* Java method: org.openremote.model.asset.AssetResource.writeAttributeValue
|
|
111
|
+
*/
|
|
112
|
+
writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(assetId: string, attributeName: string, timestamp: number, value: any, options?: O): RestResponse<Model.AttributeWriteResult>;
|
|
113
|
+
/**
|
|
114
|
+
* HTTP PUT /asset/{parentAssetId}/child
|
|
115
|
+
* Java method: org.openremote.model.asset.AssetResource.updateParent
|
|
116
|
+
*/
|
|
117
|
+
updateParent(parentAssetId: string, queryParams?: {
|
|
118
|
+
assetIds?: string[];
|
|
119
|
+
}, options?: O): RestResponse<void>;
|
|
87
120
|
}
|
|
88
|
-
export declare class
|
|
121
|
+
export declare class ExternalServiceResourceClient<O> {
|
|
89
122
|
protected httpClient: HttpClient<O>;
|
|
90
123
|
constructor(httpClient: HttpClient<O>);
|
|
91
124
|
/**
|
|
92
|
-
*
|
|
93
|
-
*
|
|
125
|
+
* Response code 200 - List of registered external services
|
|
126
|
+
* HTTP GET /service
|
|
127
|
+
* Java method: org.openremote.model.services.ExternalServiceResource.getServices
|
|
94
128
|
*/
|
|
95
|
-
|
|
129
|
+
getServices(queryParams?: {
|
|
130
|
+
realm?: string;
|
|
131
|
+
}, options?: O): RestResponse<Model.ExternalService[]>;
|
|
96
132
|
/**
|
|
97
|
-
*
|
|
98
|
-
*
|
|
133
|
+
* Response code 200 - Service registered successfully
|
|
134
|
+
* Response code 400 - Invalid external service object
|
|
135
|
+
* Response code 409 - ExternalService instance already registered
|
|
136
|
+
* HTTP POST /service
|
|
137
|
+
* Java method: org.openremote.model.services.ExternalServiceResource.registerService
|
|
99
138
|
*/
|
|
100
|
-
|
|
139
|
+
registerService(service: Model.ExternalService, options?: O): RestResponse<Model.ExternalService>;
|
|
101
140
|
/**
|
|
102
|
-
*
|
|
103
|
-
*
|
|
141
|
+
* Response code 200 - List of registered external services
|
|
142
|
+
* HTTP GET /service/global
|
|
143
|
+
* Java method: org.openremote.model.services.ExternalServiceResource.getGlobalServices
|
|
104
144
|
*/
|
|
105
|
-
|
|
145
|
+
getGlobalServices(options?: O): RestResponse<Model.ExternalService[]>;
|
|
106
146
|
/**
|
|
107
|
-
*
|
|
108
|
-
*
|
|
147
|
+
* Response code 200 - Service registered successfully
|
|
148
|
+
* Response code 400 - Invalid external service object
|
|
149
|
+
* Response code 409 - ExternalService instance already registered
|
|
150
|
+
* HTTP POST /service/global
|
|
151
|
+
* Java method: org.openremote.model.services.ExternalServiceResource.registerGlobalService
|
|
109
152
|
*/
|
|
110
|
-
|
|
153
|
+
registerGlobalService(service: Model.ExternalService, options?: O): RestResponse<Model.ExternalService>;
|
|
111
154
|
/**
|
|
112
|
-
*
|
|
113
|
-
*
|
|
155
|
+
* Response code 204 - Service deregistered successfully
|
|
156
|
+
* Response code 404 - Service instance not found
|
|
157
|
+
* HTTP DELETE /service/{serviceId}/{instanceId}
|
|
158
|
+
* Java method: org.openremote.model.services.ExternalServiceResource.deregisterService
|
|
114
159
|
*/
|
|
115
|
-
|
|
160
|
+
deregisterService(serviceId: string, instanceId: number, options?: O): RestResponse<void>;
|
|
116
161
|
/**
|
|
117
|
-
*
|
|
118
|
-
*
|
|
162
|
+
* Response code 200 - ExternalService retrieved successfully
|
|
163
|
+
* Response code 404 - ExternalService not found
|
|
164
|
+
* HTTP GET /service/{serviceId}/{instanceId}
|
|
165
|
+
* Java method: org.openremote.model.services.ExternalServiceResource.getService
|
|
119
166
|
*/
|
|
120
|
-
|
|
167
|
+
getService(serviceId: string, instanceId: number, options?: O): RestResponse<Model.ExternalService>;
|
|
121
168
|
/**
|
|
122
|
-
*
|
|
123
|
-
*
|
|
169
|
+
* Response code 204 - Heartbeat sent successfully
|
|
170
|
+
* Response code 404 - Service instance not found
|
|
171
|
+
* HTTP PUT /service/{serviceId}/{instanceId}
|
|
172
|
+
* Java method: org.openremote.model.services.ExternalServiceResource.heartbeat
|
|
124
173
|
*/
|
|
125
|
-
|
|
174
|
+
heartbeat(serviceId: string, instanceId: number, options?: O): RestResponse<void>;
|
|
175
|
+
}
|
|
176
|
+
export declare class GatewayClientResourceClient<O> {
|
|
177
|
+
protected httpClient: HttpClient<O>;
|
|
178
|
+
constructor(httpClient: HttpClient<O>);
|
|
126
179
|
/**
|
|
127
|
-
* HTTP
|
|
128
|
-
* Java method: org.openremote.model.
|
|
180
|
+
* HTTP DELETE /gateway/connection
|
|
181
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnections
|
|
129
182
|
*/
|
|
130
|
-
|
|
183
|
+
deleteConnections(queryParams?: {
|
|
184
|
+
realm?: string[];
|
|
185
|
+
}, options?: O): RestResponse<void>;
|
|
131
186
|
/**
|
|
132
|
-
* HTTP GET /
|
|
133
|
-
* Java method: org.openremote.model.
|
|
187
|
+
* HTTP GET /gateway/connection
|
|
188
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnections
|
|
134
189
|
*/
|
|
135
|
-
|
|
190
|
+
getConnections(options?: O): RestResponse<Model.GatewayConnection[]>;
|
|
136
191
|
/**
|
|
137
|
-
* HTTP
|
|
138
|
-
* Java method: org.openremote.model.
|
|
192
|
+
* HTTP DELETE /gateway/connection/{realm}
|
|
193
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnection
|
|
139
194
|
*/
|
|
140
|
-
|
|
195
|
+
deleteConnection(realm: string, options?: O): RestResponse<void>;
|
|
141
196
|
/**
|
|
142
|
-
* HTTP
|
|
143
|
-
* Java method: org.openremote.model.
|
|
197
|
+
* HTTP GET /gateway/connection/{realm}
|
|
198
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnection
|
|
144
199
|
*/
|
|
145
|
-
|
|
200
|
+
getConnection(realm: string, options?: O): RestResponse<Model.GatewayConnection>;
|
|
146
201
|
/**
|
|
147
|
-
* HTTP
|
|
148
|
-
* Java method: org.openremote.model.
|
|
202
|
+
* HTTP PUT /gateway/connection/{realm}
|
|
203
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.setConnection
|
|
149
204
|
*/
|
|
150
|
-
|
|
205
|
+
setConnection(realm: string, connection: Model.GatewayConnection, options?: O): RestResponse<void>;
|
|
151
206
|
/**
|
|
152
|
-
* HTTP
|
|
153
|
-
* Java method: org.openremote.model.
|
|
207
|
+
* HTTP GET /gateway/status/{realm}
|
|
208
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnectionStatus
|
|
154
209
|
*/
|
|
155
|
-
|
|
210
|
+
getConnectionStatus(realm: string, options?: O): RestResponse<Model.ConnectionStatus>;
|
|
211
|
+
}
|
|
212
|
+
export declare class FlowResourceClient<O> {
|
|
213
|
+
protected httpClient: HttpClient<O>;
|
|
214
|
+
constructor(httpClient: HttpClient<O>);
|
|
156
215
|
/**
|
|
157
|
-
* HTTP GET /
|
|
158
|
-
* Java method: org.openremote.model.
|
|
216
|
+
* HTTP GET /flow
|
|
217
|
+
* Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitions
|
|
159
218
|
*/
|
|
160
|
-
|
|
219
|
+
getAllNodeDefinitions(options?: O): RestResponse<Model.Node[]>;
|
|
161
220
|
/**
|
|
162
|
-
* HTTP
|
|
163
|
-
* Java method: org.openremote.model.
|
|
221
|
+
* HTTP GET /flow/{name}
|
|
222
|
+
* Java method: org.openremote.model.rules.flow.FlowResource.getNodeDefinition
|
|
164
223
|
*/
|
|
165
|
-
|
|
224
|
+
getNodeDefinition(name: string, options?: O): RestResponse<Model.Node>;
|
|
166
225
|
/**
|
|
167
|
-
* HTTP GET /
|
|
168
|
-
* Java method: org.openremote.model.
|
|
226
|
+
* HTTP GET /flow/{type}
|
|
227
|
+
* Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitionsByType
|
|
169
228
|
*/
|
|
170
|
-
|
|
229
|
+
getAllNodeDefinitionsByType(type: Model.NodeType, options?: O): RestResponse<Model.Node[]>;
|
|
230
|
+
}
|
|
231
|
+
export declare class ConfigurationResourceClient<O> {
|
|
232
|
+
protected httpClient: HttpClient<O>;
|
|
233
|
+
constructor(httpClient: HttpClient<O>);
|
|
171
234
|
/**
|
|
172
|
-
* HTTP
|
|
173
|
-
* Java method: org.openremote.model.
|
|
235
|
+
* HTTP GET /configuration/manager
|
|
236
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfig
|
|
174
237
|
*/
|
|
175
|
-
|
|
238
|
+
getManagerConfig(options?: O): RestResponse<Model.ManagerAppConfig>;
|
|
176
239
|
/**
|
|
177
|
-
* HTTP
|
|
178
|
-
* Java method: org.openremote.model.
|
|
240
|
+
* HTTP PUT /configuration/manager
|
|
241
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.update
|
|
179
242
|
*/
|
|
180
|
-
|
|
243
|
+
update(managerConfiguration: Model.ManagerAppConfig, options?: O): RestResponse<Model.ManagerAppConfig>;
|
|
181
244
|
/**
|
|
182
|
-
* HTTP POST /
|
|
183
|
-
* Java method: org.openremote.model.
|
|
245
|
+
* HTTP POST /configuration/manager/file
|
|
246
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.fileUpload
|
|
184
247
|
*/
|
|
185
|
-
|
|
248
|
+
fileUpload(fileInfo: Model.FileInfo, queryParams?: {
|
|
249
|
+
path?: string;
|
|
250
|
+
}, options?: O): RestResponse<string>;
|
|
186
251
|
/**
|
|
187
|
-
* HTTP
|
|
188
|
-
* Java method: org.openremote.model.
|
|
252
|
+
* HTTP GET /configuration/manager/image/{filename: .+}
|
|
253
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfigImage
|
|
189
254
|
*/
|
|
190
|
-
|
|
255
|
+
getManagerConfigImage(filename: string, options?: O): RestResponse<any>;
|
|
256
|
+
}
|
|
257
|
+
export declare class AssetDatapointResourceClient<O> {
|
|
258
|
+
protected httpClient: HttpClient<O>;
|
|
259
|
+
constructor(httpClient: HttpClient<O>);
|
|
191
260
|
/**
|
|
192
|
-
* HTTP
|
|
193
|
-
* Java method: org.openremote.model.
|
|
261
|
+
* HTTP GET /asset/datapoint/export
|
|
262
|
+
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointExport
|
|
194
263
|
*/
|
|
195
|
-
|
|
264
|
+
getDatapointExport(queryParams?: {
|
|
265
|
+
attributeRefs?: string;
|
|
266
|
+
fromTimestamp?: number;
|
|
267
|
+
toTimestamp?: number;
|
|
268
|
+
}, options?: O): RestResponse<any>;
|
|
196
269
|
/**
|
|
197
|
-
* HTTP GET /
|
|
198
|
-
* Java method: org.openremote.model.
|
|
270
|
+
* HTTP GET /asset/datapoint/periods
|
|
271
|
+
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointPeriod
|
|
199
272
|
*/
|
|
200
|
-
|
|
273
|
+
getDatapointPeriod(queryParams?: {
|
|
274
|
+
assetId?: string;
|
|
275
|
+
attributeName?: string;
|
|
276
|
+
}, options?: O): RestResponse<Model.DatapointPeriod>;
|
|
201
277
|
/**
|
|
202
|
-
* HTTP
|
|
203
|
-
* Java method: org.openremote.model.
|
|
278
|
+
* HTTP POST /asset/datapoint/{assetId}/{attributeName}
|
|
279
|
+
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapoints
|
|
204
280
|
*/
|
|
205
|
-
|
|
281
|
+
getDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
|
|
282
|
+
}
|
|
283
|
+
export declare class AssetPredictedDatapointResourceClient<O> {
|
|
284
|
+
protected httpClient: HttpClient<O>;
|
|
285
|
+
constructor(httpClient: HttpClient<O>);
|
|
206
286
|
/**
|
|
207
|
-
* HTTP
|
|
208
|
-
* Java method: org.openremote.model.
|
|
287
|
+
* HTTP POST /asset/predicted/{assetId}/{attributeName}
|
|
288
|
+
* Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.getPredictedDatapoints
|
|
209
289
|
*/
|
|
210
|
-
|
|
290
|
+
getPredictedDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
|
|
291
|
+
/**
|
|
292
|
+
* HTTP PUT /asset/predicted/{assetId}/{attributeName}
|
|
293
|
+
* Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.writePredictedDatapoints
|
|
294
|
+
*/
|
|
295
|
+
writePredictedDatapoints(assetId: string, attributeName: string, predictedDatapoints: Model.ValueDatapoint<any>[], options?: O): RestResponse<void>;
|
|
211
296
|
}
|
|
212
297
|
export declare class ProvisioningResourceClient<O> {
|
|
213
298
|
protected httpClient: HttpClient<O>;
|
|
@@ -233,148 +318,152 @@ export declare class ProvisioningResourceClient<O> {
|
|
|
233
318
|
*/
|
|
234
319
|
updateProvisioningConfig(id: number, provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<void>;
|
|
235
320
|
}
|
|
236
|
-
export declare class
|
|
321
|
+
export declare class ConsoleResourceClient<O> {
|
|
237
322
|
protected httpClient: HttpClient<O>;
|
|
238
323
|
constructor(httpClient: HttpClient<O>);
|
|
239
324
|
/**
|
|
240
|
-
* HTTP POST /
|
|
241
|
-
* Java method: org.openremote.model.
|
|
242
|
-
*/
|
|
243
|
-
create(realm: Model.Realm, options?: O): RestResponse<void>;
|
|
244
|
-
/**
|
|
245
|
-
* HTTP GET /realm
|
|
246
|
-
* Java method: org.openremote.model.security.RealmResource.getAll
|
|
247
|
-
*/
|
|
248
|
-
getAll(options?: O): RestResponse<Model.Realm[]>;
|
|
249
|
-
/**
|
|
250
|
-
* HTTP GET /realm/accessible
|
|
251
|
-
* Java method: org.openremote.model.security.RealmResource.getAccessible
|
|
252
|
-
*/
|
|
253
|
-
getAccessible(options?: O): RestResponse<Model.Realm[]>;
|
|
254
|
-
/**
|
|
255
|
-
* HTTP DELETE /realm/{name}
|
|
256
|
-
* Java method: org.openremote.model.security.RealmResource.delete
|
|
257
|
-
*/
|
|
258
|
-
delete(name: string, options?: O): RestResponse<void>;
|
|
259
|
-
/**
|
|
260
|
-
* HTTP GET /realm/{name}
|
|
261
|
-
* Java method: org.openremote.model.security.RealmResource.get
|
|
262
|
-
*/
|
|
263
|
-
get(name: string, options?: O): RestResponse<Model.Realm>;
|
|
264
|
-
/**
|
|
265
|
-
* HTTP PUT /realm/{name}
|
|
266
|
-
* Java method: org.openremote.model.security.RealmResource.update
|
|
325
|
+
* HTTP POST /console/register
|
|
326
|
+
* Java method: org.openremote.model.console.ConsoleResource.register
|
|
267
327
|
*/
|
|
268
|
-
|
|
328
|
+
register(consoleRegistration: Model.ConsoleRegistration, options?: O): RestResponse<Model.ConsoleRegistration>;
|
|
269
329
|
}
|
|
270
|
-
export declare class
|
|
330
|
+
export declare class AssetModelResourceClient<O> {
|
|
271
331
|
protected httpClient: HttpClient<O>;
|
|
272
332
|
constructor(httpClient: HttpClient<O>);
|
|
273
333
|
/**
|
|
274
|
-
* HTTP
|
|
275
|
-
* Java method: org.openremote.model.asset.
|
|
276
|
-
*/
|
|
277
|
-
create(asset: Model.Asset, options?: O): RestResponse<Model.Asset>;
|
|
278
|
-
/**
|
|
279
|
-
* HTTP DELETE /asset
|
|
280
|
-
* Java method: org.openremote.model.asset.AssetResource.delete
|
|
334
|
+
* HTTP GET /model/assetDescriptors
|
|
335
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getAssetDescriptors
|
|
281
336
|
*/
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
337
|
+
getAssetDescriptors(queryParams?: {
|
|
338
|
+
parentId?: string;
|
|
339
|
+
parentType?: string;
|
|
340
|
+
}, options?: O): RestResponse<Model.AssetDescriptor[]>;
|
|
285
341
|
/**
|
|
286
|
-
* HTTP
|
|
287
|
-
* Java method: org.openremote.model.asset.
|
|
342
|
+
* HTTP GET /model/assetInfo/{assetType}
|
|
343
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getAssetInfo
|
|
288
344
|
*/
|
|
289
|
-
|
|
345
|
+
getAssetInfo(assetType: string, queryParams?: {
|
|
346
|
+
parentId?: string;
|
|
347
|
+
}, options?: O): RestResponse<Model.AssetTypeInfo>;
|
|
290
348
|
/**
|
|
291
|
-
* HTTP
|
|
292
|
-
* Java method: org.openremote.model.asset.
|
|
349
|
+
* HTTP GET /model/assetInfos
|
|
350
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getAssetInfos
|
|
293
351
|
*/
|
|
294
|
-
|
|
352
|
+
getAssetInfos(queryParams?: {
|
|
353
|
+
parentId?: string;
|
|
354
|
+
parentType?: string;
|
|
355
|
+
}, options?: O): RestResponse<Model.AssetTypeInfo[]>;
|
|
295
356
|
/**
|
|
296
|
-
* HTTP
|
|
297
|
-
* Java method: org.openremote.model.asset.
|
|
357
|
+
* HTTP GET /model/getValueDescriptorSchema
|
|
358
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getValueDescriptorSchema
|
|
298
359
|
*/
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
360
|
+
getValueDescriptorSchema(queryParams?: {
|
|
361
|
+
name?: string;
|
|
362
|
+
hash?: string;
|
|
363
|
+
}, options?: O): RestResponse<any>;
|
|
302
364
|
/**
|
|
303
|
-
* HTTP GET /
|
|
304
|
-
* Java method: org.openremote.model.asset.
|
|
365
|
+
* HTTP GET /model/metaItemDescriptors
|
|
366
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getMetaItemDescriptors
|
|
305
367
|
*/
|
|
306
|
-
|
|
368
|
+
getMetaItemDescriptors(queryParams?: {
|
|
369
|
+
parentId?: string;
|
|
370
|
+
}, options?: O): RestResponse<{
|
|
371
|
+
[index: string]: Model.MetaItemDescriptor;
|
|
372
|
+
}>;
|
|
307
373
|
/**
|
|
308
|
-
* HTTP
|
|
309
|
-
* Java method: org.openremote.model.asset.
|
|
374
|
+
* HTTP GET /model/valueDescriptors
|
|
375
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getValueDescriptors
|
|
310
376
|
*/
|
|
311
|
-
|
|
377
|
+
getValueDescriptors(queryParams?: {
|
|
378
|
+
parentId?: string;
|
|
379
|
+
}, options?: O): RestResponse<{
|
|
380
|
+
[index: string]: Model.ValueDescriptor;
|
|
381
|
+
}>;
|
|
382
|
+
}
|
|
383
|
+
export declare class AlarmResourceClient<O> {
|
|
384
|
+
protected httpClient: HttpClient<O>;
|
|
385
|
+
constructor(httpClient: HttpClient<O>);
|
|
312
386
|
/**
|
|
313
|
-
* HTTP POST /
|
|
314
|
-
* Java method: org.openremote.model.
|
|
387
|
+
* HTTP POST /alarm
|
|
388
|
+
* Java method: org.openremote.model.alarm.AlarmResource.createAlarm
|
|
315
389
|
*/
|
|
316
|
-
|
|
390
|
+
createAlarm(alarm: Model.Alarm, queryParams?: {
|
|
391
|
+
assetIds?: string[];
|
|
392
|
+
}, options?: O): RestResponse<Model.SentAlarm>;
|
|
317
393
|
/**
|
|
318
|
-
* HTTP GET /
|
|
319
|
-
* Java method: org.openremote.model.
|
|
394
|
+
* HTTP GET /alarm
|
|
395
|
+
* Java method: org.openremote.model.alarm.AlarmResource.getAlarms
|
|
320
396
|
*/
|
|
321
|
-
|
|
397
|
+
getAlarms(queryParams?: {
|
|
398
|
+
realm?: string;
|
|
399
|
+
status?: Model.AlarmStatus;
|
|
400
|
+
assetId?: string;
|
|
401
|
+
assigneeId?: string;
|
|
402
|
+
}, options?: O): RestResponse<Model.SentAlarm[]>;
|
|
322
403
|
/**
|
|
323
|
-
* HTTP
|
|
324
|
-
* Java method: org.openremote.model.
|
|
404
|
+
* HTTP DELETE /alarm
|
|
405
|
+
* Java method: org.openremote.model.alarm.AlarmResource.removeAlarms
|
|
325
406
|
*/
|
|
326
|
-
|
|
407
|
+
removeAlarms(ids: number[], options?: O): RestResponse<void>;
|
|
327
408
|
/**
|
|
328
|
-
* HTTP
|
|
329
|
-
* Java method: org.openremote.model.
|
|
409
|
+
* HTTP PUT /alarm/assets
|
|
410
|
+
* Java method: org.openremote.model.alarm.AlarmResource.setAssetLinks
|
|
330
411
|
*/
|
|
331
|
-
|
|
332
|
-
realm?: string;
|
|
333
|
-
userId?: string;
|
|
334
|
-
assetId?: string;
|
|
335
|
-
}, options?: O): RestResponse<Model.UserAssetLink[]>;
|
|
412
|
+
setAssetLinks(links: Model.AlarmAssetLink[], options?: O): RestResponse<void>;
|
|
336
413
|
/**
|
|
337
|
-
* HTTP
|
|
338
|
-
* Java method: org.openremote.model.
|
|
414
|
+
* HTTP GET /alarm/{alarmId}
|
|
415
|
+
* Java method: org.openremote.model.alarm.AlarmResource.getAlarm
|
|
339
416
|
*/
|
|
340
|
-
|
|
417
|
+
getAlarm(alarmId: number, options?: O): RestResponse<Model.SentAlarm>;
|
|
341
418
|
/**
|
|
342
|
-
* HTTP DELETE /
|
|
343
|
-
* Java method: org.openremote.model.
|
|
419
|
+
* HTTP DELETE /alarm/{alarmId}
|
|
420
|
+
* Java method: org.openremote.model.alarm.AlarmResource.removeAlarm
|
|
344
421
|
*/
|
|
345
|
-
|
|
422
|
+
removeAlarm(alarmId: number, options?: O): RestResponse<void>;
|
|
346
423
|
/**
|
|
347
|
-
* HTTP
|
|
348
|
-
* Java method: org.openremote.model.
|
|
424
|
+
* HTTP PUT /alarm/{alarmId}
|
|
425
|
+
* Java method: org.openremote.model.alarm.AlarmResource.updateAlarm
|
|
349
426
|
*/
|
|
350
|
-
|
|
427
|
+
updateAlarm(alarmId: number, alarm: Model.SentAlarm, options?: O): RestResponse<void>;
|
|
351
428
|
/**
|
|
352
|
-
* HTTP GET /
|
|
353
|
-
* Java method: org.openremote.model.
|
|
429
|
+
* HTTP GET /alarm/{alarmId}/assets
|
|
430
|
+
* Java method: org.openremote.model.alarm.AlarmResource.getAssetLinks
|
|
354
431
|
*/
|
|
355
|
-
|
|
432
|
+
getAssetLinks(alarmId: number, queryParams?: {
|
|
433
|
+
realm?: string;
|
|
434
|
+
}, options?: O): RestResponse<Model.AlarmAssetLink[]>;
|
|
435
|
+
}
|
|
436
|
+
export declare class SyslogResourceClient<O> {
|
|
437
|
+
protected httpClient: HttpClient<O>;
|
|
438
|
+
constructor(httpClient: HttpClient<O>);
|
|
356
439
|
/**
|
|
357
|
-
* HTTP
|
|
358
|
-
* Java method: org.openremote.model.
|
|
440
|
+
* HTTP GET /syslog/config
|
|
441
|
+
* Java method: org.openremote.model.syslog.SyslogResource.getConfig
|
|
359
442
|
*/
|
|
360
|
-
|
|
443
|
+
getConfig(options?: O): RestResponse<Model.SyslogConfig>;
|
|
361
444
|
/**
|
|
362
|
-
* HTTP PUT /
|
|
363
|
-
* Java method: org.openremote.model.
|
|
445
|
+
* HTTP PUT /syslog/config
|
|
446
|
+
* Java method: org.openremote.model.syslog.SyslogResource.updateConfig
|
|
364
447
|
*/
|
|
365
|
-
|
|
448
|
+
updateConfig(config: Model.SyslogConfig, options?: O): RestResponse<void>;
|
|
366
449
|
/**
|
|
367
|
-
* HTTP
|
|
368
|
-
* Java method: org.openremote.model.
|
|
450
|
+
* HTTP DELETE /syslog/event
|
|
451
|
+
* Java method: org.openremote.model.syslog.SyslogResource.clearEvents
|
|
369
452
|
*/
|
|
370
|
-
|
|
453
|
+
clearEvents(options?: O): RestResponse<void>;
|
|
371
454
|
/**
|
|
372
|
-
* HTTP
|
|
373
|
-
* Java method: org.openremote.model.
|
|
455
|
+
* HTTP GET /syslog/event
|
|
456
|
+
* Java method: org.openremote.model.syslog.SyslogResource.getEvents
|
|
374
457
|
*/
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
458
|
+
getEvents(queryParams?: {
|
|
459
|
+
level?: Model.SyslogLevel;
|
|
460
|
+
per_page?: number;
|
|
461
|
+
page?: number;
|
|
462
|
+
from?: number;
|
|
463
|
+
to?: number;
|
|
464
|
+
category?: Model.SyslogCategory[];
|
|
465
|
+
subCategory?: string[];
|
|
466
|
+
}, options?: O): RestResponse<any>;
|
|
378
467
|
}
|
|
379
468
|
export declare class NotificationResourceClient<O> {
|
|
380
469
|
protected httpClient: HttpClient<O>;
|
|
@@ -430,395 +519,350 @@ export declare class NotificationResourceClient<O> {
|
|
|
430
519
|
targetId?: string;
|
|
431
520
|
}, options?: O): RestResponse<void>;
|
|
432
521
|
}
|
|
433
|
-
export declare class
|
|
522
|
+
export declare class RealmResourceClient<O> {
|
|
434
523
|
protected httpClient: HttpClient<O>;
|
|
435
524
|
constructor(httpClient: HttpClient<O>);
|
|
436
525
|
/**
|
|
437
|
-
* HTTP
|
|
438
|
-
* Java method: org.openremote.model.
|
|
526
|
+
* HTTP POST /realm
|
|
527
|
+
* Java method: org.openremote.model.security.RealmResource.create
|
|
439
528
|
*/
|
|
440
|
-
|
|
441
|
-
realm?: string;
|
|
442
|
-
}, options?: O): RestResponse<Model.AssetTreeNode[]>;
|
|
529
|
+
create(realm: Model.Realm, options?: O): RestResponse<void>;
|
|
443
530
|
/**
|
|
444
|
-
* HTTP
|
|
445
|
-
* Java method: org.openremote.model.
|
|
531
|
+
* HTTP GET /realm
|
|
532
|
+
* Java method: org.openremote.model.security.RealmResource.getAll
|
|
446
533
|
*/
|
|
447
|
-
|
|
448
|
-
realm?: string;
|
|
449
|
-
}, options?: O): RestResponse<Model.AssetTreeNode[]>;
|
|
534
|
+
getAll(options?: O): RestResponse<Model.Realm[]>;
|
|
450
535
|
/**
|
|
451
|
-
* HTTP GET /
|
|
452
|
-
* Java method: org.openremote.model.
|
|
536
|
+
* HTTP GET /realm/accessible
|
|
537
|
+
* Java method: org.openremote.model.security.RealmResource.getAccessible
|
|
453
538
|
*/
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
539
|
+
getAccessible(options?: O): RestResponse<Model.Realm[]>;
|
|
540
|
+
/**
|
|
541
|
+
* HTTP DELETE /realm/{name}
|
|
542
|
+
* Java method: org.openremote.model.security.RealmResource.delete
|
|
543
|
+
*/
|
|
544
|
+
delete(name: string, options?: O): RestResponse<void>;
|
|
545
|
+
/**
|
|
546
|
+
* HTTP GET /realm/{name}
|
|
547
|
+
* Java method: org.openremote.model.security.RealmResource.get
|
|
548
|
+
*/
|
|
549
|
+
get(name: string, options?: O): RestResponse<Model.Realm>;
|
|
550
|
+
/**
|
|
551
|
+
* HTTP PUT /realm/{name}
|
|
552
|
+
* Java method: org.openremote.model.security.RealmResource.update
|
|
553
|
+
*/
|
|
554
|
+
update(name: string, realm: Model.Realm, options?: O): RestResponse<void>;
|
|
458
555
|
}
|
|
459
|
-
export declare class
|
|
556
|
+
export declare class DashboardResourceClient<O> {
|
|
460
557
|
protected httpClient: HttpClient<O>;
|
|
461
558
|
constructor(httpClient: HttpClient<O>);
|
|
462
559
|
/**
|
|
463
|
-
* HTTP
|
|
464
|
-
* Java method: org.openremote.model.
|
|
560
|
+
* HTTP POST /dashboard
|
|
561
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.create
|
|
465
562
|
*/
|
|
466
|
-
|
|
563
|
+
create(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
|
|
467
564
|
/**
|
|
468
|
-
* HTTP PUT /
|
|
469
|
-
* Java method: org.openremote.model.
|
|
565
|
+
* HTTP PUT /dashboard
|
|
566
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.update
|
|
470
567
|
*/
|
|
471
|
-
|
|
568
|
+
update(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
|
|
472
569
|
/**
|
|
473
|
-
* HTTP
|
|
474
|
-
* Java method: org.openremote.model.
|
|
570
|
+
* HTTP GET /dashboard/all/{realm}
|
|
571
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.getAllRealmDashboards
|
|
475
572
|
*/
|
|
476
|
-
|
|
573
|
+
getAllRealmDashboards(realm: string, options?: O): RestResponse<Model.Dashboard[]>;
|
|
477
574
|
/**
|
|
478
|
-
* HTTP
|
|
479
|
-
* Java method: org.openremote.model.
|
|
575
|
+
* HTTP POST /dashboard/query
|
|
576
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.query
|
|
480
577
|
*/
|
|
481
|
-
|
|
482
|
-
level?: Model.SyslogLevel;
|
|
483
|
-
per_page?: number;
|
|
484
|
-
page?: number;
|
|
485
|
-
from?: number;
|
|
486
|
-
to?: number;
|
|
487
|
-
category?: Model.SyslogCategory[];
|
|
488
|
-
subCategory?: string[];
|
|
489
|
-
}, options?: O): RestResponse<any>;
|
|
490
|
-
}
|
|
491
|
-
export declare class StatusResourceClient<O> {
|
|
492
|
-
protected httpClient: HttpClient<O>;
|
|
493
|
-
constructor(httpClient: HttpClient<O>);
|
|
578
|
+
query(dashboardQuery: Model.DashboardQuery, options?: O): RestResponse<Model.Dashboard[]>;
|
|
494
579
|
/**
|
|
495
|
-
* HTTP
|
|
496
|
-
* Java method: org.openremote.model.
|
|
580
|
+
* HTTP DELETE /dashboard/{realm}/{dashboardId}
|
|
581
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.delete
|
|
497
582
|
*/
|
|
498
|
-
|
|
499
|
-
[index: string]: any;
|
|
500
|
-
}>;
|
|
583
|
+
delete(realm: string, dashboardId: string, options?: O): RestResponse<void>;
|
|
501
584
|
/**
|
|
502
|
-
* HTTP GET /
|
|
503
|
-
* Java method: org.openremote.model.
|
|
585
|
+
* HTTP GET /dashboard/{realm}/{dashboardId}
|
|
586
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.get
|
|
504
587
|
*/
|
|
505
|
-
|
|
506
|
-
[index: string]: any;
|
|
507
|
-
}>;
|
|
588
|
+
get(realm: string, dashboardId: string, options?: O): RestResponse<Model.Dashboard>;
|
|
508
589
|
}
|
|
509
|
-
export declare class
|
|
590
|
+
export declare class AgentResourceClient<O> {
|
|
510
591
|
protected httpClient: HttpClient<O>;
|
|
511
592
|
constructor(httpClient: HttpClient<O>);
|
|
512
593
|
/**
|
|
513
|
-
* HTTP
|
|
514
|
-
* Java method: org.openremote.model.
|
|
594
|
+
* HTTP GET /agent/assetDiscovery/{agentId}
|
|
595
|
+
* Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetDiscovery
|
|
515
596
|
*/
|
|
516
|
-
|
|
597
|
+
doProtocolAssetDiscovery(agentId: string, queryParams?: {
|
|
598
|
+
realm?: string;
|
|
599
|
+
}, options?: O): RestResponse<Model.AssetTreeNode[]>;
|
|
517
600
|
/**
|
|
518
|
-
* HTTP
|
|
519
|
-
* Java method: org.openremote.model.
|
|
601
|
+
* HTTP POST /agent/assetImport/{agentId}
|
|
602
|
+
* Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetImport
|
|
520
603
|
*/
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
}, options?: O): RestResponse<Model.GlobalRuleset[]>;
|
|
604
|
+
doProtocolAssetImport(agentId: string, fileInfo: Model.FileInfo, queryParams?: {
|
|
605
|
+
realm?: string;
|
|
606
|
+
}, options?: O): RestResponse<Model.AssetTreeNode[]>;
|
|
525
607
|
/**
|
|
526
|
-
* HTTP
|
|
527
|
-
* Java method: org.openremote.model.
|
|
608
|
+
* HTTP GET /agent/instanceDiscovery/{agentType}
|
|
609
|
+
* Java method: org.openremote.model.asset.agent.AgentResource.doProtocolInstanceDiscovery
|
|
528
610
|
*/
|
|
529
|
-
|
|
611
|
+
doProtocolInstanceDiscovery(agentType: string, queryParams?: {
|
|
612
|
+
parentId?: string;
|
|
613
|
+
realm?: string;
|
|
614
|
+
}, options?: O): RestResponse<Model.Agent[]>;
|
|
615
|
+
}
|
|
616
|
+
export declare class AppResourceClient<O> {
|
|
617
|
+
protected httpClient: HttpClient<O>;
|
|
618
|
+
constructor(httpClient: HttpClient<O>);
|
|
530
619
|
/**
|
|
531
|
-
* HTTP GET /
|
|
532
|
-
* Java method: org.openremote.model.
|
|
620
|
+
* HTTP GET /apps
|
|
621
|
+
* Java method: org.openremote.model.apps.AppResource.getApps
|
|
622
|
+
*/
|
|
623
|
+
getApps(options?: O): RestResponse<string[]>;
|
|
624
|
+
/**
|
|
625
|
+
* HTTP GET /apps/consoleConfig
|
|
626
|
+
* Java method: org.openremote.model.apps.AppResource.getConsoleConfig
|
|
627
|
+
*/
|
|
628
|
+
getConsoleConfig(options?: O): RestResponse<any>;
|
|
629
|
+
/**
|
|
630
|
+
* HTTP GET /apps/info
|
|
631
|
+
* Java method: org.openremote.model.apps.AppResource.getAppInfos
|
|
533
632
|
*/
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
633
|
+
getAppInfos(options?: O): RestResponse<any>;
|
|
634
|
+
}
|
|
635
|
+
export declare class UserResourceClient<O> {
|
|
636
|
+
protected httpClient: HttpClient<O>;
|
|
637
|
+
constructor(httpClient: HttpClient<O>);
|
|
538
638
|
/**
|
|
539
|
-
* HTTP
|
|
540
|
-
* Java method: org.openremote.model.
|
|
639
|
+
* HTTP PUT /user/locale
|
|
640
|
+
* Java method: org.openremote.model.security.UserResource.updateCurrentUserLocale
|
|
541
641
|
*/
|
|
542
|
-
|
|
642
|
+
updateCurrentUserLocale(locale: string, options?: O): RestResponse<void>;
|
|
543
643
|
/**
|
|
544
|
-
* HTTP
|
|
545
|
-
* Java method: org.openremote.model.
|
|
644
|
+
* HTTP POST /user/query
|
|
645
|
+
* Java method: org.openremote.model.security.UserResource.query
|
|
546
646
|
*/
|
|
547
|
-
|
|
647
|
+
query(query: Model.UserQuery, options?: O): RestResponse<Model.User[]>;
|
|
548
648
|
/**
|
|
549
|
-
* HTTP PUT /
|
|
550
|
-
* Java method: org.openremote.model.
|
|
649
|
+
* HTTP PUT /user/request-password-reset
|
|
650
|
+
* Java method: org.openremote.model.security.UserResource.requestPasswordResetCurrent
|
|
551
651
|
*/
|
|
552
|
-
|
|
652
|
+
requestPasswordResetCurrent(options?: O): RestResponse<void>;
|
|
553
653
|
/**
|
|
554
|
-
* HTTP
|
|
555
|
-
* Java method: org.openremote.model.
|
|
654
|
+
* HTTP PUT /user/reset-password
|
|
655
|
+
* Java method: org.openremote.model.security.UserResource.updatePasswordCurrent
|
|
556
656
|
*/
|
|
557
|
-
|
|
657
|
+
updatePasswordCurrent(credential: Model.Credential, options?: O): RestResponse<void>;
|
|
558
658
|
/**
|
|
559
|
-
* HTTP
|
|
560
|
-
* Java method: org.openremote.model.
|
|
659
|
+
* HTTP PUT /user/update
|
|
660
|
+
* Java method: org.openremote.model.security.UserResource.updateCurrent
|
|
561
661
|
*/
|
|
562
|
-
|
|
662
|
+
updateCurrent(user: Model.User, options?: O): RestResponse<Model.User>;
|
|
563
663
|
/**
|
|
564
|
-
* HTTP GET /
|
|
565
|
-
* Java method: org.openremote.model.
|
|
664
|
+
* HTTP GET /user/user
|
|
665
|
+
* Java method: org.openremote.model.security.UserResource.getCurrent
|
|
566
666
|
*/
|
|
567
|
-
|
|
667
|
+
getCurrent(options?: O): RestResponse<Model.User>;
|
|
568
668
|
/**
|
|
569
|
-
* HTTP GET /
|
|
570
|
-
* Java method: org.openremote.model.
|
|
669
|
+
* HTTP GET /user/userRealmRoles
|
|
670
|
+
* Java method: org.openremote.model.security.UserResource.getCurrentUserRealmRoles
|
|
571
671
|
*/
|
|
572
|
-
|
|
672
|
+
getCurrentUserRealmRoles(options?: O): RestResponse<string[]>;
|
|
573
673
|
/**
|
|
574
|
-
* HTTP
|
|
575
|
-
* Java method: org.openremote.model.
|
|
674
|
+
* HTTP GET /user/userRoles/{clientId}
|
|
675
|
+
* Java method: org.openremote.model.security.UserResource.getCurrentUserClientRoles
|
|
576
676
|
*/
|
|
577
|
-
|
|
677
|
+
getCurrentUserClientRoles(clientId: string, options?: O): RestResponse<string[]>;
|
|
578
678
|
/**
|
|
579
|
-
* HTTP GET /
|
|
580
|
-
* Java method: org.openremote.model.
|
|
679
|
+
* HTTP GET /user/{realm}/disconnect/{sessionID}
|
|
680
|
+
* Java method: org.openremote.model.security.UserResource.disconnectUserSession
|
|
581
681
|
*/
|
|
582
|
-
|
|
583
|
-
language?: Model.RulesetLang[];
|
|
584
|
-
fullyPopulate?: boolean;
|
|
585
|
-
}, options?: O): RestResponse<Model.RealmRuleset[]>;
|
|
682
|
+
disconnectUserSession(realm: string, sessionID: string, options?: O): RestResponse<void>;
|
|
586
683
|
/**
|
|
587
|
-
* HTTP
|
|
588
|
-
* Java method: org.openremote.model.
|
|
684
|
+
* HTTP PUT /user/{realm}/request-password-reset/{userId}
|
|
685
|
+
* Java method: org.openremote.model.security.UserResource.requestPasswordReset
|
|
589
686
|
*/
|
|
590
|
-
|
|
687
|
+
requestPasswordReset(realm: string, userId: string, options?: O): RestResponse<void>;
|
|
591
688
|
/**
|
|
592
|
-
* HTTP
|
|
593
|
-
* Java method: org.openremote.model.
|
|
689
|
+
* HTTP PUT /user/{realm}/reset-password/{userId}
|
|
690
|
+
* Java method: org.openremote.model.security.UserResource.updatePassword
|
|
594
691
|
*/
|
|
595
|
-
|
|
692
|
+
updatePassword(realm: string, userId: string, credential: Model.Credential, options?: O): RestResponse<void>;
|
|
596
693
|
/**
|
|
597
|
-
* HTTP
|
|
598
|
-
* Java method: org.openremote.model.
|
|
694
|
+
* HTTP GET /user/{realm}/reset-secret/{userId}
|
|
695
|
+
* Java method: org.openremote.model.security.UserResource.resetSecret
|
|
599
696
|
*/
|
|
600
|
-
|
|
697
|
+
resetSecret(realm: string, userId: string, options?: O): RestResponse<string>;
|
|
601
698
|
/**
|
|
602
|
-
* HTTP
|
|
603
|
-
* Java method: org.openremote.model.
|
|
699
|
+
* HTTP PUT /user/{realm}/roles
|
|
700
|
+
* Java method: org.openremote.model.security.UserResource.updateRoles
|
|
604
701
|
*/
|
|
605
|
-
|
|
702
|
+
updateRoles(realm: string, roles: Model.Role[], options?: O): RestResponse<void>;
|
|
606
703
|
/**
|
|
607
|
-
* HTTP GET /
|
|
608
|
-
* Java method: org.openremote.model.
|
|
704
|
+
* HTTP GET /user/{realm}/userRealmRoles/{userId}
|
|
705
|
+
* Java method: org.openremote.model.security.UserResource.getUserRealmRoles
|
|
609
706
|
*/
|
|
610
|
-
|
|
707
|
+
getUserRealmRoles(realm: string, userId: string, options?: O): RestResponse<string[]>;
|
|
611
708
|
/**
|
|
612
|
-
* HTTP PUT /
|
|
613
|
-
* Java method: org.openremote.model.
|
|
709
|
+
* HTTP PUT /user/{realm}/userRealmRoles/{userId}
|
|
710
|
+
* Java method: org.openremote.model.security.UserResource.updateUserRealmRoles
|
|
614
711
|
*/
|
|
615
|
-
|
|
616
|
-
}
|
|
617
|
-
export declare class AssetModelResourceClient<O> {
|
|
618
|
-
protected httpClient: HttpClient<O>;
|
|
619
|
-
constructor(httpClient: HttpClient<O>);
|
|
712
|
+
updateUserRealmRoles(realm: string, userId: string, roles: string[], options?: O): RestResponse<void>;
|
|
620
713
|
/**
|
|
621
|
-
* HTTP GET /
|
|
622
|
-
* Java method: org.openremote.model.
|
|
714
|
+
* HTTP GET /user/{realm}/userRoles/{userId}/{clientId}
|
|
715
|
+
* Java method: org.openremote.model.security.UserResource.getUserClientRoles
|
|
623
716
|
*/
|
|
624
|
-
|
|
625
|
-
parentId?: string;
|
|
626
|
-
parentType?: string;
|
|
627
|
-
}, options?: O): RestResponse<Model.AssetDescriptor[]>;
|
|
717
|
+
getUserClientRoles(realm: string, userId: string, clientId: string, options?: O): RestResponse<string[]>;
|
|
628
718
|
/**
|
|
629
|
-
* HTTP
|
|
630
|
-
* Java method: org.openremote.model.
|
|
719
|
+
* HTTP PUT /user/{realm}/userRoles/{userId}/{clientId}
|
|
720
|
+
* Java method: org.openremote.model.security.UserResource.updateUserClientRoles
|
|
631
721
|
*/
|
|
632
|
-
|
|
633
|
-
parentId?: string;
|
|
634
|
-
}, options?: O): RestResponse<Model.AssetTypeInfo>;
|
|
722
|
+
updateUserClientRoles(realm: string, userId: string, clientId: string, roles: string[], options?: O): RestResponse<void>;
|
|
635
723
|
/**
|
|
636
|
-
* HTTP GET /
|
|
637
|
-
* Java method: org.openremote.model.
|
|
724
|
+
* HTTP GET /user/{realm}/userSessions/{userId}
|
|
725
|
+
* Java method: org.openremote.model.security.UserResource.getUserSessions
|
|
638
726
|
*/
|
|
639
|
-
|
|
640
|
-
parentId?: string;
|
|
641
|
-
parentType?: string;
|
|
642
|
-
}, options?: O): RestResponse<Model.AssetTypeInfo[]>;
|
|
727
|
+
getUserSessions(realm: string, userId: string, options?: O): RestResponse<Model.UserSession[]>;
|
|
643
728
|
/**
|
|
644
|
-
* HTTP
|
|
645
|
-
* Java method: org.openremote.model.
|
|
729
|
+
* HTTP POST /user/{realm}/users
|
|
730
|
+
* Java method: org.openremote.model.security.UserResource.create
|
|
646
731
|
*/
|
|
647
|
-
|
|
648
|
-
name?: string;
|
|
649
|
-
hash?: string;
|
|
650
|
-
}, options?: O): RestResponse<any>;
|
|
732
|
+
create(realm: string, user: Model.User, options?: O): RestResponse<Model.User>;
|
|
651
733
|
/**
|
|
652
|
-
* HTTP
|
|
653
|
-
* Java method: org.openremote.model.
|
|
734
|
+
* HTTP PUT /user/{realm}/users
|
|
735
|
+
* Java method: org.openremote.model.security.UserResource.update
|
|
654
736
|
*/
|
|
655
|
-
|
|
656
|
-
parentId?: string;
|
|
657
|
-
}, options?: O): RestResponse<{
|
|
658
|
-
[index: string]: Model.MetaItemDescriptor;
|
|
659
|
-
}>;
|
|
737
|
+
update(realm: string, user: Model.User, options?: O): RestResponse<Model.User>;
|
|
660
738
|
/**
|
|
661
|
-
* HTTP
|
|
662
|
-
* Java method: org.openremote.model.
|
|
739
|
+
* HTTP DELETE /user/{realm}/users/{userId}
|
|
740
|
+
* Java method: org.openremote.model.security.UserResource.delete
|
|
663
741
|
*/
|
|
664
|
-
|
|
665
|
-
parentId?: string;
|
|
666
|
-
}, options?: O): RestResponse<{
|
|
667
|
-
[index: string]: Model.ValueDescriptor;
|
|
668
|
-
}>;
|
|
669
|
-
}
|
|
670
|
-
export declare class AssetDatapointResourceClient<O> {
|
|
671
|
-
protected httpClient: HttpClient<O>;
|
|
672
|
-
constructor(httpClient: HttpClient<O>);
|
|
742
|
+
delete(realm: string, userId: string, options?: O): RestResponse<void>;
|
|
673
743
|
/**
|
|
674
|
-
* HTTP GET /
|
|
675
|
-
* Java method: org.openremote.model.
|
|
744
|
+
* HTTP GET /user/{realm}/{clientId}/roles
|
|
745
|
+
* Java method: org.openremote.model.security.UserResource.getClientRoles
|
|
676
746
|
*/
|
|
677
|
-
|
|
678
|
-
attributeRefs?: string;
|
|
679
|
-
fromTimestamp?: number;
|
|
680
|
-
toTimestamp?: number;
|
|
681
|
-
}, options?: O): RestResponse<any>;
|
|
747
|
+
getClientRoles(realm: string, clientId: string, options?: O): RestResponse<Model.Role[]>;
|
|
682
748
|
/**
|
|
683
|
-
* HTTP
|
|
684
|
-
* Java method: org.openremote.model.
|
|
749
|
+
* HTTP PUT /user/{realm}/{clientId}/roles
|
|
750
|
+
* Java method: org.openremote.model.security.UserResource.updateClientRoles
|
|
685
751
|
*/
|
|
686
|
-
|
|
687
|
-
assetId?: string;
|
|
688
|
-
attributeName?: string;
|
|
689
|
-
}, options?: O): RestResponse<Model.DatapointPeriod>;
|
|
752
|
+
updateClientRoles(realm: string, clientId: string, roles: Model.Role[], options?: O): RestResponse<void>;
|
|
690
753
|
/**
|
|
691
|
-
* HTTP
|
|
692
|
-
* Java method: org.openremote.model.
|
|
754
|
+
* HTTP GET /user/{realm}/{userId}
|
|
755
|
+
* Java method: org.openremote.model.security.UserResource.get
|
|
693
756
|
*/
|
|
694
|
-
|
|
757
|
+
get(realm: string, userId: string, options?: O): RestResponse<Model.User>;
|
|
695
758
|
}
|
|
696
|
-
export declare class
|
|
759
|
+
export declare class RulesResourceClient<O> {
|
|
697
760
|
protected httpClient: HttpClient<O>;
|
|
698
761
|
constructor(httpClient: HttpClient<O>);
|
|
699
762
|
/**
|
|
700
|
-
* HTTP
|
|
701
|
-
* Java method: org.openremote.model.rules.
|
|
763
|
+
* HTTP POST /rules
|
|
764
|
+
* Java method: org.openremote.model.rules.RulesResource.createGlobalRuleset
|
|
702
765
|
*/
|
|
703
|
-
|
|
766
|
+
createGlobalRuleset(ruleset: Model.GlobalRuleset, options?: O): RestResponse<number>;
|
|
704
767
|
/**
|
|
705
|
-
* HTTP GET /
|
|
706
|
-
* Java method: org.openremote.model.rules.
|
|
768
|
+
* HTTP GET /rules
|
|
769
|
+
* Java method: org.openremote.model.rules.RulesResource.getGlobalRulesets
|
|
707
770
|
*/
|
|
708
|
-
|
|
771
|
+
getGlobalRulesets(queryParams?: {
|
|
772
|
+
language?: Model.RulesetLang[];
|
|
773
|
+
fullyPopulate?: boolean;
|
|
774
|
+
}, options?: O): RestResponse<Model.GlobalRuleset[]>;
|
|
709
775
|
/**
|
|
710
|
-
* HTTP
|
|
711
|
-
* Java method: org.openremote.model.rules.
|
|
776
|
+
* HTTP POST /rules/asset
|
|
777
|
+
* Java method: org.openremote.model.rules.RulesResource.createAssetRuleset
|
|
712
778
|
*/
|
|
713
|
-
|
|
714
|
-
}
|
|
715
|
-
export declare class DashboardResourceClient<O> {
|
|
716
|
-
protected httpClient: HttpClient<O>;
|
|
717
|
-
constructor(httpClient: HttpClient<O>);
|
|
779
|
+
createAssetRuleset(ruleset: Model.AssetRuleset, options?: O): RestResponse<number>;
|
|
718
780
|
/**
|
|
719
|
-
* HTTP
|
|
720
|
-
* Java method: org.openremote.model.
|
|
781
|
+
* HTTP GET /rules/asset/for/{assetId}
|
|
782
|
+
* Java method: org.openremote.model.rules.RulesResource.getAssetRulesets
|
|
721
783
|
*/
|
|
722
|
-
|
|
784
|
+
getAssetRulesets(assetId: string, queryParams?: {
|
|
785
|
+
language?: Model.RulesetLang[];
|
|
786
|
+
fullyPopulate?: boolean;
|
|
787
|
+
}, options?: O): RestResponse<Model.AssetRuleset[]>;
|
|
723
788
|
/**
|
|
724
|
-
* HTTP
|
|
725
|
-
* Java method: org.openremote.model.
|
|
789
|
+
* HTTP DELETE /rules/asset/{id}
|
|
790
|
+
* Java method: org.openremote.model.rules.RulesResource.deleteAssetRuleset
|
|
726
791
|
*/
|
|
727
|
-
|
|
792
|
+
deleteAssetRuleset(id: number, options?: O): RestResponse<void>;
|
|
728
793
|
/**
|
|
729
|
-
* HTTP GET /
|
|
730
|
-
* Java method: org.openremote.model.
|
|
794
|
+
* HTTP GET /rules/asset/{id}
|
|
795
|
+
* Java method: org.openremote.model.rules.RulesResource.getAssetRuleset
|
|
731
796
|
*/
|
|
732
|
-
|
|
797
|
+
getAssetRuleset(id: number, options?: O): RestResponse<Model.AssetRuleset>;
|
|
733
798
|
/**
|
|
734
|
-
* HTTP
|
|
735
|
-
* Java method: org.openremote.model.
|
|
799
|
+
* HTTP PUT /rules/asset/{id}
|
|
800
|
+
* Java method: org.openremote.model.rules.RulesResource.updateAssetRuleset
|
|
736
801
|
*/
|
|
737
|
-
|
|
802
|
+
updateAssetRuleset(id: number, ruleset: Model.AssetRuleset, options?: O): RestResponse<void>;
|
|
738
803
|
/**
|
|
739
|
-
* HTTP
|
|
740
|
-
* Java method: org.openremote.model.
|
|
804
|
+
* HTTP GET /rules/geofences/{assetId}
|
|
805
|
+
* Java method: org.openremote.model.rules.RulesResource.getAssetGeofences
|
|
741
806
|
*/
|
|
742
|
-
|
|
807
|
+
getAssetGeofences(assetId: string, options?: O): RestResponse<Model.GeofenceDefinition[]>;
|
|
743
808
|
/**
|
|
744
|
-
* HTTP GET /
|
|
745
|
-
* Java method: org.openremote.model.
|
|
809
|
+
* HTTP GET /rules/info/asset/{assetId}
|
|
810
|
+
* Java method: org.openremote.model.rules.RulesResource.getAssetEngineInfo
|
|
746
811
|
*/
|
|
747
|
-
|
|
748
|
-
}
|
|
749
|
-
export declare class AppResourceClient<O> {
|
|
750
|
-
protected httpClient: HttpClient<O>;
|
|
751
|
-
constructor(httpClient: HttpClient<O>);
|
|
812
|
+
getAssetEngineInfo(assetId: string, options?: O): RestResponse<Model.RulesEngineInfo>;
|
|
752
813
|
/**
|
|
753
|
-
* HTTP GET /
|
|
754
|
-
* Java method: org.openremote.model.
|
|
814
|
+
* HTTP GET /rules/info/global
|
|
815
|
+
* Java method: org.openremote.model.rules.RulesResource.getGlobalEngineInfo
|
|
755
816
|
*/
|
|
756
|
-
|
|
817
|
+
getGlobalEngineInfo(options?: O): RestResponse<Model.RulesEngineInfo>;
|
|
757
818
|
/**
|
|
758
|
-
* HTTP GET /
|
|
759
|
-
* Java method: org.openremote.model.
|
|
819
|
+
* HTTP GET /rules/info/realm/{realm}
|
|
820
|
+
* Java method: org.openremote.model.rules.RulesResource.getRealmEngineInfo
|
|
760
821
|
*/
|
|
761
|
-
|
|
822
|
+
getRealmEngineInfo(realm: string, options?: O): RestResponse<Model.RulesEngineInfo>;
|
|
762
823
|
/**
|
|
763
|
-
* HTTP
|
|
764
|
-
* Java method: org.openremote.model.
|
|
824
|
+
* HTTP POST /rules/realm
|
|
825
|
+
* Java method: org.openremote.model.rules.RulesResource.createRealmRuleset
|
|
765
826
|
*/
|
|
766
|
-
|
|
767
|
-
}
|
|
768
|
-
export declare class ExternalServiceResourceClient<O> {
|
|
769
|
-
protected httpClient: HttpClient<O>;
|
|
770
|
-
constructor(httpClient: HttpClient<O>);
|
|
827
|
+
createRealmRuleset(ruleset: Model.RealmRuleset, options?: O): RestResponse<number>;
|
|
771
828
|
/**
|
|
772
|
-
*
|
|
773
|
-
*
|
|
774
|
-
* Java method: org.openremote.model.services.ExternalServiceResource.getServices
|
|
829
|
+
* HTTP GET /rules/realm/for/{realm}
|
|
830
|
+
* Java method: org.openremote.model.rules.RulesResource.getRealmRulesets
|
|
775
831
|
*/
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
832
|
+
getRealmRulesets(realm: string, queryParams?: {
|
|
833
|
+
language?: Model.RulesetLang[];
|
|
834
|
+
fullyPopulate?: boolean;
|
|
835
|
+
}, options?: O): RestResponse<Model.RealmRuleset[]>;
|
|
779
836
|
/**
|
|
780
|
-
*
|
|
781
|
-
*
|
|
782
|
-
* Response code 409 - ExternalService instance already registered
|
|
783
|
-
* HTTP POST /service
|
|
784
|
-
* Java method: org.openremote.model.services.ExternalServiceResource.registerService
|
|
837
|
+
* HTTP DELETE /rules/realm/{id}
|
|
838
|
+
* Java method: org.openremote.model.rules.RulesResource.deleteRealmRuleset
|
|
785
839
|
*/
|
|
786
|
-
|
|
840
|
+
deleteRealmRuleset(id: number, options?: O): RestResponse<void>;
|
|
787
841
|
/**
|
|
788
|
-
*
|
|
789
|
-
*
|
|
790
|
-
* Java method: org.openremote.model.services.ExternalServiceResource.getGlobalServices
|
|
842
|
+
* HTTP GET /rules/realm/{id}
|
|
843
|
+
* Java method: org.openremote.model.rules.RulesResource.getRealmRuleset
|
|
791
844
|
*/
|
|
792
|
-
|
|
845
|
+
getRealmRuleset(id: number, options?: O): RestResponse<Model.RealmRuleset>;
|
|
793
846
|
/**
|
|
794
|
-
*
|
|
795
|
-
*
|
|
796
|
-
* Response code 409 - ExternalService instance already registered
|
|
797
|
-
* HTTP POST /service/global
|
|
798
|
-
* Java method: org.openremote.model.services.ExternalServiceResource.registerGlobalService
|
|
847
|
+
* HTTP PUT /rules/realm/{id}
|
|
848
|
+
* Java method: org.openremote.model.rules.RulesResource.updateRealmRuleset
|
|
799
849
|
*/
|
|
800
|
-
|
|
850
|
+
updateRealmRuleset(id: number, ruleset: Model.RealmRuleset, options?: O): RestResponse<void>;
|
|
801
851
|
/**
|
|
802
|
-
*
|
|
803
|
-
*
|
|
804
|
-
* HTTP DELETE /service/{serviceId}/{instanceId}
|
|
805
|
-
* Java method: org.openremote.model.services.ExternalServiceResource.deregisterService
|
|
852
|
+
* HTTP DELETE /rules/{id}
|
|
853
|
+
* Java method: org.openremote.model.rules.RulesResource.deleteGlobalRuleset
|
|
806
854
|
*/
|
|
807
|
-
|
|
855
|
+
deleteGlobalRuleset(id: number, options?: O): RestResponse<void>;
|
|
808
856
|
/**
|
|
809
|
-
*
|
|
810
|
-
*
|
|
811
|
-
* HTTP GET /service/{serviceId}/{instanceId}
|
|
812
|
-
* Java method: org.openremote.model.services.ExternalServiceResource.getService
|
|
857
|
+
* HTTP GET /rules/{id}
|
|
858
|
+
* Java method: org.openremote.model.rules.RulesResource.getGlobalRuleset
|
|
813
859
|
*/
|
|
814
|
-
|
|
860
|
+
getGlobalRuleset(id: number, options?: O): RestResponse<Model.GlobalRuleset>;
|
|
815
861
|
/**
|
|
816
|
-
*
|
|
817
|
-
*
|
|
818
|
-
* HTTP PUT /service/{serviceId}/{instanceId}
|
|
819
|
-
* Java method: org.openremote.model.services.ExternalServiceResource.heartbeat
|
|
862
|
+
* HTTP PUT /rules/{id}
|
|
863
|
+
* Java method: org.openremote.model.rules.RulesResource.updateGlobalRuleset
|
|
820
864
|
*/
|
|
821
|
-
|
|
865
|
+
updateGlobalRuleset(id: number, ruleset: Model.GlobalRuleset, options?: O): RestResponse<void>;
|
|
822
866
|
}
|
|
823
867
|
export declare class GatewayServiceResourceClient<O> {
|
|
824
868
|
protected httpClient: HttpClient<O>;
|
|
@@ -849,67 +893,23 @@ export declare class GatewayServiceResourceClient<O> {
|
|
|
849
893
|
*/
|
|
850
894
|
getActiveTunnelInfo(realm: string, id: string, target: string, targetPort: number, options?: O): RestResponse<Model.GatewayTunnelInfo>;
|
|
851
895
|
}
|
|
852
|
-
export declare class
|
|
853
|
-
protected httpClient: HttpClient<O>;
|
|
854
|
-
constructor(httpClient: HttpClient<O>);
|
|
855
|
-
/**
|
|
856
|
-
* HTTP GET /configuration/manager
|
|
857
|
-
* Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfig
|
|
858
|
-
*/
|
|
859
|
-
getManagerConfig(options?: O): RestResponse<Model.ManagerAppConfig>;
|
|
860
|
-
/**
|
|
861
|
-
* HTTP PUT /configuration/manager
|
|
862
|
-
* Java method: org.openremote.model.manager.ConfigurationResource.update
|
|
863
|
-
*/
|
|
864
|
-
update(managerConfiguration: Model.ManagerAppConfig, options?: O): RestResponse<Model.ManagerAppConfig>;
|
|
865
|
-
/**
|
|
866
|
-
* HTTP POST /configuration/manager/file
|
|
867
|
-
* Java method: org.openremote.model.manager.ConfigurationResource.fileUpload
|
|
868
|
-
*/
|
|
869
|
-
fileUpload(fileInfo: Model.FileInfo, queryParams?: {
|
|
870
|
-
path?: string;
|
|
871
|
-
}, options?: O): RestResponse<string>;
|
|
872
|
-
/**
|
|
873
|
-
* HTTP GET /configuration/manager/image/{filename: .+}
|
|
874
|
-
* Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfigImage
|
|
875
|
-
*/
|
|
876
|
-
getManagerConfigImage(filename: string, options?: O): RestResponse<any>;
|
|
877
|
-
}
|
|
878
|
-
export declare class GatewayClientResourceClient<O> {
|
|
896
|
+
export declare class StatusResourceClient<O> {
|
|
879
897
|
protected httpClient: HttpClient<O>;
|
|
880
898
|
constructor(httpClient: HttpClient<O>);
|
|
881
899
|
/**
|
|
882
|
-
* HTTP
|
|
883
|
-
* Java method: org.openremote.model.
|
|
884
|
-
*/
|
|
885
|
-
deleteConnections(queryParams?: {
|
|
886
|
-
realm?: string[];
|
|
887
|
-
}, options?: O): RestResponse<void>;
|
|
888
|
-
/**
|
|
889
|
-
* HTTP GET /gateway/connection
|
|
890
|
-
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnections
|
|
891
|
-
*/
|
|
892
|
-
getConnections(options?: O): RestResponse<Model.GatewayConnection[]>;
|
|
893
|
-
/**
|
|
894
|
-
* HTTP DELETE /gateway/connection/{realm}
|
|
895
|
-
* Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnection
|
|
896
|
-
*/
|
|
897
|
-
deleteConnection(realm: string, options?: O): RestResponse<void>;
|
|
898
|
-
/**
|
|
899
|
-
* HTTP GET /gateway/connection/{realm}
|
|
900
|
-
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnection
|
|
901
|
-
*/
|
|
902
|
-
getConnection(realm: string, options?: O): RestResponse<Model.GatewayConnection>;
|
|
903
|
-
/**
|
|
904
|
-
* HTTP PUT /gateway/connection/{realm}
|
|
905
|
-
* Java method: org.openremote.model.gateway.GatewayClientResource.setConnection
|
|
900
|
+
* HTTP GET /health
|
|
901
|
+
* Java method: org.openremote.model.system.StatusResource.getHealthStatus
|
|
906
902
|
*/
|
|
907
|
-
|
|
903
|
+
getHealthStatus(options?: O): RestResponse<{
|
|
904
|
+
[index: string]: any;
|
|
905
|
+
}>;
|
|
908
906
|
/**
|
|
909
|
-
* HTTP GET /
|
|
910
|
-
* Java method: org.openremote.model.
|
|
907
|
+
* HTTP GET /info
|
|
908
|
+
* Java method: org.openremote.model.system.StatusResource.getInfo
|
|
911
909
|
*/
|
|
912
|
-
|
|
910
|
+
getInfo(options?: O): RestResponse<{
|
|
911
|
+
[index: string]: any;
|
|
912
|
+
}>;
|
|
913
913
|
}
|
|
914
914
|
export declare class MapResourceClient<O> {
|
|
915
915
|
protected httpClient: HttpClient<O>;
|
|
@@ -966,50 +966,50 @@ export declare class MapResourceClient<O> {
|
|
|
966
966
|
}
|
|
967
967
|
export type RestResponse<R> = Promise<Axios.GenericAxiosResponse<R>>;
|
|
968
968
|
export declare class ApiClient {
|
|
969
|
-
protected
|
|
969
|
+
protected _assetResource: AxiosAssetResourceClient;
|
|
970
|
+
protected _externalServiceResource: AxiosExternalServiceResourceClient;
|
|
971
|
+
protected _gatewayClientResource: AxiosGatewayClientResourceClient;
|
|
972
|
+
protected _flowResource: AxiosFlowResourceClient;
|
|
973
|
+
protected _configurationResource: AxiosConfigurationResourceClient;
|
|
974
|
+
protected _assetDatapointResource: AxiosAssetDatapointResourceClient;
|
|
970
975
|
protected _assetPredictedDatapointResource: AxiosAssetPredictedDatapointResourceClient;
|
|
971
|
-
protected _alarmResource: AxiosAlarmResourceClient;
|
|
972
|
-
protected _userResource: AxiosUserResourceClient;
|
|
973
976
|
protected _provisioningResource: AxiosProvisioningResourceClient;
|
|
974
|
-
protected
|
|
975
|
-
protected _assetResource: AxiosAssetResourceClient;
|
|
976
|
-
protected _notificationResource: AxiosNotificationResourceClient;
|
|
977
|
-
protected _agentResource: AxiosAgentResourceClient;
|
|
978
|
-
protected _syslogResource: AxiosSyslogResourceClient;
|
|
979
|
-
protected _statusResource: AxiosStatusResourceClient;
|
|
980
|
-
protected _rulesResource: AxiosRulesResourceClient;
|
|
977
|
+
protected _consoleResource: AxiosConsoleResourceClient;
|
|
981
978
|
protected _assetModelResource: AxiosAssetModelResourceClient;
|
|
982
|
-
protected
|
|
983
|
-
protected
|
|
979
|
+
protected _alarmResource: AxiosAlarmResourceClient;
|
|
980
|
+
protected _syslogResource: AxiosSyslogResourceClient;
|
|
981
|
+
protected _notificationResource: AxiosNotificationResourceClient;
|
|
982
|
+
protected _realmResource: AxiosRealmResourceClient;
|
|
984
983
|
protected _dashboardResource: AxiosDashboardResourceClient;
|
|
984
|
+
protected _agentResource: AxiosAgentResourceClient;
|
|
985
985
|
protected _appResource: AxiosAppResourceClient;
|
|
986
|
-
protected
|
|
986
|
+
protected _userResource: AxiosUserResourceClient;
|
|
987
|
+
protected _rulesResource: AxiosRulesResourceClient;
|
|
987
988
|
protected _gatewayServiceResource: AxiosGatewayServiceResourceClient;
|
|
988
|
-
protected
|
|
989
|
-
protected _gatewayClientResource: AxiosGatewayClientResourceClient;
|
|
989
|
+
protected _statusResource: AxiosStatusResourceClient;
|
|
990
990
|
protected _mapResource: AxiosMapResourceClient;
|
|
991
991
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
992
|
-
get
|
|
992
|
+
get AssetResource(): AxiosAssetResourceClient;
|
|
993
|
+
get ExternalServiceResource(): AxiosExternalServiceResourceClient;
|
|
994
|
+
get GatewayClientResource(): AxiosGatewayClientResourceClient;
|
|
995
|
+
get FlowResource(): AxiosFlowResourceClient;
|
|
996
|
+
get ConfigurationResource(): AxiosConfigurationResourceClient;
|
|
997
|
+
get AssetDatapointResource(): AxiosAssetDatapointResourceClient;
|
|
993
998
|
get AssetPredictedDatapointResource(): AxiosAssetPredictedDatapointResourceClient;
|
|
994
|
-
get AlarmResource(): AxiosAlarmResourceClient;
|
|
995
|
-
get UserResource(): AxiosUserResourceClient;
|
|
996
999
|
get ProvisioningResource(): AxiosProvisioningResourceClient;
|
|
997
|
-
get
|
|
998
|
-
get AssetResource(): AxiosAssetResourceClient;
|
|
999
|
-
get NotificationResource(): AxiosNotificationResourceClient;
|
|
1000
|
-
get AgentResource(): AxiosAgentResourceClient;
|
|
1001
|
-
get SyslogResource(): AxiosSyslogResourceClient;
|
|
1002
|
-
get StatusResource(): AxiosStatusResourceClient;
|
|
1003
|
-
get RulesResource(): AxiosRulesResourceClient;
|
|
1000
|
+
get ConsoleResource(): AxiosConsoleResourceClient;
|
|
1004
1001
|
get AssetModelResource(): AxiosAssetModelResourceClient;
|
|
1005
|
-
get
|
|
1006
|
-
get
|
|
1002
|
+
get AlarmResource(): AxiosAlarmResourceClient;
|
|
1003
|
+
get SyslogResource(): AxiosSyslogResourceClient;
|
|
1004
|
+
get NotificationResource(): AxiosNotificationResourceClient;
|
|
1005
|
+
get RealmResource(): AxiosRealmResourceClient;
|
|
1007
1006
|
get DashboardResource(): AxiosDashboardResourceClient;
|
|
1007
|
+
get AgentResource(): AxiosAgentResourceClient;
|
|
1008
1008
|
get AppResource(): AxiosAppResourceClient;
|
|
1009
|
-
get
|
|
1009
|
+
get UserResource(): AxiosUserResourceClient;
|
|
1010
|
+
get RulesResource(): AxiosRulesResourceClient;
|
|
1010
1011
|
get GatewayServiceResource(): AxiosGatewayServiceResourceClient;
|
|
1011
|
-
get
|
|
1012
|
-
get GatewayClientResource(): AxiosGatewayClientResourceClient;
|
|
1012
|
+
get StatusResource(): AxiosStatusResourceClient;
|
|
1013
1013
|
get MapResource(): AxiosMapResourceClient;
|
|
1014
1014
|
}
|
|
1015
1015
|
import * as Axios from "axios";
|
|
@@ -1018,67 +1018,67 @@ declare module "axios" {
|
|
|
1018
1018
|
data: R;
|
|
1019
1019
|
}
|
|
1020
1020
|
}
|
|
1021
|
-
export declare class
|
|
1021
|
+
export declare class AxiosAssetResourceClient extends AssetResourceClient<Axios.AxiosRequestConfig> {
|
|
1022
1022
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1023
1023
|
}
|
|
1024
|
-
export declare class
|
|
1024
|
+
export declare class AxiosExternalServiceResourceClient extends ExternalServiceResourceClient<Axios.AxiosRequestConfig> {
|
|
1025
1025
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1026
1026
|
}
|
|
1027
|
-
export declare class
|
|
1027
|
+
export declare class AxiosGatewayClientResourceClient extends GatewayClientResourceClient<Axios.AxiosRequestConfig> {
|
|
1028
1028
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1029
1029
|
}
|
|
1030
|
-
export declare class
|
|
1030
|
+
export declare class AxiosFlowResourceClient extends FlowResourceClient<Axios.AxiosRequestConfig> {
|
|
1031
1031
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1032
1032
|
}
|
|
1033
|
-
export declare class
|
|
1033
|
+
export declare class AxiosConfigurationResourceClient extends ConfigurationResourceClient<Axios.AxiosRequestConfig> {
|
|
1034
1034
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1035
1035
|
}
|
|
1036
|
-
export declare class
|
|
1036
|
+
export declare class AxiosAssetDatapointResourceClient extends AssetDatapointResourceClient<Axios.AxiosRequestConfig> {
|
|
1037
1037
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1038
1038
|
}
|
|
1039
|
-
export declare class
|
|
1039
|
+
export declare class AxiosAssetPredictedDatapointResourceClient extends AssetPredictedDatapointResourceClient<Axios.AxiosRequestConfig> {
|
|
1040
1040
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1041
1041
|
}
|
|
1042
|
-
export declare class
|
|
1042
|
+
export declare class AxiosProvisioningResourceClient extends ProvisioningResourceClient<Axios.AxiosRequestConfig> {
|
|
1043
1043
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1044
1044
|
}
|
|
1045
|
-
export declare class
|
|
1045
|
+
export declare class AxiosConsoleResourceClient extends ConsoleResourceClient<Axios.AxiosRequestConfig> {
|
|
1046
1046
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1047
1047
|
}
|
|
1048
|
-
export declare class
|
|
1048
|
+
export declare class AxiosAssetModelResourceClient extends AssetModelResourceClient<Axios.AxiosRequestConfig> {
|
|
1049
1049
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1050
1050
|
}
|
|
1051
|
-
export declare class
|
|
1051
|
+
export declare class AxiosAlarmResourceClient extends AlarmResourceClient<Axios.AxiosRequestConfig> {
|
|
1052
1052
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1053
1053
|
}
|
|
1054
|
-
export declare class
|
|
1054
|
+
export declare class AxiosSyslogResourceClient extends SyslogResourceClient<Axios.AxiosRequestConfig> {
|
|
1055
1055
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1056
1056
|
}
|
|
1057
|
-
export declare class
|
|
1057
|
+
export declare class AxiosNotificationResourceClient extends NotificationResourceClient<Axios.AxiosRequestConfig> {
|
|
1058
1058
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1059
1059
|
}
|
|
1060
|
-
export declare class
|
|
1060
|
+
export declare class AxiosRealmResourceClient extends RealmResourceClient<Axios.AxiosRequestConfig> {
|
|
1061
1061
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1062
1062
|
}
|
|
1063
|
-
export declare class
|
|
1063
|
+
export declare class AxiosDashboardResourceClient extends DashboardResourceClient<Axios.AxiosRequestConfig> {
|
|
1064
1064
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1065
1065
|
}
|
|
1066
|
-
export declare class
|
|
1066
|
+
export declare class AxiosAgentResourceClient extends AgentResourceClient<Axios.AxiosRequestConfig> {
|
|
1067
1067
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1068
1068
|
}
|
|
1069
1069
|
export declare class AxiosAppResourceClient extends AppResourceClient<Axios.AxiosRequestConfig> {
|
|
1070
1070
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1071
1071
|
}
|
|
1072
|
-
export declare class
|
|
1072
|
+
export declare class AxiosUserResourceClient extends UserResourceClient<Axios.AxiosRequestConfig> {
|
|
1073
1073
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1074
1074
|
}
|
|
1075
|
-
export declare class
|
|
1075
|
+
export declare class AxiosRulesResourceClient extends RulesResourceClient<Axios.AxiosRequestConfig> {
|
|
1076
1076
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1077
1077
|
}
|
|
1078
|
-
export declare class
|
|
1078
|
+
export declare class AxiosGatewayServiceResourceClient extends GatewayServiceResourceClient<Axios.AxiosRequestConfig> {
|
|
1079
1079
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1080
1080
|
}
|
|
1081
|
-
export declare class
|
|
1081
|
+
export declare class AxiosStatusResourceClient extends StatusResourceClient<Axios.AxiosRequestConfig> {
|
|
1082
1082
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1083
1083
|
}
|
|
1084
1084
|
export declare class AxiosMapResourceClient extends MapResourceClient<Axios.AxiosRequestConfig> {
|