@openremote/rest 1.0.3 → 1.2.0-snapshot.20240512155932
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 -8
- package/dist/umd/index.js +1 -1
- package/{dist → lib}/index.d.ts +6 -2
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -0
- package/{dist → lib}/restclient.d.ts +574 -380
- package/lib/restclient.js +1 -0
- package/lib/restclient.js.map +1 -0
- package/package.json +20 -16
- package/LICENSE.txt +0 -2359
- package/dist/.tsbuildinfo +0 -9118
- package/dist/index.js +0 -30
- package/dist/index.js.map +0 -1
- package/dist/restclient.js +0 -901
- package/dist/restclient.js.map +0 -1
package/dist/restclient.js
DELETED
|
@@ -1,901 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
// Generated using typescript-generator version 2.13.489 on 2020-09-08 11:24:14.
|
|
3
|
-
export class FlowResourceClient {
|
|
4
|
-
constructor(httpClient) {
|
|
5
|
-
this.httpClient = httpClient;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* HTTP GET /flow
|
|
9
|
-
* Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitions
|
|
10
|
-
*/
|
|
11
|
-
getAllNodeDefinitions(options) {
|
|
12
|
-
return this.httpClient.request({ method: "GET", url: uriEncoding `flow`, options: options });
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* HTTP GET /flow/{name}
|
|
16
|
-
* Java method: org.openremote.model.rules.flow.FlowResource.getNodeDefinition
|
|
17
|
-
*/
|
|
18
|
-
getNodeDefinition(name, options) {
|
|
19
|
-
return this.httpClient.request({ method: "GET", url: uriEncoding `flow/${name}`, options: options });
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* HTTP GET /flow/{type}
|
|
23
|
-
* Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitionsByType
|
|
24
|
-
*/
|
|
25
|
-
getAllNodeDefinitionsByType(type, options) {
|
|
26
|
-
return this.httpClient.request({ method: "GET", url: uriEncoding `flow/${type}`, options: options });
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
export class StatusResourceClient {
|
|
30
|
-
constructor(httpClient) {
|
|
31
|
-
this.httpClient = httpClient;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* HTTP GET /health
|
|
35
|
-
* Java method: org.openremote.model.system.StatusResource.getHealthStatus
|
|
36
|
-
*/
|
|
37
|
-
getHealthStatus(options) {
|
|
38
|
-
return this.httpClient.request({ method: "GET", url: uriEncoding `health`, options: options });
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* HTTP GET /info
|
|
42
|
-
* Java method: org.openremote.model.system.StatusResource.getInfo
|
|
43
|
-
*/
|
|
44
|
-
getInfo(options) {
|
|
45
|
-
return this.httpClient.request({ method: "GET", url: uriEncoding `info`, options: options });
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
export class AssetPredictedDatapointResourceClient {
|
|
49
|
-
constructor(httpClient) {
|
|
50
|
-
this.httpClient = httpClient;
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* HTTP GET /asset/predicted/{assetId}/attribute/{attributeName}
|
|
54
|
-
* Java method: org.openremote.model.predicted.AssetPredictedDatapointResource.getPredictedDatapoints
|
|
55
|
-
*/
|
|
56
|
-
getPredictedDatapoints(assetId, attributeName, queryParams, options) {
|
|
57
|
-
return this.httpClient.request({ method: "GET", url: uriEncoding `asset/predicted/${assetId}/attribute/${attributeName}`, queryParams: queryParams, options: options });
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
export class MapResourceClient {
|
|
61
|
-
constructor(httpClient) {
|
|
62
|
-
this.httpClient = httpClient;
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* HTTP GET /map
|
|
66
|
-
* Java method: org.openremote.model.map.MapResource.getSettings
|
|
67
|
-
*/
|
|
68
|
-
getSettings(options) {
|
|
69
|
-
return this.httpClient.request({ method: "GET", url: uriEncoding `map`, options: options });
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* HTTP GET /map/js
|
|
73
|
-
* Java method: org.openremote.model.map.MapResource.getSettingsJs
|
|
74
|
-
*/
|
|
75
|
-
getSettingsJs(options) {
|
|
76
|
-
return this.httpClient.request({ method: "GET", url: uriEncoding `map/js`, options: options });
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* HTTP GET /map/tile/{zoom}/{column}/{row}
|
|
80
|
-
* Java method: org.openremote.model.map.MapResource.getTile
|
|
81
|
-
*/
|
|
82
|
-
getTile(zoom, column, row, options) {
|
|
83
|
-
return this.httpClient.request({ method: "GET", url: uriEncoding `map/tile/${zoom}/${column}/${row}`, options: options });
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
export class AssetDatapointResourceClient {
|
|
87
|
-
constructor(httpClient) {
|
|
88
|
-
this.httpClient = httpClient;
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* HTTP GET /asset/datapoint/{assetId}/attribute/{attributeName}
|
|
92
|
-
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapoints
|
|
93
|
-
*/
|
|
94
|
-
getDatapoints(assetId, attributeName, queryParams, options) {
|
|
95
|
-
return this.httpClient.request({ method: "GET", url: uriEncoding `asset/datapoint/${assetId}/attribute/${attributeName}`, queryParams: queryParams, options: options });
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
export class UserResourceClient {
|
|
99
|
-
constructor(httpClient) {
|
|
100
|
-
this.httpClient = httpClient;
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* HTTP GET /user
|
|
104
|
-
* Java method: org.openremote.model.security.UserResource.getCurrent
|
|
105
|
-
*/
|
|
106
|
-
getCurrent(options) {
|
|
107
|
-
return this.httpClient.request({ method: "GET", url: uriEncoding `user`, options: options });
|
|
108
|
-
}
|
|
109
|
-
/**
|
|
110
|
-
* HTTP GET /user/role
|
|
111
|
-
* Java method: org.openremote.model.security.UserResource.getCurrentUserRoles
|
|
112
|
-
*/
|
|
113
|
-
getCurrentUserRoles(options) {
|
|
114
|
-
return this.httpClient.request({ method: "GET", url: uriEncoding `user/role`, options: options });
|
|
115
|
-
}
|
|
116
|
-
/**
|
|
117
|
-
* HTTP POST /user/{realm}
|
|
118
|
-
* Java method: org.openremote.model.security.UserResource.create
|
|
119
|
-
*/
|
|
120
|
-
create(realm, user, options) {
|
|
121
|
-
return this.httpClient.request({ method: "POST", url: uriEncoding `user/${realm}`, data: user, options: options });
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* HTTP GET /user/{realm}
|
|
125
|
-
* Java method: org.openremote.model.security.UserResource.getAll
|
|
126
|
-
*/
|
|
127
|
-
getAll(realm, options) {
|
|
128
|
-
return this.httpClient.request({ method: "GET", url: uriEncoding `user/${realm}`, options: options });
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* HTTP PUT /user/{realm}/role/{userId}
|
|
132
|
-
* Java method: org.openremote.model.security.UserResource.updateRoles
|
|
133
|
-
*/
|
|
134
|
-
updateRoles(realm, userId, roles, options) {
|
|
135
|
-
return this.httpClient.request({ method: "PUT", url: uriEncoding `user/${realm}/role/${userId}`, data: roles, options: options });
|
|
136
|
-
}
|
|
137
|
-
/**
|
|
138
|
-
* HTTP DELETE /user/{realm}/{userId}
|
|
139
|
-
* Java method: org.openremote.model.security.UserResource.delete
|
|
140
|
-
*/
|
|
141
|
-
delete(realm, userId, options) {
|
|
142
|
-
return this.httpClient.request({ method: "DELETE", url: uriEncoding `user/${realm}/${userId}`, options: options });
|
|
143
|
-
}
|
|
144
|
-
/**
|
|
145
|
-
* HTTP GET /user/{realm}/{userId}
|
|
146
|
-
* Java method: org.openremote.model.security.UserResource.get
|
|
147
|
-
*/
|
|
148
|
-
get(realm, userId, options) {
|
|
149
|
-
return this.httpClient.request({ method: "GET", url: uriEncoding `user/${realm}/${userId}`, options: options });
|
|
150
|
-
}
|
|
151
|
-
/**
|
|
152
|
-
* HTTP PUT /user/{realm}/{userId}
|
|
153
|
-
* Java method: org.openremote.model.security.UserResource.update
|
|
154
|
-
*/
|
|
155
|
-
update(realm, userId, user, options) {
|
|
156
|
-
return this.httpClient.request({ method: "PUT", url: uriEncoding `user/${realm}/${userId}`, data: user, options: options });
|
|
157
|
-
}
|
|
158
|
-
/**
|
|
159
|
-
* HTTP PUT /user/{realm}/{userId}/reset-password
|
|
160
|
-
* Java method: org.openremote.model.security.UserResource.resetPassword
|
|
161
|
-
*/
|
|
162
|
-
resetPassword(realm, userId, credential, options) {
|
|
163
|
-
return this.httpClient.request({ method: "PUT", url: uriEncoding `user/${realm}/${userId}/reset-password`, data: credential, options: options });
|
|
164
|
-
}
|
|
165
|
-
/**
|
|
166
|
-
* HTTP GET /user/{realm}/{userId}/role
|
|
167
|
-
* Java method: org.openremote.model.security.UserResource.getRoles
|
|
168
|
-
*/
|
|
169
|
-
getRoles(realm, userId, options) {
|
|
170
|
-
return this.httpClient.request({ method: "GET", url: uriEncoding `user/${realm}/${userId}/role`, options: options });
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
export class ConsoleResourceClient {
|
|
174
|
-
constructor(httpClient) {
|
|
175
|
-
this.httpClient = httpClient;
|
|
176
|
-
}
|
|
177
|
-
/**
|
|
178
|
-
* HTTP POST /console/register
|
|
179
|
-
* Java method: org.openremote.model.console.ConsoleResource.register
|
|
180
|
-
*/
|
|
181
|
-
register(consoleRegistration, options) {
|
|
182
|
-
return this.httpClient.request({ method: "POST", url: uriEncoding `console/register`, data: consoleRegistration, options: options });
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
export class SyslogResourceClient {
|
|
186
|
-
constructor(httpClient) {
|
|
187
|
-
this.httpClient = httpClient;
|
|
188
|
-
}
|
|
189
|
-
/**
|
|
190
|
-
* HTTP GET /syslog/config
|
|
191
|
-
* Java method: org.openremote.model.syslog.SyslogResource.getConfig
|
|
192
|
-
*/
|
|
193
|
-
getConfig(options) {
|
|
194
|
-
return this.httpClient.request({ method: "GET", url: uriEncoding `syslog/config`, options: options });
|
|
195
|
-
}
|
|
196
|
-
/**
|
|
197
|
-
* HTTP PUT /syslog/config
|
|
198
|
-
* Java method: org.openremote.model.syslog.SyslogResource.updateConfig
|
|
199
|
-
*/
|
|
200
|
-
updateConfig(config, options) {
|
|
201
|
-
return this.httpClient.request({ method: "PUT", url: uriEncoding `syslog/config`, data: config, options: options });
|
|
202
|
-
}
|
|
203
|
-
/**
|
|
204
|
-
* HTTP DELETE /syslog/event
|
|
205
|
-
* Java method: org.openremote.model.syslog.SyslogResource.clearEvents
|
|
206
|
-
*/
|
|
207
|
-
clearEvents(options) {
|
|
208
|
-
return this.httpClient.request({ method: "DELETE", url: uriEncoding `syslog/event`, options: options });
|
|
209
|
-
}
|
|
210
|
-
/**
|
|
211
|
-
* HTTP GET /syslog/event
|
|
212
|
-
* Java method: org.openremote.model.syslog.SyslogResource.getEvents
|
|
213
|
-
*/
|
|
214
|
-
getEvents(queryParams, options) {
|
|
215
|
-
return this.httpClient.request({ method: "GET", url: uriEncoding `syslog/event`, queryParams: queryParams, options: options });
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
export class RulesResourceClient {
|
|
219
|
-
constructor(httpClient) {
|
|
220
|
-
this.httpClient = httpClient;
|
|
221
|
-
}
|
|
222
|
-
/**
|
|
223
|
-
* HTTP POST /rules
|
|
224
|
-
* Java method: org.openremote.model.rules.RulesResource.createGlobalRuleset
|
|
225
|
-
*/
|
|
226
|
-
createGlobalRuleset(ruleset, options) {
|
|
227
|
-
return this.httpClient.request({ method: "POST", url: uriEncoding `rules`, data: ruleset, options: options });
|
|
228
|
-
}
|
|
229
|
-
/**
|
|
230
|
-
* HTTP GET /rules
|
|
231
|
-
* Java method: org.openremote.model.rules.RulesResource.getGlobalRulesets
|
|
232
|
-
*/
|
|
233
|
-
getGlobalRulesets(queryParams, options) {
|
|
234
|
-
return this.httpClient.request({ method: "GET", url: uriEncoding `rules`, queryParams: queryParams, options: options });
|
|
235
|
-
}
|
|
236
|
-
/**
|
|
237
|
-
* HTTP POST /rules/asset
|
|
238
|
-
* Java method: org.openremote.model.rules.RulesResource.createAssetRuleset
|
|
239
|
-
*/
|
|
240
|
-
createAssetRuleset(ruleset, options) {
|
|
241
|
-
return this.httpClient.request({ method: "POST", url: uriEncoding `rules/asset`, data: ruleset, options: options });
|
|
242
|
-
}
|
|
243
|
-
/**
|
|
244
|
-
* HTTP GET /rules/asset/for/{assetId}
|
|
245
|
-
* Java method: org.openremote.model.rules.RulesResource.getAssetRulesets
|
|
246
|
-
*/
|
|
247
|
-
getAssetRulesets(assetId, queryParams, options) {
|
|
248
|
-
return this.httpClient.request({ method: "GET", url: uriEncoding `rules/asset/for/${assetId}`, queryParams: queryParams, options: options });
|
|
249
|
-
}
|
|
250
|
-
/**
|
|
251
|
-
* HTTP DELETE /rules/asset/{id}
|
|
252
|
-
* Java method: org.openremote.model.rules.RulesResource.deleteAssetRuleset
|
|
253
|
-
*/
|
|
254
|
-
deleteAssetRuleset(id, options) {
|
|
255
|
-
return this.httpClient.request({ method: "DELETE", url: uriEncoding `rules/asset/${id}`, options: options });
|
|
256
|
-
}
|
|
257
|
-
/**
|
|
258
|
-
* HTTP GET /rules/asset/{id}
|
|
259
|
-
* Java method: org.openremote.model.rules.RulesResource.getAssetRuleset
|
|
260
|
-
*/
|
|
261
|
-
getAssetRuleset(id, options) {
|
|
262
|
-
return this.httpClient.request({ method: "GET", url: uriEncoding `rules/asset/${id}`, options: options });
|
|
263
|
-
}
|
|
264
|
-
/**
|
|
265
|
-
* HTTP PUT /rules/asset/{id}
|
|
266
|
-
* Java method: org.openremote.model.rules.RulesResource.updateAssetRuleset
|
|
267
|
-
*/
|
|
268
|
-
updateAssetRuleset(id, ruleset, options) {
|
|
269
|
-
return this.httpClient.request({ method: "PUT", url: uriEncoding `rules/asset/${id}`, data: ruleset, options: options });
|
|
270
|
-
}
|
|
271
|
-
/**
|
|
272
|
-
* HTTP GET /rules/geofences/{assetId}
|
|
273
|
-
* Java method: org.openremote.model.rules.RulesResource.getAssetGeofences
|
|
274
|
-
*/
|
|
275
|
-
getAssetGeofences(assetId, options) {
|
|
276
|
-
return this.httpClient.request({ method: "GET", url: uriEncoding `rules/geofences/${assetId}`, options: options });
|
|
277
|
-
}
|
|
278
|
-
/**
|
|
279
|
-
* HTTP GET /rules/info/asset/{assetId}
|
|
280
|
-
* Java method: org.openremote.model.rules.RulesResource.getAssetEngineInfo
|
|
281
|
-
*/
|
|
282
|
-
getAssetEngineInfo(assetId, options) {
|
|
283
|
-
return this.httpClient.request({ method: "GET", url: uriEncoding `rules/info/asset/${assetId}`, options: options });
|
|
284
|
-
}
|
|
285
|
-
/**
|
|
286
|
-
* HTTP GET /rules/info/global
|
|
287
|
-
* Java method: org.openremote.model.rules.RulesResource.getGlobalEngineInfo
|
|
288
|
-
*/
|
|
289
|
-
getGlobalEngineInfo(options) {
|
|
290
|
-
return this.httpClient.request({ method: "GET", url: uriEncoding `rules/info/global`, options: options });
|
|
291
|
-
}
|
|
292
|
-
/**
|
|
293
|
-
* HTTP GET /rules/info/tenant/{realm}
|
|
294
|
-
* Java method: org.openremote.model.rules.RulesResource.getTenantEngineInfo
|
|
295
|
-
*/
|
|
296
|
-
getTenantEngineInfo(realm, options) {
|
|
297
|
-
return this.httpClient.request({ method: "GET", url: uriEncoding `rules/info/tenant/${realm}`, options: options });
|
|
298
|
-
}
|
|
299
|
-
/**
|
|
300
|
-
* HTTP POST /rules/tenant
|
|
301
|
-
* Java method: org.openremote.model.rules.RulesResource.createTenantRuleset
|
|
302
|
-
*/
|
|
303
|
-
createTenantRuleset(ruleset, options) {
|
|
304
|
-
return this.httpClient.request({ method: "POST", url: uriEncoding `rules/tenant`, data: ruleset, options: options });
|
|
305
|
-
}
|
|
306
|
-
/**
|
|
307
|
-
* HTTP GET /rules/tenant/for/{realm}
|
|
308
|
-
* Java method: org.openremote.model.rules.RulesResource.getTenantRulesets
|
|
309
|
-
*/
|
|
310
|
-
getTenantRulesets(realm, queryParams, options) {
|
|
311
|
-
return this.httpClient.request({ method: "GET", url: uriEncoding `rules/tenant/for/${realm}`, queryParams: queryParams, options: options });
|
|
312
|
-
}
|
|
313
|
-
/**
|
|
314
|
-
* HTTP DELETE /rules/tenant/{id}
|
|
315
|
-
* Java method: org.openremote.model.rules.RulesResource.deleteTenantRuleset
|
|
316
|
-
*/
|
|
317
|
-
deleteTenantRuleset(id, options) {
|
|
318
|
-
return this.httpClient.request({ method: "DELETE", url: uriEncoding `rules/tenant/${id}`, options: options });
|
|
319
|
-
}
|
|
320
|
-
/**
|
|
321
|
-
* HTTP GET /rules/tenant/{id}
|
|
322
|
-
* Java method: org.openremote.model.rules.RulesResource.getTenantRuleset
|
|
323
|
-
*/
|
|
324
|
-
getTenantRuleset(id, options) {
|
|
325
|
-
return this.httpClient.request({ method: "GET", url: uriEncoding `rules/tenant/${id}`, options: options });
|
|
326
|
-
}
|
|
327
|
-
/**
|
|
328
|
-
* HTTP PUT /rules/tenant/{id}
|
|
329
|
-
* Java method: org.openremote.model.rules.RulesResource.updateTenantRuleset
|
|
330
|
-
*/
|
|
331
|
-
updateTenantRuleset(id, ruleset, options) {
|
|
332
|
-
return this.httpClient.request({ method: "PUT", url: uriEncoding `rules/tenant/${id}`, data: ruleset, options: options });
|
|
333
|
-
}
|
|
334
|
-
/**
|
|
335
|
-
* HTTP DELETE /rules/{id}
|
|
336
|
-
* Java method: org.openremote.model.rules.RulesResource.deleteGlobalRuleset
|
|
337
|
-
*/
|
|
338
|
-
deleteGlobalRuleset(id, options) {
|
|
339
|
-
return this.httpClient.request({ method: "DELETE", url: uriEncoding `rules/${id}`, options: options });
|
|
340
|
-
}
|
|
341
|
-
/**
|
|
342
|
-
* HTTP GET /rules/{id}
|
|
343
|
-
* Java method: org.openremote.model.rules.RulesResource.getGlobalRuleset
|
|
344
|
-
*/
|
|
345
|
-
getGlobalRuleset(id, options) {
|
|
346
|
-
return this.httpClient.request({ method: "GET", url: uriEncoding `rules/${id}`, options: options });
|
|
347
|
-
}
|
|
348
|
-
/**
|
|
349
|
-
* HTTP PUT /rules/{id}
|
|
350
|
-
* Java method: org.openremote.model.rules.RulesResource.updateGlobalRuleset
|
|
351
|
-
*/
|
|
352
|
-
updateGlobalRuleset(id, ruleset, options) {
|
|
353
|
-
return this.httpClient.request({ method: "PUT", url: uriEncoding `rules/${id}`, data: ruleset, options: options });
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
export class AssetModelResourceClient {
|
|
357
|
-
constructor(httpClient) {
|
|
358
|
-
this.httpClient = httpClient;
|
|
359
|
-
}
|
|
360
|
-
/**
|
|
361
|
-
* HTTP GET /model/asset/descriptors
|
|
362
|
-
* Java method: org.openremote.model.asset.AssetModelResource.getAssetDescriptors
|
|
363
|
-
*/
|
|
364
|
-
getAssetDescriptors(options) {
|
|
365
|
-
return this.httpClient.request({ method: "GET", url: uriEncoding `model/asset/descriptors`, options: options });
|
|
366
|
-
}
|
|
367
|
-
/**
|
|
368
|
-
* HTTP GET /model/attribute/typeDescriptors
|
|
369
|
-
* Java method: org.openremote.model.asset.AssetModelResource.getAttributeDescriptors
|
|
370
|
-
*/
|
|
371
|
-
getAttributeDescriptors(options) {
|
|
372
|
-
return this.httpClient.request({ method: "GET", url: uriEncoding `model/attribute/typeDescriptors`, options: options });
|
|
373
|
-
}
|
|
374
|
-
/**
|
|
375
|
-
* HTTP GET /model/attribute/valueDescriptors
|
|
376
|
-
* Java method: org.openremote.model.asset.AssetModelResource.getAttributeValueDescriptors
|
|
377
|
-
*/
|
|
378
|
-
getAttributeValueDescriptors(options) {
|
|
379
|
-
return this.httpClient.request({ method: "GET", url: uriEncoding `model/attribute/valueDescriptors`, options: options });
|
|
380
|
-
}
|
|
381
|
-
/**
|
|
382
|
-
* HTTP GET /model/metaItem/descriptors
|
|
383
|
-
* Java method: org.openremote.model.asset.AssetModelResource.getMetaItemDescriptors
|
|
384
|
-
*/
|
|
385
|
-
getMetaItemDescriptors(options) {
|
|
386
|
-
return this.httpClient.request({ method: "GET", url: uriEncoding `model/metaItem/descriptors`, options: options });
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
export class GatewayClientResourceClient {
|
|
390
|
-
constructor(httpClient) {
|
|
391
|
-
this.httpClient = httpClient;
|
|
392
|
-
}
|
|
393
|
-
/**
|
|
394
|
-
* HTTP DELETE /gateway/connection
|
|
395
|
-
* Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnections
|
|
396
|
-
*/
|
|
397
|
-
deleteConnections(queryParams, options) {
|
|
398
|
-
return this.httpClient.request({ method: "DELETE", url: uriEncoding `gateway/connection`, queryParams: queryParams, options: options });
|
|
399
|
-
}
|
|
400
|
-
/**
|
|
401
|
-
* HTTP GET /gateway/connection
|
|
402
|
-
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnections
|
|
403
|
-
*/
|
|
404
|
-
getConnections(options) {
|
|
405
|
-
return this.httpClient.request({ method: "GET", url: uriEncoding `gateway/connection`, options: options });
|
|
406
|
-
}
|
|
407
|
-
/**
|
|
408
|
-
* HTTP DELETE /gateway/connection/{realm}
|
|
409
|
-
* Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnection
|
|
410
|
-
*/
|
|
411
|
-
deleteConnection(realm, options) {
|
|
412
|
-
return this.httpClient.request({ method: "DELETE", url: uriEncoding `gateway/connection/${realm}`, options: options });
|
|
413
|
-
}
|
|
414
|
-
/**
|
|
415
|
-
* HTTP GET /gateway/connection/{realm}
|
|
416
|
-
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnection
|
|
417
|
-
*/
|
|
418
|
-
getConnection(realm, options) {
|
|
419
|
-
return this.httpClient.request({ method: "GET", url: uriEncoding `gateway/connection/${realm}`, options: options });
|
|
420
|
-
}
|
|
421
|
-
/**
|
|
422
|
-
* HTTP PUT /gateway/connection/{realm}
|
|
423
|
-
* Java method: org.openremote.model.gateway.GatewayClientResource.setConnection
|
|
424
|
-
*/
|
|
425
|
-
setConnection(realm, connection, options) {
|
|
426
|
-
return this.httpClient.request({ method: "PUT", url: uriEncoding `gateway/connection/${realm}`, data: connection, options: options });
|
|
427
|
-
}
|
|
428
|
-
/**
|
|
429
|
-
* HTTP GET /gateway/status/{realm}
|
|
430
|
-
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnectionStatus
|
|
431
|
-
*/
|
|
432
|
-
getConnectionStatus(realm, options) {
|
|
433
|
-
return this.httpClient.request({ method: "GET", url: uriEncoding `gateway/status/${realm}`, options: options });
|
|
434
|
-
}
|
|
435
|
-
}
|
|
436
|
-
export class NotificationResourceClient {
|
|
437
|
-
constructor(httpClient) {
|
|
438
|
-
this.httpClient = httpClient;
|
|
439
|
-
}
|
|
440
|
-
/**
|
|
441
|
-
* HTTP GET /notification
|
|
442
|
-
* Java method: org.openremote.model.notification.NotificationResource.getNotifications
|
|
443
|
-
*/
|
|
444
|
-
getNotifications(queryParams, options) {
|
|
445
|
-
return this.httpClient.request({ method: "GET", url: uriEncoding `notification`, queryParams: queryParams, options: options });
|
|
446
|
-
}
|
|
447
|
-
/**
|
|
448
|
-
* HTTP DELETE /notification
|
|
449
|
-
* Java method: org.openremote.model.notification.NotificationResource.removeNotifications
|
|
450
|
-
*/
|
|
451
|
-
removeNotifications(queryParams, options) {
|
|
452
|
-
return this.httpClient.request({ method: "DELETE", url: uriEncoding `notification`, queryParams: queryParams, options: options });
|
|
453
|
-
}
|
|
454
|
-
/**
|
|
455
|
-
* HTTP POST /notification/alert
|
|
456
|
-
* Java method: org.openremote.model.notification.NotificationResource.sendNotification
|
|
457
|
-
*/
|
|
458
|
-
sendNotification(notification, options) {
|
|
459
|
-
return this.httpClient.request({ method: "POST", url: uriEncoding `notification/alert`, data: notification, options: options });
|
|
460
|
-
}
|
|
461
|
-
/**
|
|
462
|
-
* HTTP DELETE /notification/{notificationId}
|
|
463
|
-
* Java method: org.openremote.model.notification.NotificationResource.removeNotification
|
|
464
|
-
*/
|
|
465
|
-
removeNotification(notificationId, options) {
|
|
466
|
-
return this.httpClient.request({ method: "DELETE", url: uriEncoding `notification/${notificationId}`, options: options });
|
|
467
|
-
}
|
|
468
|
-
/**
|
|
469
|
-
* HTTP PUT /notification/{notificationId}/acknowledged
|
|
470
|
-
* Java method: org.openremote.model.notification.NotificationResource.notificationAcknowledged
|
|
471
|
-
*/
|
|
472
|
-
notificationAcknowledged(notificationId, acknowledgement, queryParams, options) {
|
|
473
|
-
return this.httpClient.request({ method: "PUT", url: uriEncoding `notification/${notificationId}/acknowledged`, queryParams: queryParams, data: acknowledgement, options: options });
|
|
474
|
-
}
|
|
475
|
-
/**
|
|
476
|
-
* HTTP PUT /notification/{notificationId}/delivered
|
|
477
|
-
* Java method: org.openremote.model.notification.NotificationResource.notificationDelivered
|
|
478
|
-
*/
|
|
479
|
-
notificationDelivered(notificationId, queryParams, options) {
|
|
480
|
-
return this.httpClient.request({ method: "PUT", url: uriEncoding `notification/${notificationId}/delivered`, queryParams: queryParams, options: options });
|
|
481
|
-
}
|
|
482
|
-
}
|
|
483
|
-
export class TenantResourceClient {
|
|
484
|
-
constructor(httpClient) {
|
|
485
|
-
this.httpClient = httpClient;
|
|
486
|
-
}
|
|
487
|
-
/**
|
|
488
|
-
* HTTP POST /tenant
|
|
489
|
-
* Java method: org.openremote.model.security.TenantResource.create
|
|
490
|
-
*/
|
|
491
|
-
create(tenant, options) {
|
|
492
|
-
return this.httpClient.request({ method: "POST", url: uriEncoding `tenant`, data: tenant, options: options });
|
|
493
|
-
}
|
|
494
|
-
/**
|
|
495
|
-
* HTTP GET /tenant
|
|
496
|
-
* Java method: org.openremote.model.security.TenantResource.getAll
|
|
497
|
-
*/
|
|
498
|
-
getAll(options) {
|
|
499
|
-
return this.httpClient.request({ method: "GET", url: uriEncoding `tenant`, options: options });
|
|
500
|
-
}
|
|
501
|
-
/**
|
|
502
|
-
* HTTP DELETE /tenant/{realm}
|
|
503
|
-
* Java method: org.openremote.model.security.TenantResource.delete
|
|
504
|
-
*/
|
|
505
|
-
delete(realm, options) {
|
|
506
|
-
return this.httpClient.request({ method: "DELETE", url: uriEncoding `tenant/${realm}`, options: options });
|
|
507
|
-
}
|
|
508
|
-
/**
|
|
509
|
-
* HTTP GET /tenant/{realm}
|
|
510
|
-
* Java method: org.openremote.model.security.TenantResource.get
|
|
511
|
-
*/
|
|
512
|
-
get(realm, options) {
|
|
513
|
-
return this.httpClient.request({ method: "GET", url: uriEncoding `tenant/${realm}`, options: options });
|
|
514
|
-
}
|
|
515
|
-
/**
|
|
516
|
-
* HTTP PUT /tenant/{realm}
|
|
517
|
-
* Java method: org.openremote.model.security.TenantResource.update
|
|
518
|
-
*/
|
|
519
|
-
update(realm, tenant, options) {
|
|
520
|
-
return this.httpClient.request({ method: "PUT", url: uriEncoding `tenant/${realm}`, data: tenant, options: options });
|
|
521
|
-
}
|
|
522
|
-
}
|
|
523
|
-
export class AssetResourceClient {
|
|
524
|
-
constructor(httpClient) {
|
|
525
|
-
this.httpClient = httpClient;
|
|
526
|
-
}
|
|
527
|
-
/**
|
|
528
|
-
* HTTP POST /asset
|
|
529
|
-
* Java method: org.openremote.model.asset.AssetResource.create
|
|
530
|
-
*/
|
|
531
|
-
create(asset, options) {
|
|
532
|
-
return this.httpClient.request({ method: "POST", url: uriEncoding `asset`, data: asset, options: options });
|
|
533
|
-
}
|
|
534
|
-
/**
|
|
535
|
-
* HTTP DELETE /asset
|
|
536
|
-
* Java method: org.openremote.model.asset.AssetResource.delete
|
|
537
|
-
*/
|
|
538
|
-
delete(queryParams, options) {
|
|
539
|
-
return this.httpClient.request({ method: "DELETE", url: uriEncoding `asset`, queryParams: queryParams, options: options });
|
|
540
|
-
}
|
|
541
|
-
/**
|
|
542
|
-
* HTTP DELETE /asset/link/{realm}/{userId}/{assetId}
|
|
543
|
-
* Java method: org.openremote.model.asset.AssetResource.deleteUserAsset
|
|
544
|
-
*/
|
|
545
|
-
deleteUserAsset(realm, userId, assetId, options) {
|
|
546
|
-
return this.httpClient.request({ method: "DELETE", url: uriEncoding `asset/link/${realm}/${userId}/${assetId}`, options: options });
|
|
547
|
-
}
|
|
548
|
-
/**
|
|
549
|
-
* HTTP GET /asset/partial/{assetId}
|
|
550
|
-
* Java method: org.openremote.model.asset.AssetResource.getPartial
|
|
551
|
-
*/
|
|
552
|
-
getPartial(assetId, options) {
|
|
553
|
-
return this.httpClient.request({ method: "GET", url: uriEncoding `asset/partial/${assetId}`, options: options });
|
|
554
|
-
}
|
|
555
|
-
/**
|
|
556
|
-
* HTTP GET /asset/public/query
|
|
557
|
-
* Java method: org.openremote.model.asset.AssetResource.getPublicAssets
|
|
558
|
-
*/
|
|
559
|
-
getPublicAssets(queryParams, options) {
|
|
560
|
-
return this.httpClient.request({ method: "GET", url: uriEncoding `asset/public/query`, queryParams: queryParams, options: options });
|
|
561
|
-
}
|
|
562
|
-
/**
|
|
563
|
-
* HTTP POST /asset/public/query
|
|
564
|
-
* Java method: org.openremote.model.asset.AssetResource.queryPublicAssets
|
|
565
|
-
*/
|
|
566
|
-
queryPublicAssets(query, options) {
|
|
567
|
-
return this.httpClient.request({ method: "POST", url: uriEncoding `asset/public/query`, data: query, options: options });
|
|
568
|
-
}
|
|
569
|
-
/**
|
|
570
|
-
* HTTP POST /asset/query
|
|
571
|
-
* Java method: org.openremote.model.asset.AssetResource.queryAssets
|
|
572
|
-
*/
|
|
573
|
-
queryAssets(query, options) {
|
|
574
|
-
return this.httpClient.request({ method: "POST", url: uriEncoding `asset/query`, data: query, options: options });
|
|
575
|
-
}
|
|
576
|
-
/**
|
|
577
|
-
* HTTP GET /asset/user/current
|
|
578
|
-
* Java method: org.openremote.model.asset.AssetResource.getCurrentUserAssets
|
|
579
|
-
*/
|
|
580
|
-
getCurrentUserAssets(options) {
|
|
581
|
-
return this.httpClient.request({ method: "GET", url: uriEncoding `asset/user/current`, options: options });
|
|
582
|
-
}
|
|
583
|
-
/**
|
|
584
|
-
* HTTP POST /asset/user/link
|
|
585
|
-
* Java method: org.openremote.model.asset.AssetResource.createUserAsset
|
|
586
|
-
*/
|
|
587
|
-
createUserAsset(userAsset, options) {
|
|
588
|
-
return this.httpClient.request({ method: "POST", url: uriEncoding `asset/user/link`, data: userAsset, options: options });
|
|
589
|
-
}
|
|
590
|
-
/**
|
|
591
|
-
* HTTP GET /asset/user/link
|
|
592
|
-
* Java method: org.openremote.model.asset.AssetResource.getUserAssetLinks
|
|
593
|
-
*/
|
|
594
|
-
getUserAssetLinks(queryParams, options) {
|
|
595
|
-
return this.httpClient.request({ method: "GET", url: uriEncoding `asset/user/link`, queryParams: queryParams, options: options });
|
|
596
|
-
}
|
|
597
|
-
/**
|
|
598
|
-
* HTTP GET /asset/{assetId}
|
|
599
|
-
* Java method: org.openremote.model.asset.AssetResource.get
|
|
600
|
-
*/
|
|
601
|
-
get(assetId, options) {
|
|
602
|
-
return this.httpClient.request({ method: "GET", url: uriEncoding `asset/${assetId}`, options: options });
|
|
603
|
-
}
|
|
604
|
-
/**
|
|
605
|
-
* HTTP PUT /asset/{assetId}
|
|
606
|
-
* Java method: org.openremote.model.asset.AssetResource.update
|
|
607
|
-
*/
|
|
608
|
-
update(assetId, asset, options) {
|
|
609
|
-
return this.httpClient.request({ method: "PUT", url: uriEncoding `asset/${assetId}`, data: asset, options: options });
|
|
610
|
-
}
|
|
611
|
-
/**
|
|
612
|
-
* HTTP PUT /asset/{assetId}/attribute/{attributeName}
|
|
613
|
-
* Java method: org.openremote.model.asset.AssetResource.writeAttributeValue
|
|
614
|
-
*/
|
|
615
|
-
writeAttributeValue(assetId, attributeName, rawJson, options) {
|
|
616
|
-
return this.httpClient.request({ method: "PUT", url: uriEncoding `asset/${assetId}/attribute/${attributeName}`, data: rawJson, options: options });
|
|
617
|
-
}
|
|
618
|
-
}
|
|
619
|
-
export class AgentResourceClient {
|
|
620
|
-
constructor(httpClient) {
|
|
621
|
-
this.httpClient = httpClient;
|
|
622
|
-
}
|
|
623
|
-
/**
|
|
624
|
-
* HTTP GET /agent/configuration/{agentId}/{protocolName}
|
|
625
|
-
* Java method: org.openremote.model.asset.agent.AgentResource.getDiscoveredProtocolConfigurations
|
|
626
|
-
*/
|
|
627
|
-
getDiscoveredProtocolConfigurations(agentId, protocolName, options) {
|
|
628
|
-
return this.httpClient.request({ method: "GET", url: uriEncoding `agent/configuration/${agentId}/${protocolName}`, options: options });
|
|
629
|
-
}
|
|
630
|
-
/**
|
|
631
|
-
* HTTP POST /agent/import/{agentId}/{protocolConfigurationName}
|
|
632
|
-
* Java method: org.openremote.model.asset.agent.AgentResource.importLinkedAttributes
|
|
633
|
-
*/
|
|
634
|
-
importLinkedAttributes(agentId, protocolConfigurationName, fileInfo, queryParams, options) {
|
|
635
|
-
return this.httpClient.request({ method: "POST", url: uriEncoding `agent/import/${agentId}/${protocolConfigurationName}`, queryParams: queryParams, data: fileInfo, options: options });
|
|
636
|
-
}
|
|
637
|
-
/**
|
|
638
|
-
* HTTP GET /agent/protocol
|
|
639
|
-
* Java method: org.openremote.model.asset.agent.AgentResource.getAllSupportedProtocols
|
|
640
|
-
*/
|
|
641
|
-
getAllSupportedProtocols(options) {
|
|
642
|
-
return this.httpClient.request({ method: "GET", url: uriEncoding `agent/protocol`, options: options });
|
|
643
|
-
}
|
|
644
|
-
/**
|
|
645
|
-
* HTTP GET /agent/protocol/{agentId}
|
|
646
|
-
* Java method: org.openremote.model.asset.agent.AgentResource.getSupportedProtocols
|
|
647
|
-
*/
|
|
648
|
-
getSupportedProtocols(agentId, options) {
|
|
649
|
-
return this.httpClient.request({ method: "GET", url: uriEncoding `agent/protocol/${agentId}`, options: options });
|
|
650
|
-
}
|
|
651
|
-
/**
|
|
652
|
-
* HTTP GET /agent/search/{agentId}/{protocolConfigurationName}
|
|
653
|
-
* Java method: org.openremote.model.asset.agent.AgentResource.searchForLinkedAttributes
|
|
654
|
-
*/
|
|
655
|
-
searchForLinkedAttributes(agentId, protocolConfigurationName, queryParams, options) {
|
|
656
|
-
return this.httpClient.request({ method: "GET", url: uriEncoding `agent/search/${agentId}/${protocolConfigurationName}`, queryParams: queryParams, options: options });
|
|
657
|
-
}
|
|
658
|
-
/**
|
|
659
|
-
* HTTP GET /agent/status/{agentId}
|
|
660
|
-
* Java method: org.openremote.model.asset.agent.AgentResource.getAgentStatus
|
|
661
|
-
*/
|
|
662
|
-
getAgentStatus(agentId, options) {
|
|
663
|
-
return this.httpClient.request({ method: "GET", url: uriEncoding `agent/status/${agentId}`, options: options });
|
|
664
|
-
}
|
|
665
|
-
/**
|
|
666
|
-
* HTTP POST /agent/validate/{agentId}
|
|
667
|
-
* Java method: org.openremote.model.asset.agent.AgentResource.validateProtocolConfiguration
|
|
668
|
-
*/
|
|
669
|
-
validateProtocolConfiguration(agentId, protocolConfiguration, options) {
|
|
670
|
-
return this.httpClient.request({ method: "POST", url: uriEncoding `agent/validate/${agentId}`, data: protocolConfiguration, options: options });
|
|
671
|
-
}
|
|
672
|
-
}
|
|
673
|
-
export class ConsoleAppResourceClient {
|
|
674
|
-
constructor(httpClient) {
|
|
675
|
-
this.httpClient = httpClient;
|
|
676
|
-
}
|
|
677
|
-
/**
|
|
678
|
-
* HTTP GET /app
|
|
679
|
-
* Java method: org.openremote.model.apps.ConsoleAppResource.getInstalledApps
|
|
680
|
-
*/
|
|
681
|
-
getInstalledApps(options) {
|
|
682
|
-
return this.httpClient.request({ method: "GET", url: uriEncoding `app`, options: options });
|
|
683
|
-
}
|
|
684
|
-
/**
|
|
685
|
-
* HTTP GET /app/config
|
|
686
|
-
* Java method: org.openremote.model.apps.ConsoleAppResource.getAppConfig
|
|
687
|
-
*/
|
|
688
|
-
getAppConfig(options) {
|
|
689
|
-
return this.httpClient.request({ method: "GET", url: uriEncoding `app/config`, options: options });
|
|
690
|
-
}
|
|
691
|
-
}
|
|
692
|
-
function uriEncoding(template, ...substitutions) {
|
|
693
|
-
let result = "";
|
|
694
|
-
for (let i = 0; i < substitutions.length; i++) {
|
|
695
|
-
result += template[i];
|
|
696
|
-
result += encodeURIComponent(substitutions[i]);
|
|
697
|
-
}
|
|
698
|
-
result += template[template.length - 1];
|
|
699
|
-
return result;
|
|
700
|
-
}
|
|
701
|
-
// Added by 'AggregatedApiClient' extension
|
|
702
|
-
export class ApiClient {
|
|
703
|
-
constructor(baseURL, axiosInstance = axios.create()) {
|
|
704
|
-
this._flowResource = new AxiosFlowResourceClient(baseURL, axiosInstance);
|
|
705
|
-
this._statusResource = new AxiosStatusResourceClient(baseURL, axiosInstance);
|
|
706
|
-
this._assetPredictedDatapointResource = new AxiosAssetPredictedDatapointResourceClient(baseURL, axiosInstance);
|
|
707
|
-
this._mapResource = new AxiosMapResourceClient(baseURL, axiosInstance);
|
|
708
|
-
this._assetDatapointResource = new AxiosAssetDatapointResourceClient(baseURL, axiosInstance);
|
|
709
|
-
this._userResource = new AxiosUserResourceClient(baseURL, axiosInstance);
|
|
710
|
-
this._consoleResource = new AxiosConsoleResourceClient(baseURL, axiosInstance);
|
|
711
|
-
this._syslogResource = new AxiosSyslogResourceClient(baseURL, axiosInstance);
|
|
712
|
-
this._rulesResource = new AxiosRulesResourceClient(baseURL, axiosInstance);
|
|
713
|
-
this._assetModelResource = new AxiosAssetModelResourceClient(baseURL, axiosInstance);
|
|
714
|
-
this._gatewayClientResource = new AxiosGatewayClientResourceClient(baseURL, axiosInstance);
|
|
715
|
-
this._notificationResource = new AxiosNotificationResourceClient(baseURL, axiosInstance);
|
|
716
|
-
this._tenantResource = new AxiosTenantResourceClient(baseURL, axiosInstance);
|
|
717
|
-
this._assetResource = new AxiosAssetResourceClient(baseURL, axiosInstance);
|
|
718
|
-
this._agentResource = new AxiosAgentResourceClient(baseURL, axiosInstance);
|
|
719
|
-
this._consoleAppResource = new AxiosConsoleAppResourceClient(baseURL, axiosInstance);
|
|
720
|
-
this._assetResource = new AxiosAssetResourceClient(baseURL, axiosInstance);
|
|
721
|
-
}
|
|
722
|
-
get FlowResource() {
|
|
723
|
-
return this._flowResource;
|
|
724
|
-
}
|
|
725
|
-
get StatusResource() {
|
|
726
|
-
return this._statusResource;
|
|
727
|
-
}
|
|
728
|
-
get AssetPredictedDatapointResource() {
|
|
729
|
-
return this._assetPredictedDatapointResource;
|
|
730
|
-
}
|
|
731
|
-
get MapResource() {
|
|
732
|
-
return this._mapResource;
|
|
733
|
-
}
|
|
734
|
-
get AssetDatapointResource() {
|
|
735
|
-
return this._assetDatapointResource;
|
|
736
|
-
}
|
|
737
|
-
get UserResource() {
|
|
738
|
-
return this._userResource;
|
|
739
|
-
}
|
|
740
|
-
get ConsoleResource() {
|
|
741
|
-
return this._consoleResource;
|
|
742
|
-
}
|
|
743
|
-
get SyslogResource() {
|
|
744
|
-
return this._syslogResource;
|
|
745
|
-
}
|
|
746
|
-
get RulesResource() {
|
|
747
|
-
return this._rulesResource;
|
|
748
|
-
}
|
|
749
|
-
get AssetModelResource() {
|
|
750
|
-
return this._assetModelResource;
|
|
751
|
-
}
|
|
752
|
-
get GatewayClientResource() {
|
|
753
|
-
return this._gatewayClientResource;
|
|
754
|
-
}
|
|
755
|
-
get NotificationResource() {
|
|
756
|
-
return this._notificationResource;
|
|
757
|
-
}
|
|
758
|
-
get TenantResource() {
|
|
759
|
-
return this._tenantResource;
|
|
760
|
-
}
|
|
761
|
-
get AssetResource() {
|
|
762
|
-
return this._assetResource;
|
|
763
|
-
}
|
|
764
|
-
get AgentResource() {
|
|
765
|
-
return this._agentResource;
|
|
766
|
-
}
|
|
767
|
-
get ConsoleAppResource() {
|
|
768
|
-
return this._consoleAppResource;
|
|
769
|
-
}
|
|
770
|
-
}
|
|
771
|
-
// Added by 'AxiosClientExtension' extension
|
|
772
|
-
import axios from "axios";
|
|
773
|
-
class AxiosHttpClient {
|
|
774
|
-
constructor(axios) {
|
|
775
|
-
this.axios = axios;
|
|
776
|
-
}
|
|
777
|
-
request(requestConfig) {
|
|
778
|
-
function assign(target, source) {
|
|
779
|
-
if (source != undefined) {
|
|
780
|
-
for (const key in source) {
|
|
781
|
-
if (source.hasOwnProperty(key)) {
|
|
782
|
-
target[key] = source[key];
|
|
783
|
-
}
|
|
784
|
-
}
|
|
785
|
-
}
|
|
786
|
-
return target;
|
|
787
|
-
}
|
|
788
|
-
const config = {};
|
|
789
|
-
config.method = requestConfig.method;
|
|
790
|
-
config.url = requestConfig.url;
|
|
791
|
-
config.params = requestConfig.queryParams;
|
|
792
|
-
config.data = requestConfig.data;
|
|
793
|
-
assign(config, requestConfig.options);
|
|
794
|
-
const copyFn = requestConfig.copyFn;
|
|
795
|
-
const axiosResponse = this.axios.request(config);
|
|
796
|
-
return axiosResponse.then(axiosResponse => {
|
|
797
|
-
if (copyFn && axiosResponse.data) {
|
|
798
|
-
axiosResponse.originalData = axiosResponse.data;
|
|
799
|
-
axiosResponse.data = copyFn(axiosResponse.data);
|
|
800
|
-
}
|
|
801
|
-
return axiosResponse;
|
|
802
|
-
});
|
|
803
|
-
}
|
|
804
|
-
}
|
|
805
|
-
export class AxiosFlowResourceClient extends FlowResourceClient {
|
|
806
|
-
constructor(baseURL, axiosInstance = axios.create()) {
|
|
807
|
-
axiosInstance.defaults.baseURL = baseURL;
|
|
808
|
-
super(new AxiosHttpClient(axiosInstance));
|
|
809
|
-
}
|
|
810
|
-
}
|
|
811
|
-
export class AxiosStatusResourceClient extends StatusResourceClient {
|
|
812
|
-
constructor(baseURL, axiosInstance = axios.create()) {
|
|
813
|
-
axiosInstance.defaults.baseURL = baseURL;
|
|
814
|
-
super(new AxiosHttpClient(axiosInstance));
|
|
815
|
-
}
|
|
816
|
-
}
|
|
817
|
-
export class AxiosAssetPredictedDatapointResourceClient extends AssetPredictedDatapointResourceClient {
|
|
818
|
-
constructor(baseURL, axiosInstance = axios.create()) {
|
|
819
|
-
axiosInstance.defaults.baseURL = baseURL;
|
|
820
|
-
super(new AxiosHttpClient(axiosInstance));
|
|
821
|
-
}
|
|
822
|
-
}
|
|
823
|
-
export class AxiosMapResourceClient extends MapResourceClient {
|
|
824
|
-
constructor(baseURL, axiosInstance = axios.create()) {
|
|
825
|
-
axiosInstance.defaults.baseURL = baseURL;
|
|
826
|
-
super(new AxiosHttpClient(axiosInstance));
|
|
827
|
-
}
|
|
828
|
-
}
|
|
829
|
-
export class AxiosAssetDatapointResourceClient extends AssetDatapointResourceClient {
|
|
830
|
-
constructor(baseURL, axiosInstance = axios.create()) {
|
|
831
|
-
axiosInstance.defaults.baseURL = baseURL;
|
|
832
|
-
super(new AxiosHttpClient(axiosInstance));
|
|
833
|
-
}
|
|
834
|
-
}
|
|
835
|
-
export class AxiosUserResourceClient extends UserResourceClient {
|
|
836
|
-
constructor(baseURL, axiosInstance = axios.create()) {
|
|
837
|
-
axiosInstance.defaults.baseURL = baseURL;
|
|
838
|
-
super(new AxiosHttpClient(axiosInstance));
|
|
839
|
-
}
|
|
840
|
-
}
|
|
841
|
-
export class AxiosConsoleResourceClient extends ConsoleResourceClient {
|
|
842
|
-
constructor(baseURL, axiosInstance = axios.create()) {
|
|
843
|
-
axiosInstance.defaults.baseURL = baseURL;
|
|
844
|
-
super(new AxiosHttpClient(axiosInstance));
|
|
845
|
-
}
|
|
846
|
-
}
|
|
847
|
-
export class AxiosSyslogResourceClient extends SyslogResourceClient {
|
|
848
|
-
constructor(baseURL, axiosInstance = axios.create()) {
|
|
849
|
-
axiosInstance.defaults.baseURL = baseURL;
|
|
850
|
-
super(new AxiosHttpClient(axiosInstance));
|
|
851
|
-
}
|
|
852
|
-
}
|
|
853
|
-
export class AxiosRulesResourceClient extends RulesResourceClient {
|
|
854
|
-
constructor(baseURL, axiosInstance = axios.create()) {
|
|
855
|
-
axiosInstance.defaults.baseURL = baseURL;
|
|
856
|
-
super(new AxiosHttpClient(axiosInstance));
|
|
857
|
-
}
|
|
858
|
-
}
|
|
859
|
-
export class AxiosAssetModelResourceClient extends AssetModelResourceClient {
|
|
860
|
-
constructor(baseURL, axiosInstance = axios.create()) {
|
|
861
|
-
axiosInstance.defaults.baseURL = baseURL;
|
|
862
|
-
super(new AxiosHttpClient(axiosInstance));
|
|
863
|
-
}
|
|
864
|
-
}
|
|
865
|
-
export class AxiosGatewayClientResourceClient extends GatewayClientResourceClient {
|
|
866
|
-
constructor(baseURL, axiosInstance = axios.create()) {
|
|
867
|
-
axiosInstance.defaults.baseURL = baseURL;
|
|
868
|
-
super(new AxiosHttpClient(axiosInstance));
|
|
869
|
-
}
|
|
870
|
-
}
|
|
871
|
-
export class AxiosNotificationResourceClient extends NotificationResourceClient {
|
|
872
|
-
constructor(baseURL, axiosInstance = axios.create()) {
|
|
873
|
-
axiosInstance.defaults.baseURL = baseURL;
|
|
874
|
-
super(new AxiosHttpClient(axiosInstance));
|
|
875
|
-
}
|
|
876
|
-
}
|
|
877
|
-
export class AxiosTenantResourceClient extends TenantResourceClient {
|
|
878
|
-
constructor(baseURL, axiosInstance = axios.create()) {
|
|
879
|
-
axiosInstance.defaults.baseURL = baseURL;
|
|
880
|
-
super(new AxiosHttpClient(axiosInstance));
|
|
881
|
-
}
|
|
882
|
-
}
|
|
883
|
-
export class AxiosAssetResourceClient extends AssetResourceClient {
|
|
884
|
-
constructor(baseURL, axiosInstance = axios.create()) {
|
|
885
|
-
axiosInstance.defaults.baseURL = baseURL;
|
|
886
|
-
super(new AxiosHttpClient(axiosInstance));
|
|
887
|
-
}
|
|
888
|
-
}
|
|
889
|
-
export class AxiosAgentResourceClient extends AgentResourceClient {
|
|
890
|
-
constructor(baseURL, axiosInstance = axios.create()) {
|
|
891
|
-
axiosInstance.defaults.baseURL = baseURL;
|
|
892
|
-
super(new AxiosHttpClient(axiosInstance));
|
|
893
|
-
}
|
|
894
|
-
}
|
|
895
|
-
export class AxiosConsoleAppResourceClient extends ConsoleAppResourceClient {
|
|
896
|
-
constructor(baseURL, axiosInstance = axios.create()) {
|
|
897
|
-
axiosInstance.defaults.baseURL = baseURL;
|
|
898
|
-
super(new AxiosHttpClient(axiosInstance));
|
|
899
|
-
}
|
|
900
|
-
}
|
|
901
|
-
//# sourceMappingURL=restclient.js.map
|