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