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