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