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