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