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