@openremote/rest 1.7.0-snapshot.20250602105226 → 1.7.0-snapshot.20250602140158
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 +418 -418
- package/lib/restclient.js +1 -1
- package/lib/restclient.js.map +1 -1
- package/package.json +3 -3
package/lib/restclient.d.ts
CHANGED
|
@@ -113,6 +113,43 @@ export declare class UserResourceClient<O> {
|
|
|
113
113
|
*/
|
|
114
114
|
get(realm: string, userId: string, options?: O): RestResponse<Model.User>;
|
|
115
115
|
}
|
|
116
|
+
export declare class AppResourceClient<O> {
|
|
117
|
+
protected httpClient: HttpClient<O>;
|
|
118
|
+
constructor(httpClient: HttpClient<O>);
|
|
119
|
+
/**
|
|
120
|
+
* HTTP GET /apps
|
|
121
|
+
* Java method: org.openremote.model.apps.AppResource.getApps
|
|
122
|
+
*/
|
|
123
|
+
getApps(options?: O): RestResponse<string[]>;
|
|
124
|
+
/**
|
|
125
|
+
* HTTP GET /apps/consoleConfig
|
|
126
|
+
* Java method: org.openremote.model.apps.AppResource.getConsoleConfig
|
|
127
|
+
*/
|
|
128
|
+
getConsoleConfig(options?: O): RestResponse<any>;
|
|
129
|
+
/**
|
|
130
|
+
* HTTP GET /apps/info
|
|
131
|
+
* Java method: org.openremote.model.apps.AppResource.getAppInfos
|
|
132
|
+
*/
|
|
133
|
+
getAppInfos(options?: O): RestResponse<any>;
|
|
134
|
+
}
|
|
135
|
+
export declare class StatusResourceClient<O> {
|
|
136
|
+
protected httpClient: HttpClient<O>;
|
|
137
|
+
constructor(httpClient: HttpClient<O>);
|
|
138
|
+
/**
|
|
139
|
+
* HTTP GET /health
|
|
140
|
+
* Java method: org.openremote.model.system.StatusResource.getHealthStatus
|
|
141
|
+
*/
|
|
142
|
+
getHealthStatus(options?: O): RestResponse<{
|
|
143
|
+
[index: string]: any;
|
|
144
|
+
}>;
|
|
145
|
+
/**
|
|
146
|
+
* HTTP GET /info
|
|
147
|
+
* Java method: org.openremote.model.system.StatusResource.getInfo
|
|
148
|
+
*/
|
|
149
|
+
getInfo(options?: O): RestResponse<{
|
|
150
|
+
[index: string]: any;
|
|
151
|
+
}>;
|
|
152
|
+
}
|
|
116
153
|
export declare class ProvisioningResourceClient<O> {
|
|
117
154
|
protected httpClient: HttpClient<O>;
|
|
118
155
|
constructor(httpClient: HttpClient<O>);
|
|
@@ -137,6 +174,84 @@ export declare class ProvisioningResourceClient<O> {
|
|
|
137
174
|
*/
|
|
138
175
|
updateProvisioningConfig(id: number, provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<void>;
|
|
139
176
|
}
|
|
177
|
+
export declare class FlowResourceClient<O> {
|
|
178
|
+
protected httpClient: HttpClient<O>;
|
|
179
|
+
constructor(httpClient: HttpClient<O>);
|
|
180
|
+
/**
|
|
181
|
+
* HTTP GET /flow
|
|
182
|
+
* Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitions
|
|
183
|
+
*/
|
|
184
|
+
getAllNodeDefinitions(options?: O): RestResponse<Model.Node[]>;
|
|
185
|
+
/**
|
|
186
|
+
* HTTP GET /flow/{name}
|
|
187
|
+
* Java method: org.openremote.model.rules.flow.FlowResource.getNodeDefinition
|
|
188
|
+
*/
|
|
189
|
+
getNodeDefinition(name: string, options?: O): RestResponse<Model.Node>;
|
|
190
|
+
/**
|
|
191
|
+
* HTTP GET /flow/{type}
|
|
192
|
+
* Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitionsByType
|
|
193
|
+
*/
|
|
194
|
+
getAllNodeDefinitionsByType(type: Model.NodeType, options?: O): RestResponse<Model.Node[]>;
|
|
195
|
+
}
|
|
196
|
+
export declare class AssetModelResourceClient<O> {
|
|
197
|
+
protected httpClient: HttpClient<O>;
|
|
198
|
+
constructor(httpClient: HttpClient<O>);
|
|
199
|
+
/**
|
|
200
|
+
* HTTP GET /model/assetDescriptors
|
|
201
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getAssetDescriptors
|
|
202
|
+
*/
|
|
203
|
+
getAssetDescriptors(queryParams?: {
|
|
204
|
+
parentId?: string;
|
|
205
|
+
parentType?: string;
|
|
206
|
+
}, options?: O): RestResponse<Model.AssetDescriptor[]>;
|
|
207
|
+
/**
|
|
208
|
+
* HTTP GET /model/assetInfo/{assetType}
|
|
209
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getAssetInfo
|
|
210
|
+
*/
|
|
211
|
+
getAssetInfo(assetType: string, queryParams?: {
|
|
212
|
+
parentId?: string;
|
|
213
|
+
}, options?: O): RestResponse<Model.AssetTypeInfo>;
|
|
214
|
+
/**
|
|
215
|
+
* HTTP GET /model/assetInfos
|
|
216
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getAssetInfos
|
|
217
|
+
*/
|
|
218
|
+
getAssetInfos(queryParams?: {
|
|
219
|
+
parentId?: string;
|
|
220
|
+
parentType?: string;
|
|
221
|
+
}, options?: O): RestResponse<Model.AssetTypeInfo[]>;
|
|
222
|
+
/**
|
|
223
|
+
* HTTP GET /model/metaItemDescriptors
|
|
224
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getMetaItemDescriptors
|
|
225
|
+
*/
|
|
226
|
+
getMetaItemDescriptors(queryParams?: {
|
|
227
|
+
parentId?: string;
|
|
228
|
+
}, options?: O): RestResponse<{
|
|
229
|
+
[index: string]: Model.MetaItemDescriptor;
|
|
230
|
+
}>;
|
|
231
|
+
/**
|
|
232
|
+
* HTTP GET /model/valueDescriptors
|
|
233
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getValueDescriptors
|
|
234
|
+
*/
|
|
235
|
+
getValueDescriptors(queryParams?: {
|
|
236
|
+
parentId?: string;
|
|
237
|
+
}, options?: O): RestResponse<{
|
|
238
|
+
[index: string]: Model.ValueDescriptor;
|
|
239
|
+
}>;
|
|
240
|
+
}
|
|
241
|
+
export declare class AssetPredictedDatapointResourceClient<O> {
|
|
242
|
+
protected httpClient: HttpClient<O>;
|
|
243
|
+
constructor(httpClient: HttpClient<O>);
|
|
244
|
+
/**
|
|
245
|
+
* HTTP POST /asset/predicted/{assetId}/{attributeName}
|
|
246
|
+
* Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.getPredictedDatapoints
|
|
247
|
+
*/
|
|
248
|
+
getPredictedDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
|
|
249
|
+
/**
|
|
250
|
+
* HTTP PUT /asset/predicted/{assetId}/{attributeName}
|
|
251
|
+
* Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.writePredictedDatapoints
|
|
252
|
+
*/
|
|
253
|
+
writePredictedDatapoints(assetId: string, attributeName: string, predictedDatapoints: Model.ValueDatapoint<any>[], options?: O): RestResponse<void>;
|
|
254
|
+
}
|
|
140
255
|
export declare class AssetDatapointResourceClient<O> {
|
|
141
256
|
protected httpClient: HttpClient<O>;
|
|
142
257
|
constructor(httpClient: HttpClient<O>);
|
|
@@ -163,6 +278,74 @@ export declare class AssetDatapointResourceClient<O> {
|
|
|
163
278
|
*/
|
|
164
279
|
getDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
|
|
165
280
|
}
|
|
281
|
+
export declare class DashboardResourceClient<O> {
|
|
282
|
+
protected httpClient: HttpClient<O>;
|
|
283
|
+
constructor(httpClient: HttpClient<O>);
|
|
284
|
+
/**
|
|
285
|
+
* HTTP POST /dashboard
|
|
286
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.create
|
|
287
|
+
*/
|
|
288
|
+
create(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
|
|
289
|
+
/**
|
|
290
|
+
* HTTP PUT /dashboard
|
|
291
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.update
|
|
292
|
+
*/
|
|
293
|
+
update(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
|
|
294
|
+
/**
|
|
295
|
+
* HTTP GET /dashboard/all/{realm}
|
|
296
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.getAllRealmDashboards
|
|
297
|
+
*/
|
|
298
|
+
getAllRealmDashboards(realm: string, options?: O): RestResponse<Model.Dashboard[]>;
|
|
299
|
+
/**
|
|
300
|
+
* HTTP POST /dashboard/query
|
|
301
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.query
|
|
302
|
+
*/
|
|
303
|
+
query(dashboardQuery: Model.DashboardQuery, options?: O): RestResponse<Model.Dashboard[]>;
|
|
304
|
+
/**
|
|
305
|
+
* HTTP DELETE /dashboard/{realm}/{dashboardId}
|
|
306
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.delete
|
|
307
|
+
*/
|
|
308
|
+
delete(realm: string, dashboardId: string, options?: O): RestResponse<void>;
|
|
309
|
+
/**
|
|
310
|
+
* HTTP GET /dashboard/{realm}/{dashboardId}
|
|
311
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.get
|
|
312
|
+
*/
|
|
313
|
+
get(realm: string, dashboardId: string, options?: O): RestResponse<Model.Dashboard>;
|
|
314
|
+
}
|
|
315
|
+
export declare class RealmResourceClient<O> {
|
|
316
|
+
protected httpClient: HttpClient<O>;
|
|
317
|
+
constructor(httpClient: HttpClient<O>);
|
|
318
|
+
/**
|
|
319
|
+
* HTTP POST /realm
|
|
320
|
+
* Java method: org.openremote.model.security.RealmResource.create
|
|
321
|
+
*/
|
|
322
|
+
create(realm: Model.Realm, options?: O): RestResponse<void>;
|
|
323
|
+
/**
|
|
324
|
+
* HTTP GET /realm
|
|
325
|
+
* Java method: org.openremote.model.security.RealmResource.getAll
|
|
326
|
+
*/
|
|
327
|
+
getAll(options?: O): RestResponse<Model.Realm[]>;
|
|
328
|
+
/**
|
|
329
|
+
* HTTP GET /realm/accessible
|
|
330
|
+
* Java method: org.openremote.model.security.RealmResource.getAccessible
|
|
331
|
+
*/
|
|
332
|
+
getAccessible(options?: O): RestResponse<Model.Realm[]>;
|
|
333
|
+
/**
|
|
334
|
+
* HTTP DELETE /realm/{name}
|
|
335
|
+
* Java method: org.openremote.model.security.RealmResource.delete
|
|
336
|
+
*/
|
|
337
|
+
delete(name: string, options?: O): RestResponse<void>;
|
|
338
|
+
/**
|
|
339
|
+
* HTTP GET /realm/{name}
|
|
340
|
+
* Java method: org.openremote.model.security.RealmResource.get
|
|
341
|
+
*/
|
|
342
|
+
get(name: string, options?: O): RestResponse<Model.Realm>;
|
|
343
|
+
/**
|
|
344
|
+
* HTTP PUT /realm/{name}
|
|
345
|
+
* Java method: org.openremote.model.security.RealmResource.update
|
|
346
|
+
*/
|
|
347
|
+
update(name: string, realm: Model.Realm, options?: O): RestResponse<void>;
|
|
348
|
+
}
|
|
166
349
|
export declare class MapResourceClient<O> {
|
|
167
350
|
protected httpClient: HttpClient<O>;
|
|
168
351
|
constructor(httpClient: HttpClient<O>);
|
|
@@ -216,94 +399,123 @@ export declare class MapResourceClient<O> {
|
|
|
216
399
|
[id: string]: unknown;
|
|
217
400
|
}>;
|
|
218
401
|
}
|
|
219
|
-
export declare class
|
|
402
|
+
export declare class GatewayClientResourceClient<O> {
|
|
220
403
|
protected httpClient: HttpClient<O>;
|
|
221
404
|
constructor(httpClient: HttpClient<O>);
|
|
222
405
|
/**
|
|
223
|
-
* HTTP
|
|
224
|
-
* Java method: org.openremote.model.
|
|
406
|
+
* HTTP DELETE /gateway/connection
|
|
407
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnections
|
|
225
408
|
*/
|
|
226
|
-
|
|
409
|
+
deleteConnections(queryParams?: {
|
|
410
|
+
realm?: string[];
|
|
411
|
+
}, options?: O): RestResponse<void>;
|
|
227
412
|
/**
|
|
228
|
-
* HTTP
|
|
229
|
-
* Java method: org.openremote.model.
|
|
413
|
+
* HTTP GET /gateway/connection
|
|
414
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnections
|
|
230
415
|
*/
|
|
231
|
-
|
|
416
|
+
getConnections(options?: O): RestResponse<Model.GatewayConnection[]>;
|
|
232
417
|
/**
|
|
233
|
-
* HTTP
|
|
234
|
-
* Java method: org.openremote.model.
|
|
418
|
+
* HTTP DELETE /gateway/connection/{realm}
|
|
419
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnection
|
|
235
420
|
*/
|
|
236
|
-
|
|
237
|
-
path?: string;
|
|
238
|
-
}, options?: O): RestResponse<string>;
|
|
421
|
+
deleteConnection(realm: string, options?: O): RestResponse<void>;
|
|
239
422
|
/**
|
|
240
|
-
* HTTP GET /
|
|
241
|
-
* Java method: org.openremote.model.
|
|
423
|
+
* HTTP GET /gateway/connection/{realm}
|
|
424
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnection
|
|
242
425
|
*/
|
|
243
|
-
|
|
426
|
+
getConnection(realm: string, options?: O): RestResponse<Model.GatewayConnection>;
|
|
427
|
+
/**
|
|
428
|
+
* HTTP PUT /gateway/connection/{realm}
|
|
429
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.setConnection
|
|
430
|
+
*/
|
|
431
|
+
setConnection(realm: string, connection: Model.GatewayConnection, options?: O): RestResponse<void>;
|
|
432
|
+
/**
|
|
433
|
+
* HTTP GET /gateway/status/{realm}
|
|
434
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnectionStatus
|
|
435
|
+
*/
|
|
436
|
+
getConnectionStatus(realm: string, options?: O): RestResponse<Model.ConnectionStatus>;
|
|
244
437
|
}
|
|
245
|
-
export declare class
|
|
438
|
+
export declare class AlarmResourceClient<O> {
|
|
246
439
|
protected httpClient: HttpClient<O>;
|
|
247
440
|
constructor(httpClient: HttpClient<O>);
|
|
248
441
|
/**
|
|
249
|
-
* HTTP POST /
|
|
250
|
-
* Java method: org.openremote.model.
|
|
442
|
+
* HTTP POST /alarm
|
|
443
|
+
* Java method: org.openremote.model.alarm.AlarmResource.createAlarm
|
|
251
444
|
*/
|
|
252
|
-
|
|
445
|
+
createAlarm(alarm: Model.Alarm, queryParams?: {
|
|
446
|
+
assetIds?: string[];
|
|
447
|
+
}, options?: O): RestResponse<Model.SentAlarm>;
|
|
253
448
|
/**
|
|
254
|
-
* HTTP
|
|
255
|
-
* Java method: org.openremote.model.
|
|
449
|
+
* HTTP GET /alarm
|
|
450
|
+
* Java method: org.openremote.model.alarm.AlarmResource.getAlarms
|
|
256
451
|
*/
|
|
257
|
-
|
|
452
|
+
getAlarms(queryParams?: {
|
|
453
|
+
realm?: string;
|
|
454
|
+
status?: Model.AlarmStatus;
|
|
455
|
+
assetId?: string;
|
|
456
|
+
assigneeId?: string;
|
|
457
|
+
}, options?: O): RestResponse<Model.SentAlarm[]>;
|
|
258
458
|
/**
|
|
259
|
-
* HTTP
|
|
260
|
-
* Java method: org.openremote.model.
|
|
459
|
+
* HTTP DELETE /alarm
|
|
460
|
+
* Java method: org.openremote.model.alarm.AlarmResource.removeAlarms
|
|
261
461
|
*/
|
|
262
|
-
|
|
462
|
+
removeAlarms(ids: number[], options?: O): RestResponse<void>;
|
|
263
463
|
/**
|
|
264
|
-
* HTTP
|
|
265
|
-
* Java method: org.openremote.model.
|
|
464
|
+
* HTTP PUT /alarm/assets
|
|
465
|
+
* Java method: org.openremote.model.alarm.AlarmResource.setAssetLinks
|
|
266
466
|
*/
|
|
267
|
-
|
|
467
|
+
setAssetLinks(links: Model.AlarmAssetLink[], options?: O): RestResponse<void>;
|
|
268
468
|
/**
|
|
269
|
-
* HTTP GET /
|
|
270
|
-
* Java method: org.openremote.model.
|
|
469
|
+
* HTTP GET /alarm/{alarmId}
|
|
470
|
+
* Java method: org.openremote.model.alarm.AlarmResource.getAlarm
|
|
271
471
|
*/
|
|
272
|
-
|
|
472
|
+
getAlarm(alarmId: number, options?: O): RestResponse<Model.SentAlarm>;
|
|
473
|
+
/**
|
|
474
|
+
* HTTP DELETE /alarm/{alarmId}
|
|
475
|
+
* Java method: org.openremote.model.alarm.AlarmResource.removeAlarm
|
|
476
|
+
*/
|
|
477
|
+
removeAlarm(alarmId: number, options?: O): RestResponse<void>;
|
|
478
|
+
/**
|
|
479
|
+
* HTTP PUT /alarm/{alarmId}
|
|
480
|
+
* Java method: org.openremote.model.alarm.AlarmResource.updateAlarm
|
|
481
|
+
*/
|
|
482
|
+
updateAlarm(alarmId: number, alarm: Model.SentAlarm, options?: O): RestResponse<void>;
|
|
483
|
+
/**
|
|
484
|
+
* HTTP GET /alarm/{alarmId}/assets
|
|
485
|
+
* Java method: org.openremote.model.alarm.AlarmResource.getAssetLinks
|
|
486
|
+
*/
|
|
487
|
+
getAssetLinks(alarmId: number, queryParams?: {
|
|
488
|
+
realm?: string;
|
|
489
|
+
}, options?: O): RestResponse<Model.AlarmAssetLink[]>;
|
|
273
490
|
}
|
|
274
|
-
export declare class
|
|
491
|
+
export declare class GatewayServiceResourceClient<O> {
|
|
275
492
|
protected httpClient: HttpClient<O>;
|
|
276
493
|
constructor(httpClient: HttpClient<O>);
|
|
277
494
|
/**
|
|
278
|
-
* HTTP POST /
|
|
279
|
-
* Java method: org.openremote.model.
|
|
280
|
-
*/
|
|
281
|
-
create(realm: Model.Realm, options?: O): RestResponse<void>;
|
|
282
|
-
/**
|
|
283
|
-
* HTTP GET /realm
|
|
284
|
-
* Java method: org.openremote.model.security.RealmResource.getAll
|
|
495
|
+
* HTTP POST /gateway/tunnel
|
|
496
|
+
* Java method: org.openremote.model.gateway.GatewayServiceResource.startTunnel
|
|
285
497
|
*/
|
|
286
|
-
|
|
498
|
+
startTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<Model.GatewayTunnelInfo>;
|
|
287
499
|
/**
|
|
288
|
-
* HTTP
|
|
289
|
-
* Java method: org.openremote.model.
|
|
500
|
+
* HTTP DELETE /gateway/tunnel
|
|
501
|
+
* Java method: org.openremote.model.gateway.GatewayServiceResource.stopTunnel
|
|
290
502
|
*/
|
|
291
|
-
|
|
503
|
+
stopTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<void>;
|
|
292
504
|
/**
|
|
293
|
-
* HTTP
|
|
294
|
-
* Java method: org.openremote.model.
|
|
505
|
+
* HTTP GET /gateway/tunnel/{realm}
|
|
506
|
+
* Java method: org.openremote.model.gateway.GatewayServiceResource.getAllActiveTunnelInfos
|
|
295
507
|
*/
|
|
296
|
-
|
|
508
|
+
getAllActiveTunnelInfos(realm: string, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
|
|
297
509
|
/**
|
|
298
|
-
* HTTP GET /realm/{
|
|
299
|
-
* Java method: org.openremote.model.
|
|
510
|
+
* HTTP GET /gateway/tunnel/{realm}/{id}
|
|
511
|
+
* Java method: org.openremote.model.gateway.GatewayServiceResource.getGatewayActiveTunnelInfos
|
|
300
512
|
*/
|
|
301
|
-
|
|
513
|
+
getGatewayActiveTunnelInfos(realm: string, id: string, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
|
|
302
514
|
/**
|
|
303
|
-
* HTTP
|
|
304
|
-
* Java method: org.openremote.model.
|
|
515
|
+
* HTTP GET /gateway/tunnel/{realm}/{id}/{target}/{targetPort}
|
|
516
|
+
* Java method: org.openremote.model.gateway.GatewayServiceResource.getActiveTunnelInfo
|
|
305
517
|
*/
|
|
306
|
-
|
|
518
|
+
getActiveTunnelInfo(realm: string, id: string, target: string, targetPort: number, options?: O): RestResponse<Model.GatewayTunnelInfo>;
|
|
307
519
|
}
|
|
308
520
|
export declare class AssetResourceClient<O> {
|
|
309
521
|
protected httpClient: HttpClient<O>;
|
|
@@ -409,265 +621,31 @@ export declare class AssetResourceClient<O> {
|
|
|
409
621
|
assetIds?: string[];
|
|
410
622
|
}, options?: O): RestResponse<void>;
|
|
411
623
|
}
|
|
412
|
-
export declare class
|
|
413
|
-
protected httpClient: HttpClient<O>;
|
|
414
|
-
constructor(httpClient: HttpClient<O>);
|
|
415
|
-
/**
|
|
416
|
-
* HTTP POST /dashboard
|
|
417
|
-
* Java method: org.openremote.model.dashboard.DashboardResource.create
|
|
418
|
-
*/
|
|
419
|
-
create(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
|
|
420
|
-
/**
|
|
421
|
-
* HTTP PUT /dashboard
|
|
422
|
-
* Java method: org.openremote.model.dashboard.DashboardResource.update
|
|
423
|
-
*/
|
|
424
|
-
update(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
|
|
425
|
-
/**
|
|
426
|
-
* HTTP GET /dashboard/all/{realm}
|
|
427
|
-
* Java method: org.openremote.model.dashboard.DashboardResource.getAllRealmDashboards
|
|
428
|
-
*/
|
|
429
|
-
getAllRealmDashboards(realm: string, options?: O): RestResponse<Model.Dashboard[]>;
|
|
430
|
-
/**
|
|
431
|
-
* HTTP POST /dashboard/query
|
|
432
|
-
* Java method: org.openremote.model.dashboard.DashboardResource.query
|
|
433
|
-
*/
|
|
434
|
-
query(dashboardQuery: Model.DashboardQuery, options?: O): RestResponse<Model.Dashboard[]>;
|
|
435
|
-
/**
|
|
436
|
-
* HTTP DELETE /dashboard/{realm}/{dashboardId}
|
|
437
|
-
* Java method: org.openremote.model.dashboard.DashboardResource.delete
|
|
438
|
-
*/
|
|
439
|
-
delete(realm: string, dashboardId: string, options?: O): RestResponse<void>;
|
|
440
|
-
/**
|
|
441
|
-
* HTTP GET /dashboard/{realm}/{dashboardId}
|
|
442
|
-
* Java method: org.openremote.model.dashboard.DashboardResource.get
|
|
443
|
-
*/
|
|
444
|
-
get(realm: string, dashboardId: string, options?: O): RestResponse<Model.Dashboard>;
|
|
445
|
-
}
|
|
446
|
-
export declare class AssetPredictedDatapointResourceClient<O> {
|
|
447
|
-
protected httpClient: HttpClient<O>;
|
|
448
|
-
constructor(httpClient: HttpClient<O>);
|
|
449
|
-
/**
|
|
450
|
-
* HTTP POST /asset/predicted/{assetId}/{attributeName}
|
|
451
|
-
* Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.getPredictedDatapoints
|
|
452
|
-
*/
|
|
453
|
-
getPredictedDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
|
|
454
|
-
/**
|
|
455
|
-
* HTTP PUT /asset/predicted/{assetId}/{attributeName}
|
|
456
|
-
* Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.writePredictedDatapoints
|
|
457
|
-
*/
|
|
458
|
-
writePredictedDatapoints(assetId: string, attributeName: string, predictedDatapoints: Model.ValueDatapoint<any>[], options?: O): RestResponse<void>;
|
|
459
|
-
}
|
|
460
|
-
export declare class ConsoleResourceClient<O> {
|
|
461
|
-
protected httpClient: HttpClient<O>;
|
|
462
|
-
constructor(httpClient: HttpClient<O>);
|
|
463
|
-
/**
|
|
464
|
-
* HTTP POST /console/register
|
|
465
|
-
* Java method: org.openremote.model.console.ConsoleResource.register
|
|
466
|
-
*/
|
|
467
|
-
register(consoleRegistration: Model.ConsoleRegistration, options?: O): RestResponse<Model.ConsoleRegistration>;
|
|
468
|
-
}
|
|
469
|
-
export declare class NotificationResourceClient<O> {
|
|
470
|
-
protected httpClient: HttpClient<O>;
|
|
471
|
-
constructor(httpClient: HttpClient<O>);
|
|
472
|
-
/**
|
|
473
|
-
* HTTP GET /notification
|
|
474
|
-
* Java method: org.openremote.model.notification.NotificationResource.getNotifications
|
|
475
|
-
*/
|
|
476
|
-
getNotifications(queryParams?: {
|
|
477
|
-
id?: number;
|
|
478
|
-
type?: string;
|
|
479
|
-
from?: number;
|
|
480
|
-
to?: number;
|
|
481
|
-
realmId?: string;
|
|
482
|
-
userId?: string;
|
|
483
|
-
assetId?: string;
|
|
484
|
-
}, options?: O): RestResponse<Model.SentNotification[]>;
|
|
485
|
-
/**
|
|
486
|
-
* HTTP DELETE /notification
|
|
487
|
-
* Java method: org.openremote.model.notification.NotificationResource.removeNotifications
|
|
488
|
-
*/
|
|
489
|
-
removeNotifications(queryParams?: {
|
|
490
|
-
id?: number;
|
|
491
|
-
type?: string;
|
|
492
|
-
from?: number;
|
|
493
|
-
to?: number;
|
|
494
|
-
realmId?: string;
|
|
495
|
-
userId?: string;
|
|
496
|
-
assetId?: string;
|
|
497
|
-
}, options?: O): RestResponse<void>;
|
|
498
|
-
/**
|
|
499
|
-
* HTTP POST /notification/alert
|
|
500
|
-
* Java method: org.openremote.model.notification.NotificationResource.sendNotification
|
|
501
|
-
*/
|
|
502
|
-
sendNotification(notification: Model.Notification, options?: O): RestResponse<void>;
|
|
503
|
-
/**
|
|
504
|
-
* HTTP DELETE /notification/{notificationId}
|
|
505
|
-
* Java method: org.openremote.model.notification.NotificationResource.removeNotification
|
|
506
|
-
*/
|
|
507
|
-
removeNotification(notificationId: number, options?: O): RestResponse<void>;
|
|
508
|
-
/**
|
|
509
|
-
* HTTP PUT /notification/{notificationId}/acknowledged
|
|
510
|
-
* Java method: org.openremote.model.notification.NotificationResource.notificationAcknowledged
|
|
511
|
-
*/
|
|
512
|
-
notificationAcknowledged(notificationId: number, acknowledgement: any, queryParams?: {
|
|
513
|
-
targetId?: string;
|
|
514
|
-
}, options?: O): RestResponse<void>;
|
|
515
|
-
/**
|
|
516
|
-
* HTTP PUT /notification/{notificationId}/delivered
|
|
517
|
-
* Java method: org.openremote.model.notification.NotificationResource.notificationDelivered
|
|
518
|
-
*/
|
|
519
|
-
notificationDelivered(notificationId: number, queryParams?: {
|
|
520
|
-
targetId?: string;
|
|
521
|
-
}, options?: O): RestResponse<void>;
|
|
522
|
-
}
|
|
523
|
-
export declare class AssetModelResourceClient<O> {
|
|
524
|
-
protected httpClient: HttpClient<O>;
|
|
525
|
-
constructor(httpClient: HttpClient<O>);
|
|
526
|
-
/**
|
|
527
|
-
* HTTP GET /model/assetDescriptors
|
|
528
|
-
* Java method: org.openremote.model.asset.AssetModelResource.getAssetDescriptors
|
|
529
|
-
*/
|
|
530
|
-
getAssetDescriptors(queryParams?: {
|
|
531
|
-
parentId?: string;
|
|
532
|
-
parentType?: string;
|
|
533
|
-
}, options?: O): RestResponse<Model.AssetDescriptor[]>;
|
|
534
|
-
/**
|
|
535
|
-
* HTTP GET /model/assetInfo/{assetType}
|
|
536
|
-
* Java method: org.openremote.model.asset.AssetModelResource.getAssetInfo
|
|
537
|
-
*/
|
|
538
|
-
getAssetInfo(assetType: string, queryParams?: {
|
|
539
|
-
parentId?: string;
|
|
540
|
-
}, options?: O): RestResponse<Model.AssetTypeInfo>;
|
|
541
|
-
/**
|
|
542
|
-
* HTTP GET /model/assetInfos
|
|
543
|
-
* Java method: org.openremote.model.asset.AssetModelResource.getAssetInfos
|
|
544
|
-
*/
|
|
545
|
-
getAssetInfos(queryParams?: {
|
|
546
|
-
parentId?: string;
|
|
547
|
-
parentType?: string;
|
|
548
|
-
}, options?: O): RestResponse<Model.AssetTypeInfo[]>;
|
|
549
|
-
/**
|
|
550
|
-
* HTTP GET /model/metaItemDescriptors
|
|
551
|
-
* Java method: org.openremote.model.asset.AssetModelResource.getMetaItemDescriptors
|
|
552
|
-
*/
|
|
553
|
-
getMetaItemDescriptors(queryParams?: {
|
|
554
|
-
parentId?: string;
|
|
555
|
-
}, options?: O): RestResponse<{
|
|
556
|
-
[index: string]: Model.MetaItemDescriptor;
|
|
557
|
-
}>;
|
|
558
|
-
/**
|
|
559
|
-
* HTTP GET /model/valueDescriptors
|
|
560
|
-
* Java method: org.openremote.model.asset.AssetModelResource.getValueDescriptors
|
|
561
|
-
*/
|
|
562
|
-
getValueDescriptors(queryParams?: {
|
|
563
|
-
parentId?: string;
|
|
564
|
-
}, options?: O): RestResponse<{
|
|
565
|
-
[index: string]: Model.ValueDescriptor;
|
|
566
|
-
}>;
|
|
567
|
-
}
|
|
568
|
-
export declare class SyslogResourceClient<O> {
|
|
569
|
-
protected httpClient: HttpClient<O>;
|
|
570
|
-
constructor(httpClient: HttpClient<O>);
|
|
571
|
-
/**
|
|
572
|
-
* HTTP GET /syslog/config
|
|
573
|
-
* Java method: org.openremote.model.syslog.SyslogResource.getConfig
|
|
574
|
-
*/
|
|
575
|
-
getConfig(options?: O): RestResponse<Model.SyslogConfig>;
|
|
576
|
-
/**
|
|
577
|
-
* HTTP PUT /syslog/config
|
|
578
|
-
* Java method: org.openremote.model.syslog.SyslogResource.updateConfig
|
|
579
|
-
*/
|
|
580
|
-
updateConfig(config: Model.SyslogConfig, options?: O): RestResponse<void>;
|
|
581
|
-
/**
|
|
582
|
-
* HTTP DELETE /syslog/event
|
|
583
|
-
* Java method: org.openremote.model.syslog.SyslogResource.clearEvents
|
|
584
|
-
*/
|
|
585
|
-
clearEvents(options?: O): RestResponse<void>;
|
|
586
|
-
/**
|
|
587
|
-
* HTTP GET /syslog/event
|
|
588
|
-
* Java method: org.openremote.model.syslog.SyslogResource.getEvents
|
|
589
|
-
*/
|
|
590
|
-
getEvents(queryParams?: {
|
|
591
|
-
level?: Model.SyslogLevel;
|
|
592
|
-
per_page?: number;
|
|
593
|
-
page?: number;
|
|
594
|
-
from?: number;
|
|
595
|
-
to?: number;
|
|
596
|
-
category?: Model.SyslogCategory[];
|
|
597
|
-
subCategory?: string[];
|
|
598
|
-
}, options?: O): RestResponse<any>;
|
|
599
|
-
}
|
|
600
|
-
export declare class AlarmResourceClient<O> {
|
|
624
|
+
export declare class ConfigurationResourceClient<O> {
|
|
601
625
|
protected httpClient: HttpClient<O>;
|
|
602
626
|
constructor(httpClient: HttpClient<O>);
|
|
603
627
|
/**
|
|
604
|
-
* HTTP
|
|
605
|
-
* Java method: org.openremote.model.
|
|
606
|
-
*/
|
|
607
|
-
createAlarm(alarm: Model.Alarm, queryParams?: {
|
|
608
|
-
assetIds?: string[];
|
|
609
|
-
}, options?: O): RestResponse<Model.SentAlarm>;
|
|
610
|
-
/**
|
|
611
|
-
* HTTP GET /alarm
|
|
612
|
-
* Java method: org.openremote.model.alarm.AlarmResource.getAlarms
|
|
613
|
-
*/
|
|
614
|
-
getAlarms(queryParams?: {
|
|
615
|
-
realm?: string;
|
|
616
|
-
status?: Model.AlarmStatus;
|
|
617
|
-
assetId?: string;
|
|
618
|
-
assigneeId?: string;
|
|
619
|
-
}, options?: O): RestResponse<Model.SentAlarm[]>;
|
|
620
|
-
/**
|
|
621
|
-
* HTTP DELETE /alarm
|
|
622
|
-
* Java method: org.openremote.model.alarm.AlarmResource.removeAlarms
|
|
623
|
-
*/
|
|
624
|
-
removeAlarms(ids: number[], options?: O): RestResponse<void>;
|
|
625
|
-
/**
|
|
626
|
-
* HTTP PUT /alarm/assets
|
|
627
|
-
* Java method: org.openremote.model.alarm.AlarmResource.setAssetLinks
|
|
628
|
-
*/
|
|
629
|
-
setAssetLinks(links: Model.AlarmAssetLink[], options?: O): RestResponse<void>;
|
|
630
|
-
/**
|
|
631
|
-
* HTTP GET /alarm/{alarmId}
|
|
632
|
-
* Java method: org.openremote.model.alarm.AlarmResource.getAlarm
|
|
633
|
-
*/
|
|
634
|
-
getAlarm(alarmId: number, options?: O): RestResponse<Model.SentAlarm>;
|
|
635
|
-
/**
|
|
636
|
-
* HTTP DELETE /alarm/{alarmId}
|
|
637
|
-
* Java method: org.openremote.model.alarm.AlarmResource.removeAlarm
|
|
638
|
-
*/
|
|
639
|
-
removeAlarm(alarmId: number, options?: O): RestResponse<void>;
|
|
640
|
-
/**
|
|
641
|
-
* HTTP PUT /alarm/{alarmId}
|
|
642
|
-
* Java method: org.openremote.model.alarm.AlarmResource.updateAlarm
|
|
643
|
-
*/
|
|
644
|
-
updateAlarm(alarmId: number, alarm: Model.SentAlarm, options?: O): RestResponse<void>;
|
|
645
|
-
/**
|
|
646
|
-
* HTTP GET /alarm/{alarmId}/assets
|
|
647
|
-
* Java method: org.openremote.model.alarm.AlarmResource.getAssetLinks
|
|
628
|
+
* HTTP GET /configuration/manager
|
|
629
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfig
|
|
648
630
|
*/
|
|
649
|
-
|
|
650
|
-
realm?: string;
|
|
651
|
-
}, options?: O): RestResponse<Model.AlarmAssetLink[]>;
|
|
652
|
-
}
|
|
653
|
-
export declare class AppResourceClient<O> {
|
|
654
|
-
protected httpClient: HttpClient<O>;
|
|
655
|
-
constructor(httpClient: HttpClient<O>);
|
|
631
|
+
getManagerConfig(options?: O): RestResponse<Model.ManagerAppConfig>;
|
|
656
632
|
/**
|
|
657
|
-
* HTTP
|
|
658
|
-
* Java method: org.openremote.model.
|
|
633
|
+
* HTTP PUT /configuration/manager
|
|
634
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.update
|
|
659
635
|
*/
|
|
660
|
-
|
|
636
|
+
update(managerConfiguration: Model.ManagerAppConfig, options?: O): RestResponse<Model.ManagerAppConfig>;
|
|
661
637
|
/**
|
|
662
|
-
* HTTP
|
|
663
|
-
* Java method: org.openremote.model.
|
|
638
|
+
* HTTP POST /configuration/manager/file
|
|
639
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.fileUpload
|
|
664
640
|
*/
|
|
665
|
-
|
|
641
|
+
fileUpload(fileInfo: Model.FileInfo, queryParams?: {
|
|
642
|
+
path?: string;
|
|
643
|
+
}, options?: O): RestResponse<string>;
|
|
666
644
|
/**
|
|
667
|
-
* HTTP GET /
|
|
668
|
-
* Java method: org.openremote.model.
|
|
645
|
+
* HTTP GET /configuration/manager/image/{filename: .+}
|
|
646
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfigImage
|
|
669
647
|
*/
|
|
670
|
-
|
|
648
|
+
getManagerConfigImage(filename: string, options?: O): RestResponse<any>;
|
|
671
649
|
}
|
|
672
650
|
export declare class AgentResourceClient<O> {
|
|
673
651
|
protected httpClient: HttpClient<O>;
|
|
@@ -695,79 +673,6 @@ export declare class AgentResourceClient<O> {
|
|
|
695
673
|
realm?: string;
|
|
696
674
|
}, options?: O): RestResponse<Model.Agent[]>;
|
|
697
675
|
}
|
|
698
|
-
export declare class StatusResourceClient<O> {
|
|
699
|
-
protected httpClient: HttpClient<O>;
|
|
700
|
-
constructor(httpClient: HttpClient<O>);
|
|
701
|
-
/**
|
|
702
|
-
* HTTP GET /health
|
|
703
|
-
* Java method: org.openremote.model.system.StatusResource.getHealthStatus
|
|
704
|
-
*/
|
|
705
|
-
getHealthStatus(options?: O): RestResponse<{
|
|
706
|
-
[index: string]: any;
|
|
707
|
-
}>;
|
|
708
|
-
/**
|
|
709
|
-
* HTTP GET /info
|
|
710
|
-
* Java method: org.openremote.model.system.StatusResource.getInfo
|
|
711
|
-
*/
|
|
712
|
-
getInfo(options?: O): RestResponse<{
|
|
713
|
-
[index: string]: any;
|
|
714
|
-
}>;
|
|
715
|
-
}
|
|
716
|
-
export declare class FlowResourceClient<O> {
|
|
717
|
-
protected httpClient: HttpClient<O>;
|
|
718
|
-
constructor(httpClient: HttpClient<O>);
|
|
719
|
-
/**
|
|
720
|
-
* HTTP GET /flow
|
|
721
|
-
* Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitions
|
|
722
|
-
*/
|
|
723
|
-
getAllNodeDefinitions(options?: O): RestResponse<Model.Node[]>;
|
|
724
|
-
/**
|
|
725
|
-
* HTTP GET /flow/{name}
|
|
726
|
-
* Java method: org.openremote.model.rules.flow.FlowResource.getNodeDefinition
|
|
727
|
-
*/
|
|
728
|
-
getNodeDefinition(name: string, options?: O): RestResponse<Model.Node>;
|
|
729
|
-
/**
|
|
730
|
-
* HTTP GET /flow/{type}
|
|
731
|
-
* Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitionsByType
|
|
732
|
-
*/
|
|
733
|
-
getAllNodeDefinitionsByType(type: Model.NodeType, options?: O): RestResponse<Model.Node[]>;
|
|
734
|
-
}
|
|
735
|
-
export declare class GatewayClientResourceClient<O> {
|
|
736
|
-
protected httpClient: HttpClient<O>;
|
|
737
|
-
constructor(httpClient: HttpClient<O>);
|
|
738
|
-
/**
|
|
739
|
-
* HTTP DELETE /gateway/connection
|
|
740
|
-
* Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnections
|
|
741
|
-
*/
|
|
742
|
-
deleteConnections(queryParams?: {
|
|
743
|
-
realm?: string[];
|
|
744
|
-
}, options?: O): RestResponse<void>;
|
|
745
|
-
/**
|
|
746
|
-
* HTTP GET /gateway/connection
|
|
747
|
-
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnections
|
|
748
|
-
*/
|
|
749
|
-
getConnections(options?: O): RestResponse<Model.GatewayConnection[]>;
|
|
750
|
-
/**
|
|
751
|
-
* HTTP DELETE /gateway/connection/{realm}
|
|
752
|
-
* Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnection
|
|
753
|
-
*/
|
|
754
|
-
deleteConnection(realm: string, options?: O): RestResponse<void>;
|
|
755
|
-
/**
|
|
756
|
-
* HTTP GET /gateway/connection/{realm}
|
|
757
|
-
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnection
|
|
758
|
-
*/
|
|
759
|
-
getConnection(realm: string, options?: O): RestResponse<Model.GatewayConnection>;
|
|
760
|
-
/**
|
|
761
|
-
* HTTP PUT /gateway/connection/{realm}
|
|
762
|
-
* Java method: org.openremote.model.gateway.GatewayClientResource.setConnection
|
|
763
|
-
*/
|
|
764
|
-
setConnection(realm: string, connection: Model.GatewayConnection, options?: O): RestResponse<void>;
|
|
765
|
-
/**
|
|
766
|
-
* HTTP GET /gateway/status/{realm}
|
|
767
|
-
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnectionStatus
|
|
768
|
-
*/
|
|
769
|
-
getConnectionStatus(realm: string, options?: O): RestResponse<Model.ConnectionStatus>;
|
|
770
|
-
}
|
|
771
676
|
export declare class RulesResourceClient<O> {
|
|
772
677
|
protected httpClient: HttpClient<O>;
|
|
773
678
|
constructor(httpClient: HttpClient<O>);
|
|
@@ -876,51 +781,146 @@ export declare class RulesResourceClient<O> {
|
|
|
876
781
|
*/
|
|
877
782
|
updateGlobalRuleset(id: number, ruleset: Model.GlobalRuleset, options?: O): RestResponse<void>;
|
|
878
783
|
}
|
|
784
|
+
export declare class NotificationResourceClient<O> {
|
|
785
|
+
protected httpClient: HttpClient<O>;
|
|
786
|
+
constructor(httpClient: HttpClient<O>);
|
|
787
|
+
/**
|
|
788
|
+
* HTTP GET /notification
|
|
789
|
+
* Java method: org.openremote.model.notification.NotificationResource.getNotifications
|
|
790
|
+
*/
|
|
791
|
+
getNotifications(queryParams?: {
|
|
792
|
+
id?: number;
|
|
793
|
+
type?: string;
|
|
794
|
+
from?: number;
|
|
795
|
+
to?: number;
|
|
796
|
+
realmId?: string;
|
|
797
|
+
userId?: string;
|
|
798
|
+
assetId?: string;
|
|
799
|
+
}, options?: O): RestResponse<Model.SentNotification[]>;
|
|
800
|
+
/**
|
|
801
|
+
* HTTP DELETE /notification
|
|
802
|
+
* Java method: org.openremote.model.notification.NotificationResource.removeNotifications
|
|
803
|
+
*/
|
|
804
|
+
removeNotifications(queryParams?: {
|
|
805
|
+
id?: number;
|
|
806
|
+
type?: string;
|
|
807
|
+
from?: number;
|
|
808
|
+
to?: number;
|
|
809
|
+
realmId?: string;
|
|
810
|
+
userId?: string;
|
|
811
|
+
assetId?: string;
|
|
812
|
+
}, options?: O): RestResponse<void>;
|
|
813
|
+
/**
|
|
814
|
+
* HTTP POST /notification/alert
|
|
815
|
+
* Java method: org.openremote.model.notification.NotificationResource.sendNotification
|
|
816
|
+
*/
|
|
817
|
+
sendNotification(notification: Model.Notification, options?: O): RestResponse<void>;
|
|
818
|
+
/**
|
|
819
|
+
* HTTP DELETE /notification/{notificationId}
|
|
820
|
+
* Java method: org.openremote.model.notification.NotificationResource.removeNotification
|
|
821
|
+
*/
|
|
822
|
+
removeNotification(notificationId: number, options?: O): RestResponse<void>;
|
|
823
|
+
/**
|
|
824
|
+
* HTTP PUT /notification/{notificationId}/acknowledged
|
|
825
|
+
* Java method: org.openremote.model.notification.NotificationResource.notificationAcknowledged
|
|
826
|
+
*/
|
|
827
|
+
notificationAcknowledged(notificationId: number, acknowledgement: any, queryParams?: {
|
|
828
|
+
targetId?: string;
|
|
829
|
+
}, options?: O): RestResponse<void>;
|
|
830
|
+
/**
|
|
831
|
+
* HTTP PUT /notification/{notificationId}/delivered
|
|
832
|
+
* Java method: org.openremote.model.notification.NotificationResource.notificationDelivered
|
|
833
|
+
*/
|
|
834
|
+
notificationDelivered(notificationId: number, queryParams?: {
|
|
835
|
+
targetId?: string;
|
|
836
|
+
}, options?: O): RestResponse<void>;
|
|
837
|
+
}
|
|
838
|
+
export declare class SyslogResourceClient<O> {
|
|
839
|
+
protected httpClient: HttpClient<O>;
|
|
840
|
+
constructor(httpClient: HttpClient<O>);
|
|
841
|
+
/**
|
|
842
|
+
* HTTP GET /syslog/config
|
|
843
|
+
* Java method: org.openremote.model.syslog.SyslogResource.getConfig
|
|
844
|
+
*/
|
|
845
|
+
getConfig(options?: O): RestResponse<Model.SyslogConfig>;
|
|
846
|
+
/**
|
|
847
|
+
* HTTP PUT /syslog/config
|
|
848
|
+
* Java method: org.openremote.model.syslog.SyslogResource.updateConfig
|
|
849
|
+
*/
|
|
850
|
+
updateConfig(config: Model.SyslogConfig, options?: O): RestResponse<void>;
|
|
851
|
+
/**
|
|
852
|
+
* HTTP DELETE /syslog/event
|
|
853
|
+
* Java method: org.openremote.model.syslog.SyslogResource.clearEvents
|
|
854
|
+
*/
|
|
855
|
+
clearEvents(options?: O): RestResponse<void>;
|
|
856
|
+
/**
|
|
857
|
+
* HTTP GET /syslog/event
|
|
858
|
+
* Java method: org.openremote.model.syslog.SyslogResource.getEvents
|
|
859
|
+
*/
|
|
860
|
+
getEvents(queryParams?: {
|
|
861
|
+
level?: Model.SyslogLevel;
|
|
862
|
+
per_page?: number;
|
|
863
|
+
page?: number;
|
|
864
|
+
from?: number;
|
|
865
|
+
to?: number;
|
|
866
|
+
category?: Model.SyslogCategory[];
|
|
867
|
+
subCategory?: string[];
|
|
868
|
+
}, options?: O): RestResponse<any>;
|
|
869
|
+
}
|
|
870
|
+
export declare class ConsoleResourceClient<O> {
|
|
871
|
+
protected httpClient: HttpClient<O>;
|
|
872
|
+
constructor(httpClient: HttpClient<O>);
|
|
873
|
+
/**
|
|
874
|
+
* HTTP POST /console/register
|
|
875
|
+
* Java method: org.openremote.model.console.ConsoleResource.register
|
|
876
|
+
*/
|
|
877
|
+
register(consoleRegistration: Model.ConsoleRegistration, options?: O): RestResponse<Model.ConsoleRegistration>;
|
|
878
|
+
}
|
|
879
879
|
export type RestResponse<R> = Promise<Axios.GenericAxiosResponse<R>>;
|
|
880
880
|
export declare class ApiClient {
|
|
881
881
|
protected _userResource: AxiosUserResourceClient;
|
|
882
|
+
protected _appResource: AxiosAppResourceClient;
|
|
883
|
+
protected _statusResource: AxiosStatusResourceClient;
|
|
882
884
|
protected _provisioningResource: AxiosProvisioningResourceClient;
|
|
885
|
+
protected _flowResource: AxiosFlowResourceClient;
|
|
886
|
+
protected _assetModelResource: AxiosAssetModelResourceClient;
|
|
887
|
+
protected _assetPredictedDatapointResource: AxiosAssetPredictedDatapointResourceClient;
|
|
883
888
|
protected _assetDatapointResource: AxiosAssetDatapointResourceClient;
|
|
889
|
+
protected _dashboardResource: AxiosDashboardResourceClient;
|
|
890
|
+
protected _realmResource: AxiosRealmResourceClient;
|
|
884
891
|
protected _mapResource: AxiosMapResourceClient;
|
|
885
|
-
protected
|
|
892
|
+
protected _gatewayClientResource: AxiosGatewayClientResourceClient;
|
|
893
|
+
protected _alarmResource: AxiosAlarmResourceClient;
|
|
886
894
|
protected _gatewayServiceResource: AxiosGatewayServiceResourceClient;
|
|
887
|
-
protected _realmResource: AxiosRealmResourceClient;
|
|
888
895
|
protected _assetResource: AxiosAssetResourceClient;
|
|
889
|
-
protected
|
|
890
|
-
protected _assetPredictedDatapointResource: AxiosAssetPredictedDatapointResourceClient;
|
|
891
|
-
protected _consoleResource: AxiosConsoleResourceClient;
|
|
892
|
-
protected _notificationResource: AxiosNotificationResourceClient;
|
|
893
|
-
protected _assetModelResource: AxiosAssetModelResourceClient;
|
|
894
|
-
protected _syslogResource: AxiosSyslogResourceClient;
|
|
895
|
-
protected _alarmResource: AxiosAlarmResourceClient;
|
|
896
|
-
protected _appResource: AxiosAppResourceClient;
|
|
896
|
+
protected _configurationResource: AxiosConfigurationResourceClient;
|
|
897
897
|
protected _agentResource: AxiosAgentResourceClient;
|
|
898
|
-
protected _statusResource: AxiosStatusResourceClient;
|
|
899
|
-
protected _flowResource: AxiosFlowResourceClient;
|
|
900
|
-
protected _gatewayClientResource: AxiosGatewayClientResourceClient;
|
|
901
898
|
protected _rulesResource: AxiosRulesResourceClient;
|
|
899
|
+
protected _notificationResource: AxiosNotificationResourceClient;
|
|
900
|
+
protected _syslogResource: AxiosSyslogResourceClient;
|
|
901
|
+
protected _consoleResource: AxiosConsoleResourceClient;
|
|
902
902
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
903
903
|
get UserResource(): AxiosUserResourceClient;
|
|
904
|
+
get AppResource(): AxiosAppResourceClient;
|
|
905
|
+
get StatusResource(): AxiosStatusResourceClient;
|
|
904
906
|
get ProvisioningResource(): AxiosProvisioningResourceClient;
|
|
907
|
+
get FlowResource(): AxiosFlowResourceClient;
|
|
908
|
+
get AssetModelResource(): AxiosAssetModelResourceClient;
|
|
909
|
+
get AssetPredictedDatapointResource(): AxiosAssetPredictedDatapointResourceClient;
|
|
905
910
|
get AssetDatapointResource(): AxiosAssetDatapointResourceClient;
|
|
911
|
+
get DashboardResource(): AxiosDashboardResourceClient;
|
|
912
|
+
get RealmResource(): AxiosRealmResourceClient;
|
|
906
913
|
get MapResource(): AxiosMapResourceClient;
|
|
907
|
-
get
|
|
914
|
+
get GatewayClientResource(): AxiosGatewayClientResourceClient;
|
|
915
|
+
get AlarmResource(): AxiosAlarmResourceClient;
|
|
908
916
|
get GatewayServiceResource(): AxiosGatewayServiceResourceClient;
|
|
909
|
-
get RealmResource(): AxiosRealmResourceClient;
|
|
910
917
|
get AssetResource(): AxiosAssetResourceClient;
|
|
911
|
-
get
|
|
912
|
-
get AssetPredictedDatapointResource(): AxiosAssetPredictedDatapointResourceClient;
|
|
913
|
-
get ConsoleResource(): AxiosConsoleResourceClient;
|
|
914
|
-
get NotificationResource(): AxiosNotificationResourceClient;
|
|
915
|
-
get AssetModelResource(): AxiosAssetModelResourceClient;
|
|
916
|
-
get SyslogResource(): AxiosSyslogResourceClient;
|
|
917
|
-
get AlarmResource(): AxiosAlarmResourceClient;
|
|
918
|
-
get AppResource(): AxiosAppResourceClient;
|
|
918
|
+
get ConfigurationResource(): AxiosConfigurationResourceClient;
|
|
919
919
|
get AgentResource(): AxiosAgentResourceClient;
|
|
920
|
-
get StatusResource(): AxiosStatusResourceClient;
|
|
921
|
-
get FlowResource(): AxiosFlowResourceClient;
|
|
922
|
-
get GatewayClientResource(): AxiosGatewayClientResourceClient;
|
|
923
920
|
get RulesResource(): AxiosRulesResourceClient;
|
|
921
|
+
get NotificationResource(): AxiosNotificationResourceClient;
|
|
922
|
+
get SyslogResource(): AxiosSyslogResourceClient;
|
|
923
|
+
get ConsoleResource(): AxiosConsoleResourceClient;
|
|
924
924
|
}
|
|
925
925
|
import * as Axios from "axios";
|
|
926
926
|
declare module "axios" {
|
|
@@ -931,63 +931,63 @@ declare module "axios" {
|
|
|
931
931
|
export declare class AxiosUserResourceClient extends UserResourceClient<Axios.AxiosRequestConfig> {
|
|
932
932
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
933
933
|
}
|
|
934
|
-
export declare class
|
|
934
|
+
export declare class AxiosAppResourceClient extends AppResourceClient<Axios.AxiosRequestConfig> {
|
|
935
935
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
936
936
|
}
|
|
937
|
-
export declare class
|
|
937
|
+
export declare class AxiosStatusResourceClient extends StatusResourceClient<Axios.AxiosRequestConfig> {
|
|
938
938
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
939
939
|
}
|
|
940
|
-
export declare class
|
|
940
|
+
export declare class AxiosProvisioningResourceClient extends ProvisioningResourceClient<Axios.AxiosRequestConfig> {
|
|
941
941
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
942
942
|
}
|
|
943
|
-
export declare class
|
|
943
|
+
export declare class AxiosFlowResourceClient extends FlowResourceClient<Axios.AxiosRequestConfig> {
|
|
944
944
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
945
945
|
}
|
|
946
|
-
export declare class
|
|
946
|
+
export declare class AxiosAssetModelResourceClient extends AssetModelResourceClient<Axios.AxiosRequestConfig> {
|
|
947
947
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
948
948
|
}
|
|
949
|
-
export declare class
|
|
949
|
+
export declare class AxiosAssetPredictedDatapointResourceClient extends AssetPredictedDatapointResourceClient<Axios.AxiosRequestConfig> {
|
|
950
950
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
951
951
|
}
|
|
952
|
-
export declare class
|
|
952
|
+
export declare class AxiosAssetDatapointResourceClient extends AssetDatapointResourceClient<Axios.AxiosRequestConfig> {
|
|
953
953
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
954
954
|
}
|
|
955
955
|
export declare class AxiosDashboardResourceClient extends DashboardResourceClient<Axios.AxiosRequestConfig> {
|
|
956
956
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
957
957
|
}
|
|
958
|
-
export declare class
|
|
958
|
+
export declare class AxiosRealmResourceClient extends RealmResourceClient<Axios.AxiosRequestConfig> {
|
|
959
959
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
960
960
|
}
|
|
961
|
-
export declare class
|
|
961
|
+
export declare class AxiosMapResourceClient extends MapResourceClient<Axios.AxiosRequestConfig> {
|
|
962
962
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
963
963
|
}
|
|
964
|
-
export declare class
|
|
964
|
+
export declare class AxiosGatewayClientResourceClient extends GatewayClientResourceClient<Axios.AxiosRequestConfig> {
|
|
965
965
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
966
966
|
}
|
|
967
|
-
export declare class
|
|
967
|
+
export declare class AxiosAlarmResourceClient extends AlarmResourceClient<Axios.AxiosRequestConfig> {
|
|
968
968
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
969
969
|
}
|
|
970
|
-
export declare class
|
|
970
|
+
export declare class AxiosGatewayServiceResourceClient extends GatewayServiceResourceClient<Axios.AxiosRequestConfig> {
|
|
971
971
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
972
972
|
}
|
|
973
|
-
export declare class
|
|
973
|
+
export declare class AxiosAssetResourceClient extends AssetResourceClient<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
979
|
export declare class AxiosAgentResourceClient extends AgentResourceClient<Axios.AxiosRequestConfig> {
|
|
980
980
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
981
981
|
}
|
|
982
|
-
export declare class
|
|
982
|
+
export declare class AxiosRulesResourceClient extends RulesResourceClient<Axios.AxiosRequestConfig> {
|
|
983
983
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
984
984
|
}
|
|
985
|
-
export declare class
|
|
985
|
+
export declare class AxiosNotificationResourceClient extends NotificationResourceClient<Axios.AxiosRequestConfig> {
|
|
986
986
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
987
987
|
}
|
|
988
|
-
export declare class
|
|
988
|
+
export declare class AxiosSyslogResourceClient extends SyslogResourceClient<Axios.AxiosRequestConfig> {
|
|
989
989
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
990
990
|
}
|
|
991
|
-
export declare class
|
|
991
|
+
export declare class AxiosConsoleResourceClient extends ConsoleResourceClient<Axios.AxiosRequestConfig> {
|
|
992
992
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
993
993
|
}
|