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