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