@openremote/rest 1.4.0-snapshot.20250304170726 → 1.4.0-snapshot.20250310212521
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 +427 -427
- 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,116 +9,29 @@ export interface HttpClient<O> {
|
|
|
9
9
|
options?: O;
|
|
10
10
|
}): RestResponse<R>;
|
|
11
11
|
}
|
|
12
|
-
export declare class
|
|
13
|
-
protected httpClient: HttpClient<O>;
|
|
14
|
-
constructor(httpClient: HttpClient<O>);
|
|
15
|
-
/**
|
|
16
|
-
* HTTP GET /configuration/manager
|
|
17
|
-
* Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfig
|
|
18
|
-
*/
|
|
19
|
-
getManagerConfig(options?: O): RestResponse<Model.ManagerAppConfig>;
|
|
20
|
-
/**
|
|
21
|
-
* HTTP PUT /configuration/manager
|
|
22
|
-
* Java method: org.openremote.model.manager.ConfigurationResource.update
|
|
23
|
-
*/
|
|
24
|
-
update(managerConfiguration: Model.ManagerAppConfig, options?: O): RestResponse<Model.ManagerAppConfig>;
|
|
25
|
-
/**
|
|
26
|
-
* HTTP POST /configuration/manager/file
|
|
27
|
-
* Java method: org.openremote.model.manager.ConfigurationResource.fileUpload
|
|
28
|
-
*/
|
|
29
|
-
fileUpload(fileInfo: Model.FileInfo, queryParams?: {
|
|
30
|
-
path?: string;
|
|
31
|
-
}, options?: O): RestResponse<string>;
|
|
32
|
-
/**
|
|
33
|
-
* HTTP GET /configuration/manager/image/{filename: .+}
|
|
34
|
-
* Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfigImage
|
|
35
|
-
*/
|
|
36
|
-
getManagerConfigImage(filename: string, options?: O): RestResponse<any>;
|
|
37
|
-
}
|
|
38
|
-
export declare class AssetPredictedDatapointResourceClient<O> {
|
|
39
|
-
protected httpClient: HttpClient<O>;
|
|
40
|
-
constructor(httpClient: HttpClient<O>);
|
|
41
|
-
/**
|
|
42
|
-
* HTTP POST /asset/predicted/{assetId}/{attributeName}
|
|
43
|
-
* Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.getPredictedDatapoints
|
|
44
|
-
*/
|
|
45
|
-
getPredictedDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
|
|
46
|
-
/**
|
|
47
|
-
* HTTP PUT /asset/predicted/{assetId}/{attributeName}
|
|
48
|
-
* Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.writePredictedDatapoints
|
|
49
|
-
*/
|
|
50
|
-
writePredictedDatapoints(assetId: string, attributeName: string, predictedDatapoints: Model.ValueDatapoint<any>[], options?: O): RestResponse<void>;
|
|
51
|
-
}
|
|
52
|
-
export declare class StatusResourceClient<O> {
|
|
53
|
-
protected httpClient: HttpClient<O>;
|
|
54
|
-
constructor(httpClient: HttpClient<O>);
|
|
55
|
-
/**
|
|
56
|
-
* HTTP GET /health
|
|
57
|
-
* Java method: org.openremote.model.system.StatusResource.getHealthStatus
|
|
58
|
-
*/
|
|
59
|
-
getHealthStatus(options?: O): RestResponse<{
|
|
60
|
-
[index: string]: any;
|
|
61
|
-
}>;
|
|
62
|
-
/**
|
|
63
|
-
* HTTP GET /info
|
|
64
|
-
* Java method: org.openremote.model.system.StatusResource.getInfo
|
|
65
|
-
*/
|
|
66
|
-
getInfo(options?: O): RestResponse<{
|
|
67
|
-
[index: string]: any;
|
|
68
|
-
}>;
|
|
69
|
-
}
|
|
70
|
-
export declare class AppResourceClient<O> {
|
|
71
|
-
protected httpClient: HttpClient<O>;
|
|
72
|
-
constructor(httpClient: HttpClient<O>);
|
|
73
|
-
/**
|
|
74
|
-
* HTTP GET /apps
|
|
75
|
-
* Java method: org.openremote.model.apps.AppResource.getApps
|
|
76
|
-
*/
|
|
77
|
-
getApps(options?: O): RestResponse<string[]>;
|
|
78
|
-
/**
|
|
79
|
-
* HTTP GET /apps/consoleConfig
|
|
80
|
-
* Java method: org.openremote.model.apps.AppResource.getConsoleConfig
|
|
81
|
-
*/
|
|
82
|
-
getConsoleConfig(options?: O): RestResponse<any>;
|
|
83
|
-
/**
|
|
84
|
-
* HTTP GET /apps/info
|
|
85
|
-
* Java method: org.openremote.model.apps.AppResource.getAppInfos
|
|
86
|
-
*/
|
|
87
|
-
getAppInfos(options?: O): RestResponse<any>;
|
|
88
|
-
}
|
|
89
|
-
export declare class DashboardResourceClient<O> {
|
|
12
|
+
export declare class ProvisioningResourceClient<O> {
|
|
90
13
|
protected httpClient: HttpClient<O>;
|
|
91
14
|
constructor(httpClient: HttpClient<O>);
|
|
92
15
|
/**
|
|
93
|
-
* HTTP POST /
|
|
94
|
-
* Java method: org.openremote.model.
|
|
95
|
-
*/
|
|
96
|
-
create(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
|
|
97
|
-
/**
|
|
98
|
-
* HTTP PUT /dashboard
|
|
99
|
-
* Java method: org.openremote.model.dashboard.DashboardResource.update
|
|
100
|
-
*/
|
|
101
|
-
update(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
|
|
102
|
-
/**
|
|
103
|
-
* HTTP GET /dashboard/all/{realm}
|
|
104
|
-
* Java method: org.openremote.model.dashboard.DashboardResource.getAllRealmDashboards
|
|
16
|
+
* HTTP POST /provisioning
|
|
17
|
+
* Java method: org.openremote.model.provisioning.ProvisioningResource.createProvisioningConfig
|
|
105
18
|
*/
|
|
106
|
-
|
|
19
|
+
createProvisioningConfig(provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<number>;
|
|
107
20
|
/**
|
|
108
|
-
* HTTP
|
|
109
|
-
* Java method: org.openremote.model.
|
|
21
|
+
* HTTP GET /provisioning
|
|
22
|
+
* Java method: org.openremote.model.provisioning.ProvisioningResource.getProvisioningConfigs
|
|
110
23
|
*/
|
|
111
|
-
|
|
24
|
+
getProvisioningConfigs(options?: O): RestResponse<Model.ProvisioningConfigUnion<any, any>[]>;
|
|
112
25
|
/**
|
|
113
|
-
* HTTP DELETE /
|
|
114
|
-
* Java method: org.openremote.model.
|
|
26
|
+
* HTTP DELETE /provisioning/{id}
|
|
27
|
+
* Java method: org.openremote.model.provisioning.ProvisioningResource.deleteProvisioningConfig
|
|
115
28
|
*/
|
|
116
|
-
|
|
29
|
+
deleteProvisioningConfig(id: number, options?: O): RestResponse<void>;
|
|
117
30
|
/**
|
|
118
|
-
* HTTP
|
|
119
|
-
* Java method: org.openremote.model.
|
|
31
|
+
* HTTP PUT /provisioning/{id}
|
|
32
|
+
* Java method: org.openremote.model.provisioning.ProvisioningResource.updateProvisioningConfig
|
|
120
33
|
*/
|
|
121
|
-
|
|
34
|
+
updateProvisioningConfig(id: number, provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<void>;
|
|
122
35
|
}
|
|
123
36
|
export declare class AlarmResourceClient<O> {
|
|
124
37
|
protected httpClient: HttpClient<O>;
|
|
@@ -173,36 +86,6 @@ export declare class AlarmResourceClient<O> {
|
|
|
173
86
|
realm?: string;
|
|
174
87
|
}, options?: O): RestResponse<Model.AlarmAssetLink[]>;
|
|
175
88
|
}
|
|
176
|
-
export declare class MapResourceClient<O> {
|
|
177
|
-
protected httpClient: HttpClient<O>;
|
|
178
|
-
constructor(httpClient: HttpClient<O>);
|
|
179
|
-
/**
|
|
180
|
-
* HTTP GET /map
|
|
181
|
-
* Java method: org.openremote.model.map.MapResource.getSettings
|
|
182
|
-
*/
|
|
183
|
-
getSettings(options?: O): RestResponse<{
|
|
184
|
-
[id: string]: unknown;
|
|
185
|
-
}>;
|
|
186
|
-
/**
|
|
187
|
-
* HTTP PUT /map
|
|
188
|
-
* Java method: org.openremote.model.map.MapResource.saveSettings
|
|
189
|
-
*/
|
|
190
|
-
saveSettings(mapConfig: {
|
|
191
|
-
[index: string]: Model.MapRealmConfig;
|
|
192
|
-
}, options?: O): RestResponse<any>;
|
|
193
|
-
/**
|
|
194
|
-
* HTTP GET /map/js
|
|
195
|
-
* Java method: org.openremote.model.map.MapResource.getSettingsJs
|
|
196
|
-
*/
|
|
197
|
-
getSettingsJs(options?: O): RestResponse<{
|
|
198
|
-
[id: string]: unknown;
|
|
199
|
-
}>;
|
|
200
|
-
/**
|
|
201
|
-
* HTTP GET /map/tile/{zoom}/{column}/{row}
|
|
202
|
-
* Java method: org.openremote.model.map.MapResource.getTile
|
|
203
|
-
*/
|
|
204
|
-
getTile(zoom: number, column: number, row: number, options?: O): RestResponse<any>;
|
|
205
|
-
}
|
|
206
89
|
export declare class UserResourceClient<O> {
|
|
207
90
|
protected httpClient: HttpClient<O>;
|
|
208
91
|
constructor(httpClient: HttpClient<O>);
|
|
@@ -327,39 +210,61 @@ export declare class UserResourceClient<O> {
|
|
|
327
210
|
*/
|
|
328
211
|
get(realm: string, userId: string, options?: O): RestResponse<Model.User>;
|
|
329
212
|
}
|
|
330
|
-
export declare class
|
|
213
|
+
export declare class ConfigurationResourceClient<O> {
|
|
331
214
|
protected httpClient: HttpClient<O>;
|
|
332
215
|
constructor(httpClient: HttpClient<O>);
|
|
333
216
|
/**
|
|
334
|
-
* HTTP
|
|
335
|
-
* Java method: org.openremote.model.
|
|
217
|
+
* HTTP GET /configuration/manager
|
|
218
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfig
|
|
336
219
|
*/
|
|
337
|
-
|
|
220
|
+
getManagerConfig(options?: O): RestResponse<Model.ManagerAppConfig>;
|
|
338
221
|
/**
|
|
339
|
-
* HTTP
|
|
340
|
-
* Java method: org.openremote.model.
|
|
222
|
+
* HTTP PUT /configuration/manager
|
|
223
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.update
|
|
341
224
|
*/
|
|
342
|
-
|
|
225
|
+
update(managerConfiguration: Model.ManagerAppConfig, options?: O): RestResponse<Model.ManagerAppConfig>;
|
|
343
226
|
/**
|
|
344
|
-
* HTTP
|
|
345
|
-
* Java method: org.openremote.model.
|
|
227
|
+
* HTTP POST /configuration/manager/file
|
|
228
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.fileUpload
|
|
346
229
|
*/
|
|
347
|
-
|
|
230
|
+
fileUpload(fileInfo: Model.FileInfo, queryParams?: {
|
|
231
|
+
path?: string;
|
|
232
|
+
}, options?: O): RestResponse<string>;
|
|
348
233
|
/**
|
|
349
|
-
* HTTP
|
|
350
|
-
* Java method: org.openremote.model.
|
|
234
|
+
* HTTP GET /configuration/manager/image/{filename: .+}
|
|
235
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfigImage
|
|
351
236
|
*/
|
|
352
|
-
|
|
237
|
+
getManagerConfigImage(filename: string, options?: O): RestResponse<any>;
|
|
238
|
+
}
|
|
239
|
+
export declare class MapResourceClient<O> {
|
|
240
|
+
protected httpClient: HttpClient<O>;
|
|
241
|
+
constructor(httpClient: HttpClient<O>);
|
|
353
242
|
/**
|
|
354
|
-
* HTTP GET /
|
|
355
|
-
* Java method: org.openremote.model.
|
|
243
|
+
* HTTP GET /map
|
|
244
|
+
* Java method: org.openremote.model.map.MapResource.getSettings
|
|
356
245
|
*/
|
|
357
|
-
|
|
246
|
+
getSettings(options?: O): RestResponse<{
|
|
247
|
+
[id: string]: unknown;
|
|
248
|
+
}>;
|
|
358
249
|
/**
|
|
359
|
-
* HTTP PUT /
|
|
360
|
-
* Java method: org.openremote.model.
|
|
250
|
+
* HTTP PUT /map
|
|
251
|
+
* Java method: org.openremote.model.map.MapResource.saveSettings
|
|
361
252
|
*/
|
|
362
|
-
|
|
253
|
+
saveSettings(mapConfig: {
|
|
254
|
+
[index: string]: Model.MapRealmConfig;
|
|
255
|
+
}, options?: O): RestResponse<any>;
|
|
256
|
+
/**
|
|
257
|
+
* HTTP GET /map/js
|
|
258
|
+
* Java method: org.openremote.model.map.MapResource.getSettingsJs
|
|
259
|
+
*/
|
|
260
|
+
getSettingsJs(options?: O): RestResponse<{
|
|
261
|
+
[id: string]: unknown;
|
|
262
|
+
}>;
|
|
263
|
+
/**
|
|
264
|
+
* HTTP GET /map/tile/{zoom}/{column}/{row}
|
|
265
|
+
* Java method: org.openremote.model.map.MapResource.getTile
|
|
266
|
+
*/
|
|
267
|
+
getTile(zoom: number, column: number, row: number, options?: O): RestResponse<any>;
|
|
363
268
|
}
|
|
364
269
|
export declare class AssetModelResourceClient<O> {
|
|
365
270
|
protected httpClient: HttpClient<O>;
|
|
@@ -406,61 +311,179 @@ export declare class AssetModelResourceClient<O> {
|
|
|
406
311
|
[index: string]: Model.ValueDescriptor;
|
|
407
312
|
}>;
|
|
408
313
|
}
|
|
409
|
-
export declare class
|
|
314
|
+
export declare class RulesResourceClient<O> {
|
|
410
315
|
protected httpClient: HttpClient<O>;
|
|
411
316
|
constructor(httpClient: HttpClient<O>);
|
|
412
317
|
/**
|
|
413
|
-
* HTTP POST /
|
|
414
|
-
* Java method: org.openremote.model.
|
|
318
|
+
* HTTP POST /rules
|
|
319
|
+
* Java method: org.openremote.model.rules.RulesResource.createGlobalRuleset
|
|
415
320
|
*/
|
|
416
|
-
|
|
321
|
+
createGlobalRuleset(ruleset: Model.GlobalRuleset, options?: O): RestResponse<number>;
|
|
417
322
|
/**
|
|
418
|
-
* HTTP GET /
|
|
419
|
-
* Java method: org.openremote.model.
|
|
323
|
+
* HTTP GET /rules
|
|
324
|
+
* Java method: org.openremote.model.rules.RulesResource.getGlobalRulesets
|
|
420
325
|
*/
|
|
421
|
-
|
|
326
|
+
getGlobalRulesets(queryParams?: {
|
|
327
|
+
language?: Model.RulesetLang[];
|
|
328
|
+
fullyPopulate?: boolean;
|
|
329
|
+
}, options?: O): RestResponse<Model.GlobalRuleset[]>;
|
|
422
330
|
/**
|
|
423
|
-
* HTTP
|
|
424
|
-
* Java method: org.openremote.model.
|
|
331
|
+
* HTTP POST /rules/asset
|
|
332
|
+
* Java method: org.openremote.model.rules.RulesResource.createAssetRuleset
|
|
425
333
|
*/
|
|
426
|
-
|
|
334
|
+
createAssetRuleset(ruleset: Model.AssetRuleset, options?: O): RestResponse<number>;
|
|
427
335
|
/**
|
|
428
|
-
* HTTP
|
|
429
|
-
* Java method: org.openremote.model.
|
|
336
|
+
* HTTP GET /rules/asset/for/{assetId}
|
|
337
|
+
* Java method: org.openremote.model.rules.RulesResource.getAssetRulesets
|
|
430
338
|
*/
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
constructor(httpClient: HttpClient<O>);
|
|
339
|
+
getAssetRulesets(assetId: string, queryParams?: {
|
|
340
|
+
language?: Model.RulesetLang[];
|
|
341
|
+
fullyPopulate?: boolean;
|
|
342
|
+
}, options?: O): RestResponse<Model.AssetRuleset[]>;
|
|
436
343
|
/**
|
|
437
|
-
* HTTP
|
|
438
|
-
* Java method: org.openremote.model.
|
|
344
|
+
* HTTP DELETE /rules/asset/{id}
|
|
345
|
+
* Java method: org.openremote.model.rules.RulesResource.deleteAssetRuleset
|
|
439
346
|
*/
|
|
440
|
-
|
|
347
|
+
deleteAssetRuleset(id: number, options?: O): RestResponse<void>;
|
|
441
348
|
/**
|
|
442
|
-
* HTTP
|
|
443
|
-
* Java method: org.openremote.model.
|
|
349
|
+
* HTTP GET /rules/asset/{id}
|
|
350
|
+
* Java method: org.openremote.model.rules.RulesResource.getAssetRuleset
|
|
444
351
|
*/
|
|
445
|
-
|
|
352
|
+
getAssetRuleset(id: number, options?: O): RestResponse<Model.AssetRuleset>;
|
|
446
353
|
/**
|
|
447
|
-
* HTTP
|
|
448
|
-
* Java method: org.openremote.model.
|
|
354
|
+
* HTTP PUT /rules/asset/{id}
|
|
355
|
+
* Java method: org.openremote.model.rules.RulesResource.updateAssetRuleset
|
|
449
356
|
*/
|
|
450
|
-
|
|
357
|
+
updateAssetRuleset(id: number, ruleset: Model.AssetRuleset, options?: O): RestResponse<void>;
|
|
451
358
|
/**
|
|
452
|
-
* HTTP GET /
|
|
453
|
-
* Java method: org.openremote.model.
|
|
359
|
+
* HTTP GET /rules/geofences/{assetId}
|
|
360
|
+
* Java method: org.openremote.model.rules.RulesResource.getAssetGeofences
|
|
454
361
|
*/
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
362
|
+
getAssetGeofences(assetId: string, options?: O): RestResponse<Model.GeofenceDefinition[]>;
|
|
363
|
+
/**
|
|
364
|
+
* HTTP GET /rules/info/asset/{assetId}
|
|
365
|
+
* Java method: org.openremote.model.rules.RulesResource.getAssetEngineInfo
|
|
366
|
+
*/
|
|
367
|
+
getAssetEngineInfo(assetId: string, options?: O): RestResponse<Model.RulesEngineInfo>;
|
|
368
|
+
/**
|
|
369
|
+
* HTTP GET /rules/info/global
|
|
370
|
+
* Java method: org.openremote.model.rules.RulesResource.getGlobalEngineInfo
|
|
371
|
+
*/
|
|
372
|
+
getGlobalEngineInfo(options?: O): RestResponse<Model.RulesEngineInfo>;
|
|
373
|
+
/**
|
|
374
|
+
* HTTP GET /rules/info/realm/{realm}
|
|
375
|
+
* Java method: org.openremote.model.rules.RulesResource.getRealmEngineInfo
|
|
376
|
+
*/
|
|
377
|
+
getRealmEngineInfo(realm: string, options?: O): RestResponse<Model.RulesEngineInfo>;
|
|
378
|
+
/**
|
|
379
|
+
* HTTP POST /rules/realm
|
|
380
|
+
* Java method: org.openremote.model.rules.RulesResource.createRealmRuleset
|
|
381
|
+
*/
|
|
382
|
+
createRealmRuleset(ruleset: Model.RealmRuleset, options?: O): RestResponse<number>;
|
|
383
|
+
/**
|
|
384
|
+
* HTTP GET /rules/realm/for/{realm}
|
|
385
|
+
* Java method: org.openremote.model.rules.RulesResource.getRealmRulesets
|
|
386
|
+
*/
|
|
387
|
+
getRealmRulesets(realm: string, queryParams?: {
|
|
388
|
+
language?: Model.RulesetLang[];
|
|
389
|
+
fullyPopulate?: boolean;
|
|
390
|
+
}, options?: O): RestResponse<Model.RealmRuleset[]>;
|
|
391
|
+
/**
|
|
392
|
+
* HTTP DELETE /rules/realm/{id}
|
|
393
|
+
* Java method: org.openremote.model.rules.RulesResource.deleteRealmRuleset
|
|
394
|
+
*/
|
|
395
|
+
deleteRealmRuleset(id: number, options?: O): RestResponse<void>;
|
|
396
|
+
/**
|
|
397
|
+
* HTTP GET /rules/realm/{id}
|
|
398
|
+
* Java method: org.openremote.model.rules.RulesResource.getRealmRuleset
|
|
399
|
+
*/
|
|
400
|
+
getRealmRuleset(id: number, options?: O): RestResponse<Model.RealmRuleset>;
|
|
401
|
+
/**
|
|
402
|
+
* HTTP PUT /rules/realm/{id}
|
|
403
|
+
* Java method: org.openremote.model.rules.RulesResource.updateRealmRuleset
|
|
404
|
+
*/
|
|
405
|
+
updateRealmRuleset(id: number, ruleset: Model.RealmRuleset, options?: O): RestResponse<void>;
|
|
406
|
+
/**
|
|
407
|
+
* HTTP DELETE /rules/{id}
|
|
408
|
+
* Java method: org.openremote.model.rules.RulesResource.deleteGlobalRuleset
|
|
409
|
+
*/
|
|
410
|
+
deleteGlobalRuleset(id: number, options?: O): RestResponse<void>;
|
|
411
|
+
/**
|
|
412
|
+
* HTTP GET /rules/{id}
|
|
413
|
+
* Java method: org.openremote.model.rules.RulesResource.getGlobalRuleset
|
|
414
|
+
*/
|
|
415
|
+
getGlobalRuleset(id: number, options?: O): RestResponse<Model.GlobalRuleset>;
|
|
416
|
+
/**
|
|
417
|
+
* HTTP PUT /rules/{id}
|
|
418
|
+
* Java method: org.openremote.model.rules.RulesResource.updateGlobalRuleset
|
|
419
|
+
*/
|
|
420
|
+
updateGlobalRuleset(id: number, ruleset: Model.GlobalRuleset, options?: O): RestResponse<void>;
|
|
421
|
+
}
|
|
422
|
+
export declare class AssetPredictedDatapointResourceClient<O> {
|
|
423
|
+
protected httpClient: HttpClient<O>;
|
|
424
|
+
constructor(httpClient: HttpClient<O>);
|
|
425
|
+
/**
|
|
426
|
+
* HTTP POST /asset/predicted/{assetId}/{attributeName}
|
|
427
|
+
* Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.getPredictedDatapoints
|
|
428
|
+
*/
|
|
429
|
+
getPredictedDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
|
|
430
|
+
/**
|
|
431
|
+
* HTTP PUT /asset/predicted/{assetId}/{attributeName}
|
|
432
|
+
* Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.writePredictedDatapoints
|
|
433
|
+
*/
|
|
434
|
+
writePredictedDatapoints(assetId: string, attributeName: string, predictedDatapoints: Model.ValueDatapoint<any>[], options?: O): RestResponse<void>;
|
|
435
|
+
}
|
|
436
|
+
export declare class RealmResourceClient<O> {
|
|
437
|
+
protected httpClient: HttpClient<O>;
|
|
438
|
+
constructor(httpClient: HttpClient<O>);
|
|
439
|
+
/**
|
|
440
|
+
* HTTP POST /realm
|
|
441
|
+
* Java method: org.openremote.model.security.RealmResource.create
|
|
442
|
+
*/
|
|
443
|
+
create(realm: Model.Realm, options?: O): RestResponse<void>;
|
|
444
|
+
/**
|
|
445
|
+
* HTTP GET /realm
|
|
446
|
+
* Java method: org.openremote.model.security.RealmResource.getAll
|
|
447
|
+
*/
|
|
448
|
+
getAll(options?: O): RestResponse<Model.Realm[]>;
|
|
449
|
+
/**
|
|
450
|
+
* HTTP GET /realm/accessible
|
|
451
|
+
* Java method: org.openremote.model.security.RealmResource.getAccessible
|
|
452
|
+
*/
|
|
453
|
+
getAccessible(options?: O): RestResponse<Model.Realm[]>;
|
|
454
|
+
/**
|
|
455
|
+
* HTTP DELETE /realm/{name}
|
|
456
|
+
* Java method: org.openremote.model.security.RealmResource.delete
|
|
457
|
+
*/
|
|
458
|
+
delete(name: string, options?: O): RestResponse<void>;
|
|
459
|
+
/**
|
|
460
|
+
* HTTP GET /realm/{name}
|
|
461
|
+
* Java method: org.openremote.model.security.RealmResource.get
|
|
462
|
+
*/
|
|
463
|
+
get(name: string, options?: O): RestResponse<Model.Realm>;
|
|
464
|
+
/**
|
|
465
|
+
* HTTP PUT /realm/{name}
|
|
466
|
+
* Java method: org.openremote.model.security.RealmResource.update
|
|
467
|
+
*/
|
|
468
|
+
update(name: string, realm: Model.Realm, options?: O): RestResponse<void>;
|
|
469
|
+
}
|
|
470
|
+
export declare class StatusResourceClient<O> {
|
|
471
|
+
protected httpClient: HttpClient<O>;
|
|
472
|
+
constructor(httpClient: HttpClient<O>);
|
|
473
|
+
/**
|
|
474
|
+
* HTTP GET /health
|
|
475
|
+
* Java method: org.openremote.model.system.StatusResource.getHealthStatus
|
|
476
|
+
*/
|
|
477
|
+
getHealthStatus(options?: O): RestResponse<{
|
|
478
|
+
[index: string]: any;
|
|
479
|
+
}>;
|
|
480
|
+
/**
|
|
481
|
+
* HTTP GET /info
|
|
482
|
+
* Java method: org.openremote.model.system.StatusResource.getInfo
|
|
483
|
+
*/
|
|
484
|
+
getInfo(options?: O): RestResponse<{
|
|
485
|
+
[index: string]: any;
|
|
486
|
+
}>;
|
|
464
487
|
}
|
|
465
488
|
export declare class FlowResourceClient<O> {
|
|
466
489
|
protected httpClient: HttpClient<O>;
|
|
@@ -481,6 +504,92 @@ export declare class FlowResourceClient<O> {
|
|
|
481
504
|
*/
|
|
482
505
|
getAllNodeDefinitionsByType(type: Model.NodeType, options?: O): RestResponse<Model.Node[]>;
|
|
483
506
|
}
|
|
507
|
+
export declare class DashboardResourceClient<O> {
|
|
508
|
+
protected httpClient: HttpClient<O>;
|
|
509
|
+
constructor(httpClient: HttpClient<O>);
|
|
510
|
+
/**
|
|
511
|
+
* HTTP POST /dashboard
|
|
512
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.create
|
|
513
|
+
*/
|
|
514
|
+
create(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
|
|
515
|
+
/**
|
|
516
|
+
* HTTP PUT /dashboard
|
|
517
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.update
|
|
518
|
+
*/
|
|
519
|
+
update(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
|
|
520
|
+
/**
|
|
521
|
+
* HTTP GET /dashboard/all/{realm}
|
|
522
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.getAllRealmDashboards
|
|
523
|
+
*/
|
|
524
|
+
getAllRealmDashboards(realm: string, options?: O): RestResponse<Model.Dashboard[]>;
|
|
525
|
+
/**
|
|
526
|
+
* HTTP POST /dashboard/query
|
|
527
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.query
|
|
528
|
+
*/
|
|
529
|
+
query(dashboardQuery: Model.DashboardQuery, options?: O): RestResponse<Model.Dashboard[]>;
|
|
530
|
+
/**
|
|
531
|
+
* HTTP DELETE /dashboard/{realm}/{dashboardId}
|
|
532
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.delete
|
|
533
|
+
*/
|
|
534
|
+
delete(realm: string, dashboardId: string, options?: O): RestResponse<void>;
|
|
535
|
+
/**
|
|
536
|
+
* HTTP GET /dashboard/{realm}/{dashboardId}
|
|
537
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.get
|
|
538
|
+
*/
|
|
539
|
+
get(realm: string, dashboardId: string, options?: O): RestResponse<Model.Dashboard>;
|
|
540
|
+
}
|
|
541
|
+
export declare class AssetDatapointResourceClient<O> {
|
|
542
|
+
protected httpClient: HttpClient<O>;
|
|
543
|
+
constructor(httpClient: HttpClient<O>);
|
|
544
|
+
/**
|
|
545
|
+
* HTTP GET /asset/datapoint/export
|
|
546
|
+
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointExport
|
|
547
|
+
*/
|
|
548
|
+
getDatapointExport(queryParams?: {
|
|
549
|
+
attributeRefs?: string;
|
|
550
|
+
fromTimestamp?: number;
|
|
551
|
+
toTimestamp?: number;
|
|
552
|
+
}, options?: O): RestResponse<any>;
|
|
553
|
+
/**
|
|
554
|
+
* HTTP GET /asset/datapoint/periods
|
|
555
|
+
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointPeriod
|
|
556
|
+
*/
|
|
557
|
+
getDatapointPeriod(queryParams?: {
|
|
558
|
+
assetId?: string;
|
|
559
|
+
attributeName?: string;
|
|
560
|
+
}, options?: O): RestResponse<Model.DatapointPeriod>;
|
|
561
|
+
/**
|
|
562
|
+
* HTTP POST /asset/datapoint/{assetId}/{attributeName}
|
|
563
|
+
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapoints
|
|
564
|
+
*/
|
|
565
|
+
getDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
|
|
566
|
+
}
|
|
567
|
+
export declare class AgentResourceClient<O> {
|
|
568
|
+
protected httpClient: HttpClient<O>;
|
|
569
|
+
constructor(httpClient: HttpClient<O>);
|
|
570
|
+
/**
|
|
571
|
+
* HTTP GET /agent/assetDiscovery/{agentId}
|
|
572
|
+
* Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetDiscovery
|
|
573
|
+
*/
|
|
574
|
+
doProtocolAssetDiscovery(agentId: string, queryParams?: {
|
|
575
|
+
realm?: string;
|
|
576
|
+
}, options?: O): RestResponse<Model.AssetTreeNode[]>;
|
|
577
|
+
/**
|
|
578
|
+
* HTTP POST /agent/assetImport/{agentId}
|
|
579
|
+
* Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetImport
|
|
580
|
+
*/
|
|
581
|
+
doProtocolAssetImport(agentId: string, fileInfo: Model.FileInfo, queryParams?: {
|
|
582
|
+
realm?: string;
|
|
583
|
+
}, options?: O): RestResponse<Model.AssetTreeNode[]>;
|
|
584
|
+
/**
|
|
585
|
+
* HTTP GET /agent/instanceDiscovery/{agentType}
|
|
586
|
+
* Java method: org.openremote.model.asset.agent.AgentResource.doProtocolInstanceDiscovery
|
|
587
|
+
*/
|
|
588
|
+
doProtocolInstanceDiscovery(agentType: string, queryParams?: {
|
|
589
|
+
parentId?: string;
|
|
590
|
+
realm?: string;
|
|
591
|
+
}, options?: O): RestResponse<Model.Agent[]>;
|
|
592
|
+
}
|
|
484
593
|
export declare class NotificationResourceClient<O> {
|
|
485
594
|
protected httpClient: HttpClient<O>;
|
|
486
595
|
constructor(httpClient: HttpClient<O>);
|
|
@@ -531,188 +640,83 @@ export declare class NotificationResourceClient<O> {
|
|
|
531
640
|
* HTTP PUT /notification/{notificationId}/delivered
|
|
532
641
|
* Java method: org.openremote.model.notification.NotificationResource.notificationDelivered
|
|
533
642
|
*/
|
|
534
|
-
notificationDelivered(notificationId: number, queryParams?: {
|
|
535
|
-
targetId?: string;
|
|
536
|
-
}, options?: O): RestResponse<void>;
|
|
537
|
-
}
|
|
538
|
-
export declare class
|
|
539
|
-
protected httpClient: HttpClient<O>;
|
|
540
|
-
constructor(httpClient: HttpClient<O>);
|
|
541
|
-
/**
|
|
542
|
-
* HTTP DELETE /gateway/connection
|
|
543
|
-
* Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnections
|
|
544
|
-
*/
|
|
545
|
-
deleteConnections(queryParams?: {
|
|
546
|
-
realm?: string[];
|
|
547
|
-
}, options?: O): RestResponse<void>;
|
|
548
|
-
/**
|
|
549
|
-
* HTTP GET /gateway/connection
|
|
550
|
-
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnections
|
|
551
|
-
*/
|
|
552
|
-
getConnections(options?: O): RestResponse<Model.GatewayConnection[]>;
|
|
553
|
-
/**
|
|
554
|
-
* HTTP DELETE /gateway/connection/{realm}
|
|
555
|
-
* Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnection
|
|
556
|
-
*/
|
|
557
|
-
deleteConnection(realm: string, options?: O): RestResponse<void>;
|
|
558
|
-
/**
|
|
559
|
-
* HTTP GET /gateway/connection/{realm}
|
|
560
|
-
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnection
|
|
561
|
-
*/
|
|
562
|
-
getConnection(realm: string, options?: O): RestResponse<Model.GatewayConnection>;
|
|
563
|
-
/**
|
|
564
|
-
* HTTP PUT /gateway/connection/{realm}
|
|
565
|
-
* Java method: org.openremote.model.gateway.GatewayClientResource.setConnection
|
|
566
|
-
*/
|
|
567
|
-
setConnection(realm: string, connection: Model.GatewayConnection, options?: O): RestResponse<void>;
|
|
568
|
-
/**
|
|
569
|
-
* HTTP GET /gateway/status/{realm}
|
|
570
|
-
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnectionStatus
|
|
571
|
-
*/
|
|
572
|
-
getConnectionStatus(realm: string, options?: O): RestResponse<Model.ConnectionStatus>;
|
|
573
|
-
}
|
|
574
|
-
export declare class RulesResourceClient<O> {
|
|
575
|
-
protected httpClient: HttpClient<O>;
|
|
576
|
-
constructor(httpClient: HttpClient<O>);
|
|
577
|
-
/**
|
|
578
|
-
* HTTP POST /rules
|
|
579
|
-
* Java method: org.openremote.model.rules.RulesResource.createGlobalRuleset
|
|
580
|
-
*/
|
|
581
|
-
createGlobalRuleset(ruleset: Model.GlobalRuleset, options?: O): RestResponse<number>;
|
|
582
|
-
/**
|
|
583
|
-
* HTTP GET /rules
|
|
584
|
-
* Java method: org.openremote.model.rules.RulesResource.getGlobalRulesets
|
|
585
|
-
*/
|
|
586
|
-
getGlobalRulesets(queryParams?: {
|
|
587
|
-
language?: Model.RulesetLang[];
|
|
588
|
-
fullyPopulate?: boolean;
|
|
589
|
-
}, options?: O): RestResponse<Model.GlobalRuleset[]>;
|
|
590
|
-
/**
|
|
591
|
-
* HTTP POST /rules/asset
|
|
592
|
-
* Java method: org.openremote.model.rules.RulesResource.createAssetRuleset
|
|
593
|
-
*/
|
|
594
|
-
createAssetRuleset(ruleset: Model.AssetRuleset, options?: O): RestResponse<number>;
|
|
595
|
-
/**
|
|
596
|
-
* HTTP GET /rules/asset/for/{assetId}
|
|
597
|
-
* Java method: org.openremote.model.rules.RulesResource.getAssetRulesets
|
|
598
|
-
*/
|
|
599
|
-
getAssetRulesets(assetId: string, queryParams?: {
|
|
600
|
-
language?: Model.RulesetLang[];
|
|
601
|
-
fullyPopulate?: boolean;
|
|
602
|
-
}, options?: O): RestResponse<Model.AssetRuleset[]>;
|
|
603
|
-
/**
|
|
604
|
-
* HTTP DELETE /rules/asset/{id}
|
|
605
|
-
* Java method: org.openremote.model.rules.RulesResource.deleteAssetRuleset
|
|
606
|
-
*/
|
|
607
|
-
deleteAssetRuleset(id: number, options?: O): RestResponse<void>;
|
|
608
|
-
/**
|
|
609
|
-
* HTTP GET /rules/asset/{id}
|
|
610
|
-
* Java method: org.openremote.model.rules.RulesResource.getAssetRuleset
|
|
611
|
-
*/
|
|
612
|
-
getAssetRuleset(id: number, options?: O): RestResponse<Model.AssetRuleset>;
|
|
613
|
-
/**
|
|
614
|
-
* HTTP PUT /rules/asset/{id}
|
|
615
|
-
* Java method: org.openremote.model.rules.RulesResource.updateAssetRuleset
|
|
616
|
-
*/
|
|
617
|
-
updateAssetRuleset(id: number, ruleset: Model.AssetRuleset, options?: O): RestResponse<void>;
|
|
618
|
-
/**
|
|
619
|
-
* HTTP GET /rules/geofences/{assetId}
|
|
620
|
-
* Java method: org.openremote.model.rules.RulesResource.getAssetGeofences
|
|
621
|
-
*/
|
|
622
|
-
getAssetGeofences(assetId: string, options?: O): RestResponse<Model.GeofenceDefinition[]>;
|
|
623
|
-
/**
|
|
624
|
-
* HTTP GET /rules/info/asset/{assetId}
|
|
625
|
-
* Java method: org.openremote.model.rules.RulesResource.getAssetEngineInfo
|
|
626
|
-
*/
|
|
627
|
-
getAssetEngineInfo(assetId: string, options?: O): RestResponse<Model.RulesEngineInfo>;
|
|
628
|
-
/**
|
|
629
|
-
* HTTP GET /rules/info/global
|
|
630
|
-
* Java method: org.openremote.model.rules.RulesResource.getGlobalEngineInfo
|
|
631
|
-
*/
|
|
632
|
-
getGlobalEngineInfo(options?: O): RestResponse<Model.RulesEngineInfo>;
|
|
633
|
-
/**
|
|
634
|
-
* HTTP GET /rules/info/realm/{realm}
|
|
635
|
-
* Java method: org.openremote.model.rules.RulesResource.getRealmEngineInfo
|
|
636
|
-
*/
|
|
637
|
-
getRealmEngineInfo(realm: string, options?: O): RestResponse<Model.RulesEngineInfo>;
|
|
638
|
-
/**
|
|
639
|
-
* HTTP POST /rules/realm
|
|
640
|
-
* Java method: org.openremote.model.rules.RulesResource.createRealmRuleset
|
|
641
|
-
*/
|
|
642
|
-
createRealmRuleset(ruleset: Model.RealmRuleset, options?: O): RestResponse<number>;
|
|
643
|
-
/**
|
|
644
|
-
* HTTP GET /rules/realm/for/{realm}
|
|
645
|
-
* Java method: org.openremote.model.rules.RulesResource.getRealmRulesets
|
|
646
|
-
*/
|
|
647
|
-
getRealmRulesets(realm: string, queryParams?: {
|
|
648
|
-
language?: Model.RulesetLang[];
|
|
649
|
-
fullyPopulate?: boolean;
|
|
650
|
-
}, options?: O): RestResponse<Model.RealmRuleset[]>;
|
|
643
|
+
notificationDelivered(notificationId: number, queryParams?: {
|
|
644
|
+
targetId?: string;
|
|
645
|
+
}, options?: O): RestResponse<void>;
|
|
646
|
+
}
|
|
647
|
+
export declare class ConsoleResourceClient<O> {
|
|
648
|
+
protected httpClient: HttpClient<O>;
|
|
649
|
+
constructor(httpClient: HttpClient<O>);
|
|
651
650
|
/**
|
|
652
|
-
* HTTP
|
|
653
|
-
* Java method: org.openremote.model.
|
|
651
|
+
* HTTP POST /console/register
|
|
652
|
+
* Java method: org.openremote.model.console.ConsoleResource.register
|
|
654
653
|
*/
|
|
655
|
-
|
|
654
|
+
register(consoleRegistration: Model.ConsoleRegistration, options?: O): RestResponse<Model.ConsoleRegistration>;
|
|
655
|
+
}
|
|
656
|
+
export declare class GatewayServiceResourceClient<O> {
|
|
657
|
+
protected httpClient: HttpClient<O>;
|
|
658
|
+
constructor(httpClient: HttpClient<O>);
|
|
656
659
|
/**
|
|
657
|
-
* HTTP
|
|
658
|
-
* Java method: org.openremote.model.
|
|
660
|
+
* HTTP POST /gateway/tunnel
|
|
661
|
+
* Java method: org.openremote.model.gateway.GatewayServiceResource.startTunnel
|
|
659
662
|
*/
|
|
660
|
-
|
|
663
|
+
startTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<Model.GatewayTunnelInfo>;
|
|
661
664
|
/**
|
|
662
|
-
* HTTP
|
|
663
|
-
* Java method: org.openremote.model.
|
|
665
|
+
* HTTP DELETE /gateway/tunnel
|
|
666
|
+
* Java method: org.openremote.model.gateway.GatewayServiceResource.stopTunnel
|
|
664
667
|
*/
|
|
665
|
-
|
|
668
|
+
stopTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<void>;
|
|
666
669
|
/**
|
|
667
|
-
* HTTP
|
|
668
|
-
* Java method: org.openremote.model.
|
|
670
|
+
* HTTP GET /gateway/tunnel/{realm}
|
|
671
|
+
* Java method: org.openremote.model.gateway.GatewayServiceResource.getAllActiveTunnelInfos
|
|
669
672
|
*/
|
|
670
|
-
|
|
673
|
+
getAllActiveTunnelInfos(realm: string, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
|
|
671
674
|
/**
|
|
672
|
-
* HTTP GET /
|
|
673
|
-
* Java method: org.openremote.model.
|
|
675
|
+
* HTTP GET /gateway/tunnel/{realm}/{id}
|
|
676
|
+
* Java method: org.openremote.model.gateway.GatewayServiceResource.getGatewayActiveTunnelInfos
|
|
674
677
|
*/
|
|
675
|
-
|
|
678
|
+
getGatewayActiveTunnelInfos(realm: string, id: string, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
|
|
676
679
|
/**
|
|
677
|
-
* HTTP
|
|
678
|
-
* Java method: org.openremote.model.
|
|
680
|
+
* HTTP GET /gateway/tunnel/{realm}/{id}/{target}/{targetPort}
|
|
681
|
+
* Java method: org.openremote.model.gateway.GatewayServiceResource.getActiveTunnelInfo
|
|
679
682
|
*/
|
|
680
|
-
|
|
683
|
+
getActiveTunnelInfo(realm: string, id: string, target: string, targetPort: number, options?: O): RestResponse<Model.GatewayTunnelInfo>;
|
|
681
684
|
}
|
|
682
|
-
export declare class
|
|
685
|
+
export declare class GatewayClientResourceClient<O> {
|
|
683
686
|
protected httpClient: HttpClient<O>;
|
|
684
687
|
constructor(httpClient: HttpClient<O>);
|
|
685
688
|
/**
|
|
686
|
-
* HTTP
|
|
687
|
-
* Java method: org.openremote.model.
|
|
689
|
+
* HTTP DELETE /gateway/connection
|
|
690
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnections
|
|
688
691
|
*/
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
toTimestamp?: number;
|
|
693
|
-
}, options?: O): RestResponse<any>;
|
|
692
|
+
deleteConnections(queryParams?: {
|
|
693
|
+
realm?: string[];
|
|
694
|
+
}, options?: O): RestResponse<void>;
|
|
694
695
|
/**
|
|
695
|
-
* HTTP GET /
|
|
696
|
-
* Java method: org.openremote.model.
|
|
696
|
+
* HTTP GET /gateway/connection
|
|
697
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnections
|
|
697
698
|
*/
|
|
698
|
-
|
|
699
|
-
assetId?: string;
|
|
700
|
-
attributeName?: string;
|
|
701
|
-
}, options?: O): RestResponse<Model.DatapointPeriod>;
|
|
699
|
+
getConnections(options?: O): RestResponse<Model.GatewayConnection[]>;
|
|
702
700
|
/**
|
|
703
|
-
* HTTP
|
|
704
|
-
* Java method: org.openremote.model.
|
|
701
|
+
* HTTP DELETE /gateway/connection/{realm}
|
|
702
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnection
|
|
705
703
|
*/
|
|
706
|
-
|
|
707
|
-
}
|
|
708
|
-
export declare class ConsoleResourceClient<O> {
|
|
709
|
-
protected httpClient: HttpClient<O>;
|
|
710
|
-
constructor(httpClient: HttpClient<O>);
|
|
704
|
+
deleteConnection(realm: string, options?: O): RestResponse<void>;
|
|
711
705
|
/**
|
|
712
|
-
* HTTP
|
|
713
|
-
* Java method: org.openremote.model.
|
|
706
|
+
* HTTP GET /gateway/connection/{realm}
|
|
707
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnection
|
|
714
708
|
*/
|
|
715
|
-
|
|
709
|
+
getConnection(realm: string, options?: O): RestResponse<Model.GatewayConnection>;
|
|
710
|
+
/**
|
|
711
|
+
* HTTP PUT /gateway/connection/{realm}
|
|
712
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.setConnection
|
|
713
|
+
*/
|
|
714
|
+
setConnection(realm: string, connection: Model.GatewayConnection, options?: O): RestResponse<void>;
|
|
715
|
+
/**
|
|
716
|
+
* HTTP GET /gateway/status/{realm}
|
|
717
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnectionStatus
|
|
718
|
+
*/
|
|
719
|
+
getConnectionStatus(realm: string, options?: O): RestResponse<Model.ConnectionStatus>;
|
|
716
720
|
}
|
|
717
721
|
export declare class AssetResourceClient<O> {
|
|
718
722
|
protected httpClient: HttpClient<O>;
|
|
@@ -818,106 +822,102 @@ export declare class AssetResourceClient<O> {
|
|
|
818
822
|
assetIds?: string[];
|
|
819
823
|
}, options?: O): RestResponse<void>;
|
|
820
824
|
}
|
|
821
|
-
export declare class
|
|
825
|
+
export declare class AppResourceClient<O> {
|
|
822
826
|
protected httpClient: HttpClient<O>;
|
|
823
827
|
constructor(httpClient: HttpClient<O>);
|
|
824
828
|
/**
|
|
825
|
-
* HTTP GET /
|
|
826
|
-
* Java method: org.openremote.model.
|
|
829
|
+
* HTTP GET /apps
|
|
830
|
+
* Java method: org.openremote.model.apps.AppResource.getApps
|
|
827
831
|
*/
|
|
828
|
-
|
|
829
|
-
realm?: string;
|
|
830
|
-
}, options?: O): RestResponse<Model.AssetTreeNode[]>;
|
|
832
|
+
getApps(options?: O): RestResponse<string[]>;
|
|
831
833
|
/**
|
|
832
|
-
* HTTP
|
|
833
|
-
* Java method: org.openremote.model.
|
|
834
|
+
* HTTP GET /apps/consoleConfig
|
|
835
|
+
* Java method: org.openremote.model.apps.AppResource.getConsoleConfig
|
|
834
836
|
*/
|
|
835
|
-
|
|
836
|
-
realm?: string;
|
|
837
|
-
}, options?: O): RestResponse<Model.AssetTreeNode[]>;
|
|
837
|
+
getConsoleConfig(options?: O): RestResponse<any>;
|
|
838
838
|
/**
|
|
839
|
-
* HTTP GET /
|
|
840
|
-
* Java method: org.openremote.model.
|
|
839
|
+
* HTTP GET /apps/info
|
|
840
|
+
* Java method: org.openremote.model.apps.AppResource.getAppInfos
|
|
841
841
|
*/
|
|
842
|
-
|
|
843
|
-
parentId?: string;
|
|
844
|
-
realm?: string;
|
|
845
|
-
}, options?: O): RestResponse<Model.Agent[]>;
|
|
842
|
+
getAppInfos(options?: O): RestResponse<any>;
|
|
846
843
|
}
|
|
847
|
-
export declare class
|
|
844
|
+
export declare class SyslogResourceClient<O> {
|
|
848
845
|
protected httpClient: HttpClient<O>;
|
|
849
846
|
constructor(httpClient: HttpClient<O>);
|
|
850
847
|
/**
|
|
851
|
-
* HTTP
|
|
852
|
-
* Java method: org.openremote.model.
|
|
853
|
-
*/
|
|
854
|
-
startTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<Model.GatewayTunnelInfo>;
|
|
855
|
-
/**
|
|
856
|
-
* HTTP DELETE /gateway/tunnel
|
|
857
|
-
* Java method: org.openremote.model.gateway.GatewayServiceResource.stopTunnel
|
|
848
|
+
* HTTP GET /syslog/config
|
|
849
|
+
* Java method: org.openremote.model.syslog.SyslogResource.getConfig
|
|
858
850
|
*/
|
|
859
|
-
|
|
851
|
+
getConfig(options?: O): RestResponse<Model.SyslogConfig>;
|
|
860
852
|
/**
|
|
861
|
-
* HTTP
|
|
862
|
-
* Java method: org.openremote.model.
|
|
853
|
+
* HTTP PUT /syslog/config
|
|
854
|
+
* Java method: org.openremote.model.syslog.SyslogResource.updateConfig
|
|
863
855
|
*/
|
|
864
|
-
|
|
856
|
+
updateConfig(config: Model.SyslogConfig, options?: O): RestResponse<void>;
|
|
865
857
|
/**
|
|
866
|
-
* HTTP
|
|
867
|
-
* Java method: org.openremote.model.
|
|
858
|
+
* HTTP DELETE /syslog/event
|
|
859
|
+
* Java method: org.openremote.model.syslog.SyslogResource.clearEvents
|
|
868
860
|
*/
|
|
869
|
-
|
|
861
|
+
clearEvents(options?: O): RestResponse<void>;
|
|
870
862
|
/**
|
|
871
|
-
* HTTP GET /
|
|
872
|
-
* Java method: org.openremote.model.
|
|
863
|
+
* HTTP GET /syslog/event
|
|
864
|
+
* Java method: org.openremote.model.syslog.SyslogResource.getEvents
|
|
873
865
|
*/
|
|
874
|
-
|
|
866
|
+
getEvents(queryParams?: {
|
|
867
|
+
level?: Model.SyslogLevel;
|
|
868
|
+
per_page?: number;
|
|
869
|
+
page?: number;
|
|
870
|
+
from?: number;
|
|
871
|
+
to?: number;
|
|
872
|
+
category?: Model.SyslogCategory[];
|
|
873
|
+
subCategory?: string[];
|
|
874
|
+
}, options?: O): RestResponse<any>;
|
|
875
875
|
}
|
|
876
876
|
export type RestResponse<R> = Promise<Axios.GenericAxiosResponse<R>>;
|
|
877
877
|
export declare class ApiClient {
|
|
878
|
-
protected
|
|
879
|
-
protected _assetPredictedDatapointResource: AxiosAssetPredictedDatapointResourceClient;
|
|
880
|
-
protected _statusResource: AxiosStatusResourceClient;
|
|
881
|
-
protected _appResource: AxiosAppResourceClient;
|
|
882
|
-
protected _dashboardResource: AxiosDashboardResourceClient;
|
|
878
|
+
protected _provisioningResource: AxiosProvisioningResourceClient;
|
|
883
879
|
protected _alarmResource: AxiosAlarmResourceClient;
|
|
884
|
-
protected _mapResource: AxiosMapResourceClient;
|
|
885
880
|
protected _userResource: AxiosUserResourceClient;
|
|
886
|
-
protected
|
|
881
|
+
protected _configurationResource: AxiosConfigurationResourceClient;
|
|
882
|
+
protected _mapResource: AxiosMapResourceClient;
|
|
887
883
|
protected _assetModelResource: AxiosAssetModelResourceClient;
|
|
888
|
-
protected _provisioningResource: AxiosProvisioningResourceClient;
|
|
889
|
-
protected _syslogResource: AxiosSyslogResourceClient;
|
|
890
|
-
protected _flowResource: AxiosFlowResourceClient;
|
|
891
|
-
protected _notificationResource: AxiosNotificationResourceClient;
|
|
892
|
-
protected _gatewayClientResource: AxiosGatewayClientResourceClient;
|
|
893
884
|
protected _rulesResource: AxiosRulesResourceClient;
|
|
885
|
+
protected _assetPredictedDatapointResource: AxiosAssetPredictedDatapointResourceClient;
|
|
886
|
+
protected _realmResource: AxiosRealmResourceClient;
|
|
887
|
+
protected _statusResource: AxiosStatusResourceClient;
|
|
888
|
+
protected _flowResource: AxiosFlowResourceClient;
|
|
889
|
+
protected _dashboardResource: AxiosDashboardResourceClient;
|
|
894
890
|
protected _assetDatapointResource: AxiosAssetDatapointResourceClient;
|
|
895
|
-
protected _consoleResource: AxiosConsoleResourceClient;
|
|
896
|
-
protected _assetResource: AxiosAssetResourceClient;
|
|
897
891
|
protected _agentResource: AxiosAgentResourceClient;
|
|
892
|
+
protected _notificationResource: AxiosNotificationResourceClient;
|
|
893
|
+
protected _consoleResource: AxiosConsoleResourceClient;
|
|
898
894
|
protected _gatewayServiceResource: AxiosGatewayServiceResourceClient;
|
|
895
|
+
protected _gatewayClientResource: AxiosGatewayClientResourceClient;
|
|
896
|
+
protected _assetResource: AxiosAssetResourceClient;
|
|
897
|
+
protected _appResource: AxiosAppResourceClient;
|
|
898
|
+
protected _syslogResource: AxiosSyslogResourceClient;
|
|
899
899
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
900
|
-
get
|
|
901
|
-
get AssetPredictedDatapointResource(): AxiosAssetPredictedDatapointResourceClient;
|
|
902
|
-
get StatusResource(): AxiosStatusResourceClient;
|
|
903
|
-
get AppResource(): AxiosAppResourceClient;
|
|
904
|
-
get DashboardResource(): AxiosDashboardResourceClient;
|
|
900
|
+
get ProvisioningResource(): AxiosProvisioningResourceClient;
|
|
905
901
|
get AlarmResource(): AxiosAlarmResourceClient;
|
|
906
|
-
get MapResource(): AxiosMapResourceClient;
|
|
907
902
|
get UserResource(): AxiosUserResourceClient;
|
|
908
|
-
get
|
|
903
|
+
get ConfigurationResource(): AxiosConfigurationResourceClient;
|
|
904
|
+
get MapResource(): AxiosMapResourceClient;
|
|
909
905
|
get AssetModelResource(): AxiosAssetModelResourceClient;
|
|
910
|
-
get ProvisioningResource(): AxiosProvisioningResourceClient;
|
|
911
|
-
get SyslogResource(): AxiosSyslogResourceClient;
|
|
912
|
-
get FlowResource(): AxiosFlowResourceClient;
|
|
913
|
-
get NotificationResource(): AxiosNotificationResourceClient;
|
|
914
|
-
get GatewayClientResource(): AxiosGatewayClientResourceClient;
|
|
915
906
|
get RulesResource(): AxiosRulesResourceClient;
|
|
907
|
+
get AssetPredictedDatapointResource(): AxiosAssetPredictedDatapointResourceClient;
|
|
908
|
+
get RealmResource(): AxiosRealmResourceClient;
|
|
909
|
+
get StatusResource(): AxiosStatusResourceClient;
|
|
910
|
+
get FlowResource(): AxiosFlowResourceClient;
|
|
911
|
+
get DashboardResource(): AxiosDashboardResourceClient;
|
|
916
912
|
get AssetDatapointResource(): AxiosAssetDatapointResourceClient;
|
|
917
|
-
get ConsoleResource(): AxiosConsoleResourceClient;
|
|
918
|
-
get AssetResource(): AxiosAssetResourceClient;
|
|
919
913
|
get AgentResource(): AxiosAgentResourceClient;
|
|
914
|
+
get NotificationResource(): AxiosNotificationResourceClient;
|
|
915
|
+
get ConsoleResource(): AxiosConsoleResourceClient;
|
|
920
916
|
get GatewayServiceResource(): AxiosGatewayServiceResourceClient;
|
|
917
|
+
get GatewayClientResource(): AxiosGatewayClientResourceClient;
|
|
918
|
+
get AssetResource(): AxiosAssetResourceClient;
|
|
919
|
+
get AppResource(): AxiosAppResourceClient;
|
|
920
|
+
get SyslogResource(): AxiosSyslogResourceClient;
|
|
921
921
|
}
|
|
922
922
|
import * as Axios from "axios";
|
|
923
923
|
declare module "axios" {
|
|
@@ -925,66 +925,66 @@ declare module "axios" {
|
|
|
925
925
|
data: R;
|
|
926
926
|
}
|
|
927
927
|
}
|
|
928
|
-
export declare class
|
|
928
|
+
export declare class AxiosProvisioningResourceClient extends ProvisioningResourceClient<Axios.AxiosRequestConfig> {
|
|
929
929
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
930
930
|
}
|
|
931
|
-
export declare class
|
|
931
|
+
export declare class AxiosAlarmResourceClient extends AlarmResourceClient<Axios.AxiosRequestConfig> {
|
|
932
932
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
933
933
|
}
|
|
934
|
-
export declare class
|
|
934
|
+
export declare class AxiosUserResourceClient extends UserResourceClient<Axios.AxiosRequestConfig> {
|
|
935
935
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
936
936
|
}
|
|
937
|
-
export declare class
|
|
937
|
+
export declare class AxiosConfigurationResourceClient extends ConfigurationResourceClient<Axios.AxiosRequestConfig> {
|
|
938
938
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
939
939
|
}
|
|
940
|
-
export declare class
|
|
940
|
+
export declare class AxiosMapResourceClient extends MapResourceClient<Axios.AxiosRequestConfig> {
|
|
941
941
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
942
942
|
}
|
|
943
|
-
export declare class
|
|
943
|
+
export declare class AxiosAssetModelResourceClient extends AssetModelResourceClient<Axios.AxiosRequestConfig> {
|
|
944
944
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
945
945
|
}
|
|
946
|
-
export declare class
|
|
946
|
+
export declare class AxiosRulesResourceClient extends RulesResourceClient<Axios.AxiosRequestConfig> {
|
|
947
947
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
948
948
|
}
|
|
949
|
-
export declare class
|
|
949
|
+
export declare class AxiosAssetPredictedDatapointResourceClient extends AssetPredictedDatapointResourceClient<Axios.AxiosRequestConfig> {
|
|
950
950
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
951
951
|
}
|
|
952
952
|
export declare class AxiosRealmResourceClient extends RealmResourceClient<Axios.AxiosRequestConfig> {
|
|
953
953
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
954
954
|
}
|
|
955
|
-
export declare class
|
|
955
|
+
export declare class AxiosStatusResourceClient extends StatusResourceClient<Axios.AxiosRequestConfig> {
|
|
956
956
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
957
957
|
}
|
|
958
|
-
export declare class
|
|
958
|
+
export declare class AxiosFlowResourceClient extends FlowResourceClient<Axios.AxiosRequestConfig> {
|
|
959
959
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
960
960
|
}
|
|
961
|
-
export declare class
|
|
961
|
+
export declare class AxiosDashboardResourceClient extends DashboardResourceClient<Axios.AxiosRequestConfig> {
|
|
962
962
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
963
963
|
}
|
|
964
|
-
export declare class
|
|
964
|
+
export declare class AxiosAssetDatapointResourceClient extends AssetDatapointResourceClient<Axios.AxiosRequestConfig> {
|
|
965
965
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
966
966
|
}
|
|
967
|
-
export declare class
|
|
967
|
+
export declare class AxiosAgentResourceClient extends AgentResourceClient<Axios.AxiosRequestConfig> {
|
|
968
968
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
969
969
|
}
|
|
970
|
-
export declare class
|
|
970
|
+
export declare class AxiosNotificationResourceClient extends NotificationResourceClient<Axios.AxiosRequestConfig> {
|
|
971
971
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
972
972
|
}
|
|
973
|
-
export declare class
|
|
973
|
+
export declare class AxiosConsoleResourceClient extends ConsoleResourceClient<Axios.AxiosRequestConfig> {
|
|
974
974
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
975
975
|
}
|
|
976
|
-
export declare class
|
|
976
|
+
export declare class AxiosGatewayServiceResourceClient extends GatewayServiceResourceClient<Axios.AxiosRequestConfig> {
|
|
977
977
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
978
978
|
}
|
|
979
|
-
export declare class
|
|
979
|
+
export declare class AxiosGatewayClientResourceClient extends GatewayClientResourceClient<Axios.AxiosRequestConfig> {
|
|
980
980
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
981
981
|
}
|
|
982
982
|
export declare class AxiosAssetResourceClient extends AssetResourceClient<Axios.AxiosRequestConfig> {
|
|
983
983
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
984
984
|
}
|
|
985
|
-
export declare class
|
|
985
|
+
export declare class AxiosAppResourceClient extends AppResourceClient<Axios.AxiosRequestConfig> {
|
|
986
986
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
987
987
|
}
|
|
988
|
-
export declare class
|
|
988
|
+
export declare class AxiosSyslogResourceClient extends SyslogResourceClient<Axios.AxiosRequestConfig> {
|
|
989
989
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
990
990
|
}
|