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