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