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