@openremote/rest 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/umd/index.bundle.js +1 -1
- package/dist/umd/index.js +1 -1
- package/lib/restclient.d.ts +437 -443
- package/lib/restclient.js +1 -1
- package/lib/restclient.js.map +1 -1
- package/package.json +3 -3
package/lib/restclient.d.ts
CHANGED
|
@@ -9,82 +9,113 @@ export interface HttpClient<O> {
|
|
|
9
9
|
options?: O;
|
|
10
10
|
}): RestResponse<R>;
|
|
11
11
|
}
|
|
12
|
-
export declare class
|
|
12
|
+
export declare class RulesResourceClient<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 /rules
|
|
17
|
+
* Java method: org.openremote.model.rules.RulesResource.createGlobalRuleset
|
|
18
18
|
*/
|
|
19
|
-
|
|
20
|
-
realm?: any;
|
|
21
|
-
}, options?: O): RestResponse<Model.AssetTreeNode[]>;
|
|
19
|
+
createGlobalRuleset(ruleset: Model.GlobalRuleset, options?: O): RestResponse<number>;
|
|
22
20
|
/**
|
|
23
|
-
* HTTP
|
|
24
|
-
* Java method: org.openremote.model.
|
|
21
|
+
* HTTP GET /rules
|
|
22
|
+
* Java method: org.openremote.model.rules.RulesResource.getGlobalRulesets
|
|
25
23
|
*/
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
getGlobalRulesets(queryParams?: {
|
|
25
|
+
language?: Model.RulesetLang[];
|
|
26
|
+
fullyPopulate?: boolean;
|
|
27
|
+
}, options?: O): RestResponse<Model.GlobalRuleset[]>;
|
|
29
28
|
/**
|
|
30
|
-
* HTTP
|
|
31
|
-
* Java method: org.openremote.model.
|
|
29
|
+
* HTTP POST /rules/asset
|
|
30
|
+
* Java method: org.openremote.model.rules.RulesResource.createAssetRuleset
|
|
32
31
|
*/
|
|
33
|
-
|
|
34
|
-
parentId?: any;
|
|
35
|
-
realm?: any;
|
|
36
|
-
}, options?: O): RestResponse<Model.Agent[]>;
|
|
37
|
-
}
|
|
38
|
-
export declare class ConsoleResourceClient<O> {
|
|
39
|
-
protected httpClient: HttpClient<O>;
|
|
40
|
-
constructor(httpClient: HttpClient<O>);
|
|
32
|
+
createAssetRuleset(ruleset: Model.AssetRuleset, options?: O): RestResponse<number>;
|
|
41
33
|
/**
|
|
42
|
-
* HTTP
|
|
43
|
-
* Java method: org.openremote.model.
|
|
34
|
+
* HTTP GET /rules/asset/for/{assetId}
|
|
35
|
+
* Java method: org.openremote.model.rules.RulesResource.getAssetRulesets
|
|
44
36
|
*/
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
constructor(httpClient: HttpClient<O>);
|
|
37
|
+
getAssetRulesets(assetId: any, queryParams?: {
|
|
38
|
+
language?: Model.RulesetLang[];
|
|
39
|
+
fullyPopulate?: boolean;
|
|
40
|
+
}, options?: O): RestResponse<Model.AssetRuleset[]>;
|
|
50
41
|
/**
|
|
51
|
-
* HTTP
|
|
52
|
-
* Java method: org.openremote.model.
|
|
42
|
+
* HTTP DELETE /rules/asset/{id}
|
|
43
|
+
* Java method: org.openremote.model.rules.RulesResource.deleteAssetRuleset
|
|
53
44
|
*/
|
|
54
|
-
|
|
55
|
-
[index: string]: any;
|
|
56
|
-
}>;
|
|
45
|
+
deleteAssetRuleset(id: any, options?: O): RestResponse<void>;
|
|
57
46
|
/**
|
|
58
|
-
* HTTP GET /
|
|
59
|
-
* Java method: org.openremote.model.
|
|
47
|
+
* HTTP GET /rules/asset/{id}
|
|
48
|
+
* Java method: org.openremote.model.rules.RulesResource.getAssetRuleset
|
|
60
49
|
*/
|
|
61
|
-
|
|
62
|
-
[index: string]: any;
|
|
63
|
-
}>;
|
|
64
|
-
}
|
|
65
|
-
export declare class ProvisioningResourceClient<O> {
|
|
66
|
-
protected httpClient: HttpClient<O>;
|
|
67
|
-
constructor(httpClient: HttpClient<O>);
|
|
50
|
+
getAssetRuleset(id: any, options?: O): RestResponse<Model.AssetRuleset>;
|
|
68
51
|
/**
|
|
69
|
-
* HTTP
|
|
70
|
-
* Java method: org.openremote.model.
|
|
52
|
+
* HTTP PUT /rules/asset/{id}
|
|
53
|
+
* Java method: org.openremote.model.rules.RulesResource.updateAssetRuleset
|
|
71
54
|
*/
|
|
72
|
-
|
|
55
|
+
updateAssetRuleset(id: any, ruleset: Model.AssetRuleset, options?: O): RestResponse<void>;
|
|
73
56
|
/**
|
|
74
|
-
* HTTP GET /
|
|
75
|
-
* Java method: org.openremote.model.
|
|
57
|
+
* HTTP GET /rules/geofences/{assetId}
|
|
58
|
+
* Java method: org.openremote.model.rules.RulesResource.getAssetGeofences
|
|
76
59
|
*/
|
|
77
|
-
|
|
60
|
+
getAssetGeofences(assetId: any, options?: O): RestResponse<Model.GeofenceDefinition[]>;
|
|
78
61
|
/**
|
|
79
|
-
* HTTP
|
|
80
|
-
* Java method: org.openremote.model.
|
|
62
|
+
* HTTP GET /rules/info/asset/{assetId}
|
|
63
|
+
* Java method: org.openremote.model.rules.RulesResource.getAssetEngineInfo
|
|
81
64
|
*/
|
|
82
|
-
|
|
65
|
+
getAssetEngineInfo(assetId: any, options?: O): RestResponse<Model.RulesEngineInfo>;
|
|
83
66
|
/**
|
|
84
|
-
* HTTP
|
|
85
|
-
* Java method: org.openremote.model.
|
|
67
|
+
* HTTP GET /rules/info/global
|
|
68
|
+
* Java method: org.openremote.model.rules.RulesResource.getGlobalEngineInfo
|
|
86
69
|
*/
|
|
87
|
-
|
|
70
|
+
getGlobalEngineInfo(options?: O): RestResponse<Model.RulesEngineInfo>;
|
|
71
|
+
/**
|
|
72
|
+
* HTTP GET /rules/info/realm/{realm}
|
|
73
|
+
* Java method: org.openremote.model.rules.RulesResource.getRealmEngineInfo
|
|
74
|
+
*/
|
|
75
|
+
getRealmEngineInfo(realm: any, options?: O): RestResponse<Model.RulesEngineInfo>;
|
|
76
|
+
/**
|
|
77
|
+
* HTTP POST /rules/realm
|
|
78
|
+
* Java method: org.openremote.model.rules.RulesResource.createRealmRuleset
|
|
79
|
+
*/
|
|
80
|
+
createRealmRuleset(ruleset: Model.RealmRuleset, options?: O): RestResponse<number>;
|
|
81
|
+
/**
|
|
82
|
+
* HTTP GET /rules/realm/for/{realm}
|
|
83
|
+
* Java method: org.openremote.model.rules.RulesResource.getRealmRulesets
|
|
84
|
+
*/
|
|
85
|
+
getRealmRulesets(realm: any, queryParams?: {
|
|
86
|
+
language?: Model.RulesetLang[];
|
|
87
|
+
fullyPopulate?: boolean;
|
|
88
|
+
}, options?: O): RestResponse<Model.RealmRuleset[]>;
|
|
89
|
+
/**
|
|
90
|
+
* HTTP DELETE /rules/realm/{id}
|
|
91
|
+
* Java method: org.openremote.model.rules.RulesResource.deleteRealmRuleset
|
|
92
|
+
*/
|
|
93
|
+
deleteRealmRuleset(id: any, options?: O): RestResponse<void>;
|
|
94
|
+
/**
|
|
95
|
+
* HTTP GET /rules/realm/{id}
|
|
96
|
+
* Java method: org.openremote.model.rules.RulesResource.getRealmRuleset
|
|
97
|
+
*/
|
|
98
|
+
getRealmRuleset(id: any, options?: O): RestResponse<Model.RealmRuleset>;
|
|
99
|
+
/**
|
|
100
|
+
* HTTP PUT /rules/realm/{id}
|
|
101
|
+
* Java method: org.openremote.model.rules.RulesResource.updateRealmRuleset
|
|
102
|
+
*/
|
|
103
|
+
updateRealmRuleset(id: any, ruleset: Model.RealmRuleset, options?: O): RestResponse<void>;
|
|
104
|
+
/**
|
|
105
|
+
* HTTP DELETE /rules/{id}
|
|
106
|
+
* Java method: org.openremote.model.rules.RulesResource.deleteGlobalRuleset
|
|
107
|
+
*/
|
|
108
|
+
deleteGlobalRuleset(id: any, options?: O): RestResponse<void>;
|
|
109
|
+
/**
|
|
110
|
+
* HTTP GET /rules/{id}
|
|
111
|
+
* Java method: org.openremote.model.rules.RulesResource.getGlobalRuleset
|
|
112
|
+
*/
|
|
113
|
+
getGlobalRuleset(id: any, options?: O): RestResponse<Model.GlobalRuleset>;
|
|
114
|
+
/**
|
|
115
|
+
* HTTP PUT /rules/{id}
|
|
116
|
+
* Java method: org.openremote.model.rules.RulesResource.updateGlobalRuleset
|
|
117
|
+
*/
|
|
118
|
+
updateGlobalRuleset(id: any, ruleset: Model.GlobalRuleset, options?: O): RestResponse<void>;
|
|
88
119
|
}
|
|
89
120
|
export declare class GatewayServiceResourceClient<O> {
|
|
90
121
|
protected httpClient: HttpClient<O>;
|
|
@@ -115,6 +146,32 @@ export declare class GatewayServiceResourceClient<O> {
|
|
|
115
146
|
*/
|
|
116
147
|
getActiveTunnelInfo(realm: any, id: any, target: any, targetPort: number, options?: O): RestResponse<Model.GatewayTunnelInfo>;
|
|
117
148
|
}
|
|
149
|
+
export declare class AssetDatapointResourceClient<O> {
|
|
150
|
+
protected httpClient: HttpClient<O>;
|
|
151
|
+
constructor(httpClient: HttpClient<O>);
|
|
152
|
+
/**
|
|
153
|
+
* HTTP GET /asset/datapoint/export
|
|
154
|
+
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointExport
|
|
155
|
+
*/
|
|
156
|
+
getDatapointExport(queryParams?: {
|
|
157
|
+
attributeRefs?: any;
|
|
158
|
+
fromTimestamp?: number;
|
|
159
|
+
toTimestamp?: number;
|
|
160
|
+
}, options?: O): RestResponse<any>;
|
|
161
|
+
/**
|
|
162
|
+
* HTTP GET /asset/datapoint/periods
|
|
163
|
+
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointPeriod
|
|
164
|
+
*/
|
|
165
|
+
getDatapointPeriod(queryParams?: {
|
|
166
|
+
assetId?: any;
|
|
167
|
+
attributeName?: any;
|
|
168
|
+
}, options?: O): RestResponse<Model.DatapointPeriod>;
|
|
169
|
+
/**
|
|
170
|
+
* HTTP POST /asset/datapoint/{assetId}/{attributeName}
|
|
171
|
+
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapoints
|
|
172
|
+
*/
|
|
173
|
+
getDatapoints(assetId: any, attributeName: any, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
|
|
174
|
+
}
|
|
118
175
|
export declare class AlarmResourceClient<O> {
|
|
119
176
|
protected httpClient: HttpClient<O>;
|
|
120
177
|
constructor(httpClient: HttpClient<O>);
|
|
@@ -168,175 +225,109 @@ export declare class AlarmResourceClient<O> {
|
|
|
168
225
|
realm?: any;
|
|
169
226
|
}, options?: O): RestResponse<Model.AlarmAssetLink[]>;
|
|
170
227
|
}
|
|
171
|
-
export declare class
|
|
228
|
+
export declare class StatusResourceClient<O> {
|
|
172
229
|
protected httpClient: HttpClient<O>;
|
|
173
230
|
constructor(httpClient: HttpClient<O>);
|
|
174
231
|
/**
|
|
175
|
-
* HTTP GET /
|
|
176
|
-
* Java method: org.openremote.model.
|
|
232
|
+
* HTTP GET /health
|
|
233
|
+
* Java method: org.openremote.model.system.StatusResource.getHealthStatus
|
|
177
234
|
*/
|
|
178
|
-
|
|
179
|
-
[
|
|
235
|
+
getHealthStatus(options?: O): RestResponse<{
|
|
236
|
+
[index: string]: any;
|
|
180
237
|
}>;
|
|
181
238
|
/**
|
|
182
|
-
* HTTP
|
|
183
|
-
* Java method: org.openremote.model.
|
|
184
|
-
*/
|
|
185
|
-
saveSettings(mapConfig: {
|
|
186
|
-
[index: string]: Model.MapRealmConfig;
|
|
187
|
-
}, options?: O): RestResponse<any>;
|
|
188
|
-
/**
|
|
189
|
-
* HTTP GET /map/js
|
|
190
|
-
* Java method: org.openremote.model.map.MapResource.getSettingsJs
|
|
239
|
+
* HTTP GET /info
|
|
240
|
+
* Java method: org.openremote.model.system.StatusResource.getInfo
|
|
191
241
|
*/
|
|
192
|
-
|
|
193
|
-
[
|
|
242
|
+
getInfo(options?: O): RestResponse<{
|
|
243
|
+
[index: string]: any;
|
|
194
244
|
}>;
|
|
195
|
-
/**
|
|
196
|
-
* HTTP GET /map/tile/{zoom}/{column}/{row}
|
|
197
|
-
* Java method: org.openremote.model.map.MapResource.getTile
|
|
198
|
-
*/
|
|
199
|
-
getTile(zoom: number, column: number, row: number, options?: O): RestResponse<any>;
|
|
200
245
|
}
|
|
201
|
-
export declare class
|
|
246
|
+
export declare class SyslogResourceClient<O> {
|
|
202
247
|
protected httpClient: HttpClient<O>;
|
|
203
248
|
constructor(httpClient: HttpClient<O>);
|
|
204
249
|
/**
|
|
205
|
-
* HTTP
|
|
206
|
-
* Java method: org.openremote.model.
|
|
250
|
+
* HTTP GET /syslog/config
|
|
251
|
+
* Java method: org.openremote.model.syslog.SyslogResource.getConfig
|
|
207
252
|
*/
|
|
208
|
-
|
|
253
|
+
getConfig(options?: O): RestResponse<Model.SyslogConfig>;
|
|
209
254
|
/**
|
|
210
|
-
* HTTP PUT /
|
|
211
|
-
* Java method: org.openremote.model.
|
|
255
|
+
* HTTP PUT /syslog/config
|
|
256
|
+
* Java method: org.openremote.model.syslog.SyslogResource.updateConfig
|
|
212
257
|
*/
|
|
213
|
-
|
|
258
|
+
updateConfig(config: Model.SyslogConfig, options?: O): RestResponse<void>;
|
|
259
|
+
/**
|
|
260
|
+
* HTTP DELETE /syslog/event
|
|
261
|
+
* Java method: org.openremote.model.syslog.SyslogResource.clearEvents
|
|
262
|
+
*/
|
|
263
|
+
clearEvents(options?: O): RestResponse<void>;
|
|
264
|
+
/**
|
|
265
|
+
* HTTP GET /syslog/event
|
|
266
|
+
* Java method: org.openremote.model.syslog.SyslogResource.getEvents
|
|
267
|
+
*/
|
|
268
|
+
getEvents(queryParams?: {
|
|
269
|
+
level?: Model.SyslogLevel;
|
|
270
|
+
per_page?: any;
|
|
271
|
+
page?: any;
|
|
272
|
+
from?: any;
|
|
273
|
+
to?: any;
|
|
274
|
+
category?: Model.SyslogCategory[];
|
|
275
|
+
subCategory?: any[];
|
|
276
|
+
}, options?: O): RestResponse<any>;
|
|
214
277
|
}
|
|
215
|
-
export declare class
|
|
278
|
+
export declare class FlowResourceClient<O> {
|
|
216
279
|
protected httpClient: HttpClient<O>;
|
|
217
280
|
constructor(httpClient: HttpClient<O>);
|
|
218
281
|
/**
|
|
219
|
-
* HTTP GET /
|
|
220
|
-
* Java method: org.openremote.model.
|
|
282
|
+
* HTTP GET /flow
|
|
283
|
+
* Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitions
|
|
221
284
|
*/
|
|
222
|
-
|
|
223
|
-
attributeRefs?: any;
|
|
224
|
-
fromTimestamp?: number;
|
|
225
|
-
toTimestamp?: number;
|
|
226
|
-
}, options?: O): RestResponse<any>;
|
|
285
|
+
getAllNodeDefinitions(options?: O): RestResponse<Model.Node[]>;
|
|
227
286
|
/**
|
|
228
|
-
* HTTP GET /
|
|
229
|
-
* Java method: org.openremote.model.
|
|
287
|
+
* HTTP GET /flow/{name}
|
|
288
|
+
* Java method: org.openremote.model.rules.flow.FlowResource.getNodeDefinition
|
|
230
289
|
*/
|
|
231
|
-
|
|
232
|
-
assetId?: any;
|
|
233
|
-
attributeName?: any;
|
|
234
|
-
}, options?: O): RestResponse<Model.DatapointPeriod>;
|
|
290
|
+
getNodeDefinition(name: any, options?: O): RestResponse<Model.Node>;
|
|
235
291
|
/**
|
|
236
|
-
* HTTP
|
|
237
|
-
* Java method: org.openremote.model.
|
|
292
|
+
* HTTP GET /flow/{type}
|
|
293
|
+
* Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitionsByType
|
|
238
294
|
*/
|
|
239
|
-
|
|
295
|
+
getAllNodeDefinitionsByType(type: Model.NodeType, options?: O): RestResponse<Model.Node[]>;
|
|
240
296
|
}
|
|
241
|
-
export declare class
|
|
297
|
+
export declare class ConsoleResourceClient<O> {
|
|
242
298
|
protected httpClient: HttpClient<O>;
|
|
243
299
|
constructor(httpClient: HttpClient<O>);
|
|
244
300
|
/**
|
|
245
|
-
* HTTP
|
|
246
|
-
* Java method: org.openremote.model.
|
|
247
|
-
*/
|
|
248
|
-
getManagerConfig(options?: O): RestResponse<{
|
|
249
|
-
[id: string]: any;
|
|
250
|
-
}>;
|
|
251
|
-
/**
|
|
252
|
-
* HTTP PUT /configuration/manager
|
|
253
|
-
* Java method: org.openremote.model.manager.ConfigurationResource.update
|
|
254
|
-
*/
|
|
255
|
-
update(managerConfiguration: {
|
|
256
|
-
[id: string]: any;
|
|
257
|
-
}, options?: O): RestResponse<{
|
|
258
|
-
[id: string]: any;
|
|
259
|
-
}>;
|
|
260
|
-
/**
|
|
261
|
-
* HTTP POST /configuration/manager/file
|
|
262
|
-
* Java method: org.openremote.model.manager.ConfigurationResource.fileUpload
|
|
263
|
-
*/
|
|
264
|
-
fileUpload(fileInfo: Model.FileInfo, queryParams?: {
|
|
265
|
-
path?: any;
|
|
266
|
-
}, options?: O): RestResponse<any>;
|
|
267
|
-
/**
|
|
268
|
-
* HTTP GET /configuration/manager/image/{filename: .+}
|
|
269
|
-
* Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfigImage
|
|
270
|
-
*/
|
|
271
|
-
getManagerConfigImage(filename: any, options?: O): RestResponse<any>;
|
|
272
|
-
}
|
|
273
|
-
export declare class GatewayClientResourceClient<O> {
|
|
274
|
-
protected httpClient: HttpClient<O>;
|
|
275
|
-
constructor(httpClient: HttpClient<O>);
|
|
276
|
-
/**
|
|
277
|
-
* HTTP DELETE /gateway/connection
|
|
278
|
-
* Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnections
|
|
279
|
-
*/
|
|
280
|
-
deleteConnections(queryParams?: {
|
|
281
|
-
realm?: any[];
|
|
282
|
-
}, options?: O): RestResponse<void>;
|
|
283
|
-
/**
|
|
284
|
-
* HTTP GET /gateway/connection
|
|
285
|
-
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnections
|
|
286
|
-
*/
|
|
287
|
-
getConnections(options?: O): RestResponse<Model.GatewayConnection[]>;
|
|
288
|
-
/**
|
|
289
|
-
* HTTP DELETE /gateway/connection/{realm}
|
|
290
|
-
* Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnection
|
|
291
|
-
*/
|
|
292
|
-
deleteConnection(realm: any, options?: O): RestResponse<void>;
|
|
293
|
-
/**
|
|
294
|
-
* HTTP GET /gateway/connection/{realm}
|
|
295
|
-
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnection
|
|
296
|
-
*/
|
|
297
|
-
getConnection(realm: any, options?: O): RestResponse<Model.GatewayConnection>;
|
|
298
|
-
/**
|
|
299
|
-
* HTTP PUT /gateway/connection/{realm}
|
|
300
|
-
* Java method: org.openremote.model.gateway.GatewayClientResource.setConnection
|
|
301
|
-
*/
|
|
302
|
-
setConnection(realm: any, connection: Model.GatewayConnection, options?: O): RestResponse<void>;
|
|
303
|
-
/**
|
|
304
|
-
* HTTP GET /gateway/status/{realm}
|
|
305
|
-
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnectionStatus
|
|
301
|
+
* HTTP POST /console/register
|
|
302
|
+
* Java method: org.openremote.model.console.ConsoleResource.register
|
|
306
303
|
*/
|
|
307
|
-
|
|
304
|
+
register(consoleRegistration: Model.ConsoleRegistration, options?: O): RestResponse<Model.ConsoleRegistration>;
|
|
308
305
|
}
|
|
309
|
-
export declare class
|
|
306
|
+
export declare class AgentResourceClient<O> {
|
|
310
307
|
protected httpClient: HttpClient<O>;
|
|
311
308
|
constructor(httpClient: HttpClient<O>);
|
|
312
309
|
/**
|
|
313
|
-
* HTTP GET /
|
|
314
|
-
* Java method: org.openremote.model.
|
|
315
|
-
*/
|
|
316
|
-
getConfig(options?: O): RestResponse<Model.SyslogConfig>;
|
|
317
|
-
/**
|
|
318
|
-
* HTTP PUT /syslog/config
|
|
319
|
-
* Java method: org.openremote.model.syslog.SyslogResource.updateConfig
|
|
310
|
+
* HTTP GET /agent/assetDiscovery/{agentId}
|
|
311
|
+
* Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetDiscovery
|
|
320
312
|
*/
|
|
321
|
-
|
|
313
|
+
doProtocolAssetDiscovery(agentId: any, queryParams?: {
|
|
314
|
+
realm?: any;
|
|
315
|
+
}, options?: O): RestResponse<Model.AssetTreeNode[]>;
|
|
322
316
|
/**
|
|
323
|
-
* HTTP
|
|
324
|
-
* Java method: org.openremote.model.
|
|
317
|
+
* HTTP POST /agent/assetImport/{agentId}
|
|
318
|
+
* Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetImport
|
|
325
319
|
*/
|
|
326
|
-
|
|
320
|
+
doProtocolAssetImport(agentId: any, fileInfo: Model.FileInfo, queryParams?: {
|
|
321
|
+
realm?: any;
|
|
322
|
+
}, options?: O): RestResponse<Model.AssetTreeNode[]>;
|
|
327
323
|
/**
|
|
328
|
-
* HTTP GET /
|
|
329
|
-
* Java method: org.openremote.model.
|
|
324
|
+
* HTTP GET /agent/instanceDiscovery/{agentType}
|
|
325
|
+
* Java method: org.openremote.model.asset.agent.AgentResource.doProtocolInstanceDiscovery
|
|
330
326
|
*/
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
from?: any;
|
|
336
|
-
to?: any;
|
|
337
|
-
category?: Model.SyslogCategory[];
|
|
338
|
-
subCategory?: any[];
|
|
339
|
-
}, options?: O): RestResponse<any>;
|
|
327
|
+
doProtocolInstanceDiscovery(agentType: any, queryParams?: {
|
|
328
|
+
parentId?: any;
|
|
329
|
+
realm?: any;
|
|
330
|
+
}, options?: O): RestResponse<Model.Agent[]>;
|
|
340
331
|
}
|
|
341
332
|
export declare class UserResourceClient<O> {
|
|
342
333
|
protected httpClient: HttpClient<O>;
|
|
@@ -462,113 +453,191 @@ export declare class UserResourceClient<O> {
|
|
|
462
453
|
*/
|
|
463
454
|
get(realm: any, userId: any, options?: O): RestResponse<Model.User>;
|
|
464
455
|
}
|
|
465
|
-
export declare class
|
|
456
|
+
export declare class AssetModelResourceClient<O> {
|
|
466
457
|
protected httpClient: HttpClient<O>;
|
|
467
458
|
constructor(httpClient: HttpClient<O>);
|
|
468
459
|
/**
|
|
469
|
-
* HTTP
|
|
470
|
-
* Java method: org.openremote.model.
|
|
460
|
+
* HTTP GET /model/assetDescriptors
|
|
461
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getAssetDescriptors
|
|
471
462
|
*/
|
|
472
|
-
|
|
463
|
+
getAssetDescriptors(queryParams?: {
|
|
464
|
+
parentId?: any;
|
|
465
|
+
parentType?: any;
|
|
466
|
+
}, options?: O): RestResponse<Model.AssetDescriptor[]>;
|
|
473
467
|
/**
|
|
474
|
-
* HTTP GET /
|
|
475
|
-
* Java method: org.openremote.model.
|
|
468
|
+
* HTTP GET /model/assetInfo/{assetType}
|
|
469
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getAssetInfo
|
|
476
470
|
*/
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
}, options?: O): RestResponse<Model.GlobalRuleset[]>;
|
|
471
|
+
getAssetInfo(assetType: any, queryParams?: {
|
|
472
|
+
parentId?: any;
|
|
473
|
+
}, options?: O): RestResponse<Model.AssetTypeInfo>;
|
|
481
474
|
/**
|
|
482
|
-
* HTTP
|
|
483
|
-
* Java method: org.openremote.model.
|
|
475
|
+
* HTTP GET /model/assetInfos
|
|
476
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getAssetInfos
|
|
484
477
|
*/
|
|
485
|
-
|
|
478
|
+
getAssetInfos(queryParams?: {
|
|
479
|
+
parentId?: any;
|
|
480
|
+
parentType?: any;
|
|
481
|
+
}, options?: O): RestResponse<Model.AssetTypeInfo[]>;
|
|
486
482
|
/**
|
|
487
|
-
* HTTP GET /
|
|
488
|
-
* Java method: org.openremote.model.
|
|
483
|
+
* HTTP GET /model/metaItemDescriptors
|
|
484
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getMetaItemDescriptors
|
|
489
485
|
*/
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
486
|
+
getMetaItemDescriptors(queryParams?: {
|
|
487
|
+
parentId?: any;
|
|
488
|
+
}, options?: O): RestResponse<{
|
|
489
|
+
[index: string]: Model.MetaItemDescriptor;
|
|
490
|
+
}>;
|
|
494
491
|
/**
|
|
495
|
-
* HTTP
|
|
496
|
-
* Java method: org.openremote.model.
|
|
492
|
+
* HTTP GET /model/valueDescriptors
|
|
493
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getValueDescriptors
|
|
497
494
|
*/
|
|
498
|
-
|
|
495
|
+
getValueDescriptors(queryParams?: {
|
|
496
|
+
parentId?: any;
|
|
497
|
+
}, options?: O): RestResponse<{
|
|
498
|
+
[index: string]: Model.ValueDescriptor;
|
|
499
|
+
}>;
|
|
500
|
+
}
|
|
501
|
+
export declare class MapResourceClient<O> {
|
|
502
|
+
protected httpClient: HttpClient<O>;
|
|
503
|
+
constructor(httpClient: HttpClient<O>);
|
|
499
504
|
/**
|
|
500
|
-
* HTTP GET /
|
|
501
|
-
* Java method: org.openremote.model.
|
|
505
|
+
* HTTP GET /map
|
|
506
|
+
* Java method: org.openremote.model.map.MapResource.getSettings
|
|
502
507
|
*/
|
|
503
|
-
|
|
508
|
+
getSettings(options?: O): RestResponse<{
|
|
509
|
+
[id: string]: any;
|
|
510
|
+
}>;
|
|
504
511
|
/**
|
|
505
|
-
* HTTP PUT /
|
|
506
|
-
* Java method: org.openremote.model.
|
|
512
|
+
* HTTP PUT /map
|
|
513
|
+
* Java method: org.openremote.model.map.MapResource.saveSettings
|
|
507
514
|
*/
|
|
508
|
-
|
|
515
|
+
saveSettings(mapConfig: {
|
|
516
|
+
[index: string]: Model.MapRealmConfig;
|
|
517
|
+
}, options?: O): RestResponse<any>;
|
|
509
518
|
/**
|
|
510
|
-
* HTTP GET /
|
|
511
|
-
* Java method: org.openremote.model.
|
|
519
|
+
* HTTP GET /map/js
|
|
520
|
+
* Java method: org.openremote.model.map.MapResource.getSettingsJs
|
|
512
521
|
*/
|
|
513
|
-
|
|
522
|
+
getSettingsJs(options?: O): RestResponse<{
|
|
523
|
+
[id: string]: any;
|
|
524
|
+
}>;
|
|
514
525
|
/**
|
|
515
|
-
* HTTP GET /
|
|
516
|
-
* Java method: org.openremote.model.
|
|
526
|
+
* HTTP GET /map/tile/{zoom}/{column}/{row}
|
|
527
|
+
* Java method: org.openremote.model.map.MapResource.getTile
|
|
517
528
|
*/
|
|
518
|
-
|
|
529
|
+
getTile(zoom: number, column: number, row: number, options?: O): RestResponse<any>;
|
|
530
|
+
}
|
|
531
|
+
export declare class AppResourceClient<O> {
|
|
532
|
+
protected httpClient: HttpClient<O>;
|
|
533
|
+
constructor(httpClient: HttpClient<O>);
|
|
519
534
|
/**
|
|
520
|
-
* HTTP GET /
|
|
521
|
-
* Java method: org.openremote.model.
|
|
535
|
+
* HTTP GET /apps
|
|
536
|
+
* Java method: org.openremote.model.apps.AppResource.getApps
|
|
522
537
|
*/
|
|
523
|
-
|
|
538
|
+
getApps(options?: O): RestResponse<any[]>;
|
|
524
539
|
/**
|
|
525
|
-
* HTTP GET /
|
|
526
|
-
* Java method: org.openremote.model.
|
|
540
|
+
* HTTP GET /apps/consoleConfig
|
|
541
|
+
* Java method: org.openremote.model.apps.AppResource.getConsoleConfig
|
|
527
542
|
*/
|
|
528
|
-
|
|
543
|
+
getConsoleConfig(options?: O): RestResponse<any>;
|
|
529
544
|
/**
|
|
530
|
-
* HTTP
|
|
531
|
-
* Java method: org.openremote.model.
|
|
545
|
+
* HTTP GET /apps/info
|
|
546
|
+
* Java method: org.openremote.model.apps.AppResource.getAppInfos
|
|
532
547
|
*/
|
|
533
|
-
|
|
548
|
+
getAppInfos(options?: O): RestResponse<any>;
|
|
549
|
+
}
|
|
550
|
+
export declare class AssetPredictedDatapointResourceClient<O> {
|
|
551
|
+
protected httpClient: HttpClient<O>;
|
|
552
|
+
constructor(httpClient: HttpClient<O>);
|
|
534
553
|
/**
|
|
535
|
-
* HTTP
|
|
536
|
-
* Java method: org.openremote.model.
|
|
554
|
+
* HTTP POST /asset/predicted/{assetId}/{attributeName}
|
|
555
|
+
* Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.getPredictedDatapoints
|
|
537
556
|
*/
|
|
538
|
-
|
|
539
|
-
language?: Model.RulesetLang[];
|
|
540
|
-
fullyPopulate?: boolean;
|
|
541
|
-
}, options?: O): RestResponse<Model.RealmRuleset[]>;
|
|
557
|
+
getPredictedDatapoints(assetId: any, attributeName: any, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
|
|
542
558
|
/**
|
|
543
|
-
* HTTP
|
|
544
|
-
* Java method: org.openremote.model.
|
|
559
|
+
* HTTP PUT /asset/predicted/{assetId}/{attributeName}
|
|
560
|
+
* Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.writePredictedDatapoints
|
|
545
561
|
*/
|
|
546
|
-
|
|
562
|
+
writePredictedDatapoints(assetId: any, attributeName: any, predictedDatapoints: Model.ValueDatapoint<any>[], options?: O): RestResponse<void>;
|
|
563
|
+
}
|
|
564
|
+
export declare class ProvisioningResourceClient<O> {
|
|
565
|
+
protected httpClient: HttpClient<O>;
|
|
566
|
+
constructor(httpClient: HttpClient<O>);
|
|
547
567
|
/**
|
|
548
|
-
* HTTP
|
|
549
|
-
* Java method: org.openremote.model.
|
|
568
|
+
* HTTP POST /provisioning
|
|
569
|
+
* Java method: org.openremote.model.provisioning.ProvisioningResource.createProvisioningConfig
|
|
550
570
|
*/
|
|
551
|
-
|
|
571
|
+
createProvisioningConfig(provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<number>;
|
|
552
572
|
/**
|
|
553
|
-
* HTTP
|
|
554
|
-
* Java method: org.openremote.model.
|
|
573
|
+
* HTTP GET /provisioning
|
|
574
|
+
* Java method: org.openremote.model.provisioning.ProvisioningResource.getProvisioningConfigs
|
|
555
575
|
*/
|
|
556
|
-
|
|
576
|
+
getProvisioningConfigs(options?: O): RestResponse<Model.ProvisioningConfigUnion<any, any>[]>;
|
|
557
577
|
/**
|
|
558
|
-
* HTTP DELETE /
|
|
559
|
-
* Java method: org.openremote.model.
|
|
578
|
+
* HTTP DELETE /provisioning/{id}
|
|
579
|
+
* Java method: org.openremote.model.provisioning.ProvisioningResource.deleteProvisioningConfig
|
|
560
580
|
*/
|
|
561
|
-
|
|
581
|
+
deleteProvisioningConfig(id: any, options?: O): RestResponse<void>;
|
|
562
582
|
/**
|
|
563
|
-
* HTTP
|
|
564
|
-
* Java method: org.openremote.model.
|
|
583
|
+
* HTTP PUT /provisioning/{id}
|
|
584
|
+
* Java method: org.openremote.model.provisioning.ProvisioningResource.updateProvisioningConfig
|
|
565
585
|
*/
|
|
566
|
-
|
|
586
|
+
updateProvisioningConfig(id: any, provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<void>;
|
|
587
|
+
}
|
|
588
|
+
export declare class NotificationResourceClient<O> {
|
|
589
|
+
protected httpClient: HttpClient<O>;
|
|
590
|
+
constructor(httpClient: HttpClient<O>);
|
|
567
591
|
/**
|
|
568
|
-
* HTTP
|
|
569
|
-
* Java method: org.openremote.model.
|
|
592
|
+
* HTTP GET /notification
|
|
593
|
+
* Java method: org.openremote.model.notification.NotificationResource.getNotifications
|
|
570
594
|
*/
|
|
571
|
-
|
|
595
|
+
getNotifications(queryParams?: {
|
|
596
|
+
id?: any;
|
|
597
|
+
type?: any;
|
|
598
|
+
from?: any;
|
|
599
|
+
to?: any;
|
|
600
|
+
realmId?: any;
|
|
601
|
+
userId?: any;
|
|
602
|
+
assetId?: any;
|
|
603
|
+
}, options?: O): RestResponse<Model.SentNotification[]>;
|
|
604
|
+
/**
|
|
605
|
+
* HTTP DELETE /notification
|
|
606
|
+
* Java method: org.openremote.model.notification.NotificationResource.removeNotifications
|
|
607
|
+
*/
|
|
608
|
+
removeNotifications(queryParams?: {
|
|
609
|
+
id?: any;
|
|
610
|
+
type?: any;
|
|
611
|
+
from?: any;
|
|
612
|
+
to?: any;
|
|
613
|
+
realmId?: any;
|
|
614
|
+
userId?: any;
|
|
615
|
+
assetId?: any;
|
|
616
|
+
}, options?: O): RestResponse<void>;
|
|
617
|
+
/**
|
|
618
|
+
* HTTP POST /notification/alert
|
|
619
|
+
* Java method: org.openremote.model.notification.NotificationResource.sendNotification
|
|
620
|
+
*/
|
|
621
|
+
sendNotification(notification: Model.Notification, options?: O): RestResponse<void>;
|
|
622
|
+
/**
|
|
623
|
+
* HTTP DELETE /notification/{notificationId}
|
|
624
|
+
* Java method: org.openremote.model.notification.NotificationResource.removeNotification
|
|
625
|
+
*/
|
|
626
|
+
removeNotification(notificationId: any, options?: O): RestResponse<void>;
|
|
627
|
+
/**
|
|
628
|
+
* HTTP PUT /notification/{notificationId}/acknowledged
|
|
629
|
+
* Java method: org.openremote.model.notification.NotificationResource.notificationAcknowledged
|
|
630
|
+
*/
|
|
631
|
+
notificationAcknowledged(notificationId: any, acknowledgement: any, queryParams?: {
|
|
632
|
+
targetId?: any;
|
|
633
|
+
}, options?: O): RestResponse<void>;
|
|
634
|
+
/**
|
|
635
|
+
* HTTP PUT /notification/{notificationId}/delivered
|
|
636
|
+
* Java method: org.openremote.model.notification.NotificationResource.notificationDelivered
|
|
637
|
+
*/
|
|
638
|
+
notificationDelivered(notificationId: any, queryParams?: {
|
|
639
|
+
targetId?: any;
|
|
640
|
+
}, options?: O): RestResponse<void>;
|
|
572
641
|
}
|
|
573
642
|
export declare class DashboardResourceClient<O> {
|
|
574
643
|
protected httpClient: HttpClient<O>;
|
|
@@ -604,104 +673,101 @@ export declare class DashboardResourceClient<O> {
|
|
|
604
673
|
*/
|
|
605
674
|
get(realm: any, dashboardId: any, options?: O): RestResponse<Model.Dashboard>;
|
|
606
675
|
}
|
|
607
|
-
export declare class
|
|
676
|
+
export declare class ConfigurationResourceClient<O> {
|
|
608
677
|
protected httpClient: HttpClient<O>;
|
|
609
678
|
constructor(httpClient: HttpClient<O>);
|
|
610
679
|
/**
|
|
611
|
-
* HTTP GET /
|
|
612
|
-
* Java method: org.openremote.model.
|
|
680
|
+
* HTTP GET /configuration/manager
|
|
681
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfig
|
|
613
682
|
*/
|
|
614
|
-
|
|
615
|
-
parentId?: any;
|
|
616
|
-
parentType?: any;
|
|
617
|
-
}, options?: O): RestResponse<Model.AssetDescriptor[]>;
|
|
683
|
+
getManagerConfig(options?: O): RestResponse<Model.ManagerAppConfig>;
|
|
618
684
|
/**
|
|
619
|
-
* HTTP
|
|
620
|
-
* Java method: org.openremote.model.
|
|
685
|
+
* HTTP PUT /configuration/manager
|
|
686
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.update
|
|
621
687
|
*/
|
|
622
|
-
|
|
623
|
-
parentId?: any;
|
|
624
|
-
}, options?: O): RestResponse<Model.AssetTypeInfo>;
|
|
688
|
+
update(managerConfiguration: Model.ManagerAppConfig, options?: O): RestResponse<Model.ManagerAppConfig>;
|
|
625
689
|
/**
|
|
626
|
-
* HTTP
|
|
627
|
-
* Java method: org.openremote.model.
|
|
690
|
+
* HTTP POST /configuration/manager/file
|
|
691
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.fileUpload
|
|
692
|
+
*/
|
|
693
|
+
fileUpload(fileInfo: Model.FileInfo, queryParams?: {
|
|
694
|
+
path?: any;
|
|
695
|
+
}, options?: O): RestResponse<any>;
|
|
696
|
+
/**
|
|
697
|
+
* HTTP GET /configuration/manager/image/{filename: .+}
|
|
698
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfigImage
|
|
699
|
+
*/
|
|
700
|
+
getManagerConfigImage(filename: any, options?: O): RestResponse<any>;
|
|
701
|
+
}
|
|
702
|
+
export declare class RealmResourceClient<O> {
|
|
703
|
+
protected httpClient: HttpClient<O>;
|
|
704
|
+
constructor(httpClient: HttpClient<O>);
|
|
705
|
+
/**
|
|
706
|
+
* HTTP POST /realm
|
|
707
|
+
* Java method: org.openremote.model.security.RealmResource.create
|
|
708
|
+
*/
|
|
709
|
+
create(realm: Model.Realm, options?: O): RestResponse<void>;
|
|
710
|
+
/**
|
|
711
|
+
* HTTP GET /realm
|
|
712
|
+
* Java method: org.openremote.model.security.RealmResource.getAll
|
|
713
|
+
*/
|
|
714
|
+
getAll(options?: O): RestResponse<Model.Realm[]>;
|
|
715
|
+
/**
|
|
716
|
+
* HTTP GET /realm/accessible
|
|
717
|
+
* Java method: org.openremote.model.security.RealmResource.getAccessible
|
|
718
|
+
*/
|
|
719
|
+
getAccessible(options?: O): RestResponse<Model.Realm[]>;
|
|
720
|
+
/**
|
|
721
|
+
* HTTP DELETE /realm/{name}
|
|
722
|
+
* Java method: org.openremote.model.security.RealmResource.delete
|
|
628
723
|
*/
|
|
629
|
-
|
|
630
|
-
parentId?: any;
|
|
631
|
-
parentType?: any;
|
|
632
|
-
}, options?: O): RestResponse<Model.AssetTypeInfo[]>;
|
|
724
|
+
delete(name: any, options?: O): RestResponse<void>;
|
|
633
725
|
/**
|
|
634
|
-
* HTTP GET /
|
|
635
|
-
* Java method: org.openremote.model.
|
|
726
|
+
* HTTP GET /realm/{name}
|
|
727
|
+
* Java method: org.openremote.model.security.RealmResource.get
|
|
636
728
|
*/
|
|
637
|
-
|
|
638
|
-
parentId?: any;
|
|
639
|
-
}, options?: O): RestResponse<{
|
|
640
|
-
[index: string]: Model.MetaItemDescriptor;
|
|
641
|
-
}>;
|
|
729
|
+
get(name: any, options?: O): RestResponse<Model.Realm>;
|
|
642
730
|
/**
|
|
643
|
-
* HTTP
|
|
644
|
-
* Java method: org.openremote.model.
|
|
731
|
+
* HTTP PUT /realm/{name}
|
|
732
|
+
* Java method: org.openremote.model.security.RealmResource.update
|
|
645
733
|
*/
|
|
646
|
-
|
|
647
|
-
parentId?: any;
|
|
648
|
-
}, options?: O): RestResponse<{
|
|
649
|
-
[index: string]: Model.ValueDescriptor;
|
|
650
|
-
}>;
|
|
734
|
+
update(name: any, realm: Model.Realm, options?: O): RestResponse<void>;
|
|
651
735
|
}
|
|
652
|
-
export declare class
|
|
736
|
+
export declare class GatewayClientResourceClient<O> {
|
|
653
737
|
protected httpClient: HttpClient<O>;
|
|
654
738
|
constructor(httpClient: HttpClient<O>);
|
|
655
739
|
/**
|
|
656
|
-
* HTTP
|
|
657
|
-
* Java method: org.openremote.model.
|
|
740
|
+
* HTTP DELETE /gateway/connection
|
|
741
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnections
|
|
658
742
|
*/
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
from?: any;
|
|
663
|
-
to?: any;
|
|
664
|
-
realmId?: any;
|
|
665
|
-
userId?: any;
|
|
666
|
-
assetId?: any;
|
|
667
|
-
}, options?: O): RestResponse<Model.SentNotification[]>;
|
|
743
|
+
deleteConnections(queryParams?: {
|
|
744
|
+
realm?: any[];
|
|
745
|
+
}, options?: O): RestResponse<void>;
|
|
668
746
|
/**
|
|
669
|
-
* HTTP
|
|
670
|
-
* Java method: org.openremote.model.
|
|
747
|
+
* HTTP GET /gateway/connection
|
|
748
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnections
|
|
671
749
|
*/
|
|
672
|
-
|
|
673
|
-
id?: any;
|
|
674
|
-
type?: any;
|
|
675
|
-
from?: any;
|
|
676
|
-
to?: any;
|
|
677
|
-
realmId?: any;
|
|
678
|
-
userId?: any;
|
|
679
|
-
assetId?: any;
|
|
680
|
-
}, options?: O): RestResponse<void>;
|
|
750
|
+
getConnections(options?: O): RestResponse<Model.GatewayConnection[]>;
|
|
681
751
|
/**
|
|
682
|
-
* HTTP
|
|
683
|
-
* Java method: org.openremote.model.
|
|
752
|
+
* HTTP DELETE /gateway/connection/{realm}
|
|
753
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnection
|
|
684
754
|
*/
|
|
685
|
-
|
|
755
|
+
deleteConnection(realm: any, options?: O): RestResponse<void>;
|
|
686
756
|
/**
|
|
687
|
-
* HTTP
|
|
688
|
-
* Java method: org.openremote.model.
|
|
757
|
+
* HTTP GET /gateway/connection/{realm}
|
|
758
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnection
|
|
689
759
|
*/
|
|
690
|
-
|
|
760
|
+
getConnection(realm: any, options?: O): RestResponse<Model.GatewayConnection>;
|
|
691
761
|
/**
|
|
692
|
-
* HTTP PUT /
|
|
693
|
-
* Java method: org.openremote.model.
|
|
762
|
+
* HTTP PUT /gateway/connection/{realm}
|
|
763
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.setConnection
|
|
694
764
|
*/
|
|
695
|
-
|
|
696
|
-
targetId?: any;
|
|
697
|
-
}, options?: O): RestResponse<void>;
|
|
765
|
+
setConnection(realm: any, connection: Model.GatewayConnection, options?: O): RestResponse<void>;
|
|
698
766
|
/**
|
|
699
|
-
* HTTP
|
|
700
|
-
* Java method: org.openremote.model.
|
|
767
|
+
* HTTP GET /gateway/status/{realm}
|
|
768
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnectionStatus
|
|
701
769
|
*/
|
|
702
|
-
|
|
703
|
-
targetId?: any;
|
|
704
|
-
}, options?: O): RestResponse<void>;
|
|
770
|
+
getConnectionStatus(realm: any, options?: O): RestResponse<Model.ConnectionStatus>;
|
|
705
771
|
}
|
|
706
772
|
export declare class AssetResourceClient<O> {
|
|
707
773
|
protected httpClient: HttpClient<O>;
|
|
@@ -807,123 +873,51 @@ export declare class AssetResourceClient<O> {
|
|
|
807
873
|
assetIds?: any[];
|
|
808
874
|
}, options?: O): RestResponse<void>;
|
|
809
875
|
}
|
|
810
|
-
export declare class RealmResourceClient<O> {
|
|
811
|
-
protected httpClient: HttpClient<O>;
|
|
812
|
-
constructor(httpClient: HttpClient<O>);
|
|
813
|
-
/**
|
|
814
|
-
* HTTP POST /realm
|
|
815
|
-
* Java method: org.openremote.model.security.RealmResource.create
|
|
816
|
-
*/
|
|
817
|
-
create(realm: Model.Realm, options?: O): RestResponse<void>;
|
|
818
|
-
/**
|
|
819
|
-
* HTTP GET /realm
|
|
820
|
-
* Java method: org.openremote.model.security.RealmResource.getAll
|
|
821
|
-
*/
|
|
822
|
-
getAll(options?: O): RestResponse<Model.Realm[]>;
|
|
823
|
-
/**
|
|
824
|
-
* HTTP GET /realm/accessible
|
|
825
|
-
* Java method: org.openremote.model.security.RealmResource.getAccessible
|
|
826
|
-
*/
|
|
827
|
-
getAccessible(options?: O): RestResponse<Model.Realm[]>;
|
|
828
|
-
/**
|
|
829
|
-
* HTTP DELETE /realm/{name}
|
|
830
|
-
* Java method: org.openremote.model.security.RealmResource.delete
|
|
831
|
-
*/
|
|
832
|
-
delete(name: any, options?: O): RestResponse<void>;
|
|
833
|
-
/**
|
|
834
|
-
* HTTP GET /realm/{name}
|
|
835
|
-
* Java method: org.openremote.model.security.RealmResource.get
|
|
836
|
-
*/
|
|
837
|
-
get(name: any, options?: O): RestResponse<Model.Realm>;
|
|
838
|
-
/**
|
|
839
|
-
* HTTP PUT /realm/{name}
|
|
840
|
-
* Java method: org.openremote.model.security.RealmResource.update
|
|
841
|
-
*/
|
|
842
|
-
update(name: any, realm: Model.Realm, options?: O): RestResponse<void>;
|
|
843
|
-
}
|
|
844
|
-
export declare class FlowResourceClient<O> {
|
|
845
|
-
protected httpClient: HttpClient<O>;
|
|
846
|
-
constructor(httpClient: HttpClient<O>);
|
|
847
|
-
/**
|
|
848
|
-
* HTTP GET /flow
|
|
849
|
-
* Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitions
|
|
850
|
-
*/
|
|
851
|
-
getAllNodeDefinitions(options?: O): RestResponse<Model.Node[]>;
|
|
852
|
-
/**
|
|
853
|
-
* HTTP GET /flow/{name}
|
|
854
|
-
* Java method: org.openremote.model.rules.flow.FlowResource.getNodeDefinition
|
|
855
|
-
*/
|
|
856
|
-
getNodeDefinition(name: any, options?: O): RestResponse<Model.Node>;
|
|
857
|
-
/**
|
|
858
|
-
* HTTP GET /flow/{type}
|
|
859
|
-
* Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitionsByType
|
|
860
|
-
*/
|
|
861
|
-
getAllNodeDefinitionsByType(type: Model.NodeType, options?: O): RestResponse<Model.Node[]>;
|
|
862
|
-
}
|
|
863
|
-
export declare class AppResourceClient<O> {
|
|
864
|
-
protected httpClient: HttpClient<O>;
|
|
865
|
-
constructor(httpClient: HttpClient<O>);
|
|
866
|
-
/**
|
|
867
|
-
* HTTP GET /apps
|
|
868
|
-
* Java method: org.openremote.model.apps.AppResource.getApps
|
|
869
|
-
*/
|
|
870
|
-
getApps(options?: O): RestResponse<any[]>;
|
|
871
|
-
/**
|
|
872
|
-
* HTTP GET /apps/consoleConfig
|
|
873
|
-
* Java method: org.openremote.model.apps.AppResource.getConsoleConfig
|
|
874
|
-
*/
|
|
875
|
-
getConsoleConfig(options?: O): RestResponse<any>;
|
|
876
|
-
/**
|
|
877
|
-
* HTTP GET /apps/info
|
|
878
|
-
* Java method: org.openremote.model.apps.AppResource.getAppInfos
|
|
879
|
-
*/
|
|
880
|
-
getAppInfos(options?: O): RestResponse<any>;
|
|
881
|
-
}
|
|
882
876
|
export type RestResponse<R> = Promise<Axios.GenericAxiosResponse<R>>;
|
|
883
877
|
export declare class ApiClient {
|
|
884
|
-
protected
|
|
885
|
-
protected _consoleResource: AxiosConsoleResourceClient;
|
|
886
|
-
protected _statusResource: AxiosStatusResourceClient;
|
|
887
|
-
protected _provisioningResource: AxiosProvisioningResourceClient;
|
|
878
|
+
protected _rulesResource: AxiosRulesResourceClient;
|
|
888
879
|
protected _gatewayServiceResource: AxiosGatewayServiceResourceClient;
|
|
889
|
-
protected _alarmResource: AxiosAlarmResourceClient;
|
|
890
|
-
protected _mapResource: AxiosMapResourceClient;
|
|
891
|
-
protected _assetPredictedDatapointResource: AxiosAssetPredictedDatapointResourceClient;
|
|
892
880
|
protected _assetDatapointResource: AxiosAssetDatapointResourceClient;
|
|
893
|
-
protected
|
|
894
|
-
protected
|
|
881
|
+
protected _alarmResource: AxiosAlarmResourceClient;
|
|
882
|
+
protected _statusResource: AxiosStatusResourceClient;
|
|
895
883
|
protected _syslogResource: AxiosSyslogResourceClient;
|
|
884
|
+
protected _flowResource: AxiosFlowResourceClient;
|
|
885
|
+
protected _consoleResource: AxiosConsoleResourceClient;
|
|
886
|
+
protected _agentResource: AxiosAgentResourceClient;
|
|
896
887
|
protected _userResource: AxiosUserResourceClient;
|
|
897
|
-
protected _rulesResource: AxiosRulesResourceClient;
|
|
898
|
-
protected _dashboardResource: AxiosDashboardResourceClient;
|
|
899
888
|
protected _assetModelResource: AxiosAssetModelResourceClient;
|
|
889
|
+
protected _mapResource: AxiosMapResourceClient;
|
|
890
|
+
protected _appResource: AxiosAppResourceClient;
|
|
891
|
+
protected _assetPredictedDatapointResource: AxiosAssetPredictedDatapointResourceClient;
|
|
892
|
+
protected _provisioningResource: AxiosProvisioningResourceClient;
|
|
900
893
|
protected _notificationResource: AxiosNotificationResourceClient;
|
|
901
|
-
protected
|
|
894
|
+
protected _dashboardResource: AxiosDashboardResourceClient;
|
|
895
|
+
protected _configurationResource: AxiosConfigurationResourceClient;
|
|
902
896
|
protected _realmResource: AxiosRealmResourceClient;
|
|
903
|
-
protected
|
|
904
|
-
protected
|
|
897
|
+
protected _gatewayClientResource: AxiosGatewayClientResourceClient;
|
|
898
|
+
protected _assetResource: AxiosAssetResourceClient;
|
|
905
899
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
906
|
-
get
|
|
907
|
-
get ConsoleResource(): AxiosConsoleResourceClient;
|
|
908
|
-
get StatusResource(): AxiosStatusResourceClient;
|
|
909
|
-
get ProvisioningResource(): AxiosProvisioningResourceClient;
|
|
900
|
+
get RulesResource(): AxiosRulesResourceClient;
|
|
910
901
|
get GatewayServiceResource(): AxiosGatewayServiceResourceClient;
|
|
911
|
-
get AlarmResource(): AxiosAlarmResourceClient;
|
|
912
|
-
get MapResource(): AxiosMapResourceClient;
|
|
913
|
-
get AssetPredictedDatapointResource(): AxiosAssetPredictedDatapointResourceClient;
|
|
914
902
|
get AssetDatapointResource(): AxiosAssetDatapointResourceClient;
|
|
915
|
-
get
|
|
916
|
-
get
|
|
903
|
+
get AlarmResource(): AxiosAlarmResourceClient;
|
|
904
|
+
get StatusResource(): AxiosStatusResourceClient;
|
|
917
905
|
get SyslogResource(): AxiosSyslogResourceClient;
|
|
906
|
+
get FlowResource(): AxiosFlowResourceClient;
|
|
907
|
+
get ConsoleResource(): AxiosConsoleResourceClient;
|
|
908
|
+
get AgentResource(): AxiosAgentResourceClient;
|
|
918
909
|
get UserResource(): AxiosUserResourceClient;
|
|
919
|
-
get RulesResource(): AxiosRulesResourceClient;
|
|
920
|
-
get DashboardResource(): AxiosDashboardResourceClient;
|
|
921
910
|
get AssetModelResource(): AxiosAssetModelResourceClient;
|
|
911
|
+
get MapResource(): AxiosMapResourceClient;
|
|
912
|
+
get AppResource(): AxiosAppResourceClient;
|
|
913
|
+
get AssetPredictedDatapointResource(): AxiosAssetPredictedDatapointResourceClient;
|
|
914
|
+
get ProvisioningResource(): AxiosProvisioningResourceClient;
|
|
922
915
|
get NotificationResource(): AxiosNotificationResourceClient;
|
|
923
|
-
get
|
|
916
|
+
get DashboardResource(): AxiosDashboardResourceClient;
|
|
917
|
+
get ConfigurationResource(): AxiosConfigurationResourceClient;
|
|
924
918
|
get RealmResource(): AxiosRealmResourceClient;
|
|
925
|
-
get
|
|
926
|
-
get
|
|
919
|
+
get GatewayClientResource(): AxiosGatewayClientResourceClient;
|
|
920
|
+
get AssetResource(): AxiosAssetResourceClient;
|
|
927
921
|
}
|
|
928
922
|
import * as Axios from "axios";
|
|
929
923
|
declare module "axios" {
|
|
@@ -931,66 +925,66 @@ declare module "axios" {
|
|
|
931
925
|
data: R;
|
|
932
926
|
}
|
|
933
927
|
}
|
|
934
|
-
export declare class
|
|
928
|
+
export declare class AxiosRulesResourceClient extends RulesResourceClient<Axios.AxiosRequestConfig> {
|
|
935
929
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
936
930
|
}
|
|
937
|
-
export declare class
|
|
931
|
+
export declare class AxiosGatewayServiceResourceClient extends GatewayServiceResourceClient<Axios.AxiosRequestConfig> {
|
|
938
932
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
939
933
|
}
|
|
940
|
-
export declare class
|
|
934
|
+
export declare class AxiosAssetDatapointResourceClient extends AssetDatapointResourceClient<Axios.AxiosRequestConfig> {
|
|
941
935
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
942
936
|
}
|
|
943
|
-
export declare class
|
|
937
|
+
export declare class AxiosAlarmResourceClient extends AlarmResourceClient<Axios.AxiosRequestConfig> {
|
|
944
938
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
945
939
|
}
|
|
946
|
-
export declare class
|
|
940
|
+
export declare class AxiosStatusResourceClient extends StatusResourceClient<Axios.AxiosRequestConfig> {
|
|
947
941
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
948
942
|
}
|
|
949
|
-
export declare class
|
|
943
|
+
export declare class AxiosSyslogResourceClient extends SyslogResourceClient<Axios.AxiosRequestConfig> {
|
|
950
944
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
951
945
|
}
|
|
952
|
-
export declare class
|
|
946
|
+
export declare class AxiosFlowResourceClient extends FlowResourceClient<Axios.AxiosRequestConfig> {
|
|
953
947
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
954
948
|
}
|
|
955
|
-
export declare class
|
|
949
|
+
export declare class AxiosConsoleResourceClient extends ConsoleResourceClient<Axios.AxiosRequestConfig> {
|
|
956
950
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
957
951
|
}
|
|
958
|
-
export declare class
|
|
952
|
+
export declare class AxiosAgentResourceClient extends AgentResourceClient<Axios.AxiosRequestConfig> {
|
|
959
953
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
960
954
|
}
|
|
961
|
-
export declare class
|
|
955
|
+
export declare class AxiosUserResourceClient extends UserResourceClient<Axios.AxiosRequestConfig> {
|
|
962
956
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
963
957
|
}
|
|
964
|
-
export declare class
|
|
958
|
+
export declare class AxiosAssetModelResourceClient extends AssetModelResourceClient<Axios.AxiosRequestConfig> {
|
|
965
959
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
966
960
|
}
|
|
967
|
-
export declare class
|
|
961
|
+
export declare class AxiosMapResourceClient extends MapResourceClient<Axios.AxiosRequestConfig> {
|
|
968
962
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
969
963
|
}
|
|
970
|
-
export declare class
|
|
964
|
+
export declare class AxiosAppResourceClient extends AppResourceClient<Axios.AxiosRequestConfig> {
|
|
971
965
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
972
966
|
}
|
|
973
|
-
export declare class
|
|
967
|
+
export declare class AxiosAssetPredictedDatapointResourceClient extends AssetPredictedDatapointResourceClient<Axios.AxiosRequestConfig> {
|
|
974
968
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
975
969
|
}
|
|
976
|
-
export declare class
|
|
970
|
+
export declare class AxiosProvisioningResourceClient extends ProvisioningResourceClient<Axios.AxiosRequestConfig> {
|
|
977
971
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
978
972
|
}
|
|
979
|
-
export declare class
|
|
973
|
+
export declare class AxiosNotificationResourceClient extends NotificationResourceClient<Axios.AxiosRequestConfig> {
|
|
980
974
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
981
975
|
}
|
|
982
|
-
export declare class
|
|
976
|
+
export declare class AxiosDashboardResourceClient extends DashboardResourceClient<Axios.AxiosRequestConfig> {
|
|
983
977
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
984
978
|
}
|
|
985
|
-
export declare class
|
|
979
|
+
export declare class AxiosConfigurationResourceClient extends ConfigurationResourceClient<Axios.AxiosRequestConfig> {
|
|
986
980
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
987
981
|
}
|
|
988
982
|
export declare class AxiosRealmResourceClient extends RealmResourceClient<Axios.AxiosRequestConfig> {
|
|
989
983
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
990
984
|
}
|
|
991
|
-
export declare class
|
|
985
|
+
export declare class AxiosGatewayClientResourceClient extends GatewayClientResourceClient<Axios.AxiosRequestConfig> {
|
|
992
986
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
993
987
|
}
|
|
994
|
-
export declare class
|
|
988
|
+
export declare class AxiosAssetResourceClient extends AssetResourceClient<Axios.AxiosRequestConfig> {
|
|
995
989
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
996
990
|
}
|