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