@openremote/rest 1.4.0-snapshot.20250326163317 → 1.4.0-snapshot.20250328114049
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.js +1 -1
- package/lib/restclient.d.ts +416 -416
- package/lib/restclient.js +1 -1
- package/lib/restclient.js.map +1 -1
- package/package.json +3 -3
package/lib/restclient.d.ts
CHANGED
|
@@ -9,35 +9,6 @@ export interface HttpClient<O> {
|
|
|
9
9
|
options?: O;
|
|
10
10
|
}): RestResponse<R>;
|
|
11
11
|
}
|
|
12
|
-
export declare class GatewayServiceResourceClient<O> {
|
|
13
|
-
protected httpClient: HttpClient<O>;
|
|
14
|
-
constructor(httpClient: HttpClient<O>);
|
|
15
|
-
/**
|
|
16
|
-
* HTTP POST /gateway/tunnel
|
|
17
|
-
* Java method: org.openremote.model.gateway.GatewayServiceResource.startTunnel
|
|
18
|
-
*/
|
|
19
|
-
startTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<Model.GatewayTunnelInfo>;
|
|
20
|
-
/**
|
|
21
|
-
* HTTP DELETE /gateway/tunnel
|
|
22
|
-
* Java method: org.openremote.model.gateway.GatewayServiceResource.stopTunnel
|
|
23
|
-
*/
|
|
24
|
-
stopTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<void>;
|
|
25
|
-
/**
|
|
26
|
-
* HTTP GET /gateway/tunnel/{realm}
|
|
27
|
-
* Java method: org.openremote.model.gateway.GatewayServiceResource.getAllActiveTunnelInfos
|
|
28
|
-
*/
|
|
29
|
-
getAllActiveTunnelInfos(realm: string, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
|
|
30
|
-
/**
|
|
31
|
-
* HTTP GET /gateway/tunnel/{realm}/{id}
|
|
32
|
-
* Java method: org.openremote.model.gateway.GatewayServiceResource.getGatewayActiveTunnelInfos
|
|
33
|
-
*/
|
|
34
|
-
getGatewayActiveTunnelInfos(realm: string, id: string, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
|
|
35
|
-
/**
|
|
36
|
-
* HTTP GET /gateway/tunnel/{realm}/{id}/{target}/{targetPort}
|
|
37
|
-
* Java method: org.openremote.model.gateway.GatewayServiceResource.getActiveTunnelInfo
|
|
38
|
-
*/
|
|
39
|
-
getActiveTunnelInfo(realm: string, id: string, target: string, targetPort: number, options?: O): RestResponse<Model.GatewayTunnelInfo>;
|
|
40
|
-
}
|
|
41
12
|
export declare class AssetPredictedDatapointResourceClient<O> {
|
|
42
13
|
protected httpClient: HttpClient<O>;
|
|
43
14
|
constructor(httpClient: HttpClient<O>);
|
|
@@ -52,83 +23,64 @@ export declare class AssetPredictedDatapointResourceClient<O> {
|
|
|
52
23
|
*/
|
|
53
24
|
writePredictedDatapoints(assetId: string, attributeName: string, predictedDatapoints: Model.ValueDatapoint<any>[], options?: O): RestResponse<void>;
|
|
54
25
|
}
|
|
55
|
-
export declare class
|
|
26
|
+
export declare class ProvisioningResourceClient<O> {
|
|
56
27
|
protected httpClient: HttpClient<O>;
|
|
57
28
|
constructor(httpClient: HttpClient<O>);
|
|
58
29
|
/**
|
|
59
|
-
* HTTP
|
|
60
|
-
* Java method: org.openremote.model.
|
|
61
|
-
*/
|
|
62
|
-
doProtocolAssetDiscovery(agentId: string, queryParams?: {
|
|
63
|
-
realm?: string;
|
|
64
|
-
}, options?: O): RestResponse<Model.AssetTreeNode[]>;
|
|
65
|
-
/**
|
|
66
|
-
* HTTP POST /agent/assetImport/{agentId}
|
|
67
|
-
* Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetImport
|
|
30
|
+
* HTTP POST /provisioning
|
|
31
|
+
* Java method: org.openremote.model.provisioning.ProvisioningResource.createProvisioningConfig
|
|
68
32
|
*/
|
|
69
|
-
|
|
70
|
-
realm?: string;
|
|
71
|
-
}, options?: O): RestResponse<Model.AssetTreeNode[]>;
|
|
33
|
+
createProvisioningConfig(provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<number>;
|
|
72
34
|
/**
|
|
73
|
-
* HTTP GET /
|
|
74
|
-
* Java method: org.openremote.model.
|
|
35
|
+
* HTTP GET /provisioning
|
|
36
|
+
* Java method: org.openremote.model.provisioning.ProvisioningResource.getProvisioningConfigs
|
|
75
37
|
*/
|
|
76
|
-
|
|
77
|
-
parentId?: string;
|
|
78
|
-
realm?: string;
|
|
79
|
-
}, options?: O): RestResponse<Model.Agent[]>;
|
|
80
|
-
}
|
|
81
|
-
export declare class StatusResourceClient<O> {
|
|
82
|
-
protected httpClient: HttpClient<O>;
|
|
83
|
-
constructor(httpClient: HttpClient<O>);
|
|
38
|
+
getProvisioningConfigs(options?: O): RestResponse<Model.ProvisioningConfigUnion<any, any>[]>;
|
|
84
39
|
/**
|
|
85
|
-
* HTTP
|
|
86
|
-
* Java method: org.openremote.model.
|
|
40
|
+
* HTTP DELETE /provisioning/{id}
|
|
41
|
+
* Java method: org.openremote.model.provisioning.ProvisioningResource.deleteProvisioningConfig
|
|
87
42
|
*/
|
|
88
|
-
|
|
89
|
-
[index: string]: any;
|
|
90
|
-
}>;
|
|
43
|
+
deleteProvisioningConfig(id: number, options?: O): RestResponse<void>;
|
|
91
44
|
/**
|
|
92
|
-
* HTTP
|
|
93
|
-
* Java method: org.openremote.model.
|
|
45
|
+
* HTTP PUT /provisioning/{id}
|
|
46
|
+
* Java method: org.openremote.model.provisioning.ProvisioningResource.updateProvisioningConfig
|
|
94
47
|
*/
|
|
95
|
-
|
|
96
|
-
[index: string]: any;
|
|
97
|
-
}>;
|
|
48
|
+
updateProvisioningConfig(id: number, provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<void>;
|
|
98
49
|
}
|
|
99
|
-
export declare class
|
|
50
|
+
export declare class AssetDatapointResourceClient<O> {
|
|
100
51
|
protected httpClient: HttpClient<O>;
|
|
101
52
|
constructor(httpClient: HttpClient<O>);
|
|
102
53
|
/**
|
|
103
|
-
* HTTP
|
|
104
|
-
* Java method: org.openremote.model.
|
|
105
|
-
*/
|
|
106
|
-
create(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
|
|
107
|
-
/**
|
|
108
|
-
* HTTP PUT /dashboard
|
|
109
|
-
* Java method: org.openremote.model.dashboard.DashboardResource.update
|
|
110
|
-
*/
|
|
111
|
-
update(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
|
|
112
|
-
/**
|
|
113
|
-
* HTTP GET /dashboard/all/{realm}
|
|
114
|
-
* Java method: org.openremote.model.dashboard.DashboardResource.getAllRealmDashboards
|
|
54
|
+
* HTTP GET /asset/datapoint/export
|
|
55
|
+
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointExport
|
|
115
56
|
*/
|
|
116
|
-
|
|
57
|
+
getDatapointExport(queryParams?: {
|
|
58
|
+
attributeRefs?: string;
|
|
59
|
+
fromTimestamp?: number;
|
|
60
|
+
toTimestamp?: number;
|
|
61
|
+
}, options?: O): RestResponse<any>;
|
|
117
62
|
/**
|
|
118
|
-
* HTTP
|
|
119
|
-
* Java method: org.openremote.model.
|
|
63
|
+
* HTTP GET /asset/datapoint/periods
|
|
64
|
+
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointPeriod
|
|
120
65
|
*/
|
|
121
|
-
|
|
66
|
+
getDatapointPeriod(queryParams?: {
|
|
67
|
+
assetId?: string;
|
|
68
|
+
attributeName?: string;
|
|
69
|
+
}, options?: O): RestResponse<Model.DatapointPeriod>;
|
|
122
70
|
/**
|
|
123
|
-
* HTTP
|
|
124
|
-
* Java method: org.openremote.model.
|
|
71
|
+
* HTTP POST /asset/datapoint/{assetId}/{attributeName}
|
|
72
|
+
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapoints
|
|
125
73
|
*/
|
|
126
|
-
|
|
74
|
+
getDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
|
|
75
|
+
}
|
|
76
|
+
export declare class ConsoleResourceClient<O> {
|
|
77
|
+
protected httpClient: HttpClient<O>;
|
|
78
|
+
constructor(httpClient: HttpClient<O>);
|
|
127
79
|
/**
|
|
128
|
-
* HTTP
|
|
129
|
-
* Java method: org.openremote.model.
|
|
80
|
+
* HTTP POST /console/register
|
|
81
|
+
* Java method: org.openremote.model.console.ConsoleResource.register
|
|
130
82
|
*/
|
|
131
|
-
|
|
83
|
+
register(consoleRegistration: Model.ConsoleRegistration, options?: O): RestResponse<Model.ConsoleRegistration>;
|
|
132
84
|
}
|
|
133
85
|
export declare class UserResourceClient<O> {
|
|
134
86
|
protected httpClient: HttpClient<O>;
|
|
@@ -254,39 +206,104 @@ export declare class UserResourceClient<O> {
|
|
|
254
206
|
*/
|
|
255
207
|
get(realm: string, userId: string, options?: O): RestResponse<Model.User>;
|
|
256
208
|
}
|
|
257
|
-
export declare class
|
|
209
|
+
export declare class GatewayServiceResourceClient<O> {
|
|
258
210
|
protected httpClient: HttpClient<O>;
|
|
259
211
|
constructor(httpClient: HttpClient<O>);
|
|
260
212
|
/**
|
|
261
|
-
* HTTP POST /
|
|
262
|
-
* Java method: org.openremote.model.
|
|
213
|
+
* HTTP POST /gateway/tunnel
|
|
214
|
+
* Java method: org.openremote.model.gateway.GatewayServiceResource.startTunnel
|
|
263
215
|
*/
|
|
264
|
-
|
|
216
|
+
startTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<Model.GatewayTunnelInfo>;
|
|
265
217
|
/**
|
|
266
|
-
* HTTP
|
|
267
|
-
* Java method: org.openremote.model.
|
|
218
|
+
* HTTP DELETE /gateway/tunnel
|
|
219
|
+
* Java method: org.openremote.model.gateway.GatewayServiceResource.stopTunnel
|
|
268
220
|
*/
|
|
269
|
-
|
|
221
|
+
stopTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<void>;
|
|
270
222
|
/**
|
|
271
|
-
* HTTP GET /realm
|
|
272
|
-
* Java method: org.openremote.model.
|
|
223
|
+
* HTTP GET /gateway/tunnel/{realm}
|
|
224
|
+
* Java method: org.openremote.model.gateway.GatewayServiceResource.getAllActiveTunnelInfos
|
|
273
225
|
*/
|
|
274
|
-
|
|
226
|
+
getAllActiveTunnelInfos(realm: string, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
|
|
275
227
|
/**
|
|
276
|
-
* HTTP
|
|
277
|
-
* Java method: org.openremote.model.
|
|
228
|
+
* HTTP GET /gateway/tunnel/{realm}/{id}
|
|
229
|
+
* Java method: org.openremote.model.gateway.GatewayServiceResource.getGatewayActiveTunnelInfos
|
|
278
230
|
*/
|
|
279
|
-
|
|
231
|
+
getGatewayActiveTunnelInfos(realm: string, id: string, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
|
|
280
232
|
/**
|
|
281
|
-
* HTTP GET /realm/{
|
|
282
|
-
* Java method: org.openremote.model.
|
|
233
|
+
* HTTP GET /gateway/tunnel/{realm}/{id}/{target}/{targetPort}
|
|
234
|
+
* Java method: org.openremote.model.gateway.GatewayServiceResource.getActiveTunnelInfo
|
|
283
235
|
*/
|
|
284
|
-
|
|
236
|
+
getActiveTunnelInfo(realm: string, id: string, target: string, targetPort: number, options?: O): RestResponse<Model.GatewayTunnelInfo>;
|
|
237
|
+
}
|
|
238
|
+
export declare class ConfigurationResourceClient<O> {
|
|
239
|
+
protected httpClient: HttpClient<O>;
|
|
240
|
+
constructor(httpClient: HttpClient<O>);
|
|
285
241
|
/**
|
|
286
|
-
* HTTP
|
|
287
|
-
* Java method: org.openremote.model.
|
|
242
|
+
* HTTP GET /configuration/manager
|
|
243
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfig
|
|
288
244
|
*/
|
|
289
|
-
|
|
245
|
+
getManagerConfig(options?: O): RestResponse<Model.ManagerAppConfig>;
|
|
246
|
+
/**
|
|
247
|
+
* HTTP PUT /configuration/manager
|
|
248
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.update
|
|
249
|
+
*/
|
|
250
|
+
update(managerConfiguration: Model.ManagerAppConfig, options?: O): RestResponse<Model.ManagerAppConfig>;
|
|
251
|
+
/**
|
|
252
|
+
* HTTP POST /configuration/manager/file
|
|
253
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.fileUpload
|
|
254
|
+
*/
|
|
255
|
+
fileUpload(fileInfo: Model.FileInfo, queryParams?: {
|
|
256
|
+
path?: string;
|
|
257
|
+
}, options?: O): RestResponse<string>;
|
|
258
|
+
/**
|
|
259
|
+
* HTTP GET /configuration/manager/image/{filename: .+}
|
|
260
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfigImage
|
|
261
|
+
*/
|
|
262
|
+
getManagerConfigImage(filename: string, options?: O): RestResponse<any>;
|
|
263
|
+
}
|
|
264
|
+
export declare class AgentResourceClient<O> {
|
|
265
|
+
protected httpClient: HttpClient<O>;
|
|
266
|
+
constructor(httpClient: HttpClient<O>);
|
|
267
|
+
/**
|
|
268
|
+
* HTTP GET /agent/assetDiscovery/{agentId}
|
|
269
|
+
* Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetDiscovery
|
|
270
|
+
*/
|
|
271
|
+
doProtocolAssetDiscovery(agentId: string, queryParams?: {
|
|
272
|
+
realm?: string;
|
|
273
|
+
}, options?: O): RestResponse<Model.AssetTreeNode[]>;
|
|
274
|
+
/**
|
|
275
|
+
* HTTP POST /agent/assetImport/{agentId}
|
|
276
|
+
* Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetImport
|
|
277
|
+
*/
|
|
278
|
+
doProtocolAssetImport(agentId: string, fileInfo: Model.FileInfo, queryParams?: {
|
|
279
|
+
realm?: string;
|
|
280
|
+
}, options?: O): RestResponse<Model.AssetTreeNode[]>;
|
|
281
|
+
/**
|
|
282
|
+
* HTTP GET /agent/instanceDiscovery/{agentType}
|
|
283
|
+
* Java method: org.openremote.model.asset.agent.AgentResource.doProtocolInstanceDiscovery
|
|
284
|
+
*/
|
|
285
|
+
doProtocolInstanceDiscovery(agentType: string, queryParams?: {
|
|
286
|
+
parentId?: string;
|
|
287
|
+
realm?: string;
|
|
288
|
+
}, options?: O): RestResponse<Model.Agent[]>;
|
|
289
|
+
}
|
|
290
|
+
export declare class StatusResourceClient<O> {
|
|
291
|
+
protected httpClient: HttpClient<O>;
|
|
292
|
+
constructor(httpClient: HttpClient<O>);
|
|
293
|
+
/**
|
|
294
|
+
* HTTP GET /health
|
|
295
|
+
* Java method: org.openremote.model.system.StatusResource.getHealthStatus
|
|
296
|
+
*/
|
|
297
|
+
getHealthStatus(options?: O): RestResponse<{
|
|
298
|
+
[index: string]: any;
|
|
299
|
+
}>;
|
|
300
|
+
/**
|
|
301
|
+
* HTTP GET /info
|
|
302
|
+
* Java method: org.openremote.model.system.StatusResource.getInfo
|
|
303
|
+
*/
|
|
304
|
+
getInfo(options?: O): RestResponse<{
|
|
305
|
+
[index: string]: any;
|
|
306
|
+
}>;
|
|
290
307
|
}
|
|
291
308
|
export declare class GatewayClientResourceClient<O> {
|
|
292
309
|
protected httpClient: HttpClient<O>;
|
|
@@ -324,205 +341,26 @@ export declare class GatewayClientResourceClient<O> {
|
|
|
324
341
|
*/
|
|
325
342
|
getConnectionStatus(realm: string, options?: O): RestResponse<Model.ConnectionStatus>;
|
|
326
343
|
}
|
|
327
|
-
export declare class
|
|
344
|
+
export declare class AssetResourceClient<O> {
|
|
328
345
|
protected httpClient: HttpClient<O>;
|
|
329
346
|
constructor(httpClient: HttpClient<O>);
|
|
330
347
|
/**
|
|
331
|
-
* HTTP
|
|
332
|
-
* Java method: org.openremote.model.asset.
|
|
348
|
+
* HTTP POST /asset
|
|
349
|
+
* Java method: org.openremote.model.asset.AssetResource.create
|
|
333
350
|
*/
|
|
334
|
-
|
|
335
|
-
parentId?: string;
|
|
336
|
-
parentType?: string;
|
|
337
|
-
}, options?: O): RestResponse<Model.AssetDescriptor[]>;
|
|
351
|
+
create(asset: Model.Asset, options?: O): RestResponse<Model.Asset>;
|
|
338
352
|
/**
|
|
339
|
-
* HTTP
|
|
340
|
-
* Java method: org.openremote.model.asset.
|
|
353
|
+
* HTTP DELETE /asset
|
|
354
|
+
* Java method: org.openremote.model.asset.AssetResource.delete
|
|
341
355
|
*/
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
}, options?: O): RestResponse<
|
|
356
|
+
delete(queryParams?: {
|
|
357
|
+
assetId?: string[];
|
|
358
|
+
}, options?: O): RestResponse<void>;
|
|
345
359
|
/**
|
|
346
|
-
* HTTP
|
|
347
|
-
* Java method: org.openremote.model.asset.
|
|
360
|
+
* HTTP PUT /asset/attributes
|
|
361
|
+
* Java method: org.openremote.model.asset.AssetResource.writeAttributeValues
|
|
348
362
|
*/
|
|
349
|
-
|
|
350
|
-
parentId?: string;
|
|
351
|
-
parentType?: string;
|
|
352
|
-
}, options?: O): RestResponse<Model.AssetTypeInfo[]>;
|
|
353
|
-
/**
|
|
354
|
-
* HTTP GET /model/metaItemDescriptors
|
|
355
|
-
* Java method: org.openremote.model.asset.AssetModelResource.getMetaItemDescriptors
|
|
356
|
-
*/
|
|
357
|
-
getMetaItemDescriptors(queryParams?: {
|
|
358
|
-
parentId?: string;
|
|
359
|
-
}, options?: O): RestResponse<{
|
|
360
|
-
[index: string]: Model.MetaItemDescriptor;
|
|
361
|
-
}>;
|
|
362
|
-
/**
|
|
363
|
-
* HTTP GET /model/valueDescriptors
|
|
364
|
-
* Java method: org.openremote.model.asset.AssetModelResource.getValueDescriptors
|
|
365
|
-
*/
|
|
366
|
-
getValueDescriptors(queryParams?: {
|
|
367
|
-
parentId?: string;
|
|
368
|
-
}, options?: O): RestResponse<{
|
|
369
|
-
[index: string]: Model.ValueDescriptor;
|
|
370
|
-
}>;
|
|
371
|
-
}
|
|
372
|
-
export declare class ConfigurationResourceClient<O> {
|
|
373
|
-
protected httpClient: HttpClient<O>;
|
|
374
|
-
constructor(httpClient: HttpClient<O>);
|
|
375
|
-
/**
|
|
376
|
-
* HTTP GET /configuration/manager
|
|
377
|
-
* Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfig
|
|
378
|
-
*/
|
|
379
|
-
getManagerConfig(options?: O): RestResponse<Model.ManagerAppConfig>;
|
|
380
|
-
/**
|
|
381
|
-
* HTTP PUT /configuration/manager
|
|
382
|
-
* Java method: org.openremote.model.manager.ConfigurationResource.update
|
|
383
|
-
*/
|
|
384
|
-
update(managerConfiguration: Model.ManagerAppConfig, options?: O): RestResponse<Model.ManagerAppConfig>;
|
|
385
|
-
/**
|
|
386
|
-
* HTTP POST /configuration/manager/file
|
|
387
|
-
* Java method: org.openremote.model.manager.ConfigurationResource.fileUpload
|
|
388
|
-
*/
|
|
389
|
-
fileUpload(fileInfo: Model.FileInfo, queryParams?: {
|
|
390
|
-
path?: string;
|
|
391
|
-
}, options?: O): RestResponse<string>;
|
|
392
|
-
/**
|
|
393
|
-
* HTTP GET /configuration/manager/image/{filename: .+}
|
|
394
|
-
* Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfigImage
|
|
395
|
-
*/
|
|
396
|
-
getManagerConfigImage(filename: string, options?: O): RestResponse<any>;
|
|
397
|
-
}
|
|
398
|
-
export declare class FlowResourceClient<O> {
|
|
399
|
-
protected httpClient: HttpClient<O>;
|
|
400
|
-
constructor(httpClient: HttpClient<O>);
|
|
401
|
-
/**
|
|
402
|
-
* HTTP GET /flow
|
|
403
|
-
* Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitions
|
|
404
|
-
*/
|
|
405
|
-
getAllNodeDefinitions(options?: O): RestResponse<Model.Node[]>;
|
|
406
|
-
/**
|
|
407
|
-
* HTTP GET /flow/{name}
|
|
408
|
-
* Java method: org.openremote.model.rules.flow.FlowResource.getNodeDefinition
|
|
409
|
-
*/
|
|
410
|
-
getNodeDefinition(name: string, options?: O): RestResponse<Model.Node>;
|
|
411
|
-
/**
|
|
412
|
-
* HTTP GET /flow/{type}
|
|
413
|
-
* Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitionsByType
|
|
414
|
-
*/
|
|
415
|
-
getAllNodeDefinitionsByType(type: Model.NodeType, options?: O): RestResponse<Model.Node[]>;
|
|
416
|
-
}
|
|
417
|
-
export declare class AssetDatapointResourceClient<O> {
|
|
418
|
-
protected httpClient: HttpClient<O>;
|
|
419
|
-
constructor(httpClient: HttpClient<O>);
|
|
420
|
-
/**
|
|
421
|
-
* HTTP GET /asset/datapoint/export
|
|
422
|
-
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointExport
|
|
423
|
-
*/
|
|
424
|
-
getDatapointExport(queryParams?: {
|
|
425
|
-
attributeRefs?: string;
|
|
426
|
-
fromTimestamp?: number;
|
|
427
|
-
toTimestamp?: number;
|
|
428
|
-
}, options?: O): RestResponse<any>;
|
|
429
|
-
/**
|
|
430
|
-
* HTTP GET /asset/datapoint/periods
|
|
431
|
-
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointPeriod
|
|
432
|
-
*/
|
|
433
|
-
getDatapointPeriod(queryParams?: {
|
|
434
|
-
assetId?: string;
|
|
435
|
-
attributeName?: string;
|
|
436
|
-
}, options?: O): RestResponse<Model.DatapointPeriod>;
|
|
437
|
-
/**
|
|
438
|
-
* HTTP POST /asset/datapoint/{assetId}/{attributeName}
|
|
439
|
-
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapoints
|
|
440
|
-
*/
|
|
441
|
-
getDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
|
|
442
|
-
}
|
|
443
|
-
export declare class ConsoleResourceClient<O> {
|
|
444
|
-
protected httpClient: HttpClient<O>;
|
|
445
|
-
constructor(httpClient: HttpClient<O>);
|
|
446
|
-
/**
|
|
447
|
-
* HTTP POST /console/register
|
|
448
|
-
* Java method: org.openremote.model.console.ConsoleResource.register
|
|
449
|
-
*/
|
|
450
|
-
register(consoleRegistration: Model.ConsoleRegistration, options?: O): RestResponse<Model.ConsoleRegistration>;
|
|
451
|
-
}
|
|
452
|
-
export declare class NotificationResourceClient<O> {
|
|
453
|
-
protected httpClient: HttpClient<O>;
|
|
454
|
-
constructor(httpClient: HttpClient<O>);
|
|
455
|
-
/**
|
|
456
|
-
* HTTP GET /notification
|
|
457
|
-
* Java method: org.openremote.model.notification.NotificationResource.getNotifications
|
|
458
|
-
*/
|
|
459
|
-
getNotifications(queryParams?: {
|
|
460
|
-
id?: number;
|
|
461
|
-
type?: string;
|
|
462
|
-
from?: number;
|
|
463
|
-
to?: number;
|
|
464
|
-
realmId?: string;
|
|
465
|
-
userId?: string;
|
|
466
|
-
assetId?: string;
|
|
467
|
-
}, options?: O): RestResponse<Model.SentNotification[]>;
|
|
468
|
-
/**
|
|
469
|
-
* HTTP DELETE /notification
|
|
470
|
-
* Java method: org.openremote.model.notification.NotificationResource.removeNotifications
|
|
471
|
-
*/
|
|
472
|
-
removeNotifications(queryParams?: {
|
|
473
|
-
id?: number;
|
|
474
|
-
type?: string;
|
|
475
|
-
from?: number;
|
|
476
|
-
to?: number;
|
|
477
|
-
realmId?: string;
|
|
478
|
-
userId?: string;
|
|
479
|
-
assetId?: string;
|
|
480
|
-
}, options?: O): RestResponse<void>;
|
|
481
|
-
/**
|
|
482
|
-
* HTTP POST /notification/alert
|
|
483
|
-
* Java method: org.openremote.model.notification.NotificationResource.sendNotification
|
|
484
|
-
*/
|
|
485
|
-
sendNotification(notification: Model.Notification, options?: O): RestResponse<void>;
|
|
486
|
-
/**
|
|
487
|
-
* HTTP DELETE /notification/{notificationId}
|
|
488
|
-
* Java method: org.openremote.model.notification.NotificationResource.removeNotification
|
|
489
|
-
*/
|
|
490
|
-
removeNotification(notificationId: number, options?: O): RestResponse<void>;
|
|
491
|
-
/**
|
|
492
|
-
* HTTP PUT /notification/{notificationId}/acknowledged
|
|
493
|
-
* Java method: org.openremote.model.notification.NotificationResource.notificationAcknowledged
|
|
494
|
-
*/
|
|
495
|
-
notificationAcknowledged(notificationId: number, acknowledgement: any, queryParams?: {
|
|
496
|
-
targetId?: string;
|
|
497
|
-
}, options?: O): RestResponse<void>;
|
|
498
|
-
/**
|
|
499
|
-
* HTTP PUT /notification/{notificationId}/delivered
|
|
500
|
-
* Java method: org.openremote.model.notification.NotificationResource.notificationDelivered
|
|
501
|
-
*/
|
|
502
|
-
notificationDelivered(notificationId: number, queryParams?: {
|
|
503
|
-
targetId?: string;
|
|
504
|
-
}, options?: O): RestResponse<void>;
|
|
505
|
-
}
|
|
506
|
-
export declare class AssetResourceClient<O> {
|
|
507
|
-
protected httpClient: HttpClient<O>;
|
|
508
|
-
constructor(httpClient: HttpClient<O>);
|
|
509
|
-
/**
|
|
510
|
-
* HTTP POST /asset
|
|
511
|
-
* Java method: org.openremote.model.asset.AssetResource.create
|
|
512
|
-
*/
|
|
513
|
-
create(asset: Model.Asset, options?: O): RestResponse<Model.Asset>;
|
|
514
|
-
/**
|
|
515
|
-
* HTTP DELETE /asset
|
|
516
|
-
* Java method: org.openremote.model.asset.AssetResource.delete
|
|
517
|
-
*/
|
|
518
|
-
delete(queryParams?: {
|
|
519
|
-
assetId?: string[];
|
|
520
|
-
}, options?: O): RestResponse<void>;
|
|
521
|
-
/**
|
|
522
|
-
* HTTP PUT /asset/attributes
|
|
523
|
-
* Java method: org.openremote.model.asset.AssetResource.writeAttributeValues
|
|
524
|
-
*/
|
|
525
|
-
writeAttributeValues(attributeStates: Model.AttributeState[], options?: O): RestResponse<Model.AttributeWriteResult[]>;
|
|
363
|
+
writeAttributeValues(attributeStates: Model.AttributeState[], options?: O): RestResponse<Model.AttributeWriteResult[]>;
|
|
526
364
|
/**
|
|
527
365
|
* HTTP PUT /asset/attributes/timestamp
|
|
528
366
|
* Java method: org.openremote.model.asset.AssetResource.writeAttributeEvents
|
|
@@ -639,78 +477,146 @@ export declare class SyslogResourceClient<O> {
|
|
|
639
477
|
subCategory?: string[];
|
|
640
478
|
}, options?: O): RestResponse<any>;
|
|
641
479
|
}
|
|
642
|
-
export declare class
|
|
480
|
+
export declare class AlarmResourceClient<O> {
|
|
643
481
|
protected httpClient: HttpClient<O>;
|
|
644
482
|
constructor(httpClient: HttpClient<O>);
|
|
645
483
|
/**
|
|
646
|
-
* HTTP POST /
|
|
647
|
-
* Java method: org.openremote.model.
|
|
484
|
+
* HTTP POST /alarm
|
|
485
|
+
* Java method: org.openremote.model.alarm.AlarmResource.createAlarm
|
|
648
486
|
*/
|
|
649
|
-
|
|
487
|
+
createAlarm(alarm: Model.Alarm, queryParams?: {
|
|
488
|
+
assetIds?: string[];
|
|
489
|
+
}, options?: O): RestResponse<Model.SentAlarm>;
|
|
650
490
|
/**
|
|
651
|
-
* HTTP GET /
|
|
652
|
-
* Java method: org.openremote.model.
|
|
491
|
+
* HTTP GET /alarm
|
|
492
|
+
* Java method: org.openremote.model.alarm.AlarmResource.getAlarms
|
|
653
493
|
*/
|
|
654
|
-
|
|
494
|
+
getAlarms(queryParams?: {
|
|
495
|
+
realm?: string;
|
|
496
|
+
status?: Model.AlarmStatus;
|
|
497
|
+
assetId?: string;
|
|
498
|
+
assigneeId?: string;
|
|
499
|
+
}, options?: O): RestResponse<Model.SentAlarm[]>;
|
|
655
500
|
/**
|
|
656
|
-
* HTTP DELETE /
|
|
657
|
-
* Java method: org.openremote.model.
|
|
501
|
+
* HTTP DELETE /alarm
|
|
502
|
+
* Java method: org.openremote.model.alarm.AlarmResource.removeAlarms
|
|
658
503
|
*/
|
|
659
|
-
|
|
504
|
+
removeAlarms(ids: number[], options?: O): RestResponse<void>;
|
|
660
505
|
/**
|
|
661
|
-
* HTTP PUT /
|
|
662
|
-
* Java method: org.openremote.model.
|
|
506
|
+
* HTTP PUT /alarm/assets
|
|
507
|
+
* Java method: org.openremote.model.alarm.AlarmResource.setAssetLinks
|
|
663
508
|
*/
|
|
664
|
-
|
|
509
|
+
setAssetLinks(links: Model.AlarmAssetLink[], options?: O): RestResponse<void>;
|
|
510
|
+
/**
|
|
511
|
+
* HTTP GET /alarm/{alarmId}
|
|
512
|
+
* Java method: org.openremote.model.alarm.AlarmResource.getAlarm
|
|
513
|
+
*/
|
|
514
|
+
getAlarm(alarmId: number, options?: O): RestResponse<Model.SentAlarm>;
|
|
515
|
+
/**
|
|
516
|
+
* HTTP DELETE /alarm/{alarmId}
|
|
517
|
+
* Java method: org.openremote.model.alarm.AlarmResource.removeAlarm
|
|
518
|
+
*/
|
|
519
|
+
removeAlarm(alarmId: number, options?: O): RestResponse<void>;
|
|
520
|
+
/**
|
|
521
|
+
* HTTP PUT /alarm/{alarmId}
|
|
522
|
+
* Java method: org.openremote.model.alarm.AlarmResource.updateAlarm
|
|
523
|
+
*/
|
|
524
|
+
updateAlarm(alarmId: number, alarm: Model.SentAlarm, options?: O): RestResponse<void>;
|
|
525
|
+
/**
|
|
526
|
+
* HTTP GET /alarm/{alarmId}/assets
|
|
527
|
+
* Java method: org.openremote.model.alarm.AlarmResource.getAssetLinks
|
|
528
|
+
*/
|
|
529
|
+
getAssetLinks(alarmId: number, queryParams?: {
|
|
530
|
+
realm?: string;
|
|
531
|
+
}, options?: O): RestResponse<Model.AlarmAssetLink[]>;
|
|
665
532
|
}
|
|
666
|
-
export declare class
|
|
533
|
+
export declare class NotificationResourceClient<O> {
|
|
667
534
|
protected httpClient: HttpClient<O>;
|
|
668
535
|
constructor(httpClient: HttpClient<O>);
|
|
669
536
|
/**
|
|
670
|
-
* HTTP GET /
|
|
671
|
-
* Java method: org.openremote.model.
|
|
537
|
+
* HTTP GET /notification
|
|
538
|
+
* Java method: org.openremote.model.notification.NotificationResource.getNotifications
|
|
672
539
|
*/
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
540
|
+
getNotifications(queryParams?: {
|
|
541
|
+
id?: number;
|
|
542
|
+
type?: string;
|
|
543
|
+
from?: number;
|
|
544
|
+
to?: number;
|
|
545
|
+
realmId?: string;
|
|
546
|
+
userId?: string;
|
|
547
|
+
assetId?: string;
|
|
548
|
+
}, options?: O): RestResponse<Model.SentNotification[]>;
|
|
676
549
|
/**
|
|
677
|
-
* HTTP
|
|
678
|
-
* Java method: org.openremote.model.
|
|
550
|
+
* HTTP DELETE /notification
|
|
551
|
+
* Java method: org.openremote.model.notification.NotificationResource.removeNotifications
|
|
679
552
|
*/
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
553
|
+
removeNotifications(queryParams?: {
|
|
554
|
+
id?: number;
|
|
555
|
+
type?: string;
|
|
556
|
+
from?: number;
|
|
557
|
+
to?: number;
|
|
558
|
+
realmId?: string;
|
|
559
|
+
userId?: string;
|
|
560
|
+
assetId?: string;
|
|
561
|
+
}, options?: O): RestResponse<void>;
|
|
683
562
|
/**
|
|
684
|
-
* HTTP
|
|
685
|
-
* Java method: org.openremote.model.
|
|
563
|
+
* HTTP POST /notification/alert
|
|
564
|
+
* Java method: org.openremote.model.notification.NotificationResource.sendNotification
|
|
686
565
|
*/
|
|
687
|
-
|
|
688
|
-
[id: string]: unknown;
|
|
689
|
-
}>;
|
|
566
|
+
sendNotification(notification: Model.Notification, options?: O): RestResponse<void>;
|
|
690
567
|
/**
|
|
691
|
-
* HTTP
|
|
692
|
-
* Java method: org.openremote.model.
|
|
568
|
+
* HTTP DELETE /notification/{notificationId}
|
|
569
|
+
* Java method: org.openremote.model.notification.NotificationResource.removeNotification
|
|
693
570
|
*/
|
|
694
|
-
|
|
571
|
+
removeNotification(notificationId: number, options?: O): RestResponse<void>;
|
|
572
|
+
/**
|
|
573
|
+
* HTTP PUT /notification/{notificationId}/acknowledged
|
|
574
|
+
* Java method: org.openremote.model.notification.NotificationResource.notificationAcknowledged
|
|
575
|
+
*/
|
|
576
|
+
notificationAcknowledged(notificationId: number, acknowledgement: any, queryParams?: {
|
|
577
|
+
targetId?: string;
|
|
578
|
+
}, options?: O): RestResponse<void>;
|
|
579
|
+
/**
|
|
580
|
+
* HTTP PUT /notification/{notificationId}/delivered
|
|
581
|
+
* Java method: org.openremote.model.notification.NotificationResource.notificationDelivered
|
|
582
|
+
*/
|
|
583
|
+
notificationDelivered(notificationId: number, queryParams?: {
|
|
584
|
+
targetId?: string;
|
|
585
|
+
}, options?: O): RestResponse<void>;
|
|
695
586
|
}
|
|
696
|
-
export declare class
|
|
587
|
+
export declare class DashboardResourceClient<O> {
|
|
697
588
|
protected httpClient: HttpClient<O>;
|
|
698
589
|
constructor(httpClient: HttpClient<O>);
|
|
699
590
|
/**
|
|
700
|
-
* HTTP
|
|
701
|
-
* Java method: org.openremote.model.
|
|
591
|
+
* HTTP POST /dashboard
|
|
592
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.create
|
|
702
593
|
*/
|
|
703
|
-
|
|
594
|
+
create(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
|
|
704
595
|
/**
|
|
705
|
-
* HTTP
|
|
706
|
-
* Java method: org.openremote.model.
|
|
596
|
+
* HTTP PUT /dashboard
|
|
597
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.update
|
|
707
598
|
*/
|
|
708
|
-
|
|
599
|
+
update(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
|
|
709
600
|
/**
|
|
710
|
-
* HTTP GET /
|
|
711
|
-
* Java method: org.openremote.model.
|
|
601
|
+
* HTTP GET /dashboard/all/{realm}
|
|
602
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.getAllRealmDashboards
|
|
603
|
+
*/
|
|
604
|
+
getAllRealmDashboards(realm: string, options?: O): RestResponse<Model.Dashboard[]>;
|
|
605
|
+
/**
|
|
606
|
+
* HTTP POST /dashboard/query
|
|
607
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.query
|
|
608
|
+
*/
|
|
609
|
+
query(dashboardQuery: Model.DashboardQuery, options?: O): RestResponse<Model.Dashboard[]>;
|
|
610
|
+
/**
|
|
611
|
+
* HTTP DELETE /dashboard/{realm}/{dashboardId}
|
|
612
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.delete
|
|
613
|
+
*/
|
|
614
|
+
delete(realm: string, dashboardId: string, options?: O): RestResponse<void>;
|
|
615
|
+
/**
|
|
616
|
+
* HTTP GET /dashboard/{realm}/{dashboardId}
|
|
617
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.get
|
|
712
618
|
*/
|
|
713
|
-
|
|
619
|
+
get(realm: string, dashboardId: string, options?: O): RestResponse<Model.Dashboard>;
|
|
714
620
|
}
|
|
715
621
|
export declare class RulesResourceClient<O> {
|
|
716
622
|
protected httpClient: HttpClient<O>;
|
|
@@ -820,104 +726,198 @@ export declare class RulesResourceClient<O> {
|
|
|
820
726
|
*/
|
|
821
727
|
updateGlobalRuleset(id: number, ruleset: Model.GlobalRuleset, options?: O): RestResponse<void>;
|
|
822
728
|
}
|
|
823
|
-
export declare class
|
|
729
|
+
export declare class MapResourceClient<O> {
|
|
824
730
|
protected httpClient: HttpClient<O>;
|
|
825
731
|
constructor(httpClient: HttpClient<O>);
|
|
826
732
|
/**
|
|
827
|
-
* HTTP
|
|
828
|
-
* Java method: org.openremote.model.
|
|
733
|
+
* HTTP GET /map
|
|
734
|
+
* Java method: org.openremote.model.map.MapResource.getSettings
|
|
829
735
|
*/
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
}
|
|
736
|
+
getSettings(options?: O): RestResponse<{
|
|
737
|
+
[id: string]: unknown;
|
|
738
|
+
}>;
|
|
833
739
|
/**
|
|
834
|
-
* HTTP
|
|
835
|
-
* Java method: org.openremote.model.
|
|
740
|
+
* HTTP PUT /map
|
|
741
|
+
* Java method: org.openremote.model.map.MapResource.saveSettings
|
|
836
742
|
*/
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
assetId?: string;
|
|
841
|
-
assigneeId?: string;
|
|
842
|
-
}, options?: O): RestResponse<Model.SentAlarm[]>;
|
|
743
|
+
saveSettings(mapConfig: {
|
|
744
|
+
[index: string]: Model.MapRealmConfig;
|
|
745
|
+
}, options?: O): RestResponse<any>;
|
|
843
746
|
/**
|
|
844
|
-
* HTTP
|
|
845
|
-
* Java method: org.openremote.model.
|
|
747
|
+
* HTTP GET /map/js
|
|
748
|
+
* Java method: org.openremote.model.map.MapResource.getSettingsJs
|
|
846
749
|
*/
|
|
847
|
-
|
|
750
|
+
getSettingsJs(options?: O): RestResponse<{
|
|
751
|
+
[id: string]: unknown;
|
|
752
|
+
}>;
|
|
848
753
|
/**
|
|
849
|
-
* HTTP
|
|
850
|
-
* Java method: org.openremote.model.
|
|
754
|
+
* HTTP GET /map/tile/{zoom}/{column}/{row}
|
|
755
|
+
* Java method: org.openremote.model.map.MapResource.getTile
|
|
851
756
|
*/
|
|
852
|
-
|
|
757
|
+
getTile(zoom: number, column: number, row: number, options?: O): RestResponse<any>;
|
|
758
|
+
}
|
|
759
|
+
export declare class AppResourceClient<O> {
|
|
760
|
+
protected httpClient: HttpClient<O>;
|
|
761
|
+
constructor(httpClient: HttpClient<O>);
|
|
853
762
|
/**
|
|
854
|
-
* HTTP GET /
|
|
855
|
-
* Java method: org.openremote.model.
|
|
763
|
+
* HTTP GET /apps
|
|
764
|
+
* Java method: org.openremote.model.apps.AppResource.getApps
|
|
856
765
|
*/
|
|
857
|
-
|
|
766
|
+
getApps(options?: O): RestResponse<string[]>;
|
|
858
767
|
/**
|
|
859
|
-
* HTTP
|
|
860
|
-
* Java method: org.openremote.model.
|
|
768
|
+
* HTTP GET /apps/consoleConfig
|
|
769
|
+
* Java method: org.openremote.model.apps.AppResource.getConsoleConfig
|
|
861
770
|
*/
|
|
862
|
-
|
|
771
|
+
getConsoleConfig(options?: O): RestResponse<any>;
|
|
863
772
|
/**
|
|
864
|
-
* HTTP
|
|
865
|
-
* Java method: org.openremote.model.
|
|
773
|
+
* HTTP GET /apps/info
|
|
774
|
+
* Java method: org.openremote.model.apps.AppResource.getAppInfos
|
|
866
775
|
*/
|
|
867
|
-
|
|
776
|
+
getAppInfos(options?: O): RestResponse<any>;
|
|
777
|
+
}
|
|
778
|
+
export declare class RealmResourceClient<O> {
|
|
779
|
+
protected httpClient: HttpClient<O>;
|
|
780
|
+
constructor(httpClient: HttpClient<O>);
|
|
868
781
|
/**
|
|
869
|
-
* HTTP
|
|
870
|
-
* Java method: org.openremote.model.
|
|
782
|
+
* HTTP POST /realm
|
|
783
|
+
* Java method: org.openremote.model.security.RealmResource.create
|
|
871
784
|
*/
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
785
|
+
create(realm: Model.Realm, options?: O): RestResponse<void>;
|
|
786
|
+
/**
|
|
787
|
+
* HTTP GET /realm
|
|
788
|
+
* Java method: org.openremote.model.security.RealmResource.getAll
|
|
789
|
+
*/
|
|
790
|
+
getAll(options?: O): RestResponse<Model.Realm[]>;
|
|
791
|
+
/**
|
|
792
|
+
* HTTP GET /realm/accessible
|
|
793
|
+
* Java method: org.openremote.model.security.RealmResource.getAccessible
|
|
794
|
+
*/
|
|
795
|
+
getAccessible(options?: O): RestResponse<Model.Realm[]>;
|
|
796
|
+
/**
|
|
797
|
+
* HTTP DELETE /realm/{name}
|
|
798
|
+
* Java method: org.openremote.model.security.RealmResource.delete
|
|
799
|
+
*/
|
|
800
|
+
delete(name: string, options?: O): RestResponse<void>;
|
|
801
|
+
/**
|
|
802
|
+
* HTTP GET /realm/{name}
|
|
803
|
+
* Java method: org.openremote.model.security.RealmResource.get
|
|
804
|
+
*/
|
|
805
|
+
get(name: string, options?: O): RestResponse<Model.Realm>;
|
|
806
|
+
/**
|
|
807
|
+
* HTTP PUT /realm/{name}
|
|
808
|
+
* Java method: org.openremote.model.security.RealmResource.update
|
|
809
|
+
*/
|
|
810
|
+
update(name: string, realm: Model.Realm, options?: O): RestResponse<void>;
|
|
811
|
+
}
|
|
812
|
+
export declare class FlowResourceClient<O> {
|
|
813
|
+
protected httpClient: HttpClient<O>;
|
|
814
|
+
constructor(httpClient: HttpClient<O>);
|
|
815
|
+
/**
|
|
816
|
+
* HTTP GET /flow
|
|
817
|
+
* Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitions
|
|
818
|
+
*/
|
|
819
|
+
getAllNodeDefinitions(options?: O): RestResponse<Model.Node[]>;
|
|
820
|
+
/**
|
|
821
|
+
* HTTP GET /flow/{name}
|
|
822
|
+
* Java method: org.openremote.model.rules.flow.FlowResource.getNodeDefinition
|
|
823
|
+
*/
|
|
824
|
+
getNodeDefinition(name: string, options?: O): RestResponse<Model.Node>;
|
|
825
|
+
/**
|
|
826
|
+
* HTTP GET /flow/{type}
|
|
827
|
+
* Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitionsByType
|
|
828
|
+
*/
|
|
829
|
+
getAllNodeDefinitionsByType(type: Model.NodeType, options?: O): RestResponse<Model.Node[]>;
|
|
830
|
+
}
|
|
831
|
+
export declare class AssetModelResourceClient<O> {
|
|
832
|
+
protected httpClient: HttpClient<O>;
|
|
833
|
+
constructor(httpClient: HttpClient<O>);
|
|
834
|
+
/**
|
|
835
|
+
* HTTP GET /model/assetDescriptors
|
|
836
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getAssetDescriptors
|
|
837
|
+
*/
|
|
838
|
+
getAssetDescriptors(queryParams?: {
|
|
839
|
+
parentId?: string;
|
|
840
|
+
parentType?: string;
|
|
841
|
+
}, options?: O): RestResponse<Model.AssetDescriptor[]>;
|
|
842
|
+
/**
|
|
843
|
+
* HTTP GET /model/assetInfo/{assetType}
|
|
844
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getAssetInfo
|
|
845
|
+
*/
|
|
846
|
+
getAssetInfo(assetType: string, queryParams?: {
|
|
847
|
+
parentId?: string;
|
|
848
|
+
}, options?: O): RestResponse<Model.AssetTypeInfo>;
|
|
849
|
+
/**
|
|
850
|
+
* HTTP GET /model/assetInfos
|
|
851
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getAssetInfos
|
|
852
|
+
*/
|
|
853
|
+
getAssetInfos(queryParams?: {
|
|
854
|
+
parentId?: string;
|
|
855
|
+
parentType?: string;
|
|
856
|
+
}, options?: O): RestResponse<Model.AssetTypeInfo[]>;
|
|
857
|
+
/**
|
|
858
|
+
* HTTP GET /model/metaItemDescriptors
|
|
859
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getMetaItemDescriptors
|
|
860
|
+
*/
|
|
861
|
+
getMetaItemDescriptors(queryParams?: {
|
|
862
|
+
parentId?: string;
|
|
863
|
+
}, options?: O): RestResponse<{
|
|
864
|
+
[index: string]: Model.MetaItemDescriptor;
|
|
865
|
+
}>;
|
|
866
|
+
/**
|
|
867
|
+
* HTTP GET /model/valueDescriptors
|
|
868
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getValueDescriptors
|
|
869
|
+
*/
|
|
870
|
+
getValueDescriptors(queryParams?: {
|
|
871
|
+
parentId?: string;
|
|
872
|
+
}, options?: O): RestResponse<{
|
|
873
|
+
[index: string]: Model.ValueDescriptor;
|
|
874
|
+
}>;
|
|
875
875
|
}
|
|
876
876
|
export type RestResponse<R> = Promise<Axios.GenericAxiosResponse<R>>;
|
|
877
877
|
export declare class ApiClient {
|
|
878
|
-
protected _gatewayServiceResource: AxiosGatewayServiceResourceClient;
|
|
879
878
|
protected _assetPredictedDatapointResource: AxiosAssetPredictedDatapointResourceClient;
|
|
879
|
+
protected _provisioningResource: AxiosProvisioningResourceClient;
|
|
880
|
+
protected _assetDatapointResource: AxiosAssetDatapointResourceClient;
|
|
881
|
+
protected _consoleResource: AxiosConsoleResourceClient;
|
|
882
|
+
protected _userResource: AxiosUserResourceClient;
|
|
883
|
+
protected _gatewayServiceResource: AxiosGatewayServiceResourceClient;
|
|
884
|
+
protected _configurationResource: AxiosConfigurationResourceClient;
|
|
880
885
|
protected _agentResource: AxiosAgentResourceClient;
|
|
881
886
|
protected _statusResource: AxiosStatusResourceClient;
|
|
882
|
-
protected _dashboardResource: AxiosDashboardResourceClient;
|
|
883
|
-
protected _userResource: AxiosUserResourceClient;
|
|
884
|
-
protected _realmResource: AxiosRealmResourceClient;
|
|
885
887
|
protected _gatewayClientResource: AxiosGatewayClientResourceClient;
|
|
886
|
-
protected _assetModelResource: AxiosAssetModelResourceClient;
|
|
887
|
-
protected _configurationResource: AxiosConfigurationResourceClient;
|
|
888
|
-
protected _flowResource: AxiosFlowResourceClient;
|
|
889
|
-
protected _assetDatapointResource: AxiosAssetDatapointResourceClient;
|
|
890
|
-
protected _consoleResource: AxiosConsoleResourceClient;
|
|
891
|
-
protected _notificationResource: AxiosNotificationResourceClient;
|
|
892
888
|
protected _assetResource: AxiosAssetResourceClient;
|
|
893
889
|
protected _syslogResource: AxiosSyslogResourceClient;
|
|
894
|
-
protected
|
|
890
|
+
protected _alarmResource: AxiosAlarmResourceClient;
|
|
891
|
+
protected _notificationResource: AxiosNotificationResourceClient;
|
|
892
|
+
protected _dashboardResource: AxiosDashboardResourceClient;
|
|
893
|
+
protected _rulesResource: AxiosRulesResourceClient;
|
|
895
894
|
protected _mapResource: AxiosMapResourceClient;
|
|
896
895
|
protected _appResource: AxiosAppResourceClient;
|
|
897
|
-
protected
|
|
898
|
-
protected
|
|
896
|
+
protected _realmResource: AxiosRealmResourceClient;
|
|
897
|
+
protected _flowResource: AxiosFlowResourceClient;
|
|
898
|
+
protected _assetModelResource: AxiosAssetModelResourceClient;
|
|
899
899
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
900
|
-
get GatewayServiceResource(): AxiosGatewayServiceResourceClient;
|
|
901
900
|
get AssetPredictedDatapointResource(): AxiosAssetPredictedDatapointResourceClient;
|
|
901
|
+
get ProvisioningResource(): AxiosProvisioningResourceClient;
|
|
902
|
+
get AssetDatapointResource(): AxiosAssetDatapointResourceClient;
|
|
903
|
+
get ConsoleResource(): AxiosConsoleResourceClient;
|
|
904
|
+
get UserResource(): AxiosUserResourceClient;
|
|
905
|
+
get GatewayServiceResource(): AxiosGatewayServiceResourceClient;
|
|
906
|
+
get ConfigurationResource(): AxiosConfigurationResourceClient;
|
|
902
907
|
get AgentResource(): AxiosAgentResourceClient;
|
|
903
908
|
get StatusResource(): AxiosStatusResourceClient;
|
|
904
|
-
get DashboardResource(): AxiosDashboardResourceClient;
|
|
905
|
-
get UserResource(): AxiosUserResourceClient;
|
|
906
|
-
get RealmResource(): AxiosRealmResourceClient;
|
|
907
909
|
get GatewayClientResource(): AxiosGatewayClientResourceClient;
|
|
908
|
-
get AssetModelResource(): AxiosAssetModelResourceClient;
|
|
909
|
-
get ConfigurationResource(): AxiosConfigurationResourceClient;
|
|
910
|
-
get FlowResource(): AxiosFlowResourceClient;
|
|
911
|
-
get AssetDatapointResource(): AxiosAssetDatapointResourceClient;
|
|
912
|
-
get ConsoleResource(): AxiosConsoleResourceClient;
|
|
913
|
-
get NotificationResource(): AxiosNotificationResourceClient;
|
|
914
910
|
get AssetResource(): AxiosAssetResourceClient;
|
|
915
911
|
get SyslogResource(): AxiosSyslogResourceClient;
|
|
916
|
-
get
|
|
912
|
+
get AlarmResource(): AxiosAlarmResourceClient;
|
|
913
|
+
get NotificationResource(): AxiosNotificationResourceClient;
|
|
914
|
+
get DashboardResource(): AxiosDashboardResourceClient;
|
|
915
|
+
get RulesResource(): AxiosRulesResourceClient;
|
|
917
916
|
get MapResource(): AxiosMapResourceClient;
|
|
918
917
|
get AppResource(): AxiosAppResourceClient;
|
|
919
|
-
get
|
|
920
|
-
get
|
|
918
|
+
get RealmResource(): AxiosRealmResourceClient;
|
|
919
|
+
get FlowResource(): AxiosFlowResourceClient;
|
|
920
|
+
get AssetModelResource(): AxiosAssetModelResourceClient;
|
|
921
921
|
}
|
|
922
922
|
import * as Axios from "axios";
|
|
923
923
|
declare module "axios" {
|
|
@@ -925,55 +925,52 @@ declare module "axios" {
|
|
|
925
925
|
data: R;
|
|
926
926
|
}
|
|
927
927
|
}
|
|
928
|
-
export declare class AxiosGatewayServiceResourceClient extends GatewayServiceResourceClient<Axios.AxiosRequestConfig> {
|
|
929
|
-
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
930
|
-
}
|
|
931
928
|
export declare class AxiosAssetPredictedDatapointResourceClient extends AssetPredictedDatapointResourceClient<Axios.AxiosRequestConfig> {
|
|
932
929
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
933
930
|
}
|
|
934
|
-
export declare class
|
|
931
|
+
export declare class AxiosProvisioningResourceClient extends ProvisioningResourceClient<Axios.AxiosRequestConfig> {
|
|
935
932
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
936
933
|
}
|
|
937
|
-
export declare class
|
|
934
|
+
export declare class AxiosAssetDatapointResourceClient extends AssetDatapointResourceClient<Axios.AxiosRequestConfig> {
|
|
938
935
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
939
936
|
}
|
|
940
|
-
export declare class
|
|
937
|
+
export declare class AxiosConsoleResourceClient extends ConsoleResourceClient<Axios.AxiosRequestConfig> {
|
|
941
938
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
942
939
|
}
|
|
943
940
|
export declare class AxiosUserResourceClient extends UserResourceClient<Axios.AxiosRequestConfig> {
|
|
944
941
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
945
942
|
}
|
|
946
|
-
export declare class
|
|
943
|
+
export declare class AxiosGatewayServiceResourceClient extends GatewayServiceResourceClient<Axios.AxiosRequestConfig> {
|
|
947
944
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
948
945
|
}
|
|
949
|
-
export declare class
|
|
946
|
+
export declare class AxiosConfigurationResourceClient extends ConfigurationResourceClient<Axios.AxiosRequestConfig> {
|
|
950
947
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
951
948
|
}
|
|
952
|
-
export declare class
|
|
949
|
+
export declare class AxiosAgentResourceClient extends AgentResourceClient<Axios.AxiosRequestConfig> {
|
|
953
950
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
954
951
|
}
|
|
955
|
-
export declare class
|
|
952
|
+
export declare class AxiosStatusResourceClient extends StatusResourceClient<Axios.AxiosRequestConfig> {
|
|
956
953
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
957
954
|
}
|
|
958
|
-
export declare class
|
|
955
|
+
export declare class AxiosGatewayClientResourceClient extends GatewayClientResourceClient<Axios.AxiosRequestConfig> {
|
|
959
956
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
960
957
|
}
|
|
961
|
-
export declare class
|
|
958
|
+
export declare class AxiosAssetResourceClient extends AssetResourceClient<Axios.AxiosRequestConfig> {
|
|
962
959
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
963
960
|
}
|
|
964
|
-
export declare class
|
|
961
|
+
export declare class AxiosSyslogResourceClient extends SyslogResourceClient<Axios.AxiosRequestConfig> {
|
|
965
962
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
966
963
|
}
|
|
967
|
-
export declare class
|
|
964
|
+
export declare class AxiosAlarmResourceClient extends AlarmResourceClient<Axios.AxiosRequestConfig> {
|
|
968
965
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
969
966
|
}
|
|
970
|
-
export declare class
|
|
967
|
+
export declare class AxiosNotificationResourceClient extends NotificationResourceClient<Axios.AxiosRequestConfig> {
|
|
971
968
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
972
969
|
}
|
|
973
|
-
export declare class
|
|
970
|
+
export declare class AxiosDashboardResourceClient extends DashboardResourceClient<Axios.AxiosRequestConfig> {
|
|
974
971
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
975
972
|
}
|
|
976
|
-
export declare class
|
|
973
|
+
export declare class AxiosRulesResourceClient extends RulesResourceClient<Axios.AxiosRequestConfig> {
|
|
977
974
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
978
975
|
}
|
|
979
976
|
export declare class AxiosMapResourceClient extends MapResourceClient<Axios.AxiosRequestConfig> {
|
|
@@ -982,9 +979,12 @@ export declare class AxiosMapResourceClient extends MapResourceClient<Axios.Axio
|
|
|
982
979
|
export declare class AxiosAppResourceClient extends AppResourceClient<Axios.AxiosRequestConfig> {
|
|
983
980
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
984
981
|
}
|
|
985
|
-
export declare class
|
|
982
|
+
export declare class AxiosRealmResourceClient extends RealmResourceClient<Axios.AxiosRequestConfig> {
|
|
986
983
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
987
984
|
}
|
|
988
|
-
export declare class
|
|
985
|
+
export declare class AxiosFlowResourceClient extends FlowResourceClient<Axios.AxiosRequestConfig> {
|
|
986
|
+
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
987
|
+
}
|
|
988
|
+
export declare class AxiosAssetModelResourceClient extends AssetModelResourceClient<Axios.AxiosRequestConfig> {
|
|
989
989
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
990
990
|
}
|