@openremote/rest 1.7.0-snapshot.20250702121923 → 1.7.0-snapshot.20250703135847
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 +406 -406
- 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,66 +9,6 @@ export interface HttpClient<O> {
|
|
|
9
9
|
options?: O;
|
|
10
10
|
}): RestResponse<R>;
|
|
11
11
|
}
|
|
12
|
-
export declare class RealmResourceClient<O> {
|
|
13
|
-
protected httpClient: HttpClient<O>;
|
|
14
|
-
constructor(httpClient: HttpClient<O>);
|
|
15
|
-
/**
|
|
16
|
-
* HTTP POST /realm
|
|
17
|
-
* Java method: org.openremote.model.security.RealmResource.create
|
|
18
|
-
*/
|
|
19
|
-
create(realm: Model.Realm, options?: O): RestResponse<void>;
|
|
20
|
-
/**
|
|
21
|
-
* HTTP GET /realm
|
|
22
|
-
* Java method: org.openremote.model.security.RealmResource.getAll
|
|
23
|
-
*/
|
|
24
|
-
getAll(options?: O): RestResponse<Model.Realm[]>;
|
|
25
|
-
/**
|
|
26
|
-
* HTTP GET /realm/accessible
|
|
27
|
-
* Java method: org.openremote.model.security.RealmResource.getAccessible
|
|
28
|
-
*/
|
|
29
|
-
getAccessible(options?: O): RestResponse<Model.Realm[]>;
|
|
30
|
-
/**
|
|
31
|
-
* HTTP DELETE /realm/{name}
|
|
32
|
-
* Java method: org.openremote.model.security.RealmResource.delete
|
|
33
|
-
*/
|
|
34
|
-
delete(name: string, options?: O): RestResponse<void>;
|
|
35
|
-
/**
|
|
36
|
-
* HTTP GET /realm/{name}
|
|
37
|
-
* Java method: org.openremote.model.security.RealmResource.get
|
|
38
|
-
*/
|
|
39
|
-
get(name: string, options?: O): RestResponse<Model.Realm>;
|
|
40
|
-
/**
|
|
41
|
-
* HTTP PUT /realm/{name}
|
|
42
|
-
* Java method: org.openremote.model.security.RealmResource.update
|
|
43
|
-
*/
|
|
44
|
-
update(name: string, realm: Model.Realm, options?: O): RestResponse<void>;
|
|
45
|
-
}
|
|
46
|
-
export declare class AssetDatapointResourceClient<O> {
|
|
47
|
-
protected httpClient: HttpClient<O>;
|
|
48
|
-
constructor(httpClient: HttpClient<O>);
|
|
49
|
-
/**
|
|
50
|
-
* HTTP GET /asset/datapoint/export
|
|
51
|
-
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointExport
|
|
52
|
-
*/
|
|
53
|
-
getDatapointExport(queryParams?: {
|
|
54
|
-
attributeRefs?: string;
|
|
55
|
-
fromTimestamp?: number;
|
|
56
|
-
toTimestamp?: number;
|
|
57
|
-
}, options?: O): RestResponse<any>;
|
|
58
|
-
/**
|
|
59
|
-
* HTTP GET /asset/datapoint/periods
|
|
60
|
-
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointPeriod
|
|
61
|
-
*/
|
|
62
|
-
getDatapointPeriod(queryParams?: {
|
|
63
|
-
assetId?: string;
|
|
64
|
-
attributeName?: string;
|
|
65
|
-
}, options?: O): RestResponse<Model.DatapointPeriod>;
|
|
66
|
-
/**
|
|
67
|
-
* HTTP POST /asset/datapoint/{assetId}/{attributeName}
|
|
68
|
-
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapoints
|
|
69
|
-
*/
|
|
70
|
-
getDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
|
|
71
|
-
}
|
|
72
12
|
export declare class AlarmResourceClient<O> {
|
|
73
13
|
protected httpClient: HttpClient<O>;
|
|
74
14
|
constructor(httpClient: HttpClient<O>);
|
|
@@ -176,78 +116,37 @@ export declare class NotificationResourceClient<O> {
|
|
|
176
116
|
targetId?: string;
|
|
177
117
|
}, options?: O): RestResponse<void>;
|
|
178
118
|
}
|
|
179
|
-
export declare class
|
|
180
|
-
protected httpClient: HttpClient<O>;
|
|
181
|
-
constructor(httpClient: HttpClient<O>);
|
|
182
|
-
/**
|
|
183
|
-
* HTTP GET /model/assetDescriptors
|
|
184
|
-
* Java method: org.openremote.model.asset.AssetModelResource.getAssetDescriptors
|
|
185
|
-
*/
|
|
186
|
-
getAssetDescriptors(queryParams?: {
|
|
187
|
-
parentId?: string;
|
|
188
|
-
parentType?: string;
|
|
189
|
-
}, options?: O): RestResponse<Model.AssetDescriptor[]>;
|
|
190
|
-
/**
|
|
191
|
-
* HTTP GET /model/assetInfo/{assetType}
|
|
192
|
-
* Java method: org.openremote.model.asset.AssetModelResource.getAssetInfo
|
|
193
|
-
*/
|
|
194
|
-
getAssetInfo(assetType: string, queryParams?: {
|
|
195
|
-
parentId?: string;
|
|
196
|
-
}, options?: O): RestResponse<Model.AssetTypeInfo>;
|
|
197
|
-
/**
|
|
198
|
-
* HTTP GET /model/assetInfos
|
|
199
|
-
* Java method: org.openremote.model.asset.AssetModelResource.getAssetInfos
|
|
200
|
-
*/
|
|
201
|
-
getAssetInfos(queryParams?: {
|
|
202
|
-
parentId?: string;
|
|
203
|
-
parentType?: string;
|
|
204
|
-
}, options?: O): RestResponse<Model.AssetTypeInfo[]>;
|
|
205
|
-
/**
|
|
206
|
-
* HTTP GET /model/metaItemDescriptors
|
|
207
|
-
* Java method: org.openremote.model.asset.AssetModelResource.getMetaItemDescriptors
|
|
208
|
-
*/
|
|
209
|
-
getMetaItemDescriptors(queryParams?: {
|
|
210
|
-
parentId?: string;
|
|
211
|
-
}, options?: O): RestResponse<{
|
|
212
|
-
[index: string]: Model.MetaItemDescriptor;
|
|
213
|
-
}>;
|
|
214
|
-
/**
|
|
215
|
-
* HTTP GET /model/valueDescriptors
|
|
216
|
-
* Java method: org.openremote.model.asset.AssetModelResource.getValueDescriptors
|
|
217
|
-
*/
|
|
218
|
-
getValueDescriptors(queryParams?: {
|
|
219
|
-
parentId?: string;
|
|
220
|
-
}, options?: O): RestResponse<{
|
|
221
|
-
[index: string]: Model.ValueDescriptor;
|
|
222
|
-
}>;
|
|
223
|
-
}
|
|
224
|
-
export declare class ConsoleResourceClient<O> {
|
|
119
|
+
export declare class SyslogResourceClient<O> {
|
|
225
120
|
protected httpClient: HttpClient<O>;
|
|
226
121
|
constructor(httpClient: HttpClient<O>);
|
|
227
122
|
/**
|
|
228
|
-
* HTTP
|
|
229
|
-
* Java method: org.openremote.model.
|
|
123
|
+
* HTTP GET /syslog/config
|
|
124
|
+
* Java method: org.openremote.model.syslog.SyslogResource.getConfig
|
|
230
125
|
*/
|
|
231
|
-
|
|
232
|
-
}
|
|
233
|
-
export declare class AppResourceClient<O> {
|
|
234
|
-
protected httpClient: HttpClient<O>;
|
|
235
|
-
constructor(httpClient: HttpClient<O>);
|
|
126
|
+
getConfig(options?: O): RestResponse<Model.SyslogConfig>;
|
|
236
127
|
/**
|
|
237
|
-
* HTTP
|
|
238
|
-
* Java method: org.openremote.model.
|
|
128
|
+
* HTTP PUT /syslog/config
|
|
129
|
+
* Java method: org.openremote.model.syslog.SyslogResource.updateConfig
|
|
239
130
|
*/
|
|
240
|
-
|
|
131
|
+
updateConfig(config: Model.SyslogConfig, options?: O): RestResponse<void>;
|
|
241
132
|
/**
|
|
242
|
-
* HTTP
|
|
243
|
-
* Java method: org.openremote.model.
|
|
133
|
+
* HTTP DELETE /syslog/event
|
|
134
|
+
* Java method: org.openremote.model.syslog.SyslogResource.clearEvents
|
|
244
135
|
*/
|
|
245
|
-
|
|
136
|
+
clearEvents(options?: O): RestResponse<void>;
|
|
246
137
|
/**
|
|
247
|
-
* HTTP GET /
|
|
248
|
-
* Java method: org.openremote.model.
|
|
138
|
+
* HTTP GET /syslog/event
|
|
139
|
+
* Java method: org.openremote.model.syslog.SyslogResource.getEvents
|
|
249
140
|
*/
|
|
250
|
-
|
|
141
|
+
getEvents(queryParams?: {
|
|
142
|
+
level?: Model.SyslogLevel;
|
|
143
|
+
per_page?: number;
|
|
144
|
+
page?: number;
|
|
145
|
+
from?: number;
|
|
146
|
+
to?: number;
|
|
147
|
+
category?: Model.SyslogCategory[];
|
|
148
|
+
subCategory?: string[];
|
|
149
|
+
}, options?: O): RestResponse<any>;
|
|
251
150
|
}
|
|
252
151
|
export declare class ProvisioningResourceClient<O> {
|
|
253
152
|
protected httpClient: HttpClient<O>;
|
|
@@ -273,51 +172,39 @@ export declare class ProvisioningResourceClient<O> {
|
|
|
273
172
|
*/
|
|
274
173
|
updateProvisioningConfig(id: number, provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<void>;
|
|
275
174
|
}
|
|
276
|
-
export declare class
|
|
175
|
+
export declare class RealmResourceClient<O> {
|
|
277
176
|
protected httpClient: HttpClient<O>;
|
|
278
177
|
constructor(httpClient: HttpClient<O>);
|
|
279
178
|
/**
|
|
280
|
-
* HTTP POST /
|
|
281
|
-
* Java method: org.openremote.model.
|
|
179
|
+
* HTTP POST /realm
|
|
180
|
+
* Java method: org.openremote.model.security.RealmResource.create
|
|
282
181
|
*/
|
|
283
|
-
|
|
182
|
+
create(realm: Model.Realm, options?: O): RestResponse<void>;
|
|
284
183
|
/**
|
|
285
|
-
* HTTP
|
|
286
|
-
* Java method: org.openremote.model.
|
|
184
|
+
* HTTP GET /realm
|
|
185
|
+
* Java method: org.openremote.model.security.RealmResource.getAll
|
|
287
186
|
*/
|
|
288
|
-
|
|
289
|
-
}
|
|
290
|
-
export declare class SyslogResourceClient<O> {
|
|
291
|
-
protected httpClient: HttpClient<O>;
|
|
292
|
-
constructor(httpClient: HttpClient<O>);
|
|
187
|
+
getAll(options?: O): RestResponse<Model.Realm[]>;
|
|
293
188
|
/**
|
|
294
|
-
* HTTP GET /
|
|
295
|
-
* Java method: org.openremote.model.
|
|
189
|
+
* HTTP GET /realm/accessible
|
|
190
|
+
* Java method: org.openremote.model.security.RealmResource.getAccessible
|
|
296
191
|
*/
|
|
297
|
-
|
|
192
|
+
getAccessible(options?: O): RestResponse<Model.Realm[]>;
|
|
298
193
|
/**
|
|
299
|
-
* HTTP
|
|
300
|
-
* Java method: org.openremote.model.
|
|
194
|
+
* HTTP DELETE /realm/{name}
|
|
195
|
+
* Java method: org.openremote.model.security.RealmResource.delete
|
|
301
196
|
*/
|
|
302
|
-
|
|
197
|
+
delete(name: string, options?: O): RestResponse<void>;
|
|
303
198
|
/**
|
|
304
|
-
* HTTP
|
|
305
|
-
* Java method: org.openremote.model.
|
|
199
|
+
* HTTP GET /realm/{name}
|
|
200
|
+
* Java method: org.openremote.model.security.RealmResource.get
|
|
306
201
|
*/
|
|
307
|
-
|
|
202
|
+
get(name: string, options?: O): RestResponse<Model.Realm>;
|
|
308
203
|
/**
|
|
309
|
-
* HTTP
|
|
310
|
-
* Java method: org.openremote.model.
|
|
204
|
+
* HTTP PUT /realm/{name}
|
|
205
|
+
* Java method: org.openremote.model.security.RealmResource.update
|
|
311
206
|
*/
|
|
312
|
-
|
|
313
|
-
level?: Model.SyslogLevel;
|
|
314
|
-
per_page?: number;
|
|
315
|
-
page?: number;
|
|
316
|
-
from?: number;
|
|
317
|
-
to?: number;
|
|
318
|
-
category?: Model.SyslogCategory[];
|
|
319
|
-
subCategory?: string[];
|
|
320
|
-
}, options?: O): RestResponse<any>;
|
|
207
|
+
update(name: string, realm: Model.Realm, options?: O): RestResponse<void>;
|
|
321
208
|
}
|
|
322
209
|
export declare class GatewayServiceResourceClient<O> {
|
|
323
210
|
protected httpClient: HttpClient<O>;
|
|
@@ -348,93 +235,299 @@ export declare class GatewayServiceResourceClient<O> {
|
|
|
348
235
|
*/
|
|
349
236
|
getActiveTunnelInfo(realm: string, id: string, target: string, targetPort: number, options?: O): RestResponse<Model.GatewayTunnelInfo>;
|
|
350
237
|
}
|
|
351
|
-
export declare class
|
|
238
|
+
export declare class AssetDatapointResourceClient<O> {
|
|
352
239
|
protected httpClient: HttpClient<O>;
|
|
353
240
|
constructor(httpClient: HttpClient<O>);
|
|
354
241
|
/**
|
|
355
|
-
* HTTP GET /
|
|
356
|
-
* Java method: org.openremote.model.
|
|
242
|
+
* HTTP GET /asset/datapoint/export
|
|
243
|
+
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointExport
|
|
357
244
|
*/
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
245
|
+
getDatapointExport(queryParams?: {
|
|
246
|
+
attributeRefs?: string;
|
|
247
|
+
fromTimestamp?: number;
|
|
248
|
+
toTimestamp?: number;
|
|
249
|
+
}, options?: O): RestResponse<any>;
|
|
361
250
|
/**
|
|
362
|
-
* HTTP
|
|
363
|
-
* Java method: org.openremote.model.
|
|
251
|
+
* HTTP GET /asset/datapoint/periods
|
|
252
|
+
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointPeriod
|
|
364
253
|
*/
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
254
|
+
getDatapointPeriod(queryParams?: {
|
|
255
|
+
assetId?: string;
|
|
256
|
+
attributeName?: string;
|
|
257
|
+
}, options?: O): RestResponse<Model.DatapointPeriod>;
|
|
368
258
|
/**
|
|
369
|
-
* HTTP
|
|
370
|
-
* Java method: org.openremote.model.
|
|
259
|
+
* HTTP POST /asset/datapoint/{assetId}/{attributeName}
|
|
260
|
+
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapoints
|
|
371
261
|
*/
|
|
372
|
-
|
|
373
|
-
parentId?: string;
|
|
374
|
-
realm?: string;
|
|
375
|
-
}, options?: O): RestResponse<Model.Agent[]>;
|
|
262
|
+
getDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
|
|
376
263
|
}
|
|
377
|
-
export declare class
|
|
264
|
+
export declare class AssetResourceClient<O> {
|
|
378
265
|
protected httpClient: HttpClient<O>;
|
|
379
266
|
constructor(httpClient: HttpClient<O>);
|
|
380
267
|
/**
|
|
381
|
-
* HTTP
|
|
382
|
-
* Java method: org.openremote.model.
|
|
268
|
+
* HTTP POST /asset
|
|
269
|
+
* Java method: org.openremote.model.asset.AssetResource.create
|
|
383
270
|
*/
|
|
384
|
-
|
|
271
|
+
create(asset: Model.Asset, options?: O): RestResponse<Model.Asset>;
|
|
385
272
|
/**
|
|
386
|
-
* HTTP
|
|
387
|
-
* Java method: org.openremote.model.
|
|
273
|
+
* HTTP DELETE /asset
|
|
274
|
+
* Java method: org.openremote.model.asset.AssetResource.delete
|
|
388
275
|
*/
|
|
389
|
-
|
|
276
|
+
delete(queryParams?: {
|
|
277
|
+
assetId?: string[];
|
|
278
|
+
}, options?: O): RestResponse<void>;
|
|
390
279
|
/**
|
|
391
|
-
* HTTP
|
|
392
|
-
* Java method: org.openremote.model.
|
|
280
|
+
* HTTP PUT /asset/attributes
|
|
281
|
+
* Java method: org.openremote.model.asset.AssetResource.writeAttributeValues
|
|
393
282
|
*/
|
|
394
|
-
|
|
395
|
-
path?: string;
|
|
396
|
-
}, options?: O): RestResponse<string>;
|
|
283
|
+
writeAttributeValues(attributeStates: Model.AttributeState[], options?: O): RestResponse<Model.AttributeWriteResult[]>;
|
|
397
284
|
/**
|
|
398
|
-
* HTTP
|
|
399
|
-
* Java method: org.openremote.model.
|
|
285
|
+
* HTTP PUT /asset/attributes/timestamp
|
|
286
|
+
* Java method: org.openremote.model.asset.AssetResource.writeAttributeEvents
|
|
400
287
|
*/
|
|
401
|
-
|
|
288
|
+
writeAttributeEvents(attributeEvents: Model.AttributeEvent[], options?: O): RestResponse<Model.AttributeWriteResult[]>;
|
|
289
|
+
/**
|
|
290
|
+
* HTTP DELETE /asset/parent
|
|
291
|
+
* Java method: org.openremote.model.asset.AssetResource.updateNoneParent
|
|
292
|
+
*/
|
|
293
|
+
updateNoneParent(queryParams?: {
|
|
294
|
+
assetIds?: string[];
|
|
295
|
+
}, options?: O): RestResponse<void>;
|
|
296
|
+
/**
|
|
297
|
+
* HTTP GET /asset/partial/{assetId}
|
|
298
|
+
* Java method: org.openremote.model.asset.AssetResource.getPartial
|
|
299
|
+
*/
|
|
300
|
+
getPartial(assetId: string, options?: O): RestResponse<Model.Asset>;
|
|
301
|
+
/**
|
|
302
|
+
* HTTP POST /asset/query
|
|
303
|
+
* Java method: org.openremote.model.asset.AssetResource.queryAssets
|
|
304
|
+
*/
|
|
305
|
+
queryAssets(query: Model.AssetQuery, options?: O): RestResponse<Model.Asset[]>;
|
|
306
|
+
/**
|
|
307
|
+
* HTTP GET /asset/user/current
|
|
308
|
+
* Java method: org.openremote.model.asset.AssetResource.getCurrentUserAssets
|
|
309
|
+
*/
|
|
310
|
+
getCurrentUserAssets(options?: O): RestResponse<Model.Asset[]>;
|
|
311
|
+
/**
|
|
312
|
+
* HTTP POST /asset/user/link
|
|
313
|
+
* Java method: org.openremote.model.asset.AssetResource.createUserAssetLinks
|
|
314
|
+
*/
|
|
315
|
+
createUserAssetLinks(userAssets: Model.UserAssetLink[], options?: O): RestResponse<void>;
|
|
316
|
+
/**
|
|
317
|
+
* HTTP GET /asset/user/link
|
|
318
|
+
* Java method: org.openremote.model.asset.AssetResource.getUserAssetLinks
|
|
319
|
+
*/
|
|
320
|
+
getUserAssetLinks(queryParams?: {
|
|
321
|
+
realm?: string;
|
|
322
|
+
userId?: string;
|
|
323
|
+
assetId?: string;
|
|
324
|
+
}, options?: O): RestResponse<Model.UserAssetLink[]>;
|
|
325
|
+
/**
|
|
326
|
+
* HTTP POST /asset/user/link/delete
|
|
327
|
+
* Java method: org.openremote.model.asset.AssetResource.deleteUserAssetLinks
|
|
328
|
+
*/
|
|
329
|
+
deleteUserAssetLinks(userAssets: Model.UserAssetLink[], options?: O): RestResponse<void>;
|
|
330
|
+
/**
|
|
331
|
+
* HTTP DELETE /asset/user/link/{realm}/{userId}
|
|
332
|
+
* Java method: org.openremote.model.asset.AssetResource.deleteAllUserAssetLinks
|
|
333
|
+
*/
|
|
334
|
+
deleteAllUserAssetLinks(realm: string, userId: string, options?: O): RestResponse<void>;
|
|
335
|
+
/**
|
|
336
|
+
* HTTP DELETE /asset/user/link/{realm}/{userId}/{assetId}
|
|
337
|
+
* Java method: org.openremote.model.asset.AssetResource.deleteUserAssetLink
|
|
338
|
+
*/
|
|
339
|
+
deleteUserAssetLink(realm: string, userId: string, assetId: string, options?: O): RestResponse<void>;
|
|
340
|
+
/**
|
|
341
|
+
* HTTP GET /asset/{assetId}
|
|
342
|
+
* Java method: org.openremote.model.asset.AssetResource.get
|
|
343
|
+
*/
|
|
344
|
+
get(assetId: string, options?: O): RestResponse<Model.Asset>;
|
|
345
|
+
/**
|
|
346
|
+
* HTTP PUT /asset/{assetId}
|
|
347
|
+
* Java method: org.openremote.model.asset.AssetResource.update
|
|
348
|
+
*/
|
|
349
|
+
update(assetId: string, asset: Model.Asset, options?: O): RestResponse<Model.Asset>;
|
|
350
|
+
/**
|
|
351
|
+
* HTTP PUT /asset/{assetId}/attribute/{attributeName}
|
|
352
|
+
* Java method: org.openremote.model.asset.AssetResource.writeAttributeValue
|
|
353
|
+
*/
|
|
354
|
+
writeAttributeValue$PUT$asset_assetId_attribute_attributeName(assetId: string, attributeName: string, value: any, options?: O): RestResponse<Model.AttributeWriteResult>;
|
|
355
|
+
/**
|
|
356
|
+
* HTTP PUT /asset/{assetId}/attribute/{attributeName}/{timestamp}
|
|
357
|
+
* Java method: org.openremote.model.asset.AssetResource.writeAttributeValue
|
|
358
|
+
*/
|
|
359
|
+
writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(assetId: string, attributeName: string, timestamp: number, value: any, options?: O): RestResponse<Model.AttributeWriteResult>;
|
|
360
|
+
/**
|
|
361
|
+
* HTTP PUT /asset/{parentAssetId}/child
|
|
362
|
+
* Java method: org.openremote.model.asset.AssetResource.updateParent
|
|
363
|
+
*/
|
|
364
|
+
updateParent(parentAssetId: string, queryParams?: {
|
|
365
|
+
assetIds?: string[];
|
|
366
|
+
}, options?: O): RestResponse<void>;
|
|
402
367
|
}
|
|
403
|
-
export declare class
|
|
368
|
+
export declare class AgentResourceClient<O> {
|
|
404
369
|
protected httpClient: HttpClient<O>;
|
|
405
370
|
constructor(httpClient: HttpClient<O>);
|
|
406
371
|
/**
|
|
407
|
-
* HTTP
|
|
408
|
-
* Java method: org.openremote.model.
|
|
372
|
+
* HTTP GET /agent/assetDiscovery/{agentId}
|
|
373
|
+
* Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetDiscovery
|
|
409
374
|
*/
|
|
410
|
-
|
|
411
|
-
realm?: string
|
|
412
|
-
}, options?: O): RestResponse<
|
|
375
|
+
doProtocolAssetDiscovery(agentId: string, queryParams?: {
|
|
376
|
+
realm?: string;
|
|
377
|
+
}, options?: O): RestResponse<Model.AssetTreeNode[]>;
|
|
413
378
|
/**
|
|
414
|
-
* HTTP
|
|
415
|
-
* Java method: org.openremote.model.
|
|
379
|
+
* HTTP POST /agent/assetImport/{agentId}
|
|
380
|
+
* Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetImport
|
|
416
381
|
*/
|
|
417
|
-
|
|
382
|
+
doProtocolAssetImport(agentId: string, fileInfo: Model.FileInfo, queryParams?: {
|
|
383
|
+
realm?: string;
|
|
384
|
+
}, options?: O): RestResponse<Model.AssetTreeNode[]>;
|
|
418
385
|
/**
|
|
419
|
-
* HTTP
|
|
420
|
-
* Java method: org.openremote.model.
|
|
386
|
+
* HTTP GET /agent/instanceDiscovery/{agentType}
|
|
387
|
+
* Java method: org.openremote.model.asset.agent.AgentResource.doProtocolInstanceDiscovery
|
|
421
388
|
*/
|
|
422
|
-
|
|
389
|
+
doProtocolInstanceDiscovery(agentType: string, queryParams?: {
|
|
390
|
+
parentId?: string;
|
|
391
|
+
realm?: string;
|
|
392
|
+
}, options?: O): RestResponse<Model.Agent[]>;
|
|
393
|
+
}
|
|
394
|
+
export declare class MapResourceClient<O> {
|
|
395
|
+
protected httpClient: HttpClient<O>;
|
|
396
|
+
constructor(httpClient: HttpClient<O>);
|
|
423
397
|
/**
|
|
424
|
-
* HTTP GET /
|
|
425
|
-
* Java method: org.openremote.model.
|
|
398
|
+
* HTTP GET /map
|
|
399
|
+
* Java method: org.openremote.model.map.MapResource.getSettings
|
|
426
400
|
*/
|
|
427
|
-
|
|
401
|
+
getSettings(options?: O): RestResponse<{
|
|
402
|
+
[id: string]: unknown;
|
|
403
|
+
}>;
|
|
428
404
|
/**
|
|
429
|
-
* HTTP PUT /
|
|
430
|
-
* Java method: org.openremote.model.
|
|
405
|
+
* HTTP PUT /map
|
|
406
|
+
* Java method: org.openremote.model.map.MapResource.saveSettings
|
|
431
407
|
*/
|
|
432
|
-
|
|
408
|
+
saveSettings(mapConfig: Model.MapConfig, options?: O): RestResponse<{
|
|
409
|
+
[id: string]: unknown;
|
|
410
|
+
}>;
|
|
433
411
|
/**
|
|
434
|
-
* HTTP
|
|
435
|
-
* Java method: org.openremote.model.
|
|
412
|
+
* HTTP DELETE /map/deleteMap
|
|
413
|
+
* Java method: org.openremote.model.map.MapResource.deleteMap
|
|
436
414
|
*/
|
|
437
|
-
|
|
415
|
+
deleteMap(options?: O): RestResponse<{
|
|
416
|
+
[id: string]: unknown;
|
|
417
|
+
}>;
|
|
418
|
+
/**
|
|
419
|
+
* HTTP GET /map/getCustomMapInfo
|
|
420
|
+
* Java method: org.openremote.model.map.MapResource.getCustomMapInfo
|
|
421
|
+
*/
|
|
422
|
+
getCustomMapInfo(options?: O): RestResponse<{
|
|
423
|
+
[id: string]: unknown;
|
|
424
|
+
}>;
|
|
425
|
+
/**
|
|
426
|
+
* HTTP GET /map/js
|
|
427
|
+
* Java method: org.openremote.model.map.MapResource.getSettingsJs
|
|
428
|
+
*/
|
|
429
|
+
getSettingsJs(options?: O): RestResponse<{
|
|
430
|
+
[id: string]: unknown;
|
|
431
|
+
}>;
|
|
432
|
+
/**
|
|
433
|
+
* HTTP GET /map/tile/{zoom}/{column}/{row}
|
|
434
|
+
* Java method: org.openremote.model.map.MapResource.getTile
|
|
435
|
+
*/
|
|
436
|
+
getTile(zoom: number, column: number, row: number, options?: O): RestResponse<any>;
|
|
437
|
+
/**
|
|
438
|
+
* HTTP POST /map/upload
|
|
439
|
+
* Java method: org.openremote.model.map.MapResource.uploadMap
|
|
440
|
+
*/
|
|
441
|
+
uploadMap(queryParams?: {
|
|
442
|
+
filename?: string;
|
|
443
|
+
}, options?: O): RestResponse<{
|
|
444
|
+
[id: string]: unknown;
|
|
445
|
+
}>;
|
|
446
|
+
}
|
|
447
|
+
export declare class AssetModelResourceClient<O> {
|
|
448
|
+
protected httpClient: HttpClient<O>;
|
|
449
|
+
constructor(httpClient: HttpClient<O>);
|
|
450
|
+
/**
|
|
451
|
+
* HTTP GET /model/assetDescriptors
|
|
452
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getAssetDescriptors
|
|
453
|
+
*/
|
|
454
|
+
getAssetDescriptors(queryParams?: {
|
|
455
|
+
parentId?: string;
|
|
456
|
+
parentType?: string;
|
|
457
|
+
}, options?: O): RestResponse<Model.AssetDescriptor[]>;
|
|
458
|
+
/**
|
|
459
|
+
* HTTP GET /model/assetInfo/{assetType}
|
|
460
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getAssetInfo
|
|
461
|
+
*/
|
|
462
|
+
getAssetInfo(assetType: string, queryParams?: {
|
|
463
|
+
parentId?: string;
|
|
464
|
+
}, options?: O): RestResponse<Model.AssetTypeInfo>;
|
|
465
|
+
/**
|
|
466
|
+
* HTTP GET /model/assetInfos
|
|
467
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getAssetInfos
|
|
468
|
+
*/
|
|
469
|
+
getAssetInfos(queryParams?: {
|
|
470
|
+
parentId?: string;
|
|
471
|
+
parentType?: string;
|
|
472
|
+
}, options?: O): RestResponse<Model.AssetTypeInfo[]>;
|
|
473
|
+
/**
|
|
474
|
+
* HTTP GET /model/metaItemDescriptors
|
|
475
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getMetaItemDescriptors
|
|
476
|
+
*/
|
|
477
|
+
getMetaItemDescriptors(queryParams?: {
|
|
478
|
+
parentId?: string;
|
|
479
|
+
}, options?: O): RestResponse<{
|
|
480
|
+
[index: string]: Model.MetaItemDescriptor;
|
|
481
|
+
}>;
|
|
482
|
+
/**
|
|
483
|
+
* HTTP GET /model/valueDescriptors
|
|
484
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getValueDescriptors
|
|
485
|
+
*/
|
|
486
|
+
getValueDescriptors(queryParams?: {
|
|
487
|
+
parentId?: string;
|
|
488
|
+
}, options?: O): RestResponse<{
|
|
489
|
+
[index: string]: Model.ValueDescriptor;
|
|
490
|
+
}>;
|
|
491
|
+
}
|
|
492
|
+
export declare class ConfigurationResourceClient<O> {
|
|
493
|
+
protected httpClient: HttpClient<O>;
|
|
494
|
+
constructor(httpClient: HttpClient<O>);
|
|
495
|
+
/**
|
|
496
|
+
* HTTP GET /configuration/manager
|
|
497
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfig
|
|
498
|
+
*/
|
|
499
|
+
getManagerConfig(options?: O): RestResponse<Model.ManagerAppConfig>;
|
|
500
|
+
/**
|
|
501
|
+
* HTTP PUT /configuration/manager
|
|
502
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.update
|
|
503
|
+
*/
|
|
504
|
+
update(managerConfiguration: Model.ManagerAppConfig, options?: O): RestResponse<Model.ManagerAppConfig>;
|
|
505
|
+
/**
|
|
506
|
+
* HTTP POST /configuration/manager/file
|
|
507
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.fileUpload
|
|
508
|
+
*/
|
|
509
|
+
fileUpload(fileInfo: Model.FileInfo, queryParams?: {
|
|
510
|
+
path?: string;
|
|
511
|
+
}, options?: O): RestResponse<string>;
|
|
512
|
+
/**
|
|
513
|
+
* HTTP GET /configuration/manager/image/{filename: .+}
|
|
514
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfigImage
|
|
515
|
+
*/
|
|
516
|
+
getManagerConfigImage(filename: string, options?: O): RestResponse<any>;
|
|
517
|
+
}
|
|
518
|
+
export declare class AssetPredictedDatapointResourceClient<O> {
|
|
519
|
+
protected httpClient: HttpClient<O>;
|
|
520
|
+
constructor(httpClient: HttpClient<O>);
|
|
521
|
+
/**
|
|
522
|
+
* HTTP POST /asset/predicted/{assetId}/{attributeName}
|
|
523
|
+
* Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.getPredictedDatapoints
|
|
524
|
+
*/
|
|
525
|
+
getPredictedDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
|
|
526
|
+
/**
|
|
527
|
+
* HTTP PUT /asset/predicted/{assetId}/{attributeName}
|
|
528
|
+
* Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.writePredictedDatapoints
|
|
529
|
+
*/
|
|
530
|
+
writePredictedDatapoints(assetId: string, attributeName: string, predictedDatapoints: Model.ValueDatapoint<any>[], options?: O): RestResponse<void>;
|
|
438
531
|
}
|
|
439
532
|
export declare class UserResourceClient<O> {
|
|
440
533
|
protected httpClient: HttpClient<O>;
|
|
@@ -648,116 +741,12 @@ export declare class RulesResourceClient<O> {
|
|
|
648
741
|
*/
|
|
649
742
|
updateGlobalRuleset(id: number, ruleset: Model.GlobalRuleset, options?: O): RestResponse<void>;
|
|
650
743
|
}
|
|
651
|
-
export declare class
|
|
744
|
+
export declare class StatusResourceClient<O> {
|
|
652
745
|
protected httpClient: HttpClient<O>;
|
|
653
746
|
constructor(httpClient: HttpClient<O>);
|
|
654
747
|
/**
|
|
655
|
-
* HTTP
|
|
656
|
-
* Java method: org.openremote.model.
|
|
657
|
-
*/
|
|
658
|
-
create(asset: Model.Asset, options?: O): RestResponse<Model.Asset>;
|
|
659
|
-
/**
|
|
660
|
-
* HTTP DELETE /asset
|
|
661
|
-
* Java method: org.openremote.model.asset.AssetResource.delete
|
|
662
|
-
*/
|
|
663
|
-
delete(queryParams?: {
|
|
664
|
-
assetId?: string[];
|
|
665
|
-
}, options?: O): RestResponse<void>;
|
|
666
|
-
/**
|
|
667
|
-
* HTTP PUT /asset/attributes
|
|
668
|
-
* Java method: org.openremote.model.asset.AssetResource.writeAttributeValues
|
|
669
|
-
*/
|
|
670
|
-
writeAttributeValues(attributeStates: Model.AttributeState[], options?: O): RestResponse<Model.AttributeWriteResult[]>;
|
|
671
|
-
/**
|
|
672
|
-
* HTTP PUT /asset/attributes/timestamp
|
|
673
|
-
* Java method: org.openremote.model.asset.AssetResource.writeAttributeEvents
|
|
674
|
-
*/
|
|
675
|
-
writeAttributeEvents(attributeEvents: Model.AttributeEvent[], options?: O): RestResponse<Model.AttributeWriteResult[]>;
|
|
676
|
-
/**
|
|
677
|
-
* HTTP DELETE /asset/parent
|
|
678
|
-
* Java method: org.openremote.model.asset.AssetResource.updateNoneParent
|
|
679
|
-
*/
|
|
680
|
-
updateNoneParent(queryParams?: {
|
|
681
|
-
assetIds?: string[];
|
|
682
|
-
}, options?: O): RestResponse<void>;
|
|
683
|
-
/**
|
|
684
|
-
* HTTP GET /asset/partial/{assetId}
|
|
685
|
-
* Java method: org.openremote.model.asset.AssetResource.getPartial
|
|
686
|
-
*/
|
|
687
|
-
getPartial(assetId: string, options?: O): RestResponse<Model.Asset>;
|
|
688
|
-
/**
|
|
689
|
-
* HTTP POST /asset/query
|
|
690
|
-
* Java method: org.openremote.model.asset.AssetResource.queryAssets
|
|
691
|
-
*/
|
|
692
|
-
queryAssets(query: Model.AssetQuery, options?: O): RestResponse<Model.Asset[]>;
|
|
693
|
-
/**
|
|
694
|
-
* HTTP GET /asset/user/current
|
|
695
|
-
* Java method: org.openremote.model.asset.AssetResource.getCurrentUserAssets
|
|
696
|
-
*/
|
|
697
|
-
getCurrentUserAssets(options?: O): RestResponse<Model.Asset[]>;
|
|
698
|
-
/**
|
|
699
|
-
* HTTP POST /asset/user/link
|
|
700
|
-
* Java method: org.openremote.model.asset.AssetResource.createUserAssetLinks
|
|
701
|
-
*/
|
|
702
|
-
createUserAssetLinks(userAssets: Model.UserAssetLink[], options?: O): RestResponse<void>;
|
|
703
|
-
/**
|
|
704
|
-
* HTTP GET /asset/user/link
|
|
705
|
-
* Java method: org.openremote.model.asset.AssetResource.getUserAssetLinks
|
|
706
|
-
*/
|
|
707
|
-
getUserAssetLinks(queryParams?: {
|
|
708
|
-
realm?: string;
|
|
709
|
-
userId?: string;
|
|
710
|
-
assetId?: string;
|
|
711
|
-
}, options?: O): RestResponse<Model.UserAssetLink[]>;
|
|
712
|
-
/**
|
|
713
|
-
* HTTP POST /asset/user/link/delete
|
|
714
|
-
* Java method: org.openremote.model.asset.AssetResource.deleteUserAssetLinks
|
|
715
|
-
*/
|
|
716
|
-
deleteUserAssetLinks(userAssets: Model.UserAssetLink[], options?: O): RestResponse<void>;
|
|
717
|
-
/**
|
|
718
|
-
* HTTP DELETE /asset/user/link/{realm}/{userId}
|
|
719
|
-
* Java method: org.openremote.model.asset.AssetResource.deleteAllUserAssetLinks
|
|
720
|
-
*/
|
|
721
|
-
deleteAllUserAssetLinks(realm: string, userId: string, options?: O): RestResponse<void>;
|
|
722
|
-
/**
|
|
723
|
-
* HTTP DELETE /asset/user/link/{realm}/{userId}/{assetId}
|
|
724
|
-
* Java method: org.openremote.model.asset.AssetResource.deleteUserAssetLink
|
|
725
|
-
*/
|
|
726
|
-
deleteUserAssetLink(realm: string, userId: string, assetId: string, options?: O): RestResponse<void>;
|
|
727
|
-
/**
|
|
728
|
-
* HTTP GET /asset/{assetId}
|
|
729
|
-
* Java method: org.openremote.model.asset.AssetResource.get
|
|
730
|
-
*/
|
|
731
|
-
get(assetId: string, options?: O): RestResponse<Model.Asset>;
|
|
732
|
-
/**
|
|
733
|
-
* HTTP PUT /asset/{assetId}
|
|
734
|
-
* Java method: org.openremote.model.asset.AssetResource.update
|
|
735
|
-
*/
|
|
736
|
-
update(assetId: string, asset: Model.Asset, options?: O): RestResponse<Model.Asset>;
|
|
737
|
-
/**
|
|
738
|
-
* HTTP PUT /asset/{assetId}/attribute/{attributeName}
|
|
739
|
-
* Java method: org.openremote.model.asset.AssetResource.writeAttributeValue
|
|
740
|
-
*/
|
|
741
|
-
writeAttributeValue$PUT$asset_assetId_attribute_attributeName(assetId: string, attributeName: string, value: any, options?: O): RestResponse<Model.AttributeWriteResult>;
|
|
742
|
-
/**
|
|
743
|
-
* HTTP PUT /asset/{assetId}/attribute/{attributeName}/{timestamp}
|
|
744
|
-
* Java method: org.openremote.model.asset.AssetResource.writeAttributeValue
|
|
745
|
-
*/
|
|
746
|
-
writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(assetId: string, attributeName: string, timestamp: number, value: any, options?: O): RestResponse<Model.AttributeWriteResult>;
|
|
747
|
-
/**
|
|
748
|
-
* HTTP PUT /asset/{parentAssetId}/child
|
|
749
|
-
* Java method: org.openremote.model.asset.AssetResource.updateParent
|
|
750
|
-
*/
|
|
751
|
-
updateParent(parentAssetId: string, queryParams?: {
|
|
752
|
-
assetIds?: string[];
|
|
753
|
-
}, options?: O): RestResponse<void>;
|
|
754
|
-
}
|
|
755
|
-
export declare class StatusResourceClient<O> {
|
|
756
|
-
protected httpClient: HttpClient<O>;
|
|
757
|
-
constructor(httpClient: HttpClient<O>);
|
|
758
|
-
/**
|
|
759
|
-
* HTTP GET /health
|
|
760
|
-
* Java method: org.openremote.model.system.StatusResource.getHealthStatus
|
|
748
|
+
* HTTP GET /health
|
|
749
|
+
* Java method: org.openremote.model.system.StatusResource.getHealthStatus
|
|
761
750
|
*/
|
|
762
751
|
getHealthStatus(options?: O): RestResponse<{
|
|
763
752
|
[index: string]: any;
|
|
@@ -770,58 +759,33 @@ export declare class StatusResourceClient<O> {
|
|
|
770
759
|
[index: string]: any;
|
|
771
760
|
}>;
|
|
772
761
|
}
|
|
773
|
-
export declare class
|
|
762
|
+
export declare class ConsoleResourceClient<O> {
|
|
774
763
|
protected httpClient: HttpClient<O>;
|
|
775
764
|
constructor(httpClient: HttpClient<O>);
|
|
776
765
|
/**
|
|
777
|
-
* HTTP
|
|
778
|
-
* Java method: org.openremote.model.
|
|
779
|
-
*/
|
|
780
|
-
getSettings(options?: O): RestResponse<{
|
|
781
|
-
[id: string]: unknown;
|
|
782
|
-
}>;
|
|
783
|
-
/**
|
|
784
|
-
* HTTP PUT /map
|
|
785
|
-
* Java method: org.openremote.model.map.MapResource.saveSettings
|
|
786
|
-
*/
|
|
787
|
-
saveSettings(mapConfig: Model.MapConfig, options?: O): RestResponse<{
|
|
788
|
-
[id: string]: unknown;
|
|
789
|
-
}>;
|
|
790
|
-
/**
|
|
791
|
-
* HTTP DELETE /map/deleteMap
|
|
792
|
-
* Java method: org.openremote.model.map.MapResource.deleteMap
|
|
793
|
-
*/
|
|
794
|
-
deleteMap(options?: O): RestResponse<{
|
|
795
|
-
[id: string]: unknown;
|
|
796
|
-
}>;
|
|
797
|
-
/**
|
|
798
|
-
* HTTP GET /map/getCustomMapInfo
|
|
799
|
-
* Java method: org.openremote.model.map.MapResource.getCustomMapInfo
|
|
766
|
+
* HTTP POST /console/register
|
|
767
|
+
* Java method: org.openremote.model.console.ConsoleResource.register
|
|
800
768
|
*/
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
769
|
+
register(consoleRegistration: Model.ConsoleRegistration, options?: O): RestResponse<Model.ConsoleRegistration>;
|
|
770
|
+
}
|
|
771
|
+
export declare class FlowResourceClient<O> {
|
|
772
|
+
protected httpClient: HttpClient<O>;
|
|
773
|
+
constructor(httpClient: HttpClient<O>);
|
|
804
774
|
/**
|
|
805
|
-
* HTTP GET /
|
|
806
|
-
* Java method: org.openremote.model.
|
|
775
|
+
* HTTP GET /flow
|
|
776
|
+
* Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitions
|
|
807
777
|
*/
|
|
808
|
-
|
|
809
|
-
[id: string]: unknown;
|
|
810
|
-
}>;
|
|
778
|
+
getAllNodeDefinitions(options?: O): RestResponse<Model.Node[]>;
|
|
811
779
|
/**
|
|
812
|
-
* HTTP GET /
|
|
813
|
-
* Java method: org.openremote.model.
|
|
780
|
+
* HTTP GET /flow/{name}
|
|
781
|
+
* Java method: org.openremote.model.rules.flow.FlowResource.getNodeDefinition
|
|
814
782
|
*/
|
|
815
|
-
|
|
783
|
+
getNodeDefinition(name: string, options?: O): RestResponse<Model.Node>;
|
|
816
784
|
/**
|
|
817
|
-
* HTTP
|
|
818
|
-
* Java method: org.openremote.model.
|
|
785
|
+
* HTTP GET /flow/{type}
|
|
786
|
+
* Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitionsByType
|
|
819
787
|
*/
|
|
820
|
-
|
|
821
|
-
filename?: string;
|
|
822
|
-
}, options?: O): RestResponse<{
|
|
823
|
-
[id: string]: unknown;
|
|
824
|
-
}>;
|
|
788
|
+
getAllNodeDefinitionsByType(type: Model.NodeType, options?: O): RestResponse<Model.Node[]>;
|
|
825
789
|
}
|
|
826
790
|
export declare class DashboardResourceClient<O> {
|
|
827
791
|
protected httpClient: HttpClient<O>;
|
|
@@ -857,70 +821,106 @@ export declare class DashboardResourceClient<O> {
|
|
|
857
821
|
*/
|
|
858
822
|
get(realm: string, dashboardId: string, options?: O): RestResponse<Model.Dashboard>;
|
|
859
823
|
}
|
|
860
|
-
export declare class
|
|
824
|
+
export declare class AppResourceClient<O> {
|
|
861
825
|
protected httpClient: HttpClient<O>;
|
|
862
826
|
constructor(httpClient: HttpClient<O>);
|
|
863
827
|
/**
|
|
864
|
-
* HTTP GET /
|
|
865
|
-
* Java method: org.openremote.model.
|
|
828
|
+
* HTTP GET /apps
|
|
829
|
+
* Java method: org.openremote.model.apps.AppResource.getApps
|
|
866
830
|
*/
|
|
867
|
-
|
|
831
|
+
getApps(options?: O): RestResponse<string[]>;
|
|
868
832
|
/**
|
|
869
|
-
* HTTP GET /
|
|
870
|
-
* Java method: org.openremote.model.
|
|
833
|
+
* HTTP GET /apps/consoleConfig
|
|
834
|
+
* Java method: org.openremote.model.apps.AppResource.getConsoleConfig
|
|
871
835
|
*/
|
|
872
|
-
|
|
836
|
+
getConsoleConfig(options?: O): RestResponse<any>;
|
|
873
837
|
/**
|
|
874
|
-
* HTTP GET /
|
|
875
|
-
* Java method: org.openremote.model.
|
|
838
|
+
* HTTP GET /apps/info
|
|
839
|
+
* Java method: org.openremote.model.apps.AppResource.getAppInfos
|
|
876
840
|
*/
|
|
877
|
-
|
|
841
|
+
getAppInfos(options?: O): RestResponse<any>;
|
|
842
|
+
}
|
|
843
|
+
export declare class GatewayClientResourceClient<O> {
|
|
844
|
+
protected httpClient: HttpClient<O>;
|
|
845
|
+
constructor(httpClient: HttpClient<O>);
|
|
846
|
+
/**
|
|
847
|
+
* HTTP DELETE /gateway/connection
|
|
848
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnections
|
|
849
|
+
*/
|
|
850
|
+
deleteConnections(queryParams?: {
|
|
851
|
+
realm?: string[];
|
|
852
|
+
}, options?: O): RestResponse<void>;
|
|
853
|
+
/**
|
|
854
|
+
* HTTP GET /gateway/connection
|
|
855
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnections
|
|
856
|
+
*/
|
|
857
|
+
getConnections(options?: O): RestResponse<Model.GatewayConnection[]>;
|
|
858
|
+
/**
|
|
859
|
+
* HTTP DELETE /gateway/connection/{realm}
|
|
860
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnection
|
|
861
|
+
*/
|
|
862
|
+
deleteConnection(realm: string, options?: O): RestResponse<void>;
|
|
863
|
+
/**
|
|
864
|
+
* HTTP GET /gateway/connection/{realm}
|
|
865
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnection
|
|
866
|
+
*/
|
|
867
|
+
getConnection(realm: string, options?: O): RestResponse<Model.GatewayConnection>;
|
|
868
|
+
/**
|
|
869
|
+
* HTTP PUT /gateway/connection/{realm}
|
|
870
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.setConnection
|
|
871
|
+
*/
|
|
872
|
+
setConnection(realm: string, connection: Model.GatewayConnection, options?: O): RestResponse<void>;
|
|
873
|
+
/**
|
|
874
|
+
* HTTP GET /gateway/status/{realm}
|
|
875
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnectionStatus
|
|
876
|
+
*/
|
|
877
|
+
getConnectionStatus(realm: string, options?: O): RestResponse<Model.ConnectionStatus>;
|
|
878
878
|
}
|
|
879
879
|
export type RestResponse<R> = Promise<Axios.GenericAxiosResponse<R>>;
|
|
880
880
|
export declare class ApiClient {
|
|
881
|
-
protected _realmResource: AxiosRealmResourceClient;
|
|
882
|
-
protected _assetDatapointResource: AxiosAssetDatapointResourceClient;
|
|
883
881
|
protected _alarmResource: AxiosAlarmResourceClient;
|
|
884
882
|
protected _notificationResource: AxiosNotificationResourceClient;
|
|
885
|
-
protected _assetModelResource: AxiosAssetModelResourceClient;
|
|
886
|
-
protected _consoleResource: AxiosConsoleResourceClient;
|
|
887
|
-
protected _appResource: AxiosAppResourceClient;
|
|
888
|
-
protected _provisioningResource: AxiosProvisioningResourceClient;
|
|
889
|
-
protected _assetPredictedDatapointResource: AxiosAssetPredictedDatapointResourceClient;
|
|
890
883
|
protected _syslogResource: AxiosSyslogResourceClient;
|
|
884
|
+
protected _provisioningResource: AxiosProvisioningResourceClient;
|
|
885
|
+
protected _realmResource: AxiosRealmResourceClient;
|
|
891
886
|
protected _gatewayServiceResource: AxiosGatewayServiceResourceClient;
|
|
887
|
+
protected _assetDatapointResource: AxiosAssetDatapointResourceClient;
|
|
888
|
+
protected _assetResource: AxiosAssetResourceClient;
|
|
892
889
|
protected _agentResource: AxiosAgentResourceClient;
|
|
890
|
+
protected _mapResource: AxiosMapResourceClient;
|
|
891
|
+
protected _assetModelResource: AxiosAssetModelResourceClient;
|
|
893
892
|
protected _configurationResource: AxiosConfigurationResourceClient;
|
|
894
|
-
protected
|
|
893
|
+
protected _assetPredictedDatapointResource: AxiosAssetPredictedDatapointResourceClient;
|
|
895
894
|
protected _userResource: AxiosUserResourceClient;
|
|
896
895
|
protected _rulesResource: AxiosRulesResourceClient;
|
|
897
|
-
protected _assetResource: AxiosAssetResourceClient;
|
|
898
896
|
protected _statusResource: AxiosStatusResourceClient;
|
|
899
|
-
protected
|
|
900
|
-
protected _dashboardResource: AxiosDashboardResourceClient;
|
|
897
|
+
protected _consoleResource: AxiosConsoleResourceClient;
|
|
901
898
|
protected _flowResource: AxiosFlowResourceClient;
|
|
899
|
+
protected _dashboardResource: AxiosDashboardResourceClient;
|
|
900
|
+
protected _appResource: AxiosAppResourceClient;
|
|
901
|
+
protected _gatewayClientResource: AxiosGatewayClientResourceClient;
|
|
902
902
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
903
|
-
get RealmResource(): AxiosRealmResourceClient;
|
|
904
|
-
get AssetDatapointResource(): AxiosAssetDatapointResourceClient;
|
|
905
903
|
get AlarmResource(): AxiosAlarmResourceClient;
|
|
906
904
|
get NotificationResource(): AxiosNotificationResourceClient;
|
|
907
|
-
get AssetModelResource(): AxiosAssetModelResourceClient;
|
|
908
|
-
get ConsoleResource(): AxiosConsoleResourceClient;
|
|
909
|
-
get AppResource(): AxiosAppResourceClient;
|
|
910
|
-
get ProvisioningResource(): AxiosProvisioningResourceClient;
|
|
911
|
-
get AssetPredictedDatapointResource(): AxiosAssetPredictedDatapointResourceClient;
|
|
912
905
|
get SyslogResource(): AxiosSyslogResourceClient;
|
|
906
|
+
get ProvisioningResource(): AxiosProvisioningResourceClient;
|
|
907
|
+
get RealmResource(): AxiosRealmResourceClient;
|
|
913
908
|
get GatewayServiceResource(): AxiosGatewayServiceResourceClient;
|
|
909
|
+
get AssetDatapointResource(): AxiosAssetDatapointResourceClient;
|
|
910
|
+
get AssetResource(): AxiosAssetResourceClient;
|
|
914
911
|
get AgentResource(): AxiosAgentResourceClient;
|
|
912
|
+
get MapResource(): AxiosMapResourceClient;
|
|
913
|
+
get AssetModelResource(): AxiosAssetModelResourceClient;
|
|
915
914
|
get ConfigurationResource(): AxiosConfigurationResourceClient;
|
|
916
|
-
get
|
|
915
|
+
get AssetPredictedDatapointResource(): AxiosAssetPredictedDatapointResourceClient;
|
|
917
916
|
get UserResource(): AxiosUserResourceClient;
|
|
918
917
|
get RulesResource(): AxiosRulesResourceClient;
|
|
919
|
-
get AssetResource(): AxiosAssetResourceClient;
|
|
920
918
|
get StatusResource(): AxiosStatusResourceClient;
|
|
921
|
-
get
|
|
922
|
-
get DashboardResource(): AxiosDashboardResourceClient;
|
|
919
|
+
get ConsoleResource(): AxiosConsoleResourceClient;
|
|
923
920
|
get FlowResource(): AxiosFlowResourceClient;
|
|
921
|
+
get DashboardResource(): AxiosDashboardResourceClient;
|
|
922
|
+
get AppResource(): AxiosAppResourceClient;
|
|
923
|
+
get GatewayClientResource(): AxiosGatewayClientResourceClient;
|
|
924
924
|
}
|
|
925
925
|
import * as Axios from "axios";
|
|
926
926
|
declare module "axios" {
|
|
@@ -928,46 +928,43 @@ declare module "axios" {
|
|
|
928
928
|
data: R;
|
|
929
929
|
}
|
|
930
930
|
}
|
|
931
|
-
export declare class AxiosRealmResourceClient extends RealmResourceClient<Axios.AxiosRequestConfig> {
|
|
932
|
-
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
933
|
-
}
|
|
934
|
-
export declare class AxiosAssetDatapointResourceClient extends AssetDatapointResourceClient<Axios.AxiosRequestConfig> {
|
|
935
|
-
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
936
|
-
}
|
|
937
931
|
export declare class AxiosAlarmResourceClient extends AlarmResourceClient<Axios.AxiosRequestConfig> {
|
|
938
932
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
939
933
|
}
|
|
940
934
|
export declare class AxiosNotificationResourceClient extends NotificationResourceClient<Axios.AxiosRequestConfig> {
|
|
941
935
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
942
936
|
}
|
|
943
|
-
export declare class
|
|
937
|
+
export declare class AxiosSyslogResourceClient extends SyslogResourceClient<Axios.AxiosRequestConfig> {
|
|
944
938
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
945
939
|
}
|
|
946
|
-
export declare class
|
|
940
|
+
export declare class AxiosProvisioningResourceClient extends ProvisioningResourceClient<Axios.AxiosRequestConfig> {
|
|
947
941
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
948
942
|
}
|
|
949
|
-
export declare class
|
|
943
|
+
export declare class AxiosRealmResourceClient extends RealmResourceClient<Axios.AxiosRequestConfig> {
|
|
950
944
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
951
945
|
}
|
|
952
|
-
export declare class
|
|
946
|
+
export declare class AxiosGatewayServiceResourceClient extends GatewayServiceResourceClient<Axios.AxiosRequestConfig> {
|
|
953
947
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
954
948
|
}
|
|
955
|
-
export declare class
|
|
949
|
+
export declare class AxiosAssetDatapointResourceClient extends AssetDatapointResourceClient<Axios.AxiosRequestConfig> {
|
|
956
950
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
957
951
|
}
|
|
958
|
-
export declare class
|
|
952
|
+
export declare class AxiosAssetResourceClient extends AssetResourceClient<Axios.AxiosRequestConfig> {
|
|
959
953
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
960
954
|
}
|
|
961
|
-
export declare class
|
|
955
|
+
export declare class AxiosAgentResourceClient extends AgentResourceClient<Axios.AxiosRequestConfig> {
|
|
962
956
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
963
957
|
}
|
|
964
|
-
export declare class
|
|
958
|
+
export declare class AxiosMapResourceClient extends MapResourceClient<Axios.AxiosRequestConfig> {
|
|
959
|
+
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
960
|
+
}
|
|
961
|
+
export declare class AxiosAssetModelResourceClient extends AssetModelResourceClient<Axios.AxiosRequestConfig> {
|
|
965
962
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
966
963
|
}
|
|
967
964
|
export declare class AxiosConfigurationResourceClient extends ConfigurationResourceClient<Axios.AxiosRequestConfig> {
|
|
968
965
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
969
966
|
}
|
|
970
|
-
export declare class
|
|
967
|
+
export declare class AxiosAssetPredictedDatapointResourceClient extends AssetPredictedDatapointResourceClient<Axios.AxiosRequestConfig> {
|
|
971
968
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
972
969
|
}
|
|
973
970
|
export declare class AxiosUserResourceClient extends UserResourceClient<Axios.AxiosRequestConfig> {
|
|
@@ -976,18 +973,21 @@ export declare class AxiosUserResourceClient extends UserResourceClient<Axios.Ax
|
|
|
976
973
|
export declare class AxiosRulesResourceClient extends RulesResourceClient<Axios.AxiosRequestConfig> {
|
|
977
974
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
978
975
|
}
|
|
979
|
-
export declare class
|
|
976
|
+
export declare class AxiosStatusResourceClient extends StatusResourceClient<Axios.AxiosRequestConfig> {
|
|
980
977
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
981
978
|
}
|
|
982
|
-
export declare class
|
|
979
|
+
export declare class AxiosConsoleResourceClient extends ConsoleResourceClient<Axios.AxiosRequestConfig> {
|
|
983
980
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
984
981
|
}
|
|
985
|
-
export declare class
|
|
982
|
+
export declare class AxiosFlowResourceClient extends FlowResourceClient<Axios.AxiosRequestConfig> {
|
|
986
983
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
987
984
|
}
|
|
988
985
|
export declare class AxiosDashboardResourceClient extends DashboardResourceClient<Axios.AxiosRequestConfig> {
|
|
989
986
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
990
987
|
}
|
|
991
|
-
export declare class
|
|
988
|
+
export declare class AxiosAppResourceClient extends AppResourceClient<Axios.AxiosRequestConfig> {
|
|
989
|
+
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
990
|
+
}
|
|
991
|
+
export declare class AxiosGatewayClientResourceClient extends GatewayClientResourceClient<Axios.AxiosRequestConfig> {
|
|
992
992
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
993
993
|
}
|