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