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