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