@openremote/rest 1.6.0-snapshot.20250515141253 → 1.6.0-snapshot.20250516114400
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 +384 -384
- 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,31 +9,58 @@ export interface HttpClient<O> {
|
|
|
9
9
|
options?: O;
|
|
10
10
|
}): RestResponse<R>;
|
|
11
11
|
}
|
|
12
|
-
export declare class
|
|
12
|
+
export declare class AlarmResourceClient<O> {
|
|
13
13
|
protected httpClient: HttpClient<O>;
|
|
14
14
|
constructor(httpClient: HttpClient<O>);
|
|
15
15
|
/**
|
|
16
|
-
* HTTP
|
|
17
|
-
* Java method: org.openremote.model.
|
|
16
|
+
* HTTP POST /alarm
|
|
17
|
+
* Java method: org.openremote.model.alarm.AlarmResource.createAlarm
|
|
18
18
|
*/
|
|
19
|
-
|
|
19
|
+
createAlarm(alarm: Model.Alarm, queryParams?: {
|
|
20
|
+
assetIds?: string[];
|
|
21
|
+
}, options?: O): RestResponse<Model.SentAlarm>;
|
|
20
22
|
/**
|
|
21
|
-
* HTTP
|
|
22
|
-
* Java method: org.openremote.model.
|
|
23
|
+
* HTTP GET /alarm
|
|
24
|
+
* Java method: org.openremote.model.alarm.AlarmResource.getAlarms
|
|
23
25
|
*/
|
|
24
|
-
|
|
26
|
+
getAlarms(queryParams?: {
|
|
27
|
+
realm?: string;
|
|
28
|
+
status?: Model.AlarmStatus;
|
|
29
|
+
assetId?: string;
|
|
30
|
+
assigneeId?: string;
|
|
31
|
+
}, options?: O): RestResponse<Model.SentAlarm[]>;
|
|
25
32
|
/**
|
|
26
|
-
* HTTP
|
|
27
|
-
* Java method: org.openremote.model.
|
|
33
|
+
* HTTP DELETE /alarm
|
|
34
|
+
* Java method: org.openremote.model.alarm.AlarmResource.removeAlarms
|
|
28
35
|
*/
|
|
29
|
-
|
|
30
|
-
path?: string;
|
|
31
|
-
}, options?: O): RestResponse<string>;
|
|
36
|
+
removeAlarms(ids: number[], options?: O): RestResponse<void>;
|
|
32
37
|
/**
|
|
33
|
-
* HTTP
|
|
34
|
-
* Java method: org.openremote.model.
|
|
38
|
+
* HTTP PUT /alarm/assets
|
|
39
|
+
* Java method: org.openremote.model.alarm.AlarmResource.setAssetLinks
|
|
35
40
|
*/
|
|
36
|
-
|
|
41
|
+
setAssetLinks(links: Model.AlarmAssetLink[], options?: O): RestResponse<void>;
|
|
42
|
+
/**
|
|
43
|
+
* HTTP GET /alarm/{alarmId}
|
|
44
|
+
* Java method: org.openremote.model.alarm.AlarmResource.getAlarm
|
|
45
|
+
*/
|
|
46
|
+
getAlarm(alarmId: number, options?: O): RestResponse<Model.SentAlarm>;
|
|
47
|
+
/**
|
|
48
|
+
* HTTP DELETE /alarm/{alarmId}
|
|
49
|
+
* Java method: org.openremote.model.alarm.AlarmResource.removeAlarm
|
|
50
|
+
*/
|
|
51
|
+
removeAlarm(alarmId: number, options?: O): RestResponse<void>;
|
|
52
|
+
/**
|
|
53
|
+
* HTTP PUT /alarm/{alarmId}
|
|
54
|
+
* Java method: org.openremote.model.alarm.AlarmResource.updateAlarm
|
|
55
|
+
*/
|
|
56
|
+
updateAlarm(alarmId: number, alarm: Model.SentAlarm, options?: O): RestResponse<void>;
|
|
57
|
+
/**
|
|
58
|
+
* HTTP GET /alarm/{alarmId}/assets
|
|
59
|
+
* Java method: org.openremote.model.alarm.AlarmResource.getAssetLinks
|
|
60
|
+
*/
|
|
61
|
+
getAssetLinks(alarmId: number, queryParams?: {
|
|
62
|
+
realm?: string;
|
|
63
|
+
}, options?: O): RestResponse<Model.AlarmAssetLink[]>;
|
|
37
64
|
}
|
|
38
65
|
export declare class SyslogResourceClient<O> {
|
|
39
66
|
protected httpClient: HttpClient<O>;
|
|
@@ -67,169 +94,189 @@ export declare class SyslogResourceClient<O> {
|
|
|
67
94
|
subCategory?: string[];
|
|
68
95
|
}, options?: O): RestResponse<any>;
|
|
69
96
|
}
|
|
70
|
-
export declare class
|
|
97
|
+
export declare class ConsoleResourceClient<O> {
|
|
71
98
|
protected httpClient: HttpClient<O>;
|
|
72
99
|
constructor(httpClient: HttpClient<O>);
|
|
73
100
|
/**
|
|
74
|
-
* HTTP
|
|
75
|
-
* Java method: org.openremote.model.
|
|
101
|
+
* HTTP POST /console/register
|
|
102
|
+
* Java method: org.openremote.model.console.ConsoleResource.register
|
|
76
103
|
*/
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
104
|
+
register(consoleRegistration: Model.ConsoleRegistration, options?: O): RestResponse<Model.ConsoleRegistration>;
|
|
105
|
+
}
|
|
106
|
+
export declare class AssetResourceClient<O> {
|
|
107
|
+
protected httpClient: HttpClient<O>;
|
|
108
|
+
constructor(httpClient: HttpClient<O>);
|
|
82
109
|
/**
|
|
83
|
-
* HTTP
|
|
84
|
-
* Java method: org.openremote.model.
|
|
110
|
+
* HTTP POST /asset
|
|
111
|
+
* Java method: org.openremote.model.asset.AssetResource.create
|
|
85
112
|
*/
|
|
86
|
-
|
|
87
|
-
assetId?: string;
|
|
88
|
-
attributeName?: string;
|
|
89
|
-
}, options?: O): RestResponse<Model.DatapointPeriod>;
|
|
113
|
+
create(asset: Model.Asset, options?: O): RestResponse<Model.Asset>;
|
|
90
114
|
/**
|
|
91
|
-
* HTTP
|
|
92
|
-
* Java method: org.openremote.model.
|
|
115
|
+
* HTTP DELETE /asset
|
|
116
|
+
* Java method: org.openremote.model.asset.AssetResource.delete
|
|
93
117
|
*/
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
protected httpClient: HttpClient<O>;
|
|
98
|
-
constructor(httpClient: HttpClient<O>);
|
|
118
|
+
delete(queryParams?: {
|
|
119
|
+
assetId?: string[];
|
|
120
|
+
}, options?: O): RestResponse<void>;
|
|
99
121
|
/**
|
|
100
|
-
* HTTP
|
|
101
|
-
* Java method: org.openremote.model.
|
|
122
|
+
* HTTP PUT /asset/attributes
|
|
123
|
+
* Java method: org.openremote.model.asset.AssetResource.writeAttributeValues
|
|
102
124
|
*/
|
|
103
|
-
|
|
104
|
-
assetIds?: string[];
|
|
105
|
-
}, options?: O): RestResponse<Model.SentAlarm>;
|
|
125
|
+
writeAttributeValues(attributeStates: Model.AttributeState[], options?: O): RestResponse<Model.AttributeWriteResult[]>;
|
|
106
126
|
/**
|
|
107
|
-
* HTTP
|
|
108
|
-
* Java method: org.openremote.model.
|
|
127
|
+
* HTTP PUT /asset/attributes/timestamp
|
|
128
|
+
* Java method: org.openremote.model.asset.AssetResource.writeAttributeEvents
|
|
109
129
|
*/
|
|
110
|
-
|
|
111
|
-
realm?: string;
|
|
112
|
-
status?: Model.AlarmStatus;
|
|
113
|
-
assetId?: string;
|
|
114
|
-
assigneeId?: string;
|
|
115
|
-
}, options?: O): RestResponse<Model.SentAlarm[]>;
|
|
130
|
+
writeAttributeEvents(attributeEvents: Model.AttributeEvent[], options?: O): RestResponse<Model.AttributeWriteResult[]>;
|
|
116
131
|
/**
|
|
117
|
-
* HTTP DELETE /
|
|
118
|
-
* Java method: org.openremote.model.
|
|
132
|
+
* HTTP DELETE /asset/parent
|
|
133
|
+
* Java method: org.openremote.model.asset.AssetResource.updateNoneParent
|
|
119
134
|
*/
|
|
120
|
-
|
|
135
|
+
updateNoneParent(queryParams?: {
|
|
136
|
+
assetIds?: string[];
|
|
137
|
+
}, options?: O): RestResponse<void>;
|
|
121
138
|
/**
|
|
122
|
-
* HTTP
|
|
123
|
-
* Java method: org.openremote.model.
|
|
139
|
+
* HTTP GET /asset/partial/{assetId}
|
|
140
|
+
* Java method: org.openremote.model.asset.AssetResource.getPartial
|
|
124
141
|
*/
|
|
125
|
-
|
|
142
|
+
getPartial(assetId: string, options?: O): RestResponse<Model.Asset>;
|
|
126
143
|
/**
|
|
127
|
-
* HTTP
|
|
128
|
-
* Java method: org.openremote.model.
|
|
144
|
+
* HTTP POST /asset/query
|
|
145
|
+
* Java method: org.openremote.model.asset.AssetResource.queryAssets
|
|
129
146
|
*/
|
|
130
|
-
|
|
147
|
+
queryAssets(query: Model.AssetQuery, options?: O): RestResponse<Model.Asset[]>;
|
|
131
148
|
/**
|
|
132
|
-
* HTTP
|
|
133
|
-
* Java method: org.openremote.model.
|
|
149
|
+
* HTTP GET /asset/user/current
|
|
150
|
+
* Java method: org.openremote.model.asset.AssetResource.getCurrentUserAssets
|
|
134
151
|
*/
|
|
135
|
-
|
|
152
|
+
getCurrentUserAssets(options?: O): RestResponse<Model.Asset[]>;
|
|
136
153
|
/**
|
|
137
|
-
* HTTP
|
|
138
|
-
* Java method: org.openremote.model.
|
|
154
|
+
* HTTP POST /asset/user/link
|
|
155
|
+
* Java method: org.openremote.model.asset.AssetResource.createUserAssetLinks
|
|
139
156
|
*/
|
|
140
|
-
|
|
157
|
+
createUserAssetLinks(userAssets: Model.UserAssetLink[], options?: O): RestResponse<void>;
|
|
141
158
|
/**
|
|
142
|
-
* HTTP GET /
|
|
143
|
-
* Java method: org.openremote.model.
|
|
159
|
+
* HTTP GET /asset/user/link
|
|
160
|
+
* Java method: org.openremote.model.asset.AssetResource.getUserAssetLinks
|
|
144
161
|
*/
|
|
145
|
-
|
|
162
|
+
getUserAssetLinks(queryParams?: {
|
|
146
163
|
realm?: string;
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
protected httpClient: HttpClient<O>;
|
|
151
|
-
constructor(httpClient: HttpClient<O>);
|
|
164
|
+
userId?: string;
|
|
165
|
+
assetId?: string;
|
|
166
|
+
}, options?: O): RestResponse<Model.UserAssetLink[]>;
|
|
152
167
|
/**
|
|
153
|
-
* HTTP POST /
|
|
154
|
-
* Java method: org.openremote.model.
|
|
168
|
+
* HTTP POST /asset/user/link/delete
|
|
169
|
+
* Java method: org.openremote.model.asset.AssetResource.deleteUserAssetLinks
|
|
155
170
|
*/
|
|
156
|
-
|
|
171
|
+
deleteUserAssetLinks(userAssets: Model.UserAssetLink[], options?: O): RestResponse<void>;
|
|
157
172
|
/**
|
|
158
|
-
* HTTP DELETE /
|
|
159
|
-
* Java method: org.openremote.model.
|
|
173
|
+
* HTTP DELETE /asset/user/link/{realm}/{userId}
|
|
174
|
+
* Java method: org.openremote.model.asset.AssetResource.deleteAllUserAssetLinks
|
|
160
175
|
*/
|
|
161
|
-
|
|
176
|
+
deleteAllUserAssetLinks(realm: string, userId: string, options?: O): RestResponse<void>;
|
|
162
177
|
/**
|
|
163
|
-
* HTTP
|
|
164
|
-
* Java method: org.openremote.model.
|
|
178
|
+
* HTTP DELETE /asset/user/link/{realm}/{userId}/{assetId}
|
|
179
|
+
* Java method: org.openremote.model.asset.AssetResource.deleteUserAssetLink
|
|
165
180
|
*/
|
|
166
|
-
|
|
181
|
+
deleteUserAssetLink(realm: string, userId: string, assetId: string, options?: O): RestResponse<void>;
|
|
167
182
|
/**
|
|
168
|
-
* HTTP GET /
|
|
169
|
-
* Java method: org.openremote.model.
|
|
183
|
+
* HTTP GET /asset/{assetId}
|
|
184
|
+
* Java method: org.openremote.model.asset.AssetResource.get
|
|
170
185
|
*/
|
|
171
|
-
|
|
186
|
+
get(assetId: string, options?: O): RestResponse<Model.Asset>;
|
|
172
187
|
/**
|
|
173
|
-
* HTTP
|
|
174
|
-
* Java method: org.openremote.model.
|
|
188
|
+
* HTTP PUT /asset/{assetId}
|
|
189
|
+
* Java method: org.openremote.model.asset.AssetResource.update
|
|
175
190
|
*/
|
|
176
|
-
|
|
191
|
+
update(assetId: string, asset: Model.Asset, options?: O): RestResponse<Model.Asset>;
|
|
192
|
+
/**
|
|
193
|
+
* HTTP PUT /asset/{assetId}/attribute/{attributeName}
|
|
194
|
+
* Java method: org.openremote.model.asset.AssetResource.writeAttributeValue
|
|
195
|
+
*/
|
|
196
|
+
writeAttributeValue$PUT$asset_assetId_attribute_attributeName(assetId: string, attributeName: string, value: any, options?: O): RestResponse<Model.AttributeWriteResult>;
|
|
197
|
+
/**
|
|
198
|
+
* HTTP PUT /asset/{assetId}/attribute/{attributeName}/{timestamp}
|
|
199
|
+
* Java method: org.openremote.model.asset.AssetResource.writeAttributeValue
|
|
200
|
+
*/
|
|
201
|
+
writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(assetId: string, attributeName: string, timestamp: number, value: any, options?: O): RestResponse<Model.AttributeWriteResult>;
|
|
202
|
+
/**
|
|
203
|
+
* HTTP PUT /asset/{parentAssetId}/child
|
|
204
|
+
* Java method: org.openremote.model.asset.AssetResource.updateParent
|
|
205
|
+
*/
|
|
206
|
+
updateParent(parentAssetId: string, queryParams?: {
|
|
207
|
+
assetIds?: string[];
|
|
208
|
+
}, options?: O): RestResponse<void>;
|
|
177
209
|
}
|
|
178
|
-
export declare class
|
|
210
|
+
export declare class AssetDatapointResourceClient<O> {
|
|
179
211
|
protected httpClient: HttpClient<O>;
|
|
180
212
|
constructor(httpClient: HttpClient<O>);
|
|
181
213
|
/**
|
|
182
|
-
* HTTP GET /
|
|
183
|
-
* Java method: org.openremote.model.
|
|
214
|
+
* HTTP GET /asset/datapoint/export
|
|
215
|
+
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointExport
|
|
184
216
|
*/
|
|
185
|
-
|
|
217
|
+
getDatapointExport(queryParams?: {
|
|
218
|
+
attributeRefs?: string;
|
|
219
|
+
fromTimestamp?: number;
|
|
220
|
+
toTimestamp?: number;
|
|
221
|
+
}, options?: O): RestResponse<any>;
|
|
186
222
|
/**
|
|
187
|
-
* HTTP GET /
|
|
188
|
-
* Java method: org.openremote.model.
|
|
223
|
+
* HTTP GET /asset/datapoint/periods
|
|
224
|
+
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointPeriod
|
|
189
225
|
*/
|
|
190
|
-
|
|
226
|
+
getDatapointPeriod(queryParams?: {
|
|
227
|
+
assetId?: string;
|
|
228
|
+
attributeName?: string;
|
|
229
|
+
}, options?: O): RestResponse<Model.DatapointPeriod>;
|
|
191
230
|
/**
|
|
192
|
-
* HTTP
|
|
193
|
-
* Java method: org.openremote.model.
|
|
231
|
+
* HTTP POST /asset/datapoint/{assetId}/{attributeName}
|
|
232
|
+
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapoints
|
|
194
233
|
*/
|
|
195
|
-
|
|
234
|
+
getDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
|
|
196
235
|
}
|
|
197
|
-
export declare class
|
|
236
|
+
export declare class ConfigurationResourceClient<O> {
|
|
198
237
|
protected httpClient: HttpClient<O>;
|
|
199
238
|
constructor(httpClient: HttpClient<O>);
|
|
200
239
|
/**
|
|
201
|
-
* HTTP GET /
|
|
202
|
-
* Java method: org.openremote.model.
|
|
240
|
+
* HTTP GET /configuration/manager
|
|
241
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfig
|
|
203
242
|
*/
|
|
204
|
-
|
|
205
|
-
[index: string]: any;
|
|
206
|
-
}>;
|
|
243
|
+
getManagerConfig(options?: O): RestResponse<Model.ManagerAppConfig>;
|
|
207
244
|
/**
|
|
208
|
-
* HTTP
|
|
209
|
-
* Java method: org.openremote.model.
|
|
245
|
+
* HTTP PUT /configuration/manager
|
|
246
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.update
|
|
210
247
|
*/
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
248
|
+
update(managerConfiguration: Model.ManagerAppConfig, options?: O): RestResponse<Model.ManagerAppConfig>;
|
|
249
|
+
/**
|
|
250
|
+
* HTTP POST /configuration/manager/file
|
|
251
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.fileUpload
|
|
252
|
+
*/
|
|
253
|
+
fileUpload(fileInfo: Model.FileInfo, queryParams?: {
|
|
254
|
+
path?: string;
|
|
255
|
+
}, options?: O): RestResponse<string>;
|
|
256
|
+
/**
|
|
257
|
+
* HTTP GET /configuration/manager/image/{filename: .+}
|
|
258
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfigImage
|
|
259
|
+
*/
|
|
260
|
+
getManagerConfigImage(filename: string, options?: O): RestResponse<any>;
|
|
214
261
|
}
|
|
215
|
-
export declare class
|
|
262
|
+
export declare class FlowResourceClient<O> {
|
|
216
263
|
protected httpClient: HttpClient<O>;
|
|
217
264
|
constructor(httpClient: HttpClient<O>);
|
|
218
265
|
/**
|
|
219
|
-
* HTTP GET /
|
|
220
|
-
* Java method: org.openremote.model.
|
|
266
|
+
* HTTP GET /flow
|
|
267
|
+
* Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitions
|
|
221
268
|
*/
|
|
222
|
-
|
|
269
|
+
getAllNodeDefinitions(options?: O): RestResponse<Model.Node[]>;
|
|
223
270
|
/**
|
|
224
|
-
* HTTP GET /
|
|
225
|
-
* Java method: org.openremote.model.
|
|
271
|
+
* HTTP GET /flow/{name}
|
|
272
|
+
* Java method: org.openremote.model.rules.flow.FlowResource.getNodeDefinition
|
|
226
273
|
*/
|
|
227
|
-
|
|
274
|
+
getNodeDefinition(name: string, options?: O): RestResponse<Model.Node>;
|
|
228
275
|
/**
|
|
229
|
-
* HTTP GET /
|
|
230
|
-
* Java method: org.openremote.model.
|
|
276
|
+
* HTTP GET /flow/{type}
|
|
277
|
+
* Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitionsByType
|
|
231
278
|
*/
|
|
232
|
-
|
|
279
|
+
getAllNodeDefinitionsByType(type: Model.NodeType, options?: O): RestResponse<Model.Node[]>;
|
|
233
280
|
}
|
|
234
281
|
export declare class ProvisioningResourceClient<O> {
|
|
235
282
|
protected httpClient: HttpClient<O>;
|
|
@@ -281,141 +328,6 @@ export declare class AgentResourceClient<O> {
|
|
|
281
328
|
realm?: string;
|
|
282
329
|
}, options?: O): RestResponse<Model.Agent[]>;
|
|
283
330
|
}
|
|
284
|
-
export declare class MapResourceClient<O> {
|
|
285
|
-
protected httpClient: HttpClient<O>;
|
|
286
|
-
constructor(httpClient: HttpClient<O>);
|
|
287
|
-
/**
|
|
288
|
-
* HTTP GET /map
|
|
289
|
-
* Java method: org.openremote.model.map.MapResource.getSettings
|
|
290
|
-
*/
|
|
291
|
-
getSettings(options?: O): RestResponse<{
|
|
292
|
-
[id: string]: unknown;
|
|
293
|
-
}>;
|
|
294
|
-
/**
|
|
295
|
-
* HTTP PUT /map
|
|
296
|
-
* Java method: org.openremote.model.map.MapResource.saveSettings
|
|
297
|
-
*/
|
|
298
|
-
saveSettings(mapConfig: Model.MapConfig, options?: O): RestResponse<{
|
|
299
|
-
[id: string]: unknown;
|
|
300
|
-
}>;
|
|
301
|
-
/**
|
|
302
|
-
* HTTP DELETE /map/deleteMap
|
|
303
|
-
* Java method: org.openremote.model.map.MapResource.deleteMap
|
|
304
|
-
*/
|
|
305
|
-
deleteMap(options?: O): RestResponse<{
|
|
306
|
-
[id: string]: unknown;
|
|
307
|
-
}>;
|
|
308
|
-
/**
|
|
309
|
-
* HTTP GET /map/getCustomMapInfo
|
|
310
|
-
* Java method: org.openremote.model.map.MapResource.getCustomMapInfo
|
|
311
|
-
*/
|
|
312
|
-
getCustomMapInfo(options?: O): RestResponse<{
|
|
313
|
-
[id: string]: unknown;
|
|
314
|
-
}>;
|
|
315
|
-
/**
|
|
316
|
-
* HTTP GET /map/js
|
|
317
|
-
* Java method: org.openremote.model.map.MapResource.getSettingsJs
|
|
318
|
-
*/
|
|
319
|
-
getSettingsJs(options?: O): RestResponse<{
|
|
320
|
-
[id: string]: unknown;
|
|
321
|
-
}>;
|
|
322
|
-
/**
|
|
323
|
-
* HTTP GET /map/tile/{zoom}/{column}/{row}
|
|
324
|
-
* Java method: org.openremote.model.map.MapResource.getTile
|
|
325
|
-
*/
|
|
326
|
-
getTile(zoom: number, column: number, row: number, options?: O): RestResponse<any>;
|
|
327
|
-
/**
|
|
328
|
-
* HTTP POST /map/upload
|
|
329
|
-
* Java method: org.openremote.model.map.MapResource.uploadMap
|
|
330
|
-
*/
|
|
331
|
-
uploadMap(queryParams?: {
|
|
332
|
-
filename?: string;
|
|
333
|
-
}, options?: O): RestResponse<{
|
|
334
|
-
[id: string]: unknown;
|
|
335
|
-
}>;
|
|
336
|
-
}
|
|
337
|
-
export declare class DashboardResourceClient<O> {
|
|
338
|
-
protected httpClient: HttpClient<O>;
|
|
339
|
-
constructor(httpClient: HttpClient<O>);
|
|
340
|
-
/**
|
|
341
|
-
* HTTP POST /dashboard
|
|
342
|
-
* Java method: org.openremote.model.dashboard.DashboardResource.create
|
|
343
|
-
*/
|
|
344
|
-
create(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
|
|
345
|
-
/**
|
|
346
|
-
* HTTP PUT /dashboard
|
|
347
|
-
* Java method: org.openremote.model.dashboard.DashboardResource.update
|
|
348
|
-
*/
|
|
349
|
-
update(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
|
|
350
|
-
/**
|
|
351
|
-
* HTTP GET /dashboard/all/{realm}
|
|
352
|
-
* Java method: org.openremote.model.dashboard.DashboardResource.getAllRealmDashboards
|
|
353
|
-
*/
|
|
354
|
-
getAllRealmDashboards(realm: string, options?: O): RestResponse<Model.Dashboard[]>;
|
|
355
|
-
/**
|
|
356
|
-
* HTTP POST /dashboard/query
|
|
357
|
-
* Java method: org.openremote.model.dashboard.DashboardResource.query
|
|
358
|
-
*/
|
|
359
|
-
query(dashboardQuery: Model.DashboardQuery, options?: O): RestResponse<Model.Dashboard[]>;
|
|
360
|
-
/**
|
|
361
|
-
* HTTP DELETE /dashboard/{realm}/{dashboardId}
|
|
362
|
-
* Java method: org.openremote.model.dashboard.DashboardResource.delete
|
|
363
|
-
*/
|
|
364
|
-
delete(realm: string, dashboardId: string, options?: O): RestResponse<void>;
|
|
365
|
-
/**
|
|
366
|
-
* HTTP GET /dashboard/{realm}/{dashboardId}
|
|
367
|
-
* Java method: org.openremote.model.dashboard.DashboardResource.get
|
|
368
|
-
*/
|
|
369
|
-
get(realm: string, dashboardId: string, options?: O): RestResponse<Model.Dashboard>;
|
|
370
|
-
}
|
|
371
|
-
export declare class RealmResourceClient<O> {
|
|
372
|
-
protected httpClient: HttpClient<O>;
|
|
373
|
-
constructor(httpClient: HttpClient<O>);
|
|
374
|
-
/**
|
|
375
|
-
* HTTP POST /realm
|
|
376
|
-
* Java method: org.openremote.model.security.RealmResource.create
|
|
377
|
-
*/
|
|
378
|
-
create(realm: Model.Realm, options?: O): RestResponse<void>;
|
|
379
|
-
/**
|
|
380
|
-
* HTTP GET /realm
|
|
381
|
-
* Java method: org.openremote.model.security.RealmResource.getAll
|
|
382
|
-
*/
|
|
383
|
-
getAll(options?: O): RestResponse<Model.Realm[]>;
|
|
384
|
-
/**
|
|
385
|
-
* HTTP GET /realm/accessible
|
|
386
|
-
* Java method: org.openremote.model.security.RealmResource.getAccessible
|
|
387
|
-
*/
|
|
388
|
-
getAccessible(options?: O): RestResponse<Model.Realm[]>;
|
|
389
|
-
/**
|
|
390
|
-
* HTTP DELETE /realm/{name}
|
|
391
|
-
* Java method: org.openremote.model.security.RealmResource.delete
|
|
392
|
-
*/
|
|
393
|
-
delete(name: string, options?: O): RestResponse<void>;
|
|
394
|
-
/**
|
|
395
|
-
* HTTP GET /realm/{name}
|
|
396
|
-
* Java method: org.openremote.model.security.RealmResource.get
|
|
397
|
-
*/
|
|
398
|
-
get(name: string, options?: O): RestResponse<Model.Realm>;
|
|
399
|
-
/**
|
|
400
|
-
* HTTP PUT /realm/{name}
|
|
401
|
-
* Java method: org.openremote.model.security.RealmResource.update
|
|
402
|
-
*/
|
|
403
|
-
update(name: string, realm: Model.Realm, options?: O): RestResponse<void>;
|
|
404
|
-
}
|
|
405
|
-
export declare class AssetPredictedDatapointResourceClient<O> {
|
|
406
|
-
protected httpClient: HttpClient<O>;
|
|
407
|
-
constructor(httpClient: HttpClient<O>);
|
|
408
|
-
/**
|
|
409
|
-
* HTTP POST /asset/predicted/{assetId}/{attributeName}
|
|
410
|
-
* Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.getPredictedDatapoints
|
|
411
|
-
*/
|
|
412
|
-
getPredictedDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
|
|
413
|
-
/**
|
|
414
|
-
* HTTP PUT /asset/predicted/{assetId}/{attributeName}
|
|
415
|
-
* Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.writePredictedDatapoints
|
|
416
|
-
*/
|
|
417
|
-
writePredictedDatapoints(assetId: string, attributeName: string, predictedDatapoints: Model.ValueDatapoint<any>[], options?: O): RestResponse<void>;
|
|
418
|
-
}
|
|
419
331
|
export declare class AssetModelResourceClient<O> {
|
|
420
332
|
protected httpClient: HttpClient<O>;
|
|
421
333
|
constructor(httpClient: HttpClient<O>);
|
|
@@ -569,109 +481,53 @@ export declare class RulesResourceClient<O> {
|
|
|
569
481
|
*/
|
|
570
482
|
updateGlobalRuleset(id: number, ruleset: Model.GlobalRuleset, options?: O): RestResponse<void>;
|
|
571
483
|
}
|
|
572
|
-
export declare class
|
|
484
|
+
export declare class GatewayServiceResourceClient<O> {
|
|
573
485
|
protected httpClient: HttpClient<O>;
|
|
574
486
|
constructor(httpClient: HttpClient<O>);
|
|
575
487
|
/**
|
|
576
|
-
* HTTP POST /
|
|
577
|
-
* Java method: org.openremote.model.
|
|
578
|
-
*/
|
|
579
|
-
create(asset: Model.Asset, options?: O): RestResponse<Model.Asset>;
|
|
580
|
-
/**
|
|
581
|
-
* HTTP DELETE /asset
|
|
582
|
-
* Java method: org.openremote.model.asset.AssetResource.delete
|
|
583
|
-
*/
|
|
584
|
-
delete(queryParams?: {
|
|
585
|
-
assetId?: string[];
|
|
586
|
-
}, options?: O): RestResponse<void>;
|
|
587
|
-
/**
|
|
588
|
-
* HTTP PUT /asset/attributes
|
|
589
|
-
* Java method: org.openremote.model.asset.AssetResource.writeAttributeValues
|
|
590
|
-
*/
|
|
591
|
-
writeAttributeValues(attributeStates: Model.AttributeState[], options?: O): RestResponse<Model.AttributeWriteResult[]>;
|
|
592
|
-
/**
|
|
593
|
-
* HTTP PUT /asset/attributes/timestamp
|
|
594
|
-
* Java method: org.openremote.model.asset.AssetResource.writeAttributeEvents
|
|
595
|
-
*/
|
|
596
|
-
writeAttributeEvents(attributeEvents: Model.AttributeEvent[], options?: O): RestResponse<Model.AttributeWriteResult[]>;
|
|
597
|
-
/**
|
|
598
|
-
* HTTP DELETE /asset/parent
|
|
599
|
-
* Java method: org.openremote.model.asset.AssetResource.updateNoneParent
|
|
600
|
-
*/
|
|
601
|
-
updateNoneParent(queryParams?: {
|
|
602
|
-
assetIds?: string[];
|
|
603
|
-
}, options?: O): RestResponse<void>;
|
|
604
|
-
/**
|
|
605
|
-
* HTTP GET /asset/partial/{assetId}
|
|
606
|
-
* Java method: org.openremote.model.asset.AssetResource.getPartial
|
|
607
|
-
*/
|
|
608
|
-
getPartial(assetId: string, options?: O): RestResponse<Model.Asset>;
|
|
609
|
-
/**
|
|
610
|
-
* HTTP POST /asset/query
|
|
611
|
-
* Java method: org.openremote.model.asset.AssetResource.queryAssets
|
|
612
|
-
*/
|
|
613
|
-
queryAssets(query: Model.AssetQuery, options?: O): RestResponse<Model.Asset[]>;
|
|
614
|
-
/**
|
|
615
|
-
* HTTP GET /asset/user/current
|
|
616
|
-
* Java method: org.openremote.model.asset.AssetResource.getCurrentUserAssets
|
|
617
|
-
*/
|
|
618
|
-
getCurrentUserAssets(options?: O): RestResponse<Model.Asset[]>;
|
|
619
|
-
/**
|
|
620
|
-
* HTTP POST /asset/user/link
|
|
621
|
-
* Java method: org.openremote.model.asset.AssetResource.createUserAssetLinks
|
|
622
|
-
*/
|
|
623
|
-
createUserAssetLinks(userAssets: Model.UserAssetLink[], options?: O): RestResponse<void>;
|
|
624
|
-
/**
|
|
625
|
-
* HTTP GET /asset/user/link
|
|
626
|
-
* Java method: org.openremote.model.asset.AssetResource.getUserAssetLinks
|
|
627
|
-
*/
|
|
628
|
-
getUserAssetLinks(queryParams?: {
|
|
629
|
-
realm?: string;
|
|
630
|
-
userId?: string;
|
|
631
|
-
assetId?: string;
|
|
632
|
-
}, options?: O): RestResponse<Model.UserAssetLink[]>;
|
|
633
|
-
/**
|
|
634
|
-
* HTTP POST /asset/user/link/delete
|
|
635
|
-
* Java method: org.openremote.model.asset.AssetResource.deleteUserAssetLinks
|
|
488
|
+
* HTTP POST /gateway/tunnel
|
|
489
|
+
* Java method: org.openremote.model.gateway.GatewayServiceResource.startTunnel
|
|
636
490
|
*/
|
|
637
|
-
|
|
491
|
+
startTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<Model.GatewayTunnelInfo>;
|
|
638
492
|
/**
|
|
639
|
-
* HTTP DELETE /
|
|
640
|
-
* Java method: org.openremote.model.
|
|
493
|
+
* HTTP DELETE /gateway/tunnel
|
|
494
|
+
* Java method: org.openremote.model.gateway.GatewayServiceResource.stopTunnel
|
|
641
495
|
*/
|
|
642
|
-
|
|
496
|
+
stopTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<void>;
|
|
643
497
|
/**
|
|
644
|
-
* HTTP
|
|
645
|
-
* Java method: org.openremote.model.
|
|
498
|
+
* HTTP GET /gateway/tunnel/{realm}
|
|
499
|
+
* Java method: org.openremote.model.gateway.GatewayServiceResource.getAllActiveTunnelInfos
|
|
646
500
|
*/
|
|
647
|
-
|
|
501
|
+
getAllActiveTunnelInfos(realm: string, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
|
|
648
502
|
/**
|
|
649
|
-
* HTTP GET /
|
|
650
|
-
* Java method: org.openremote.model.
|
|
503
|
+
* HTTP GET /gateway/tunnel/{realm}/{id}
|
|
504
|
+
* Java method: org.openremote.model.gateway.GatewayServiceResource.getGatewayActiveTunnelInfos
|
|
651
505
|
*/
|
|
652
|
-
|
|
506
|
+
getGatewayActiveTunnelInfos(realm: string, id: string, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
|
|
653
507
|
/**
|
|
654
|
-
* HTTP
|
|
655
|
-
* Java method: org.openremote.model.
|
|
508
|
+
* HTTP GET /gateway/tunnel/{realm}/{id}/{target}/{targetPort}
|
|
509
|
+
* Java method: org.openremote.model.gateway.GatewayServiceResource.getActiveTunnelInfo
|
|
656
510
|
*/
|
|
657
|
-
|
|
511
|
+
getActiveTunnelInfo(realm: string, id: string, target: string, targetPort: number, options?: O): RestResponse<Model.GatewayTunnelInfo>;
|
|
512
|
+
}
|
|
513
|
+
export declare class AppResourceClient<O> {
|
|
514
|
+
protected httpClient: HttpClient<O>;
|
|
515
|
+
constructor(httpClient: HttpClient<O>);
|
|
658
516
|
/**
|
|
659
|
-
* HTTP
|
|
660
|
-
* Java method: org.openremote.model.
|
|
517
|
+
* HTTP GET /apps
|
|
518
|
+
* Java method: org.openremote.model.apps.AppResource.getApps
|
|
661
519
|
*/
|
|
662
|
-
|
|
520
|
+
getApps(options?: O): RestResponse<string[]>;
|
|
663
521
|
/**
|
|
664
|
-
* HTTP
|
|
665
|
-
* Java method: org.openremote.model.
|
|
522
|
+
* HTTP GET /apps/consoleConfig
|
|
523
|
+
* Java method: org.openremote.model.apps.AppResource.getConsoleConfig
|
|
666
524
|
*/
|
|
667
|
-
|
|
525
|
+
getConsoleConfig(options?: O): RestResponse<any>;
|
|
668
526
|
/**
|
|
669
|
-
* HTTP
|
|
670
|
-
* Java method: org.openremote.model.
|
|
527
|
+
* HTTP GET /apps/info
|
|
528
|
+
* Java method: org.openremote.model.apps.AppResource.getAppInfos
|
|
671
529
|
*/
|
|
672
|
-
|
|
673
|
-
assetIds?: string[];
|
|
674
|
-
}, options?: O): RestResponse<void>;
|
|
530
|
+
getAppInfos(options?: O): RestResponse<any>;
|
|
675
531
|
}
|
|
676
532
|
export declare class GatewayClientResourceClient<O> {
|
|
677
533
|
protected httpClient: HttpClient<O>;
|
|
@@ -709,14 +565,39 @@ export declare class GatewayClientResourceClient<O> {
|
|
|
709
565
|
*/
|
|
710
566
|
getConnectionStatus(realm: string, options?: O): RestResponse<Model.ConnectionStatus>;
|
|
711
567
|
}
|
|
712
|
-
export declare class
|
|
568
|
+
export declare class RealmResourceClient<O> {
|
|
713
569
|
protected httpClient: HttpClient<O>;
|
|
714
570
|
constructor(httpClient: HttpClient<O>);
|
|
715
571
|
/**
|
|
716
|
-
* HTTP POST /
|
|
717
|
-
* Java method: org.openremote.model.
|
|
572
|
+
* HTTP POST /realm
|
|
573
|
+
* Java method: org.openremote.model.security.RealmResource.create
|
|
718
574
|
*/
|
|
719
|
-
|
|
575
|
+
create(realm: Model.Realm, options?: O): RestResponse<void>;
|
|
576
|
+
/**
|
|
577
|
+
* HTTP GET /realm
|
|
578
|
+
* Java method: org.openremote.model.security.RealmResource.getAll
|
|
579
|
+
*/
|
|
580
|
+
getAll(options?: O): RestResponse<Model.Realm[]>;
|
|
581
|
+
/**
|
|
582
|
+
* HTTP GET /realm/accessible
|
|
583
|
+
* Java method: org.openremote.model.security.RealmResource.getAccessible
|
|
584
|
+
*/
|
|
585
|
+
getAccessible(options?: O): RestResponse<Model.Realm[]>;
|
|
586
|
+
/**
|
|
587
|
+
* HTTP DELETE /realm/{name}
|
|
588
|
+
* Java method: org.openremote.model.security.RealmResource.delete
|
|
589
|
+
*/
|
|
590
|
+
delete(name: string, options?: O): RestResponse<void>;
|
|
591
|
+
/**
|
|
592
|
+
* HTTP GET /realm/{name}
|
|
593
|
+
* Java method: org.openremote.model.security.RealmResource.get
|
|
594
|
+
*/
|
|
595
|
+
get(name: string, options?: O): RestResponse<Model.Realm>;
|
|
596
|
+
/**
|
|
597
|
+
* HTTP PUT /realm/{name}
|
|
598
|
+
* Java method: org.openremote.model.security.RealmResource.update
|
|
599
|
+
*/
|
|
600
|
+
update(name: string, realm: Model.Realm, options?: O): RestResponse<void>;
|
|
720
601
|
}
|
|
721
602
|
export declare class UserResourceClient<O> {
|
|
722
603
|
protected httpClient: HttpClient<O>;
|
|
@@ -822,6 +703,58 @@ export declare class UserResourceClient<O> {
|
|
|
822
703
|
*/
|
|
823
704
|
get(realm: string, userId: string, options?: O): RestResponse<Model.User>;
|
|
824
705
|
}
|
|
706
|
+
export declare class DashboardResourceClient<O> {
|
|
707
|
+
protected httpClient: HttpClient<O>;
|
|
708
|
+
constructor(httpClient: HttpClient<O>);
|
|
709
|
+
/**
|
|
710
|
+
* HTTP POST /dashboard
|
|
711
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.create
|
|
712
|
+
*/
|
|
713
|
+
create(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
|
|
714
|
+
/**
|
|
715
|
+
* HTTP PUT /dashboard
|
|
716
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.update
|
|
717
|
+
*/
|
|
718
|
+
update(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
|
|
719
|
+
/**
|
|
720
|
+
* HTTP GET /dashboard/all/{realm}
|
|
721
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.getAllRealmDashboards
|
|
722
|
+
*/
|
|
723
|
+
getAllRealmDashboards(realm: string, options?: O): RestResponse<Model.Dashboard[]>;
|
|
724
|
+
/**
|
|
725
|
+
* HTTP POST /dashboard/query
|
|
726
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.query
|
|
727
|
+
*/
|
|
728
|
+
query(dashboardQuery: Model.DashboardQuery, options?: O): RestResponse<Model.Dashboard[]>;
|
|
729
|
+
/**
|
|
730
|
+
* HTTP DELETE /dashboard/{realm}/{dashboardId}
|
|
731
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.delete
|
|
732
|
+
*/
|
|
733
|
+
delete(realm: string, dashboardId: string, options?: O): RestResponse<void>;
|
|
734
|
+
/**
|
|
735
|
+
* HTTP GET /dashboard/{realm}/{dashboardId}
|
|
736
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.get
|
|
737
|
+
*/
|
|
738
|
+
get(realm: string, dashboardId: string, options?: O): RestResponse<Model.Dashboard>;
|
|
739
|
+
}
|
|
740
|
+
export declare class StatusResourceClient<O> {
|
|
741
|
+
protected httpClient: HttpClient<O>;
|
|
742
|
+
constructor(httpClient: HttpClient<O>);
|
|
743
|
+
/**
|
|
744
|
+
* HTTP GET /health
|
|
745
|
+
* Java method: org.openremote.model.system.StatusResource.getHealthStatus
|
|
746
|
+
*/
|
|
747
|
+
getHealthStatus(options?: O): RestResponse<{
|
|
748
|
+
[index: string]: any;
|
|
749
|
+
}>;
|
|
750
|
+
/**
|
|
751
|
+
* HTTP GET /info
|
|
752
|
+
* Java method: org.openremote.model.system.StatusResource.getInfo
|
|
753
|
+
*/
|
|
754
|
+
getInfo(options?: O): RestResponse<{
|
|
755
|
+
[index: string]: any;
|
|
756
|
+
}>;
|
|
757
|
+
}
|
|
825
758
|
export declare class NotificationResourceClient<O> {
|
|
826
759
|
protected httpClient: HttpClient<O>;
|
|
827
760
|
constructor(httpClient: HttpClient<O>);
|
|
@@ -876,51 +809,118 @@ export declare class NotificationResourceClient<O> {
|
|
|
876
809
|
targetId?: string;
|
|
877
810
|
}, options?: O): RestResponse<void>;
|
|
878
811
|
}
|
|
812
|
+
export declare class MapResourceClient<O> {
|
|
813
|
+
protected httpClient: HttpClient<O>;
|
|
814
|
+
constructor(httpClient: HttpClient<O>);
|
|
815
|
+
/**
|
|
816
|
+
* HTTP GET /map
|
|
817
|
+
* Java method: org.openremote.model.map.MapResource.getSettings
|
|
818
|
+
*/
|
|
819
|
+
getSettings(options?: O): RestResponse<{
|
|
820
|
+
[id: string]: unknown;
|
|
821
|
+
}>;
|
|
822
|
+
/**
|
|
823
|
+
* HTTP PUT /map
|
|
824
|
+
* Java method: org.openremote.model.map.MapResource.saveSettings
|
|
825
|
+
*/
|
|
826
|
+
saveSettings(mapConfig: Model.MapConfig, options?: O): RestResponse<{
|
|
827
|
+
[id: string]: unknown;
|
|
828
|
+
}>;
|
|
829
|
+
/**
|
|
830
|
+
* HTTP DELETE /map/deleteMap
|
|
831
|
+
* Java method: org.openremote.model.map.MapResource.deleteMap
|
|
832
|
+
*/
|
|
833
|
+
deleteMap(options?: O): RestResponse<{
|
|
834
|
+
[id: string]: unknown;
|
|
835
|
+
}>;
|
|
836
|
+
/**
|
|
837
|
+
* HTTP GET /map/getCustomMapInfo
|
|
838
|
+
* Java method: org.openremote.model.map.MapResource.getCustomMapInfo
|
|
839
|
+
*/
|
|
840
|
+
getCustomMapInfo(options?: O): RestResponse<{
|
|
841
|
+
[id: string]: unknown;
|
|
842
|
+
}>;
|
|
843
|
+
/**
|
|
844
|
+
* HTTP GET /map/js
|
|
845
|
+
* Java method: org.openremote.model.map.MapResource.getSettingsJs
|
|
846
|
+
*/
|
|
847
|
+
getSettingsJs(options?: O): RestResponse<{
|
|
848
|
+
[id: string]: unknown;
|
|
849
|
+
}>;
|
|
850
|
+
/**
|
|
851
|
+
* HTTP GET /map/tile/{zoom}/{column}/{row}
|
|
852
|
+
* Java method: org.openremote.model.map.MapResource.getTile
|
|
853
|
+
*/
|
|
854
|
+
getTile(zoom: number, column: number, row: number, options?: O): RestResponse<any>;
|
|
855
|
+
/**
|
|
856
|
+
* HTTP POST /map/upload
|
|
857
|
+
* Java method: org.openremote.model.map.MapResource.uploadMap
|
|
858
|
+
*/
|
|
859
|
+
uploadMap(queryParams?: {
|
|
860
|
+
filename?: string;
|
|
861
|
+
}, options?: O): RestResponse<{
|
|
862
|
+
[id: string]: unknown;
|
|
863
|
+
}>;
|
|
864
|
+
}
|
|
865
|
+
export declare class AssetPredictedDatapointResourceClient<O> {
|
|
866
|
+
protected httpClient: HttpClient<O>;
|
|
867
|
+
constructor(httpClient: HttpClient<O>);
|
|
868
|
+
/**
|
|
869
|
+
* HTTP POST /asset/predicted/{assetId}/{attributeName}
|
|
870
|
+
* Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.getPredictedDatapoints
|
|
871
|
+
*/
|
|
872
|
+
getPredictedDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
|
|
873
|
+
/**
|
|
874
|
+
* HTTP PUT /asset/predicted/{assetId}/{attributeName}
|
|
875
|
+
* Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.writePredictedDatapoints
|
|
876
|
+
*/
|
|
877
|
+
writePredictedDatapoints(assetId: string, attributeName: string, predictedDatapoints: Model.ValueDatapoint<any>[], options?: O): RestResponse<void>;
|
|
878
|
+
}
|
|
879
879
|
export type RestResponse<R> = Promise<Axios.GenericAxiosResponse<R>>;
|
|
880
880
|
export declare class ApiClient {
|
|
881
|
-
protected
|
|
881
|
+
protected _alarmResource: AxiosAlarmResourceClient;
|
|
882
882
|
protected _syslogResource: AxiosSyslogResourceClient;
|
|
883
|
+
protected _consoleResource: AxiosConsoleResourceClient;
|
|
884
|
+
protected _assetResource: AxiosAssetResourceClient;
|
|
883
885
|
protected _assetDatapointResource: AxiosAssetDatapointResourceClient;
|
|
884
|
-
protected
|
|
885
|
-
protected _gatewayServiceResource: AxiosGatewayServiceResourceClient;
|
|
886
|
+
protected _configurationResource: AxiosConfigurationResourceClient;
|
|
886
887
|
protected _flowResource: AxiosFlowResourceClient;
|
|
887
|
-
protected _statusResource: AxiosStatusResourceClient;
|
|
888
|
-
protected _appResource: AxiosAppResourceClient;
|
|
889
888
|
protected _provisioningResource: AxiosProvisioningResourceClient;
|
|
890
889
|
protected _agentResource: AxiosAgentResourceClient;
|
|
891
|
-
protected _mapResource: AxiosMapResourceClient;
|
|
892
|
-
protected _dashboardResource: AxiosDashboardResourceClient;
|
|
893
|
-
protected _realmResource: AxiosRealmResourceClient;
|
|
894
|
-
protected _assetPredictedDatapointResource: AxiosAssetPredictedDatapointResourceClient;
|
|
895
890
|
protected _assetModelResource: AxiosAssetModelResourceClient;
|
|
896
891
|
protected _rulesResource: AxiosRulesResourceClient;
|
|
897
|
-
protected
|
|
892
|
+
protected _gatewayServiceResource: AxiosGatewayServiceResourceClient;
|
|
893
|
+
protected _appResource: AxiosAppResourceClient;
|
|
898
894
|
protected _gatewayClientResource: AxiosGatewayClientResourceClient;
|
|
899
|
-
protected
|
|
895
|
+
protected _realmResource: AxiosRealmResourceClient;
|
|
900
896
|
protected _userResource: AxiosUserResourceClient;
|
|
897
|
+
protected _dashboardResource: AxiosDashboardResourceClient;
|
|
898
|
+
protected _statusResource: AxiosStatusResourceClient;
|
|
901
899
|
protected _notificationResource: AxiosNotificationResourceClient;
|
|
900
|
+
protected _mapResource: AxiosMapResourceClient;
|
|
901
|
+
protected _assetPredictedDatapointResource: AxiosAssetPredictedDatapointResourceClient;
|
|
902
902
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
903
|
-
get
|
|
903
|
+
get AlarmResource(): AxiosAlarmResourceClient;
|
|
904
904
|
get SyslogResource(): AxiosSyslogResourceClient;
|
|
905
|
+
get ConsoleResource(): AxiosConsoleResourceClient;
|
|
906
|
+
get AssetResource(): AxiosAssetResourceClient;
|
|
905
907
|
get AssetDatapointResource(): AxiosAssetDatapointResourceClient;
|
|
906
|
-
get
|
|
907
|
-
get GatewayServiceResource(): AxiosGatewayServiceResourceClient;
|
|
908
|
+
get ConfigurationResource(): AxiosConfigurationResourceClient;
|
|
908
909
|
get FlowResource(): AxiosFlowResourceClient;
|
|
909
|
-
get StatusResource(): AxiosStatusResourceClient;
|
|
910
|
-
get AppResource(): AxiosAppResourceClient;
|
|
911
910
|
get ProvisioningResource(): AxiosProvisioningResourceClient;
|
|
912
911
|
get AgentResource(): AxiosAgentResourceClient;
|
|
913
|
-
get MapResource(): AxiosMapResourceClient;
|
|
914
|
-
get DashboardResource(): AxiosDashboardResourceClient;
|
|
915
|
-
get RealmResource(): AxiosRealmResourceClient;
|
|
916
|
-
get AssetPredictedDatapointResource(): AxiosAssetPredictedDatapointResourceClient;
|
|
917
912
|
get AssetModelResource(): AxiosAssetModelResourceClient;
|
|
918
913
|
get RulesResource(): AxiosRulesResourceClient;
|
|
919
|
-
get
|
|
914
|
+
get GatewayServiceResource(): AxiosGatewayServiceResourceClient;
|
|
915
|
+
get AppResource(): AxiosAppResourceClient;
|
|
920
916
|
get GatewayClientResource(): AxiosGatewayClientResourceClient;
|
|
921
|
-
get
|
|
917
|
+
get RealmResource(): AxiosRealmResourceClient;
|
|
922
918
|
get UserResource(): AxiosUserResourceClient;
|
|
919
|
+
get DashboardResource(): AxiosDashboardResourceClient;
|
|
920
|
+
get StatusResource(): AxiosStatusResourceClient;
|
|
923
921
|
get NotificationResource(): AxiosNotificationResourceClient;
|
|
922
|
+
get MapResource(): AxiosMapResourceClient;
|
|
923
|
+
get AssetPredictedDatapointResource(): AxiosAssetPredictedDatapointResourceClient;
|
|
924
924
|
}
|
|
925
925
|
import * as Axios from "axios";
|
|
926
926
|
declare module "axios" {
|
|
@@ -928,28 +928,25 @@ declare module "axios" {
|
|
|
928
928
|
data: R;
|
|
929
929
|
}
|
|
930
930
|
}
|
|
931
|
-
export declare class
|
|
931
|
+
export declare class AxiosAlarmResourceClient extends AlarmResourceClient<Axios.AxiosRequestConfig> {
|
|
932
932
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
933
933
|
}
|
|
934
934
|
export declare class AxiosSyslogResourceClient extends SyslogResourceClient<Axios.AxiosRequestConfig> {
|
|
935
935
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
936
936
|
}
|
|
937
|
-
export declare class
|
|
938
|
-
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
939
|
-
}
|
|
940
|
-
export declare class AxiosAlarmResourceClient extends AlarmResourceClient<Axios.AxiosRequestConfig> {
|
|
937
|
+
export declare class AxiosConsoleResourceClient extends ConsoleResourceClient<Axios.AxiosRequestConfig> {
|
|
941
938
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
942
939
|
}
|
|
943
|
-
export declare class
|
|
940
|
+
export declare class AxiosAssetResourceClient extends AssetResourceClient<Axios.AxiosRequestConfig> {
|
|
944
941
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
945
942
|
}
|
|
946
|
-
export declare class
|
|
943
|
+
export declare class AxiosAssetDatapointResourceClient extends AssetDatapointResourceClient<Axios.AxiosRequestConfig> {
|
|
947
944
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
948
945
|
}
|
|
949
|
-
export declare class
|
|
946
|
+
export declare class AxiosConfigurationResourceClient extends ConfigurationResourceClient<Axios.AxiosRequestConfig> {
|
|
950
947
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
951
948
|
}
|
|
952
|
-
export declare class
|
|
949
|
+
export declare class AxiosFlowResourceClient extends FlowResourceClient<Axios.AxiosRequestConfig> {
|
|
953
950
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
954
951
|
}
|
|
955
952
|
export declare class AxiosProvisioningResourceClient extends ProvisioningResourceClient<Axios.AxiosRequestConfig> {
|
|
@@ -958,36 +955,39 @@ export declare class AxiosProvisioningResourceClient extends ProvisioningResourc
|
|
|
958
955
|
export declare class AxiosAgentResourceClient extends AgentResourceClient<Axios.AxiosRequestConfig> {
|
|
959
956
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
960
957
|
}
|
|
961
|
-
export declare class
|
|
958
|
+
export declare class AxiosAssetModelResourceClient extends AssetModelResourceClient<Axios.AxiosRequestConfig> {
|
|
962
959
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
963
960
|
}
|
|
964
|
-
export declare class
|
|
961
|
+
export declare class AxiosRulesResourceClient extends RulesResourceClient<Axios.AxiosRequestConfig> {
|
|
965
962
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
966
963
|
}
|
|
967
|
-
export declare class
|
|
964
|
+
export declare class AxiosGatewayServiceResourceClient extends GatewayServiceResourceClient<Axios.AxiosRequestConfig> {
|
|
968
965
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
969
966
|
}
|
|
970
|
-
export declare class
|
|
967
|
+
export declare class AxiosAppResourceClient extends AppResourceClient<Axios.AxiosRequestConfig> {
|
|
971
968
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
972
969
|
}
|
|
973
|
-
export declare class
|
|
970
|
+
export declare class AxiosGatewayClientResourceClient extends GatewayClientResourceClient<Axios.AxiosRequestConfig> {
|
|
974
971
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
975
972
|
}
|
|
976
|
-
export declare class
|
|
973
|
+
export declare class AxiosRealmResourceClient extends RealmResourceClient<Axios.AxiosRequestConfig> {
|
|
977
974
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
978
975
|
}
|
|
979
|
-
export declare class
|
|
976
|
+
export declare class AxiosUserResourceClient extends UserResourceClient<Axios.AxiosRequestConfig> {
|
|
980
977
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
981
978
|
}
|
|
982
|
-
export declare class
|
|
979
|
+
export declare class AxiosDashboardResourceClient extends DashboardResourceClient<Axios.AxiosRequestConfig> {
|
|
983
980
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
984
981
|
}
|
|
985
|
-
export declare class
|
|
982
|
+
export declare class AxiosStatusResourceClient extends StatusResourceClient<Axios.AxiosRequestConfig> {
|
|
986
983
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
987
984
|
}
|
|
988
|
-
export declare class
|
|
985
|
+
export declare class AxiosNotificationResourceClient extends NotificationResourceClient<Axios.AxiosRequestConfig> {
|
|
989
986
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
990
987
|
}
|
|
991
|
-
export declare class
|
|
988
|
+
export declare class AxiosMapResourceClient extends MapResourceClient<Axios.AxiosRequestConfig> {
|
|
989
|
+
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
990
|
+
}
|
|
991
|
+
export declare class AxiosAssetPredictedDatapointResourceClient extends AssetPredictedDatapointResourceClient<Axios.AxiosRequestConfig> {
|
|
992
992
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
993
993
|
}
|