@openremote/rest 1.3.0-snapshot.20250124120257 → 1.3.0-snapshot.20250128141336
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 +457 -457
- 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,130 +9,49 @@ export interface HttpClient<O> {
|
|
|
9
9
|
options?: O;
|
|
10
10
|
}): RestResponse<R>;
|
|
11
11
|
}
|
|
12
|
-
export declare class
|
|
13
|
-
protected httpClient: HttpClient<O>;
|
|
14
|
-
constructor(httpClient: HttpClient<O>);
|
|
15
|
-
/**
|
|
16
|
-
* HTTP GET /flow
|
|
17
|
-
* Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitions
|
|
18
|
-
*/
|
|
19
|
-
getAllNodeDefinitions(options?: O): RestResponse<Model.Node[]>;
|
|
20
|
-
/**
|
|
21
|
-
* HTTP GET /flow/{name}
|
|
22
|
-
* Java method: org.openremote.model.rules.flow.FlowResource.getNodeDefinition
|
|
23
|
-
*/
|
|
24
|
-
getNodeDefinition(name: any, options?: O): RestResponse<Model.Node>;
|
|
25
|
-
/**
|
|
26
|
-
* HTTP GET /flow/{type}
|
|
27
|
-
* Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitionsByType
|
|
28
|
-
*/
|
|
29
|
-
getAllNodeDefinitionsByType(type: Model.NodeType, options?: O): RestResponse<Model.Node[]>;
|
|
30
|
-
}
|
|
31
|
-
export declare class RealmResourceClient<O> {
|
|
32
|
-
protected httpClient: HttpClient<O>;
|
|
33
|
-
constructor(httpClient: HttpClient<O>);
|
|
34
|
-
/**
|
|
35
|
-
* HTTP POST /realm
|
|
36
|
-
* Java method: org.openremote.model.security.RealmResource.create
|
|
37
|
-
*/
|
|
38
|
-
create(realm: Model.Realm, options?: O): RestResponse<void>;
|
|
39
|
-
/**
|
|
40
|
-
* HTTP GET /realm
|
|
41
|
-
* Java method: org.openremote.model.security.RealmResource.getAll
|
|
42
|
-
*/
|
|
43
|
-
getAll(options?: O): RestResponse<Model.Realm[]>;
|
|
44
|
-
/**
|
|
45
|
-
* HTTP GET /realm/accessible
|
|
46
|
-
* Java method: org.openremote.model.security.RealmResource.getAccessible
|
|
47
|
-
*/
|
|
48
|
-
getAccessible(options?: O): RestResponse<Model.Realm[]>;
|
|
49
|
-
/**
|
|
50
|
-
* HTTP DELETE /realm/{name}
|
|
51
|
-
* Java method: org.openremote.model.security.RealmResource.delete
|
|
52
|
-
*/
|
|
53
|
-
delete(name: any, options?: O): RestResponse<void>;
|
|
54
|
-
/**
|
|
55
|
-
* HTTP GET /realm/{name}
|
|
56
|
-
* Java method: org.openremote.model.security.RealmResource.get
|
|
57
|
-
*/
|
|
58
|
-
get(name: any, options?: O): RestResponse<Model.Realm>;
|
|
59
|
-
/**
|
|
60
|
-
* HTTP PUT /realm/{name}
|
|
61
|
-
* Java method: org.openremote.model.security.RealmResource.update
|
|
62
|
-
*/
|
|
63
|
-
update(name: any, realm: Model.Realm, options?: O): RestResponse<void>;
|
|
64
|
-
}
|
|
65
|
-
export declare class ProvisioningResourceClient<O> {
|
|
66
|
-
protected httpClient: HttpClient<O>;
|
|
67
|
-
constructor(httpClient: HttpClient<O>);
|
|
68
|
-
/**
|
|
69
|
-
* HTTP POST /provisioning
|
|
70
|
-
* Java method: org.openremote.model.provisioning.ProvisioningResource.createProvisioningConfig
|
|
71
|
-
*/
|
|
72
|
-
createProvisioningConfig(provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<number>;
|
|
73
|
-
/**
|
|
74
|
-
* HTTP GET /provisioning
|
|
75
|
-
* Java method: org.openremote.model.provisioning.ProvisioningResource.getProvisioningConfigs
|
|
76
|
-
*/
|
|
77
|
-
getProvisioningConfigs(options?: O): RestResponse<Model.ProvisioningConfigUnion<any, any>[]>;
|
|
78
|
-
/**
|
|
79
|
-
* HTTP DELETE /provisioning/{id}
|
|
80
|
-
* Java method: org.openremote.model.provisioning.ProvisioningResource.deleteProvisioningConfig
|
|
81
|
-
*/
|
|
82
|
-
deleteProvisioningConfig(id: any, options?: O): RestResponse<void>;
|
|
83
|
-
/**
|
|
84
|
-
* HTTP PUT /provisioning/{id}
|
|
85
|
-
* Java method: org.openremote.model.provisioning.ProvisioningResource.updateProvisioningConfig
|
|
86
|
-
*/
|
|
87
|
-
updateProvisioningConfig(id: any, provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<void>;
|
|
88
|
-
}
|
|
89
|
-
export declare class GatewayServiceResourceClient<O> {
|
|
12
|
+
export declare class StatusResourceClient<O> {
|
|
90
13
|
protected httpClient: HttpClient<O>;
|
|
91
14
|
constructor(httpClient: HttpClient<O>);
|
|
92
15
|
/**
|
|
93
|
-
* HTTP
|
|
94
|
-
* Java method: org.openremote.model.
|
|
95
|
-
*/
|
|
96
|
-
startTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<Model.GatewayTunnelInfo>;
|
|
97
|
-
/**
|
|
98
|
-
* HTTP DELETE /gateway/tunnel
|
|
99
|
-
* Java method: org.openremote.model.gateway.GatewayServiceResource.stopTunnel
|
|
100
|
-
*/
|
|
101
|
-
stopTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<void>;
|
|
102
|
-
/**
|
|
103
|
-
* HTTP GET /gateway/tunnel/{realm}
|
|
104
|
-
* Java method: org.openremote.model.gateway.GatewayServiceResource.getAllActiveTunnelInfos
|
|
105
|
-
*/
|
|
106
|
-
getAllActiveTunnelInfos(realm: any, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
|
|
107
|
-
/**
|
|
108
|
-
* HTTP GET /gateway/tunnel/{realm}/{id}
|
|
109
|
-
* Java method: org.openremote.model.gateway.GatewayServiceResource.getGatewayActiveTunnelInfos
|
|
16
|
+
* HTTP GET /health
|
|
17
|
+
* Java method: org.openremote.model.system.StatusResource.getHealthStatus
|
|
110
18
|
*/
|
|
111
|
-
|
|
19
|
+
getHealthStatus(options?: O): RestResponse<{
|
|
20
|
+
[index: string]: any;
|
|
21
|
+
}>;
|
|
112
22
|
/**
|
|
113
|
-
* HTTP GET /
|
|
114
|
-
* Java method: org.openremote.model.
|
|
23
|
+
* HTTP GET /info
|
|
24
|
+
* Java method: org.openremote.model.system.StatusResource.getInfo
|
|
115
25
|
*/
|
|
116
|
-
|
|
26
|
+
getInfo(options?: O): RestResponse<{
|
|
27
|
+
[index: string]: any;
|
|
28
|
+
}>;
|
|
117
29
|
}
|
|
118
|
-
export declare class
|
|
30
|
+
export declare class AgentResourceClient<O> {
|
|
119
31
|
protected httpClient: HttpClient<O>;
|
|
120
32
|
constructor(httpClient: HttpClient<O>);
|
|
121
33
|
/**
|
|
122
|
-
* HTTP GET /
|
|
123
|
-
* Java method: org.openremote.model.
|
|
34
|
+
* HTTP GET /agent/assetDiscovery/{agentId}
|
|
35
|
+
* Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetDiscovery
|
|
124
36
|
*/
|
|
125
|
-
|
|
37
|
+
doProtocolAssetDiscovery(agentId: any, queryParams?: {
|
|
38
|
+
realm?: any;
|
|
39
|
+
}, options?: O): RestResponse<Model.AssetTreeNode[]>;
|
|
126
40
|
/**
|
|
127
|
-
* HTTP
|
|
128
|
-
* Java method: org.openremote.model.
|
|
41
|
+
* HTTP POST /agent/assetImport/{agentId}
|
|
42
|
+
* Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetImport
|
|
129
43
|
*/
|
|
130
|
-
|
|
44
|
+
doProtocolAssetImport(agentId: any, fileInfo: Model.FileInfo, queryParams?: {
|
|
45
|
+
realm?: any;
|
|
46
|
+
}, options?: O): RestResponse<Model.AssetTreeNode[]>;
|
|
131
47
|
/**
|
|
132
|
-
* HTTP GET /
|
|
133
|
-
* Java method: org.openremote.model.
|
|
48
|
+
* HTTP GET /agent/instanceDiscovery/{agentType}
|
|
49
|
+
* Java method: org.openremote.model.asset.agent.AgentResource.doProtocolInstanceDiscovery
|
|
134
50
|
*/
|
|
135
|
-
|
|
51
|
+
doProtocolInstanceDiscovery(agentType: any, queryParams?: {
|
|
52
|
+
parentId?: any;
|
|
53
|
+
realm?: any;
|
|
54
|
+
}, options?: O): RestResponse<Model.Agent[]>;
|
|
136
55
|
}
|
|
137
56
|
export declare class GatewayClientResourceClient<O> {
|
|
138
57
|
protected httpClient: HttpClient<O>;
|
|
@@ -170,6 +89,60 @@ export declare class GatewayClientResourceClient<O> {
|
|
|
170
89
|
*/
|
|
171
90
|
getConnectionStatus(realm: any, options?: O): RestResponse<Model.ConnectionStatus>;
|
|
172
91
|
}
|
|
92
|
+
export declare class NotificationResourceClient<O> {
|
|
93
|
+
protected httpClient: HttpClient<O>;
|
|
94
|
+
constructor(httpClient: HttpClient<O>);
|
|
95
|
+
/**
|
|
96
|
+
* HTTP GET /notification
|
|
97
|
+
* Java method: org.openremote.model.notification.NotificationResource.getNotifications
|
|
98
|
+
*/
|
|
99
|
+
getNotifications(queryParams?: {
|
|
100
|
+
id?: any;
|
|
101
|
+
type?: any;
|
|
102
|
+
from?: any;
|
|
103
|
+
to?: any;
|
|
104
|
+
realmId?: any;
|
|
105
|
+
userId?: any;
|
|
106
|
+
assetId?: any;
|
|
107
|
+
}, options?: O): RestResponse<Model.SentNotification[]>;
|
|
108
|
+
/**
|
|
109
|
+
* HTTP DELETE /notification
|
|
110
|
+
* Java method: org.openremote.model.notification.NotificationResource.removeNotifications
|
|
111
|
+
*/
|
|
112
|
+
removeNotifications(queryParams?: {
|
|
113
|
+
id?: any;
|
|
114
|
+
type?: any;
|
|
115
|
+
from?: any;
|
|
116
|
+
to?: any;
|
|
117
|
+
realmId?: any;
|
|
118
|
+
userId?: any;
|
|
119
|
+
assetId?: any;
|
|
120
|
+
}, options?: O): RestResponse<void>;
|
|
121
|
+
/**
|
|
122
|
+
* HTTP POST /notification/alert
|
|
123
|
+
* Java method: org.openremote.model.notification.NotificationResource.sendNotification
|
|
124
|
+
*/
|
|
125
|
+
sendNotification(notification: Model.Notification, options?: O): RestResponse<void>;
|
|
126
|
+
/**
|
|
127
|
+
* HTTP DELETE /notification/{notificationId}
|
|
128
|
+
* Java method: org.openremote.model.notification.NotificationResource.removeNotification
|
|
129
|
+
*/
|
|
130
|
+
removeNotification(notificationId: any, options?: O): RestResponse<void>;
|
|
131
|
+
/**
|
|
132
|
+
* HTTP PUT /notification/{notificationId}/acknowledged
|
|
133
|
+
* Java method: org.openremote.model.notification.NotificationResource.notificationAcknowledged
|
|
134
|
+
*/
|
|
135
|
+
notificationAcknowledged(notificationId: any, acknowledgement: any, queryParams?: {
|
|
136
|
+
targetId?: any;
|
|
137
|
+
}, options?: O): RestResponse<void>;
|
|
138
|
+
/**
|
|
139
|
+
* HTTP PUT /notification/{notificationId}/delivered
|
|
140
|
+
* Java method: org.openremote.model.notification.NotificationResource.notificationDelivered
|
|
141
|
+
*/
|
|
142
|
+
notificationDelivered(notificationId: any, queryParams?: {
|
|
143
|
+
targetId?: any;
|
|
144
|
+
}, options?: O): RestResponse<void>;
|
|
145
|
+
}
|
|
173
146
|
export declare class AssetDatapointResourceClient<O> {
|
|
174
147
|
protected httpClient: HttpClient<O>;
|
|
175
148
|
constructor(httpClient: HttpClient<O>);
|
|
@@ -196,39 +169,79 @@ export declare class AssetDatapointResourceClient<O> {
|
|
|
196
169
|
*/
|
|
197
170
|
getDatapoints(assetId: any, attributeName: any, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
|
|
198
171
|
}
|
|
199
|
-
export declare class
|
|
172
|
+
export declare class RealmResourceClient<O> {
|
|
200
173
|
protected httpClient: HttpClient<O>;
|
|
201
174
|
constructor(httpClient: HttpClient<O>);
|
|
202
175
|
/**
|
|
203
|
-
* HTTP POST /
|
|
204
|
-
* Java method: org.openremote.model.
|
|
176
|
+
* HTTP POST /realm
|
|
177
|
+
* Java method: org.openremote.model.security.RealmResource.create
|
|
205
178
|
*/
|
|
206
|
-
create(
|
|
179
|
+
create(realm: Model.Realm, options?: O): RestResponse<void>;
|
|
207
180
|
/**
|
|
208
|
-
* HTTP
|
|
209
|
-
* Java method: org.openremote.model.
|
|
181
|
+
* HTTP GET /realm
|
|
182
|
+
* Java method: org.openremote.model.security.RealmResource.getAll
|
|
210
183
|
*/
|
|
211
|
-
|
|
184
|
+
getAll(options?: O): RestResponse<Model.Realm[]>;
|
|
212
185
|
/**
|
|
213
|
-
* HTTP GET /
|
|
214
|
-
* Java method: org.openremote.model.
|
|
186
|
+
* HTTP GET /realm/accessible
|
|
187
|
+
* Java method: org.openremote.model.security.RealmResource.getAccessible
|
|
215
188
|
*/
|
|
216
|
-
|
|
189
|
+
getAccessible(options?: O): RestResponse<Model.Realm[]>;
|
|
217
190
|
/**
|
|
218
|
-
* HTTP
|
|
219
|
-
* Java method: org.openremote.model.
|
|
191
|
+
* HTTP DELETE /realm/{name}
|
|
192
|
+
* Java method: org.openremote.model.security.RealmResource.delete
|
|
220
193
|
*/
|
|
221
|
-
|
|
194
|
+
delete(name: any, options?: O): RestResponse<void>;
|
|
222
195
|
/**
|
|
223
|
-
* HTTP
|
|
224
|
-
* Java method: org.openremote.model.
|
|
196
|
+
* HTTP GET /realm/{name}
|
|
197
|
+
* Java method: org.openremote.model.security.RealmResource.get
|
|
225
198
|
*/
|
|
226
|
-
|
|
199
|
+
get(name: any, options?: O): RestResponse<Model.Realm>;
|
|
227
200
|
/**
|
|
228
|
-
* HTTP
|
|
229
|
-
* Java method: org.openremote.model.
|
|
201
|
+
* HTTP PUT /realm/{name}
|
|
202
|
+
* Java method: org.openremote.model.security.RealmResource.update
|
|
230
203
|
*/
|
|
231
|
-
|
|
204
|
+
update(name: any, realm: Model.Realm, options?: O): RestResponse<void>;
|
|
205
|
+
}
|
|
206
|
+
export declare class ConfigurationResourceClient<O> {
|
|
207
|
+
protected httpClient: HttpClient<O>;
|
|
208
|
+
constructor(httpClient: HttpClient<O>);
|
|
209
|
+
/**
|
|
210
|
+
* HTTP GET /configuration/manager
|
|
211
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfig
|
|
212
|
+
*/
|
|
213
|
+
getManagerConfig(options?: O): RestResponse<Model.ManagerAppConfig>;
|
|
214
|
+
/**
|
|
215
|
+
* HTTP PUT /configuration/manager
|
|
216
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.update
|
|
217
|
+
*/
|
|
218
|
+
update(managerConfiguration: Model.ManagerAppConfig, options?: O): RestResponse<Model.ManagerAppConfig>;
|
|
219
|
+
/**
|
|
220
|
+
* HTTP POST /configuration/manager/file
|
|
221
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.fileUpload
|
|
222
|
+
*/
|
|
223
|
+
fileUpload(fileInfo: Model.FileInfo, queryParams?: {
|
|
224
|
+
path?: any;
|
|
225
|
+
}, options?: O): RestResponse<any>;
|
|
226
|
+
/**
|
|
227
|
+
* HTTP GET /configuration/manager/image/{filename: .+}
|
|
228
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfigImage
|
|
229
|
+
*/
|
|
230
|
+
getManagerConfigImage(filename: any, options?: O): RestResponse<any>;
|
|
231
|
+
}
|
|
232
|
+
export declare class AssetPredictedDatapointResourceClient<O> {
|
|
233
|
+
protected httpClient: HttpClient<O>;
|
|
234
|
+
constructor(httpClient: HttpClient<O>);
|
|
235
|
+
/**
|
|
236
|
+
* HTTP POST /asset/predicted/{assetId}/{attributeName}
|
|
237
|
+
* Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.getPredictedDatapoints
|
|
238
|
+
*/
|
|
239
|
+
getPredictedDatapoints(assetId: any, attributeName: any, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
|
|
240
|
+
/**
|
|
241
|
+
* HTTP PUT /asset/predicted/{assetId}/{attributeName}
|
|
242
|
+
* Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.writePredictedDatapoints
|
|
243
|
+
*/
|
|
244
|
+
writePredictedDatapoints(assetId: any, attributeName: any, predictedDatapoints: Model.ValueDatapoint<any>[], options?: O): RestResponse<void>;
|
|
232
245
|
}
|
|
233
246
|
export declare class AssetResourceClient<O> {
|
|
234
247
|
protected httpClient: HttpClient<O>;
|
|
@@ -334,144 +347,129 @@ export declare class AssetResourceClient<O> {
|
|
|
334
347
|
assetIds?: any[];
|
|
335
348
|
}, options?: O): RestResponse<void>;
|
|
336
349
|
}
|
|
337
|
-
export declare class
|
|
350
|
+
export declare class UserResourceClient<O> {
|
|
338
351
|
protected httpClient: HttpClient<O>;
|
|
339
352
|
constructor(httpClient: HttpClient<O>);
|
|
340
353
|
/**
|
|
341
|
-
* HTTP
|
|
342
|
-
* Java method: org.openremote.model.
|
|
354
|
+
* HTTP PUT /user/locale
|
|
355
|
+
* Java method: org.openremote.model.security.UserResource.updateCurrentUserLocale
|
|
343
356
|
*/
|
|
344
|
-
|
|
345
|
-
}
|
|
346
|
-
export declare class AgentResourceClient<O> {
|
|
347
|
-
protected httpClient: HttpClient<O>;
|
|
348
|
-
constructor(httpClient: HttpClient<O>);
|
|
357
|
+
updateCurrentUserLocale(locale: any, options?: O): RestResponse<void>;
|
|
349
358
|
/**
|
|
350
|
-
* HTTP
|
|
351
|
-
* Java method: org.openremote.model.
|
|
359
|
+
* HTTP POST /user/query
|
|
360
|
+
* Java method: org.openremote.model.security.UserResource.query
|
|
352
361
|
*/
|
|
353
|
-
|
|
354
|
-
realm?: any;
|
|
355
|
-
}, options?: O): RestResponse<Model.AssetTreeNode[]>;
|
|
362
|
+
query(query: Model.UserQuery, options?: O): RestResponse<Model.User[]>;
|
|
356
363
|
/**
|
|
357
|
-
* HTTP
|
|
358
|
-
* Java method: org.openremote.model.
|
|
364
|
+
* HTTP GET /user/user
|
|
365
|
+
* Java method: org.openremote.model.security.UserResource.getCurrent
|
|
359
366
|
*/
|
|
360
|
-
|
|
361
|
-
realm?: any;
|
|
362
|
-
}, options?: O): RestResponse<Model.AssetTreeNode[]>;
|
|
367
|
+
getCurrent(options?: O): RestResponse<Model.User>;
|
|
363
368
|
/**
|
|
364
|
-
* HTTP GET /
|
|
365
|
-
* Java method: org.openremote.model.
|
|
369
|
+
* HTTP GET /user/userRealmRoles
|
|
370
|
+
* Java method: org.openremote.model.security.UserResource.getCurrentUserRealmRoles
|
|
366
371
|
*/
|
|
367
|
-
|
|
368
|
-
parentId?: any;
|
|
369
|
-
realm?: any;
|
|
370
|
-
}, options?: O): RestResponse<Model.Agent[]>;
|
|
371
|
-
}
|
|
372
|
-
export declare class StatusResourceClient<O> {
|
|
373
|
-
protected httpClient: HttpClient<O>;
|
|
374
|
-
constructor(httpClient: HttpClient<O>);
|
|
372
|
+
getCurrentUserRealmRoles(options?: O): RestResponse<Model.Role[]>;
|
|
375
373
|
/**
|
|
376
|
-
* HTTP GET /
|
|
377
|
-
* Java method: org.openremote.model.
|
|
374
|
+
* HTTP GET /user/userRoles
|
|
375
|
+
* Java method: org.openremote.model.security.UserResource.getCurrentUserRoles
|
|
378
376
|
*/
|
|
379
|
-
|
|
380
|
-
[index: string]: any;
|
|
381
|
-
}>;
|
|
377
|
+
getCurrentUserRoles(options?: O): RestResponse<Model.Role[]>;
|
|
382
378
|
/**
|
|
383
|
-
* HTTP GET /
|
|
384
|
-
* Java method: org.openremote.model.
|
|
379
|
+
* HTTP GET /user/userRoles/{clientId}
|
|
380
|
+
* Java method: org.openremote.model.security.UserResource.getCurrentUserClientRoles
|
|
385
381
|
*/
|
|
386
|
-
|
|
387
|
-
[index: string]: any;
|
|
388
|
-
}>;
|
|
389
|
-
}
|
|
390
|
-
export declare class NotificationResourceClient<O> {
|
|
391
|
-
protected httpClient: HttpClient<O>;
|
|
392
|
-
constructor(httpClient: HttpClient<O>);
|
|
382
|
+
getCurrentUserClientRoles(clientId: any, options?: O): RestResponse<Model.Role[]>;
|
|
393
383
|
/**
|
|
394
|
-
* HTTP GET /
|
|
395
|
-
* Java method: org.openremote.model.
|
|
384
|
+
* HTTP GET /user/{realm}/disconnect/{sessionID}
|
|
385
|
+
* Java method: org.openremote.model.security.UserResource.disconnectUserSession
|
|
396
386
|
*/
|
|
397
|
-
|
|
398
|
-
id?: any;
|
|
399
|
-
type?: any;
|
|
400
|
-
from?: any;
|
|
401
|
-
to?: any;
|
|
402
|
-
realmId?: any;
|
|
403
|
-
userId?: any;
|
|
404
|
-
assetId?: any;
|
|
405
|
-
}, options?: O): RestResponse<Model.SentNotification[]>;
|
|
387
|
+
disconnectUserSession(realm: any, sessionID: any, options?: O): RestResponse<void>;
|
|
406
388
|
/**
|
|
407
|
-
* HTTP
|
|
408
|
-
* Java method: org.openremote.model.
|
|
389
|
+
* HTTP PUT /user/{realm}/reset-password/{userId}
|
|
390
|
+
* Java method: org.openremote.model.security.UserResource.resetPassword
|
|
409
391
|
*/
|
|
410
|
-
|
|
411
|
-
id?: any;
|
|
412
|
-
type?: any;
|
|
413
|
-
from?: any;
|
|
414
|
-
to?: any;
|
|
415
|
-
realmId?: any;
|
|
416
|
-
userId?: any;
|
|
417
|
-
assetId?: any;
|
|
418
|
-
}, options?: O): RestResponse<void>;
|
|
392
|
+
resetPassword(realm: any, userId: any, credential: Model.Credential, options?: O): RestResponse<void>;
|
|
419
393
|
/**
|
|
420
|
-
* HTTP
|
|
421
|
-
* Java method: org.openremote.model.
|
|
394
|
+
* HTTP GET /user/{realm}/reset-secret/{userId}
|
|
395
|
+
* Java method: org.openremote.model.security.UserResource.resetSecret
|
|
396
|
+
*/
|
|
397
|
+
resetSecret(realm: any, userId: any, options?: O): RestResponse<any>;
|
|
398
|
+
/**
|
|
399
|
+
* HTTP GET /user/{realm}/roles
|
|
400
|
+
* Java method: org.openremote.model.security.UserResource.getRoles
|
|
401
|
+
*/
|
|
402
|
+
getRoles(realm: any, options?: O): RestResponse<Model.Role[]>;
|
|
403
|
+
/**
|
|
404
|
+
* HTTP PUT /user/{realm}/roles
|
|
405
|
+
* Java method: org.openremote.model.security.UserResource.updateRoles
|
|
406
|
+
*/
|
|
407
|
+
updateRoles(realm: any, roles: Model.Role[], options?: O): RestResponse<void>;
|
|
408
|
+
/**
|
|
409
|
+
* HTTP GET /user/{realm}/userRealmRoles/{userId}
|
|
410
|
+
* Java method: org.openremote.model.security.UserResource.getUserRealmRoles
|
|
411
|
+
*/
|
|
412
|
+
getUserRealmRoles(realm: any, userId: any, options?: O): RestResponse<Model.Role[]>;
|
|
413
|
+
/**
|
|
414
|
+
* HTTP PUT /user/{realm}/userRealmRoles/{userId}
|
|
415
|
+
* Java method: org.openremote.model.security.UserResource.updateUserRealmRoles
|
|
416
|
+
*/
|
|
417
|
+
updateUserRealmRoles(realm: any, userId: any, roles: Model.Role[], options?: O): RestResponse<void>;
|
|
418
|
+
/**
|
|
419
|
+
* HTTP GET /user/{realm}/userRoles/{userId}
|
|
420
|
+
* Java method: org.openremote.model.security.UserResource.getUserRoles
|
|
421
|
+
*/
|
|
422
|
+
getUserRoles(realm: any, userId: any, options?: O): RestResponse<Model.Role[]>;
|
|
423
|
+
/**
|
|
424
|
+
* HTTP PUT /user/{realm}/userRoles/{userId}
|
|
425
|
+
* Java method: org.openremote.model.security.UserResource.updateUserRoles
|
|
426
|
+
*/
|
|
427
|
+
updateUserRoles(realm: any, userId: any, roles: Model.Role[], options?: O): RestResponse<void>;
|
|
428
|
+
/**
|
|
429
|
+
* HTTP GET /user/{realm}/userRoles/{userId}/{clientId}
|
|
430
|
+
* Java method: org.openremote.model.security.UserResource.getUserClientRoles
|
|
431
|
+
*/
|
|
432
|
+
getUserClientRoles(realm: any, userId: any, clientId: any, options?: O): RestResponse<Model.Role[]>;
|
|
433
|
+
/**
|
|
434
|
+
* HTTP PUT /user/{realm}/userRoles/{userId}/{clientId}
|
|
435
|
+
* Java method: org.openremote.model.security.UserResource.updateUserClientRoles
|
|
422
436
|
*/
|
|
423
|
-
|
|
437
|
+
updateUserClientRoles(realm: any, userId: any, clientId: any, roles: Model.Role[], options?: O): RestResponse<void>;
|
|
424
438
|
/**
|
|
425
|
-
* HTTP
|
|
426
|
-
* Java method: org.openremote.model.
|
|
439
|
+
* HTTP GET /user/{realm}/userSessions/{userId}
|
|
440
|
+
* Java method: org.openremote.model.security.UserResource.getUserSessions
|
|
427
441
|
*/
|
|
428
|
-
|
|
442
|
+
getUserSessions(realm: any, userId: any, options?: O): RestResponse<Model.UserSession[]>;
|
|
429
443
|
/**
|
|
430
|
-
* HTTP
|
|
431
|
-
* Java method: org.openremote.model.
|
|
444
|
+
* HTTP POST /user/{realm}/users
|
|
445
|
+
* Java method: org.openremote.model.security.UserResource.create
|
|
432
446
|
*/
|
|
433
|
-
|
|
434
|
-
targetId?: any;
|
|
435
|
-
}, options?: O): RestResponse<void>;
|
|
447
|
+
create(realm: any, user: Model.User, options?: O): RestResponse<Model.User>;
|
|
436
448
|
/**
|
|
437
|
-
* HTTP PUT /
|
|
438
|
-
* Java method: org.openremote.model.
|
|
449
|
+
* HTTP PUT /user/{realm}/users
|
|
450
|
+
* Java method: org.openremote.model.security.UserResource.update
|
|
439
451
|
*/
|
|
440
|
-
|
|
441
|
-
targetId?: any;
|
|
442
|
-
}, options?: O): RestResponse<void>;
|
|
443
|
-
}
|
|
444
|
-
export declare class SyslogResourceClient<O> {
|
|
445
|
-
protected httpClient: HttpClient<O>;
|
|
446
|
-
constructor(httpClient: HttpClient<O>);
|
|
452
|
+
update(realm: any, user: Model.User, options?: O): RestResponse<Model.User>;
|
|
447
453
|
/**
|
|
448
|
-
* HTTP
|
|
449
|
-
* Java method: org.openremote.model.
|
|
454
|
+
* HTTP DELETE /user/{realm}/users/{userId}
|
|
455
|
+
* Java method: org.openremote.model.security.UserResource.delete
|
|
450
456
|
*/
|
|
451
|
-
|
|
457
|
+
delete(realm: any, userId: any, options?: O): RestResponse<void>;
|
|
452
458
|
/**
|
|
453
|
-
* HTTP
|
|
454
|
-
* Java method: org.openremote.model.
|
|
459
|
+
* HTTP GET /user/{realm}/{clientId}/roles
|
|
460
|
+
* Java method: org.openremote.model.security.UserResource.getClientRoles
|
|
455
461
|
*/
|
|
456
|
-
|
|
462
|
+
getClientRoles(realm: any, clientId: any, options?: O): RestResponse<Model.Role[]>;
|
|
457
463
|
/**
|
|
458
|
-
* HTTP
|
|
459
|
-
* Java method: org.openremote.model.
|
|
464
|
+
* HTTP PUT /user/{realm}/{clientId}/roles
|
|
465
|
+
* Java method: org.openremote.model.security.UserResource.updateClientRoles
|
|
460
466
|
*/
|
|
461
|
-
|
|
467
|
+
updateClientRoles(realm: any, clientId: any, roles: Model.Role[], options?: O): RestResponse<void>;
|
|
462
468
|
/**
|
|
463
|
-
* HTTP GET /
|
|
464
|
-
* Java method: org.openremote.model.
|
|
469
|
+
* HTTP GET /user/{realm}/{userId}
|
|
470
|
+
* Java method: org.openremote.model.security.UserResource.get
|
|
465
471
|
*/
|
|
466
|
-
|
|
467
|
-
level?: Model.SyslogLevel;
|
|
468
|
-
per_page?: any;
|
|
469
|
-
page?: any;
|
|
470
|
-
from?: any;
|
|
471
|
-
to?: any;
|
|
472
|
-
category?: Model.SyslogCategory[];
|
|
473
|
-
subCategory?: any[];
|
|
474
|
-
}, options?: O): RestResponse<any>;
|
|
472
|
+
get(realm: any, userId: any, options?: O): RestResponse<Model.User>;
|
|
475
473
|
}
|
|
476
474
|
export declare class RulesResourceClient<O> {
|
|
477
475
|
protected httpClient: HttpClient<O>;
|
|
@@ -581,169 +579,184 @@ export declare class RulesResourceClient<O> {
|
|
|
581
579
|
*/
|
|
582
580
|
updateGlobalRuleset(id: any, ruleset: Model.GlobalRuleset, options?: O): RestResponse<void>;
|
|
583
581
|
}
|
|
584
|
-
export declare class
|
|
582
|
+
export declare class AlarmResourceClient<O> {
|
|
585
583
|
protected httpClient: HttpClient<O>;
|
|
586
584
|
constructor(httpClient: HttpClient<O>);
|
|
587
585
|
/**
|
|
588
|
-
* HTTP
|
|
589
|
-
* Java method: org.openremote.model.
|
|
590
|
-
*/
|
|
591
|
-
updateCurrentUserLocale(locale: any, options?: O): RestResponse<void>;
|
|
592
|
-
/**
|
|
593
|
-
* HTTP POST /user/query
|
|
594
|
-
* Java method: org.openremote.model.security.UserResource.query
|
|
595
|
-
*/
|
|
596
|
-
query(query: Model.UserQuery, options?: O): RestResponse<Model.User[]>;
|
|
597
|
-
/**
|
|
598
|
-
* HTTP GET /user/user
|
|
599
|
-
* Java method: org.openremote.model.security.UserResource.getCurrent
|
|
600
|
-
*/
|
|
601
|
-
getCurrent(options?: O): RestResponse<Model.User>;
|
|
602
|
-
/**
|
|
603
|
-
* HTTP GET /user/userRealmRoles
|
|
604
|
-
* Java method: org.openremote.model.security.UserResource.getCurrentUserRealmRoles
|
|
605
|
-
*/
|
|
606
|
-
getCurrentUserRealmRoles(options?: O): RestResponse<Model.Role[]>;
|
|
607
|
-
/**
|
|
608
|
-
* HTTP GET /user/userRoles
|
|
609
|
-
* Java method: org.openremote.model.security.UserResource.getCurrentUserRoles
|
|
586
|
+
* HTTP POST /alarm
|
|
587
|
+
* Java method: org.openremote.model.alarm.AlarmResource.createAlarm
|
|
610
588
|
*/
|
|
611
|
-
|
|
589
|
+
createAlarm(alarm: Model.Alarm, queryParams?: {
|
|
590
|
+
assetIds?: any[];
|
|
591
|
+
}, options?: O): RestResponse<Model.SentAlarm>;
|
|
612
592
|
/**
|
|
613
|
-
* HTTP GET /
|
|
614
|
-
* Java method: org.openremote.model.
|
|
593
|
+
* HTTP GET /alarm
|
|
594
|
+
* Java method: org.openremote.model.alarm.AlarmResource.getAlarms
|
|
615
595
|
*/
|
|
616
|
-
|
|
596
|
+
getAlarms(queryParams?: {
|
|
597
|
+
realm?: any;
|
|
598
|
+
status?: Model.AlarmStatus;
|
|
599
|
+
assetId?: any;
|
|
600
|
+
assigneeId?: any;
|
|
601
|
+
}, options?: O): RestResponse<Model.SentAlarm[]>;
|
|
617
602
|
/**
|
|
618
|
-
* HTTP
|
|
619
|
-
* Java method: org.openremote.model.
|
|
603
|
+
* HTTP DELETE /alarm
|
|
604
|
+
* Java method: org.openremote.model.alarm.AlarmResource.removeAlarms
|
|
620
605
|
*/
|
|
621
|
-
|
|
606
|
+
removeAlarms(ids: any[], options?: O): RestResponse<void>;
|
|
622
607
|
/**
|
|
623
|
-
* HTTP PUT /
|
|
624
|
-
* Java method: org.openremote.model.
|
|
608
|
+
* HTTP PUT /alarm/assets
|
|
609
|
+
* Java method: org.openremote.model.alarm.AlarmResource.setAssetLinks
|
|
625
610
|
*/
|
|
626
|
-
|
|
611
|
+
setAssetLinks(links: Model.AlarmAssetLink[], options?: O): RestResponse<void>;
|
|
627
612
|
/**
|
|
628
|
-
* HTTP GET /
|
|
629
|
-
* Java method: org.openremote.model.
|
|
613
|
+
* HTTP GET /alarm/{alarmId}
|
|
614
|
+
* Java method: org.openremote.model.alarm.AlarmResource.getAlarm
|
|
630
615
|
*/
|
|
631
|
-
|
|
616
|
+
getAlarm(alarmId: any, options?: O): RestResponse<Model.SentAlarm>;
|
|
632
617
|
/**
|
|
633
|
-
* HTTP
|
|
634
|
-
* Java method: org.openremote.model.
|
|
618
|
+
* HTTP DELETE /alarm/{alarmId}
|
|
619
|
+
* Java method: org.openremote.model.alarm.AlarmResource.removeAlarm
|
|
635
620
|
*/
|
|
636
|
-
|
|
621
|
+
removeAlarm(alarmId: any, options?: O): RestResponse<void>;
|
|
637
622
|
/**
|
|
638
|
-
* HTTP PUT /
|
|
639
|
-
* Java method: org.openremote.model.
|
|
623
|
+
* HTTP PUT /alarm/{alarmId}
|
|
624
|
+
* Java method: org.openremote.model.alarm.AlarmResource.updateAlarm
|
|
640
625
|
*/
|
|
641
|
-
|
|
626
|
+
updateAlarm(alarmId: any, alarm: Model.SentAlarm, options?: O): RestResponse<void>;
|
|
642
627
|
/**
|
|
643
|
-
* HTTP GET /
|
|
644
|
-
* Java method: org.openremote.model.
|
|
628
|
+
* HTTP GET /alarm/{alarmId}/assets
|
|
629
|
+
* Java method: org.openremote.model.alarm.AlarmResource.getAssetLinks
|
|
645
630
|
*/
|
|
646
|
-
|
|
631
|
+
getAssetLinks(alarmId: any, queryParams?: {
|
|
632
|
+
realm?: any;
|
|
633
|
+
}, options?: O): RestResponse<Model.AlarmAssetLink[]>;
|
|
634
|
+
}
|
|
635
|
+
export declare class DashboardResourceClient<O> {
|
|
636
|
+
protected httpClient: HttpClient<O>;
|
|
637
|
+
constructor(httpClient: HttpClient<O>);
|
|
647
638
|
/**
|
|
648
|
-
* HTTP
|
|
649
|
-
* Java method: org.openremote.model.
|
|
639
|
+
* HTTP POST /dashboard
|
|
640
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.create
|
|
650
641
|
*/
|
|
651
|
-
|
|
642
|
+
create(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
|
|
652
643
|
/**
|
|
653
|
-
* HTTP
|
|
654
|
-
* Java method: org.openremote.model.
|
|
644
|
+
* HTTP PUT /dashboard
|
|
645
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.update
|
|
655
646
|
*/
|
|
656
|
-
|
|
647
|
+
update(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
|
|
657
648
|
/**
|
|
658
|
-
* HTTP
|
|
659
|
-
* Java method: org.openremote.model.
|
|
649
|
+
* HTTP GET /dashboard/all/{realm}
|
|
650
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.getAllRealmDashboards
|
|
660
651
|
*/
|
|
661
|
-
|
|
652
|
+
getAllRealmDashboards(realm: any, options?: O): RestResponse<Model.Dashboard[]>;
|
|
662
653
|
/**
|
|
663
|
-
* HTTP
|
|
664
|
-
* Java method: org.openremote.model.
|
|
654
|
+
* HTTP POST /dashboard/query
|
|
655
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.query
|
|
665
656
|
*/
|
|
666
|
-
|
|
657
|
+
query(dashboardQuery: Model.DashboardQuery, options?: O): RestResponse<Model.Dashboard[]>;
|
|
667
658
|
/**
|
|
668
|
-
* HTTP
|
|
669
|
-
* Java method: org.openremote.model.
|
|
659
|
+
* HTTP DELETE /dashboard/{realm}/{dashboardId}
|
|
660
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.delete
|
|
670
661
|
*/
|
|
671
|
-
|
|
662
|
+
delete(realm: any, dashboardId: any, options?: O): RestResponse<void>;
|
|
672
663
|
/**
|
|
673
|
-
* HTTP GET /
|
|
674
|
-
* Java method: org.openremote.model.
|
|
664
|
+
* HTTP GET /dashboard/{realm}/{dashboardId}
|
|
665
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.get
|
|
675
666
|
*/
|
|
676
|
-
|
|
667
|
+
get(realm: any, dashboardId: any, options?: O): RestResponse<Model.Dashboard>;
|
|
668
|
+
}
|
|
669
|
+
export declare class ConsoleResourceClient<O> {
|
|
670
|
+
protected httpClient: HttpClient<O>;
|
|
671
|
+
constructor(httpClient: HttpClient<O>);
|
|
677
672
|
/**
|
|
678
|
-
* HTTP POST /
|
|
679
|
-
* Java method: org.openremote.model.
|
|
673
|
+
* HTTP POST /console/register
|
|
674
|
+
* Java method: org.openremote.model.console.ConsoleResource.register
|
|
680
675
|
*/
|
|
681
|
-
|
|
676
|
+
register(consoleRegistration: Model.ConsoleRegistration, options?: O): RestResponse<Model.ConsoleRegistration>;
|
|
677
|
+
}
|
|
678
|
+
export declare class AssetModelResourceClient<O> {
|
|
679
|
+
protected httpClient: HttpClient<O>;
|
|
680
|
+
constructor(httpClient: HttpClient<O>);
|
|
682
681
|
/**
|
|
683
|
-
* HTTP
|
|
684
|
-
* Java method: org.openremote.model.
|
|
682
|
+
* HTTP GET /model/assetDescriptors
|
|
683
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getAssetDescriptors
|
|
685
684
|
*/
|
|
686
|
-
|
|
685
|
+
getAssetDescriptors(queryParams?: {
|
|
686
|
+
parentId?: any;
|
|
687
|
+
parentType?: any;
|
|
688
|
+
}, options?: O): RestResponse<Model.AssetDescriptor[]>;
|
|
687
689
|
/**
|
|
688
|
-
* HTTP
|
|
689
|
-
* Java method: org.openremote.model.
|
|
690
|
+
* HTTP GET /model/assetInfo/{assetType}
|
|
691
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getAssetInfo
|
|
690
692
|
*/
|
|
691
|
-
|
|
693
|
+
getAssetInfo(assetType: any, queryParams?: {
|
|
694
|
+
parentId?: any;
|
|
695
|
+
}, options?: O): RestResponse<Model.AssetTypeInfo>;
|
|
692
696
|
/**
|
|
693
|
-
* HTTP GET /
|
|
694
|
-
* Java method: org.openremote.model.
|
|
697
|
+
* HTTP GET /model/assetInfos
|
|
698
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getAssetInfos
|
|
695
699
|
*/
|
|
696
|
-
|
|
700
|
+
getAssetInfos(queryParams?: {
|
|
701
|
+
parentId?: any;
|
|
702
|
+
parentType?: any;
|
|
703
|
+
}, options?: O): RestResponse<Model.AssetTypeInfo[]>;
|
|
697
704
|
/**
|
|
698
|
-
* HTTP
|
|
699
|
-
* Java method: org.openremote.model.
|
|
705
|
+
* HTTP GET /model/metaItemDescriptors
|
|
706
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getMetaItemDescriptors
|
|
700
707
|
*/
|
|
701
|
-
|
|
708
|
+
getMetaItemDescriptors(queryParams?: {
|
|
709
|
+
parentId?: any;
|
|
710
|
+
}, options?: O): RestResponse<{
|
|
711
|
+
[index: string]: Model.MetaItemDescriptor;
|
|
712
|
+
}>;
|
|
702
713
|
/**
|
|
703
|
-
* HTTP GET /
|
|
704
|
-
* Java method: org.openremote.model.
|
|
714
|
+
* HTTP GET /model/valueDescriptors
|
|
715
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getValueDescriptors
|
|
705
716
|
*/
|
|
706
|
-
|
|
717
|
+
getValueDescriptors(queryParams?: {
|
|
718
|
+
parentId?: any;
|
|
719
|
+
}, options?: O): RestResponse<{
|
|
720
|
+
[index: string]: Model.ValueDescriptor;
|
|
721
|
+
}>;
|
|
707
722
|
}
|
|
708
|
-
export declare class
|
|
723
|
+
export declare class AppResourceClient<O> {
|
|
709
724
|
protected httpClient: HttpClient<O>;
|
|
710
725
|
constructor(httpClient: HttpClient<O>);
|
|
711
726
|
/**
|
|
712
|
-
* HTTP GET /
|
|
713
|
-
* Java method: org.openremote.model.
|
|
714
|
-
*/
|
|
715
|
-
getManagerConfig(options?: O): RestResponse<Model.ManagerAppConfig>;
|
|
716
|
-
/**
|
|
717
|
-
* HTTP PUT /configuration/manager
|
|
718
|
-
* Java method: org.openremote.model.manager.ConfigurationResource.update
|
|
727
|
+
* HTTP GET /apps
|
|
728
|
+
* Java method: org.openremote.model.apps.AppResource.getApps
|
|
719
729
|
*/
|
|
720
|
-
|
|
730
|
+
getApps(options?: O): RestResponse<any[]>;
|
|
721
731
|
/**
|
|
722
|
-
* HTTP
|
|
723
|
-
* Java method: org.openremote.model.
|
|
732
|
+
* HTTP GET /apps/consoleConfig
|
|
733
|
+
* Java method: org.openremote.model.apps.AppResource.getConsoleConfig
|
|
724
734
|
*/
|
|
725
|
-
|
|
726
|
-
path?: any;
|
|
727
|
-
}, options?: O): RestResponse<any>;
|
|
735
|
+
getConsoleConfig(options?: O): RestResponse<any>;
|
|
728
736
|
/**
|
|
729
|
-
* HTTP GET /
|
|
730
|
-
* Java method: org.openremote.model.
|
|
737
|
+
* HTTP GET /apps/info
|
|
738
|
+
* Java method: org.openremote.model.apps.AppResource.getAppInfos
|
|
731
739
|
*/
|
|
732
|
-
|
|
740
|
+
getAppInfos(options?: O): RestResponse<any>;
|
|
733
741
|
}
|
|
734
|
-
export declare class
|
|
742
|
+
export declare class FlowResourceClient<O> {
|
|
735
743
|
protected httpClient: HttpClient<O>;
|
|
736
744
|
constructor(httpClient: HttpClient<O>);
|
|
737
745
|
/**
|
|
738
|
-
* HTTP
|
|
739
|
-
* Java method: org.openremote.model.
|
|
746
|
+
* HTTP GET /flow
|
|
747
|
+
* Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitions
|
|
740
748
|
*/
|
|
741
|
-
|
|
749
|
+
getAllNodeDefinitions(options?: O): RestResponse<Model.Node[]>;
|
|
742
750
|
/**
|
|
743
|
-
* HTTP
|
|
744
|
-
* Java method: org.openremote.model.
|
|
751
|
+
* HTTP GET /flow/{name}
|
|
752
|
+
* Java method: org.openremote.model.rules.flow.FlowResource.getNodeDefinition
|
|
745
753
|
*/
|
|
746
|
-
|
|
754
|
+
getNodeDefinition(name: any, options?: O): RestResponse<Model.Node>;
|
|
755
|
+
/**
|
|
756
|
+
* HTTP GET /flow/{type}
|
|
757
|
+
* Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitionsByType
|
|
758
|
+
*/
|
|
759
|
+
getAllNodeDefinitionsByType(type: Model.NodeType, options?: O): RestResponse<Model.Node[]>;
|
|
747
760
|
}
|
|
748
761
|
export declare class MapResourceClient<O> {
|
|
749
762
|
protected httpClient: HttpClient<O>;
|
|
@@ -775,149 +788,136 @@ export declare class MapResourceClient<O> {
|
|
|
775
788
|
*/
|
|
776
789
|
getTile(zoom: number, column: number, row: number, options?: O): RestResponse<any>;
|
|
777
790
|
}
|
|
778
|
-
export declare class
|
|
791
|
+
export declare class SyslogResourceClient<O> {
|
|
779
792
|
protected httpClient: HttpClient<O>;
|
|
780
793
|
constructor(httpClient: HttpClient<O>);
|
|
781
794
|
/**
|
|
782
|
-
* HTTP GET /
|
|
783
|
-
* Java method: org.openremote.model.
|
|
784
|
-
*/
|
|
785
|
-
getAssetDescriptors(queryParams?: {
|
|
786
|
-
parentId?: any;
|
|
787
|
-
parentType?: any;
|
|
788
|
-
}, options?: O): RestResponse<Model.AssetDescriptor[]>;
|
|
789
|
-
/**
|
|
790
|
-
* HTTP GET /model/assetInfo/{assetType}
|
|
791
|
-
* Java method: org.openremote.model.asset.AssetModelResource.getAssetInfo
|
|
795
|
+
* HTTP GET /syslog/config
|
|
796
|
+
* Java method: org.openremote.model.syslog.SyslogResource.getConfig
|
|
792
797
|
*/
|
|
793
|
-
|
|
794
|
-
parentId?: any;
|
|
795
|
-
}, options?: O): RestResponse<Model.AssetTypeInfo>;
|
|
798
|
+
getConfig(options?: O): RestResponse<Model.SyslogConfig>;
|
|
796
799
|
/**
|
|
797
|
-
* HTTP
|
|
798
|
-
* Java method: org.openremote.model.
|
|
800
|
+
* HTTP PUT /syslog/config
|
|
801
|
+
* Java method: org.openremote.model.syslog.SyslogResource.updateConfig
|
|
799
802
|
*/
|
|
800
|
-
|
|
801
|
-
parentId?: any;
|
|
802
|
-
parentType?: any;
|
|
803
|
-
}, options?: O): RestResponse<Model.AssetTypeInfo[]>;
|
|
803
|
+
updateConfig(config: Model.SyslogConfig, options?: O): RestResponse<void>;
|
|
804
804
|
/**
|
|
805
|
-
* HTTP
|
|
806
|
-
* Java method: org.openremote.model.
|
|
805
|
+
* HTTP DELETE /syslog/event
|
|
806
|
+
* Java method: org.openremote.model.syslog.SyslogResource.clearEvents
|
|
807
807
|
*/
|
|
808
|
-
|
|
809
|
-
parentId?: any;
|
|
810
|
-
}, options?: O): RestResponse<{
|
|
811
|
-
[index: string]: Model.MetaItemDescriptor;
|
|
812
|
-
}>;
|
|
808
|
+
clearEvents(options?: O): RestResponse<void>;
|
|
813
809
|
/**
|
|
814
|
-
* HTTP GET /
|
|
815
|
-
* Java method: org.openremote.model.
|
|
810
|
+
* HTTP GET /syslog/event
|
|
811
|
+
* Java method: org.openremote.model.syslog.SyslogResource.getEvents
|
|
816
812
|
*/
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
813
|
+
getEvents(queryParams?: {
|
|
814
|
+
level?: Model.SyslogLevel;
|
|
815
|
+
per_page?: any;
|
|
816
|
+
page?: any;
|
|
817
|
+
from?: any;
|
|
818
|
+
to?: any;
|
|
819
|
+
category?: Model.SyslogCategory[];
|
|
820
|
+
subCategory?: any[];
|
|
821
|
+
}, options?: O): RestResponse<any>;
|
|
822
822
|
}
|
|
823
|
-
export declare class
|
|
823
|
+
export declare class GatewayServiceResourceClient<O> {
|
|
824
824
|
protected httpClient: HttpClient<O>;
|
|
825
825
|
constructor(httpClient: HttpClient<O>);
|
|
826
826
|
/**
|
|
827
|
-
* HTTP POST /
|
|
828
|
-
* Java method: org.openremote.model.
|
|
827
|
+
* HTTP POST /gateway/tunnel
|
|
828
|
+
* Java method: org.openremote.model.gateway.GatewayServiceResource.startTunnel
|
|
829
829
|
*/
|
|
830
|
-
|
|
831
|
-
assetIds?: any[];
|
|
832
|
-
}, options?: O): RestResponse<Model.SentAlarm>;
|
|
830
|
+
startTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<Model.GatewayTunnelInfo>;
|
|
833
831
|
/**
|
|
834
|
-
* HTTP
|
|
835
|
-
* Java method: org.openremote.model.
|
|
832
|
+
* HTTP DELETE /gateway/tunnel
|
|
833
|
+
* Java method: org.openremote.model.gateway.GatewayServiceResource.stopTunnel
|
|
836
834
|
*/
|
|
837
|
-
|
|
838
|
-
realm?: any;
|
|
839
|
-
status?: Model.AlarmStatus;
|
|
840
|
-
assetId?: any;
|
|
841
|
-
assigneeId?: any;
|
|
842
|
-
}, options?: O): RestResponse<Model.SentAlarm[]>;
|
|
835
|
+
stopTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<void>;
|
|
843
836
|
/**
|
|
844
|
-
* HTTP
|
|
845
|
-
* Java method: org.openremote.model.
|
|
837
|
+
* HTTP GET /gateway/tunnel/{realm}
|
|
838
|
+
* Java method: org.openremote.model.gateway.GatewayServiceResource.getAllActiveTunnelInfos
|
|
846
839
|
*/
|
|
847
|
-
|
|
840
|
+
getAllActiveTunnelInfos(realm: any, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
|
|
848
841
|
/**
|
|
849
|
-
* HTTP
|
|
850
|
-
* Java method: org.openremote.model.
|
|
842
|
+
* HTTP GET /gateway/tunnel/{realm}/{id}
|
|
843
|
+
* Java method: org.openremote.model.gateway.GatewayServiceResource.getGatewayActiveTunnelInfos
|
|
851
844
|
*/
|
|
852
|
-
|
|
845
|
+
getGatewayActiveTunnelInfos(realm: any, id: any, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
|
|
853
846
|
/**
|
|
854
|
-
* HTTP GET /
|
|
855
|
-
* Java method: org.openremote.model.
|
|
847
|
+
* HTTP GET /gateway/tunnel/{realm}/{id}/{target}/{targetPort}
|
|
848
|
+
* Java method: org.openremote.model.gateway.GatewayServiceResource.getActiveTunnelInfo
|
|
856
849
|
*/
|
|
857
|
-
|
|
850
|
+
getActiveTunnelInfo(realm: any, id: any, target: any, targetPort: number, options?: O): RestResponse<Model.GatewayTunnelInfo>;
|
|
851
|
+
}
|
|
852
|
+
export declare class ProvisioningResourceClient<O> {
|
|
853
|
+
protected httpClient: HttpClient<O>;
|
|
854
|
+
constructor(httpClient: HttpClient<O>);
|
|
858
855
|
/**
|
|
859
|
-
* HTTP
|
|
860
|
-
* Java method: org.openremote.model.
|
|
856
|
+
* HTTP POST /provisioning
|
|
857
|
+
* Java method: org.openremote.model.provisioning.ProvisioningResource.createProvisioningConfig
|
|
861
858
|
*/
|
|
862
|
-
|
|
859
|
+
createProvisioningConfig(provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<number>;
|
|
863
860
|
/**
|
|
864
|
-
* HTTP
|
|
865
|
-
* Java method: org.openremote.model.
|
|
861
|
+
* HTTP GET /provisioning
|
|
862
|
+
* Java method: org.openremote.model.provisioning.ProvisioningResource.getProvisioningConfigs
|
|
866
863
|
*/
|
|
867
|
-
|
|
864
|
+
getProvisioningConfigs(options?: O): RestResponse<Model.ProvisioningConfigUnion<any, any>[]>;
|
|
868
865
|
/**
|
|
869
|
-
* HTTP
|
|
870
|
-
* Java method: org.openremote.model.
|
|
866
|
+
* HTTP DELETE /provisioning/{id}
|
|
867
|
+
* Java method: org.openremote.model.provisioning.ProvisioningResource.deleteProvisioningConfig
|
|
871
868
|
*/
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
869
|
+
deleteProvisioningConfig(id: any, options?: O): RestResponse<void>;
|
|
870
|
+
/**
|
|
871
|
+
* HTTP PUT /provisioning/{id}
|
|
872
|
+
* Java method: org.openremote.model.provisioning.ProvisioningResource.updateProvisioningConfig
|
|
873
|
+
*/
|
|
874
|
+
updateProvisioningConfig(id: any, provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<void>;
|
|
875
875
|
}
|
|
876
876
|
export type RestResponse<R> = Promise<Axios.GenericAxiosResponse<R>>;
|
|
877
877
|
export declare class ApiClient {
|
|
878
|
-
protected _flowResource: AxiosFlowResourceClient;
|
|
879
|
-
protected _realmResource: AxiosRealmResourceClient;
|
|
880
|
-
protected _provisioningResource: AxiosProvisioningResourceClient;
|
|
881
|
-
protected _gatewayServiceResource: AxiosGatewayServiceResourceClient;
|
|
882
|
-
protected _appResource: AxiosAppResourceClient;
|
|
883
|
-
protected _gatewayClientResource: AxiosGatewayClientResourceClient;
|
|
884
|
-
protected _assetDatapointResource: AxiosAssetDatapointResourceClient;
|
|
885
|
-
protected _dashboardResource: AxiosDashboardResourceClient;
|
|
886
|
-
protected _assetResource: AxiosAssetResourceClient;
|
|
887
|
-
protected _consoleResource: AxiosConsoleResourceClient;
|
|
888
|
-
protected _agentResource: AxiosAgentResourceClient;
|
|
889
878
|
protected _statusResource: AxiosStatusResourceClient;
|
|
879
|
+
protected _agentResource: AxiosAgentResourceClient;
|
|
880
|
+
protected _gatewayClientResource: AxiosGatewayClientResourceClient;
|
|
890
881
|
protected _notificationResource: AxiosNotificationResourceClient;
|
|
891
|
-
protected
|
|
892
|
-
protected
|
|
893
|
-
protected _userResource: AxiosUserResourceClient;
|
|
882
|
+
protected _assetDatapointResource: AxiosAssetDatapointResourceClient;
|
|
883
|
+
protected _realmResource: AxiosRealmResourceClient;
|
|
894
884
|
protected _configurationResource: AxiosConfigurationResourceClient;
|
|
895
885
|
protected _assetPredictedDatapointResource: AxiosAssetPredictedDatapointResourceClient;
|
|
896
|
-
protected
|
|
897
|
-
protected
|
|
886
|
+
protected _assetResource: AxiosAssetResourceClient;
|
|
887
|
+
protected _userResource: AxiosUserResourceClient;
|
|
888
|
+
protected _rulesResource: AxiosRulesResourceClient;
|
|
898
889
|
protected _alarmResource: AxiosAlarmResourceClient;
|
|
890
|
+
protected _dashboardResource: AxiosDashboardResourceClient;
|
|
891
|
+
protected _consoleResource: AxiosConsoleResourceClient;
|
|
892
|
+
protected _assetModelResource: AxiosAssetModelResourceClient;
|
|
893
|
+
protected _appResource: AxiosAppResourceClient;
|
|
894
|
+
protected _flowResource: AxiosFlowResourceClient;
|
|
895
|
+
protected _mapResource: AxiosMapResourceClient;
|
|
896
|
+
protected _syslogResource: AxiosSyslogResourceClient;
|
|
897
|
+
protected _gatewayServiceResource: AxiosGatewayServiceResourceClient;
|
|
898
|
+
protected _provisioningResource: AxiosProvisioningResourceClient;
|
|
899
899
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
900
|
-
get FlowResource(): AxiosFlowResourceClient;
|
|
901
|
-
get RealmResource(): AxiosRealmResourceClient;
|
|
902
|
-
get ProvisioningResource(): AxiosProvisioningResourceClient;
|
|
903
|
-
get GatewayServiceResource(): AxiosGatewayServiceResourceClient;
|
|
904
|
-
get AppResource(): AxiosAppResourceClient;
|
|
905
|
-
get GatewayClientResource(): AxiosGatewayClientResourceClient;
|
|
906
|
-
get AssetDatapointResource(): AxiosAssetDatapointResourceClient;
|
|
907
|
-
get DashboardResource(): AxiosDashboardResourceClient;
|
|
908
|
-
get AssetResource(): AxiosAssetResourceClient;
|
|
909
|
-
get ConsoleResource(): AxiosConsoleResourceClient;
|
|
910
|
-
get AgentResource(): AxiosAgentResourceClient;
|
|
911
900
|
get StatusResource(): AxiosStatusResourceClient;
|
|
901
|
+
get AgentResource(): AxiosAgentResourceClient;
|
|
902
|
+
get GatewayClientResource(): AxiosGatewayClientResourceClient;
|
|
912
903
|
get NotificationResource(): AxiosNotificationResourceClient;
|
|
913
|
-
get
|
|
914
|
-
get
|
|
915
|
-
get UserResource(): AxiosUserResourceClient;
|
|
904
|
+
get AssetDatapointResource(): AxiosAssetDatapointResourceClient;
|
|
905
|
+
get RealmResource(): AxiosRealmResourceClient;
|
|
916
906
|
get ConfigurationResource(): AxiosConfigurationResourceClient;
|
|
917
907
|
get AssetPredictedDatapointResource(): AxiosAssetPredictedDatapointResourceClient;
|
|
918
|
-
get
|
|
919
|
-
get
|
|
908
|
+
get AssetResource(): AxiosAssetResourceClient;
|
|
909
|
+
get UserResource(): AxiosUserResourceClient;
|
|
910
|
+
get RulesResource(): AxiosRulesResourceClient;
|
|
920
911
|
get AlarmResource(): AxiosAlarmResourceClient;
|
|
912
|
+
get DashboardResource(): AxiosDashboardResourceClient;
|
|
913
|
+
get ConsoleResource(): AxiosConsoleResourceClient;
|
|
914
|
+
get AssetModelResource(): AxiosAssetModelResourceClient;
|
|
915
|
+
get AppResource(): AxiosAppResourceClient;
|
|
916
|
+
get FlowResource(): AxiosFlowResourceClient;
|
|
917
|
+
get MapResource(): AxiosMapResourceClient;
|
|
918
|
+
get SyslogResource(): AxiosSyslogResourceClient;
|
|
919
|
+
get GatewayServiceResource(): AxiosGatewayServiceResourceClient;
|
|
920
|
+
get ProvisioningResource(): AxiosProvisioningResourceClient;
|
|
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 AxiosStatusResourceClient extends StatusResourceClient<Axios.AxiosRequestConfig> {
|
|
929
929
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
930
930
|
}
|
|
931
|
-
export declare class
|
|
931
|
+
export declare class AxiosAgentResourceClient extends AgentResourceClient<Axios.AxiosRequestConfig> {
|
|
932
932
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
933
933
|
}
|
|
934
|
-
export declare class
|
|
934
|
+
export declare class AxiosGatewayClientResourceClient extends GatewayClientResourceClient<Axios.AxiosRequestConfig> {
|
|
935
935
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
936
936
|
}
|
|
937
|
-
export declare class
|
|
937
|
+
export declare class AxiosNotificationResourceClient extends NotificationResourceClient<Axios.AxiosRequestConfig> {
|
|
938
938
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
939
939
|
}
|
|
940
|
-
export declare class
|
|
940
|
+
export declare class AxiosAssetDatapointResourceClient extends AssetDatapointResourceClient<Axios.AxiosRequestConfig> {
|
|
941
941
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
942
942
|
}
|
|
943
|
-
export declare class
|
|
943
|
+
export declare class AxiosRealmResourceClient extends RealmResourceClient<Axios.AxiosRequestConfig> {
|
|
944
944
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
945
945
|
}
|
|
946
|
-
export declare class
|
|
946
|
+
export declare class AxiosConfigurationResourceClient extends ConfigurationResourceClient<Axios.AxiosRequestConfig> {
|
|
947
947
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
948
948
|
}
|
|
949
|
-
export declare class
|
|
949
|
+
export declare class AxiosAssetPredictedDatapointResourceClient extends AssetPredictedDatapointResourceClient<Axios.AxiosRequestConfig> {
|
|
950
950
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
951
951
|
}
|
|
952
952
|
export declare class AxiosAssetResourceClient extends AssetResourceClient<Axios.AxiosRequestConfig> {
|
|
953
953
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
954
954
|
}
|
|
955
|
-
export declare class
|
|
955
|
+
export declare class AxiosUserResourceClient extends UserResourceClient<Axios.AxiosRequestConfig> {
|
|
956
956
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
957
957
|
}
|
|
958
|
-
export declare class
|
|
958
|
+
export declare class AxiosRulesResourceClient extends RulesResourceClient<Axios.AxiosRequestConfig> {
|
|
959
959
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
960
960
|
}
|
|
961
|
-
export declare class
|
|
961
|
+
export declare class AxiosAlarmResourceClient extends AlarmResourceClient<Axios.AxiosRequestConfig> {
|
|
962
962
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
963
963
|
}
|
|
964
|
-
export declare class
|
|
964
|
+
export declare class AxiosDashboardResourceClient extends DashboardResourceClient<Axios.AxiosRequestConfig> {
|
|
965
965
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
966
966
|
}
|
|
967
|
-
export declare class
|
|
967
|
+
export declare class AxiosConsoleResourceClient extends ConsoleResourceClient<Axios.AxiosRequestConfig> {
|
|
968
968
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
969
969
|
}
|
|
970
|
-
export declare class
|
|
970
|
+
export declare class AxiosAssetModelResourceClient extends AssetModelResourceClient<Axios.AxiosRequestConfig> {
|
|
971
971
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
972
972
|
}
|
|
973
|
-
export declare class
|
|
973
|
+
export declare class AxiosAppResourceClient extends AppResourceClient<Axios.AxiosRequestConfig> {
|
|
974
974
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
975
975
|
}
|
|
976
|
-
export declare class
|
|
976
|
+
export declare class AxiosFlowResourceClient extends FlowResourceClient<Axios.AxiosRequestConfig> {
|
|
977
977
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
978
978
|
}
|
|
979
|
-
export declare class
|
|
979
|
+
export declare class AxiosMapResourceClient extends MapResourceClient<Axios.AxiosRequestConfig> {
|
|
980
980
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
981
981
|
}
|
|
982
|
-
export declare class
|
|
982
|
+
export declare class AxiosSyslogResourceClient extends SyslogResourceClient<Axios.AxiosRequestConfig> {
|
|
983
983
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
984
984
|
}
|
|
985
|
-
export declare class
|
|
985
|
+
export declare class AxiosGatewayServiceResourceClient extends GatewayServiceResourceClient<Axios.AxiosRequestConfig> {
|
|
986
986
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
987
987
|
}
|
|
988
|
-
export declare class
|
|
988
|
+
export declare class AxiosProvisioningResourceClient extends ProvisioningResourceClient<Axios.AxiosRequestConfig> {
|
|
989
989
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
990
990
|
}
|