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