@openremote/rest 1.13.0 → 1.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/umd/index.bundle.js +1 -1
- package/dist/umd/index.bundle.js.map +1 -1
- package/dist/umd/index.js +1 -1
- package/dist/umd/index.js.map +1 -1
- package/lib/restclient.d.ts +419 -419
- package/lib/restclient.d.ts.map +1 -1
- package/lib/restclient.js +1 -1
- package/lib/restclient.js.map +1 -1
- package/package.json +1 -1
package/lib/restclient.d.ts
CHANGED
|
@@ -41,6 +41,51 @@ export declare class SyslogResourceClient<O> {
|
|
|
41
41
|
subCategory?: string[];
|
|
42
42
|
}, options?: O): RestResponse<any>;
|
|
43
43
|
}
|
|
44
|
+
export declare class FlowResourceClient<O> {
|
|
45
|
+
protected httpClient: HttpClient<O>;
|
|
46
|
+
constructor(httpClient: HttpClient<O>);
|
|
47
|
+
/**
|
|
48
|
+
* HTTP GET /flow
|
|
49
|
+
* Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitions
|
|
50
|
+
*/
|
|
51
|
+
getAllNodeDefinitions(options?: O): RestResponse<Model.Node[]>;
|
|
52
|
+
/**
|
|
53
|
+
* HTTP GET /flow/{name}
|
|
54
|
+
* Java method: org.openremote.model.rules.flow.FlowResource.getNodeDefinition
|
|
55
|
+
*/
|
|
56
|
+
getNodeDefinition(name: string, options?: O): RestResponse<Model.Node>;
|
|
57
|
+
/**
|
|
58
|
+
* HTTP GET /flow/{type}
|
|
59
|
+
* Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitionsByType
|
|
60
|
+
*/
|
|
61
|
+
getAllNodeDefinitionsByType(type: Model.NodeType, options?: O): RestResponse<Model.Node[]>;
|
|
62
|
+
}
|
|
63
|
+
export declare class AgentResourceClient<O> {
|
|
64
|
+
protected httpClient: HttpClient<O>;
|
|
65
|
+
constructor(httpClient: HttpClient<O>);
|
|
66
|
+
/**
|
|
67
|
+
* HTTP GET /agent/assetDiscovery/{agentId}
|
|
68
|
+
* Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetDiscovery
|
|
69
|
+
*/
|
|
70
|
+
doProtocolAssetDiscovery(agentId: string, queryParams?: {
|
|
71
|
+
realm?: string;
|
|
72
|
+
}, options?: O): RestResponse<Model.AssetTreeNode[]>;
|
|
73
|
+
/**
|
|
74
|
+
* HTTP POST /agent/assetImport/{agentId}
|
|
75
|
+
* Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetImport
|
|
76
|
+
*/
|
|
77
|
+
doProtocolAssetImport(agentId: string, fileInfo: Model.FileInfo, queryParams?: {
|
|
78
|
+
realm?: string;
|
|
79
|
+
}, options?: O): RestResponse<Model.AssetTreeNode[]>;
|
|
80
|
+
/**
|
|
81
|
+
* HTTP GET /agent/instanceDiscovery/{agentType}
|
|
82
|
+
* Java method: org.openremote.model.asset.agent.AgentResource.doProtocolInstanceDiscovery
|
|
83
|
+
*/
|
|
84
|
+
doProtocolInstanceDiscovery(agentType: string, queryParams?: {
|
|
85
|
+
parentId?: string;
|
|
86
|
+
realm?: string;
|
|
87
|
+
}, options?: O): RestResponse<Model.Agent[]>;
|
|
88
|
+
}
|
|
44
89
|
export declare class MapResourceClient<O> {
|
|
45
90
|
protected httpClient: HttpClient<O>;
|
|
46
91
|
constructor(httpClient: HttpClient<O>);
|
|
@@ -94,24 +139,6 @@ export declare class MapResourceClient<O> {
|
|
|
94
139
|
[id: string]: unknown;
|
|
95
140
|
}>;
|
|
96
141
|
}
|
|
97
|
-
export declare class StatusResourceClient<O> {
|
|
98
|
-
protected httpClient: HttpClient<O>;
|
|
99
|
-
constructor(httpClient: HttpClient<O>);
|
|
100
|
-
/**
|
|
101
|
-
* HTTP GET /health
|
|
102
|
-
* Java method: org.openremote.model.system.StatusResource.getHealthStatus
|
|
103
|
-
*/
|
|
104
|
-
getHealthStatus(options?: O): RestResponse<{
|
|
105
|
-
[index: string]: any;
|
|
106
|
-
}>;
|
|
107
|
-
/**
|
|
108
|
-
* HTTP GET /info
|
|
109
|
-
* Java method: org.openremote.model.system.StatusResource.getInfo
|
|
110
|
-
*/
|
|
111
|
-
getInfo(options?: O): RestResponse<{
|
|
112
|
-
[index: string]: any;
|
|
113
|
-
}>;
|
|
114
|
-
}
|
|
115
142
|
export declare class ConfigurationResourceClient<O> {
|
|
116
143
|
protected httpClient: HttpClient<O>;
|
|
117
144
|
constructor(httpClient: HttpClient<O>);
|
|
@@ -138,109 +165,6 @@ export declare class ConfigurationResourceClient<O> {
|
|
|
138
165
|
*/
|
|
139
166
|
getManagerConfigImage(filename: string, options?: O): RestResponse<any>;
|
|
140
167
|
}
|
|
141
|
-
export declare class GatewayClientResourceClient<O> {
|
|
142
|
-
protected httpClient: HttpClient<O>;
|
|
143
|
-
constructor(httpClient: HttpClient<O>);
|
|
144
|
-
/**
|
|
145
|
-
* HTTP DELETE /gateway/connection
|
|
146
|
-
* Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnections
|
|
147
|
-
*/
|
|
148
|
-
deleteConnections(queryParams?: {
|
|
149
|
-
realm?: string[];
|
|
150
|
-
}, options?: O): RestResponse<void>;
|
|
151
|
-
/**
|
|
152
|
-
* HTTP GET /gateway/connection
|
|
153
|
-
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnections
|
|
154
|
-
*/
|
|
155
|
-
getConnections(options?: O): RestResponse<Model.GatewayConnection[]>;
|
|
156
|
-
/**
|
|
157
|
-
* HTTP DELETE /gateway/connection/{realm}
|
|
158
|
-
* Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnection
|
|
159
|
-
*/
|
|
160
|
-
deleteConnection(realm: string, options?: O): RestResponse<void>;
|
|
161
|
-
/**
|
|
162
|
-
* HTTP GET /gateway/connection/{realm}
|
|
163
|
-
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnection
|
|
164
|
-
*/
|
|
165
|
-
getConnection(realm: string, options?: O): RestResponse<Model.GatewayConnection>;
|
|
166
|
-
/**
|
|
167
|
-
* HTTP PUT /gateway/connection/{realm}
|
|
168
|
-
* Java method: org.openremote.model.gateway.GatewayClientResource.setConnection
|
|
169
|
-
*/
|
|
170
|
-
setConnection(realm: string, connection: Model.GatewayConnection, options?: O): RestResponse<void>;
|
|
171
|
-
/**
|
|
172
|
-
* HTTP GET /gateway/status/{realm}
|
|
173
|
-
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnectionStatus
|
|
174
|
-
*/
|
|
175
|
-
getConnectionStatus(realm: string, options?: O): RestResponse<Model.ConnectionStatus>;
|
|
176
|
-
}
|
|
177
|
-
export declare class AssetPredictedDatapointResourceClient<O> {
|
|
178
|
-
protected httpClient: HttpClient<O>;
|
|
179
|
-
constructor(httpClient: HttpClient<O>);
|
|
180
|
-
/**
|
|
181
|
-
* HTTP POST /asset/predicted/{assetId}/{attributeName}
|
|
182
|
-
* Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.getPredictedDatapoints
|
|
183
|
-
*/
|
|
184
|
-
getPredictedDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
|
|
185
|
-
/**
|
|
186
|
-
* HTTP PUT /asset/predicted/{assetId}/{attributeName}
|
|
187
|
-
* Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.writePredictedDatapoints
|
|
188
|
-
*/
|
|
189
|
-
writePredictedDatapoints(assetId: string, attributeName: string, predictedDatapoints: Model.ValueDatapoint<any>[], options?: O): RestResponse<void>;
|
|
190
|
-
}
|
|
191
|
-
export declare class AlarmResourceClient<O> {
|
|
192
|
-
protected httpClient: HttpClient<O>;
|
|
193
|
-
constructor(httpClient: HttpClient<O>);
|
|
194
|
-
/**
|
|
195
|
-
* HTTP POST /alarm
|
|
196
|
-
* Java method: org.openremote.model.alarm.AlarmResource.createAlarm
|
|
197
|
-
*/
|
|
198
|
-
createAlarm(alarm: Model.Alarm, queryParams?: {
|
|
199
|
-
assetIds?: string[];
|
|
200
|
-
}, options?: O): RestResponse<Model.SentAlarm>;
|
|
201
|
-
/**
|
|
202
|
-
* HTTP GET /alarm
|
|
203
|
-
* Java method: org.openremote.model.alarm.AlarmResource.getAlarms
|
|
204
|
-
*/
|
|
205
|
-
getAlarms(queryParams?: {
|
|
206
|
-
realm?: string;
|
|
207
|
-
status?: Model.AlarmStatus;
|
|
208
|
-
assetId?: string;
|
|
209
|
-
assigneeId?: string;
|
|
210
|
-
}, options?: O): RestResponse<Model.SentAlarm[]>;
|
|
211
|
-
/**
|
|
212
|
-
* HTTP DELETE /alarm
|
|
213
|
-
* Java method: org.openremote.model.alarm.AlarmResource.removeAlarms
|
|
214
|
-
*/
|
|
215
|
-
removeAlarms(ids: number[], options?: O): RestResponse<void>;
|
|
216
|
-
/**
|
|
217
|
-
* HTTP PUT /alarm/assets
|
|
218
|
-
* Java method: org.openremote.model.alarm.AlarmResource.setAssetLinks
|
|
219
|
-
*/
|
|
220
|
-
setAssetLinks(links: Model.AlarmAssetLink[], options?: O): RestResponse<void>;
|
|
221
|
-
/**
|
|
222
|
-
* HTTP GET /alarm/{alarmId}
|
|
223
|
-
* Java method: org.openremote.model.alarm.AlarmResource.getAlarm
|
|
224
|
-
*/
|
|
225
|
-
getAlarm(alarmId: number, options?: O): RestResponse<Model.SentAlarm>;
|
|
226
|
-
/**
|
|
227
|
-
* HTTP DELETE /alarm/{alarmId}
|
|
228
|
-
* Java method: org.openremote.model.alarm.AlarmResource.removeAlarm
|
|
229
|
-
*/
|
|
230
|
-
removeAlarm(alarmId: number, options?: O): RestResponse<void>;
|
|
231
|
-
/**
|
|
232
|
-
* HTTP PUT /alarm/{alarmId}
|
|
233
|
-
* Java method: org.openremote.model.alarm.AlarmResource.updateAlarm
|
|
234
|
-
*/
|
|
235
|
-
updateAlarm(alarmId: number, alarm: Model.SentAlarm, options?: O): RestResponse<void>;
|
|
236
|
-
/**
|
|
237
|
-
* HTTP GET /alarm/{alarmId}/assets
|
|
238
|
-
* Java method: org.openremote.model.alarm.AlarmResource.getAssetLinks
|
|
239
|
-
*/
|
|
240
|
-
getAssetLinks(alarmId: number, queryParams?: {
|
|
241
|
-
realm?: string;
|
|
242
|
-
}, options?: O): RestResponse<Model.AlarmAssetLink[]>;
|
|
243
|
-
}
|
|
244
168
|
export declare class RulesResourceClient<O> {
|
|
245
169
|
protected httpClient: HttpClient<O>;
|
|
246
170
|
constructor(httpClient: HttpClient<O>);
|
|
@@ -403,6 +327,35 @@ export declare class NotificationResourceClient<O> {
|
|
|
403
327
|
targetId?: string;
|
|
404
328
|
}, options?: O): RestResponse<void>;
|
|
405
329
|
}
|
|
330
|
+
export declare class GatewayServiceResourceClient<O> {
|
|
331
|
+
protected httpClient: HttpClient<O>;
|
|
332
|
+
constructor(httpClient: HttpClient<O>);
|
|
333
|
+
/**
|
|
334
|
+
* HTTP POST /gateway/tunnel
|
|
335
|
+
* Java method: org.openremote.model.gateway.GatewayServiceResource.startTunnel
|
|
336
|
+
*/
|
|
337
|
+
startTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<Model.GatewayTunnelInfo>;
|
|
338
|
+
/**
|
|
339
|
+
* HTTP DELETE /gateway/tunnel
|
|
340
|
+
* Java method: org.openremote.model.gateway.GatewayServiceResource.stopTunnel
|
|
341
|
+
*/
|
|
342
|
+
stopTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<void>;
|
|
343
|
+
/**
|
|
344
|
+
* HTTP GET /gateway/tunnel/{realm}
|
|
345
|
+
* Java method: org.openremote.model.gateway.GatewayServiceResource.getAllActiveTunnelInfos
|
|
346
|
+
*/
|
|
347
|
+
getAllActiveTunnelInfos(realm: string, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
|
|
348
|
+
/**
|
|
349
|
+
* HTTP GET /gateway/tunnel/{realm}/{id}
|
|
350
|
+
* Java method: org.openremote.model.gateway.GatewayServiceResource.getGatewayActiveTunnelInfos
|
|
351
|
+
*/
|
|
352
|
+
getGatewayActiveTunnelInfos(realm: string, id: string, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
|
|
353
|
+
/**
|
|
354
|
+
* HTTP GET /gateway/tunnel/{realm}/{id}/{target}/{targetPort}
|
|
355
|
+
* Java method: org.openremote.model.gateway.GatewayServiceResource.getActiveTunnelInfo
|
|
356
|
+
*/
|
|
357
|
+
getActiveTunnelInfo(realm: string, id: string, target: string, targetPort: number, options?: O): RestResponse<Model.GatewayTunnelInfo>;
|
|
358
|
+
}
|
|
406
359
|
export declare class AssetResourceClient<O> {
|
|
407
360
|
protected httpClient: HttpClient<O>;
|
|
408
361
|
constructor(httpClient: HttpClient<O>);
|
|
@@ -517,201 +470,65 @@ export declare class AssetResourceClient<O> {
|
|
|
517
470
|
assetIds?: string[];
|
|
518
471
|
}, options?: O): RestResponse<void>;
|
|
519
472
|
}
|
|
520
|
-
export declare class
|
|
473
|
+
export declare class ProvisioningResourceClient<O> {
|
|
521
474
|
protected httpClient: HttpClient<O>;
|
|
522
475
|
constructor(httpClient: HttpClient<O>);
|
|
523
476
|
/**
|
|
524
|
-
* HTTP
|
|
525
|
-
* Java method: org.openremote.model.
|
|
477
|
+
* HTTP POST /provisioning
|
|
478
|
+
* Java method: org.openremote.model.provisioning.ProvisioningResource.createProvisioningConfig
|
|
526
479
|
*/
|
|
527
|
-
|
|
480
|
+
createProvisioningConfig(provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<number>;
|
|
528
481
|
/**
|
|
529
|
-
* HTTP GET /
|
|
530
|
-
* Java method: org.openremote.model.
|
|
482
|
+
* HTTP GET /provisioning
|
|
483
|
+
* Java method: org.openremote.model.provisioning.ProvisioningResource.getProvisioningConfigs
|
|
531
484
|
*/
|
|
532
|
-
|
|
485
|
+
getProvisioningConfigs(options?: O): RestResponse<Model.ProvisioningConfigUnion<any, any>[]>;
|
|
533
486
|
/**
|
|
534
|
-
* HTTP
|
|
535
|
-
* Java method: org.openremote.model.
|
|
487
|
+
* HTTP DELETE /provisioning/{id}
|
|
488
|
+
* Java method: org.openremote.model.provisioning.ProvisioningResource.deleteProvisioningConfig
|
|
536
489
|
*/
|
|
537
|
-
|
|
490
|
+
deleteProvisioningConfig(id: number, options?: O): RestResponse<void>;
|
|
491
|
+
/**
|
|
492
|
+
* HTTP PUT /provisioning/{id}
|
|
493
|
+
* Java method: org.openremote.model.provisioning.ProvisioningResource.updateProvisioningConfig
|
|
494
|
+
*/
|
|
495
|
+
updateProvisioningConfig(id: number, provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<void>;
|
|
538
496
|
}
|
|
539
|
-
export declare class
|
|
497
|
+
export declare class GatewayClientResourceClient<O> {
|
|
540
498
|
protected httpClient: HttpClient<O>;
|
|
541
499
|
constructor(httpClient: HttpClient<O>);
|
|
542
500
|
/**
|
|
543
|
-
* HTTP
|
|
544
|
-
* Java method: org.openremote.model.gateway.
|
|
501
|
+
* HTTP DELETE /gateway/connection
|
|
502
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnections
|
|
545
503
|
*/
|
|
546
|
-
|
|
504
|
+
deleteConnections(queryParams?: {
|
|
505
|
+
realm?: string[];
|
|
506
|
+
}, options?: O): RestResponse<void>;
|
|
547
507
|
/**
|
|
548
|
-
* HTTP
|
|
549
|
-
* Java method: org.openremote.model.gateway.
|
|
508
|
+
* HTTP GET /gateway/connection
|
|
509
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnections
|
|
550
510
|
*/
|
|
551
|
-
|
|
511
|
+
getConnections(options?: O): RestResponse<Model.GatewayConnection[]>;
|
|
552
512
|
/**
|
|
553
|
-
* HTTP
|
|
554
|
-
* Java method: org.openremote.model.gateway.
|
|
513
|
+
* HTTP DELETE /gateway/connection/{realm}
|
|
514
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnection
|
|
555
515
|
*/
|
|
556
|
-
|
|
516
|
+
deleteConnection(realm: string, options?: O): RestResponse<void>;
|
|
557
517
|
/**
|
|
558
|
-
* HTTP GET /gateway/
|
|
559
|
-
* Java method: org.openremote.model.gateway.
|
|
518
|
+
* HTTP GET /gateway/connection/{realm}
|
|
519
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnection
|
|
560
520
|
*/
|
|
561
|
-
|
|
521
|
+
getConnection(realm: string, options?: O): RestResponse<Model.GatewayConnection>;
|
|
562
522
|
/**
|
|
563
|
-
* HTTP
|
|
564
|
-
* Java method: org.openremote.model.gateway.
|
|
523
|
+
* HTTP PUT /gateway/connection/{realm}
|
|
524
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.setConnection
|
|
565
525
|
*/
|
|
566
|
-
|
|
567
|
-
}
|
|
568
|
-
export declare class UserResourceClient<O> {
|
|
569
|
-
protected httpClient: HttpClient<O>;
|
|
570
|
-
constructor(httpClient: HttpClient<O>);
|
|
571
|
-
/**
|
|
572
|
-
* HTTP PUT /user/locale
|
|
573
|
-
* Java method: org.openremote.model.security.UserResource.updateCurrentUserLocale
|
|
574
|
-
*/
|
|
575
|
-
updateCurrentUserLocale(locale: string, options?: O): RestResponse<void>;
|
|
576
|
-
/**
|
|
577
|
-
* HTTP POST /user/query
|
|
578
|
-
* Java method: org.openremote.model.security.UserResource.query
|
|
579
|
-
*/
|
|
580
|
-
query(query: Model.UserQuery, options?: O): RestResponse<Model.User[]>;
|
|
581
|
-
/**
|
|
582
|
-
* HTTP PUT /user/request-password-reset
|
|
583
|
-
* Java method: org.openremote.model.security.UserResource.requestPasswordResetCurrent
|
|
584
|
-
*/
|
|
585
|
-
requestPasswordResetCurrent(options?: O): RestResponse<void>;
|
|
586
|
-
/**
|
|
587
|
-
* HTTP PUT /user/reset-password
|
|
588
|
-
* Java method: org.openremote.model.security.UserResource.updatePasswordCurrent
|
|
589
|
-
*/
|
|
590
|
-
updatePasswordCurrent(credential: Model.Credential, options?: O): RestResponse<void>;
|
|
591
|
-
/**
|
|
592
|
-
* HTTP PUT /user/update
|
|
593
|
-
* Java method: org.openremote.model.security.UserResource.updateCurrent
|
|
594
|
-
*/
|
|
595
|
-
updateCurrent(user: Model.User, options?: O): RestResponse<Model.User>;
|
|
596
|
-
/**
|
|
597
|
-
* HTTP GET /user/user
|
|
598
|
-
* Java method: org.openremote.model.security.UserResource.getCurrent
|
|
599
|
-
*/
|
|
600
|
-
getCurrent(options?: O): RestResponse<Model.User>;
|
|
601
|
-
/**
|
|
602
|
-
* HTTP GET /user/userRealmRoles
|
|
603
|
-
* Java method: org.openremote.model.security.UserResource.getCurrentUserRealmRoles
|
|
604
|
-
*/
|
|
605
|
-
getCurrentUserRealmRoles(options?: O): RestResponse<string[]>;
|
|
606
|
-
/**
|
|
607
|
-
* HTTP GET /user/userRoles/{clientId}
|
|
608
|
-
* Java method: org.openremote.model.security.UserResource.getCurrentUserClientRoles
|
|
609
|
-
*/
|
|
610
|
-
getCurrentUserClientRoles(clientId: string, options?: O): RestResponse<string[]>;
|
|
611
|
-
/**
|
|
612
|
-
* HTTP GET /user/{realm}/disconnect/{sessionID}
|
|
613
|
-
* Java method: org.openremote.model.security.UserResource.disconnectUserSession
|
|
614
|
-
*/
|
|
615
|
-
disconnectUserSession(realm: string, sessionID: string, options?: O): RestResponse<void>;
|
|
616
|
-
/**
|
|
617
|
-
* HTTP PUT /user/{realm}/request-password-reset/{userId}
|
|
618
|
-
* Java method: org.openremote.model.security.UserResource.requestPasswordReset
|
|
619
|
-
*/
|
|
620
|
-
requestPasswordReset(realm: string, userId: string, options?: O): RestResponse<void>;
|
|
621
|
-
/**
|
|
622
|
-
* HTTP PUT /user/{realm}/reset-password/{userId}
|
|
623
|
-
* Java method: org.openremote.model.security.UserResource.updatePassword
|
|
624
|
-
*/
|
|
625
|
-
updatePassword(realm: string, userId: string, credential: Model.Credential, options?: O): RestResponse<void>;
|
|
626
|
-
/**
|
|
627
|
-
* HTTP GET /user/{realm}/reset-secret/{userId}
|
|
628
|
-
* Java method: org.openremote.model.security.UserResource.resetSecret
|
|
629
|
-
*/
|
|
630
|
-
resetSecret(realm: string, userId: string, options?: O): RestResponse<string>;
|
|
631
|
-
/**
|
|
632
|
-
* HTTP PUT /user/{realm}/roles
|
|
633
|
-
* Java method: org.openremote.model.security.UserResource.updateRoles
|
|
634
|
-
*/
|
|
635
|
-
updateRoles(realm: string, roles: Model.Role[], options?: O): RestResponse<void>;
|
|
636
|
-
/**
|
|
637
|
-
* HTTP GET /user/{realm}/userRealmRoles/{userId}
|
|
638
|
-
* Java method: org.openremote.model.security.UserResource.getUserRealmRoles
|
|
639
|
-
*/
|
|
640
|
-
getUserRealmRoles(realm: string, userId: string, options?: O): RestResponse<string[]>;
|
|
641
|
-
/**
|
|
642
|
-
* HTTP PUT /user/{realm}/userRealmRoles/{userId}
|
|
643
|
-
* Java method: org.openremote.model.security.UserResource.updateUserRealmRoles
|
|
644
|
-
*/
|
|
645
|
-
updateUserRealmRoles(realm: string, userId: string, roles: string[], options?: O): RestResponse<void>;
|
|
646
|
-
/**
|
|
647
|
-
* HTTP GET /user/{realm}/userRoles/{userId}/{clientId}
|
|
648
|
-
* Java method: org.openremote.model.security.UserResource.getUserClientRoles
|
|
649
|
-
*/
|
|
650
|
-
getUserClientRoles(realm: string, userId: string, clientId: string, options?: O): RestResponse<string[]>;
|
|
651
|
-
/**
|
|
652
|
-
* HTTP PUT /user/{realm}/userRoles/{userId}/{clientId}
|
|
653
|
-
* Java method: org.openremote.model.security.UserResource.updateUserClientRoles
|
|
654
|
-
*/
|
|
655
|
-
updateUserClientRoles(realm: string, userId: string, clientId: string, roles: string[], options?: O): RestResponse<void>;
|
|
656
|
-
/**
|
|
657
|
-
* HTTP GET /user/{realm}/userSessions/{userId}
|
|
658
|
-
* Java method: org.openremote.model.security.UserResource.getUserSessions
|
|
659
|
-
*/
|
|
660
|
-
getUserSessions(realm: string, userId: string, options?: O): RestResponse<Model.UserSession[]>;
|
|
661
|
-
/**
|
|
662
|
-
* HTTP POST /user/{realm}/users
|
|
663
|
-
* Java method: org.openremote.model.security.UserResource.create
|
|
664
|
-
*/
|
|
665
|
-
create(realm: string, user: Model.User, options?: O): RestResponse<Model.User>;
|
|
666
|
-
/**
|
|
667
|
-
* HTTP PUT /user/{realm}/users
|
|
668
|
-
* Java method: org.openremote.model.security.UserResource.update
|
|
669
|
-
*/
|
|
670
|
-
update(realm: string, user: Model.User, options?: O): RestResponse<Model.User>;
|
|
671
|
-
/**
|
|
672
|
-
* HTTP DELETE /user/{realm}/users/{userId}
|
|
673
|
-
* Java method: org.openremote.model.security.UserResource.delete
|
|
674
|
-
*/
|
|
675
|
-
delete(realm: string, userId: string, options?: O): RestResponse<void>;
|
|
676
|
-
/**
|
|
677
|
-
* HTTP GET /user/{realm}/{clientId}/roles
|
|
678
|
-
* Java method: org.openremote.model.security.UserResource.getClientRoles
|
|
679
|
-
*/
|
|
680
|
-
getClientRoles(realm: string, clientId: string, options?: O): RestResponse<Model.Role[]>;
|
|
681
|
-
/**
|
|
682
|
-
* HTTP PUT /user/{realm}/{clientId}/roles
|
|
683
|
-
* Java method: org.openremote.model.security.UserResource.updateClientRoles
|
|
684
|
-
*/
|
|
685
|
-
updateClientRoles(realm: string, clientId: string, roles: Model.Role[], options?: O): RestResponse<void>;
|
|
686
|
-
/**
|
|
687
|
-
* HTTP GET /user/{realm}/{userId}
|
|
688
|
-
* Java method: org.openremote.model.security.UserResource.get
|
|
689
|
-
*/
|
|
690
|
-
get(realm: string, userId: string, options?: O): RestResponse<Model.User>;
|
|
691
|
-
}
|
|
692
|
-
export declare class ProvisioningResourceClient<O> {
|
|
693
|
-
protected httpClient: HttpClient<O>;
|
|
694
|
-
constructor(httpClient: HttpClient<O>);
|
|
695
|
-
/**
|
|
696
|
-
* HTTP POST /provisioning
|
|
697
|
-
* Java method: org.openremote.model.provisioning.ProvisioningResource.createProvisioningConfig
|
|
698
|
-
*/
|
|
699
|
-
createProvisioningConfig(provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<number>;
|
|
700
|
-
/**
|
|
701
|
-
* HTTP GET /provisioning
|
|
702
|
-
* Java method: org.openremote.model.provisioning.ProvisioningResource.getProvisioningConfigs
|
|
703
|
-
*/
|
|
704
|
-
getProvisioningConfigs(options?: O): RestResponse<Model.ProvisioningConfigUnion<any, any>[]>;
|
|
705
|
-
/**
|
|
706
|
-
* HTTP DELETE /provisioning/{id}
|
|
707
|
-
* Java method: org.openremote.model.provisioning.ProvisioningResource.deleteProvisioningConfig
|
|
708
|
-
*/
|
|
709
|
-
deleteProvisioningConfig(id: number, options?: O): RestResponse<void>;
|
|
526
|
+
setConnection(realm: string, connection: Model.GatewayConnection, options?: O): RestResponse<void>;
|
|
710
527
|
/**
|
|
711
|
-
* HTTP
|
|
712
|
-
* Java method: org.openremote.model.
|
|
528
|
+
* HTTP GET /gateway/status/{realm}
|
|
529
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnectionStatus
|
|
713
530
|
*/
|
|
714
|
-
|
|
531
|
+
getConnectionStatus(realm: string, options?: O): RestResponse<Model.ConnectionStatus>;
|
|
715
532
|
}
|
|
716
533
|
export declare class AssetDatapointResourceClient<O> {
|
|
717
534
|
protected httpClient: HttpClient<O>;
|
|
@@ -739,25 +556,6 @@ export declare class AssetDatapointResourceClient<O> {
|
|
|
739
556
|
*/
|
|
740
557
|
getDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
|
|
741
558
|
}
|
|
742
|
-
export declare class AppResourceClient<O> {
|
|
743
|
-
protected httpClient: HttpClient<O>;
|
|
744
|
-
constructor(httpClient: HttpClient<O>);
|
|
745
|
-
/**
|
|
746
|
-
* HTTP GET /apps
|
|
747
|
-
* Java method: org.openremote.model.apps.AppResource.getApps
|
|
748
|
-
*/
|
|
749
|
-
getApps(options?: O): RestResponse<string[]>;
|
|
750
|
-
/**
|
|
751
|
-
* HTTP GET /apps/consoleConfig
|
|
752
|
-
* Java method: org.openremote.model.apps.AppResource.getConsoleConfig
|
|
753
|
-
*/
|
|
754
|
-
getConsoleConfig(options?: O): RestResponse<any>;
|
|
755
|
-
/**
|
|
756
|
-
* HTTP GET /apps/info
|
|
757
|
-
* Java method: org.openremote.model.apps.AppResource.getAppInfos
|
|
758
|
-
*/
|
|
759
|
-
getAppInfos(options?: O): RestResponse<any>;
|
|
760
|
-
}
|
|
761
559
|
export declare class DashboardResourceClient<O> {
|
|
762
560
|
protected httpClient: HttpClient<O>;
|
|
763
561
|
constructor(httpClient: HttpClient<O>);
|
|
@@ -845,40 +643,6 @@ export declare class AssetModelResourceClient<O> {
|
|
|
845
643
|
[index: string]: Model.ValueDescriptor;
|
|
846
644
|
}>;
|
|
847
645
|
}
|
|
848
|
-
export declare class RealmResourceClient<O> {
|
|
849
|
-
protected httpClient: HttpClient<O>;
|
|
850
|
-
constructor(httpClient: HttpClient<O>);
|
|
851
|
-
/**
|
|
852
|
-
* HTTP POST /realm
|
|
853
|
-
* Java method: org.openremote.model.security.RealmResource.create
|
|
854
|
-
*/
|
|
855
|
-
create(realm: Model.Realm, options?: O): RestResponse<void>;
|
|
856
|
-
/**
|
|
857
|
-
* HTTP GET /realm
|
|
858
|
-
* Java method: org.openremote.model.security.RealmResource.getAll
|
|
859
|
-
*/
|
|
860
|
-
getAll(options?: O): RestResponse<Model.Realm[]>;
|
|
861
|
-
/**
|
|
862
|
-
* HTTP GET /realm/accessible
|
|
863
|
-
* Java method: org.openremote.model.security.RealmResource.getAccessible
|
|
864
|
-
*/
|
|
865
|
-
getAccessible(options?: O): RestResponse<Model.Realm[]>;
|
|
866
|
-
/**
|
|
867
|
-
* HTTP DELETE /realm/{name}
|
|
868
|
-
* Java method: org.openremote.model.security.RealmResource.delete
|
|
869
|
-
*/
|
|
870
|
-
delete(name: string, options?: O): RestResponse<void>;
|
|
871
|
-
/**
|
|
872
|
-
* HTTP GET /realm/{name}
|
|
873
|
-
* Java method: org.openremote.model.security.RealmResource.get
|
|
874
|
-
*/
|
|
875
|
-
get(name: string, options?: O): RestResponse<Model.Realm>;
|
|
876
|
-
/**
|
|
877
|
-
* HTTP PUT /realm/{name}
|
|
878
|
-
* Java method: org.openremote.model.security.RealmResource.update
|
|
879
|
-
*/
|
|
880
|
-
update(name: string, realm: Model.Realm, options?: O): RestResponse<void>;
|
|
881
|
-
}
|
|
882
646
|
export declare class ExternalServiceResourceClient<O> {
|
|
883
647
|
protected httpClient: HttpClient<O>;
|
|
884
648
|
constructor(httpClient: HttpClient<O>);
|
|
@@ -934,87 +698,323 @@ export declare class ExternalServiceResourceClient<O> {
|
|
|
934
698
|
*/
|
|
935
699
|
heartbeat(serviceId: string, instanceId: number, options?: O): RestResponse<void>;
|
|
936
700
|
}
|
|
937
|
-
export declare class
|
|
701
|
+
export declare class AppResourceClient<O> {
|
|
938
702
|
protected httpClient: HttpClient<O>;
|
|
939
703
|
constructor(httpClient: HttpClient<O>);
|
|
940
704
|
/**
|
|
941
|
-
* HTTP GET /
|
|
942
|
-
* Java method: org.openremote.model.
|
|
705
|
+
* HTTP GET /apps
|
|
706
|
+
* Java method: org.openremote.model.apps.AppResource.getApps
|
|
943
707
|
*/
|
|
944
|
-
|
|
945
|
-
realm?: string;
|
|
946
|
-
}, options?: O): RestResponse<Model.AssetTreeNode[]>;
|
|
708
|
+
getApps(options?: O): RestResponse<string[]>;
|
|
947
709
|
/**
|
|
948
|
-
* HTTP
|
|
949
|
-
* Java method: org.openremote.model.
|
|
710
|
+
* HTTP GET /apps/consoleConfig
|
|
711
|
+
* Java method: org.openremote.model.apps.AppResource.getConsoleConfig
|
|
950
712
|
*/
|
|
951
|
-
|
|
952
|
-
realm?: string;
|
|
953
|
-
}, options?: O): RestResponse<Model.AssetTreeNode[]>;
|
|
713
|
+
getConsoleConfig(options?: O): RestResponse<any>;
|
|
954
714
|
/**
|
|
955
|
-
* HTTP GET /
|
|
956
|
-
* Java method: org.openremote.model.
|
|
715
|
+
* HTTP GET /apps/info
|
|
716
|
+
* Java method: org.openremote.model.apps.AppResource.getAppInfos
|
|
957
717
|
*/
|
|
958
|
-
|
|
959
|
-
parentId?: string;
|
|
960
|
-
realm?: string;
|
|
961
|
-
}, options?: O): RestResponse<Model.Agent[]>;
|
|
718
|
+
getAppInfos(options?: O): RestResponse<any>;
|
|
962
719
|
}
|
|
963
|
-
export declare class
|
|
720
|
+
export declare class AlarmResourceClient<O> {
|
|
964
721
|
protected httpClient: HttpClient<O>;
|
|
965
722
|
constructor(httpClient: HttpClient<O>);
|
|
966
723
|
/**
|
|
967
|
-
* HTTP POST /
|
|
968
|
-
* Java method: org.openremote.model.
|
|
724
|
+
* HTTP POST /alarm
|
|
725
|
+
* Java method: org.openremote.model.alarm.AlarmResource.createAlarm
|
|
969
726
|
*/
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
727
|
+
createAlarm(alarm: Model.Alarm, queryParams?: {
|
|
728
|
+
assetIds?: string[];
|
|
729
|
+
}, options?: O): RestResponse<Model.SentAlarm>;
|
|
730
|
+
/**
|
|
731
|
+
* HTTP GET /alarm
|
|
732
|
+
* Java method: org.openremote.model.alarm.AlarmResource.getAlarms
|
|
733
|
+
*/
|
|
734
|
+
getAlarms(queryParams?: {
|
|
735
|
+
realm?: string;
|
|
736
|
+
status?: Model.AlarmStatus;
|
|
737
|
+
assetId?: string;
|
|
738
|
+
assigneeId?: string;
|
|
739
|
+
}, options?: O): RestResponse<Model.SentAlarm[]>;
|
|
740
|
+
/**
|
|
741
|
+
* HTTP DELETE /alarm
|
|
742
|
+
* Java method: org.openremote.model.alarm.AlarmResource.removeAlarms
|
|
743
|
+
*/
|
|
744
|
+
removeAlarms(ids: number[], options?: O): RestResponse<void>;
|
|
745
|
+
/**
|
|
746
|
+
* HTTP PUT /alarm/assets
|
|
747
|
+
* Java method: org.openremote.model.alarm.AlarmResource.setAssetLinks
|
|
748
|
+
*/
|
|
749
|
+
setAssetLinks(links: Model.AlarmAssetLink[], options?: O): RestResponse<void>;
|
|
750
|
+
/**
|
|
751
|
+
* HTTP GET /alarm/{alarmId}
|
|
752
|
+
* Java method: org.openremote.model.alarm.AlarmResource.getAlarm
|
|
753
|
+
*/
|
|
754
|
+
getAlarm(alarmId: number, options?: O): RestResponse<Model.SentAlarm>;
|
|
755
|
+
/**
|
|
756
|
+
* HTTP DELETE /alarm/{alarmId}
|
|
757
|
+
* Java method: org.openremote.model.alarm.AlarmResource.removeAlarm
|
|
758
|
+
*/
|
|
759
|
+
removeAlarm(alarmId: number, options?: O): RestResponse<void>;
|
|
760
|
+
/**
|
|
761
|
+
* HTTP PUT /alarm/{alarmId}
|
|
762
|
+
* Java method: org.openremote.model.alarm.AlarmResource.updateAlarm
|
|
763
|
+
*/
|
|
764
|
+
updateAlarm(alarmId: number, alarm: Model.SentAlarm, options?: O): RestResponse<void>;
|
|
765
|
+
/**
|
|
766
|
+
* HTTP GET /alarm/{alarmId}/assets
|
|
767
|
+
* Java method: org.openremote.model.alarm.AlarmResource.getAssetLinks
|
|
768
|
+
*/
|
|
769
|
+
getAssetLinks(alarmId: number, queryParams?: {
|
|
770
|
+
realm?: string;
|
|
771
|
+
}, options?: O): RestResponse<Model.AlarmAssetLink[]>;
|
|
772
|
+
}
|
|
773
|
+
export declare class StatusResourceClient<O> {
|
|
774
|
+
protected httpClient: HttpClient<O>;
|
|
775
|
+
constructor(httpClient: HttpClient<O>);
|
|
776
|
+
/**
|
|
777
|
+
* HTTP GET /health
|
|
778
|
+
* Java method: org.openremote.model.system.StatusResource.getHealthStatus
|
|
779
|
+
*/
|
|
780
|
+
getHealthStatus(options?: O): RestResponse<{
|
|
781
|
+
[index: string]: any;
|
|
782
|
+
}>;
|
|
783
|
+
/**
|
|
784
|
+
* HTTP GET /info
|
|
785
|
+
* Java method: org.openremote.model.system.StatusResource.getInfo
|
|
786
|
+
*/
|
|
787
|
+
getInfo(options?: O): RestResponse<{
|
|
788
|
+
[index: string]: any;
|
|
789
|
+
}>;
|
|
790
|
+
}
|
|
791
|
+
export declare class UserResourceClient<O> {
|
|
792
|
+
protected httpClient: HttpClient<O>;
|
|
793
|
+
constructor(httpClient: HttpClient<O>);
|
|
794
|
+
/**
|
|
795
|
+
* HTTP PUT /user/locale
|
|
796
|
+
* Java method: org.openremote.model.security.UserResource.updateCurrentUserLocale
|
|
797
|
+
*/
|
|
798
|
+
updateCurrentUserLocale(locale: string, options?: O): RestResponse<void>;
|
|
799
|
+
/**
|
|
800
|
+
* HTTP POST /user/query
|
|
801
|
+
* Java method: org.openremote.model.security.UserResource.query
|
|
802
|
+
*/
|
|
803
|
+
query(query: Model.UserQuery, options?: O): RestResponse<Model.User[]>;
|
|
804
|
+
/**
|
|
805
|
+
* HTTP PUT /user/request-password-reset
|
|
806
|
+
* Java method: org.openremote.model.security.UserResource.requestPasswordResetCurrent
|
|
807
|
+
*/
|
|
808
|
+
requestPasswordResetCurrent(options?: O): RestResponse<void>;
|
|
809
|
+
/**
|
|
810
|
+
* HTTP PUT /user/reset-password
|
|
811
|
+
* Java method: org.openremote.model.security.UserResource.updatePasswordCurrent
|
|
812
|
+
*/
|
|
813
|
+
updatePasswordCurrent(credential: Model.Credential, options?: O): RestResponse<void>;
|
|
814
|
+
/**
|
|
815
|
+
* HTTP PUT /user/update
|
|
816
|
+
* Java method: org.openremote.model.security.UserResource.updateCurrent
|
|
817
|
+
*/
|
|
818
|
+
updateCurrent(user: Model.User, options?: O): RestResponse<Model.User>;
|
|
819
|
+
/**
|
|
820
|
+
* HTTP GET /user/user
|
|
821
|
+
* Java method: org.openremote.model.security.UserResource.getCurrent
|
|
822
|
+
*/
|
|
823
|
+
getCurrent(options?: O): RestResponse<Model.User>;
|
|
824
|
+
/**
|
|
825
|
+
* HTTP GET /user/userRealmRoles
|
|
826
|
+
* Java method: org.openremote.model.security.UserResource.getCurrentUserRealmRoles
|
|
827
|
+
*/
|
|
828
|
+
getCurrentUserRealmRoles(options?: O): RestResponse<string[]>;
|
|
829
|
+
/**
|
|
830
|
+
* HTTP GET /user/userRoles/{clientId}
|
|
831
|
+
* Java method: org.openremote.model.security.UserResource.getCurrentUserClientRoles
|
|
832
|
+
*/
|
|
833
|
+
getCurrentUserClientRoles(clientId: string, options?: O): RestResponse<string[]>;
|
|
834
|
+
/**
|
|
835
|
+
* HTTP GET /user/{realm}/disconnect/{sessionID}
|
|
836
|
+
* Java method: org.openremote.model.security.UserResource.disconnectUserSession
|
|
837
|
+
*/
|
|
838
|
+
disconnectUserSession(realm: string, sessionID: string, options?: O): RestResponse<void>;
|
|
839
|
+
/**
|
|
840
|
+
* HTTP PUT /user/{realm}/request-password-reset/{userId}
|
|
841
|
+
* Java method: org.openremote.model.security.UserResource.requestPasswordReset
|
|
842
|
+
*/
|
|
843
|
+
requestPasswordReset(realm: string, userId: string, options?: O): RestResponse<void>;
|
|
844
|
+
/**
|
|
845
|
+
* HTTP PUT /user/{realm}/reset-password/{userId}
|
|
846
|
+
* Java method: org.openremote.model.security.UserResource.updatePassword
|
|
847
|
+
*/
|
|
848
|
+
updatePassword(realm: string, userId: string, credential: Model.Credential, options?: O): RestResponse<void>;
|
|
849
|
+
/**
|
|
850
|
+
* HTTP GET /user/{realm}/reset-secret/{userId}
|
|
851
|
+
* Java method: org.openremote.model.security.UserResource.resetSecret
|
|
852
|
+
*/
|
|
853
|
+
resetSecret(realm: string, userId: string, options?: O): RestResponse<string>;
|
|
854
|
+
/**
|
|
855
|
+
* HTTP PUT /user/{realm}/roles
|
|
856
|
+
* Java method: org.openremote.model.security.UserResource.updateRoles
|
|
857
|
+
*/
|
|
858
|
+
updateRoles(realm: string, roles: Model.Role[], options?: O): RestResponse<void>;
|
|
859
|
+
/**
|
|
860
|
+
* HTTP GET /user/{realm}/userRealmRoles/{userId}
|
|
861
|
+
* Java method: org.openremote.model.security.UserResource.getUserRealmRoles
|
|
862
|
+
*/
|
|
863
|
+
getUserRealmRoles(realm: string, userId: string, options?: O): RestResponse<string[]>;
|
|
864
|
+
/**
|
|
865
|
+
* HTTP PUT /user/{realm}/userRealmRoles/{userId}
|
|
866
|
+
* Java method: org.openremote.model.security.UserResource.updateUserRealmRoles
|
|
867
|
+
*/
|
|
868
|
+
updateUserRealmRoles(realm: string, userId: string, roles: string[], options?: O): RestResponse<void>;
|
|
869
|
+
/**
|
|
870
|
+
* HTTP GET /user/{realm}/userRoles/{userId}/{clientId}
|
|
871
|
+
* Java method: org.openremote.model.security.UserResource.getUserClientRoles
|
|
872
|
+
*/
|
|
873
|
+
getUserClientRoles(realm: string, userId: string, clientId: string, options?: O): RestResponse<string[]>;
|
|
874
|
+
/**
|
|
875
|
+
* HTTP PUT /user/{realm}/userRoles/{userId}/{clientId}
|
|
876
|
+
* Java method: org.openremote.model.security.UserResource.updateUserClientRoles
|
|
877
|
+
*/
|
|
878
|
+
updateUserClientRoles(realm: string, userId: string, clientId: string, roles: string[], options?: O): RestResponse<void>;
|
|
879
|
+
/**
|
|
880
|
+
* HTTP GET /user/{realm}/userSessions/{userId}
|
|
881
|
+
* Java method: org.openremote.model.security.UserResource.getUserSessions
|
|
882
|
+
*/
|
|
883
|
+
getUserSessions(realm: string, userId: string, options?: O): RestResponse<Model.UserSession[]>;
|
|
884
|
+
/**
|
|
885
|
+
* HTTP POST /user/{realm}/users
|
|
886
|
+
* Java method: org.openremote.model.security.UserResource.create
|
|
887
|
+
*/
|
|
888
|
+
create(realm: string, user: Model.User, options?: O): RestResponse<Model.User>;
|
|
889
|
+
/**
|
|
890
|
+
* HTTP PUT /user/{realm}/users
|
|
891
|
+
* Java method: org.openremote.model.security.UserResource.update
|
|
892
|
+
*/
|
|
893
|
+
update(realm: string, user: Model.User, options?: O): RestResponse<Model.User>;
|
|
894
|
+
/**
|
|
895
|
+
* HTTP DELETE /user/{realm}/users/{userId}
|
|
896
|
+
* Java method: org.openremote.model.security.UserResource.delete
|
|
897
|
+
*/
|
|
898
|
+
delete(realm: string, userId: string, options?: O): RestResponse<void>;
|
|
899
|
+
/**
|
|
900
|
+
* HTTP GET /user/{realm}/{clientId}/roles
|
|
901
|
+
* Java method: org.openremote.model.security.UserResource.getClientRoles
|
|
902
|
+
*/
|
|
903
|
+
getClientRoles(realm: string, clientId: string, options?: O): RestResponse<Model.Role[]>;
|
|
904
|
+
/**
|
|
905
|
+
* HTTP PUT /user/{realm}/{clientId}/roles
|
|
906
|
+
* Java method: org.openremote.model.security.UserResource.updateClientRoles
|
|
907
|
+
*/
|
|
908
|
+
updateClientRoles(realm: string, clientId: string, roles: Model.Role[], options?: O): RestResponse<void>;
|
|
909
|
+
/**
|
|
910
|
+
* HTTP GET /user/{realm}/{userId}
|
|
911
|
+
* Java method: org.openremote.model.security.UserResource.get
|
|
912
|
+
*/
|
|
913
|
+
get(realm: string, userId: string, options?: O): RestResponse<Model.User>;
|
|
914
|
+
}
|
|
915
|
+
export declare class AssetPredictedDatapointResourceClient<O> {
|
|
916
|
+
protected httpClient: HttpClient<O>;
|
|
917
|
+
constructor(httpClient: HttpClient<O>);
|
|
918
|
+
/**
|
|
919
|
+
* HTTP POST /asset/predicted/{assetId}/{attributeName}
|
|
920
|
+
* Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.getPredictedDatapoints
|
|
921
|
+
*/
|
|
922
|
+
getPredictedDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
|
|
923
|
+
/**
|
|
924
|
+
* HTTP PUT /asset/predicted/{assetId}/{attributeName}
|
|
925
|
+
* Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.writePredictedDatapoints
|
|
926
|
+
*/
|
|
927
|
+
writePredictedDatapoints(assetId: string, attributeName: string, predictedDatapoints: Model.ValueDatapoint<any>[], options?: O): RestResponse<void>;
|
|
928
|
+
}
|
|
929
|
+
export declare class RealmResourceClient<O> {
|
|
930
|
+
protected httpClient: HttpClient<O>;
|
|
931
|
+
constructor(httpClient: HttpClient<O>);
|
|
932
|
+
/**
|
|
933
|
+
* HTTP POST /realm
|
|
934
|
+
* Java method: org.openremote.model.security.RealmResource.create
|
|
935
|
+
*/
|
|
936
|
+
create(realm: Model.Realm, options?: O): RestResponse<void>;
|
|
937
|
+
/**
|
|
938
|
+
* HTTP GET /realm
|
|
939
|
+
* Java method: org.openremote.model.security.RealmResource.getAll
|
|
940
|
+
*/
|
|
941
|
+
getAll(options?: O): RestResponse<Model.Realm[]>;
|
|
942
|
+
/**
|
|
943
|
+
* HTTP GET /realm/accessible
|
|
944
|
+
* Java method: org.openremote.model.security.RealmResource.getAccessible
|
|
945
|
+
*/
|
|
946
|
+
getAccessible(options?: O): RestResponse<Model.Realm[]>;
|
|
947
|
+
/**
|
|
948
|
+
* HTTP DELETE /realm/{name}
|
|
949
|
+
* Java method: org.openremote.model.security.RealmResource.delete
|
|
950
|
+
*/
|
|
951
|
+
delete(name: string, options?: O): RestResponse<void>;
|
|
952
|
+
/**
|
|
953
|
+
* HTTP GET /realm/{name}
|
|
954
|
+
* Java method: org.openremote.model.security.RealmResource.get
|
|
955
|
+
*/
|
|
956
|
+
get(name: string, options?: O): RestResponse<Model.Realm>;
|
|
957
|
+
/**
|
|
958
|
+
* HTTP PUT /realm/{name}
|
|
959
|
+
* Java method: org.openremote.model.security.RealmResource.update
|
|
960
|
+
*/
|
|
961
|
+
update(name: string, realm: Model.Realm, options?: O): RestResponse<void>;
|
|
962
|
+
}
|
|
963
|
+
export declare class ConsoleResourceClient<O> {
|
|
964
|
+
protected httpClient: HttpClient<O>;
|
|
965
|
+
constructor(httpClient: HttpClient<O>);
|
|
966
|
+
/**
|
|
967
|
+
* HTTP POST /console/register
|
|
968
|
+
* Java method: org.openremote.model.console.ConsoleResource.register
|
|
969
|
+
*/
|
|
970
|
+
register(consoleRegistration: Model.ConsoleRegistration, options?: O): RestResponse<Model.ConsoleRegistration>;
|
|
971
|
+
}
|
|
972
|
+
export type RestResponse<R> = Promise<Axios.GenericAxiosResponse<R>>;
|
|
973
|
+
export declare class ApiClient {
|
|
974
|
+
protected _syslogResource: AxiosSyslogResourceClient;
|
|
975
|
+
protected _flowResource: AxiosFlowResourceClient;
|
|
994
976
|
protected _agentResource: AxiosAgentResourceClient;
|
|
977
|
+
protected _mapResource: AxiosMapResourceClient;
|
|
978
|
+
protected _configurationResource: AxiosConfigurationResourceClient;
|
|
979
|
+
protected _rulesResource: AxiosRulesResourceClient;
|
|
980
|
+
protected _notificationResource: AxiosNotificationResourceClient;
|
|
981
|
+
protected _gatewayServiceResource: AxiosGatewayServiceResourceClient;
|
|
982
|
+
protected _assetResource: AxiosAssetResourceClient;
|
|
983
|
+
protected _provisioningResource: AxiosProvisioningResourceClient;
|
|
984
|
+
protected _gatewayClientResource: AxiosGatewayClientResourceClient;
|
|
985
|
+
protected _assetDatapointResource: AxiosAssetDatapointResourceClient;
|
|
986
|
+
protected _dashboardResource: AxiosDashboardResourceClient;
|
|
987
|
+
protected _assetModelResource: AxiosAssetModelResourceClient;
|
|
988
|
+
protected _externalServiceResource: AxiosExternalServiceResourceClient;
|
|
989
|
+
protected _appResource: AxiosAppResourceClient;
|
|
990
|
+
protected _alarmResource: AxiosAlarmResourceClient;
|
|
991
|
+
protected _statusResource: AxiosStatusResourceClient;
|
|
992
|
+
protected _userResource: AxiosUserResourceClient;
|
|
993
|
+
protected _assetPredictedDatapointResource: AxiosAssetPredictedDatapointResourceClient;
|
|
994
|
+
protected _realmResource: AxiosRealmResourceClient;
|
|
995
995
|
protected _consoleResource: AxiosConsoleResourceClient;
|
|
996
996
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
997
997
|
get SyslogResource(): AxiosSyslogResourceClient;
|
|
998
|
+
get FlowResource(): AxiosFlowResourceClient;
|
|
999
|
+
get AgentResource(): AxiosAgentResourceClient;
|
|
998
1000
|
get MapResource(): AxiosMapResourceClient;
|
|
999
|
-
get StatusResource(): AxiosStatusResourceClient;
|
|
1000
1001
|
get ConfigurationResource(): AxiosConfigurationResourceClient;
|
|
1001
|
-
get GatewayClientResource(): AxiosGatewayClientResourceClient;
|
|
1002
|
-
get AssetPredictedDatapointResource(): AxiosAssetPredictedDatapointResourceClient;
|
|
1003
|
-
get AlarmResource(): AxiosAlarmResourceClient;
|
|
1004
1002
|
get RulesResource(): AxiosRulesResourceClient;
|
|
1005
1003
|
get NotificationResource(): AxiosNotificationResourceClient;
|
|
1006
|
-
get AssetResource(): AxiosAssetResourceClient;
|
|
1007
|
-
get FlowResource(): AxiosFlowResourceClient;
|
|
1008
1004
|
get GatewayServiceResource(): AxiosGatewayServiceResourceClient;
|
|
1009
|
-
get
|
|
1005
|
+
get AssetResource(): AxiosAssetResourceClient;
|
|
1010
1006
|
get ProvisioningResource(): AxiosProvisioningResourceClient;
|
|
1007
|
+
get GatewayClientResource(): AxiosGatewayClientResourceClient;
|
|
1011
1008
|
get AssetDatapointResource(): AxiosAssetDatapointResourceClient;
|
|
1012
|
-
get AppResource(): AxiosAppResourceClient;
|
|
1013
1009
|
get DashboardResource(): AxiosDashboardResourceClient;
|
|
1014
1010
|
get AssetModelResource(): AxiosAssetModelResourceClient;
|
|
1015
|
-
get RealmResource(): AxiosRealmResourceClient;
|
|
1016
1011
|
get ExternalServiceResource(): AxiosExternalServiceResourceClient;
|
|
1017
|
-
get
|
|
1012
|
+
get AppResource(): AxiosAppResourceClient;
|
|
1013
|
+
get AlarmResource(): AxiosAlarmResourceClient;
|
|
1014
|
+
get StatusResource(): AxiosStatusResourceClient;
|
|
1015
|
+
get UserResource(): AxiosUserResourceClient;
|
|
1016
|
+
get AssetPredictedDatapointResource(): AxiosAssetPredictedDatapointResourceClient;
|
|
1017
|
+
get RealmResource(): AxiosRealmResourceClient;
|
|
1018
1018
|
get ConsoleResource(): AxiosConsoleResourceClient;
|
|
1019
1019
|
}
|
|
1020
1020
|
import * as Axios from "axios";
|
|
@@ -1026,64 +1026,64 @@ declare module "axios" {
|
|
|
1026
1026
|
export declare class AxiosSyslogResourceClient extends SyslogResourceClient<Axios.AxiosRequestConfig> {
|
|
1027
1027
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1028
1028
|
}
|
|
1029
|
-
export declare class
|
|
1029
|
+
export declare class AxiosFlowResourceClient extends FlowResourceClient<Axios.AxiosRequestConfig> {
|
|
1030
1030
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1031
1031
|
}
|
|
1032
|
-
export declare class
|
|
1032
|
+
export declare class AxiosAgentResourceClient extends AgentResourceClient<Axios.AxiosRequestConfig> {
|
|
1033
1033
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1034
1034
|
}
|
|
1035
|
-
export declare class
|
|
1035
|
+
export declare class AxiosMapResourceClient extends MapResourceClient<Axios.AxiosRequestConfig> {
|
|
1036
1036
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1037
1037
|
}
|
|
1038
|
-
export declare class
|
|
1038
|
+
export declare class AxiosConfigurationResourceClient extends ConfigurationResourceClient<Axios.AxiosRequestConfig> {
|
|
1039
1039
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1040
1040
|
}
|
|
1041
|
-
export declare class
|
|
1041
|
+
export declare class AxiosRulesResourceClient extends RulesResourceClient<Axios.AxiosRequestConfig> {
|
|
1042
1042
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1043
1043
|
}
|
|
1044
|
-
export declare class
|
|
1044
|
+
export declare class AxiosNotificationResourceClient extends NotificationResourceClient<Axios.AxiosRequestConfig> {
|
|
1045
1045
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1046
1046
|
}
|
|
1047
|
-
export declare class
|
|
1047
|
+
export declare class AxiosGatewayServiceResourceClient extends GatewayServiceResourceClient<Axios.AxiosRequestConfig> {
|
|
1048
1048
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1049
1049
|
}
|
|
1050
|
-
export declare class
|
|
1050
|
+
export declare class AxiosAssetResourceClient extends AssetResourceClient<Axios.AxiosRequestConfig> {
|
|
1051
1051
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1052
1052
|
}
|
|
1053
|
-
export declare class
|
|
1053
|
+
export declare class AxiosProvisioningResourceClient extends ProvisioningResourceClient<Axios.AxiosRequestConfig> {
|
|
1054
1054
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1055
1055
|
}
|
|
1056
|
-
export declare class
|
|
1056
|
+
export declare class AxiosGatewayClientResourceClient extends GatewayClientResourceClient<Axios.AxiosRequestConfig> {
|
|
1057
1057
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1058
1058
|
}
|
|
1059
|
-
export declare class
|
|
1059
|
+
export declare class AxiosAssetDatapointResourceClient extends AssetDatapointResourceClient<Axios.AxiosRequestConfig> {
|
|
1060
1060
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1061
1061
|
}
|
|
1062
|
-
export declare class
|
|
1062
|
+
export declare class AxiosDashboardResourceClient extends DashboardResourceClient<Axios.AxiosRequestConfig> {
|
|
1063
1063
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1064
1064
|
}
|
|
1065
|
-
export declare class
|
|
1065
|
+
export declare class AxiosAssetModelResourceClient extends AssetModelResourceClient<Axios.AxiosRequestConfig> {
|
|
1066
1066
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1067
1067
|
}
|
|
1068
|
-
export declare class
|
|
1068
|
+
export declare class AxiosExternalServiceResourceClient extends ExternalServiceResourceClient<Axios.AxiosRequestConfig> {
|
|
1069
1069
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1070
1070
|
}
|
|
1071
1071
|
export declare class AxiosAppResourceClient extends AppResourceClient<Axios.AxiosRequestConfig> {
|
|
1072
1072
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1073
1073
|
}
|
|
1074
|
-
export declare class
|
|
1074
|
+
export declare class AxiosAlarmResourceClient extends AlarmResourceClient<Axios.AxiosRequestConfig> {
|
|
1075
1075
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1076
1076
|
}
|
|
1077
|
-
export declare class
|
|
1077
|
+
export declare class AxiosStatusResourceClient extends StatusResourceClient<Axios.AxiosRequestConfig> {
|
|
1078
1078
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1079
1079
|
}
|
|
1080
|
-
export declare class
|
|
1080
|
+
export declare class AxiosUserResourceClient extends UserResourceClient<Axios.AxiosRequestConfig> {
|
|
1081
1081
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1082
1082
|
}
|
|
1083
|
-
export declare class
|
|
1083
|
+
export declare class AxiosAssetPredictedDatapointResourceClient extends AssetPredictedDatapointResourceClient<Axios.AxiosRequestConfig> {
|
|
1084
1084
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1085
1085
|
}
|
|
1086
|
-
export declare class
|
|
1086
|
+
export declare class AxiosRealmResourceClient extends RealmResourceClient<Axios.AxiosRequestConfig> {
|
|
1087
1087
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1088
1088
|
}
|
|
1089
1089
|
export declare class AxiosConsoleResourceClient extends ConsoleResourceClient<Axios.AxiosRequestConfig> {
|