@openremote/rest 1.3.0-snapshot.20250123095123 → 1.3.0-snapshot.20250123153842
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/umd/index.bundle.js +1 -1
- package/dist/umd/index.js +1 -1
- package/lib/restclient.d.ts +418 -418
- package/lib/restclient.js +1 -1
- package/lib/restclient.js.map +1 -1
- package/package.json +3 -3
package/lib/restclient.d.ts
CHANGED
|
@@ -9,38 +9,41 @@ export interface HttpClient<O> {
|
|
|
9
9
|
options?: O;
|
|
10
10
|
}): RestResponse<R>;
|
|
11
11
|
}
|
|
12
|
-
export declare class
|
|
12
|
+
export declare class GatewayClientResourceClient<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 DELETE /gateway/connection
|
|
17
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnections
|
|
18
18
|
*/
|
|
19
|
-
|
|
19
|
+
deleteConnections(queryParams?: {
|
|
20
|
+
realm?: any[];
|
|
21
|
+
}, options?: O): RestResponse<void>;
|
|
20
22
|
/**
|
|
21
|
-
* HTTP
|
|
22
|
-
* Java method: org.openremote.model.
|
|
23
|
+
* HTTP GET /gateway/connection
|
|
24
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnections
|
|
23
25
|
*/
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
export declare class AppResourceClient<O> {
|
|
27
|
-
protected httpClient: HttpClient<O>;
|
|
28
|
-
constructor(httpClient: HttpClient<O>);
|
|
26
|
+
getConnections(options?: O): RestResponse<Model.GatewayConnection[]>;
|
|
29
27
|
/**
|
|
30
|
-
* HTTP
|
|
31
|
-
* Java method: org.openremote.model.
|
|
28
|
+
* HTTP DELETE /gateway/connection/{realm}
|
|
29
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnection
|
|
32
30
|
*/
|
|
33
|
-
|
|
31
|
+
deleteConnection(realm: any, options?: O): RestResponse<void>;
|
|
34
32
|
/**
|
|
35
|
-
* HTTP GET /
|
|
36
|
-
* Java method: org.openremote.model.
|
|
33
|
+
* HTTP GET /gateway/connection/{realm}
|
|
34
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnection
|
|
37
35
|
*/
|
|
38
|
-
|
|
36
|
+
getConnection(realm: any, options?: O): RestResponse<Model.GatewayConnection>;
|
|
39
37
|
/**
|
|
40
|
-
* HTTP
|
|
41
|
-
* Java method: org.openremote.model.
|
|
38
|
+
* HTTP PUT /gateway/connection/{realm}
|
|
39
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.setConnection
|
|
42
40
|
*/
|
|
43
|
-
|
|
41
|
+
setConnection(realm: any, connection: Model.GatewayConnection, options?: O): RestResponse<void>;
|
|
42
|
+
/**
|
|
43
|
+
* HTTP GET /gateway/status/{realm}
|
|
44
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnectionStatus
|
|
45
|
+
*/
|
|
46
|
+
getConnectionStatus(realm: any, options?: O): RestResponse<Model.ConnectionStatus>;
|
|
44
47
|
}
|
|
45
48
|
export declare class RulesResourceClient<O> {
|
|
46
49
|
protected httpClient: HttpClient<O>;
|
|
@@ -150,31 +153,135 @@ export declare class RulesResourceClient<O> {
|
|
|
150
153
|
*/
|
|
151
154
|
updateGlobalRuleset(id: any, ruleset: Model.GlobalRuleset, options?: O): RestResponse<void>;
|
|
152
155
|
}
|
|
153
|
-
export declare class
|
|
156
|
+
export declare class AppResourceClient<O> {
|
|
154
157
|
protected httpClient: HttpClient<O>;
|
|
155
158
|
constructor(httpClient: HttpClient<O>);
|
|
156
159
|
/**
|
|
157
|
-
* HTTP GET /
|
|
158
|
-
* Java method: org.openremote.model.
|
|
160
|
+
* HTTP GET /apps
|
|
161
|
+
* Java method: org.openremote.model.apps.AppResource.getApps
|
|
159
162
|
*/
|
|
160
|
-
|
|
163
|
+
getApps(options?: O): RestResponse<any[]>;
|
|
161
164
|
/**
|
|
162
|
-
* HTTP
|
|
163
|
-
* Java method: org.openremote.model.
|
|
165
|
+
* HTTP GET /apps/consoleConfig
|
|
166
|
+
* Java method: org.openremote.model.apps.AppResource.getConsoleConfig
|
|
164
167
|
*/
|
|
165
|
-
|
|
168
|
+
getConsoleConfig(options?: O): RestResponse<any>;
|
|
166
169
|
/**
|
|
167
|
-
* HTTP
|
|
168
|
-
* Java method: org.openremote.model.
|
|
170
|
+
* HTTP GET /apps/info
|
|
171
|
+
* Java method: org.openremote.model.apps.AppResource.getAppInfos
|
|
169
172
|
*/
|
|
170
|
-
|
|
171
|
-
|
|
173
|
+
getAppInfos(options?: O): RestResponse<any>;
|
|
174
|
+
}
|
|
175
|
+
export declare class SyslogResourceClient<O> {
|
|
176
|
+
protected httpClient: HttpClient<O>;
|
|
177
|
+
constructor(httpClient: HttpClient<O>);
|
|
178
|
+
/**
|
|
179
|
+
* HTTP GET /syslog/config
|
|
180
|
+
* Java method: org.openremote.model.syslog.SyslogResource.getConfig
|
|
181
|
+
*/
|
|
182
|
+
getConfig(options?: O): RestResponse<Model.SyslogConfig>;
|
|
183
|
+
/**
|
|
184
|
+
* HTTP PUT /syslog/config
|
|
185
|
+
* Java method: org.openremote.model.syslog.SyslogResource.updateConfig
|
|
186
|
+
*/
|
|
187
|
+
updateConfig(config: Model.SyslogConfig, options?: O): RestResponse<void>;
|
|
188
|
+
/**
|
|
189
|
+
* HTTP DELETE /syslog/event
|
|
190
|
+
* Java method: org.openremote.model.syslog.SyslogResource.clearEvents
|
|
191
|
+
*/
|
|
192
|
+
clearEvents(options?: O): RestResponse<void>;
|
|
193
|
+
/**
|
|
194
|
+
* HTTP GET /syslog/event
|
|
195
|
+
* Java method: org.openremote.model.syslog.SyslogResource.getEvents
|
|
196
|
+
*/
|
|
197
|
+
getEvents(queryParams?: {
|
|
198
|
+
level?: Model.SyslogLevel;
|
|
199
|
+
per_page?: any;
|
|
200
|
+
page?: any;
|
|
201
|
+
from?: any;
|
|
202
|
+
to?: any;
|
|
203
|
+
category?: Model.SyslogCategory[];
|
|
204
|
+
subCategory?: any[];
|
|
172
205
|
}, options?: O): RestResponse<any>;
|
|
206
|
+
}
|
|
207
|
+
export declare class RealmResourceClient<O> {
|
|
208
|
+
protected httpClient: HttpClient<O>;
|
|
209
|
+
constructor(httpClient: HttpClient<O>);
|
|
173
210
|
/**
|
|
174
|
-
* HTTP
|
|
175
|
-
* Java method: org.openremote.model.
|
|
211
|
+
* HTTP POST /realm
|
|
212
|
+
* Java method: org.openremote.model.security.RealmResource.create
|
|
176
213
|
*/
|
|
177
|
-
|
|
214
|
+
create(realm: Model.Realm, options?: O): RestResponse<void>;
|
|
215
|
+
/**
|
|
216
|
+
* HTTP GET /realm
|
|
217
|
+
* Java method: org.openremote.model.security.RealmResource.getAll
|
|
218
|
+
*/
|
|
219
|
+
getAll(options?: O): RestResponse<Model.Realm[]>;
|
|
220
|
+
/**
|
|
221
|
+
* HTTP GET /realm/accessible
|
|
222
|
+
* Java method: org.openremote.model.security.RealmResource.getAccessible
|
|
223
|
+
*/
|
|
224
|
+
getAccessible(options?: O): RestResponse<Model.Realm[]>;
|
|
225
|
+
/**
|
|
226
|
+
* HTTP DELETE /realm/{name}
|
|
227
|
+
* Java method: org.openremote.model.security.RealmResource.delete
|
|
228
|
+
*/
|
|
229
|
+
delete(name: any, options?: O): RestResponse<void>;
|
|
230
|
+
/**
|
|
231
|
+
* HTTP GET /realm/{name}
|
|
232
|
+
* Java method: org.openremote.model.security.RealmResource.get
|
|
233
|
+
*/
|
|
234
|
+
get(name: any, options?: O): RestResponse<Model.Realm>;
|
|
235
|
+
/**
|
|
236
|
+
* HTTP PUT /realm/{name}
|
|
237
|
+
* Java method: org.openremote.model.security.RealmResource.update
|
|
238
|
+
*/
|
|
239
|
+
update(name: any, realm: Model.Realm, options?: O): RestResponse<void>;
|
|
240
|
+
}
|
|
241
|
+
export declare class FlowResourceClient<O> {
|
|
242
|
+
protected httpClient: HttpClient<O>;
|
|
243
|
+
constructor(httpClient: HttpClient<O>);
|
|
244
|
+
/**
|
|
245
|
+
* HTTP GET /flow
|
|
246
|
+
* Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitions
|
|
247
|
+
*/
|
|
248
|
+
getAllNodeDefinitions(options?: O): RestResponse<Model.Node[]>;
|
|
249
|
+
/**
|
|
250
|
+
* HTTP GET /flow/{name}
|
|
251
|
+
* Java method: org.openremote.model.rules.flow.FlowResource.getNodeDefinition
|
|
252
|
+
*/
|
|
253
|
+
getNodeDefinition(name: any, options?: O): RestResponse<Model.Node>;
|
|
254
|
+
/**
|
|
255
|
+
* HTTP GET /flow/{type}
|
|
256
|
+
* Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitionsByType
|
|
257
|
+
*/
|
|
258
|
+
getAllNodeDefinitionsByType(type: Model.NodeType, options?: O): RestResponse<Model.Node[]>;
|
|
259
|
+
}
|
|
260
|
+
export declare class AgentResourceClient<O> {
|
|
261
|
+
protected httpClient: HttpClient<O>;
|
|
262
|
+
constructor(httpClient: HttpClient<O>);
|
|
263
|
+
/**
|
|
264
|
+
* HTTP GET /agent/assetDiscovery/{agentId}
|
|
265
|
+
* Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetDiscovery
|
|
266
|
+
*/
|
|
267
|
+
doProtocolAssetDiscovery(agentId: any, queryParams?: {
|
|
268
|
+
realm?: any;
|
|
269
|
+
}, options?: O): RestResponse<Model.AssetTreeNode[]>;
|
|
270
|
+
/**
|
|
271
|
+
* HTTP POST /agent/assetImport/{agentId}
|
|
272
|
+
* Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetImport
|
|
273
|
+
*/
|
|
274
|
+
doProtocolAssetImport(agentId: any, fileInfo: Model.FileInfo, queryParams?: {
|
|
275
|
+
realm?: any;
|
|
276
|
+
}, options?: O): RestResponse<Model.AssetTreeNode[]>;
|
|
277
|
+
/**
|
|
278
|
+
* HTTP GET /agent/instanceDiscovery/{agentType}
|
|
279
|
+
* Java method: org.openremote.model.asset.agent.AgentResource.doProtocolInstanceDiscovery
|
|
280
|
+
*/
|
|
281
|
+
doProtocolInstanceDiscovery(agentType: any, queryParams?: {
|
|
282
|
+
parentId?: any;
|
|
283
|
+
realm?: any;
|
|
284
|
+
}, options?: O): RestResponse<Model.Agent[]>;
|
|
178
285
|
}
|
|
179
286
|
export declare class StatusResourceClient<O> {
|
|
180
287
|
protected httpClient: HttpClient<O>;
|
|
@@ -194,14 +301,55 @@ export declare class StatusResourceClient<O> {
|
|
|
194
301
|
[index: string]: any;
|
|
195
302
|
}>;
|
|
196
303
|
}
|
|
197
|
-
export declare class
|
|
304
|
+
export declare class AssetDatapointResourceClient<O> {
|
|
198
305
|
protected httpClient: HttpClient<O>;
|
|
199
306
|
constructor(httpClient: HttpClient<O>);
|
|
200
307
|
/**
|
|
201
|
-
* HTTP
|
|
202
|
-
* Java method: org.openremote.model.
|
|
308
|
+
* HTTP GET /asset/datapoint/export
|
|
309
|
+
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointExport
|
|
203
310
|
*/
|
|
204
|
-
|
|
311
|
+
getDatapointExport(queryParams?: {
|
|
312
|
+
attributeRefs?: any;
|
|
313
|
+
fromTimestamp?: number;
|
|
314
|
+
toTimestamp?: number;
|
|
315
|
+
}, options?: O): RestResponse<any>;
|
|
316
|
+
/**
|
|
317
|
+
* HTTP GET /asset/datapoint/periods
|
|
318
|
+
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointPeriod
|
|
319
|
+
*/
|
|
320
|
+
getDatapointPeriod(queryParams?: {
|
|
321
|
+
assetId?: any;
|
|
322
|
+
attributeName?: any;
|
|
323
|
+
}, options?: O): RestResponse<Model.DatapointPeriod>;
|
|
324
|
+
/**
|
|
325
|
+
* HTTP POST /asset/datapoint/{assetId}/{attributeName}
|
|
326
|
+
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapoints
|
|
327
|
+
*/
|
|
328
|
+
getDatapoints(assetId: any, attributeName: any, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
|
|
329
|
+
}
|
|
330
|
+
export declare class ProvisioningResourceClient<O> {
|
|
331
|
+
protected httpClient: HttpClient<O>;
|
|
332
|
+
constructor(httpClient: HttpClient<O>);
|
|
333
|
+
/**
|
|
334
|
+
* HTTP POST /provisioning
|
|
335
|
+
* Java method: org.openremote.model.provisioning.ProvisioningResource.createProvisioningConfig
|
|
336
|
+
*/
|
|
337
|
+
createProvisioningConfig(provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<number>;
|
|
338
|
+
/**
|
|
339
|
+
* HTTP GET /provisioning
|
|
340
|
+
* Java method: org.openremote.model.provisioning.ProvisioningResource.getProvisioningConfigs
|
|
341
|
+
*/
|
|
342
|
+
getProvisioningConfigs(options?: O): RestResponse<Model.ProvisioningConfigUnion<any, any>[]>;
|
|
343
|
+
/**
|
|
344
|
+
* HTTP DELETE /provisioning/{id}
|
|
345
|
+
* Java method: org.openremote.model.provisioning.ProvisioningResource.deleteProvisioningConfig
|
|
346
|
+
*/
|
|
347
|
+
deleteProvisioningConfig(id: any, options?: O): RestResponse<void>;
|
|
348
|
+
/**
|
|
349
|
+
* HTTP PUT /provisioning/{id}
|
|
350
|
+
* Java method: org.openremote.model.provisioning.ProvisioningResource.updateProvisioningConfig
|
|
351
|
+
*/
|
|
352
|
+
updateProvisioningConfig(id: any, provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<void>;
|
|
205
353
|
}
|
|
206
354
|
export declare class NotificationResourceClient<O> {
|
|
207
355
|
protected httpClient: HttpClient<O>;
|
|
@@ -257,165 +405,74 @@ export declare class NotificationResourceClient<O> {
|
|
|
257
405
|
targetId?: any;
|
|
258
406
|
}, options?: O): RestResponse<void>;
|
|
259
407
|
}
|
|
260
|
-
export declare class
|
|
408
|
+
export declare class GatewayServiceResourceClient<O> {
|
|
261
409
|
protected httpClient: HttpClient<O>;
|
|
262
410
|
constructor(httpClient: HttpClient<O>);
|
|
263
411
|
/**
|
|
264
|
-
* HTTP POST /
|
|
265
|
-
* Java method: org.openremote.model.
|
|
412
|
+
* HTTP POST /gateway/tunnel
|
|
413
|
+
* Java method: org.openremote.model.gateway.GatewayServiceResource.startTunnel
|
|
266
414
|
*/
|
|
267
|
-
|
|
415
|
+
startTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<Model.GatewayTunnelInfo>;
|
|
268
416
|
/**
|
|
269
|
-
* HTTP
|
|
270
|
-
* Java method: org.openremote.model.
|
|
417
|
+
* HTTP DELETE /gateway/tunnel
|
|
418
|
+
* Java method: org.openremote.model.gateway.GatewayServiceResource.stopTunnel
|
|
271
419
|
*/
|
|
272
|
-
|
|
420
|
+
stopTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<void>;
|
|
273
421
|
/**
|
|
274
|
-
* HTTP GET /
|
|
275
|
-
* Java method: org.openremote.model.
|
|
422
|
+
* HTTP GET /gateway/tunnel/{realm}
|
|
423
|
+
* Java method: org.openremote.model.gateway.GatewayServiceResource.getAllActiveTunnelInfos
|
|
276
424
|
*/
|
|
277
|
-
|
|
425
|
+
getAllActiveTunnelInfos(realm: any, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
|
|
278
426
|
/**
|
|
279
|
-
* HTTP
|
|
280
|
-
* Java method: org.openremote.model.
|
|
427
|
+
* HTTP GET /gateway/tunnel/{realm}/{id}
|
|
428
|
+
* Java method: org.openremote.model.gateway.GatewayServiceResource.getGatewayActiveTunnelInfos
|
|
281
429
|
*/
|
|
282
|
-
|
|
430
|
+
getGatewayActiveTunnelInfos(realm: any, id: any, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
|
|
283
431
|
/**
|
|
284
|
-
* HTTP
|
|
285
|
-
* Java method: org.openremote.model.
|
|
432
|
+
* HTTP GET /gateway/tunnel/{realm}/{id}/{target}/{targetPort}
|
|
433
|
+
* Java method: org.openremote.model.gateway.GatewayServiceResource.getActiveTunnelInfo
|
|
286
434
|
*/
|
|
287
|
-
|
|
288
|
-
/**
|
|
289
|
-
* HTTP GET /dashboard/{realm}/{dashboardId}
|
|
290
|
-
* Java method: org.openremote.model.dashboard.DashboardResource.get
|
|
291
|
-
*/
|
|
292
|
-
get(realm: any, dashboardId: any, options?: O): RestResponse<Model.Dashboard>;
|
|
435
|
+
getActiveTunnelInfo(realm: any, id: any, target: any, targetPort: number, options?: O): RestResponse<Model.GatewayTunnelInfo>;
|
|
293
436
|
}
|
|
294
|
-
export declare class
|
|
437
|
+
export declare class ConfigurationResourceClient<O> {
|
|
295
438
|
protected httpClient: HttpClient<O>;
|
|
296
439
|
constructor(httpClient: HttpClient<O>);
|
|
297
440
|
/**
|
|
298
|
-
* HTTP GET /
|
|
299
|
-
* Java method: org.openremote.model.
|
|
300
|
-
*/
|
|
301
|
-
getConfig(options?: O): RestResponse<Model.SyslogConfig>;
|
|
302
|
-
/**
|
|
303
|
-
* HTTP PUT /syslog/config
|
|
304
|
-
* Java method: org.openremote.model.syslog.SyslogResource.updateConfig
|
|
441
|
+
* HTTP GET /configuration/manager
|
|
442
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfig
|
|
305
443
|
*/
|
|
306
|
-
|
|
444
|
+
getManagerConfig(options?: O): RestResponse<Model.ManagerAppConfig>;
|
|
307
445
|
/**
|
|
308
|
-
* HTTP
|
|
309
|
-
* Java method: org.openremote.model.
|
|
446
|
+
* HTTP PUT /configuration/manager
|
|
447
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.update
|
|
310
448
|
*/
|
|
311
|
-
|
|
449
|
+
update(managerConfiguration: Model.ManagerAppConfig, options?: O): RestResponse<Model.ManagerAppConfig>;
|
|
312
450
|
/**
|
|
313
|
-
* HTTP
|
|
314
|
-
* Java method: org.openremote.model.
|
|
451
|
+
* HTTP POST /configuration/manager/file
|
|
452
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.fileUpload
|
|
315
453
|
*/
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
per_page?: any;
|
|
319
|
-
page?: any;
|
|
320
|
-
from?: any;
|
|
321
|
-
to?: any;
|
|
322
|
-
category?: Model.SyslogCategory[];
|
|
323
|
-
subCategory?: any[];
|
|
454
|
+
fileUpload(fileInfo: Model.FileInfo, queryParams?: {
|
|
455
|
+
path?: any;
|
|
324
456
|
}, options?: O): RestResponse<any>;
|
|
325
|
-
}
|
|
326
|
-
export declare class ProvisioningResourceClient<O> {
|
|
327
|
-
protected httpClient: HttpClient<O>;
|
|
328
|
-
constructor(httpClient: HttpClient<O>);
|
|
329
|
-
/**
|
|
330
|
-
* HTTP POST /provisioning
|
|
331
|
-
* Java method: org.openremote.model.provisioning.ProvisioningResource.createProvisioningConfig
|
|
332
|
-
*/
|
|
333
|
-
createProvisioningConfig(provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<number>;
|
|
334
|
-
/**
|
|
335
|
-
* HTTP GET /provisioning
|
|
336
|
-
* Java method: org.openremote.model.provisioning.ProvisioningResource.getProvisioningConfigs
|
|
337
|
-
*/
|
|
338
|
-
getProvisioningConfigs(options?: O): RestResponse<Model.ProvisioningConfigUnion<any, any>[]>;
|
|
339
|
-
/**
|
|
340
|
-
* HTTP DELETE /provisioning/{id}
|
|
341
|
-
* Java method: org.openremote.model.provisioning.ProvisioningResource.deleteProvisioningConfig
|
|
342
|
-
*/
|
|
343
|
-
deleteProvisioningConfig(id: any, options?: O): RestResponse<void>;
|
|
344
|
-
/**
|
|
345
|
-
* HTTP PUT /provisioning/{id}
|
|
346
|
-
* Java method: org.openremote.model.provisioning.ProvisioningResource.updateProvisioningConfig
|
|
347
|
-
*/
|
|
348
|
-
updateProvisioningConfig(id: any, provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<void>;
|
|
349
|
-
}
|
|
350
|
-
export declare class RealmResourceClient<O> {
|
|
351
|
-
protected httpClient: HttpClient<O>;
|
|
352
|
-
constructor(httpClient: HttpClient<O>);
|
|
353
|
-
/**
|
|
354
|
-
* HTTP POST /realm
|
|
355
|
-
* Java method: org.openremote.model.security.RealmResource.create
|
|
356
|
-
*/
|
|
357
|
-
create(realm: Model.Realm, options?: O): RestResponse<void>;
|
|
358
|
-
/**
|
|
359
|
-
* HTTP GET /realm
|
|
360
|
-
* Java method: org.openremote.model.security.RealmResource.getAll
|
|
361
|
-
*/
|
|
362
|
-
getAll(options?: O): RestResponse<Model.Realm[]>;
|
|
363
|
-
/**
|
|
364
|
-
* HTTP GET /realm/accessible
|
|
365
|
-
* Java method: org.openremote.model.security.RealmResource.getAccessible
|
|
366
|
-
*/
|
|
367
|
-
getAccessible(options?: O): RestResponse<Model.Realm[]>;
|
|
368
457
|
/**
|
|
369
|
-
* HTTP
|
|
370
|
-
* Java method: org.openremote.model.
|
|
371
|
-
*/
|
|
372
|
-
delete(name: any, options?: O): RestResponse<void>;
|
|
373
|
-
/**
|
|
374
|
-
* HTTP GET /realm/{name}
|
|
375
|
-
* Java method: org.openremote.model.security.RealmResource.get
|
|
376
|
-
*/
|
|
377
|
-
get(name: any, options?: O): RestResponse<Model.Realm>;
|
|
378
|
-
/**
|
|
379
|
-
* HTTP PUT /realm/{name}
|
|
380
|
-
* Java method: org.openremote.model.security.RealmResource.update
|
|
458
|
+
* HTTP GET /configuration/manager/image/{filename: .+}
|
|
459
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfigImage
|
|
381
460
|
*/
|
|
382
|
-
|
|
461
|
+
getManagerConfigImage(filename: any, options?: O): RestResponse<any>;
|
|
383
462
|
}
|
|
384
|
-
export declare class
|
|
463
|
+
export declare class AssetPredictedDatapointResourceClient<O> {
|
|
385
464
|
protected httpClient: HttpClient<O>;
|
|
386
465
|
constructor(httpClient: HttpClient<O>);
|
|
387
466
|
/**
|
|
388
|
-
* HTTP
|
|
389
|
-
* Java method: org.openremote.model.
|
|
390
|
-
*/
|
|
391
|
-
deleteConnections(queryParams?: {
|
|
392
|
-
realm?: any[];
|
|
393
|
-
}, options?: O): RestResponse<void>;
|
|
394
|
-
/**
|
|
395
|
-
* HTTP GET /gateway/connection
|
|
396
|
-
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnections
|
|
397
|
-
*/
|
|
398
|
-
getConnections(options?: O): RestResponse<Model.GatewayConnection[]>;
|
|
399
|
-
/**
|
|
400
|
-
* HTTP DELETE /gateway/connection/{realm}
|
|
401
|
-
* Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnection
|
|
402
|
-
*/
|
|
403
|
-
deleteConnection(realm: any, options?: O): RestResponse<void>;
|
|
404
|
-
/**
|
|
405
|
-
* HTTP GET /gateway/connection/{realm}
|
|
406
|
-
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnection
|
|
407
|
-
*/
|
|
408
|
-
getConnection(realm: any, options?: O): RestResponse<Model.GatewayConnection>;
|
|
409
|
-
/**
|
|
410
|
-
* HTTP PUT /gateway/connection/{realm}
|
|
411
|
-
* Java method: org.openremote.model.gateway.GatewayClientResource.setConnection
|
|
467
|
+
* HTTP POST /asset/predicted/{assetId}/{attributeName}
|
|
468
|
+
* Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.getPredictedDatapoints
|
|
412
469
|
*/
|
|
413
|
-
|
|
470
|
+
getPredictedDatapoints(assetId: any, attributeName: any, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
|
|
414
471
|
/**
|
|
415
|
-
* HTTP
|
|
416
|
-
* Java method: org.openremote.model.
|
|
472
|
+
* HTTP PUT /asset/predicted/{assetId}/{attributeName}
|
|
473
|
+
* Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.writePredictedDatapoints
|
|
417
474
|
*/
|
|
418
|
-
|
|
475
|
+
writePredictedDatapoints(assetId: any, attributeName: any, predictedDatapoints: Model.ValueDatapoint<any>[], options?: O): RestResponse<void>;
|
|
419
476
|
}
|
|
420
477
|
export declare class AlarmResourceClient<O> {
|
|
421
478
|
protected httpClient: HttpClient<O>;
|
|
@@ -470,6 +527,130 @@ export declare class AlarmResourceClient<O> {
|
|
|
470
527
|
realm?: any;
|
|
471
528
|
}, options?: O): RestResponse<Model.AlarmAssetLink[]>;
|
|
472
529
|
}
|
|
530
|
+
export declare class UserResourceClient<O> {
|
|
531
|
+
protected httpClient: HttpClient<O>;
|
|
532
|
+
constructor(httpClient: HttpClient<O>);
|
|
533
|
+
/**
|
|
534
|
+
* HTTP PUT /user/locale
|
|
535
|
+
* Java method: org.openremote.model.security.UserResource.updateCurrentUserLocale
|
|
536
|
+
*/
|
|
537
|
+
updateCurrentUserLocale(locale: any, options?: O): RestResponse<void>;
|
|
538
|
+
/**
|
|
539
|
+
* HTTP POST /user/query
|
|
540
|
+
* Java method: org.openremote.model.security.UserResource.query
|
|
541
|
+
*/
|
|
542
|
+
query(query: Model.UserQuery, options?: O): RestResponse<Model.User[]>;
|
|
543
|
+
/**
|
|
544
|
+
* HTTP GET /user/user
|
|
545
|
+
* Java method: org.openremote.model.security.UserResource.getCurrent
|
|
546
|
+
*/
|
|
547
|
+
getCurrent(options?: O): RestResponse<Model.User>;
|
|
548
|
+
/**
|
|
549
|
+
* HTTP GET /user/userRealmRoles
|
|
550
|
+
* Java method: org.openremote.model.security.UserResource.getCurrentUserRealmRoles
|
|
551
|
+
*/
|
|
552
|
+
getCurrentUserRealmRoles(options?: O): RestResponse<Model.Role[]>;
|
|
553
|
+
/**
|
|
554
|
+
* HTTP GET /user/userRoles
|
|
555
|
+
* Java method: org.openremote.model.security.UserResource.getCurrentUserRoles
|
|
556
|
+
*/
|
|
557
|
+
getCurrentUserRoles(options?: O): RestResponse<Model.Role[]>;
|
|
558
|
+
/**
|
|
559
|
+
* HTTP GET /user/userRoles/{clientId}
|
|
560
|
+
* Java method: org.openremote.model.security.UserResource.getCurrentUserClientRoles
|
|
561
|
+
*/
|
|
562
|
+
getCurrentUserClientRoles(clientId: any, options?: O): RestResponse<Model.Role[]>;
|
|
563
|
+
/**
|
|
564
|
+
* HTTP GET /user/{realm}/disconnect/{sessionID}
|
|
565
|
+
* Java method: org.openremote.model.security.UserResource.disconnectUserSession
|
|
566
|
+
*/
|
|
567
|
+
disconnectUserSession(realm: any, sessionID: any, options?: O): RestResponse<void>;
|
|
568
|
+
/**
|
|
569
|
+
* HTTP PUT /user/{realm}/reset-password/{userId}
|
|
570
|
+
* Java method: org.openremote.model.security.UserResource.resetPassword
|
|
571
|
+
*/
|
|
572
|
+
resetPassword(realm: any, userId: any, credential: Model.Credential, options?: O): RestResponse<void>;
|
|
573
|
+
/**
|
|
574
|
+
* HTTP GET /user/{realm}/reset-secret/{userId}
|
|
575
|
+
* Java method: org.openremote.model.security.UserResource.resetSecret
|
|
576
|
+
*/
|
|
577
|
+
resetSecret(realm: any, userId: any, options?: O): RestResponse<any>;
|
|
578
|
+
/**
|
|
579
|
+
* HTTP GET /user/{realm}/roles
|
|
580
|
+
* Java method: org.openremote.model.security.UserResource.getRoles
|
|
581
|
+
*/
|
|
582
|
+
getRoles(realm: any, options?: O): RestResponse<Model.Role[]>;
|
|
583
|
+
/**
|
|
584
|
+
* HTTP PUT /user/{realm}/roles
|
|
585
|
+
* Java method: org.openremote.model.security.UserResource.updateRoles
|
|
586
|
+
*/
|
|
587
|
+
updateRoles(realm: any, roles: Model.Role[], options?: O): RestResponse<void>;
|
|
588
|
+
/**
|
|
589
|
+
* HTTP GET /user/{realm}/userRealmRoles/{userId}
|
|
590
|
+
* Java method: org.openremote.model.security.UserResource.getUserRealmRoles
|
|
591
|
+
*/
|
|
592
|
+
getUserRealmRoles(realm: any, userId: any, options?: O): RestResponse<Model.Role[]>;
|
|
593
|
+
/**
|
|
594
|
+
* HTTP PUT /user/{realm}/userRealmRoles/{userId}
|
|
595
|
+
* Java method: org.openremote.model.security.UserResource.updateUserRealmRoles
|
|
596
|
+
*/
|
|
597
|
+
updateUserRealmRoles(realm: any, userId: any, roles: Model.Role[], options?: O): RestResponse<void>;
|
|
598
|
+
/**
|
|
599
|
+
* HTTP GET /user/{realm}/userRoles/{userId}
|
|
600
|
+
* Java method: org.openremote.model.security.UserResource.getUserRoles
|
|
601
|
+
*/
|
|
602
|
+
getUserRoles(realm: any, userId: any, options?: O): RestResponse<Model.Role[]>;
|
|
603
|
+
/**
|
|
604
|
+
* HTTP PUT /user/{realm}/userRoles/{userId}
|
|
605
|
+
* Java method: org.openremote.model.security.UserResource.updateUserRoles
|
|
606
|
+
*/
|
|
607
|
+
updateUserRoles(realm: any, userId: any, roles: Model.Role[], options?: O): RestResponse<void>;
|
|
608
|
+
/**
|
|
609
|
+
* HTTP GET /user/{realm}/userRoles/{userId}/{clientId}
|
|
610
|
+
* Java method: org.openremote.model.security.UserResource.getUserClientRoles
|
|
611
|
+
*/
|
|
612
|
+
getUserClientRoles(realm: any, userId: any, clientId: any, options?: O): RestResponse<Model.Role[]>;
|
|
613
|
+
/**
|
|
614
|
+
* HTTP PUT /user/{realm}/userRoles/{userId}/{clientId}
|
|
615
|
+
* Java method: org.openremote.model.security.UserResource.updateUserClientRoles
|
|
616
|
+
*/
|
|
617
|
+
updateUserClientRoles(realm: any, userId: any, clientId: any, roles: Model.Role[], options?: O): RestResponse<void>;
|
|
618
|
+
/**
|
|
619
|
+
* HTTP GET /user/{realm}/userSessions/{userId}
|
|
620
|
+
* Java method: org.openremote.model.security.UserResource.getUserSessions
|
|
621
|
+
*/
|
|
622
|
+
getUserSessions(realm: any, userId: any, options?: O): RestResponse<Model.UserSession[]>;
|
|
623
|
+
/**
|
|
624
|
+
* HTTP POST /user/{realm}/users
|
|
625
|
+
* Java method: org.openremote.model.security.UserResource.create
|
|
626
|
+
*/
|
|
627
|
+
create(realm: any, user: Model.User, options?: O): RestResponse<Model.User>;
|
|
628
|
+
/**
|
|
629
|
+
* HTTP PUT /user/{realm}/users
|
|
630
|
+
* Java method: org.openremote.model.security.UserResource.update
|
|
631
|
+
*/
|
|
632
|
+
update(realm: any, user: Model.User, options?: O): RestResponse<Model.User>;
|
|
633
|
+
/**
|
|
634
|
+
* HTTP DELETE /user/{realm}/users/{userId}
|
|
635
|
+
* Java method: org.openremote.model.security.UserResource.delete
|
|
636
|
+
*/
|
|
637
|
+
delete(realm: any, userId: any, options?: O): RestResponse<void>;
|
|
638
|
+
/**
|
|
639
|
+
* HTTP GET /user/{realm}/{clientId}/roles
|
|
640
|
+
* Java method: org.openremote.model.security.UserResource.getClientRoles
|
|
641
|
+
*/
|
|
642
|
+
getClientRoles(realm: any, clientId: any, options?: O): RestResponse<Model.Role[]>;
|
|
643
|
+
/**
|
|
644
|
+
* HTTP PUT /user/{realm}/{clientId}/roles
|
|
645
|
+
* Java method: org.openremote.model.security.UserResource.updateClientRoles
|
|
646
|
+
*/
|
|
647
|
+
updateClientRoles(realm: any, clientId: any, roles: Model.Role[], options?: O): RestResponse<void>;
|
|
648
|
+
/**
|
|
649
|
+
* HTTP GET /user/{realm}/{userId}
|
|
650
|
+
* Java method: org.openremote.model.security.UserResource.get
|
|
651
|
+
*/
|
|
652
|
+
get(realm: any, userId: any, options?: O): RestResponse<Model.User>;
|
|
653
|
+
}
|
|
473
654
|
export declare class MapResourceClient<O> {
|
|
474
655
|
protected httpClient: HttpClient<O>;
|
|
475
656
|
constructor(httpClient: HttpClient<O>);
|
|
@@ -500,34 +681,14 @@ export declare class MapResourceClient<O> {
|
|
|
500
681
|
*/
|
|
501
682
|
getTile(zoom: number, column: number, row: number, options?: O): RestResponse<any>;
|
|
502
683
|
}
|
|
503
|
-
export declare class
|
|
684
|
+
export declare class ConsoleResourceClient<O> {
|
|
504
685
|
protected httpClient: HttpClient<O>;
|
|
505
686
|
constructor(httpClient: HttpClient<O>);
|
|
506
687
|
/**
|
|
507
|
-
* HTTP POST /
|
|
508
|
-
* Java method: org.openremote.model.
|
|
509
|
-
*/
|
|
510
|
-
startTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<Model.GatewayTunnelInfo>;
|
|
511
|
-
/**
|
|
512
|
-
* HTTP DELETE /gateway/tunnel
|
|
513
|
-
* Java method: org.openremote.model.gateway.GatewayServiceResource.stopTunnel
|
|
514
|
-
*/
|
|
515
|
-
stopTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<void>;
|
|
516
|
-
/**
|
|
517
|
-
* HTTP GET /gateway/tunnel/{realm}
|
|
518
|
-
* Java method: org.openremote.model.gateway.GatewayServiceResource.getAllActiveTunnelInfos
|
|
519
|
-
*/
|
|
520
|
-
getAllActiveTunnelInfos(realm: any, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
|
|
521
|
-
/**
|
|
522
|
-
* HTTP GET /gateway/tunnel/{realm}/{id}
|
|
523
|
-
* Java method: org.openremote.model.gateway.GatewayServiceResource.getGatewayActiveTunnelInfos
|
|
524
|
-
*/
|
|
525
|
-
getGatewayActiveTunnelInfos(realm: any, id: any, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
|
|
526
|
-
/**
|
|
527
|
-
* HTTP GET /gateway/tunnel/{realm}/{id}/{target}/{targetPort}
|
|
528
|
-
* Java method: org.openremote.model.gateway.GatewayServiceResource.getActiveTunnelInfo
|
|
688
|
+
* HTTP POST /console/register
|
|
689
|
+
* Java method: org.openremote.model.console.ConsoleResource.register
|
|
529
690
|
*/
|
|
530
|
-
|
|
691
|
+
register(consoleRegistration: Model.ConsoleRegistration, options?: O): RestResponse<Model.ConsoleRegistration>;
|
|
531
692
|
}
|
|
532
693
|
export declare class AssetModelResourceClient<O> {
|
|
533
694
|
protected httpClient: HttpClient<O>;
|
|
@@ -574,50 +735,39 @@ export declare class AssetModelResourceClient<O> {
|
|
|
574
735
|
[index: string]: Model.ValueDescriptor;
|
|
575
736
|
}>;
|
|
576
737
|
}
|
|
577
|
-
export declare class
|
|
738
|
+
export declare class DashboardResourceClient<O> {
|
|
578
739
|
protected httpClient: HttpClient<O>;
|
|
579
740
|
constructor(httpClient: HttpClient<O>);
|
|
580
741
|
/**
|
|
581
|
-
* HTTP
|
|
582
|
-
* Java method: org.openremote.model.
|
|
742
|
+
* HTTP POST /dashboard
|
|
743
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.create
|
|
583
744
|
*/
|
|
584
|
-
|
|
745
|
+
create(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
|
|
585
746
|
/**
|
|
586
|
-
* HTTP
|
|
587
|
-
* Java method: org.openremote.model.
|
|
747
|
+
* HTTP PUT /dashboard
|
|
748
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.update
|
|
588
749
|
*/
|
|
589
|
-
|
|
750
|
+
update(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
|
|
590
751
|
/**
|
|
591
|
-
* HTTP GET /
|
|
592
|
-
* Java method: org.openremote.model.
|
|
752
|
+
* HTTP GET /dashboard/all/{realm}
|
|
753
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.getAllRealmDashboards
|
|
593
754
|
*/
|
|
594
|
-
|
|
595
|
-
}
|
|
596
|
-
export declare class AgentResourceClient<O> {
|
|
597
|
-
protected httpClient: HttpClient<O>;
|
|
598
|
-
constructor(httpClient: HttpClient<O>);
|
|
755
|
+
getAllRealmDashboards(realm: any, options?: O): RestResponse<Model.Dashboard[]>;
|
|
599
756
|
/**
|
|
600
|
-
* HTTP
|
|
601
|
-
* Java method: org.openremote.model.
|
|
757
|
+
* HTTP POST /dashboard/query
|
|
758
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.query
|
|
602
759
|
*/
|
|
603
|
-
|
|
604
|
-
realm?: any;
|
|
605
|
-
}, options?: O): RestResponse<Model.AssetTreeNode[]>;
|
|
760
|
+
query(dashboardQuery: Model.DashboardQuery, options?: O): RestResponse<Model.Dashboard[]>;
|
|
606
761
|
/**
|
|
607
|
-
* HTTP
|
|
608
|
-
* Java method: org.openremote.model.
|
|
762
|
+
* HTTP DELETE /dashboard/{realm}/{dashboardId}
|
|
763
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.delete
|
|
609
764
|
*/
|
|
610
|
-
|
|
611
|
-
realm?: any;
|
|
612
|
-
}, options?: O): RestResponse<Model.AssetTreeNode[]>;
|
|
765
|
+
delete(realm: any, dashboardId: any, options?: O): RestResponse<void>;
|
|
613
766
|
/**
|
|
614
|
-
* HTTP GET /
|
|
615
|
-
* Java method: org.openremote.model.
|
|
767
|
+
* HTTP GET /dashboard/{realm}/{dashboardId}
|
|
768
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.get
|
|
616
769
|
*/
|
|
617
|
-
|
|
618
|
-
parentId?: any;
|
|
619
|
-
realm?: any;
|
|
620
|
-
}, options?: O): RestResponse<Model.Agent[]>;
|
|
770
|
+
get(realm: any, dashboardId: any, options?: O): RestResponse<Model.Dashboard>;
|
|
621
771
|
}
|
|
622
772
|
export declare class AssetResourceClient<O> {
|
|
623
773
|
protected httpClient: HttpClient<O>;
|
|
@@ -723,201 +873,51 @@ export declare class AssetResourceClient<O> {
|
|
|
723
873
|
assetIds?: any[];
|
|
724
874
|
}, options?: O): RestResponse<void>;
|
|
725
875
|
}
|
|
726
|
-
export declare class UserResourceClient<O> {
|
|
727
|
-
protected httpClient: HttpClient<O>;
|
|
728
|
-
constructor(httpClient: HttpClient<O>);
|
|
729
|
-
/**
|
|
730
|
-
* HTTP PUT /user/locale
|
|
731
|
-
* Java method: org.openremote.model.security.UserResource.updateCurrentUserLocale
|
|
732
|
-
*/
|
|
733
|
-
updateCurrentUserLocale(locale: any, options?: O): RestResponse<void>;
|
|
734
|
-
/**
|
|
735
|
-
* HTTP POST /user/query
|
|
736
|
-
* Java method: org.openremote.model.security.UserResource.query
|
|
737
|
-
*/
|
|
738
|
-
query(query: Model.UserQuery, options?: O): RestResponse<Model.User[]>;
|
|
739
|
-
/**
|
|
740
|
-
* HTTP GET /user/user
|
|
741
|
-
* Java method: org.openremote.model.security.UserResource.getCurrent
|
|
742
|
-
*/
|
|
743
|
-
getCurrent(options?: O): RestResponse<Model.User>;
|
|
744
|
-
/**
|
|
745
|
-
* HTTP GET /user/userRealmRoles
|
|
746
|
-
* Java method: org.openremote.model.security.UserResource.getCurrentUserRealmRoles
|
|
747
|
-
*/
|
|
748
|
-
getCurrentUserRealmRoles(options?: O): RestResponse<Model.Role[]>;
|
|
749
|
-
/**
|
|
750
|
-
* HTTP GET /user/userRoles
|
|
751
|
-
* Java method: org.openremote.model.security.UserResource.getCurrentUserRoles
|
|
752
|
-
*/
|
|
753
|
-
getCurrentUserRoles(options?: O): RestResponse<Model.Role[]>;
|
|
754
|
-
/**
|
|
755
|
-
* HTTP GET /user/userRoles/{clientId}
|
|
756
|
-
* Java method: org.openremote.model.security.UserResource.getCurrentUserClientRoles
|
|
757
|
-
*/
|
|
758
|
-
getCurrentUserClientRoles(clientId: any, options?: O): RestResponse<Model.Role[]>;
|
|
759
|
-
/**
|
|
760
|
-
* HTTP GET /user/{realm}/disconnect/{sessionID}
|
|
761
|
-
* Java method: org.openremote.model.security.UserResource.disconnectUserSession
|
|
762
|
-
*/
|
|
763
|
-
disconnectUserSession(realm: any, sessionID: any, options?: O): RestResponse<void>;
|
|
764
|
-
/**
|
|
765
|
-
* HTTP PUT /user/{realm}/reset-password/{userId}
|
|
766
|
-
* Java method: org.openremote.model.security.UserResource.resetPassword
|
|
767
|
-
*/
|
|
768
|
-
resetPassword(realm: any, userId: any, credential: Model.Credential, options?: O): RestResponse<void>;
|
|
769
|
-
/**
|
|
770
|
-
* HTTP GET /user/{realm}/reset-secret/{userId}
|
|
771
|
-
* Java method: org.openremote.model.security.UserResource.resetSecret
|
|
772
|
-
*/
|
|
773
|
-
resetSecret(realm: any, userId: any, options?: O): RestResponse<any>;
|
|
774
|
-
/**
|
|
775
|
-
* HTTP GET /user/{realm}/roles
|
|
776
|
-
* Java method: org.openremote.model.security.UserResource.getRoles
|
|
777
|
-
*/
|
|
778
|
-
getRoles(realm: any, options?: O): RestResponse<Model.Role[]>;
|
|
779
|
-
/**
|
|
780
|
-
* HTTP PUT /user/{realm}/roles
|
|
781
|
-
* Java method: org.openremote.model.security.UserResource.updateRoles
|
|
782
|
-
*/
|
|
783
|
-
updateRoles(realm: any, roles: Model.Role[], options?: O): RestResponse<void>;
|
|
784
|
-
/**
|
|
785
|
-
* HTTP GET /user/{realm}/userRealmRoles/{userId}
|
|
786
|
-
* Java method: org.openremote.model.security.UserResource.getUserRealmRoles
|
|
787
|
-
*/
|
|
788
|
-
getUserRealmRoles(realm: any, userId: any, options?: O): RestResponse<Model.Role[]>;
|
|
789
|
-
/**
|
|
790
|
-
* HTTP PUT /user/{realm}/userRealmRoles/{userId}
|
|
791
|
-
* Java method: org.openremote.model.security.UserResource.updateUserRealmRoles
|
|
792
|
-
*/
|
|
793
|
-
updateUserRealmRoles(realm: any, userId: any, roles: Model.Role[], options?: O): RestResponse<void>;
|
|
794
|
-
/**
|
|
795
|
-
* HTTP GET /user/{realm}/userRoles/{userId}
|
|
796
|
-
* Java method: org.openremote.model.security.UserResource.getUserRoles
|
|
797
|
-
*/
|
|
798
|
-
getUserRoles(realm: any, userId: any, options?: O): RestResponse<Model.Role[]>;
|
|
799
|
-
/**
|
|
800
|
-
* HTTP PUT /user/{realm}/userRoles/{userId}
|
|
801
|
-
* Java method: org.openremote.model.security.UserResource.updateUserRoles
|
|
802
|
-
*/
|
|
803
|
-
updateUserRoles(realm: any, userId: any, roles: Model.Role[], options?: O): RestResponse<void>;
|
|
804
|
-
/**
|
|
805
|
-
* HTTP GET /user/{realm}/userRoles/{userId}/{clientId}
|
|
806
|
-
* Java method: org.openremote.model.security.UserResource.getUserClientRoles
|
|
807
|
-
*/
|
|
808
|
-
getUserClientRoles(realm: any, userId: any, clientId: any, options?: O): RestResponse<Model.Role[]>;
|
|
809
|
-
/**
|
|
810
|
-
* HTTP PUT /user/{realm}/userRoles/{userId}/{clientId}
|
|
811
|
-
* Java method: org.openremote.model.security.UserResource.updateUserClientRoles
|
|
812
|
-
*/
|
|
813
|
-
updateUserClientRoles(realm: any, userId: any, clientId: any, roles: Model.Role[], options?: O): RestResponse<void>;
|
|
814
|
-
/**
|
|
815
|
-
* HTTP GET /user/{realm}/userSessions/{userId}
|
|
816
|
-
* Java method: org.openremote.model.security.UserResource.getUserSessions
|
|
817
|
-
*/
|
|
818
|
-
getUserSessions(realm: any, userId: any, options?: O): RestResponse<Model.UserSession[]>;
|
|
819
|
-
/**
|
|
820
|
-
* HTTP POST /user/{realm}/users
|
|
821
|
-
* Java method: org.openremote.model.security.UserResource.create
|
|
822
|
-
*/
|
|
823
|
-
create(realm: any, user: Model.User, options?: O): RestResponse<Model.User>;
|
|
824
|
-
/**
|
|
825
|
-
* HTTP PUT /user/{realm}/users
|
|
826
|
-
* Java method: org.openremote.model.security.UserResource.update
|
|
827
|
-
*/
|
|
828
|
-
update(realm: any, user: Model.User, options?: O): RestResponse<Model.User>;
|
|
829
|
-
/**
|
|
830
|
-
* HTTP DELETE /user/{realm}/users/{userId}
|
|
831
|
-
* Java method: org.openremote.model.security.UserResource.delete
|
|
832
|
-
*/
|
|
833
|
-
delete(realm: any, userId: any, options?: O): RestResponse<void>;
|
|
834
|
-
/**
|
|
835
|
-
* HTTP GET /user/{realm}/{clientId}/roles
|
|
836
|
-
* Java method: org.openremote.model.security.UserResource.getClientRoles
|
|
837
|
-
*/
|
|
838
|
-
getClientRoles(realm: any, clientId: any, options?: O): RestResponse<Model.Role[]>;
|
|
839
|
-
/**
|
|
840
|
-
* HTTP PUT /user/{realm}/{clientId}/roles
|
|
841
|
-
* Java method: org.openremote.model.security.UserResource.updateClientRoles
|
|
842
|
-
*/
|
|
843
|
-
updateClientRoles(realm: any, clientId: any, roles: Model.Role[], options?: O): RestResponse<void>;
|
|
844
|
-
/**
|
|
845
|
-
* HTTP GET /user/{realm}/{userId}
|
|
846
|
-
* Java method: org.openremote.model.security.UserResource.get
|
|
847
|
-
*/
|
|
848
|
-
get(realm: any, userId: any, options?: O): RestResponse<Model.User>;
|
|
849
|
-
}
|
|
850
|
-
export declare class AssetDatapointResourceClient<O> {
|
|
851
|
-
protected httpClient: HttpClient<O>;
|
|
852
|
-
constructor(httpClient: HttpClient<O>);
|
|
853
|
-
/**
|
|
854
|
-
* HTTP GET /asset/datapoint/export
|
|
855
|
-
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointExport
|
|
856
|
-
*/
|
|
857
|
-
getDatapointExport(queryParams?: {
|
|
858
|
-
attributeRefs?: any;
|
|
859
|
-
fromTimestamp?: number;
|
|
860
|
-
toTimestamp?: number;
|
|
861
|
-
}, options?: O): RestResponse<any>;
|
|
862
|
-
/**
|
|
863
|
-
* HTTP GET /asset/datapoint/periods
|
|
864
|
-
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointPeriod
|
|
865
|
-
*/
|
|
866
|
-
getDatapointPeriod(queryParams?: {
|
|
867
|
-
assetId?: any;
|
|
868
|
-
attributeName?: any;
|
|
869
|
-
}, options?: O): RestResponse<Model.DatapointPeriod>;
|
|
870
|
-
/**
|
|
871
|
-
* HTTP POST /asset/datapoint/{assetId}/{attributeName}
|
|
872
|
-
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapoints
|
|
873
|
-
*/
|
|
874
|
-
getDatapoints(assetId: any, attributeName: any, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
|
|
875
|
-
}
|
|
876
876
|
export type RestResponse<R> = Promise<Axios.GenericAxiosResponse<R>>;
|
|
877
877
|
export declare class ApiClient {
|
|
878
|
-
protected
|
|
879
|
-
protected _appResource: AxiosAppResourceClient;
|
|
878
|
+
protected _gatewayClientResource: AxiosGatewayClientResourceClient;
|
|
880
879
|
protected _rulesResource: AxiosRulesResourceClient;
|
|
881
|
-
protected
|
|
882
|
-
protected _statusResource: AxiosStatusResourceClient;
|
|
883
|
-
protected _consoleResource: AxiosConsoleResourceClient;
|
|
884
|
-
protected _notificationResource: AxiosNotificationResourceClient;
|
|
885
|
-
protected _dashboardResource: AxiosDashboardResourceClient;
|
|
880
|
+
protected _appResource: AxiosAppResourceClient;
|
|
886
881
|
protected _syslogResource: AxiosSyslogResourceClient;
|
|
887
|
-
protected _provisioningResource: AxiosProvisioningResourceClient;
|
|
888
882
|
protected _realmResource: AxiosRealmResourceClient;
|
|
889
|
-
protected
|
|
883
|
+
protected _flowResource: AxiosFlowResourceClient;
|
|
884
|
+
protected _agentResource: AxiosAgentResourceClient;
|
|
885
|
+
protected _statusResource: AxiosStatusResourceClient;
|
|
886
|
+
protected _assetDatapointResource: AxiosAssetDatapointResourceClient;
|
|
887
|
+
protected _provisioningResource: AxiosProvisioningResourceClient;
|
|
888
|
+
protected _notificationResource: AxiosNotificationResourceClient;
|
|
889
|
+
protected _gatewayServiceResource: AxiosGatewayServiceResourceClient;
|
|
890
|
+
protected _configurationResource: AxiosConfigurationResourceClient;
|
|
891
|
+
protected _assetPredictedDatapointResource: AxiosAssetPredictedDatapointResourceClient;
|
|
890
892
|
protected _alarmResource: AxiosAlarmResourceClient;
|
|
893
|
+
protected _userResource: AxiosUserResourceClient;
|
|
891
894
|
protected _mapResource: AxiosMapResourceClient;
|
|
892
|
-
protected
|
|
895
|
+
protected _consoleResource: AxiosConsoleResourceClient;
|
|
893
896
|
protected _assetModelResource: AxiosAssetModelResourceClient;
|
|
894
|
-
protected
|
|
895
|
-
protected _agentResource: AxiosAgentResourceClient;
|
|
897
|
+
protected _dashboardResource: AxiosDashboardResourceClient;
|
|
896
898
|
protected _assetResource: AxiosAssetResourceClient;
|
|
897
|
-
protected _userResource: AxiosUserResourceClient;
|
|
898
|
-
protected _assetDatapointResource: AxiosAssetDatapointResourceClient;
|
|
899
899
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
900
|
-
get
|
|
901
|
-
get AppResource(): AxiosAppResourceClient;
|
|
900
|
+
get GatewayClientResource(): AxiosGatewayClientResourceClient;
|
|
902
901
|
get RulesResource(): AxiosRulesResourceClient;
|
|
903
|
-
get
|
|
904
|
-
get StatusResource(): AxiosStatusResourceClient;
|
|
905
|
-
get ConsoleResource(): AxiosConsoleResourceClient;
|
|
906
|
-
get NotificationResource(): AxiosNotificationResourceClient;
|
|
907
|
-
get DashboardResource(): AxiosDashboardResourceClient;
|
|
902
|
+
get AppResource(): AxiosAppResourceClient;
|
|
908
903
|
get SyslogResource(): AxiosSyslogResourceClient;
|
|
909
|
-
get ProvisioningResource(): AxiosProvisioningResourceClient;
|
|
910
904
|
get RealmResource(): AxiosRealmResourceClient;
|
|
911
|
-
get
|
|
905
|
+
get FlowResource(): AxiosFlowResourceClient;
|
|
906
|
+
get AgentResource(): AxiosAgentResourceClient;
|
|
907
|
+
get StatusResource(): AxiosStatusResourceClient;
|
|
908
|
+
get AssetDatapointResource(): AxiosAssetDatapointResourceClient;
|
|
909
|
+
get ProvisioningResource(): AxiosProvisioningResourceClient;
|
|
910
|
+
get NotificationResource(): AxiosNotificationResourceClient;
|
|
911
|
+
get GatewayServiceResource(): AxiosGatewayServiceResourceClient;
|
|
912
|
+
get ConfigurationResource(): AxiosConfigurationResourceClient;
|
|
913
|
+
get AssetPredictedDatapointResource(): AxiosAssetPredictedDatapointResourceClient;
|
|
912
914
|
get AlarmResource(): AxiosAlarmResourceClient;
|
|
915
|
+
get UserResource(): AxiosUserResourceClient;
|
|
913
916
|
get MapResource(): AxiosMapResourceClient;
|
|
914
|
-
get
|
|
917
|
+
get ConsoleResource(): AxiosConsoleResourceClient;
|
|
915
918
|
get AssetModelResource(): AxiosAssetModelResourceClient;
|
|
916
|
-
get
|
|
917
|
-
get AgentResource(): AxiosAgentResourceClient;
|
|
919
|
+
get DashboardResource(): AxiosDashboardResourceClient;
|
|
918
920
|
get AssetResource(): AxiosAssetResourceClient;
|
|
919
|
-
get UserResource(): AxiosUserResourceClient;
|
|
920
|
-
get AssetDatapointResource(): AxiosAssetDatapointResourceClient;
|
|
921
921
|
}
|
|
922
922
|
import * as Axios from "axios";
|
|
923
923
|
declare module "axios" {
|
|
@@ -925,66 +925,66 @@ declare module "axios" {
|
|
|
925
925
|
data: R;
|
|
926
926
|
}
|
|
927
927
|
}
|
|
928
|
-
export declare class
|
|
928
|
+
export declare class AxiosGatewayClientResourceClient extends GatewayClientResourceClient<Axios.AxiosRequestConfig> {
|
|
929
929
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
930
930
|
}
|
|
931
|
-
export declare class
|
|
931
|
+
export declare class AxiosRulesResourceClient extends RulesResourceClient<Axios.AxiosRequestConfig> {
|
|
932
932
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
933
933
|
}
|
|
934
|
-
export declare class
|
|
934
|
+
export declare class AxiosAppResourceClient extends AppResourceClient<Axios.AxiosRequestConfig> {
|
|
935
935
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
936
936
|
}
|
|
937
|
-
export declare class
|
|
937
|
+
export declare class AxiosSyslogResourceClient extends SyslogResourceClient<Axios.AxiosRequestConfig> {
|
|
938
938
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
939
939
|
}
|
|
940
|
-
export declare class
|
|
940
|
+
export declare class AxiosRealmResourceClient extends RealmResourceClient<Axios.AxiosRequestConfig> {
|
|
941
941
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
942
942
|
}
|
|
943
|
-
export declare class
|
|
943
|
+
export declare class AxiosFlowResourceClient extends FlowResourceClient<Axios.AxiosRequestConfig> {
|
|
944
944
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
945
945
|
}
|
|
946
|
-
export declare class
|
|
946
|
+
export declare class AxiosAgentResourceClient extends AgentResourceClient<Axios.AxiosRequestConfig> {
|
|
947
947
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
948
948
|
}
|
|
949
|
-
export declare class
|
|
949
|
+
export declare class AxiosStatusResourceClient extends StatusResourceClient<Axios.AxiosRequestConfig> {
|
|
950
950
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
951
951
|
}
|
|
952
|
-
export declare class
|
|
952
|
+
export declare class AxiosAssetDatapointResourceClient extends AssetDatapointResourceClient<Axios.AxiosRequestConfig> {
|
|
953
953
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
954
954
|
}
|
|
955
955
|
export declare class AxiosProvisioningResourceClient extends ProvisioningResourceClient<Axios.AxiosRequestConfig> {
|
|
956
956
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
957
957
|
}
|
|
958
|
-
export declare class
|
|
958
|
+
export declare class AxiosNotificationResourceClient extends NotificationResourceClient<Axios.AxiosRequestConfig> {
|
|
959
959
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
960
960
|
}
|
|
961
|
-
export declare class
|
|
961
|
+
export declare class AxiosGatewayServiceResourceClient extends GatewayServiceResourceClient<Axios.AxiosRequestConfig> {
|
|
962
962
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
963
963
|
}
|
|
964
|
-
export declare class
|
|
964
|
+
export declare class AxiosConfigurationResourceClient extends ConfigurationResourceClient<Axios.AxiosRequestConfig> {
|
|
965
965
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
966
966
|
}
|
|
967
|
-
export declare class
|
|
967
|
+
export declare class AxiosAssetPredictedDatapointResourceClient extends AssetPredictedDatapointResourceClient<Axios.AxiosRequestConfig> {
|
|
968
968
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
969
969
|
}
|
|
970
|
-
export declare class
|
|
970
|
+
export declare class AxiosAlarmResourceClient extends AlarmResourceClient<Axios.AxiosRequestConfig> {
|
|
971
971
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
972
972
|
}
|
|
973
|
-
export declare class
|
|
973
|
+
export declare class AxiosUserResourceClient extends UserResourceClient<Axios.AxiosRequestConfig> {
|
|
974
974
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
975
975
|
}
|
|
976
|
-
export declare class
|
|
976
|
+
export declare class AxiosMapResourceClient extends MapResourceClient<Axios.AxiosRequestConfig> {
|
|
977
977
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
978
978
|
}
|
|
979
|
-
export declare class
|
|
979
|
+
export declare class AxiosConsoleResourceClient extends ConsoleResourceClient<Axios.AxiosRequestConfig> {
|
|
980
980
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
981
981
|
}
|
|
982
|
-
export declare class
|
|
982
|
+
export declare class AxiosAssetModelResourceClient extends AssetModelResourceClient<Axios.AxiosRequestConfig> {
|
|
983
983
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
984
984
|
}
|
|
985
|
-
export declare class
|
|
985
|
+
export declare class AxiosDashboardResourceClient extends DashboardResourceClient<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
|
}
|