@openremote/rest 1.24.0 → 1.24.2
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.bundle.js.map +1 -1
- package/dist/umd/index.js +1 -1
- package/dist/umd/index.js.map +1 -1
- package/lib/restclient.d.ts +568 -568
- package/lib/restclient.d.ts.map +1 -1
- package/lib/restclient.js +1 -1
- package/lib/restclient.js.map +1 -1
- package/package.json +3 -2
package/lib/restclient.d.ts
CHANGED
|
@@ -9,23 +9,90 @@ 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
|
-
|
|
20
|
-
|
|
21
|
-
}>;
|
|
19
|
+
createAlarm(alarm: Model.Alarm, queryParams?: {
|
|
20
|
+
assetIds?: string[];
|
|
21
|
+
}, options?: O): RestResponse<Model.SentAlarm>;
|
|
22
22
|
/**
|
|
23
|
-
* HTTP GET /
|
|
24
|
-
* Java method: org.openremote.model.
|
|
23
|
+
* HTTP GET /alarm
|
|
24
|
+
* Java method: org.openremote.model.alarm.AlarmResource.getAlarms
|
|
25
25
|
*/
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
getAlarms(queryParams?: {
|
|
27
|
+
realm?: string;
|
|
28
|
+
status?: Model.AlarmStatus;
|
|
29
|
+
assetId?: string;
|
|
30
|
+
assigneeId?: string;
|
|
31
|
+
}, options?: O): RestResponse<Model.SentAlarm[]>;
|
|
32
|
+
/**
|
|
33
|
+
* HTTP DELETE /alarm
|
|
34
|
+
* Java method: org.openremote.model.alarm.AlarmResource.removeAlarms
|
|
35
|
+
*/
|
|
36
|
+
removeAlarms(ids: number[], options?: O): RestResponse<void>;
|
|
37
|
+
/**
|
|
38
|
+
* HTTP PUT /alarm/assets
|
|
39
|
+
* Java method: org.openremote.model.alarm.AlarmResource.setAssetLinks
|
|
40
|
+
*/
|
|
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[]>;
|
|
64
|
+
}
|
|
65
|
+
export declare class SyslogResourceClient<O> {
|
|
66
|
+
protected httpClient: HttpClient<O>;
|
|
67
|
+
constructor(httpClient: HttpClient<O>);
|
|
68
|
+
/**
|
|
69
|
+
* HTTP GET /syslog/config
|
|
70
|
+
* Java method: org.openremote.model.syslog.SyslogResource.getConfig
|
|
71
|
+
*/
|
|
72
|
+
getConfig(options?: O): RestResponse<Model.SyslogConfig>;
|
|
73
|
+
/**
|
|
74
|
+
* HTTP PUT /syslog/config
|
|
75
|
+
* Java method: org.openremote.model.syslog.SyslogResource.updateConfig
|
|
76
|
+
*/
|
|
77
|
+
updateConfig(config: Model.SyslogConfig, options?: O): RestResponse<void>;
|
|
78
|
+
/**
|
|
79
|
+
* HTTP DELETE /syslog/event
|
|
80
|
+
* Java method: org.openremote.model.syslog.SyslogResource.clearEvents
|
|
81
|
+
*/
|
|
82
|
+
clearEvents(options?: O): RestResponse<void>;
|
|
83
|
+
/**
|
|
84
|
+
* HTTP GET /syslog/event
|
|
85
|
+
* Java method: org.openremote.model.syslog.SyslogResource.getEvents
|
|
86
|
+
*/
|
|
87
|
+
getEvents(queryParams?: {
|
|
88
|
+
level?: Model.SyslogLevel;
|
|
89
|
+
per_page?: number;
|
|
90
|
+
page?: number;
|
|
91
|
+
from?: number;
|
|
92
|
+
to?: number;
|
|
93
|
+
category?: Model.SyslogCategory[];
|
|
94
|
+
subCategory?: string[];
|
|
95
|
+
}, options?: O): RestResponse<any>;
|
|
29
96
|
}
|
|
30
97
|
export declare class NotificationResourceClient<O> {
|
|
31
98
|
protected httpClient: HttpClient<O>;
|
|
@@ -81,305 +148,292 @@ export declare class NotificationResourceClient<O> {
|
|
|
81
148
|
targetId?: string;
|
|
82
149
|
}, options?: O): RestResponse<void>;
|
|
83
150
|
}
|
|
84
|
-
export declare class
|
|
151
|
+
export declare class ConfigurationResourceClient<O> {
|
|
85
152
|
protected httpClient: HttpClient<O>;
|
|
86
153
|
constructor(httpClient: HttpClient<O>);
|
|
87
154
|
/**
|
|
88
|
-
* HTTP
|
|
89
|
-
* Java method: org.openremote.model.
|
|
90
|
-
*/
|
|
91
|
-
createGlobalRuleset(ruleset: Model.GlobalRuleset, options?: O): RestResponse<number>;
|
|
92
|
-
/**
|
|
93
|
-
* HTTP GET /rules
|
|
94
|
-
* Java method: org.openremote.model.rules.RulesResource.getGlobalRulesets
|
|
95
|
-
*/
|
|
96
|
-
getGlobalRulesets(queryParams?: {
|
|
97
|
-
language?: Model.RulesetLang[];
|
|
98
|
-
fullyPopulate?: boolean;
|
|
99
|
-
}, options?: O): RestResponse<Model.GlobalRuleset[]>;
|
|
100
|
-
/**
|
|
101
|
-
* HTTP POST /rules/asset
|
|
102
|
-
* Java method: org.openremote.model.rules.RulesResource.createAssetRuleset
|
|
103
|
-
*/
|
|
104
|
-
createAssetRuleset(ruleset: Model.AssetRuleset, options?: O): RestResponse<number>;
|
|
105
|
-
/**
|
|
106
|
-
* HTTP GET /rules/asset/for/{assetId}
|
|
107
|
-
* Java method: org.openremote.model.rules.RulesResource.getAssetRulesets
|
|
155
|
+
* HTTP GET /configuration/manager
|
|
156
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfig
|
|
108
157
|
*/
|
|
109
|
-
|
|
110
|
-
language?: Model.RulesetLang[];
|
|
111
|
-
fullyPopulate?: boolean;
|
|
112
|
-
}, options?: O): RestResponse<Model.AssetRuleset[]>;
|
|
158
|
+
getManagerConfig(options?: O): RestResponse<Model.ManagerAppConfig>;
|
|
113
159
|
/**
|
|
114
|
-
* HTTP
|
|
115
|
-
* Java method: org.openremote.model.
|
|
160
|
+
* HTTP PUT /configuration/manager
|
|
161
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.update
|
|
116
162
|
*/
|
|
117
|
-
|
|
163
|
+
update(managerConfiguration: Model.ManagerAppConfig, options?: O): RestResponse<Model.ManagerAppConfig>;
|
|
118
164
|
/**
|
|
119
|
-
* HTTP
|
|
120
|
-
* Java method: org.openremote.model.
|
|
165
|
+
* HTTP POST /configuration/manager/file
|
|
166
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.fileUpload
|
|
121
167
|
*/
|
|
122
|
-
|
|
168
|
+
fileUpload(fileInfo: Model.FileInfo, queryParams?: {
|
|
169
|
+
path?: string;
|
|
170
|
+
}, options?: O): RestResponse<string>;
|
|
123
171
|
/**
|
|
124
|
-
* HTTP
|
|
125
|
-
* Java method: org.openremote.model.
|
|
172
|
+
* HTTP GET /configuration/manager/image/{filename: .+}
|
|
173
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfigImage
|
|
126
174
|
*/
|
|
127
|
-
|
|
175
|
+
getManagerConfigImage(filename: string, options?: O): RestResponse<any>;
|
|
176
|
+
}
|
|
177
|
+
export declare class AssetPredictedDatapointResourceClient<O> {
|
|
178
|
+
protected httpClient: HttpClient<O>;
|
|
179
|
+
constructor(httpClient: HttpClient<O>);
|
|
128
180
|
/**
|
|
129
|
-
* HTTP
|
|
130
|
-
* Java method: org.openremote.model.
|
|
181
|
+
* HTTP POST /asset/predicted/{assetId}/{attributeName}
|
|
182
|
+
* Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.getPredictedDatapoints
|
|
131
183
|
*/
|
|
132
|
-
|
|
184
|
+
getPredictedDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
|
|
133
185
|
/**
|
|
134
|
-
* HTTP
|
|
135
|
-
* Java method: org.openremote.model.
|
|
186
|
+
* HTTP PUT /asset/predicted/{assetId}/{attributeName}
|
|
187
|
+
* Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.writePredictedDatapoints
|
|
136
188
|
*/
|
|
137
|
-
|
|
189
|
+
writePredictedDatapoints(assetId: string, attributeName: string, predictedDatapoints: Model.ValueDatapoint<any>[], options?: O): RestResponse<void>;
|
|
190
|
+
}
|
|
191
|
+
export declare class AgentResourceClient<O> {
|
|
192
|
+
protected httpClient: HttpClient<O>;
|
|
193
|
+
constructor(httpClient: HttpClient<O>);
|
|
138
194
|
/**
|
|
139
|
-
* HTTP GET /
|
|
140
|
-
* Java method: org.openremote.model.
|
|
195
|
+
* HTTP GET /agent/assetDiscovery/{agentId}
|
|
196
|
+
* Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetDiscovery
|
|
141
197
|
*/
|
|
142
|
-
|
|
198
|
+
doProtocolAssetDiscovery(agentId: string, queryParams?: {
|
|
199
|
+
realm?: string;
|
|
200
|
+
}, options?: O): RestResponse<Model.AssetTreeNode[]>;
|
|
143
201
|
/**
|
|
144
|
-
* HTTP
|
|
145
|
-
* Java method: org.openremote.model.
|
|
202
|
+
* HTTP POST /agent/assetImport/{agentId}
|
|
203
|
+
* Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetImport
|
|
146
204
|
*/
|
|
147
|
-
|
|
205
|
+
doProtocolAssetImport(agentId: string, fileInfo: Model.FileInfo, queryParams?: {
|
|
206
|
+
realm?: string;
|
|
207
|
+
}, options?: O): RestResponse<Model.AssetTreeNode[]>;
|
|
148
208
|
/**
|
|
149
|
-
* HTTP
|
|
150
|
-
* Java method: org.openremote.model.
|
|
209
|
+
* HTTP GET /agent/instanceDiscovery/{agentType}
|
|
210
|
+
* Java method: org.openremote.model.asset.agent.AgentResource.doProtocolInstanceDiscovery
|
|
151
211
|
*/
|
|
152
|
-
|
|
212
|
+
doProtocolInstanceDiscovery(agentType: string, queryParams?: {
|
|
213
|
+
parentId?: string;
|
|
214
|
+
realm?: string;
|
|
215
|
+
}, options?: O): RestResponse<Model.Agent[]>;
|
|
216
|
+
}
|
|
217
|
+
export declare class ExternalServiceResourceClient<O> {
|
|
218
|
+
protected httpClient: HttpClient<O>;
|
|
219
|
+
constructor(httpClient: HttpClient<O>);
|
|
153
220
|
/**
|
|
154
|
-
*
|
|
155
|
-
*
|
|
221
|
+
* Response code 200 - List of registered external services
|
|
222
|
+
* HTTP GET /service
|
|
223
|
+
* Java method: org.openremote.model.services.ExternalServiceResource.getServices
|
|
156
224
|
*/
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
}, options?: O): RestResponse<Model.RealmRuleset[]>;
|
|
225
|
+
getServices(queryParams?: {
|
|
226
|
+
realm?: string;
|
|
227
|
+
}, options?: O): RestResponse<Model.ExternalService[]>;
|
|
161
228
|
/**
|
|
162
|
-
*
|
|
163
|
-
*
|
|
229
|
+
* Response code 200 - Service registered successfully
|
|
230
|
+
* Response code 400 - Invalid external service object
|
|
231
|
+
* Response code 409 - ExternalService instance already registered
|
|
232
|
+
* HTTP POST /service
|
|
233
|
+
* Java method: org.openremote.model.services.ExternalServiceResource.registerService
|
|
164
234
|
*/
|
|
165
|
-
|
|
235
|
+
registerService(service: Model.ExternalService, options?: O): RestResponse<Model.ExternalService>;
|
|
166
236
|
/**
|
|
167
|
-
*
|
|
168
|
-
*
|
|
237
|
+
* Response code 200 - List of registered external services
|
|
238
|
+
* HTTP GET /service/global
|
|
239
|
+
* Java method: org.openremote.model.services.ExternalServiceResource.getGlobalServices
|
|
169
240
|
*/
|
|
170
|
-
|
|
241
|
+
getGlobalServices(options?: O): RestResponse<Model.ExternalService[]>;
|
|
171
242
|
/**
|
|
172
|
-
*
|
|
173
|
-
*
|
|
243
|
+
* Response code 200 - Service registered successfully
|
|
244
|
+
* Response code 400 - Invalid external service object
|
|
245
|
+
* Response code 409 - ExternalService instance already registered
|
|
246
|
+
* HTTP POST /service/global
|
|
247
|
+
* Java method: org.openremote.model.services.ExternalServiceResource.registerGlobalService
|
|
174
248
|
*/
|
|
175
|
-
|
|
249
|
+
registerGlobalService(service: Model.ExternalService, options?: O): RestResponse<Model.ExternalService>;
|
|
176
250
|
/**
|
|
177
|
-
*
|
|
178
|
-
*
|
|
251
|
+
* Response code 204 - Service deregistered successfully
|
|
252
|
+
* Response code 404 - Service instance not found
|
|
253
|
+
* HTTP DELETE /service/{serviceId}/{instanceId}
|
|
254
|
+
* Java method: org.openremote.model.services.ExternalServiceResource.deregisterService
|
|
179
255
|
*/
|
|
180
|
-
|
|
256
|
+
deregisterService(serviceId: string, instanceId: number, options?: O): RestResponse<void>;
|
|
181
257
|
/**
|
|
182
|
-
*
|
|
183
|
-
*
|
|
258
|
+
* Response code 200 - ExternalService retrieved successfully
|
|
259
|
+
* Response code 404 - ExternalService not found
|
|
260
|
+
* HTTP GET /service/{serviceId}/{instanceId}
|
|
261
|
+
* Java method: org.openremote.model.services.ExternalServiceResource.getService
|
|
184
262
|
*/
|
|
185
|
-
|
|
263
|
+
getService(serviceId: string, instanceId: number, options?: O): RestResponse<Model.ExternalService>;
|
|
186
264
|
/**
|
|
187
|
-
*
|
|
188
|
-
*
|
|
265
|
+
* Response code 204 - Heartbeat sent successfully
|
|
266
|
+
* Response code 404 - Service instance not found
|
|
267
|
+
* HTTP PUT /service/{serviceId}/{instanceId}
|
|
268
|
+
* Java method: org.openremote.model.services.ExternalServiceResource.heartbeat
|
|
189
269
|
*/
|
|
190
|
-
|
|
270
|
+
heartbeat(serviceId: string, instanceId: number, options?: O): RestResponse<void>;
|
|
191
271
|
}
|
|
192
|
-
export declare class
|
|
272
|
+
export declare class StatusResourceClient<O> {
|
|
193
273
|
protected httpClient: HttpClient<O>;
|
|
194
274
|
constructor(httpClient: HttpClient<O>);
|
|
195
275
|
/**
|
|
196
|
-
* HTTP GET /
|
|
197
|
-
* Java method: org.openremote.model.
|
|
276
|
+
* HTTP GET /health
|
|
277
|
+
* Java method: org.openremote.model.system.StatusResource.getHealthStatus
|
|
198
278
|
*/
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
}, options?: O): RestResponse<Model.AssetDescriptor[]>;
|
|
279
|
+
getHealthStatus(options?: O): RestResponse<{
|
|
280
|
+
[index: string]: any;
|
|
281
|
+
}>;
|
|
203
282
|
/**
|
|
204
|
-
* HTTP GET /
|
|
205
|
-
* Java method: org.openremote.model.
|
|
283
|
+
* HTTP GET /info
|
|
284
|
+
* Java method: org.openremote.model.system.StatusResource.getInfo
|
|
206
285
|
*/
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
}
|
|
286
|
+
getInfo(options?: O): RestResponse<{
|
|
287
|
+
[index: string]: any;
|
|
288
|
+
}>;
|
|
289
|
+
}
|
|
290
|
+
export declare class AssetResourceClient<O> {
|
|
291
|
+
protected httpClient: HttpClient<O>;
|
|
292
|
+
constructor(httpClient: HttpClient<O>);
|
|
210
293
|
/**
|
|
211
|
-
* HTTP
|
|
212
|
-
* Java method: org.openremote.model.asset.
|
|
294
|
+
* HTTP POST /asset
|
|
295
|
+
* Java method: org.openremote.model.asset.AssetResource.create
|
|
213
296
|
*/
|
|
214
|
-
|
|
215
|
-
parentId?: string;
|
|
216
|
-
parentType?: string;
|
|
217
|
-
}, options?: O): RestResponse<Model.AssetTypeInfo[]>;
|
|
297
|
+
create(asset: Model.Asset, options?: O): RestResponse<Model.Asset>;
|
|
218
298
|
/**
|
|
219
|
-
* HTTP
|
|
220
|
-
* Java method: org.openremote.model.asset.
|
|
299
|
+
* HTTP DELETE /asset
|
|
300
|
+
* Java method: org.openremote.model.asset.AssetResource.delete
|
|
221
301
|
*/
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
}, options?: O): RestResponse<
|
|
302
|
+
delete(queryParams?: {
|
|
303
|
+
assetId?: string[];
|
|
304
|
+
}, options?: O): RestResponse<void>;
|
|
225
305
|
/**
|
|
226
|
-
* HTTP
|
|
227
|
-
* Java method: org.openremote.model.asset.
|
|
306
|
+
* HTTP PUT /asset/attributes
|
|
307
|
+
* Java method: org.openremote.model.asset.AssetResource.writeAttributeValues
|
|
228
308
|
*/
|
|
229
|
-
|
|
230
|
-
parentId?: string;
|
|
231
|
-
}, options?: O): RestResponse<{
|
|
232
|
-
[index: string]: Model.MetaItemDescriptor;
|
|
233
|
-
}>;
|
|
309
|
+
writeAttributeValues(attributeStates: Model.AttributeState[], options?: O): RestResponse<Model.AttributeWriteResult[]>;
|
|
234
310
|
/**
|
|
235
|
-
* HTTP
|
|
236
|
-
* Java method: org.openremote.model.asset.
|
|
311
|
+
* HTTP PUT /asset/attributes/timestamp
|
|
312
|
+
* Java method: org.openremote.model.asset.AssetResource.writeAttributeEvents
|
|
237
313
|
*/
|
|
238
|
-
|
|
239
|
-
parentId?: string;
|
|
240
|
-
}, options?: O): RestResponse<{
|
|
241
|
-
[index: string]: Model.ValueDescriptor;
|
|
242
|
-
}>;
|
|
243
|
-
}
|
|
244
|
-
export declare class GatewayClientResourceClient<O> {
|
|
245
|
-
protected httpClient: HttpClient<O>;
|
|
246
|
-
constructor(httpClient: HttpClient<O>);
|
|
314
|
+
writeAttributeEvents(attributeEvents: Model.AttributeEvent[], options?: O): RestResponse<Model.AttributeWriteResult[]>;
|
|
247
315
|
/**
|
|
248
|
-
* HTTP
|
|
249
|
-
* Java method: org.openremote.model.
|
|
316
|
+
* HTTP POST /asset/count
|
|
317
|
+
* Java method: org.openremote.model.asset.AssetResource.queryCount
|
|
250
318
|
*/
|
|
251
|
-
|
|
252
|
-
realm?: string[];
|
|
253
|
-
}, options?: O): RestResponse<void>;
|
|
319
|
+
queryCount(query: Model.AssetQuery, options?: O): RestResponse<number>;
|
|
254
320
|
/**
|
|
255
|
-
* HTTP
|
|
256
|
-
* Java method: org.openremote.model.
|
|
321
|
+
* HTTP DELETE /asset/parent
|
|
322
|
+
* Java method: org.openremote.model.asset.AssetResource.updateNoneParent
|
|
257
323
|
*/
|
|
258
|
-
|
|
324
|
+
updateNoneParent(queryParams?: {
|
|
325
|
+
assetIds?: string[];
|
|
326
|
+
}, options?: O): RestResponse<void>;
|
|
259
327
|
/**
|
|
260
|
-
* HTTP
|
|
261
|
-
* Java method: org.openremote.model.
|
|
328
|
+
* HTTP GET /asset/partial/{assetId}
|
|
329
|
+
* Java method: org.openremote.model.asset.AssetResource.getPartial
|
|
262
330
|
*/
|
|
263
|
-
|
|
331
|
+
getPartial(assetId: string, options?: O): RestResponse<Model.Asset>;
|
|
264
332
|
/**
|
|
265
|
-
* HTTP
|
|
266
|
-
* Java method: org.openremote.model.
|
|
333
|
+
* HTTP POST /asset/query
|
|
334
|
+
* Java method: org.openremote.model.asset.AssetResource.queryAssets
|
|
267
335
|
*/
|
|
268
|
-
|
|
336
|
+
queryAssets(query: Model.AssetQuery, options?: O): RestResponse<Model.Asset[]>;
|
|
269
337
|
/**
|
|
270
|
-
* HTTP
|
|
271
|
-
* Java method: org.openremote.model.
|
|
338
|
+
* HTTP POST /asset/tree
|
|
339
|
+
* Java method: org.openremote.model.asset.AssetResource.queryAssetTree
|
|
272
340
|
*/
|
|
273
|
-
|
|
341
|
+
queryAssetTree(query: Model.AssetQuery, options?: O): RestResponse<Model.AssetTree>;
|
|
274
342
|
/**
|
|
275
|
-
* HTTP GET /
|
|
276
|
-
* Java method: org.openremote.model.
|
|
343
|
+
* HTTP GET /asset/user/current
|
|
344
|
+
* Java method: org.openremote.model.asset.AssetResource.getCurrentUserAssets
|
|
277
345
|
*/
|
|
278
|
-
|
|
279
|
-
}
|
|
280
|
-
export declare class AssetDatapointResourceClient<O> {
|
|
281
|
-
protected httpClient: HttpClient<O>;
|
|
282
|
-
constructor(httpClient: HttpClient<O>);
|
|
346
|
+
getCurrentUserAssets(options?: O): RestResponse<Model.Asset[]>;
|
|
283
347
|
/**
|
|
284
|
-
* HTTP
|
|
285
|
-
* Java method: org.openremote.model.
|
|
348
|
+
* HTTP POST /asset/user/link
|
|
349
|
+
* Java method: org.openremote.model.asset.AssetResource.createUserAssetLinks
|
|
286
350
|
*/
|
|
287
|
-
|
|
288
|
-
attributeRefs?: string;
|
|
289
|
-
fromTimestamp?: number;
|
|
290
|
-
toTimestamp?: number;
|
|
291
|
-
format?: Model.DatapointExportFormat;
|
|
292
|
-
}, options?: O): RestResponse<any>;
|
|
351
|
+
createUserAssetLinks(userAssets: Model.UserAssetLink[], options?: O): RestResponse<void>;
|
|
293
352
|
/**
|
|
294
|
-
* HTTP GET /asset/
|
|
295
|
-
* Java method: org.openremote.model.
|
|
353
|
+
* HTTP GET /asset/user/link
|
|
354
|
+
* Java method: org.openremote.model.asset.AssetResource.getUserAssetLinks
|
|
296
355
|
*/
|
|
297
|
-
|
|
356
|
+
getUserAssetLinks(queryParams?: {
|
|
357
|
+
realm?: string;
|
|
358
|
+
userId?: string;
|
|
298
359
|
assetId?: string;
|
|
299
|
-
|
|
300
|
-
}, options?: O): RestResponse<Model.DatapointPeriod>;
|
|
360
|
+
}, options?: O): RestResponse<Model.UserAssetLink[]>;
|
|
301
361
|
/**
|
|
302
|
-
* HTTP POST /asset/
|
|
303
|
-
* Java method: org.openremote.model.
|
|
362
|
+
* HTTP POST /asset/user/link/delete
|
|
363
|
+
* Java method: org.openremote.model.asset.AssetResource.deleteUserAssetLinks
|
|
304
364
|
*/
|
|
305
|
-
|
|
306
|
-
}
|
|
307
|
-
export declare class ProvisioningResourceClient<O> {
|
|
308
|
-
protected httpClient: HttpClient<O>;
|
|
309
|
-
constructor(httpClient: HttpClient<O>);
|
|
365
|
+
deleteUserAssetLinks(userAssets: Model.UserAssetLink[], options?: O): RestResponse<void>;
|
|
310
366
|
/**
|
|
311
|
-
* HTTP
|
|
312
|
-
* Java method: org.openremote.model.
|
|
367
|
+
* HTTP DELETE /asset/user/link/{realm}/{userId}
|
|
368
|
+
* Java method: org.openremote.model.asset.AssetResource.deleteAllUserAssetLinks
|
|
313
369
|
*/
|
|
314
|
-
|
|
370
|
+
deleteAllUserAssetLinks(realm: string, userId: string, options?: O): RestResponse<void>;
|
|
315
371
|
/**
|
|
316
|
-
* HTTP
|
|
317
|
-
* Java method: org.openremote.model.
|
|
372
|
+
* HTTP DELETE /asset/user/link/{realm}/{userId}/{assetId}
|
|
373
|
+
* Java method: org.openremote.model.asset.AssetResource.deleteUserAssetLink
|
|
318
374
|
*/
|
|
319
|
-
|
|
375
|
+
deleteUserAssetLink(realm: string, userId: string, assetId: string, options?: O): RestResponse<void>;
|
|
320
376
|
/**
|
|
321
|
-
* HTTP
|
|
322
|
-
* Java method: org.openremote.model.
|
|
377
|
+
* HTTP GET /asset/{assetId}
|
|
378
|
+
* Java method: org.openremote.model.asset.AssetResource.get
|
|
323
379
|
*/
|
|
324
|
-
|
|
380
|
+
get(assetId: string, options?: O): RestResponse<Model.Asset>;
|
|
325
381
|
/**
|
|
326
|
-
* HTTP PUT /
|
|
327
|
-
* Java method: org.openremote.model.
|
|
382
|
+
* HTTP PUT /asset/{assetId}
|
|
383
|
+
* Java method: org.openremote.model.asset.AssetResource.update
|
|
328
384
|
*/
|
|
329
|
-
|
|
330
|
-
}
|
|
331
|
-
export declare class AlarmResourceClient<O> {
|
|
332
|
-
protected httpClient: HttpClient<O>;
|
|
333
|
-
constructor(httpClient: HttpClient<O>);
|
|
385
|
+
update(assetId: string, asset: Model.Asset, options?: O): RestResponse<Model.Asset>;
|
|
334
386
|
/**
|
|
335
|
-
* HTTP
|
|
336
|
-
* Java method: org.openremote.model.
|
|
387
|
+
* HTTP PUT /asset/{assetId}/attribute/{attributeName}
|
|
388
|
+
* Java method: org.openremote.model.asset.AssetResource.writeAttributeValue
|
|
337
389
|
*/
|
|
338
|
-
|
|
339
|
-
assetIds?: string[];
|
|
340
|
-
}, options?: O): RestResponse<Model.SentAlarm>;
|
|
390
|
+
writeAttributeValue$PUT$asset_assetId_attribute_attributeName(assetId: string, attributeName: string, value: any, options?: O): RestResponse<Model.AttributeWriteResult>;
|
|
341
391
|
/**
|
|
342
|
-
* HTTP
|
|
343
|
-
* Java method: org.openremote.model.
|
|
392
|
+
* HTTP PUT /asset/{assetId}/attribute/{attributeName}/{timestamp}
|
|
393
|
+
* Java method: org.openremote.model.asset.AssetResource.writeAttributeValue
|
|
344
394
|
*/
|
|
345
|
-
|
|
346
|
-
realm?: string;
|
|
347
|
-
status?: Model.AlarmStatus;
|
|
348
|
-
assetId?: string;
|
|
349
|
-
assigneeId?: string;
|
|
350
|
-
}, options?: O): RestResponse<Model.SentAlarm[]>;
|
|
395
|
+
writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(assetId: string, attributeName: string, timestamp: number, value: any, options?: O): RestResponse<Model.AttributeWriteResult>;
|
|
351
396
|
/**
|
|
352
|
-
* HTTP
|
|
353
|
-
* Java method: org.openremote.model.
|
|
397
|
+
* HTTP PUT /asset/{parentAssetId}/child
|
|
398
|
+
* Java method: org.openremote.model.asset.AssetResource.updateParent
|
|
354
399
|
*/
|
|
355
|
-
|
|
400
|
+
updateParent(parentAssetId: string, queryParams?: {
|
|
401
|
+
assetIds?: string[];
|
|
402
|
+
}, options?: O): RestResponse<void>;
|
|
403
|
+
}
|
|
404
|
+
export declare class DashboardResourceClient<O> {
|
|
405
|
+
protected httpClient: HttpClient<O>;
|
|
406
|
+
constructor(httpClient: HttpClient<O>);
|
|
356
407
|
/**
|
|
357
|
-
* HTTP
|
|
358
|
-
* Java method: org.openremote.model.
|
|
408
|
+
* HTTP POST /dashboard
|
|
409
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.create
|
|
359
410
|
*/
|
|
360
|
-
|
|
411
|
+
create(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
|
|
361
412
|
/**
|
|
362
|
-
* HTTP
|
|
363
|
-
* Java method: org.openremote.model.
|
|
413
|
+
* HTTP PUT /dashboard
|
|
414
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.update
|
|
364
415
|
*/
|
|
365
|
-
|
|
416
|
+
update(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
|
|
366
417
|
/**
|
|
367
|
-
* HTTP
|
|
368
|
-
* Java method: org.openremote.model.
|
|
418
|
+
* HTTP GET /dashboard/all/{realm}
|
|
419
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.getAllRealmDashboards
|
|
369
420
|
*/
|
|
370
|
-
|
|
421
|
+
getAllRealmDashboards(realm: string, options?: O): RestResponse<Model.Dashboard[]>;
|
|
371
422
|
/**
|
|
372
|
-
* HTTP
|
|
373
|
-
* Java method: org.openremote.model.
|
|
423
|
+
* HTTP POST /dashboard/query
|
|
424
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.query
|
|
374
425
|
*/
|
|
375
|
-
|
|
426
|
+
query(dashboardQuery: Model.DashboardQuery, options?: O): RestResponse<Model.Dashboard[]>;
|
|
376
427
|
/**
|
|
377
|
-
* HTTP
|
|
378
|
-
* Java method: org.openremote.model.
|
|
428
|
+
* HTTP DELETE /dashboard/{realm}/{dashboardId}
|
|
429
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.delete
|
|
379
430
|
*/
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
431
|
+
delete(realm: string, dashboardId: string, options?: O): RestResponse<void>;
|
|
432
|
+
/**
|
|
433
|
+
* HTTP GET /dashboard/{realm}/{dashboardId}
|
|
434
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.get
|
|
435
|
+
*/
|
|
436
|
+
get(realm: string, dashboardId: string, options?: O): RestResponse<Model.Dashboard>;
|
|
383
437
|
}
|
|
384
438
|
export declare class ConsoleResourceClient<O> {
|
|
385
439
|
protected httpClient: HttpClient<O>;
|
|
@@ -390,6 +444,40 @@ export declare class ConsoleResourceClient<O> {
|
|
|
390
444
|
*/
|
|
391
445
|
register(consoleRegistration: Model.ConsoleRegistration, options?: O): RestResponse<Model.ConsoleRegistration>;
|
|
392
446
|
}
|
|
447
|
+
export declare class RealmResourceClient<O> {
|
|
448
|
+
protected httpClient: HttpClient<O>;
|
|
449
|
+
constructor(httpClient: HttpClient<O>);
|
|
450
|
+
/**
|
|
451
|
+
* HTTP POST /realm
|
|
452
|
+
* Java method: org.openremote.model.security.RealmResource.create
|
|
453
|
+
*/
|
|
454
|
+
create(realm: Model.Realm, options?: O): RestResponse<void>;
|
|
455
|
+
/**
|
|
456
|
+
* HTTP GET /realm
|
|
457
|
+
* Java method: org.openremote.model.security.RealmResource.getAll
|
|
458
|
+
*/
|
|
459
|
+
getAll(options?: O): RestResponse<Model.Realm[]>;
|
|
460
|
+
/**
|
|
461
|
+
* HTTP GET /realm/accessible
|
|
462
|
+
* Java method: org.openremote.model.security.RealmResource.getAccessible
|
|
463
|
+
*/
|
|
464
|
+
getAccessible(options?: O): RestResponse<Model.Realm[]>;
|
|
465
|
+
/**
|
|
466
|
+
* HTTP DELETE /realm/{name}
|
|
467
|
+
* Java method: org.openremote.model.security.RealmResource.delete
|
|
468
|
+
*/
|
|
469
|
+
delete(name: string, options?: O): RestResponse<void>;
|
|
470
|
+
/**
|
|
471
|
+
* HTTP GET /realm/{name}
|
|
472
|
+
* Java method: org.openremote.model.security.RealmResource.get
|
|
473
|
+
*/
|
|
474
|
+
get(name: string, options?: O): RestResponse<Model.Realm>;
|
|
475
|
+
/**
|
|
476
|
+
* HTTP PUT /realm/{name}
|
|
477
|
+
* Java method: org.openremote.model.security.RealmResource.update
|
|
478
|
+
*/
|
|
479
|
+
update(name: string, realm: Model.Realm, options?: O): RestResponse<void>;
|
|
480
|
+
}
|
|
393
481
|
export declare class UserResourceClient<O> {
|
|
394
482
|
protected httpClient: HttpClient<O>;
|
|
395
483
|
constructor(httpClient: HttpClient<O>);
|
|
@@ -514,63 +602,134 @@ export declare class UserResourceClient<O> {
|
|
|
514
602
|
*/
|
|
515
603
|
get(realm: string, userId: string, options?: O): RestResponse<Model.User>;
|
|
516
604
|
}
|
|
517
|
-
export declare class
|
|
605
|
+
export declare class RulesResourceClient<O> {
|
|
518
606
|
protected httpClient: HttpClient<O>;
|
|
519
607
|
constructor(httpClient: HttpClient<O>);
|
|
520
608
|
/**
|
|
521
|
-
* HTTP
|
|
522
|
-
* Java method: org.openremote.model.
|
|
609
|
+
* HTTP POST /rules
|
|
610
|
+
* Java method: org.openremote.model.rules.RulesResource.createGlobalRuleset
|
|
523
611
|
*/
|
|
524
|
-
|
|
612
|
+
createGlobalRuleset(ruleset: Model.GlobalRuleset, options?: O): RestResponse<number>;
|
|
525
613
|
/**
|
|
526
|
-
* HTTP
|
|
527
|
-
* Java method: org.openremote.model.
|
|
614
|
+
* HTTP GET /rules
|
|
615
|
+
* Java method: org.openremote.model.rules.RulesResource.getGlobalRulesets
|
|
528
616
|
*/
|
|
529
|
-
|
|
617
|
+
getGlobalRulesets(queryParams?: {
|
|
618
|
+
language?: Model.RulesetLang[];
|
|
619
|
+
fullyPopulate?: boolean;
|
|
620
|
+
}, options?: O): RestResponse<Model.GlobalRuleset[]>;
|
|
530
621
|
/**
|
|
531
|
-
* HTTP POST /
|
|
532
|
-
* Java method: org.openremote.model.
|
|
622
|
+
* HTTP POST /rules/asset
|
|
623
|
+
* Java method: org.openremote.model.rules.RulesResource.createAssetRuleset
|
|
624
|
+
*/
|
|
625
|
+
createAssetRuleset(ruleset: Model.AssetRuleset, options?: O): RestResponse<number>;
|
|
626
|
+
/**
|
|
627
|
+
* HTTP GET /rules/asset/for/{assetId}
|
|
628
|
+
* Java method: org.openremote.model.rules.RulesResource.getAssetRulesets
|
|
629
|
+
*/
|
|
630
|
+
getAssetRulesets(assetId: string, queryParams?: {
|
|
631
|
+
language?: Model.RulesetLang[];
|
|
632
|
+
fullyPopulate?: boolean;
|
|
633
|
+
}, options?: O): RestResponse<Model.AssetRuleset[]>;
|
|
634
|
+
/**
|
|
635
|
+
* HTTP DELETE /rules/asset/{id}
|
|
636
|
+
* Java method: org.openremote.model.rules.RulesResource.deleteAssetRuleset
|
|
637
|
+
*/
|
|
638
|
+
deleteAssetRuleset(id: number, options?: O): RestResponse<void>;
|
|
639
|
+
/**
|
|
640
|
+
* HTTP GET /rules/asset/{id}
|
|
641
|
+
* Java method: org.openremote.model.rules.RulesResource.getAssetRuleset
|
|
642
|
+
*/
|
|
643
|
+
getAssetRuleset(id: number, options?: O): RestResponse<Model.AssetRuleset>;
|
|
644
|
+
/**
|
|
645
|
+
* HTTP PUT /rules/asset/{id}
|
|
646
|
+
* Java method: org.openremote.model.rules.RulesResource.updateAssetRuleset
|
|
647
|
+
*/
|
|
648
|
+
updateAssetRuleset(id: number, ruleset: Model.AssetRuleset, options?: O): RestResponse<void>;
|
|
649
|
+
/**
|
|
650
|
+
* HTTP GET /rules/geofences/{assetId}
|
|
651
|
+
* Java method: org.openremote.model.rules.RulesResource.getAssetGeofences
|
|
652
|
+
*/
|
|
653
|
+
getAssetGeofences(assetId: string, options?: O): RestResponse<Model.GeofenceDefinition[]>;
|
|
654
|
+
/**
|
|
655
|
+
* HTTP GET /rules/info/asset/{assetId}
|
|
656
|
+
* Java method: org.openremote.model.rules.RulesResource.getAssetEngineInfo
|
|
657
|
+
*/
|
|
658
|
+
getAssetEngineInfo(assetId: string, options?: O): RestResponse<Model.RulesEngineInfo>;
|
|
659
|
+
/**
|
|
660
|
+
* HTTP GET /rules/info/global
|
|
661
|
+
* Java method: org.openremote.model.rules.RulesResource.getGlobalEngineInfo
|
|
662
|
+
*/
|
|
663
|
+
getGlobalEngineInfo(options?: O): RestResponse<Model.RulesEngineInfo>;
|
|
664
|
+
/**
|
|
665
|
+
* HTTP GET /rules/info/realm/{realm}
|
|
666
|
+
* Java method: org.openremote.model.rules.RulesResource.getRealmEngineInfo
|
|
667
|
+
*/
|
|
668
|
+
getRealmEngineInfo(realm: string, options?: O): RestResponse<Model.RulesEngineInfo>;
|
|
669
|
+
/**
|
|
670
|
+
* HTTP POST /rules/realm
|
|
671
|
+
* Java method: org.openremote.model.rules.RulesResource.createRealmRuleset
|
|
672
|
+
*/
|
|
673
|
+
createRealmRuleset(ruleset: Model.RealmRuleset, options?: O): RestResponse<number>;
|
|
674
|
+
/**
|
|
675
|
+
* HTTP GET /rules/realm/for/{realm}
|
|
676
|
+
* Java method: org.openremote.model.rules.RulesResource.getRealmRulesets
|
|
677
|
+
*/
|
|
678
|
+
getRealmRulesets(realm: string, queryParams?: {
|
|
679
|
+
language?: Model.RulesetLang[];
|
|
680
|
+
fullyPopulate?: boolean;
|
|
681
|
+
}, options?: O): RestResponse<Model.RealmRuleset[]>;
|
|
682
|
+
/**
|
|
683
|
+
* HTTP DELETE /rules/realm/{id}
|
|
684
|
+
* Java method: org.openremote.model.rules.RulesResource.deleteRealmRuleset
|
|
685
|
+
*/
|
|
686
|
+
deleteRealmRuleset(id: number, options?: O): RestResponse<void>;
|
|
687
|
+
/**
|
|
688
|
+
* HTTP GET /rules/realm/{id}
|
|
689
|
+
* Java method: org.openremote.model.rules.RulesResource.getRealmRuleset
|
|
690
|
+
*/
|
|
691
|
+
getRealmRuleset(id: number, options?: O): RestResponse<Model.RealmRuleset>;
|
|
692
|
+
/**
|
|
693
|
+
* HTTP PUT /rules/realm/{id}
|
|
694
|
+
* Java method: org.openremote.model.rules.RulesResource.updateRealmRuleset
|
|
695
|
+
*/
|
|
696
|
+
updateRealmRuleset(id: number, ruleset: Model.RealmRuleset, options?: O): RestResponse<void>;
|
|
697
|
+
/**
|
|
698
|
+
* HTTP DELETE /rules/{id}
|
|
699
|
+
* Java method: org.openremote.model.rules.RulesResource.deleteGlobalRuleset
|
|
700
|
+
*/
|
|
701
|
+
deleteGlobalRuleset(id: number, options?: O): RestResponse<void>;
|
|
702
|
+
/**
|
|
703
|
+
* HTTP GET /rules/{id}
|
|
704
|
+
* Java method: org.openremote.model.rules.RulesResource.getGlobalRuleset
|
|
533
705
|
*/
|
|
534
|
-
|
|
535
|
-
path?: string;
|
|
536
|
-
}, options?: O): RestResponse<string>;
|
|
706
|
+
getGlobalRuleset(id: number, options?: O): RestResponse<Model.GlobalRuleset>;
|
|
537
707
|
/**
|
|
538
|
-
* HTTP
|
|
539
|
-
* Java method: org.openremote.model.
|
|
708
|
+
* HTTP PUT /rules/{id}
|
|
709
|
+
* Java method: org.openremote.model.rules.RulesResource.updateGlobalRuleset
|
|
540
710
|
*/
|
|
541
|
-
|
|
711
|
+
updateGlobalRuleset(id: number, ruleset: Model.GlobalRuleset, options?: O): RestResponse<void>;
|
|
542
712
|
}
|
|
543
|
-
export declare class
|
|
713
|
+
export declare class AppResourceClient<O> {
|
|
544
714
|
protected httpClient: HttpClient<O>;
|
|
545
715
|
constructor(httpClient: HttpClient<O>);
|
|
546
716
|
/**
|
|
547
|
-
* HTTP GET /
|
|
548
|
-
* Java method: org.openremote.model.
|
|
549
|
-
*/
|
|
550
|
-
getConfig(options?: O): RestResponse<Model.SyslogConfig>;
|
|
551
|
-
/**
|
|
552
|
-
* HTTP PUT /syslog/config
|
|
553
|
-
* Java method: org.openremote.model.syslog.SyslogResource.updateConfig
|
|
717
|
+
* HTTP GET /apps
|
|
718
|
+
* Java method: org.openremote.model.apps.AppResource.getApps
|
|
554
719
|
*/
|
|
555
|
-
|
|
720
|
+
getApps(options?: O): RestResponse<string[]>;
|
|
556
721
|
/**
|
|
557
|
-
* HTTP
|
|
558
|
-
* Java method: org.openremote.model.
|
|
722
|
+
* HTTP GET /apps/consoleConfig
|
|
723
|
+
* Java method: org.openremote.model.apps.AppResource.getConsoleConfig
|
|
559
724
|
*/
|
|
560
|
-
|
|
725
|
+
getConsoleConfig(options?: O): RestResponse<any>;
|
|
561
726
|
/**
|
|
562
|
-
* HTTP GET /
|
|
563
|
-
* Java method: org.openremote.model.
|
|
727
|
+
* HTTP GET /apps/info
|
|
728
|
+
* Java method: org.openremote.model.apps.AppResource.getAppInfos
|
|
564
729
|
*/
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
page?: number;
|
|
569
|
-
from?: number;
|
|
570
|
-
to?: number;
|
|
571
|
-
category?: Model.SyslogCategory[];
|
|
572
|
-
subCategory?: string[];
|
|
573
|
-
}, options?: O): RestResponse<any>;
|
|
730
|
+
getAppInfos(options?: O): RestResponse<{
|
|
731
|
+
[index: string]: any;
|
|
732
|
+
}>;
|
|
574
733
|
}
|
|
575
734
|
export declare class MapResourceClient<O> {
|
|
576
735
|
protected httpClient: HttpClient<O>;
|
|
@@ -618,301 +777,136 @@ export declare class MapResourceClient<O> {
|
|
|
618
777
|
[id: string]: unknown;
|
|
619
778
|
}>;
|
|
620
779
|
}
|
|
621
|
-
export declare class
|
|
622
|
-
protected httpClient: HttpClient<O>;
|
|
623
|
-
constructor(httpClient: HttpClient<O>);
|
|
624
|
-
/**
|
|
625
|
-
* HTTP GET /flow
|
|
626
|
-
* Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitions
|
|
627
|
-
*/
|
|
628
|
-
getAllNodeDefinitions(options?: O): RestResponse<Model.Node[]>;
|
|
629
|
-
/**
|
|
630
|
-
* HTTP GET /flow/{name}
|
|
631
|
-
* Java method: org.openremote.model.rules.flow.FlowResource.getNodeDefinition
|
|
632
|
-
*/
|
|
633
|
-
getNodeDefinition(name: string, options?: O): RestResponse<Model.Node>;
|
|
634
|
-
/**
|
|
635
|
-
* HTTP GET /flow/{type}
|
|
636
|
-
* Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitionsByType
|
|
637
|
-
*/
|
|
638
|
-
getAllNodeDefinitionsByType(type: Model.NodeType, options?: O): RestResponse<Model.Node[]>;
|
|
639
|
-
}
|
|
640
|
-
export declare class AgentResourceClient<O> {
|
|
780
|
+
export declare class AssetModelResourceClient<O> {
|
|
641
781
|
protected httpClient: HttpClient<O>;
|
|
642
782
|
constructor(httpClient: HttpClient<O>);
|
|
643
783
|
/**
|
|
644
|
-
* HTTP GET /
|
|
645
|
-
* Java method: org.openremote.model.asset.
|
|
646
|
-
*/
|
|
647
|
-
doProtocolAssetDiscovery(agentId: string, queryParams?: {
|
|
648
|
-
realm?: string;
|
|
649
|
-
}, options?: O): RestResponse<Model.AssetTreeNode[]>;
|
|
650
|
-
/**
|
|
651
|
-
* HTTP POST /agent/assetImport/{agentId}
|
|
652
|
-
* Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetImport
|
|
653
|
-
*/
|
|
654
|
-
doProtocolAssetImport(agentId: string, fileInfo: Model.FileInfo, queryParams?: {
|
|
655
|
-
realm?: string;
|
|
656
|
-
}, options?: O): RestResponse<Model.AssetTreeNode[]>;
|
|
657
|
-
/**
|
|
658
|
-
* HTTP GET /agent/instanceDiscovery/{agentType}
|
|
659
|
-
* Java method: org.openremote.model.asset.agent.AgentResource.doProtocolInstanceDiscovery
|
|
784
|
+
* HTTP GET /model/assetDescriptors
|
|
785
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getAssetDescriptors
|
|
660
786
|
*/
|
|
661
|
-
|
|
787
|
+
getAssetDescriptors(queryParams?: {
|
|
662
788
|
parentId?: string;
|
|
663
|
-
|
|
664
|
-
}, options?: O): RestResponse<Model.
|
|
665
|
-
}
|
|
666
|
-
export declare class AssetResourceClient<O> {
|
|
667
|
-
protected httpClient: HttpClient<O>;
|
|
668
|
-
constructor(httpClient: HttpClient<O>);
|
|
669
|
-
/**
|
|
670
|
-
* HTTP POST /asset
|
|
671
|
-
* Java method: org.openremote.model.asset.AssetResource.create
|
|
672
|
-
*/
|
|
673
|
-
create(asset: Model.Asset, options?: O): RestResponse<Model.Asset>;
|
|
674
|
-
/**
|
|
675
|
-
* HTTP DELETE /asset
|
|
676
|
-
* Java method: org.openremote.model.asset.AssetResource.delete
|
|
677
|
-
*/
|
|
678
|
-
delete(queryParams?: {
|
|
679
|
-
assetId?: string[];
|
|
680
|
-
}, options?: O): RestResponse<void>;
|
|
681
|
-
/**
|
|
682
|
-
* HTTP PUT /asset/attributes
|
|
683
|
-
* Java method: org.openremote.model.asset.AssetResource.writeAttributeValues
|
|
684
|
-
*/
|
|
685
|
-
writeAttributeValues(attributeStates: Model.AttributeState[], options?: O): RestResponse<Model.AttributeWriteResult[]>;
|
|
686
|
-
/**
|
|
687
|
-
* HTTP PUT /asset/attributes/timestamp
|
|
688
|
-
* Java method: org.openremote.model.asset.AssetResource.writeAttributeEvents
|
|
689
|
-
*/
|
|
690
|
-
writeAttributeEvents(attributeEvents: Model.AttributeEvent[], options?: O): RestResponse<Model.AttributeWriteResult[]>;
|
|
691
|
-
/**
|
|
692
|
-
* HTTP POST /asset/count
|
|
693
|
-
* Java method: org.openremote.model.asset.AssetResource.queryCount
|
|
694
|
-
*/
|
|
695
|
-
queryCount(query: Model.AssetQuery, options?: O): RestResponse<number>;
|
|
696
|
-
/**
|
|
697
|
-
* HTTP DELETE /asset/parent
|
|
698
|
-
* Java method: org.openremote.model.asset.AssetResource.updateNoneParent
|
|
699
|
-
*/
|
|
700
|
-
updateNoneParent(queryParams?: {
|
|
701
|
-
assetIds?: string[];
|
|
702
|
-
}, options?: O): RestResponse<void>;
|
|
703
|
-
/**
|
|
704
|
-
* HTTP GET /asset/partial/{assetId}
|
|
705
|
-
* Java method: org.openremote.model.asset.AssetResource.getPartial
|
|
706
|
-
*/
|
|
707
|
-
getPartial(assetId: string, options?: O): RestResponse<Model.Asset>;
|
|
708
|
-
/**
|
|
709
|
-
* HTTP POST /asset/query
|
|
710
|
-
* Java method: org.openremote.model.asset.AssetResource.queryAssets
|
|
711
|
-
*/
|
|
712
|
-
queryAssets(query: Model.AssetQuery, options?: O): RestResponse<Model.Asset[]>;
|
|
713
|
-
/**
|
|
714
|
-
* HTTP POST /asset/tree
|
|
715
|
-
* Java method: org.openremote.model.asset.AssetResource.queryAssetTree
|
|
716
|
-
*/
|
|
717
|
-
queryAssetTree(query: Model.AssetQuery, options?: O): RestResponse<Model.AssetTree>;
|
|
718
|
-
/**
|
|
719
|
-
* HTTP GET /asset/user/current
|
|
720
|
-
* Java method: org.openremote.model.asset.AssetResource.getCurrentUserAssets
|
|
721
|
-
*/
|
|
722
|
-
getCurrentUserAssets(options?: O): RestResponse<Model.Asset[]>;
|
|
723
|
-
/**
|
|
724
|
-
* HTTP POST /asset/user/link
|
|
725
|
-
* Java method: org.openremote.model.asset.AssetResource.createUserAssetLinks
|
|
726
|
-
*/
|
|
727
|
-
createUserAssetLinks(userAssets: Model.UserAssetLink[], options?: O): RestResponse<void>;
|
|
728
|
-
/**
|
|
729
|
-
* HTTP GET /asset/user/link
|
|
730
|
-
* Java method: org.openremote.model.asset.AssetResource.getUserAssetLinks
|
|
731
|
-
*/
|
|
732
|
-
getUserAssetLinks(queryParams?: {
|
|
733
|
-
realm?: string;
|
|
734
|
-
userId?: string;
|
|
735
|
-
assetId?: string;
|
|
736
|
-
}, options?: O): RestResponse<Model.UserAssetLink[]>;
|
|
737
|
-
/**
|
|
738
|
-
* HTTP POST /asset/user/link/delete
|
|
739
|
-
* Java method: org.openremote.model.asset.AssetResource.deleteUserAssetLinks
|
|
740
|
-
*/
|
|
741
|
-
deleteUserAssetLinks(userAssets: Model.UserAssetLink[], options?: O): RestResponse<void>;
|
|
742
|
-
/**
|
|
743
|
-
* HTTP DELETE /asset/user/link/{realm}/{userId}
|
|
744
|
-
* Java method: org.openremote.model.asset.AssetResource.deleteAllUserAssetLinks
|
|
745
|
-
*/
|
|
746
|
-
deleteAllUserAssetLinks(realm: string, userId: string, options?: O): RestResponse<void>;
|
|
747
|
-
/**
|
|
748
|
-
* HTTP DELETE /asset/user/link/{realm}/{userId}/{assetId}
|
|
749
|
-
* Java method: org.openremote.model.asset.AssetResource.deleteUserAssetLink
|
|
750
|
-
*/
|
|
751
|
-
deleteUserAssetLink(realm: string, userId: string, assetId: string, options?: O): RestResponse<void>;
|
|
752
|
-
/**
|
|
753
|
-
* HTTP GET /asset/{assetId}
|
|
754
|
-
* Java method: org.openremote.model.asset.AssetResource.get
|
|
755
|
-
*/
|
|
756
|
-
get(assetId: string, options?: O): RestResponse<Model.Asset>;
|
|
757
|
-
/**
|
|
758
|
-
* HTTP PUT /asset/{assetId}
|
|
759
|
-
* Java method: org.openremote.model.asset.AssetResource.update
|
|
760
|
-
*/
|
|
761
|
-
update(assetId: string, asset: Model.Asset, options?: O): RestResponse<Model.Asset>;
|
|
762
|
-
/**
|
|
763
|
-
* HTTP PUT /asset/{assetId}/attribute/{attributeName}
|
|
764
|
-
* Java method: org.openremote.model.asset.AssetResource.writeAttributeValue
|
|
765
|
-
*/
|
|
766
|
-
writeAttributeValue$PUT$asset_assetId_attribute_attributeName(assetId: string, attributeName: string, value: any, options?: O): RestResponse<Model.AttributeWriteResult>;
|
|
767
|
-
/**
|
|
768
|
-
* HTTP PUT /asset/{assetId}/attribute/{attributeName}/{timestamp}
|
|
769
|
-
* Java method: org.openremote.model.asset.AssetResource.writeAttributeValue
|
|
770
|
-
*/
|
|
771
|
-
writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(assetId: string, attributeName: string, timestamp: number, value: any, options?: O): RestResponse<Model.AttributeWriteResult>;
|
|
772
|
-
/**
|
|
773
|
-
* HTTP PUT /asset/{parentAssetId}/child
|
|
774
|
-
* Java method: org.openremote.model.asset.AssetResource.updateParent
|
|
775
|
-
*/
|
|
776
|
-
updateParent(parentAssetId: string, queryParams?: {
|
|
777
|
-
assetIds?: string[];
|
|
778
|
-
}, options?: O): RestResponse<void>;
|
|
779
|
-
}
|
|
780
|
-
export declare class RealmResourceClient<O> {
|
|
781
|
-
protected httpClient: HttpClient<O>;
|
|
782
|
-
constructor(httpClient: HttpClient<O>);
|
|
783
|
-
/**
|
|
784
|
-
* HTTP POST /realm
|
|
785
|
-
* Java method: org.openremote.model.security.RealmResource.create
|
|
786
|
-
*/
|
|
787
|
-
create(realm: Model.Realm, options?: O): RestResponse<void>;
|
|
789
|
+
parentType?: string;
|
|
790
|
+
}, options?: O): RestResponse<Model.AssetDescriptor[]>;
|
|
788
791
|
/**
|
|
789
|
-
* HTTP GET /
|
|
790
|
-
* Java method: org.openremote.model.
|
|
792
|
+
* HTTP GET /model/assetInfo/{assetType}
|
|
793
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getAssetInfo
|
|
791
794
|
*/
|
|
792
|
-
|
|
795
|
+
getAssetInfo(assetType: string, queryParams?: {
|
|
796
|
+
parentId?: string;
|
|
797
|
+
}, options?: O): RestResponse<Model.AssetTypeInfo>;
|
|
793
798
|
/**
|
|
794
|
-
* HTTP GET /
|
|
795
|
-
* Java method: org.openremote.model.
|
|
799
|
+
* HTTP GET /model/assetInfos
|
|
800
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getAssetInfos
|
|
796
801
|
*/
|
|
797
|
-
|
|
802
|
+
getAssetInfos(queryParams?: {
|
|
803
|
+
parentId?: string;
|
|
804
|
+
parentType?: string;
|
|
805
|
+
}, options?: O): RestResponse<Model.AssetTypeInfo[]>;
|
|
798
806
|
/**
|
|
799
|
-
* HTTP
|
|
800
|
-
* Java method: org.openremote.model.
|
|
807
|
+
* HTTP GET /model/getValueDescriptorSchema
|
|
808
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getValueDescriptorSchema
|
|
801
809
|
*/
|
|
802
|
-
|
|
810
|
+
getValueDescriptorSchema(queryParams?: {
|
|
811
|
+
name?: string;
|
|
812
|
+
}, options?: O): RestResponse<any>;
|
|
803
813
|
/**
|
|
804
|
-
* HTTP GET /
|
|
805
|
-
* Java method: org.openremote.model.
|
|
814
|
+
* HTTP GET /model/metaItemDescriptors
|
|
815
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getMetaItemDescriptors
|
|
806
816
|
*/
|
|
807
|
-
|
|
817
|
+
getMetaItemDescriptors(queryParams?: {
|
|
818
|
+
parentId?: string;
|
|
819
|
+
}, options?: O): RestResponse<{
|
|
820
|
+
[index: string]: Model.MetaItemDescriptor;
|
|
821
|
+
}>;
|
|
808
822
|
/**
|
|
809
|
-
* HTTP
|
|
810
|
-
* Java method: org.openremote.model.
|
|
823
|
+
* HTTP GET /model/valueDescriptors
|
|
824
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getValueDescriptors
|
|
811
825
|
*/
|
|
812
|
-
|
|
826
|
+
getValueDescriptors(queryParams?: {
|
|
827
|
+
parentId?: string;
|
|
828
|
+
}, options?: O): RestResponse<{
|
|
829
|
+
[index: string]: Model.ValueDescriptor;
|
|
830
|
+
}>;
|
|
813
831
|
}
|
|
814
|
-
export declare class
|
|
832
|
+
export declare class FlowResourceClient<O> {
|
|
815
833
|
protected httpClient: HttpClient<O>;
|
|
816
834
|
constructor(httpClient: HttpClient<O>);
|
|
817
835
|
/**
|
|
818
|
-
* HTTP
|
|
819
|
-
* Java method: org.openremote.model.
|
|
836
|
+
* HTTP GET /flow
|
|
837
|
+
* Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitions
|
|
820
838
|
*/
|
|
821
|
-
|
|
839
|
+
getAllNodeDefinitions(options?: O): RestResponse<Model.Node[]>;
|
|
822
840
|
/**
|
|
823
|
-
* HTTP
|
|
824
|
-
* Java method: org.openremote.model.
|
|
841
|
+
* HTTP GET /flow/{name}
|
|
842
|
+
* Java method: org.openremote.model.rules.flow.FlowResource.getNodeDefinition
|
|
825
843
|
*/
|
|
826
|
-
|
|
844
|
+
getNodeDefinition(name: string, options?: O): RestResponse<Model.Node>;
|
|
845
|
+
/**
|
|
846
|
+
* HTTP GET /flow/{type}
|
|
847
|
+
* Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitionsByType
|
|
848
|
+
*/
|
|
849
|
+
getAllNodeDefinitionsByType(type: Model.NodeType, options?: O): RestResponse<Model.Node[]>;
|
|
827
850
|
}
|
|
828
|
-
export declare class
|
|
851
|
+
export declare class GatewayClientResourceClient<O> {
|
|
829
852
|
protected httpClient: HttpClient<O>;
|
|
830
853
|
constructor(httpClient: HttpClient<O>);
|
|
831
854
|
/**
|
|
832
|
-
* HTTP
|
|
833
|
-
* Java method: org.openremote.model.
|
|
855
|
+
* HTTP DELETE /gateway/connection
|
|
856
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnections
|
|
834
857
|
*/
|
|
835
|
-
|
|
858
|
+
deleteConnections(queryParams?: {
|
|
859
|
+
realm?: string[];
|
|
860
|
+
}, options?: O): RestResponse<void>;
|
|
836
861
|
/**
|
|
837
|
-
* HTTP
|
|
838
|
-
* Java method: org.openremote.model.
|
|
862
|
+
* HTTP GET /gateway/connection
|
|
863
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnections
|
|
839
864
|
*/
|
|
840
|
-
|
|
865
|
+
getConnections(options?: O): RestResponse<Model.GatewayConnection[]>;
|
|
841
866
|
/**
|
|
842
|
-
* HTTP
|
|
843
|
-
* Java method: org.openremote.model.
|
|
867
|
+
* HTTP DELETE /gateway/connection/{realm}
|
|
868
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnection
|
|
844
869
|
*/
|
|
845
|
-
|
|
870
|
+
deleteConnection(realm: string, options?: O): RestResponse<void>;
|
|
846
871
|
/**
|
|
847
|
-
* HTTP
|
|
848
|
-
* Java method: org.openremote.model.
|
|
872
|
+
* HTTP GET /gateway/connection/{realm}
|
|
873
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnection
|
|
849
874
|
*/
|
|
850
|
-
|
|
875
|
+
getConnection(realm: string, options?: O): RestResponse<Model.GatewayConnection>;
|
|
851
876
|
/**
|
|
852
|
-
* HTTP
|
|
853
|
-
* Java method: org.openremote.model.
|
|
877
|
+
* HTTP PUT /gateway/connection/{realm}
|
|
878
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.setConnection
|
|
854
879
|
*/
|
|
855
|
-
|
|
880
|
+
setConnection(realm: string, connection: Model.GatewayConnection, options?: O): RestResponse<void>;
|
|
856
881
|
/**
|
|
857
|
-
* HTTP GET /
|
|
858
|
-
* Java method: org.openremote.model.
|
|
882
|
+
* HTTP GET /gateway/status/{realm}
|
|
883
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnectionStatus
|
|
859
884
|
*/
|
|
860
|
-
|
|
885
|
+
getConnectionStatus(realm: string, options?: O): RestResponse<Model.ConnectionStatus>;
|
|
861
886
|
}
|
|
862
|
-
export declare class
|
|
887
|
+
export declare class ProvisioningResourceClient<O> {
|
|
863
888
|
protected httpClient: HttpClient<O>;
|
|
864
889
|
constructor(httpClient: HttpClient<O>);
|
|
865
890
|
/**
|
|
866
|
-
*
|
|
867
|
-
*
|
|
868
|
-
* Java method: org.openremote.model.services.ExternalServiceResource.getServices
|
|
869
|
-
*/
|
|
870
|
-
getServices(queryParams?: {
|
|
871
|
-
realm?: string;
|
|
872
|
-
}, options?: O): RestResponse<Model.ExternalService[]>;
|
|
873
|
-
/**
|
|
874
|
-
* Response code 200 - Service registered successfully
|
|
875
|
-
* Response code 400 - Invalid external service object
|
|
876
|
-
* Response code 409 - ExternalService instance already registered
|
|
877
|
-
* HTTP POST /service
|
|
878
|
-
* Java method: org.openremote.model.services.ExternalServiceResource.registerService
|
|
879
|
-
*/
|
|
880
|
-
registerService(service: Model.ExternalService, options?: O): RestResponse<Model.ExternalService>;
|
|
881
|
-
/**
|
|
882
|
-
* Response code 200 - List of registered external services
|
|
883
|
-
* HTTP GET /service/global
|
|
884
|
-
* Java method: org.openremote.model.services.ExternalServiceResource.getGlobalServices
|
|
885
|
-
*/
|
|
886
|
-
getGlobalServices(options?: O): RestResponse<Model.ExternalService[]>;
|
|
887
|
-
/**
|
|
888
|
-
* Response code 200 - Service registered successfully
|
|
889
|
-
* Response code 400 - Invalid external service object
|
|
890
|
-
* Response code 409 - ExternalService instance already registered
|
|
891
|
-
* HTTP POST /service/global
|
|
892
|
-
* Java method: org.openremote.model.services.ExternalServiceResource.registerGlobalService
|
|
891
|
+
* HTTP POST /provisioning
|
|
892
|
+
* Java method: org.openremote.model.provisioning.ProvisioningResource.createProvisioningConfig
|
|
893
893
|
*/
|
|
894
|
-
|
|
894
|
+
createProvisioningConfig(provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<number>;
|
|
895
895
|
/**
|
|
896
|
-
*
|
|
897
|
-
*
|
|
898
|
-
* HTTP DELETE /service/{serviceId}/{instanceId}
|
|
899
|
-
* Java method: org.openremote.model.services.ExternalServiceResource.deregisterService
|
|
896
|
+
* HTTP GET /provisioning
|
|
897
|
+
* Java method: org.openremote.model.provisioning.ProvisioningResource.getProvisioningConfigs
|
|
900
898
|
*/
|
|
901
|
-
|
|
899
|
+
getProvisioningConfigs(options?: O): RestResponse<Model.ProvisioningConfigUnion<any, any>[]>;
|
|
902
900
|
/**
|
|
903
|
-
*
|
|
904
|
-
*
|
|
905
|
-
* HTTP GET /service/{serviceId}/{instanceId}
|
|
906
|
-
* Java method: org.openremote.model.services.ExternalServiceResource.getService
|
|
901
|
+
* HTTP DELETE /provisioning/{id}
|
|
902
|
+
* Java method: org.openremote.model.provisioning.ProvisioningResource.deleteProvisioningConfig
|
|
907
903
|
*/
|
|
908
|
-
|
|
904
|
+
deleteProvisioningConfig(id: number, options?: O): RestResponse<void>;
|
|
909
905
|
/**
|
|
910
|
-
*
|
|
911
|
-
*
|
|
912
|
-
* HTTP PUT /service/{serviceId}/{instanceId}
|
|
913
|
-
* Java method: org.openremote.model.services.ExternalServiceResource.heartbeat
|
|
906
|
+
* HTTP PUT /provisioning/{id}
|
|
907
|
+
* Java method: org.openremote.model.provisioning.ProvisioningResource.updateProvisioningConfig
|
|
914
908
|
*/
|
|
915
|
-
|
|
909
|
+
updateProvisioningConfig(id: number, provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<void>;
|
|
916
910
|
}
|
|
917
911
|
export declare class GatewayServiceResourceClient<O> {
|
|
918
912
|
protected httpClient: HttpClient<O>;
|
|
@@ -943,74 +937,80 @@ export declare class GatewayServiceResourceClient<O> {
|
|
|
943
937
|
*/
|
|
944
938
|
getActiveTunnelInfo(realm: string, id: string, target: string, targetPort: number, options?: O): RestResponse<Model.GatewayTunnelInfo>;
|
|
945
939
|
}
|
|
946
|
-
export declare class
|
|
940
|
+
export declare class AssetDatapointResourceClient<O> {
|
|
947
941
|
protected httpClient: HttpClient<O>;
|
|
948
942
|
constructor(httpClient: HttpClient<O>);
|
|
949
943
|
/**
|
|
950
|
-
* HTTP GET /
|
|
951
|
-
* Java method: org.openremote.model.
|
|
944
|
+
* HTTP GET /asset/datapoint/export
|
|
945
|
+
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointExport
|
|
952
946
|
*/
|
|
953
|
-
|
|
947
|
+
getDatapointExport(queryParams?: {
|
|
948
|
+
attributeRefs?: string;
|
|
949
|
+
fromTimestamp?: number;
|
|
950
|
+
toTimestamp?: number;
|
|
951
|
+
format?: Model.DatapointExportFormat;
|
|
952
|
+
}, options?: O): RestResponse<any>;
|
|
954
953
|
/**
|
|
955
|
-
* HTTP GET /
|
|
956
|
-
* Java method: org.openremote.model.
|
|
954
|
+
* HTTP GET /asset/datapoint/periods
|
|
955
|
+
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointPeriod
|
|
957
956
|
*/
|
|
958
|
-
|
|
957
|
+
getDatapointPeriod(queryParams?: {
|
|
958
|
+
assetId?: string;
|
|
959
|
+
attributeName?: string;
|
|
960
|
+
}, options?: O): RestResponse<Model.DatapointPeriod>;
|
|
959
961
|
/**
|
|
960
|
-
* HTTP
|
|
961
|
-
* Java method: org.openremote.model.
|
|
962
|
+
* HTTP POST /asset/datapoint/{assetId}/{attributeName}
|
|
963
|
+
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapoints
|
|
962
964
|
*/
|
|
963
|
-
|
|
964
|
-
[index: string]: any;
|
|
965
|
-
}>;
|
|
965
|
+
getDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
|
|
966
966
|
}
|
|
967
967
|
export type RestResponse<R> = Promise<Axios.GenericAxiosResponse<R>>;
|
|
968
968
|
export declare class ApiClient {
|
|
969
|
-
protected _statusResource: AxiosStatusResourceClient;
|
|
970
|
-
protected _notificationResource: AxiosNotificationResourceClient;
|
|
971
|
-
protected _rulesResource: AxiosRulesResourceClient;
|
|
972
|
-
protected _assetModelResource: AxiosAssetModelResourceClient;
|
|
973
|
-
protected _gatewayClientResource: AxiosGatewayClientResourceClient;
|
|
974
|
-
protected _assetDatapointResource: AxiosAssetDatapointResourceClient;
|
|
975
|
-
protected _provisioningResource: AxiosProvisioningResourceClient;
|
|
976
969
|
protected _alarmResource: AxiosAlarmResourceClient;
|
|
977
|
-
protected _consoleResource: AxiosConsoleResourceClient;
|
|
978
|
-
protected _userResource: AxiosUserResourceClient;
|
|
979
|
-
protected _configurationResource: AxiosConfigurationResourceClient;
|
|
980
970
|
protected _syslogResource: AxiosSyslogResourceClient;
|
|
981
|
-
protected
|
|
982
|
-
protected
|
|
971
|
+
protected _notificationResource: AxiosNotificationResourceClient;
|
|
972
|
+
protected _configurationResource: AxiosConfigurationResourceClient;
|
|
973
|
+
protected _assetPredictedDatapointResource: AxiosAssetPredictedDatapointResourceClient;
|
|
983
974
|
protected _agentResource: AxiosAgentResourceClient;
|
|
975
|
+
protected _externalServiceResource: AxiosExternalServiceResourceClient;
|
|
976
|
+
protected _statusResource: AxiosStatusResourceClient;
|
|
984
977
|
protected _assetResource: AxiosAssetResourceClient;
|
|
985
|
-
protected _realmResource: AxiosRealmResourceClient;
|
|
986
|
-
protected _assetPredictedDatapointResource: AxiosAssetPredictedDatapointResourceClient;
|
|
987
978
|
protected _dashboardResource: AxiosDashboardResourceClient;
|
|
988
|
-
protected
|
|
989
|
-
protected
|
|
979
|
+
protected _consoleResource: AxiosConsoleResourceClient;
|
|
980
|
+
protected _realmResource: AxiosRealmResourceClient;
|
|
981
|
+
protected _userResource: AxiosUserResourceClient;
|
|
982
|
+
protected _rulesResource: AxiosRulesResourceClient;
|
|
990
983
|
protected _appResource: AxiosAppResourceClient;
|
|
984
|
+
protected _mapResource: AxiosMapResourceClient;
|
|
985
|
+
protected _assetModelResource: AxiosAssetModelResourceClient;
|
|
986
|
+
protected _flowResource: AxiosFlowResourceClient;
|
|
987
|
+
protected _gatewayClientResource: AxiosGatewayClientResourceClient;
|
|
988
|
+
protected _provisioningResource: AxiosProvisioningResourceClient;
|
|
989
|
+
protected _gatewayServiceResource: AxiosGatewayServiceResourceClient;
|
|
990
|
+
protected _assetDatapointResource: AxiosAssetDatapointResourceClient;
|
|
991
991
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
992
|
-
get StatusResource(): AxiosStatusResourceClient;
|
|
993
|
-
get NotificationResource(): AxiosNotificationResourceClient;
|
|
994
|
-
get RulesResource(): AxiosRulesResourceClient;
|
|
995
|
-
get AssetModelResource(): AxiosAssetModelResourceClient;
|
|
996
|
-
get GatewayClientResource(): AxiosGatewayClientResourceClient;
|
|
997
|
-
get AssetDatapointResource(): AxiosAssetDatapointResourceClient;
|
|
998
|
-
get ProvisioningResource(): AxiosProvisioningResourceClient;
|
|
999
992
|
get AlarmResource(): AxiosAlarmResourceClient;
|
|
1000
|
-
get ConsoleResource(): AxiosConsoleResourceClient;
|
|
1001
|
-
get UserResource(): AxiosUserResourceClient;
|
|
1002
|
-
get ConfigurationResource(): AxiosConfigurationResourceClient;
|
|
1003
993
|
get SyslogResource(): AxiosSyslogResourceClient;
|
|
1004
|
-
get
|
|
1005
|
-
get
|
|
994
|
+
get NotificationResource(): AxiosNotificationResourceClient;
|
|
995
|
+
get ConfigurationResource(): AxiosConfigurationResourceClient;
|
|
996
|
+
get AssetPredictedDatapointResource(): AxiosAssetPredictedDatapointResourceClient;
|
|
1006
997
|
get AgentResource(): AxiosAgentResourceClient;
|
|
998
|
+
get ExternalServiceResource(): AxiosExternalServiceResourceClient;
|
|
999
|
+
get StatusResource(): AxiosStatusResourceClient;
|
|
1007
1000
|
get AssetResource(): AxiosAssetResourceClient;
|
|
1008
|
-
get RealmResource(): AxiosRealmResourceClient;
|
|
1009
|
-
get AssetPredictedDatapointResource(): AxiosAssetPredictedDatapointResourceClient;
|
|
1010
1001
|
get DashboardResource(): AxiosDashboardResourceClient;
|
|
1011
|
-
get
|
|
1012
|
-
get
|
|
1002
|
+
get ConsoleResource(): AxiosConsoleResourceClient;
|
|
1003
|
+
get RealmResource(): AxiosRealmResourceClient;
|
|
1004
|
+
get UserResource(): AxiosUserResourceClient;
|
|
1005
|
+
get RulesResource(): AxiosRulesResourceClient;
|
|
1013
1006
|
get AppResource(): AxiosAppResourceClient;
|
|
1007
|
+
get MapResource(): AxiosMapResourceClient;
|
|
1008
|
+
get AssetModelResource(): AxiosAssetModelResourceClient;
|
|
1009
|
+
get FlowResource(): AxiosFlowResourceClient;
|
|
1010
|
+
get GatewayClientResource(): AxiosGatewayClientResourceClient;
|
|
1011
|
+
get ProvisioningResource(): AxiosProvisioningResourceClient;
|
|
1012
|
+
get GatewayServiceResource(): AxiosGatewayServiceResourceClient;
|
|
1013
|
+
get AssetDatapointResource(): AxiosAssetDatapointResourceClient;
|
|
1014
1014
|
}
|
|
1015
1015
|
import * as Axios from "axios";
|
|
1016
1016
|
declare module "axios" {
|
|
@@ -1018,70 +1018,70 @@ declare module "axios" {
|
|
|
1018
1018
|
data: R;
|
|
1019
1019
|
}
|
|
1020
1020
|
}
|
|
1021
|
-
export declare class
|
|
1021
|
+
export declare class AxiosAlarmResourceClient extends AlarmResourceClient<Axios.AxiosRequestConfig> {
|
|
1022
1022
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1023
1023
|
}
|
|
1024
|
-
export declare class
|
|
1024
|
+
export declare class AxiosSyslogResourceClient extends SyslogResourceClient<Axios.AxiosRequestConfig> {
|
|
1025
1025
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1026
1026
|
}
|
|
1027
|
-
export declare class
|
|
1027
|
+
export declare class AxiosNotificationResourceClient extends NotificationResourceClient<Axios.AxiosRequestConfig> {
|
|
1028
1028
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1029
1029
|
}
|
|
1030
|
-
export declare class
|
|
1030
|
+
export declare class AxiosConfigurationResourceClient extends ConfigurationResourceClient<Axios.AxiosRequestConfig> {
|
|
1031
1031
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1032
1032
|
}
|
|
1033
|
-
export declare class
|
|
1033
|
+
export declare class AxiosAssetPredictedDatapointResourceClient extends AssetPredictedDatapointResourceClient<Axios.AxiosRequestConfig> {
|
|
1034
1034
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1035
1035
|
}
|
|
1036
|
-
export declare class
|
|
1036
|
+
export declare class AxiosAgentResourceClient extends AgentResourceClient<Axios.AxiosRequestConfig> {
|
|
1037
1037
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1038
1038
|
}
|
|
1039
|
-
export declare class
|
|
1039
|
+
export declare class AxiosExternalServiceResourceClient extends ExternalServiceResourceClient<Axios.AxiosRequestConfig> {
|
|
1040
1040
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1041
1041
|
}
|
|
1042
|
-
export declare class
|
|
1042
|
+
export declare class AxiosStatusResourceClient extends StatusResourceClient<Axios.AxiosRequestConfig> {
|
|
1043
1043
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1044
1044
|
}
|
|
1045
|
-
export declare class
|
|
1045
|
+
export declare class AxiosAssetResourceClient extends AssetResourceClient<Axios.AxiosRequestConfig> {
|
|
1046
1046
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1047
1047
|
}
|
|
1048
|
-
export declare class
|
|
1048
|
+
export declare class AxiosDashboardResourceClient extends DashboardResourceClient<Axios.AxiosRequestConfig> {
|
|
1049
1049
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1050
1050
|
}
|
|
1051
|
-
export declare class
|
|
1051
|
+
export declare class AxiosConsoleResourceClient extends ConsoleResourceClient<Axios.AxiosRequestConfig> {
|
|
1052
1052
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1053
1053
|
}
|
|
1054
|
-
export declare class
|
|
1054
|
+
export declare class AxiosRealmResourceClient extends RealmResourceClient<Axios.AxiosRequestConfig> {
|
|
1055
1055
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1056
1056
|
}
|
|
1057
|
-
export declare class
|
|
1057
|
+
export declare class AxiosUserResourceClient extends UserResourceClient<Axios.AxiosRequestConfig> {
|
|
1058
1058
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1059
1059
|
}
|
|
1060
|
-
export declare class
|
|
1060
|
+
export declare class AxiosRulesResourceClient extends RulesResourceClient<Axios.AxiosRequestConfig> {
|
|
1061
1061
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1062
1062
|
}
|
|
1063
|
-
export declare class
|
|
1063
|
+
export declare class AxiosAppResourceClient extends AppResourceClient<Axios.AxiosRequestConfig> {
|
|
1064
1064
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1065
1065
|
}
|
|
1066
|
-
export declare class
|
|
1066
|
+
export declare class AxiosMapResourceClient extends MapResourceClient<Axios.AxiosRequestConfig> {
|
|
1067
1067
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1068
1068
|
}
|
|
1069
|
-
export declare class
|
|
1069
|
+
export declare class AxiosAssetModelResourceClient extends AssetModelResourceClient<Axios.AxiosRequestConfig> {
|
|
1070
1070
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1071
1071
|
}
|
|
1072
|
-
export declare class
|
|
1072
|
+
export declare class AxiosFlowResourceClient extends FlowResourceClient<Axios.AxiosRequestConfig> {
|
|
1073
1073
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1074
1074
|
}
|
|
1075
|
-
export declare class
|
|
1075
|
+
export declare class AxiosGatewayClientResourceClient extends GatewayClientResourceClient<Axios.AxiosRequestConfig> {
|
|
1076
1076
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1077
1077
|
}
|
|
1078
|
-
export declare class
|
|
1078
|
+
export declare class AxiosProvisioningResourceClient extends ProvisioningResourceClient<Axios.AxiosRequestConfig> {
|
|
1079
1079
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1080
1080
|
}
|
|
1081
1081
|
export declare class AxiosGatewayServiceResourceClient extends GatewayServiceResourceClient<Axios.AxiosRequestConfig> {
|
|
1082
1082
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1083
1083
|
}
|
|
1084
|
-
export declare class
|
|
1084
|
+
export declare class AxiosAssetDatapointResourceClient extends AssetDatapointResourceClient<Axios.AxiosRequestConfig> {
|
|
1085
1085
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1086
1086
|
}
|
|
1087
1087
|
//# sourceMappingURL=restclient.d.ts.map
|