@openremote/rest 1.8.0-snapshot.20250725120002 → 1.8.0-snapshot.20250728102340

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/lib/restclient.js CHANGED
@@ -1,1341 +1 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- // Generated using typescript-generator version 3.2.1263 on 2025-07-25 16:03:40.
4
- export class ProvisioningResourceClient {
5
- constructor(httpClient) {
6
- this.httpClient = httpClient;
7
- }
8
- /**
9
- * HTTP POST /provisioning
10
- * Java method: org.openremote.model.provisioning.ProvisioningResource.createProvisioningConfig
11
- */
12
- createProvisioningConfig(provisioningConfig, options) {
13
- return this.httpClient.request({ method: "POST", url: uriEncoding `provisioning`, data: provisioningConfig, options: options });
14
- }
15
- /**
16
- * HTTP GET /provisioning
17
- * Java method: org.openremote.model.provisioning.ProvisioningResource.getProvisioningConfigs
18
- */
19
- getProvisioningConfigs(options) {
20
- return this.httpClient.request({ method: "GET", url: uriEncoding `provisioning`, options: options });
21
- }
22
- /**
23
- * HTTP DELETE /provisioning/{id}
24
- * Java method: org.openremote.model.provisioning.ProvisioningResource.deleteProvisioningConfig
25
- */
26
- deleteProvisioningConfig(id, options) {
27
- return this.httpClient.request({ method: "DELETE", url: uriEncoding `provisioning/${id}`, options: options });
28
- }
29
- /**
30
- * HTTP PUT /provisioning/{id}
31
- * Java method: org.openremote.model.provisioning.ProvisioningResource.updateProvisioningConfig
32
- */
33
- updateProvisioningConfig(id, provisioningConfig, options) {
34
- return this.httpClient.request({ method: "PUT", url: uriEncoding `provisioning/${id}`, data: provisioningConfig, options: options });
35
- }
36
- }
37
- export class AssetPredictedDatapointResourceClient {
38
- constructor(httpClient) {
39
- this.httpClient = httpClient;
40
- }
41
- /**
42
- * HTTP POST /asset/predicted/{assetId}/{attributeName}
43
- * Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.getPredictedDatapoints
44
- */
45
- getPredictedDatapoints(assetId, attributeName, query, options) {
46
- return this.httpClient.request({ method: "POST", url: uriEncoding `asset/predicted/${assetId}/${attributeName}`, data: query, options: options });
47
- }
48
- /**
49
- * HTTP PUT /asset/predicted/{assetId}/{attributeName}
50
- * Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.writePredictedDatapoints
51
- */
52
- writePredictedDatapoints(assetId, attributeName, predictedDatapoints, options) {
53
- return this.httpClient.request({ method: "PUT", url: uriEncoding `asset/predicted/${assetId}/${attributeName}`, data: predictedDatapoints, options: options });
54
- }
55
- }
56
- export class DashboardResourceClient {
57
- constructor(httpClient) {
58
- this.httpClient = httpClient;
59
- }
60
- /**
61
- * HTTP POST /dashboard
62
- * Java method: org.openremote.model.dashboard.DashboardResource.create
63
- */
64
- create(dashboard, options) {
65
- return this.httpClient.request({ method: "POST", url: uriEncoding `dashboard`, data: dashboard, options: options });
66
- }
67
- /**
68
- * HTTP PUT /dashboard
69
- * Java method: org.openremote.model.dashboard.DashboardResource.update
70
- */
71
- update(dashboard, options) {
72
- return this.httpClient.request({ method: "PUT", url: uriEncoding `dashboard`, data: dashboard, options: options });
73
- }
74
- /**
75
- * HTTP GET /dashboard/all/{realm}
76
- * Java method: org.openremote.model.dashboard.DashboardResource.getAllRealmDashboards
77
- */
78
- getAllRealmDashboards(realm, options) {
79
- return this.httpClient.request({ method: "GET", url: uriEncoding `dashboard/all/${realm}`, options: options });
80
- }
81
- /**
82
- * HTTP POST /dashboard/query
83
- * Java method: org.openremote.model.dashboard.DashboardResource.query
84
- */
85
- query(dashboardQuery, options) {
86
- return this.httpClient.request({ method: "POST", url: uriEncoding `dashboard/query`, data: dashboardQuery, options: options });
87
- }
88
- /**
89
- * HTTP DELETE /dashboard/{realm}/{dashboardId}
90
- * Java method: org.openremote.model.dashboard.DashboardResource.delete
91
- */
92
- delete(realm, dashboardId, options) {
93
- return this.httpClient.request({ method: "DELETE", url: uriEncoding `dashboard/${realm}/${dashboardId}`, options: options });
94
- }
95
- /**
96
- * HTTP GET /dashboard/{realm}/{dashboardId}
97
- * Java method: org.openremote.model.dashboard.DashboardResource.get
98
- */
99
- get(realm, dashboardId, options) {
100
- return this.httpClient.request({ method: "GET", url: uriEncoding `dashboard/${realm}/${dashboardId}`, options: options });
101
- }
102
- }
103
- export class AssetResourceClient {
104
- constructor(httpClient) {
105
- this.httpClient = httpClient;
106
- }
107
- /**
108
- * HTTP POST /asset
109
- * Java method: org.openremote.model.asset.AssetResource.create
110
- */
111
- create(asset, options) {
112
- return this.httpClient.request({ method: "POST", url: uriEncoding `asset`, data: asset, options: options });
113
- }
114
- /**
115
- * HTTP DELETE /asset
116
- * Java method: org.openremote.model.asset.AssetResource.delete
117
- */
118
- delete(queryParams, options) {
119
- return this.httpClient.request({ method: "DELETE", url: uriEncoding `asset`, queryParams: queryParams, options: options });
120
- }
121
- /**
122
- * HTTP PUT /asset/attributes
123
- * Java method: org.openremote.model.asset.AssetResource.writeAttributeValues
124
- */
125
- writeAttributeValues(attributeStates, options) {
126
- return this.httpClient.request({ method: "PUT", url: uriEncoding `asset/attributes`, data: attributeStates, options: options });
127
- }
128
- /**
129
- * HTTP PUT /asset/attributes/timestamp
130
- * Java method: org.openremote.model.asset.AssetResource.writeAttributeEvents
131
- */
132
- writeAttributeEvents(attributeEvents, options) {
133
- return this.httpClient.request({ method: "PUT", url: uriEncoding `asset/attributes/timestamp`, data: attributeEvents, options: options });
134
- }
135
- /**
136
- * HTTP DELETE /asset/parent
137
- * Java method: org.openremote.model.asset.AssetResource.updateNoneParent
138
- */
139
- updateNoneParent(queryParams, options) {
140
- return this.httpClient.request({ method: "DELETE", url: uriEncoding `asset/parent`, queryParams: queryParams, options: options });
141
- }
142
- /**
143
- * HTTP GET /asset/partial/{assetId}
144
- * Java method: org.openremote.model.asset.AssetResource.getPartial
145
- */
146
- getPartial(assetId, options) {
147
- return this.httpClient.request({ method: "GET", url: uriEncoding `asset/partial/${assetId}`, options: options });
148
- }
149
- /**
150
- * HTTP POST /asset/query
151
- * Java method: org.openremote.model.asset.AssetResource.queryAssets
152
- */
153
- queryAssets(query, options) {
154
- return this.httpClient.request({ method: "POST", url: uriEncoding `asset/query`, data: query, options: options });
155
- }
156
- /**
157
- * HTTP GET /asset/user/current
158
- * Java method: org.openremote.model.asset.AssetResource.getCurrentUserAssets
159
- */
160
- getCurrentUserAssets(options) {
161
- return this.httpClient.request({ method: "GET", url: uriEncoding `asset/user/current`, options: options });
162
- }
163
- /**
164
- * HTTP POST /asset/user/link
165
- * Java method: org.openremote.model.asset.AssetResource.createUserAssetLinks
166
- */
167
- createUserAssetLinks(userAssets, options) {
168
- return this.httpClient.request({ method: "POST", url: uriEncoding `asset/user/link`, data: userAssets, options: options });
169
- }
170
- /**
171
- * HTTP GET /asset/user/link
172
- * Java method: org.openremote.model.asset.AssetResource.getUserAssetLinks
173
- */
174
- getUserAssetLinks(queryParams, options) {
175
- return this.httpClient.request({ method: "GET", url: uriEncoding `asset/user/link`, queryParams: queryParams, options: options });
176
- }
177
- /**
178
- * HTTP POST /asset/user/link/delete
179
- * Java method: org.openremote.model.asset.AssetResource.deleteUserAssetLinks
180
- */
181
- deleteUserAssetLinks(userAssets, options) {
182
- return this.httpClient.request({ method: "POST", url: uriEncoding `asset/user/link/delete`, data: userAssets, options: options });
183
- }
184
- /**
185
- * HTTP DELETE /asset/user/link/{realm}/{userId}
186
- * Java method: org.openremote.model.asset.AssetResource.deleteAllUserAssetLinks
187
- */
188
- deleteAllUserAssetLinks(realm, userId, options) {
189
- return this.httpClient.request({ method: "DELETE", url: uriEncoding `asset/user/link/${realm}/${userId}`, options: options });
190
- }
191
- /**
192
- * HTTP DELETE /asset/user/link/{realm}/{userId}/{assetId}
193
- * Java method: org.openremote.model.asset.AssetResource.deleteUserAssetLink
194
- */
195
- deleteUserAssetLink(realm, userId, assetId, options) {
196
- return this.httpClient.request({ method: "DELETE", url: uriEncoding `asset/user/link/${realm}/${userId}/${assetId}`, options: options });
197
- }
198
- /**
199
- * HTTP GET /asset/{assetId}
200
- * Java method: org.openremote.model.asset.AssetResource.get
201
- */
202
- get(assetId, options) {
203
- return this.httpClient.request({ method: "GET", url: uriEncoding `asset/${assetId}`, options: options });
204
- }
205
- /**
206
- * HTTP PUT /asset/{assetId}
207
- * Java method: org.openremote.model.asset.AssetResource.update
208
- */
209
- update(assetId, asset, options) {
210
- return this.httpClient.request({ method: "PUT", url: uriEncoding `asset/${assetId}`, data: asset, options: options });
211
- }
212
- /**
213
- * HTTP PUT /asset/{assetId}/attribute/{attributeName}
214
- * Java method: org.openremote.model.asset.AssetResource.writeAttributeValue
215
- */
216
- writeAttributeValue$PUT$asset_assetId_attribute_attributeName(assetId, attributeName, value, options) {
217
- return this.httpClient.request({ method: "PUT", url: uriEncoding `asset/${assetId}/attribute/${attributeName}`, data: value, options: options });
218
- }
219
- /**
220
- * HTTP PUT /asset/{assetId}/attribute/{attributeName}/{timestamp}
221
- * Java method: org.openremote.model.asset.AssetResource.writeAttributeValue
222
- */
223
- writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(assetId, attributeName, timestamp, value, options) {
224
- return this.httpClient.request({ method: "PUT", url: uriEncoding `asset/${assetId}/attribute/${attributeName}/${timestamp}`, data: value, options: options });
225
- }
226
- /**
227
- * HTTP PUT /asset/{parentAssetId}/child
228
- * Java method: org.openremote.model.asset.AssetResource.updateParent
229
- */
230
- updateParent(parentAssetId, queryParams, options) {
231
- return this.httpClient.request({ method: "PUT", url: uriEncoding `asset/${parentAssetId}/child`, queryParams: queryParams, options: options });
232
- }
233
- }
234
- export class ConfigurationResourceClient {
235
- constructor(httpClient) {
236
- this.httpClient = httpClient;
237
- }
238
- /**
239
- * HTTP GET /configuration/manager
240
- * Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfig
241
- */
242
- getManagerConfig(options) {
243
- return this.httpClient.request({ method: "GET", url: uriEncoding `configuration/manager`, options: options });
244
- }
245
- /**
246
- * HTTP PUT /configuration/manager
247
- * Java method: org.openremote.model.manager.ConfigurationResource.update
248
- */
249
- update(managerConfiguration, options) {
250
- return this.httpClient.request({ method: "PUT", url: uriEncoding `configuration/manager`, data: managerConfiguration, options: options });
251
- }
252
- /**
253
- * HTTP POST /configuration/manager/file
254
- * Java method: org.openremote.model.manager.ConfigurationResource.fileUpload
255
- */
256
- fileUpload(fileInfo, queryParams, options) {
257
- return this.httpClient.request({ method: "POST", url: uriEncoding `configuration/manager/file`, queryParams: queryParams, data: fileInfo, options: options });
258
- }
259
- /**
260
- * HTTP GET /configuration/manager/image/{filename: .+}
261
- * Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfigImage
262
- */
263
- getManagerConfigImage(filename, options) {
264
- return this.httpClient.request({ method: "GET", url: uriEncoding `configuration/manager/image/${filename}`, options: options });
265
- }
266
- }
267
- export class AppResourceClient {
268
- constructor(httpClient) {
269
- this.httpClient = httpClient;
270
- }
271
- /**
272
- * HTTP GET /apps
273
- * Java method: org.openremote.model.apps.AppResource.getApps
274
- */
275
- getApps(options) {
276
- return this.httpClient.request({ method: "GET", url: uriEncoding `apps`, options: options });
277
- }
278
- /**
279
- * HTTP GET /apps/consoleConfig
280
- * Java method: org.openremote.model.apps.AppResource.getConsoleConfig
281
- */
282
- getConsoleConfig(options) {
283
- return this.httpClient.request({ method: "GET", url: uriEncoding `apps/consoleConfig`, options: options });
284
- }
285
- /**
286
- * HTTP GET /apps/info
287
- * Java method: org.openremote.model.apps.AppResource.getAppInfos
288
- */
289
- getAppInfos(options) {
290
- return this.httpClient.request({ method: "GET", url: uriEncoding `apps/info`, options: options });
291
- }
292
- }
293
- export class NotificationResourceClient {
294
- constructor(httpClient) {
295
- this.httpClient = httpClient;
296
- }
297
- /**
298
- * HTTP GET /notification
299
- * Java method: org.openremote.model.notification.NotificationResource.getNotifications
300
- */
301
- getNotifications(queryParams, options) {
302
- return this.httpClient.request({ method: "GET", url: uriEncoding `notification`, queryParams: queryParams, options: options });
303
- }
304
- /**
305
- * HTTP DELETE /notification
306
- * Java method: org.openremote.model.notification.NotificationResource.removeNotifications
307
- */
308
- removeNotifications(queryParams, options) {
309
- return this.httpClient.request({ method: "DELETE", url: uriEncoding `notification`, queryParams: queryParams, options: options });
310
- }
311
- /**
312
- * HTTP POST /notification/alert
313
- * Java method: org.openremote.model.notification.NotificationResource.sendNotification
314
- */
315
- sendNotification(notification, options) {
316
- return this.httpClient.request({ method: "POST", url: uriEncoding `notification/alert`, data: notification, options: options });
317
- }
318
- /**
319
- * HTTP DELETE /notification/{notificationId}
320
- * Java method: org.openremote.model.notification.NotificationResource.removeNotification
321
- */
322
- removeNotification(notificationId, options) {
323
- return this.httpClient.request({ method: "DELETE", url: uriEncoding `notification/${notificationId}`, options: options });
324
- }
325
- /**
326
- * HTTP PUT /notification/{notificationId}/acknowledged
327
- * Java method: org.openremote.model.notification.NotificationResource.notificationAcknowledged
328
- */
329
- notificationAcknowledged(notificationId, acknowledgement, queryParams, options) {
330
- return this.httpClient.request({ method: "PUT", url: uriEncoding `notification/${notificationId}/acknowledged`, queryParams: queryParams, data: acknowledgement, options: options });
331
- }
332
- /**
333
- * HTTP PUT /notification/{notificationId}/delivered
334
- * Java method: org.openremote.model.notification.NotificationResource.notificationDelivered
335
- */
336
- notificationDelivered(notificationId, queryParams, options) {
337
- return this.httpClient.request({ method: "PUT", url: uriEncoding `notification/${notificationId}/delivered`, queryParams: queryParams, options: options });
338
- }
339
- }
340
- export class AssetModelResourceClient {
341
- constructor(httpClient) {
342
- this.httpClient = httpClient;
343
- }
344
- /**
345
- * HTTP GET /model/assetDescriptors
346
- * Java method: org.openremote.model.asset.AssetModelResource.getAssetDescriptors
347
- */
348
- getAssetDescriptors(queryParams, options) {
349
- return this.httpClient.request({ method: "GET", url: uriEncoding `model/assetDescriptors`, queryParams: queryParams, options: options });
350
- }
351
- /**
352
- * HTTP GET /model/assetInfo/{assetType}
353
- * Java method: org.openremote.model.asset.AssetModelResource.getAssetInfo
354
- */
355
- getAssetInfo(assetType, queryParams, options) {
356
- return this.httpClient.request({ method: "GET", url: uriEncoding `model/assetInfo/${assetType}`, queryParams: queryParams, options: options });
357
- }
358
- /**
359
- * HTTP GET /model/assetInfos
360
- * Java method: org.openremote.model.asset.AssetModelResource.getAssetInfos
361
- */
362
- getAssetInfos(queryParams, options) {
363
- return this.httpClient.request({ method: "GET", url: uriEncoding `model/assetInfos`, queryParams: queryParams, options: options });
364
- }
365
- /**
366
- * HTTP GET /model/metaItemDescriptors
367
- * Java method: org.openremote.model.asset.AssetModelResource.getMetaItemDescriptors
368
- */
369
- getMetaItemDescriptors(queryParams, options) {
370
- return this.httpClient.request({ method: "GET", url: uriEncoding `model/metaItemDescriptors`, queryParams: queryParams, options: options });
371
- }
372
- /**
373
- * HTTP GET /model/valueDescriptors
374
- * Java method: org.openremote.model.asset.AssetModelResource.getValueDescriptors
375
- */
376
- getValueDescriptors(queryParams, options) {
377
- return this.httpClient.request({ method: "GET", url: uriEncoding `model/valueDescriptors`, queryParams: queryParams, options: options });
378
- }
379
- }
380
- export class RulesResourceClient {
381
- constructor(httpClient) {
382
- this.httpClient = httpClient;
383
- }
384
- /**
385
- * HTTP POST /rules
386
- * Java method: org.openremote.model.rules.RulesResource.createGlobalRuleset
387
- */
388
- createGlobalRuleset(ruleset, options) {
389
- return this.httpClient.request({ method: "POST", url: uriEncoding `rules`, data: ruleset, options: options });
390
- }
391
- /**
392
- * HTTP GET /rules
393
- * Java method: org.openremote.model.rules.RulesResource.getGlobalRulesets
394
- */
395
- getGlobalRulesets(queryParams, options) {
396
- return this.httpClient.request({ method: "GET", url: uriEncoding `rules`, queryParams: queryParams, options: options });
397
- }
398
- /**
399
- * HTTP POST /rules/asset
400
- * Java method: org.openremote.model.rules.RulesResource.createAssetRuleset
401
- */
402
- createAssetRuleset(ruleset, options) {
403
- return this.httpClient.request({ method: "POST", url: uriEncoding `rules/asset`, data: ruleset, options: options });
404
- }
405
- /**
406
- * HTTP GET /rules/asset/for/{assetId}
407
- * Java method: org.openremote.model.rules.RulesResource.getAssetRulesets
408
- */
409
- getAssetRulesets(assetId, queryParams, options) {
410
- return this.httpClient.request({ method: "GET", url: uriEncoding `rules/asset/for/${assetId}`, queryParams: queryParams, options: options });
411
- }
412
- /**
413
- * HTTP DELETE /rules/asset/{id}
414
- * Java method: org.openremote.model.rules.RulesResource.deleteAssetRuleset
415
- */
416
- deleteAssetRuleset(id, options) {
417
- return this.httpClient.request({ method: "DELETE", url: uriEncoding `rules/asset/${id}`, options: options });
418
- }
419
- /**
420
- * HTTP GET /rules/asset/{id}
421
- * Java method: org.openremote.model.rules.RulesResource.getAssetRuleset
422
- */
423
- getAssetRuleset(id, options) {
424
- return this.httpClient.request({ method: "GET", url: uriEncoding `rules/asset/${id}`, options: options });
425
- }
426
- /**
427
- * HTTP PUT /rules/asset/{id}
428
- * Java method: org.openremote.model.rules.RulesResource.updateAssetRuleset
429
- */
430
- updateAssetRuleset(id, ruleset, options) {
431
- return this.httpClient.request({ method: "PUT", url: uriEncoding `rules/asset/${id}`, data: ruleset, options: options });
432
- }
433
- /**
434
- * HTTP GET /rules/geofences/{assetId}
435
- * Java method: org.openremote.model.rules.RulesResource.getAssetGeofences
436
- */
437
- getAssetGeofences(assetId, options) {
438
- return this.httpClient.request({ method: "GET", url: uriEncoding `rules/geofences/${assetId}`, options: options });
439
- }
440
- /**
441
- * HTTP GET /rules/info/asset/{assetId}
442
- * Java method: org.openremote.model.rules.RulesResource.getAssetEngineInfo
443
- */
444
- getAssetEngineInfo(assetId, options) {
445
- return this.httpClient.request({ method: "GET", url: uriEncoding `rules/info/asset/${assetId}`, options: options });
446
- }
447
- /**
448
- * HTTP GET /rules/info/global
449
- * Java method: org.openremote.model.rules.RulesResource.getGlobalEngineInfo
450
- */
451
- getGlobalEngineInfo(options) {
452
- return this.httpClient.request({ method: "GET", url: uriEncoding `rules/info/global`, options: options });
453
- }
454
- /**
455
- * HTTP GET /rules/info/realm/{realm}
456
- * Java method: org.openremote.model.rules.RulesResource.getRealmEngineInfo
457
- */
458
- getRealmEngineInfo(realm, options) {
459
- return this.httpClient.request({ method: "GET", url: uriEncoding `rules/info/realm/${realm}`, options: options });
460
- }
461
- /**
462
- * HTTP POST /rules/realm
463
- * Java method: org.openremote.model.rules.RulesResource.createRealmRuleset
464
- */
465
- createRealmRuleset(ruleset, options) {
466
- return this.httpClient.request({ method: "POST", url: uriEncoding `rules/realm`, data: ruleset, options: options });
467
- }
468
- /**
469
- * HTTP GET /rules/realm/for/{realm}
470
- * Java method: org.openremote.model.rules.RulesResource.getRealmRulesets
471
- */
472
- getRealmRulesets(realm, queryParams, options) {
473
- return this.httpClient.request({ method: "GET", url: uriEncoding `rules/realm/for/${realm}`, queryParams: queryParams, options: options });
474
- }
475
- /**
476
- * HTTP DELETE /rules/realm/{id}
477
- * Java method: org.openremote.model.rules.RulesResource.deleteRealmRuleset
478
- */
479
- deleteRealmRuleset(id, options) {
480
- return this.httpClient.request({ method: "DELETE", url: uriEncoding `rules/realm/${id}`, options: options });
481
- }
482
- /**
483
- * HTTP GET /rules/realm/{id}
484
- * Java method: org.openremote.model.rules.RulesResource.getRealmRuleset
485
- */
486
- getRealmRuleset(id, options) {
487
- return this.httpClient.request({ method: "GET", url: uriEncoding `rules/realm/${id}`, options: options });
488
- }
489
- /**
490
- * HTTP PUT /rules/realm/{id}
491
- * Java method: org.openremote.model.rules.RulesResource.updateRealmRuleset
492
- */
493
- updateRealmRuleset(id, ruleset, options) {
494
- return this.httpClient.request({ method: "PUT", url: uriEncoding `rules/realm/${id}`, data: ruleset, options: options });
495
- }
496
- /**
497
- * HTTP DELETE /rules/{id}
498
- * Java method: org.openremote.model.rules.RulesResource.deleteGlobalRuleset
499
- */
500
- deleteGlobalRuleset(id, options) {
501
- return this.httpClient.request({ method: "DELETE", url: uriEncoding `rules/${id}`, options: options });
502
- }
503
- /**
504
- * HTTP GET /rules/{id}
505
- * Java method: org.openremote.model.rules.RulesResource.getGlobalRuleset
506
- */
507
- getGlobalRuleset(id, options) {
508
- return this.httpClient.request({ method: "GET", url: uriEncoding `rules/${id}`, options: options });
509
- }
510
- /**
511
- * HTTP PUT /rules/{id}
512
- * Java method: org.openremote.model.rules.RulesResource.updateGlobalRuleset
513
- */
514
- updateGlobalRuleset(id, ruleset, options) {
515
- return this.httpClient.request({ method: "PUT", url: uriEncoding `rules/${id}`, data: ruleset, options: options });
516
- }
517
- }
518
- export class SyslogResourceClient {
519
- constructor(httpClient) {
520
- this.httpClient = httpClient;
521
- }
522
- /**
523
- * HTTP GET /syslog/config
524
- * Java method: org.openremote.model.syslog.SyslogResource.getConfig
525
- */
526
- getConfig(options) {
527
- return this.httpClient.request({ method: "GET", url: uriEncoding `syslog/config`, options: options });
528
- }
529
- /**
530
- * HTTP PUT /syslog/config
531
- * Java method: org.openremote.model.syslog.SyslogResource.updateConfig
532
- */
533
- updateConfig(config, options) {
534
- return this.httpClient.request({ method: "PUT", url: uriEncoding `syslog/config`, data: config, options: options });
535
- }
536
- /**
537
- * HTTP DELETE /syslog/event
538
- * Java method: org.openremote.model.syslog.SyslogResource.clearEvents
539
- */
540
- clearEvents(options) {
541
- return this.httpClient.request({ method: "DELETE", url: uriEncoding `syslog/event`, options: options });
542
- }
543
- /**
544
- * HTTP GET /syslog/event
545
- * Java method: org.openremote.model.syslog.SyslogResource.getEvents
546
- */
547
- getEvents(queryParams, options) {
548
- return this.httpClient.request({ method: "GET", url: uriEncoding `syslog/event`, queryParams: queryParams, options: options });
549
- }
550
- }
551
- export class MapResourceClient {
552
- constructor(httpClient) {
553
- this.httpClient = httpClient;
554
- }
555
- /**
556
- * HTTP GET /map
557
- * Java method: org.openremote.model.map.MapResource.getSettings
558
- */
559
- getSettings(options) {
560
- return this.httpClient.request({ method: "GET", url: uriEncoding `map`, options: options });
561
- }
562
- /**
563
- * HTTP PUT /map
564
- * Java method: org.openremote.model.map.MapResource.saveSettings
565
- */
566
- saveSettings(mapConfig, options) {
567
- return this.httpClient.request({ method: "PUT", url: uriEncoding `map`, data: mapConfig, options: options });
568
- }
569
- /**
570
- * HTTP DELETE /map/deleteMap
571
- * Java method: org.openremote.model.map.MapResource.deleteMap
572
- */
573
- deleteMap(options) {
574
- return this.httpClient.request({ method: "DELETE", url: uriEncoding `map/deleteMap`, options: options });
575
- }
576
- /**
577
- * HTTP GET /map/getCustomMapInfo
578
- * Java method: org.openremote.model.map.MapResource.getCustomMapInfo
579
- */
580
- getCustomMapInfo(options) {
581
- return this.httpClient.request({ method: "GET", url: uriEncoding `map/getCustomMapInfo`, options: options });
582
- }
583
- /**
584
- * HTTP GET /map/js
585
- * Java method: org.openremote.model.map.MapResource.getSettingsJs
586
- */
587
- getSettingsJs(options) {
588
- return this.httpClient.request({ method: "GET", url: uriEncoding `map/js`, options: options });
589
- }
590
- /**
591
- * HTTP GET /map/tile/{zoom}/{column}/{row}
592
- * Java method: org.openremote.model.map.MapResource.getTile
593
- */
594
- getTile(zoom, column, row, options) {
595
- return this.httpClient.request({ method: "GET", url: uriEncoding `map/tile/${zoom}/${column}/${row}`, options: options });
596
- }
597
- /**
598
- * HTTP POST /map/upload
599
- * Java method: org.openremote.model.map.MapResource.uploadMap
600
- */
601
- uploadMap(queryParams, options) {
602
- return this.httpClient.request({ method: "POST", url: uriEncoding `map/upload`, queryParams: queryParams, options: options });
603
- }
604
- }
605
- export class UserResourceClient {
606
- constructor(httpClient) {
607
- this.httpClient = httpClient;
608
- }
609
- /**
610
- * HTTP PUT /user/locale
611
- * Java method: org.openremote.model.security.UserResource.updateCurrentUserLocale
612
- */
613
- updateCurrentUserLocale(locale, options) {
614
- return this.httpClient.request({ method: "PUT", url: uriEncoding `user/locale`, data: locale, options: options });
615
- }
616
- /**
617
- * HTTP POST /user/query
618
- * Java method: org.openremote.model.security.UserResource.query
619
- */
620
- query(query, options) {
621
- return this.httpClient.request({ method: "POST", url: uriEncoding `user/query`, data: query, options: options });
622
- }
623
- /**
624
- * HTTP PUT /user/request-password-reset
625
- * Java method: org.openremote.model.security.UserResource.requestPasswordResetCurrent
626
- */
627
- requestPasswordResetCurrent(options) {
628
- return this.httpClient.request({ method: "PUT", url: uriEncoding `user/request-password-reset`, options: options });
629
- }
630
- /**
631
- * HTTP PUT /user/reset-password
632
- * Java method: org.openremote.model.security.UserResource.updatePasswordCurrent
633
- */
634
- updatePasswordCurrent(credential, options) {
635
- return this.httpClient.request({ method: "PUT", url: uriEncoding `user/reset-password`, data: credential, options: options });
636
- }
637
- /**
638
- * HTTP PUT /user/update
639
- * Java method: org.openremote.model.security.UserResource.updateCurrent
640
- */
641
- updateCurrent(user, options) {
642
- return this.httpClient.request({ method: "PUT", url: uriEncoding `user/update`, data: user, options: options });
643
- }
644
- /**
645
- * HTTP GET /user/user
646
- * Java method: org.openremote.model.security.UserResource.getCurrent
647
- */
648
- getCurrent(options) {
649
- return this.httpClient.request({ method: "GET", url: uriEncoding `user/user`, options: options });
650
- }
651
- /**
652
- * HTTP GET /user/userRealmRoles
653
- * Java method: org.openremote.model.security.UserResource.getCurrentUserRealmRoles
654
- */
655
- getCurrentUserRealmRoles(options) {
656
- return this.httpClient.request({ method: "GET", url: uriEncoding `user/userRealmRoles`, options: options });
657
- }
658
- /**
659
- * HTTP GET /user/userRoles/{clientId}
660
- * Java method: org.openremote.model.security.UserResource.getCurrentUserClientRoles
661
- */
662
- getCurrentUserClientRoles(clientId, options) {
663
- return this.httpClient.request({ method: "GET", url: uriEncoding `user/userRoles/${clientId}`, options: options });
664
- }
665
- /**
666
- * HTTP GET /user/{realm}/disconnect/{sessionID}
667
- * Java method: org.openremote.model.security.UserResource.disconnectUserSession
668
- */
669
- disconnectUserSession(realm, sessionID, options) {
670
- return this.httpClient.request({ method: "GET", url: uriEncoding `user/${realm}/disconnect/${sessionID}`, options: options });
671
- }
672
- /**
673
- * HTTP PUT /user/{realm}/request-password-reset/{userId}
674
- * Java method: org.openremote.model.security.UserResource.requestPasswordReset
675
- */
676
- requestPasswordReset(realm, userId, options) {
677
- return this.httpClient.request({ method: "PUT", url: uriEncoding `user/${realm}/request-password-reset/${userId}`, options: options });
678
- }
679
- /**
680
- * HTTP PUT /user/{realm}/reset-password/{userId}
681
- * Java method: org.openremote.model.security.UserResource.updatePassword
682
- */
683
- updatePassword(realm, userId, credential, options) {
684
- return this.httpClient.request({ method: "PUT", url: uriEncoding `user/${realm}/reset-password/${userId}`, data: credential, options: options });
685
- }
686
- /**
687
- * HTTP GET /user/{realm}/reset-secret/{userId}
688
- * Java method: org.openremote.model.security.UserResource.resetSecret
689
- */
690
- resetSecret(realm, userId, options) {
691
- return this.httpClient.request({ method: "GET", url: uriEncoding `user/${realm}/reset-secret/${userId}`, options: options });
692
- }
693
- /**
694
- * HTTP PUT /user/{realm}/roles
695
- * Java method: org.openremote.model.security.UserResource.updateRoles
696
- */
697
- updateRoles(realm, roles, options) {
698
- return this.httpClient.request({ method: "PUT", url: uriEncoding `user/${realm}/roles`, data: roles, options: options });
699
- }
700
- /**
701
- * HTTP GET /user/{realm}/userRealmRoles/{userId}
702
- * Java method: org.openremote.model.security.UserResource.getUserRealmRoles
703
- */
704
- getUserRealmRoles(realm, userId, options) {
705
- return this.httpClient.request({ method: "GET", url: uriEncoding `user/${realm}/userRealmRoles/${userId}`, options: options });
706
- }
707
- /**
708
- * HTTP PUT /user/{realm}/userRealmRoles/{userId}
709
- * Java method: org.openremote.model.security.UserResource.updateUserRealmRoles
710
- */
711
- updateUserRealmRoles(realm, userId, roles, options) {
712
- return this.httpClient.request({ method: "PUT", url: uriEncoding `user/${realm}/userRealmRoles/${userId}`, data: roles, options: options });
713
- }
714
- /**
715
- * HTTP GET /user/{realm}/userRoles/{userId}/{clientId}
716
- * Java method: org.openremote.model.security.UserResource.getUserClientRoles
717
- */
718
- getUserClientRoles(realm, userId, clientId, options) {
719
- return this.httpClient.request({ method: "GET", url: uriEncoding `user/${realm}/userRoles/${userId}/${clientId}`, options: options });
720
- }
721
- /**
722
- * HTTP PUT /user/{realm}/userRoles/{userId}/{clientId}
723
- * Java method: org.openremote.model.security.UserResource.updateUserClientRoles
724
- */
725
- updateUserClientRoles(realm, userId, clientId, roles, options) {
726
- return this.httpClient.request({ method: "PUT", url: uriEncoding `user/${realm}/userRoles/${userId}/${clientId}`, data: roles, options: options });
727
- }
728
- /**
729
- * HTTP GET /user/{realm}/userSessions/{userId}
730
- * Java method: org.openremote.model.security.UserResource.getUserSessions
731
- */
732
- getUserSessions(realm, userId, options) {
733
- return this.httpClient.request({ method: "GET", url: uriEncoding `user/${realm}/userSessions/${userId}`, options: options });
734
- }
735
- /**
736
- * HTTP POST /user/{realm}/users
737
- * Java method: org.openremote.model.security.UserResource.create
738
- */
739
- create(realm, user, options) {
740
- return this.httpClient.request({ method: "POST", url: uriEncoding `user/${realm}/users`, data: user, options: options });
741
- }
742
- /**
743
- * HTTP PUT /user/{realm}/users
744
- * Java method: org.openremote.model.security.UserResource.update
745
- */
746
- update(realm, user, options) {
747
- return this.httpClient.request({ method: "PUT", url: uriEncoding `user/${realm}/users`, data: user, options: options });
748
- }
749
- /**
750
- * HTTP DELETE /user/{realm}/users/{userId}
751
- * Java method: org.openremote.model.security.UserResource.delete
752
- */
753
- delete(realm, userId, options) {
754
- return this.httpClient.request({ method: "DELETE", url: uriEncoding `user/${realm}/users/${userId}`, options: options });
755
- }
756
- /**
757
- * HTTP GET /user/{realm}/{clientId}/roles
758
- * Java method: org.openremote.model.security.UserResource.getClientRoles
759
- */
760
- getClientRoles(realm, clientId, options) {
761
- return this.httpClient.request({ method: "GET", url: uriEncoding `user/${realm}/${clientId}/roles`, options: options });
762
- }
763
- /**
764
- * HTTP PUT /user/{realm}/{clientId}/roles
765
- * Java method: org.openremote.model.security.UserResource.updateClientRoles
766
- */
767
- updateClientRoles(realm, clientId, roles, options) {
768
- return this.httpClient.request({ method: "PUT", url: uriEncoding `user/${realm}/${clientId}/roles`, data: roles, options: options });
769
- }
770
- /**
771
- * HTTP GET /user/{realm}/{userId}
772
- * Java method: org.openremote.model.security.UserResource.get
773
- */
774
- get(realm, userId, options) {
775
- return this.httpClient.request({ method: "GET", url: uriEncoding `user/${realm}/${userId}`, options: options });
776
- }
777
- }
778
- export class StatusResourceClient {
779
- constructor(httpClient) {
780
- this.httpClient = httpClient;
781
- }
782
- /**
783
- * HTTP GET /health
784
- * Java method: org.openremote.model.system.StatusResource.getHealthStatus
785
- */
786
- getHealthStatus(options) {
787
- return this.httpClient.request({ method: "GET", url: uriEncoding `health`, options: options });
788
- }
789
- /**
790
- * HTTP GET /info
791
- * Java method: org.openremote.model.system.StatusResource.getInfo
792
- */
793
- getInfo(options) {
794
- return this.httpClient.request({ method: "GET", url: uriEncoding `info`, options: options });
795
- }
796
- }
797
- export class AssetDatapointResourceClient {
798
- constructor(httpClient) {
799
- this.httpClient = httpClient;
800
- }
801
- /**
802
- * HTTP GET /asset/datapoint/export
803
- * Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointExport
804
- */
805
- getDatapointExport(queryParams, options) {
806
- return this.httpClient.request({ method: "GET", url: uriEncoding `asset/datapoint/export`, queryParams: queryParams, options: options });
807
- }
808
- /**
809
- * HTTP GET /asset/datapoint/periods
810
- * Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointPeriod
811
- */
812
- getDatapointPeriod(queryParams, options) {
813
- return this.httpClient.request({ method: "GET", url: uriEncoding `asset/datapoint/periods`, queryParams: queryParams, options: options });
814
- }
815
- /**
816
- * HTTP POST /asset/datapoint/{assetId}/{attributeName}
817
- * Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapoints
818
- */
819
- getDatapoints(assetId, attributeName, query, options) {
820
- return this.httpClient.request({ method: "POST", url: uriEncoding `asset/datapoint/${assetId}/${attributeName}`, data: query, options: options });
821
- }
822
- }
823
- export class AlarmResourceClient {
824
- constructor(httpClient) {
825
- this.httpClient = httpClient;
826
- }
827
- /**
828
- * HTTP POST /alarm
829
- * Java method: org.openremote.model.alarm.AlarmResource.createAlarm
830
- */
831
- createAlarm(alarm, queryParams, options) {
832
- return this.httpClient.request({ method: "POST", url: uriEncoding `alarm`, queryParams: queryParams, data: alarm, options: options });
833
- }
834
- /**
835
- * HTTP GET /alarm
836
- * Java method: org.openremote.model.alarm.AlarmResource.getAlarms
837
- */
838
- getAlarms(queryParams, options) {
839
- return this.httpClient.request({ method: "GET", url: uriEncoding `alarm`, queryParams: queryParams, options: options });
840
- }
841
- /**
842
- * HTTP DELETE /alarm
843
- * Java method: org.openremote.model.alarm.AlarmResource.removeAlarms
844
- */
845
- removeAlarms(ids, options) {
846
- return this.httpClient.request({ method: "DELETE", url: uriEncoding `alarm`, data: ids, options: options });
847
- }
848
- /**
849
- * HTTP PUT /alarm/assets
850
- * Java method: org.openremote.model.alarm.AlarmResource.setAssetLinks
851
- */
852
- setAssetLinks(links, options) {
853
- return this.httpClient.request({ method: "PUT", url: uriEncoding `alarm/assets`, data: links, options: options });
854
- }
855
- /**
856
- * HTTP GET /alarm/{alarmId}
857
- * Java method: org.openremote.model.alarm.AlarmResource.getAlarm
858
- */
859
- getAlarm(alarmId, options) {
860
- return this.httpClient.request({ method: "GET", url: uriEncoding `alarm/${alarmId}`, options: options });
861
- }
862
- /**
863
- * HTTP DELETE /alarm/{alarmId}
864
- * Java method: org.openremote.model.alarm.AlarmResource.removeAlarm
865
- */
866
- removeAlarm(alarmId, options) {
867
- return this.httpClient.request({ method: "DELETE", url: uriEncoding `alarm/${alarmId}`, options: options });
868
- }
869
- /**
870
- * HTTP PUT /alarm/{alarmId}
871
- * Java method: org.openremote.model.alarm.AlarmResource.updateAlarm
872
- */
873
- updateAlarm(alarmId, alarm, options) {
874
- return this.httpClient.request({ method: "PUT", url: uriEncoding `alarm/${alarmId}`, data: alarm, options: options });
875
- }
876
- /**
877
- * HTTP GET /alarm/{alarmId}/assets
878
- * Java method: org.openremote.model.alarm.AlarmResource.getAssetLinks
879
- */
880
- getAssetLinks(alarmId, queryParams, options) {
881
- return this.httpClient.request({ method: "GET", url: uriEncoding `alarm/${alarmId}/assets`, queryParams: queryParams, options: options });
882
- }
883
- }
884
- export class GatewayClientResourceClient {
885
- constructor(httpClient) {
886
- this.httpClient = httpClient;
887
- }
888
- /**
889
- * HTTP DELETE /gateway/connection
890
- * Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnections
891
- */
892
- deleteConnections(queryParams, options) {
893
- return this.httpClient.request({ method: "DELETE", url: uriEncoding `gateway/connection`, queryParams: queryParams, options: options });
894
- }
895
- /**
896
- * HTTP GET /gateway/connection
897
- * Java method: org.openremote.model.gateway.GatewayClientResource.getConnections
898
- */
899
- getConnections(options) {
900
- return this.httpClient.request({ method: "GET", url: uriEncoding `gateway/connection`, options: options });
901
- }
902
- /**
903
- * HTTP DELETE /gateway/connection/{realm}
904
- * Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnection
905
- */
906
- deleteConnection(realm, options) {
907
- return this.httpClient.request({ method: "DELETE", url: uriEncoding `gateway/connection/${realm}`, options: options });
908
- }
909
- /**
910
- * HTTP GET /gateway/connection/{realm}
911
- * Java method: org.openremote.model.gateway.GatewayClientResource.getConnection
912
- */
913
- getConnection(realm, options) {
914
- return this.httpClient.request({ method: "GET", url: uriEncoding `gateway/connection/${realm}`, options: options });
915
- }
916
- /**
917
- * HTTP PUT /gateway/connection/{realm}
918
- * Java method: org.openremote.model.gateway.GatewayClientResource.setConnection
919
- */
920
- setConnection(realm, connection, options) {
921
- return this.httpClient.request({ method: "PUT", url: uriEncoding `gateway/connection/${realm}`, data: connection, options: options });
922
- }
923
- /**
924
- * HTTP GET /gateway/status/{realm}
925
- * Java method: org.openremote.model.gateway.GatewayClientResource.getConnectionStatus
926
- */
927
- getConnectionStatus(realm, options) {
928
- return this.httpClient.request({ method: "GET", url: uriEncoding `gateway/status/${realm}`, options: options });
929
- }
930
- }
931
- export class ConsoleResourceClient {
932
- constructor(httpClient) {
933
- this.httpClient = httpClient;
934
- }
935
- /**
936
- * HTTP POST /console/register
937
- * Java method: org.openremote.model.console.ConsoleResource.register
938
- */
939
- register(consoleRegistration, options) {
940
- return this.httpClient.request({ method: "POST", url: uriEncoding `console/register`, data: consoleRegistration, options: options });
941
- }
942
- }
943
- export class AgentResourceClient {
944
- constructor(httpClient) {
945
- this.httpClient = httpClient;
946
- }
947
- /**
948
- * HTTP GET /agent/assetDiscovery/{agentId}
949
- * Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetDiscovery
950
- */
951
- doProtocolAssetDiscovery(agentId, queryParams, options) {
952
- return this.httpClient.request({ method: "GET", url: uriEncoding `agent/assetDiscovery/${agentId}`, queryParams: queryParams, options: options });
953
- }
954
- /**
955
- * HTTP POST /agent/assetImport/{agentId}
956
- * Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetImport
957
- */
958
- doProtocolAssetImport(agentId, fileInfo, queryParams, options) {
959
- return this.httpClient.request({ method: "POST", url: uriEncoding `agent/assetImport/${agentId}`, queryParams: queryParams, data: fileInfo, options: options });
960
- }
961
- /**
962
- * HTTP GET /agent/instanceDiscovery/{agentType}
963
- * Java method: org.openremote.model.asset.agent.AgentResource.doProtocolInstanceDiscovery
964
- */
965
- doProtocolInstanceDiscovery(agentType, queryParams, options) {
966
- return this.httpClient.request({ method: "GET", url: uriEncoding `agent/instanceDiscovery/${agentType}`, queryParams: queryParams, options: options });
967
- }
968
- }
969
- export class RealmResourceClient {
970
- constructor(httpClient) {
971
- this.httpClient = httpClient;
972
- }
973
- /**
974
- * HTTP POST /realm
975
- * Java method: org.openremote.model.security.RealmResource.create
976
- */
977
- create(realm, options) {
978
- return this.httpClient.request({ method: "POST", url: uriEncoding `realm`, data: realm, options: options });
979
- }
980
- /**
981
- * HTTP GET /realm
982
- * Java method: org.openremote.model.security.RealmResource.getAll
983
- */
984
- getAll(options) {
985
- return this.httpClient.request({ method: "GET", url: uriEncoding `realm`, options: options });
986
- }
987
- /**
988
- * HTTP GET /realm/accessible
989
- * Java method: org.openremote.model.security.RealmResource.getAccessible
990
- */
991
- getAccessible(options) {
992
- return this.httpClient.request({ method: "GET", url: uriEncoding `realm/accessible`, options: options });
993
- }
994
- /**
995
- * HTTP DELETE /realm/{name}
996
- * Java method: org.openremote.model.security.RealmResource.delete
997
- */
998
- delete(name, options) {
999
- return this.httpClient.request({ method: "DELETE", url: uriEncoding `realm/${name}`, options: options });
1000
- }
1001
- /**
1002
- * HTTP GET /realm/{name}
1003
- * Java method: org.openremote.model.security.RealmResource.get
1004
- */
1005
- get(name, options) {
1006
- return this.httpClient.request({ method: "GET", url: uriEncoding `realm/${name}`, options: options });
1007
- }
1008
- /**
1009
- * HTTP PUT /realm/{name}
1010
- * Java method: org.openremote.model.security.RealmResource.update
1011
- */
1012
- update(name, realm, options) {
1013
- return this.httpClient.request({ method: "PUT", url: uriEncoding `realm/${name}`, data: realm, options: options });
1014
- }
1015
- }
1016
- export class FlowResourceClient {
1017
- constructor(httpClient) {
1018
- this.httpClient = httpClient;
1019
- }
1020
- /**
1021
- * HTTP GET /flow
1022
- * Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitions
1023
- */
1024
- getAllNodeDefinitions(options) {
1025
- return this.httpClient.request({ method: "GET", url: uriEncoding `flow`, options: options });
1026
- }
1027
- /**
1028
- * HTTP GET /flow/{name}
1029
- * Java method: org.openremote.model.rules.flow.FlowResource.getNodeDefinition
1030
- */
1031
- getNodeDefinition(name, options) {
1032
- return this.httpClient.request({ method: "GET", url: uriEncoding `flow/${name}`, options: options });
1033
- }
1034
- /**
1035
- * HTTP GET /flow/{type}
1036
- * Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitionsByType
1037
- */
1038
- getAllNodeDefinitionsByType(type, options) {
1039
- return this.httpClient.request({ method: "GET", url: uriEncoding `flow/${type}`, options: options });
1040
- }
1041
- }
1042
- export class GatewayServiceResourceClient {
1043
- constructor(httpClient) {
1044
- this.httpClient = httpClient;
1045
- }
1046
- /**
1047
- * HTTP POST /gateway/tunnel
1048
- * Java method: org.openremote.model.gateway.GatewayServiceResource.startTunnel
1049
- */
1050
- startTunnel(tunnelInfo, options) {
1051
- return this.httpClient.request({ method: "POST", url: uriEncoding `gateway/tunnel`, data: tunnelInfo, options: options });
1052
- }
1053
- /**
1054
- * HTTP DELETE /gateway/tunnel
1055
- * Java method: org.openremote.model.gateway.GatewayServiceResource.stopTunnel
1056
- */
1057
- stopTunnel(tunnelInfo, options) {
1058
- return this.httpClient.request({ method: "DELETE", url: uriEncoding `gateway/tunnel`, data: tunnelInfo, options: options });
1059
- }
1060
- /**
1061
- * HTTP GET /gateway/tunnel/{realm}
1062
- * Java method: org.openremote.model.gateway.GatewayServiceResource.getAllActiveTunnelInfos
1063
- */
1064
- getAllActiveTunnelInfos(realm, options) {
1065
- return this.httpClient.request({ method: "GET", url: uriEncoding `gateway/tunnel/${realm}`, options: options });
1066
- }
1067
- /**
1068
- * HTTP GET /gateway/tunnel/{realm}/{id}
1069
- * Java method: org.openremote.model.gateway.GatewayServiceResource.getGatewayActiveTunnelInfos
1070
- */
1071
- getGatewayActiveTunnelInfos(realm, id, options) {
1072
- return this.httpClient.request({ method: "GET", url: uriEncoding `gateway/tunnel/${realm}/${id}`, options: options });
1073
- }
1074
- /**
1075
- * HTTP GET /gateway/tunnel/{realm}/{id}/{target}/{targetPort}
1076
- * Java method: org.openremote.model.gateway.GatewayServiceResource.getActiveTunnelInfo
1077
- */
1078
- getActiveTunnelInfo(realm, id, target, targetPort, options) {
1079
- return this.httpClient.request({ method: "GET", url: uriEncoding `gateway/tunnel/${realm}/${id}/${target}/${targetPort}`, options: options });
1080
- }
1081
- }
1082
- function uriEncoding(template, ...substitutions) {
1083
- let result = "";
1084
- for (let i = 0; i < substitutions.length; i++) {
1085
- result += template[i];
1086
- result += encodeURIComponent(substitutions[i]);
1087
- }
1088
- result += template[template.length - 1];
1089
- return result;
1090
- }
1091
- // Added by 'AggregatedApiClient' extension
1092
- export class ApiClient {
1093
- constructor(baseURL, axiosInstance = axios.create()) {
1094
- this._provisioningResource = new AxiosProvisioningResourceClient(baseURL, axiosInstance);
1095
- this._assetPredictedDatapointResource = new AxiosAssetPredictedDatapointResourceClient(baseURL, axiosInstance);
1096
- this._dashboardResource = new AxiosDashboardResourceClient(baseURL, axiosInstance);
1097
- this._assetResource = new AxiosAssetResourceClient(baseURL, axiosInstance);
1098
- this._configurationResource = new AxiosConfigurationResourceClient(baseURL, axiosInstance);
1099
- this._appResource = new AxiosAppResourceClient(baseURL, axiosInstance);
1100
- this._notificationResource = new AxiosNotificationResourceClient(baseURL, axiosInstance);
1101
- this._assetModelResource = new AxiosAssetModelResourceClient(baseURL, axiosInstance);
1102
- this._rulesResource = new AxiosRulesResourceClient(baseURL, axiosInstance);
1103
- this._syslogResource = new AxiosSyslogResourceClient(baseURL, axiosInstance);
1104
- this._mapResource = new AxiosMapResourceClient(baseURL, axiosInstance);
1105
- this._userResource = new AxiosUserResourceClient(baseURL, axiosInstance);
1106
- this._statusResource = new AxiosStatusResourceClient(baseURL, axiosInstance);
1107
- this._assetDatapointResource = new AxiosAssetDatapointResourceClient(baseURL, axiosInstance);
1108
- this._alarmResource = new AxiosAlarmResourceClient(baseURL, axiosInstance);
1109
- this._gatewayClientResource = new AxiosGatewayClientResourceClient(baseURL, axiosInstance);
1110
- this._consoleResource = new AxiosConsoleResourceClient(baseURL, axiosInstance);
1111
- this._agentResource = new AxiosAgentResourceClient(baseURL, axiosInstance);
1112
- this._realmResource = new AxiosRealmResourceClient(baseURL, axiosInstance);
1113
- this._flowResource = new AxiosFlowResourceClient(baseURL, axiosInstance);
1114
- this._gatewayServiceResource = new AxiosGatewayServiceResourceClient(baseURL, axiosInstance);
1115
- this._assetResource = new AxiosAssetResourceClient(baseURL, axiosInstance);
1116
- }
1117
- get ProvisioningResource() {
1118
- return this._provisioningResource;
1119
- }
1120
- get AssetPredictedDatapointResource() {
1121
- return this._assetPredictedDatapointResource;
1122
- }
1123
- get DashboardResource() {
1124
- return this._dashboardResource;
1125
- }
1126
- get AssetResource() {
1127
- return this._assetResource;
1128
- }
1129
- get ConfigurationResource() {
1130
- return this._configurationResource;
1131
- }
1132
- get AppResource() {
1133
- return this._appResource;
1134
- }
1135
- get NotificationResource() {
1136
- return this._notificationResource;
1137
- }
1138
- get AssetModelResource() {
1139
- return this._assetModelResource;
1140
- }
1141
- get RulesResource() {
1142
- return this._rulesResource;
1143
- }
1144
- get SyslogResource() {
1145
- return this._syslogResource;
1146
- }
1147
- get MapResource() {
1148
- return this._mapResource;
1149
- }
1150
- get UserResource() {
1151
- return this._userResource;
1152
- }
1153
- get StatusResource() {
1154
- return this._statusResource;
1155
- }
1156
- get AssetDatapointResource() {
1157
- return this._assetDatapointResource;
1158
- }
1159
- get AlarmResource() {
1160
- return this._alarmResource;
1161
- }
1162
- get GatewayClientResource() {
1163
- return this._gatewayClientResource;
1164
- }
1165
- get ConsoleResource() {
1166
- return this._consoleResource;
1167
- }
1168
- get AgentResource() {
1169
- return this._agentResource;
1170
- }
1171
- get RealmResource() {
1172
- return this._realmResource;
1173
- }
1174
- get FlowResource() {
1175
- return this._flowResource;
1176
- }
1177
- get GatewayServiceResource() {
1178
- return this._gatewayServiceResource;
1179
- }
1180
- }
1181
- // Added by 'AxiosClientExtension' extension
1182
- import axios from "axios";
1183
- class AxiosHttpClient {
1184
- constructor(axios) {
1185
- this.axios = axios;
1186
- }
1187
- request(requestConfig) {
1188
- function assign(target, source) {
1189
- if (source != undefined) {
1190
- for (const key in source) {
1191
- if (source.hasOwnProperty(key)) {
1192
- target[key] = source[key];
1193
- }
1194
- }
1195
- }
1196
- return target;
1197
- }
1198
- const config = {};
1199
- config.method = requestConfig.method; // `string` in axios 0.16.0, `Method` in axios 0.19.0
1200
- config.url = requestConfig.url;
1201
- config.params = requestConfig.queryParams;
1202
- config.data = requestConfig.data;
1203
- assign(config, requestConfig.options);
1204
- const copyFn = requestConfig.copyFn;
1205
- const axiosResponse = this.axios.request(config);
1206
- return axiosResponse.then(axiosResponse => {
1207
- if (copyFn && axiosResponse.data) {
1208
- axiosResponse.originalData = axiosResponse.data;
1209
- axiosResponse.data = copyFn(axiosResponse.data);
1210
- }
1211
- return axiosResponse;
1212
- });
1213
- }
1214
- }
1215
- export class AxiosProvisioningResourceClient extends ProvisioningResourceClient {
1216
- constructor(baseURL, axiosInstance = axios.create()) {
1217
- axiosInstance.defaults.baseURL = baseURL;
1218
- super(new AxiosHttpClient(axiosInstance));
1219
- }
1220
- }
1221
- export class AxiosAssetPredictedDatapointResourceClient extends AssetPredictedDatapointResourceClient {
1222
- constructor(baseURL, axiosInstance = axios.create()) {
1223
- axiosInstance.defaults.baseURL = baseURL;
1224
- super(new AxiosHttpClient(axiosInstance));
1225
- }
1226
- }
1227
- export class AxiosDashboardResourceClient extends DashboardResourceClient {
1228
- constructor(baseURL, axiosInstance = axios.create()) {
1229
- axiosInstance.defaults.baseURL = baseURL;
1230
- super(new AxiosHttpClient(axiosInstance));
1231
- }
1232
- }
1233
- export class AxiosAssetResourceClient extends AssetResourceClient {
1234
- constructor(baseURL, axiosInstance = axios.create()) {
1235
- axiosInstance.defaults.baseURL = baseURL;
1236
- super(new AxiosHttpClient(axiosInstance));
1237
- }
1238
- }
1239
- export class AxiosConfigurationResourceClient extends ConfigurationResourceClient {
1240
- constructor(baseURL, axiosInstance = axios.create()) {
1241
- axiosInstance.defaults.baseURL = baseURL;
1242
- super(new AxiosHttpClient(axiosInstance));
1243
- }
1244
- }
1245
- export class AxiosAppResourceClient extends AppResourceClient {
1246
- constructor(baseURL, axiosInstance = axios.create()) {
1247
- axiosInstance.defaults.baseURL = baseURL;
1248
- super(new AxiosHttpClient(axiosInstance));
1249
- }
1250
- }
1251
- export class AxiosNotificationResourceClient extends NotificationResourceClient {
1252
- constructor(baseURL, axiosInstance = axios.create()) {
1253
- axiosInstance.defaults.baseURL = baseURL;
1254
- super(new AxiosHttpClient(axiosInstance));
1255
- }
1256
- }
1257
- export class AxiosAssetModelResourceClient extends AssetModelResourceClient {
1258
- constructor(baseURL, axiosInstance = axios.create()) {
1259
- axiosInstance.defaults.baseURL = baseURL;
1260
- super(new AxiosHttpClient(axiosInstance));
1261
- }
1262
- }
1263
- export class AxiosRulesResourceClient extends RulesResourceClient {
1264
- constructor(baseURL, axiosInstance = axios.create()) {
1265
- axiosInstance.defaults.baseURL = baseURL;
1266
- super(new AxiosHttpClient(axiosInstance));
1267
- }
1268
- }
1269
- export class AxiosSyslogResourceClient extends SyslogResourceClient {
1270
- constructor(baseURL, axiosInstance = axios.create()) {
1271
- axiosInstance.defaults.baseURL = baseURL;
1272
- super(new AxiosHttpClient(axiosInstance));
1273
- }
1274
- }
1275
- export class AxiosMapResourceClient extends MapResourceClient {
1276
- constructor(baseURL, axiosInstance = axios.create()) {
1277
- axiosInstance.defaults.baseURL = baseURL;
1278
- super(new AxiosHttpClient(axiosInstance));
1279
- }
1280
- }
1281
- export class AxiosUserResourceClient extends UserResourceClient {
1282
- constructor(baseURL, axiosInstance = axios.create()) {
1283
- axiosInstance.defaults.baseURL = baseURL;
1284
- super(new AxiosHttpClient(axiosInstance));
1285
- }
1286
- }
1287
- export class AxiosStatusResourceClient extends StatusResourceClient {
1288
- constructor(baseURL, axiosInstance = axios.create()) {
1289
- axiosInstance.defaults.baseURL = baseURL;
1290
- super(new AxiosHttpClient(axiosInstance));
1291
- }
1292
- }
1293
- export class AxiosAssetDatapointResourceClient extends AssetDatapointResourceClient {
1294
- constructor(baseURL, axiosInstance = axios.create()) {
1295
- axiosInstance.defaults.baseURL = baseURL;
1296
- super(new AxiosHttpClient(axiosInstance));
1297
- }
1298
- }
1299
- export class AxiosAlarmResourceClient extends AlarmResourceClient {
1300
- constructor(baseURL, axiosInstance = axios.create()) {
1301
- axiosInstance.defaults.baseURL = baseURL;
1302
- super(new AxiosHttpClient(axiosInstance));
1303
- }
1304
- }
1305
- export class AxiosGatewayClientResourceClient extends GatewayClientResourceClient {
1306
- constructor(baseURL, axiosInstance = axios.create()) {
1307
- axiosInstance.defaults.baseURL = baseURL;
1308
- super(new AxiosHttpClient(axiosInstance));
1309
- }
1310
- }
1311
- export class AxiosConsoleResourceClient extends ConsoleResourceClient {
1312
- constructor(baseURL, axiosInstance = axios.create()) {
1313
- axiosInstance.defaults.baseURL = baseURL;
1314
- super(new AxiosHttpClient(axiosInstance));
1315
- }
1316
- }
1317
- export class AxiosAgentResourceClient extends AgentResourceClient {
1318
- constructor(baseURL, axiosInstance = axios.create()) {
1319
- axiosInstance.defaults.baseURL = baseURL;
1320
- super(new AxiosHttpClient(axiosInstance));
1321
- }
1322
- }
1323
- export class AxiosRealmResourceClient extends RealmResourceClient {
1324
- constructor(baseURL, axiosInstance = axios.create()) {
1325
- axiosInstance.defaults.baseURL = baseURL;
1326
- super(new AxiosHttpClient(axiosInstance));
1327
- }
1328
- }
1329
- export class AxiosFlowResourceClient extends FlowResourceClient {
1330
- constructor(baseURL, axiosInstance = axios.create()) {
1331
- axiosInstance.defaults.baseURL = baseURL;
1332
- super(new AxiosHttpClient(axiosInstance));
1333
- }
1334
- }
1335
- export class AxiosGatewayServiceResourceClient extends GatewayServiceResourceClient {
1336
- constructor(baseURL, axiosInstance = axios.create()) {
1337
- axiosInstance.defaults.baseURL = baseURL;
1338
- super(new AxiosHttpClient(axiosInstance));
1339
- }
1340
- }
1341
- //# sourceMappingURL=restclient.js.map
1
+ export class GatewayClientResourceClient{constructor(t){this.httpClient=t}deleteConnections(t,e){return this.httpClient.request({method:"DELETE",url:uriEncoding`gateway/connection`,queryParams:t,options:e})}getConnections(t){return this.httpClient.request({method:"GET",url:uriEncoding`gateway/connection`,options:t})}deleteConnection(t,e){return this.httpClient.request({method:"DELETE",url:uriEncoding`gateway/connection/${t}`,options:e})}getConnection(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`gateway/connection/${t}`,options:e})}setConnection(t,e,s){return this.httpClient.request({method:"PUT",url:uriEncoding`gateway/connection/${t}`,data:e,options:s})}getConnectionStatus(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`gateway/status/${t}`,options:e})}}export class AppResourceClient{constructor(t){this.httpClient=t}getApps(t){return this.httpClient.request({method:"GET",url:uriEncoding`apps`,options:t})}getConsoleConfig(t){return this.httpClient.request({method:"GET",url:uriEncoding`apps/consoleConfig`,options:t})}getAppInfos(t){return this.httpClient.request({method:"GET",url:uriEncoding`apps/info`,options:t})}}export class StatusResourceClient{constructor(t){this.httpClient=t}getHealthStatus(t){return this.httpClient.request({method:"GET",url:uriEncoding`health`,options:t})}getInfo(t){return this.httpClient.request({method:"GET",url:uriEncoding`info`,options:t})}}export class AssetDatapointResourceClient{constructor(t){this.httpClient=t}getDatapointExport(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`asset/datapoint/export`,queryParams:t,options:e})}getDatapointPeriod(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`asset/datapoint/periods`,queryParams:t,options:e})}getDatapoints(t,e,s,r){return this.httpClient.request({method:"POST",url:uriEncoding`asset/datapoint/${t}/${e}`,data:s,options:r})}}export class RealmResourceClient{constructor(t){this.httpClient=t}create(t,e){return this.httpClient.request({method:"POST",url:uriEncoding`realm`,data:t,options:e})}getAll(t){return this.httpClient.request({method:"GET",url:uriEncoding`realm`,options:t})}getAccessible(t){return this.httpClient.request({method:"GET",url:uriEncoding`realm/accessible`,options:t})}delete(t,e){return this.httpClient.request({method:"DELETE",url:uriEncoding`realm/${t}`,options:e})}get(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`realm/${t}`,options:e})}update(t,e,s){return this.httpClient.request({method:"PUT",url:uriEncoding`realm/${t}`,data:e,options:s})}}export class NotificationResourceClient{constructor(t){this.httpClient=t}getNotifications(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`notification`,queryParams:t,options:e})}removeNotifications(t,e){return this.httpClient.request({method:"DELETE",url:uriEncoding`notification`,queryParams:t,options:e})}sendNotification(t,e){return this.httpClient.request({method:"POST",url:uriEncoding`notification/alert`,data:t,options:e})}removeNotification(t,e){return this.httpClient.request({method:"DELETE",url:uriEncoding`notification/${t}`,options:e})}notificationAcknowledged(t,e,s,r){return this.httpClient.request({method:"PUT",url:uriEncoding`notification/${t}/acknowledged`,queryParams:s,data:e,options:r})}notificationDelivered(t,e,s){return this.httpClient.request({method:"PUT",url:uriEncoding`notification/${t}/delivered`,queryParams:e,options:s})}}export class AssetResourceClient{constructor(t){this.httpClient=t}create(t,e){return this.httpClient.request({method:"POST",url:uriEncoding`asset`,data:t,options:e})}delete(t,e){return this.httpClient.request({method:"DELETE",url:uriEncoding`asset`,queryParams:t,options:e})}writeAttributeValues(t,e){return this.httpClient.request({method:"PUT",url:uriEncoding`asset/attributes`,data:t,options:e})}writeAttributeEvents(t,e){return this.httpClient.request({method:"PUT",url:uriEncoding`asset/attributes/timestamp`,data:t,options:e})}updateNoneParent(t,e){return this.httpClient.request({method:"DELETE",url:uriEncoding`asset/parent`,queryParams:t,options:e})}getPartial(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`asset/partial/${t}`,options:e})}queryAssets(t,e){return this.httpClient.request({method:"POST",url:uriEncoding`asset/query`,data:t,options:e})}getCurrentUserAssets(t){return this.httpClient.request({method:"GET",url:uriEncoding`asset/user/current`,options:t})}createUserAssetLinks(t,e){return this.httpClient.request({method:"POST",url:uriEncoding`asset/user/link`,data:t,options:e})}getUserAssetLinks(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`asset/user/link`,queryParams:t,options:e})}deleteUserAssetLinks(t,e){return this.httpClient.request({method:"POST",url:uriEncoding`asset/user/link/delete`,data:t,options:e})}deleteAllUserAssetLinks(t,e,s){return this.httpClient.request({method:"DELETE",url:uriEncoding`asset/user/link/${t}/${e}`,options:s})}deleteUserAssetLink(t,e,s,r){return this.httpClient.request({method:"DELETE",url:uriEncoding`asset/user/link/${t}/${e}/${s}`,options:r})}get(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`asset/${t}`,options:e})}update(t,e,s){return this.httpClient.request({method:"PUT",url:uriEncoding`asset/${t}`,data:e,options:s})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName(t,e,s,r){return this.httpClient.request({method:"PUT",url:uriEncoding`asset/${t}/attribute/${e}`,data:s,options:r})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(t,e,s,r,n){return this.httpClient.request({method:"PUT",url:uriEncoding`asset/${t}/attribute/${e}/${s}`,data:r,options:n})}updateParent(t,e,s){return this.httpClient.request({method:"PUT",url:uriEncoding`asset/${t}/child`,queryParams:e,options:s})}}export class DashboardResourceClient{constructor(t){this.httpClient=t}create(t,e){return this.httpClient.request({method:"POST",url:uriEncoding`dashboard`,data:t,options:e})}update(t,e){return this.httpClient.request({method:"PUT",url:uriEncoding`dashboard`,data:t,options:e})}getAllRealmDashboards(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`dashboard/all/${t}`,options:e})}query(t,e){return this.httpClient.request({method:"POST",url:uriEncoding`dashboard/query`,data:t,options:e})}delete(t,e,s){return this.httpClient.request({method:"DELETE",url:uriEncoding`dashboard/${t}/${e}`,options:s})}get(t,e,s){return this.httpClient.request({method:"GET",url:uriEncoding`dashboard/${t}/${e}`,options:s})}}export class ProvisioningResourceClient{constructor(t){this.httpClient=t}createProvisioningConfig(t,e){return this.httpClient.request({method:"POST",url:uriEncoding`provisioning`,data:t,options:e})}getProvisioningConfigs(t){return this.httpClient.request({method:"GET",url:uriEncoding`provisioning`,options:t})}deleteProvisioningConfig(t,e){return this.httpClient.request({method:"DELETE",url:uriEncoding`provisioning/${t}`,options:e})}updateProvisioningConfig(t,e,s){return this.httpClient.request({method:"PUT",url:uriEncoding`provisioning/${t}`,data:e,options:s})}}export class AgentResourceClient{constructor(t){this.httpClient=t}doProtocolAssetDiscovery(t,e,s){return this.httpClient.request({method:"GET",url:uriEncoding`agent/assetDiscovery/${t}`,queryParams:e,options:s})}doProtocolAssetImport(t,e,s,r){return this.httpClient.request({method:"POST",url:uriEncoding`agent/assetImport/${t}`,queryParams:s,data:e,options:r})}doProtocolInstanceDiscovery(t,e,s){return this.httpClient.request({method:"GET",url:uriEncoding`agent/instanceDiscovery/${t}`,queryParams:e,options:s})}}export class FlowResourceClient{constructor(t){this.httpClient=t}getAllNodeDefinitions(t){return this.httpClient.request({method:"GET",url:uriEncoding`flow`,options:t})}getNodeDefinition(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`flow/${t}`,options:e})}getAllNodeDefinitionsByType(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`flow/${t}`,options:e})}}export class ConfigurationResourceClient{constructor(t){this.httpClient=t}getManagerConfig(t){return this.httpClient.request({method:"GET",url:uriEncoding`configuration/manager`,options:t})}update(t,e){return this.httpClient.request({method:"PUT",url:uriEncoding`configuration/manager`,data:t,options:e})}fileUpload(t,e,s){return this.httpClient.request({method:"POST",url:uriEncoding`configuration/manager/file`,queryParams:e,data:t,options:s})}getManagerConfigImage(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`configuration/manager/image/${t}`,options:e})}}export class MapResourceClient{constructor(t){this.httpClient=t}getSettings(t){return this.httpClient.request({method:"GET",url:uriEncoding`map`,options:t})}saveSettings(t,e){return this.httpClient.request({method:"PUT",url:uriEncoding`map`,data:t,options:e})}deleteMap(t){return this.httpClient.request({method:"DELETE",url:uriEncoding`map/deleteMap`,options:t})}getCustomMapInfo(t){return this.httpClient.request({method:"GET",url:uriEncoding`map/getCustomMapInfo`,options:t})}getSettingsJs(t){return this.httpClient.request({method:"GET",url:uriEncoding`map/js`,options:t})}getTile(t,e,s,r){return this.httpClient.request({method:"GET",url:uriEncoding`map/tile/${t}/${e}/${s}`,options:r})}uploadMap(t,e){return this.httpClient.request({method:"POST",url:uriEncoding`map/upload`,queryParams:t,options:e})}}export class SyslogResourceClient{constructor(t){this.httpClient=t}getConfig(t){return this.httpClient.request({method:"GET",url:uriEncoding`syslog/config`,options:t})}updateConfig(t,e){return this.httpClient.request({method:"PUT",url:uriEncoding`syslog/config`,data:t,options:e})}clearEvents(t){return this.httpClient.request({method:"DELETE",url:uriEncoding`syslog/event`,options:t})}getEvents(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`syslog/event`,queryParams:t,options:e})}}export class RulesResourceClient{constructor(t){this.httpClient=t}createGlobalRuleset(t,e){return this.httpClient.request({method:"POST",url:uriEncoding`rules`,data:t,options:e})}getGlobalRulesets(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`rules`,queryParams:t,options:e})}createAssetRuleset(t,e){return this.httpClient.request({method:"POST",url:uriEncoding`rules/asset`,data:t,options:e})}getAssetRulesets(t,e,s){return this.httpClient.request({method:"GET",url:uriEncoding`rules/asset/for/${t}`,queryParams:e,options:s})}deleteAssetRuleset(t,e){return this.httpClient.request({method:"DELETE",url:uriEncoding`rules/asset/${t}`,options:e})}getAssetRuleset(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`rules/asset/${t}`,options:e})}updateAssetRuleset(t,e,s){return this.httpClient.request({method:"PUT",url:uriEncoding`rules/asset/${t}`,data:e,options:s})}getAssetGeofences(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`rules/geofences/${t}`,options:e})}getAssetEngineInfo(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`rules/info/asset/${t}`,options:e})}getGlobalEngineInfo(t){return this.httpClient.request({method:"GET",url:uriEncoding`rules/info/global`,options:t})}getRealmEngineInfo(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`rules/info/realm/${t}`,options:e})}createRealmRuleset(t,e){return this.httpClient.request({method:"POST",url:uriEncoding`rules/realm`,data:t,options:e})}getRealmRulesets(t,e,s){return this.httpClient.request({method:"GET",url:uriEncoding`rules/realm/for/${t}`,queryParams:e,options:s})}deleteRealmRuleset(t,e){return this.httpClient.request({method:"DELETE",url:uriEncoding`rules/realm/${t}`,options:e})}getRealmRuleset(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`rules/realm/${t}`,options:e})}updateRealmRuleset(t,e,s){return this.httpClient.request({method:"PUT",url:uriEncoding`rules/realm/${t}`,data:e,options:s})}deleteGlobalRuleset(t,e){return this.httpClient.request({method:"DELETE",url:uriEncoding`rules/${t}`,options:e})}getGlobalRuleset(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`rules/${t}`,options:e})}updateGlobalRuleset(t,e,s){return this.httpClient.request({method:"PUT",url:uriEncoding`rules/${t}`,data:e,options:s})}}export class AssetPredictedDatapointResourceClient{constructor(t){this.httpClient=t}getPredictedDatapoints(t,e,s,r){return this.httpClient.request({method:"POST",url:uriEncoding`asset/predicted/${t}/${e}`,data:s,options:r})}writePredictedDatapoints(t,e,s,r){return this.httpClient.request({method:"PUT",url:uriEncoding`asset/predicted/${t}/${e}`,data:s,options:r})}}export class GatewayServiceResourceClient{constructor(t){this.httpClient=t}startTunnel(t,e){return this.httpClient.request({method:"POST",url:uriEncoding`gateway/tunnel`,data:t,options:e})}stopTunnel(t,e){return this.httpClient.request({method:"DELETE",url:uriEncoding`gateway/tunnel`,data:t,options:e})}getAllActiveTunnelInfos(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`gateway/tunnel/${t}`,options:e})}getGatewayActiveTunnelInfos(t,e,s){return this.httpClient.request({method:"GET",url:uriEncoding`gateway/tunnel/${t}/${e}`,options:s})}getActiveTunnelInfo(t,e,s,r,n){return this.httpClient.request({method:"GET",url:uriEncoding`gateway/tunnel/${t}/${e}/${s}/${r}`,options:n})}}export class AlarmResourceClient{constructor(t){this.httpClient=t}createAlarm(t,e,s){return this.httpClient.request({method:"POST",url:uriEncoding`alarm`,queryParams:e,data:t,options:s})}getAlarms(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`alarm`,queryParams:t,options:e})}removeAlarms(t,e){return this.httpClient.request({method:"DELETE",url:uriEncoding`alarm`,data:t,options:e})}setAssetLinks(t,e){return this.httpClient.request({method:"PUT",url:uriEncoding`alarm/assets`,data:t,options:e})}getAlarm(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`alarm/${t}`,options:e})}removeAlarm(t,e){return this.httpClient.request({method:"DELETE",url:uriEncoding`alarm/${t}`,options:e})}updateAlarm(t,e,s){return this.httpClient.request({method:"PUT",url:uriEncoding`alarm/${t}`,data:e,options:s})}getAssetLinks(t,e,s){return this.httpClient.request({method:"GET",url:uriEncoding`alarm/${t}/assets`,queryParams:e,options:s})}}export class AssetModelResourceClient{constructor(t){this.httpClient=t}getAssetDescriptors(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`model/assetDescriptors`,queryParams:t,options:e})}getAssetInfo(t,e,s){return this.httpClient.request({method:"GET",url:uriEncoding`model/assetInfo/${t}`,queryParams:e,options:s})}getAssetInfos(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`model/assetInfos`,queryParams:t,options:e})}getMetaItemDescriptors(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`model/metaItemDescriptors`,queryParams:t,options:e})}getValueDescriptors(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`model/valueDescriptors`,queryParams:t,options:e})}}export class UserResourceClient{constructor(t){this.httpClient=t}updateCurrentUserLocale(t,e){return this.httpClient.request({method:"PUT",url:uriEncoding`user/locale`,data:t,options:e})}query(t,e){return this.httpClient.request({method:"POST",url:uriEncoding`user/query`,data:t,options:e})}requestPasswordResetCurrent(t){return this.httpClient.request({method:"PUT",url:uriEncoding`user/request-password-reset`,options:t})}updatePasswordCurrent(t,e){return this.httpClient.request({method:"PUT",url:uriEncoding`user/reset-password`,data:t,options:e})}updateCurrent(t,e){return this.httpClient.request({method:"PUT",url:uriEncoding`user/update`,data:t,options:e})}getCurrent(t){return this.httpClient.request({method:"GET",url:uriEncoding`user/user`,options:t})}getCurrentUserRealmRoles(t){return this.httpClient.request({method:"GET",url:uriEncoding`user/userRealmRoles`,options:t})}getCurrentUserClientRoles(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`user/userRoles/${t}`,options:e})}disconnectUserSession(t,e,s){return this.httpClient.request({method:"GET",url:uriEncoding`user/${t}/disconnect/${e}`,options:s})}requestPasswordReset(t,e,s){return this.httpClient.request({method:"PUT",url:uriEncoding`user/${t}/request-password-reset/${e}`,options:s})}updatePassword(t,e,s,r){return this.httpClient.request({method:"PUT",url:uriEncoding`user/${t}/reset-password/${e}`,data:s,options:r})}resetSecret(t,e,s){return this.httpClient.request({method:"GET",url:uriEncoding`user/${t}/reset-secret/${e}`,options:s})}updateRoles(t,e,s){return this.httpClient.request({method:"PUT",url:uriEncoding`user/${t}/roles`,data:e,options:s})}getUserRealmRoles(t,e,s){return this.httpClient.request({method:"GET",url:uriEncoding`user/${t}/userRealmRoles/${e}`,options:s})}updateUserRealmRoles(t,e,s,r){return this.httpClient.request({method:"PUT",url:uriEncoding`user/${t}/userRealmRoles/${e}`,data:s,options:r})}getUserClientRoles(t,e,s,r){return this.httpClient.request({method:"GET",url:uriEncoding`user/${t}/userRoles/${e}/${s}`,options:r})}updateUserClientRoles(t,e,s,r,n){return this.httpClient.request({method:"PUT",url:uriEncoding`user/${t}/userRoles/${e}/${s}`,data:r,options:n})}getUserSessions(t,e,s){return this.httpClient.request({method:"GET",url:uriEncoding`user/${t}/userSessions/${e}`,options:s})}create(t,e,s){return this.httpClient.request({method:"POST",url:uriEncoding`user/${t}/users`,data:e,options:s})}update(t,e,s){return this.httpClient.request({method:"PUT",url:uriEncoding`user/${t}/users`,data:e,options:s})}delete(t,e,s){return this.httpClient.request({method:"DELETE",url:uriEncoding`user/${t}/users/${e}`,options:s})}getClientRoles(t,e,s){return this.httpClient.request({method:"GET",url:uriEncoding`user/${t}/${e}/roles`,options:s})}updateClientRoles(t,e,s,r){return this.httpClient.request({method:"PUT",url:uriEncoding`user/${t}/${e}/roles`,data:s,options:r})}get(t,e,s){return this.httpClient.request({method:"GET",url:uriEncoding`user/${t}/${e}`,options:s})}}export class ConsoleResourceClient{constructor(t){this.httpClient=t}register(t,e){return this.httpClient.request({method:"POST",url:uriEncoding`console/register`,data:t,options:e})}}function uriEncoding(t,...e){let s="";for(let r=0;r<e.length;r++)s+=t[r],s+=encodeURIComponent(e[r]);return s+t[t.length-1]}export class ApiClient{constructor(e,s=t.create()){this._gatewayClientResource=new AxiosGatewayClientResourceClient(e,s),this._appResource=new AxiosAppResourceClient(e,s),this._statusResource=new AxiosStatusResourceClient(e,s),this._assetDatapointResource=new AxiosAssetDatapointResourceClient(e,s),this._realmResource=new AxiosRealmResourceClient(e,s),this._notificationResource=new AxiosNotificationResourceClient(e,s),this._assetResource=new AxiosAssetResourceClient(e,s),this._dashboardResource=new AxiosDashboardResourceClient(e,s),this._provisioningResource=new AxiosProvisioningResourceClient(e,s),this._agentResource=new AxiosAgentResourceClient(e,s),this._flowResource=new AxiosFlowResourceClient(e,s),this._configurationResource=new AxiosConfigurationResourceClient(e,s),this._mapResource=new AxiosMapResourceClient(e,s),this._syslogResource=new AxiosSyslogResourceClient(e,s),this._rulesResource=new AxiosRulesResourceClient(e,s),this._assetPredictedDatapointResource=new AxiosAssetPredictedDatapointResourceClient(e,s),this._gatewayServiceResource=new AxiosGatewayServiceResourceClient(e,s),this._alarmResource=new AxiosAlarmResourceClient(e,s),this._assetModelResource=new AxiosAssetModelResourceClient(e,s),this._userResource=new AxiosUserResourceClient(e,s),this._consoleResource=new AxiosConsoleResourceClient(e,s),this._assetResource=new AxiosAssetResourceClient(e,s)}get GatewayClientResource(){return this._gatewayClientResource}get AppResource(){return this._appResource}get StatusResource(){return this._statusResource}get AssetDatapointResource(){return this._assetDatapointResource}get RealmResource(){return this._realmResource}get NotificationResource(){return this._notificationResource}get AssetResource(){return this._assetResource}get DashboardResource(){return this._dashboardResource}get ProvisioningResource(){return this._provisioningResource}get AgentResource(){return this._agentResource}get FlowResource(){return this._flowResource}get ConfigurationResource(){return this._configurationResource}get MapResource(){return this._mapResource}get SyslogResource(){return this._syslogResource}get RulesResource(){return this._rulesResource}get AssetPredictedDatapointResource(){return this._assetPredictedDatapointResource}get GatewayServiceResource(){return this._gatewayServiceResource}get AlarmResource(){return this._alarmResource}get AssetModelResource(){return this._assetModelResource}get UserResource(){return this._userResource}get ConsoleResource(){return this._consoleResource}}import t from"axios";class AxiosHttpClient{constructor(t){this.axios=t}request(t){let e={};e.method=t.method,e.url=t.url,e.params=t.queryParams,e.data=t.data,function(t,e){if(void 0!=e)for(let s in e)e.hasOwnProperty(s)&&(t[s]=e[s])}(e,t.options);let s=t.copyFn;return this.axios.request(e).then(t=>(s&&t.data&&(t.originalData=t.data,t.data=s(t.data)),t))}}export class AxiosGatewayClientResourceClient extends GatewayClientResourceClient{constructor(e,s=t.create()){s.defaults.baseURL=e,super(new AxiosHttpClient(s))}}export class AxiosAppResourceClient extends AppResourceClient{constructor(e,s=t.create()){s.defaults.baseURL=e,super(new AxiosHttpClient(s))}}export class AxiosStatusResourceClient extends StatusResourceClient{constructor(e,s=t.create()){s.defaults.baseURL=e,super(new AxiosHttpClient(s))}}export class AxiosAssetDatapointResourceClient extends AssetDatapointResourceClient{constructor(e,s=t.create()){s.defaults.baseURL=e,super(new AxiosHttpClient(s))}}export class AxiosRealmResourceClient extends RealmResourceClient{constructor(e,s=t.create()){s.defaults.baseURL=e,super(new AxiosHttpClient(s))}}export class AxiosNotificationResourceClient extends NotificationResourceClient{constructor(e,s=t.create()){s.defaults.baseURL=e,super(new AxiosHttpClient(s))}}export class AxiosAssetResourceClient extends AssetResourceClient{constructor(e,s=t.create()){s.defaults.baseURL=e,super(new AxiosHttpClient(s))}}export class AxiosDashboardResourceClient extends DashboardResourceClient{constructor(e,s=t.create()){s.defaults.baseURL=e,super(new AxiosHttpClient(s))}}export class AxiosProvisioningResourceClient extends ProvisioningResourceClient{constructor(e,s=t.create()){s.defaults.baseURL=e,super(new AxiosHttpClient(s))}}export class AxiosAgentResourceClient extends AgentResourceClient{constructor(e,s=t.create()){s.defaults.baseURL=e,super(new AxiosHttpClient(s))}}export class AxiosFlowResourceClient extends FlowResourceClient{constructor(e,s=t.create()){s.defaults.baseURL=e,super(new AxiosHttpClient(s))}}export class AxiosConfigurationResourceClient extends ConfigurationResourceClient{constructor(e,s=t.create()){s.defaults.baseURL=e,super(new AxiosHttpClient(s))}}export class AxiosMapResourceClient extends MapResourceClient{constructor(e,s=t.create()){s.defaults.baseURL=e,super(new AxiosHttpClient(s))}}export class AxiosSyslogResourceClient extends SyslogResourceClient{constructor(e,s=t.create()){s.defaults.baseURL=e,super(new AxiosHttpClient(s))}}export class AxiosRulesResourceClient extends RulesResourceClient{constructor(e,s=t.create()){s.defaults.baseURL=e,super(new AxiosHttpClient(s))}}export class AxiosAssetPredictedDatapointResourceClient extends AssetPredictedDatapointResourceClient{constructor(e,s=t.create()){s.defaults.baseURL=e,super(new AxiosHttpClient(s))}}export class AxiosGatewayServiceResourceClient extends GatewayServiceResourceClient{constructor(e,s=t.create()){s.defaults.baseURL=e,super(new AxiosHttpClient(s))}}export class AxiosAlarmResourceClient extends AlarmResourceClient{constructor(e,s=t.create()){s.defaults.baseURL=e,super(new AxiosHttpClient(s))}}export class AxiosAssetModelResourceClient extends AssetModelResourceClient{constructor(e,s=t.create()){s.defaults.baseURL=e,super(new AxiosHttpClient(s))}}export class AxiosUserResourceClient extends UserResourceClient{constructor(e,s=t.create()){s.defaults.baseURL=e,super(new AxiosHttpClient(s))}}export class AxiosConsoleResourceClient extends ConsoleResourceClient{constructor(e,s=t.create()){s.defaults.baseURL=e,super(new AxiosHttpClient(s))}}