@openremote/rest 1.8.0-snapshot.20250717152228 → 1.8.0-snapshot.20250718083153
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 +416 -416
- 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,59 +9,31 @@ export interface HttpClient<O> {
|
|
|
9
9
|
options?: O;
|
|
10
10
|
}): RestResponse<R>;
|
|
11
11
|
}
|
|
12
|
-
export declare class
|
|
12
|
+
export declare class ConfigurationResourceClient<O> {
|
|
13
13
|
protected httpClient: HttpClient<O>;
|
|
14
14
|
constructor(httpClient: HttpClient<O>);
|
|
15
15
|
/**
|
|
16
|
-
* HTTP GET /
|
|
17
|
-
* Java method: org.openremote.model.
|
|
18
|
-
*/
|
|
19
|
-
getNotifications(queryParams?: {
|
|
20
|
-
id?: number;
|
|
21
|
-
type?: string;
|
|
22
|
-
from?: number;
|
|
23
|
-
to?: number;
|
|
24
|
-
realmId?: string;
|
|
25
|
-
userId?: string;
|
|
26
|
-
assetId?: string;
|
|
27
|
-
}, options?: O): RestResponse<Model.SentNotification[]>;
|
|
28
|
-
/**
|
|
29
|
-
* HTTP DELETE /notification
|
|
30
|
-
* Java method: org.openremote.model.notification.NotificationResource.removeNotifications
|
|
31
|
-
*/
|
|
32
|
-
removeNotifications(queryParams?: {
|
|
33
|
-
id?: number;
|
|
34
|
-
type?: string;
|
|
35
|
-
from?: number;
|
|
36
|
-
to?: number;
|
|
37
|
-
realmId?: string;
|
|
38
|
-
userId?: string;
|
|
39
|
-
assetId?: string;
|
|
40
|
-
}, options?: O): RestResponse<void>;
|
|
41
|
-
/**
|
|
42
|
-
* HTTP POST /notification/alert
|
|
43
|
-
* Java method: org.openremote.model.notification.NotificationResource.sendNotification
|
|
16
|
+
* HTTP GET /configuration/manager
|
|
17
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfig
|
|
44
18
|
*/
|
|
45
|
-
|
|
19
|
+
getManagerConfig(options?: O): RestResponse<Model.ManagerAppConfig>;
|
|
46
20
|
/**
|
|
47
|
-
* HTTP
|
|
48
|
-
* Java method: org.openremote.model.
|
|
21
|
+
* HTTP PUT /configuration/manager
|
|
22
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.update
|
|
49
23
|
*/
|
|
50
|
-
|
|
24
|
+
update(managerConfiguration: Model.ManagerAppConfig, options?: O): RestResponse<Model.ManagerAppConfig>;
|
|
51
25
|
/**
|
|
52
|
-
* HTTP
|
|
53
|
-
* Java method: org.openremote.model.
|
|
26
|
+
* HTTP POST /configuration/manager/file
|
|
27
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.fileUpload
|
|
54
28
|
*/
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}, options?: O): RestResponse<
|
|
29
|
+
fileUpload(fileInfo: Model.FileInfo, queryParams?: {
|
|
30
|
+
path?: string;
|
|
31
|
+
}, options?: O): RestResponse<string>;
|
|
58
32
|
/**
|
|
59
|
-
* HTTP
|
|
60
|
-
* Java method: org.openremote.model.
|
|
33
|
+
* HTTP GET /configuration/manager/image/{filename: .+}
|
|
34
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfigImage
|
|
61
35
|
*/
|
|
62
|
-
|
|
63
|
-
targetId?: string;
|
|
64
|
-
}, options?: O): RestResponse<void>;
|
|
36
|
+
getManagerConfigImage(filename: string, options?: O): RestResponse<any>;
|
|
65
37
|
}
|
|
66
38
|
export declare class MapResourceClient<O> {
|
|
67
39
|
protected httpClient: HttpClient<O>;
|
|
@@ -116,152 +88,31 @@ export declare class MapResourceClient<O> {
|
|
|
116
88
|
[id: string]: unknown;
|
|
117
89
|
}>;
|
|
118
90
|
}
|
|
119
|
-
export declare class
|
|
120
|
-
protected httpClient: HttpClient<O>;
|
|
121
|
-
constructor(httpClient: HttpClient<O>);
|
|
122
|
-
/**
|
|
123
|
-
* HTTP POST /console/register
|
|
124
|
-
* Java method: org.openremote.model.console.ConsoleResource.register
|
|
125
|
-
*/
|
|
126
|
-
register(consoleRegistration: Model.ConsoleRegistration, options?: O): RestResponse<Model.ConsoleRegistration>;
|
|
127
|
-
}
|
|
128
|
-
export declare class AssetResourceClient<O> {
|
|
91
|
+
export declare class AgentResourceClient<O> {
|
|
129
92
|
protected httpClient: HttpClient<O>;
|
|
130
93
|
constructor(httpClient: HttpClient<O>);
|
|
131
94
|
/**
|
|
132
|
-
* HTTP
|
|
133
|
-
* Java method: org.openremote.model.asset.
|
|
134
|
-
*/
|
|
135
|
-
create(asset: Model.Asset, options?: O): RestResponse<Model.Asset>;
|
|
136
|
-
/**
|
|
137
|
-
* HTTP DELETE /asset
|
|
138
|
-
* Java method: org.openremote.model.asset.AssetResource.delete
|
|
139
|
-
*/
|
|
140
|
-
delete(queryParams?: {
|
|
141
|
-
assetId?: string[];
|
|
142
|
-
}, options?: O): RestResponse<void>;
|
|
143
|
-
/**
|
|
144
|
-
* HTTP PUT /asset/attributes
|
|
145
|
-
* Java method: org.openremote.model.asset.AssetResource.writeAttributeValues
|
|
146
|
-
*/
|
|
147
|
-
writeAttributeValues(attributeStates: Model.AttributeState[], options?: O): RestResponse<Model.AttributeWriteResult[]>;
|
|
148
|
-
/**
|
|
149
|
-
* HTTP PUT /asset/attributes/timestamp
|
|
150
|
-
* Java method: org.openremote.model.asset.AssetResource.writeAttributeEvents
|
|
151
|
-
*/
|
|
152
|
-
writeAttributeEvents(attributeEvents: Model.AttributeEvent[], options?: O): RestResponse<Model.AttributeWriteResult[]>;
|
|
153
|
-
/**
|
|
154
|
-
* HTTP DELETE /asset/parent
|
|
155
|
-
* Java method: org.openremote.model.asset.AssetResource.updateNoneParent
|
|
156
|
-
*/
|
|
157
|
-
updateNoneParent(queryParams?: {
|
|
158
|
-
assetIds?: string[];
|
|
159
|
-
}, options?: O): RestResponse<void>;
|
|
160
|
-
/**
|
|
161
|
-
* HTTP GET /asset/partial/{assetId}
|
|
162
|
-
* Java method: org.openremote.model.asset.AssetResource.getPartial
|
|
163
|
-
*/
|
|
164
|
-
getPartial(assetId: string, options?: O): RestResponse<Model.Asset>;
|
|
165
|
-
/**
|
|
166
|
-
* HTTP POST /asset/query
|
|
167
|
-
* Java method: org.openremote.model.asset.AssetResource.queryAssets
|
|
168
|
-
*/
|
|
169
|
-
queryAssets(query: Model.AssetQuery, options?: O): RestResponse<Model.Asset[]>;
|
|
170
|
-
/**
|
|
171
|
-
* HTTP GET /asset/user/current
|
|
172
|
-
* Java method: org.openremote.model.asset.AssetResource.getCurrentUserAssets
|
|
173
|
-
*/
|
|
174
|
-
getCurrentUserAssets(options?: O): RestResponse<Model.Asset[]>;
|
|
175
|
-
/**
|
|
176
|
-
* HTTP POST /asset/user/link
|
|
177
|
-
* Java method: org.openremote.model.asset.AssetResource.createUserAssetLinks
|
|
178
|
-
*/
|
|
179
|
-
createUserAssetLinks(userAssets: Model.UserAssetLink[], options?: O): RestResponse<void>;
|
|
180
|
-
/**
|
|
181
|
-
* HTTP GET /asset/user/link
|
|
182
|
-
* Java method: org.openremote.model.asset.AssetResource.getUserAssetLinks
|
|
95
|
+
* HTTP GET /agent/assetDiscovery/{agentId}
|
|
96
|
+
* Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetDiscovery
|
|
183
97
|
*/
|
|
184
|
-
|
|
98
|
+
doProtocolAssetDiscovery(agentId: string, queryParams?: {
|
|
185
99
|
realm?: string;
|
|
186
|
-
|
|
187
|
-
assetId?: string;
|
|
188
|
-
}, options?: O): RestResponse<Model.UserAssetLink[]>;
|
|
189
|
-
/**
|
|
190
|
-
* HTTP POST /asset/user/link/delete
|
|
191
|
-
* Java method: org.openremote.model.asset.AssetResource.deleteUserAssetLinks
|
|
192
|
-
*/
|
|
193
|
-
deleteUserAssetLinks(userAssets: Model.UserAssetLink[], options?: O): RestResponse<void>;
|
|
194
|
-
/**
|
|
195
|
-
* HTTP DELETE /asset/user/link/{realm}/{userId}
|
|
196
|
-
* Java method: org.openremote.model.asset.AssetResource.deleteAllUserAssetLinks
|
|
197
|
-
*/
|
|
198
|
-
deleteAllUserAssetLinks(realm: string, userId: string, options?: O): RestResponse<void>;
|
|
199
|
-
/**
|
|
200
|
-
* HTTP DELETE /asset/user/link/{realm}/{userId}/{assetId}
|
|
201
|
-
* Java method: org.openremote.model.asset.AssetResource.deleteUserAssetLink
|
|
202
|
-
*/
|
|
203
|
-
deleteUserAssetLink(realm: string, userId: string, assetId: string, options?: O): RestResponse<void>;
|
|
204
|
-
/**
|
|
205
|
-
* HTTP GET /asset/{assetId}
|
|
206
|
-
* Java method: org.openremote.model.asset.AssetResource.get
|
|
207
|
-
*/
|
|
208
|
-
get(assetId: string, options?: O): RestResponse<Model.Asset>;
|
|
209
|
-
/**
|
|
210
|
-
* HTTP PUT /asset/{assetId}
|
|
211
|
-
* Java method: org.openremote.model.asset.AssetResource.update
|
|
212
|
-
*/
|
|
213
|
-
update(assetId: string, asset: Model.Asset, options?: O): RestResponse<Model.Asset>;
|
|
214
|
-
/**
|
|
215
|
-
* HTTP PUT /asset/{assetId}/attribute/{attributeName}
|
|
216
|
-
* Java method: org.openremote.model.asset.AssetResource.writeAttributeValue
|
|
217
|
-
*/
|
|
218
|
-
writeAttributeValue$PUT$asset_assetId_attribute_attributeName(assetId: string, attributeName: string, value: any, options?: O): RestResponse<Model.AttributeWriteResult>;
|
|
219
|
-
/**
|
|
220
|
-
* HTTP PUT /asset/{assetId}/attribute/{attributeName}/{timestamp}
|
|
221
|
-
* Java method: org.openremote.model.asset.AssetResource.writeAttributeValue
|
|
222
|
-
*/
|
|
223
|
-
writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(assetId: string, attributeName: string, timestamp: number, value: any, options?: O): RestResponse<Model.AttributeWriteResult>;
|
|
224
|
-
/**
|
|
225
|
-
* HTTP PUT /asset/{parentAssetId}/child
|
|
226
|
-
* Java method: org.openremote.model.asset.AssetResource.updateParent
|
|
227
|
-
*/
|
|
228
|
-
updateParent(parentAssetId: string, queryParams?: {
|
|
229
|
-
assetIds?: string[];
|
|
230
|
-
}, options?: O): RestResponse<void>;
|
|
231
|
-
}
|
|
232
|
-
export declare class RealmResourceClient<O> {
|
|
233
|
-
protected httpClient: HttpClient<O>;
|
|
234
|
-
constructor(httpClient: HttpClient<O>);
|
|
235
|
-
/**
|
|
236
|
-
* HTTP POST /realm
|
|
237
|
-
* Java method: org.openremote.model.security.RealmResource.create
|
|
238
|
-
*/
|
|
239
|
-
create(realm: Model.Realm, options?: O): RestResponse<void>;
|
|
240
|
-
/**
|
|
241
|
-
* HTTP GET /realm
|
|
242
|
-
* Java method: org.openremote.model.security.RealmResource.getAll
|
|
243
|
-
*/
|
|
244
|
-
getAll(options?: O): RestResponse<Model.Realm[]>;
|
|
245
|
-
/**
|
|
246
|
-
* HTTP GET /realm/accessible
|
|
247
|
-
* Java method: org.openremote.model.security.RealmResource.getAccessible
|
|
248
|
-
*/
|
|
249
|
-
getAccessible(options?: O): RestResponse<Model.Realm[]>;
|
|
250
|
-
/**
|
|
251
|
-
* HTTP DELETE /realm/{name}
|
|
252
|
-
* Java method: org.openremote.model.security.RealmResource.delete
|
|
253
|
-
*/
|
|
254
|
-
delete(name: string, options?: O): RestResponse<void>;
|
|
100
|
+
}, options?: O): RestResponse<Model.AssetTreeNode[]>;
|
|
255
101
|
/**
|
|
256
|
-
* HTTP
|
|
257
|
-
* Java method: org.openremote.model.
|
|
102
|
+
* HTTP POST /agent/assetImport/{agentId}
|
|
103
|
+
* Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetImport
|
|
258
104
|
*/
|
|
259
|
-
|
|
105
|
+
doProtocolAssetImport(agentId: string, fileInfo: Model.FileInfo, queryParams?: {
|
|
106
|
+
realm?: string;
|
|
107
|
+
}, options?: O): RestResponse<Model.AssetTreeNode[]>;
|
|
260
108
|
/**
|
|
261
|
-
* HTTP
|
|
262
|
-
* Java method: org.openremote.model.
|
|
109
|
+
* HTTP GET /agent/instanceDiscovery/{agentType}
|
|
110
|
+
* Java method: org.openremote.model.asset.agent.AgentResource.doProtocolInstanceDiscovery
|
|
263
111
|
*/
|
|
264
|
-
|
|
112
|
+
doProtocolInstanceDiscovery(agentType: string, queryParams?: {
|
|
113
|
+
parentId?: string;
|
|
114
|
+
realm?: string;
|
|
115
|
+
}, options?: O): RestResponse<Model.Agent[]>;
|
|
265
116
|
}
|
|
266
117
|
export declare class RulesResourceClient<O> {
|
|
267
118
|
protected httpClient: HttpClient<O>;
|
|
@@ -371,41 +222,167 @@ export declare class RulesResourceClient<O> {
|
|
|
371
222
|
*/
|
|
372
223
|
updateGlobalRuleset(id: number, ruleset: Model.GlobalRuleset, options?: O): RestResponse<void>;
|
|
373
224
|
}
|
|
374
|
-
export declare class
|
|
225
|
+
export declare class AssetDatapointResourceClient<O> {
|
|
375
226
|
protected httpClient: HttpClient<O>;
|
|
376
227
|
constructor(httpClient: HttpClient<O>);
|
|
377
228
|
/**
|
|
378
|
-
* HTTP
|
|
379
|
-
* Java method: org.openremote.model.
|
|
229
|
+
* HTTP GET /asset/datapoint/export
|
|
230
|
+
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointExport
|
|
380
231
|
*/
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
232
|
+
getDatapointExport(queryParams?: {
|
|
233
|
+
attributeRefs?: string;
|
|
234
|
+
fromTimestamp?: number;
|
|
235
|
+
toTimestamp?: number;
|
|
236
|
+
}, options?: O): RestResponse<any>;
|
|
384
237
|
/**
|
|
385
|
-
* HTTP GET /
|
|
386
|
-
* Java method: org.openremote.model.
|
|
238
|
+
* HTTP GET /asset/datapoint/periods
|
|
239
|
+
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointPeriod
|
|
387
240
|
*/
|
|
388
|
-
|
|
241
|
+
getDatapointPeriod(queryParams?: {
|
|
242
|
+
assetId?: string;
|
|
243
|
+
attributeName?: string;
|
|
244
|
+
}, options?: O): RestResponse<Model.DatapointPeriod>;
|
|
389
245
|
/**
|
|
390
|
-
* HTTP
|
|
391
|
-
* Java method: org.openremote.model.
|
|
246
|
+
* HTTP POST /asset/datapoint/{assetId}/{attributeName}
|
|
247
|
+
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapoints
|
|
392
248
|
*/
|
|
393
|
-
|
|
249
|
+
getDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
|
|
250
|
+
}
|
|
251
|
+
export declare class FlowResourceClient<O> {
|
|
252
|
+
protected httpClient: HttpClient<O>;
|
|
253
|
+
constructor(httpClient: HttpClient<O>);
|
|
394
254
|
/**
|
|
395
|
-
* HTTP GET /
|
|
396
|
-
* Java method: org.openremote.model.
|
|
255
|
+
* HTTP GET /flow
|
|
256
|
+
* Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitions
|
|
397
257
|
*/
|
|
398
|
-
|
|
258
|
+
getAllNodeDefinitions(options?: O): RestResponse<Model.Node[]>;
|
|
399
259
|
/**
|
|
400
|
-
* HTTP
|
|
401
|
-
* Java method: org.openremote.model.
|
|
260
|
+
* HTTP GET /flow/{name}
|
|
261
|
+
* Java method: org.openremote.model.rules.flow.FlowResource.getNodeDefinition
|
|
402
262
|
*/
|
|
403
|
-
|
|
263
|
+
getNodeDefinition(name: string, options?: O): RestResponse<Model.Node>;
|
|
404
264
|
/**
|
|
405
|
-
* HTTP GET /
|
|
406
|
-
* Java method: org.openremote.model.
|
|
265
|
+
* HTTP GET /flow/{type}
|
|
266
|
+
* Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitionsByType
|
|
407
267
|
*/
|
|
408
|
-
|
|
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>;
|
|
298
|
+
/**
|
|
299
|
+
* HTTP GET /dashboard/{realm}/{dashboardId}
|
|
300
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.get
|
|
301
|
+
*/
|
|
302
|
+
get(realm: string, dashboardId: string, options?: O): RestResponse<Model.Dashboard>;
|
|
303
|
+
}
|
|
304
|
+
export declare class NotificationResourceClient<O> {
|
|
305
|
+
protected httpClient: HttpClient<O>;
|
|
306
|
+
constructor(httpClient: HttpClient<O>);
|
|
307
|
+
/**
|
|
308
|
+
* HTTP GET /notification
|
|
309
|
+
* Java method: org.openremote.model.notification.NotificationResource.getNotifications
|
|
310
|
+
*/
|
|
311
|
+
getNotifications(queryParams?: {
|
|
312
|
+
id?: number;
|
|
313
|
+
type?: string;
|
|
314
|
+
from?: number;
|
|
315
|
+
to?: number;
|
|
316
|
+
realmId?: string;
|
|
317
|
+
userId?: string;
|
|
318
|
+
assetId?: string;
|
|
319
|
+
}, options?: O): RestResponse<Model.SentNotification[]>;
|
|
320
|
+
/**
|
|
321
|
+
* HTTP DELETE /notification
|
|
322
|
+
* Java method: org.openremote.model.notification.NotificationResource.removeNotifications
|
|
323
|
+
*/
|
|
324
|
+
removeNotifications(queryParams?: {
|
|
325
|
+
id?: number;
|
|
326
|
+
type?: string;
|
|
327
|
+
from?: number;
|
|
328
|
+
to?: number;
|
|
329
|
+
realmId?: string;
|
|
330
|
+
userId?: string;
|
|
331
|
+
assetId?: string;
|
|
332
|
+
}, options?: O): RestResponse<void>;
|
|
333
|
+
/**
|
|
334
|
+
* HTTP POST /notification/alert
|
|
335
|
+
* Java method: org.openremote.model.notification.NotificationResource.sendNotification
|
|
336
|
+
*/
|
|
337
|
+
sendNotification(notification: Model.Notification, options?: O): RestResponse<void>;
|
|
338
|
+
/**
|
|
339
|
+
* HTTP DELETE /notification/{notificationId}
|
|
340
|
+
* Java method: org.openremote.model.notification.NotificationResource.removeNotification
|
|
341
|
+
*/
|
|
342
|
+
removeNotification(notificationId: number, options?: O): RestResponse<void>;
|
|
343
|
+
/**
|
|
344
|
+
* HTTP PUT /notification/{notificationId}/acknowledged
|
|
345
|
+
* Java method: org.openremote.model.notification.NotificationResource.notificationAcknowledged
|
|
346
|
+
*/
|
|
347
|
+
notificationAcknowledged(notificationId: number, acknowledgement: any, queryParams?: {
|
|
348
|
+
targetId?: string;
|
|
349
|
+
}, options?: O): RestResponse<void>;
|
|
350
|
+
/**
|
|
351
|
+
* HTTP PUT /notification/{notificationId}/delivered
|
|
352
|
+
* Java method: org.openremote.model.notification.NotificationResource.notificationDelivered
|
|
353
|
+
*/
|
|
354
|
+
notificationDelivered(notificationId: number, queryParams?: {
|
|
355
|
+
targetId?: string;
|
|
356
|
+
}, options?: O): RestResponse<void>;
|
|
357
|
+
}
|
|
358
|
+
export declare class GatewayServiceResourceClient<O> {
|
|
359
|
+
protected httpClient: HttpClient<O>;
|
|
360
|
+
constructor(httpClient: HttpClient<O>);
|
|
361
|
+
/**
|
|
362
|
+
* HTTP POST /gateway/tunnel
|
|
363
|
+
* Java method: org.openremote.model.gateway.GatewayServiceResource.startTunnel
|
|
364
|
+
*/
|
|
365
|
+
startTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<Model.GatewayTunnelInfo>;
|
|
366
|
+
/**
|
|
367
|
+
* HTTP DELETE /gateway/tunnel
|
|
368
|
+
* Java method: org.openremote.model.gateway.GatewayServiceResource.stopTunnel
|
|
369
|
+
*/
|
|
370
|
+
stopTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<void>;
|
|
371
|
+
/**
|
|
372
|
+
* HTTP GET /gateway/tunnel/{realm}
|
|
373
|
+
* Java method: org.openremote.model.gateway.GatewayServiceResource.getAllActiveTunnelInfos
|
|
374
|
+
*/
|
|
375
|
+
getAllActiveTunnelInfos(realm: string, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
|
|
376
|
+
/**
|
|
377
|
+
* HTTP GET /gateway/tunnel/{realm}/{id}
|
|
378
|
+
* Java method: org.openremote.model.gateway.GatewayServiceResource.getGatewayActiveTunnelInfos
|
|
379
|
+
*/
|
|
380
|
+
getGatewayActiveTunnelInfos(realm: string, id: string, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
|
|
381
|
+
/**
|
|
382
|
+
* HTTP GET /gateway/tunnel/{realm}/{id}/{target}/{targetPort}
|
|
383
|
+
* Java method: org.openremote.model.gateway.GatewayServiceResource.getActiveTunnelInfo
|
|
384
|
+
*/
|
|
385
|
+
getActiveTunnelInfo(realm: string, id: string, target: string, targetPort: number, options?: O): RestResponse<Model.GatewayTunnelInfo>;
|
|
409
386
|
}
|
|
410
387
|
export declare class StatusResourceClient<O> {
|
|
411
388
|
protected httpClient: HttpClient<O>;
|
|
@@ -425,24 +402,14 @@ export declare class StatusResourceClient<O> {
|
|
|
425
402
|
[index: string]: any;
|
|
426
403
|
}>;
|
|
427
404
|
}
|
|
428
|
-
export declare class
|
|
405
|
+
export declare class ConsoleResourceClient<O> {
|
|
429
406
|
protected httpClient: HttpClient<O>;
|
|
430
407
|
constructor(httpClient: HttpClient<O>);
|
|
431
408
|
/**
|
|
432
|
-
* HTTP
|
|
433
|
-
* Java method: org.openremote.model.
|
|
434
|
-
*/
|
|
435
|
-
getAllNodeDefinitions(options?: O): RestResponse<Model.Node[]>;
|
|
436
|
-
/**
|
|
437
|
-
* HTTP GET /flow/{name}
|
|
438
|
-
* Java method: org.openremote.model.rules.flow.FlowResource.getNodeDefinition
|
|
439
|
-
*/
|
|
440
|
-
getNodeDefinition(name: string, options?: O): RestResponse<Model.Node>;
|
|
441
|
-
/**
|
|
442
|
-
* HTTP GET /flow/{type}
|
|
443
|
-
* Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitionsByType
|
|
409
|
+
* HTTP POST /console/register
|
|
410
|
+
* Java method: org.openremote.model.console.ConsoleResource.register
|
|
444
411
|
*/
|
|
445
|
-
|
|
412
|
+
register(consoleRegistration: Model.ConsoleRegistration, options?: O): RestResponse<Model.ConsoleRegistration>;
|
|
446
413
|
}
|
|
447
414
|
export declare class UserResourceClient<O> {
|
|
448
415
|
protected httpClient: HttpClient<O>;
|
|
@@ -548,6 +515,76 @@ export declare class UserResourceClient<O> {
|
|
|
548
515
|
*/
|
|
549
516
|
get(realm: string, userId: string, options?: O): RestResponse<Model.User>;
|
|
550
517
|
}
|
|
518
|
+
export declare class RealmResourceClient<O> {
|
|
519
|
+
protected httpClient: HttpClient<O>;
|
|
520
|
+
constructor(httpClient: HttpClient<O>);
|
|
521
|
+
/**
|
|
522
|
+
* HTTP POST /realm
|
|
523
|
+
* Java method: org.openremote.model.security.RealmResource.create
|
|
524
|
+
*/
|
|
525
|
+
create(realm: Model.Realm, options?: O): RestResponse<void>;
|
|
526
|
+
/**
|
|
527
|
+
* HTTP GET /realm
|
|
528
|
+
* Java method: org.openremote.model.security.RealmResource.getAll
|
|
529
|
+
*/
|
|
530
|
+
getAll(options?: O): RestResponse<Model.Realm[]>;
|
|
531
|
+
/**
|
|
532
|
+
* HTTP GET /realm/accessible
|
|
533
|
+
* Java method: org.openremote.model.security.RealmResource.getAccessible
|
|
534
|
+
*/
|
|
535
|
+
getAccessible(options?: O): RestResponse<Model.Realm[]>;
|
|
536
|
+
/**
|
|
537
|
+
* HTTP DELETE /realm/{name}
|
|
538
|
+
* Java method: org.openremote.model.security.RealmResource.delete
|
|
539
|
+
*/
|
|
540
|
+
delete(name: string, options?: O): RestResponse<void>;
|
|
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>;
|
|
551
|
+
}
|
|
552
|
+
export declare class GatewayClientResourceClient<O> {
|
|
553
|
+
protected httpClient: HttpClient<O>;
|
|
554
|
+
constructor(httpClient: HttpClient<O>);
|
|
555
|
+
/**
|
|
556
|
+
* HTTP DELETE /gateway/connection
|
|
557
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnections
|
|
558
|
+
*/
|
|
559
|
+
deleteConnections(queryParams?: {
|
|
560
|
+
realm?: string[];
|
|
561
|
+
}, options?: O): RestResponse<void>;
|
|
562
|
+
/**
|
|
563
|
+
* HTTP GET /gateway/connection
|
|
564
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnections
|
|
565
|
+
*/
|
|
566
|
+
getConnections(options?: O): RestResponse<Model.GatewayConnection[]>;
|
|
567
|
+
/**
|
|
568
|
+
* HTTP DELETE /gateway/connection/{realm}
|
|
569
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnection
|
|
570
|
+
*/
|
|
571
|
+
deleteConnection(realm: string, options?: O): RestResponse<void>;
|
|
572
|
+
/**
|
|
573
|
+
* HTTP GET /gateway/connection/{realm}
|
|
574
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnection
|
|
575
|
+
*/
|
|
576
|
+
getConnection(realm: string, options?: O): RestResponse<Model.GatewayConnection>;
|
|
577
|
+
/**
|
|
578
|
+
* HTTP PUT /gateway/connection/{realm}
|
|
579
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.setConnection
|
|
580
|
+
*/
|
|
581
|
+
setConnection(realm: string, connection: Model.GatewayConnection, options?: O): RestResponse<void>;
|
|
582
|
+
/**
|
|
583
|
+
* HTTP GET /gateway/status/{realm}
|
|
584
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnectionStatus
|
|
585
|
+
*/
|
|
586
|
+
getConnectionStatus(realm: string, options?: O): RestResponse<Model.ConnectionStatus>;
|
|
587
|
+
}
|
|
551
588
|
export declare class AlarmResourceClient<O> {
|
|
552
589
|
protected httpClient: HttpClient<O>;
|
|
553
590
|
constructor(httpClient: HttpClient<O>);
|
|
@@ -601,46 +638,129 @@ export declare class AlarmResourceClient<O> {
|
|
|
601
638
|
realm?: string;
|
|
602
639
|
}, options?: O): RestResponse<Model.AlarmAssetLink[]>;
|
|
603
640
|
}
|
|
604
|
-
export declare class
|
|
641
|
+
export declare class AssetResourceClient<O> {
|
|
605
642
|
protected httpClient: HttpClient<O>;
|
|
606
643
|
constructor(httpClient: HttpClient<O>);
|
|
607
644
|
/**
|
|
608
|
-
* HTTP
|
|
609
|
-
* Java method: org.openremote.model.
|
|
645
|
+
* HTTP POST /asset
|
|
646
|
+
* Java method: org.openremote.model.asset.AssetResource.create
|
|
610
647
|
*/
|
|
611
|
-
|
|
612
|
-
attributeRefs?: string;
|
|
613
|
-
fromTimestamp?: number;
|
|
614
|
-
toTimestamp?: number;
|
|
615
|
-
}, options?: O): RestResponse<any>;
|
|
648
|
+
create(asset: Model.Asset, options?: O): RestResponse<Model.Asset>;
|
|
616
649
|
/**
|
|
617
|
-
* HTTP
|
|
618
|
-
* Java method: org.openremote.model.
|
|
650
|
+
* HTTP DELETE /asset
|
|
651
|
+
* Java method: org.openremote.model.asset.AssetResource.delete
|
|
619
652
|
*/
|
|
620
|
-
|
|
621
|
-
assetId?: string;
|
|
622
|
-
|
|
623
|
-
}, options?: O): RestResponse<Model.DatapointPeriod>;
|
|
653
|
+
delete(queryParams?: {
|
|
654
|
+
assetId?: string[];
|
|
655
|
+
}, options?: O): RestResponse<void>;
|
|
624
656
|
/**
|
|
625
|
-
* HTTP
|
|
626
|
-
* Java method: org.openremote.model.
|
|
657
|
+
* HTTP PUT /asset/attributes
|
|
658
|
+
* Java method: org.openremote.model.asset.AssetResource.writeAttributeValues
|
|
627
659
|
*/
|
|
628
|
-
|
|
629
|
-
}
|
|
630
|
-
export declare class AssetPredictedDatapointResourceClient<O> {
|
|
631
|
-
protected httpClient: HttpClient<O>;
|
|
632
|
-
constructor(httpClient: HttpClient<O>);
|
|
660
|
+
writeAttributeValues(attributeStates: Model.AttributeState[], options?: O): RestResponse<Model.AttributeWriteResult[]>;
|
|
633
661
|
/**
|
|
634
|
-
* HTTP
|
|
635
|
-
* Java method: org.openremote.model.
|
|
662
|
+
* HTTP PUT /asset/attributes/timestamp
|
|
663
|
+
* Java method: org.openremote.model.asset.AssetResource.writeAttributeEvents
|
|
636
664
|
*/
|
|
637
|
-
|
|
665
|
+
writeAttributeEvents(attributeEvents: Model.AttributeEvent[], options?: O): RestResponse<Model.AttributeWriteResult[]>;
|
|
638
666
|
/**
|
|
639
|
-
* HTTP
|
|
640
|
-
* Java method: org.openremote.model.
|
|
667
|
+
* HTTP DELETE /asset/parent
|
|
668
|
+
* Java method: org.openremote.model.asset.AssetResource.updateNoneParent
|
|
641
669
|
*/
|
|
642
|
-
|
|
643
|
-
|
|
670
|
+
updateNoneParent(queryParams?: {
|
|
671
|
+
assetIds?: string[];
|
|
672
|
+
}, options?: O): RestResponse<void>;
|
|
673
|
+
/**
|
|
674
|
+
* HTTP GET /asset/partial/{assetId}
|
|
675
|
+
* Java method: org.openremote.model.asset.AssetResource.getPartial
|
|
676
|
+
*/
|
|
677
|
+
getPartial(assetId: string, options?: O): RestResponse<Model.Asset>;
|
|
678
|
+
/**
|
|
679
|
+
* HTTP POST /asset/query
|
|
680
|
+
* Java method: org.openremote.model.asset.AssetResource.queryAssets
|
|
681
|
+
*/
|
|
682
|
+
queryAssets(query: Model.AssetQuery, options?: O): RestResponse<Model.Asset[]>;
|
|
683
|
+
/**
|
|
684
|
+
* HTTP GET /asset/user/current
|
|
685
|
+
* Java method: org.openremote.model.asset.AssetResource.getCurrentUserAssets
|
|
686
|
+
*/
|
|
687
|
+
getCurrentUserAssets(options?: O): RestResponse<Model.Asset[]>;
|
|
688
|
+
/**
|
|
689
|
+
* HTTP POST /asset/user/link
|
|
690
|
+
* Java method: org.openremote.model.asset.AssetResource.createUserAssetLinks
|
|
691
|
+
*/
|
|
692
|
+
createUserAssetLinks(userAssets: Model.UserAssetLink[], options?: O): RestResponse<void>;
|
|
693
|
+
/**
|
|
694
|
+
* HTTP GET /asset/user/link
|
|
695
|
+
* Java method: org.openremote.model.asset.AssetResource.getUserAssetLinks
|
|
696
|
+
*/
|
|
697
|
+
getUserAssetLinks(queryParams?: {
|
|
698
|
+
realm?: string;
|
|
699
|
+
userId?: string;
|
|
700
|
+
assetId?: string;
|
|
701
|
+
}, options?: O): RestResponse<Model.UserAssetLink[]>;
|
|
702
|
+
/**
|
|
703
|
+
* HTTP POST /asset/user/link/delete
|
|
704
|
+
* Java method: org.openremote.model.asset.AssetResource.deleteUserAssetLinks
|
|
705
|
+
*/
|
|
706
|
+
deleteUserAssetLinks(userAssets: Model.UserAssetLink[], options?: O): RestResponse<void>;
|
|
707
|
+
/**
|
|
708
|
+
* HTTP DELETE /asset/user/link/{realm}/{userId}
|
|
709
|
+
* Java method: org.openremote.model.asset.AssetResource.deleteAllUserAssetLinks
|
|
710
|
+
*/
|
|
711
|
+
deleteAllUserAssetLinks(realm: string, userId: string, options?: O): RestResponse<void>;
|
|
712
|
+
/**
|
|
713
|
+
* HTTP DELETE /asset/user/link/{realm}/{userId}/{assetId}
|
|
714
|
+
* Java method: org.openremote.model.asset.AssetResource.deleteUserAssetLink
|
|
715
|
+
*/
|
|
716
|
+
deleteUserAssetLink(realm: string, userId: string, assetId: string, options?: O): RestResponse<void>;
|
|
717
|
+
/**
|
|
718
|
+
* HTTP GET /asset/{assetId}
|
|
719
|
+
* Java method: org.openremote.model.asset.AssetResource.get
|
|
720
|
+
*/
|
|
721
|
+
get(assetId: string, options?: O): RestResponse<Model.Asset>;
|
|
722
|
+
/**
|
|
723
|
+
* HTTP PUT /asset/{assetId}
|
|
724
|
+
* Java method: org.openremote.model.asset.AssetResource.update
|
|
725
|
+
*/
|
|
726
|
+
update(assetId: string, asset: Model.Asset, options?: O): RestResponse<Model.Asset>;
|
|
727
|
+
/**
|
|
728
|
+
* HTTP PUT /asset/{assetId}/attribute/{attributeName}
|
|
729
|
+
* Java method: org.openremote.model.asset.AssetResource.writeAttributeValue
|
|
730
|
+
*/
|
|
731
|
+
writeAttributeValue$PUT$asset_assetId_attribute_attributeName(assetId: string, attributeName: string, value: any, options?: O): RestResponse<Model.AttributeWriteResult>;
|
|
732
|
+
/**
|
|
733
|
+
* HTTP PUT /asset/{assetId}/attribute/{attributeName}/{timestamp}
|
|
734
|
+
* Java method: org.openremote.model.asset.AssetResource.writeAttributeValue
|
|
735
|
+
*/
|
|
736
|
+
writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(assetId: string, attributeName: string, timestamp: number, value: any, options?: O): RestResponse<Model.AttributeWriteResult>;
|
|
737
|
+
/**
|
|
738
|
+
* HTTP PUT /asset/{parentAssetId}/child
|
|
739
|
+
* Java method: org.openremote.model.asset.AssetResource.updateParent
|
|
740
|
+
*/
|
|
741
|
+
updateParent(parentAssetId: string, queryParams?: {
|
|
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>);
|
|
748
|
+
/**
|
|
749
|
+
* HTTP GET /apps
|
|
750
|
+
* Java method: org.openremote.model.apps.AppResource.getApps
|
|
751
|
+
*/
|
|
752
|
+
getApps(options?: O): RestResponse<string[]>;
|
|
753
|
+
/**
|
|
754
|
+
* HTTP GET /apps/consoleConfig
|
|
755
|
+
* Java method: org.openremote.model.apps.AppResource.getConsoleConfig
|
|
756
|
+
*/
|
|
757
|
+
getConsoleConfig(options?: O): RestResponse<any>;
|
|
758
|
+
/**
|
|
759
|
+
* HTTP GET /apps/info
|
|
760
|
+
* Java method: org.openremote.model.apps.AppResource.getAppInfos
|
|
761
|
+
*/
|
|
762
|
+
getAppInfos(options?: O): RestResponse<any>;
|
|
763
|
+
}
|
|
644
764
|
export declare class SyslogResourceClient<O> {
|
|
645
765
|
protected httpClient: HttpClient<O>;
|
|
646
766
|
constructor(httpClient: HttpClient<O>);
|
|
@@ -697,95 +817,6 @@ export declare class ProvisioningResourceClient<O> {
|
|
|
697
817
|
*/
|
|
698
818
|
updateProvisioningConfig(id: number, provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<void>;
|
|
699
819
|
}
|
|
700
|
-
export declare class GatewayServiceResourceClient<O> {
|
|
701
|
-
protected httpClient: HttpClient<O>;
|
|
702
|
-
constructor(httpClient: HttpClient<O>);
|
|
703
|
-
/**
|
|
704
|
-
* HTTP POST /gateway/tunnel
|
|
705
|
-
* Java method: org.openremote.model.gateway.GatewayServiceResource.startTunnel
|
|
706
|
-
*/
|
|
707
|
-
startTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<Model.GatewayTunnelInfo>;
|
|
708
|
-
/**
|
|
709
|
-
* HTTP DELETE /gateway/tunnel
|
|
710
|
-
* Java method: org.openremote.model.gateway.GatewayServiceResource.stopTunnel
|
|
711
|
-
*/
|
|
712
|
-
stopTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<void>;
|
|
713
|
-
/**
|
|
714
|
-
* HTTP GET /gateway/tunnel/{realm}
|
|
715
|
-
* Java method: org.openremote.model.gateway.GatewayServiceResource.getAllActiveTunnelInfos
|
|
716
|
-
*/
|
|
717
|
-
getAllActiveTunnelInfos(realm: string, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
|
|
718
|
-
/**
|
|
719
|
-
* HTTP GET /gateway/tunnel/{realm}/{id}
|
|
720
|
-
* Java method: org.openremote.model.gateway.GatewayServiceResource.getGatewayActiveTunnelInfos
|
|
721
|
-
*/
|
|
722
|
-
getGatewayActiveTunnelInfos(realm: string, id: string, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
|
|
723
|
-
/**
|
|
724
|
-
* HTTP GET /gateway/tunnel/{realm}/{id}/{target}/{targetPort}
|
|
725
|
-
* Java method: org.openremote.model.gateway.GatewayServiceResource.getActiveTunnelInfo
|
|
726
|
-
*/
|
|
727
|
-
getActiveTunnelInfo(realm: string, id: string, target: string, targetPort: number, options?: O): RestResponse<Model.GatewayTunnelInfo>;
|
|
728
|
-
}
|
|
729
|
-
export declare class ConfigurationResourceClient<O> {
|
|
730
|
-
protected httpClient: HttpClient<O>;
|
|
731
|
-
constructor(httpClient: HttpClient<O>);
|
|
732
|
-
/**
|
|
733
|
-
* HTTP GET /configuration/manager
|
|
734
|
-
* Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfig
|
|
735
|
-
*/
|
|
736
|
-
getManagerConfig(options?: O): RestResponse<Model.ManagerAppConfig>;
|
|
737
|
-
/**
|
|
738
|
-
* HTTP PUT /configuration/manager
|
|
739
|
-
* Java method: org.openremote.model.manager.ConfigurationResource.update
|
|
740
|
-
*/
|
|
741
|
-
update(managerConfiguration: Model.ManagerAppConfig, options?: O): RestResponse<Model.ManagerAppConfig>;
|
|
742
|
-
/**
|
|
743
|
-
* HTTP POST /configuration/manager/file
|
|
744
|
-
* Java method: org.openremote.model.manager.ConfigurationResource.fileUpload
|
|
745
|
-
*/
|
|
746
|
-
fileUpload(fileInfo: Model.FileInfo, queryParams?: {
|
|
747
|
-
path?: string;
|
|
748
|
-
}, options?: O): RestResponse<string>;
|
|
749
|
-
/**
|
|
750
|
-
* HTTP GET /configuration/manager/image/{filename: .+}
|
|
751
|
-
* Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfigImage
|
|
752
|
-
*/
|
|
753
|
-
getManagerConfigImage(filename: string, options?: O): RestResponse<any>;
|
|
754
|
-
}
|
|
755
|
-
export declare class DashboardResourceClient<O> {
|
|
756
|
-
protected httpClient: HttpClient<O>;
|
|
757
|
-
constructor(httpClient: HttpClient<O>);
|
|
758
|
-
/**
|
|
759
|
-
* HTTP POST /dashboard
|
|
760
|
-
* Java method: org.openremote.model.dashboard.DashboardResource.create
|
|
761
|
-
*/
|
|
762
|
-
create(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
|
|
763
|
-
/**
|
|
764
|
-
* HTTP PUT /dashboard
|
|
765
|
-
* Java method: org.openremote.model.dashboard.DashboardResource.update
|
|
766
|
-
*/
|
|
767
|
-
update(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
|
|
768
|
-
/**
|
|
769
|
-
* HTTP GET /dashboard/all/{realm}
|
|
770
|
-
* Java method: org.openremote.model.dashboard.DashboardResource.getAllRealmDashboards
|
|
771
|
-
*/
|
|
772
|
-
getAllRealmDashboards(realm: string, options?: O): RestResponse<Model.Dashboard[]>;
|
|
773
|
-
/**
|
|
774
|
-
* HTTP POST /dashboard/query
|
|
775
|
-
* Java method: org.openremote.model.dashboard.DashboardResource.query
|
|
776
|
-
*/
|
|
777
|
-
query(dashboardQuery: Model.DashboardQuery, options?: O): RestResponse<Model.Dashboard[]>;
|
|
778
|
-
/**
|
|
779
|
-
* HTTP DELETE /dashboard/{realm}/{dashboardId}
|
|
780
|
-
* Java method: org.openremote.model.dashboard.DashboardResource.delete
|
|
781
|
-
*/
|
|
782
|
-
delete(realm: string, dashboardId: string, options?: O): RestResponse<void>;
|
|
783
|
-
/**
|
|
784
|
-
* HTTP GET /dashboard/{realm}/{dashboardId}
|
|
785
|
-
* Java method: org.openremote.model.dashboard.DashboardResource.get
|
|
786
|
-
*/
|
|
787
|
-
get(realm: string, dashboardId: string, options?: O): RestResponse<Model.Dashboard>;
|
|
788
|
-
}
|
|
789
820
|
export declare class AssetModelResourceClient<O> {
|
|
790
821
|
protected httpClient: HttpClient<O>;
|
|
791
822
|
constructor(httpClient: HttpClient<O>);
|
|
@@ -831,96 +862,65 @@ export declare class AssetModelResourceClient<O> {
|
|
|
831
862
|
[index: string]: Model.ValueDescriptor;
|
|
832
863
|
}>;
|
|
833
864
|
}
|
|
834
|
-
export declare class
|
|
835
|
-
protected httpClient: HttpClient<O>;
|
|
836
|
-
constructor(httpClient: HttpClient<O>);
|
|
837
|
-
/**
|
|
838
|
-
* HTTP GET /apps
|
|
839
|
-
* Java method: org.openremote.model.apps.AppResource.getApps
|
|
840
|
-
*/
|
|
841
|
-
getApps(options?: O): RestResponse<string[]>;
|
|
842
|
-
/**
|
|
843
|
-
* HTTP GET /apps/consoleConfig
|
|
844
|
-
* Java method: org.openremote.model.apps.AppResource.getConsoleConfig
|
|
845
|
-
*/
|
|
846
|
-
getConsoleConfig(options?: O): RestResponse<any>;
|
|
847
|
-
/**
|
|
848
|
-
* HTTP GET /apps/info
|
|
849
|
-
* Java method: org.openremote.model.apps.AppResource.getAppInfos
|
|
850
|
-
*/
|
|
851
|
-
getAppInfos(options?: O): RestResponse<any>;
|
|
852
|
-
}
|
|
853
|
-
export declare class AgentResourceClient<O> {
|
|
865
|
+
export declare class AssetPredictedDatapointResourceClient<O> {
|
|
854
866
|
protected httpClient: HttpClient<O>;
|
|
855
867
|
constructor(httpClient: HttpClient<O>);
|
|
856
868
|
/**
|
|
857
|
-
* HTTP
|
|
858
|
-
* Java method: org.openremote.model.
|
|
859
|
-
*/
|
|
860
|
-
doProtocolAssetDiscovery(agentId: string, queryParams?: {
|
|
861
|
-
realm?: string;
|
|
862
|
-
}, options?: O): RestResponse<Model.AssetTreeNode[]>;
|
|
863
|
-
/**
|
|
864
|
-
* HTTP POST /agent/assetImport/{agentId}
|
|
865
|
-
* Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetImport
|
|
869
|
+
* HTTP POST /asset/predicted/{assetId}/{attributeName}
|
|
870
|
+
* Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.getPredictedDatapoints
|
|
866
871
|
*/
|
|
867
|
-
|
|
868
|
-
realm?: string;
|
|
869
|
-
}, options?: O): RestResponse<Model.AssetTreeNode[]>;
|
|
872
|
+
getPredictedDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
|
|
870
873
|
/**
|
|
871
|
-
* HTTP
|
|
872
|
-
* Java method: org.openremote.model.
|
|
874
|
+
* HTTP PUT /asset/predicted/{assetId}/{attributeName}
|
|
875
|
+
* Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.writePredictedDatapoints
|
|
873
876
|
*/
|
|
874
|
-
|
|
875
|
-
parentId?: string;
|
|
876
|
-
realm?: string;
|
|
877
|
-
}, options?: O): RestResponse<Model.Agent[]>;
|
|
877
|
+
writePredictedDatapoints(assetId: string, attributeName: string, predictedDatapoints: Model.ValueDatapoint<any>[], options?: O): RestResponse<void>;
|
|
878
878
|
}
|
|
879
879
|
export type RestResponse<R> = Promise<Axios.GenericAxiosResponse<R>>;
|
|
880
880
|
export declare class ApiClient {
|
|
881
|
-
protected
|
|
881
|
+
protected _configurationResource: AxiosConfigurationResourceClient;
|
|
882
882
|
protected _mapResource: AxiosMapResourceClient;
|
|
883
|
-
protected
|
|
884
|
-
protected _assetResource: AxiosAssetResourceClient;
|
|
885
|
-
protected _realmResource: AxiosRealmResourceClient;
|
|
883
|
+
protected _agentResource: AxiosAgentResourceClient;
|
|
886
884
|
protected _rulesResource: AxiosRulesResourceClient;
|
|
887
|
-
protected
|
|
888
|
-
protected _statusResource: AxiosStatusResourceClient;
|
|
885
|
+
protected _assetDatapointResource: AxiosAssetDatapointResourceClient;
|
|
889
886
|
protected _flowResource: AxiosFlowResourceClient;
|
|
887
|
+
protected _dashboardResource: AxiosDashboardResourceClient;
|
|
888
|
+
protected _notificationResource: AxiosNotificationResourceClient;
|
|
889
|
+
protected _gatewayServiceResource: AxiosGatewayServiceResourceClient;
|
|
890
|
+
protected _statusResource: AxiosStatusResourceClient;
|
|
891
|
+
protected _consoleResource: AxiosConsoleResourceClient;
|
|
890
892
|
protected _userResource: AxiosUserResourceClient;
|
|
893
|
+
protected _realmResource: AxiosRealmResourceClient;
|
|
894
|
+
protected _gatewayClientResource: AxiosGatewayClientResourceClient;
|
|
891
895
|
protected _alarmResource: AxiosAlarmResourceClient;
|
|
892
|
-
protected
|
|
893
|
-
protected
|
|
896
|
+
protected _assetResource: AxiosAssetResourceClient;
|
|
897
|
+
protected _appResource: AxiosAppResourceClient;
|
|
894
898
|
protected _syslogResource: AxiosSyslogResourceClient;
|
|
895
899
|
protected _provisioningResource: AxiosProvisioningResourceClient;
|
|
896
|
-
protected _gatewayServiceResource: AxiosGatewayServiceResourceClient;
|
|
897
|
-
protected _configurationResource: AxiosConfigurationResourceClient;
|
|
898
|
-
protected _dashboardResource: AxiosDashboardResourceClient;
|
|
899
900
|
protected _assetModelResource: AxiosAssetModelResourceClient;
|
|
900
|
-
protected
|
|
901
|
-
protected _agentResource: AxiosAgentResourceClient;
|
|
901
|
+
protected _assetPredictedDatapointResource: AxiosAssetPredictedDatapointResourceClient;
|
|
902
902
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
903
|
-
get
|
|
903
|
+
get ConfigurationResource(): AxiosConfigurationResourceClient;
|
|
904
904
|
get MapResource(): AxiosMapResourceClient;
|
|
905
|
-
get
|
|
906
|
-
get AssetResource(): AxiosAssetResourceClient;
|
|
907
|
-
get RealmResource(): AxiosRealmResourceClient;
|
|
905
|
+
get AgentResource(): AxiosAgentResourceClient;
|
|
908
906
|
get RulesResource(): AxiosRulesResourceClient;
|
|
909
|
-
get
|
|
910
|
-
get StatusResource(): AxiosStatusResourceClient;
|
|
907
|
+
get AssetDatapointResource(): AxiosAssetDatapointResourceClient;
|
|
911
908
|
get FlowResource(): AxiosFlowResourceClient;
|
|
909
|
+
get DashboardResource(): AxiosDashboardResourceClient;
|
|
910
|
+
get NotificationResource(): AxiosNotificationResourceClient;
|
|
911
|
+
get GatewayServiceResource(): AxiosGatewayServiceResourceClient;
|
|
912
|
+
get StatusResource(): AxiosStatusResourceClient;
|
|
913
|
+
get ConsoleResource(): AxiosConsoleResourceClient;
|
|
912
914
|
get UserResource(): AxiosUserResourceClient;
|
|
915
|
+
get RealmResource(): AxiosRealmResourceClient;
|
|
916
|
+
get GatewayClientResource(): AxiosGatewayClientResourceClient;
|
|
913
917
|
get AlarmResource(): AxiosAlarmResourceClient;
|
|
914
|
-
get
|
|
915
|
-
get
|
|
918
|
+
get AssetResource(): AxiosAssetResourceClient;
|
|
919
|
+
get AppResource(): AxiosAppResourceClient;
|
|
916
920
|
get SyslogResource(): AxiosSyslogResourceClient;
|
|
917
921
|
get ProvisioningResource(): AxiosProvisioningResourceClient;
|
|
918
|
-
get GatewayServiceResource(): AxiosGatewayServiceResourceClient;
|
|
919
|
-
get ConfigurationResource(): AxiosConfigurationResourceClient;
|
|
920
|
-
get DashboardResource(): AxiosDashboardResourceClient;
|
|
921
922
|
get AssetModelResource(): AxiosAssetModelResourceClient;
|
|
922
|
-
get
|
|
923
|
-
get AgentResource(): AxiosAgentResourceClient;
|
|
923
|
+
get AssetPredictedDatapointResource(): AxiosAssetPredictedDatapointResourceClient;
|
|
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 AxiosConfigurationResourceClient extends ConfigurationResourceClient<Axios.AxiosRequestConfig> {
|
|
932
932
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
933
933
|
}
|
|
934
934
|
export declare class AxiosMapResourceClient extends MapResourceClient<Axios.AxiosRequestConfig> {
|
|
935
935
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
936
936
|
}
|
|
937
|
-
export declare class
|
|
937
|
+
export declare class AxiosAgentResourceClient extends AgentResourceClient<Axios.AxiosRequestConfig> {
|
|
938
938
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
939
939
|
}
|
|
940
|
-
export declare class
|
|
940
|
+
export declare class AxiosRulesResourceClient extends RulesResourceClient<Axios.AxiosRequestConfig> {
|
|
941
941
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
942
942
|
}
|
|
943
|
-
export declare class
|
|
943
|
+
export declare class AxiosAssetDatapointResourceClient extends AssetDatapointResourceClient<Axios.AxiosRequestConfig> {
|
|
944
944
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
945
945
|
}
|
|
946
|
-
export declare class
|
|
946
|
+
export declare class AxiosFlowResourceClient extends FlowResourceClient<Axios.AxiosRequestConfig> {
|
|
947
947
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
948
948
|
}
|
|
949
|
-
export declare class
|
|
949
|
+
export declare class AxiosDashboardResourceClient extends DashboardResourceClient<Axios.AxiosRequestConfig> {
|
|
950
950
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
951
951
|
}
|
|
952
|
-
export declare class
|
|
952
|
+
export declare class AxiosNotificationResourceClient extends NotificationResourceClient<Axios.AxiosRequestConfig> {
|
|
953
953
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
954
954
|
}
|
|
955
|
-
export declare class
|
|
955
|
+
export declare class AxiosGatewayServiceResourceClient extends GatewayServiceResourceClient<Axios.AxiosRequestConfig> {
|
|
956
956
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
957
957
|
}
|
|
958
|
-
export declare class
|
|
958
|
+
export declare class AxiosStatusResourceClient extends StatusResourceClient<Axios.AxiosRequestConfig> {
|
|
959
959
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
960
960
|
}
|
|
961
|
-
export declare class
|
|
961
|
+
export declare class AxiosConsoleResourceClient extends ConsoleResourceClient<Axios.AxiosRequestConfig> {
|
|
962
962
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
963
963
|
}
|
|
964
|
-
export declare class
|
|
964
|
+
export declare class AxiosUserResourceClient extends UserResourceClient<Axios.AxiosRequestConfig> {
|
|
965
965
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
966
966
|
}
|
|
967
|
-
export declare class
|
|
967
|
+
export declare class AxiosRealmResourceClient extends RealmResourceClient<Axios.AxiosRequestConfig> {
|
|
968
968
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
969
969
|
}
|
|
970
|
-
export declare class
|
|
970
|
+
export declare class AxiosGatewayClientResourceClient extends GatewayClientResourceClient<Axios.AxiosRequestConfig> {
|
|
971
971
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
972
972
|
}
|
|
973
|
-
export declare class
|
|
973
|
+
export declare class AxiosAlarmResourceClient extends AlarmResourceClient<Axios.AxiosRequestConfig> {
|
|
974
974
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
975
975
|
}
|
|
976
|
-
export declare class
|
|
976
|
+
export declare class AxiosAssetResourceClient extends AssetResourceClient<Axios.AxiosRequestConfig> {
|
|
977
977
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
978
978
|
}
|
|
979
|
-
export declare class
|
|
979
|
+
export declare class AxiosAppResourceClient extends AppResourceClient<Axios.AxiosRequestConfig> {
|
|
980
980
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
981
981
|
}
|
|
982
|
-
export declare class
|
|
982
|
+
export declare class AxiosSyslogResourceClient extends SyslogResourceClient<Axios.AxiosRequestConfig> {
|
|
983
983
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
984
984
|
}
|
|
985
|
-
export declare class
|
|
985
|
+
export declare class AxiosProvisioningResourceClient extends ProvisioningResourceClient<Axios.AxiosRequestConfig> {
|
|
986
986
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
987
987
|
}
|
|
988
|
-
export declare class
|
|
988
|
+
export declare class AxiosAssetModelResourceClient extends AssetModelResourceClient<Axios.AxiosRequestConfig> {
|
|
989
989
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
990
990
|
}
|
|
991
|
-
export declare class
|
|
991
|
+
export declare class AxiosAssetPredictedDatapointResourceClient extends AssetPredictedDatapointResourceClient<Axios.AxiosRequestConfig> {
|
|
992
992
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
993
993
|
}
|