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