@c8y/client 1018.502.1 → 1018.504.14

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.
Files changed (33) hide show
  1. package/lib/bundles/client.umd.js +329 -229
  2. package/lib/bundles/client.umd.js.map +1 -1
  3. package/lib/bundles/client.umd.min.js +1 -1
  4. package/lib/bundles/client.umd.min.js.map +1 -1
  5. package/lib/cjs/src/services.d.ts +1 -1
  6. package/lib/cjs/src/services.js +2 -1
  7. package/lib/cjs/src/services.js.map +1 -1
  8. package/lib/cjs/src/trusted-certificates/CrlService.d.ts +71 -0
  9. package/lib/cjs/src/trusted-certificates/CrlService.js +93 -0
  10. package/lib/cjs/src/trusted-certificates/CrlService.js.map +1 -0
  11. package/lib/cjs/src/trusted-certificates/ICertificateRevocation.d.ts +12 -0
  12. package/lib/cjs/src/trusted-certificates/ICertificateRevocation.js +3 -0
  13. package/lib/cjs/src/trusted-certificates/ICertificateRevocation.js.map +1 -0
  14. package/lib/cjs/src/trusted-certificates/index.d.ts +2 -0
  15. package/lib/cjs/src/trusted-certificates/index.js +2 -0
  16. package/lib/cjs/src/trusted-certificates/index.js.map +1 -1
  17. package/lib/esm2015/src/services.d.ts +1 -1
  18. package/lib/esm2015/src/services.js +1 -1
  19. package/lib/esm2015/src/services.js.map +1 -1
  20. package/lib/esm2015/src/trusted-certificates/CrlService.d.ts +71 -0
  21. package/lib/esm2015/src/trusted-certificates/CrlService.js +101 -0
  22. package/lib/esm2015/src/trusted-certificates/CrlService.js.map +1 -0
  23. package/lib/esm2015/src/trusted-certificates/ICertificateRevocation.d.ts +12 -0
  24. package/lib/esm2015/src/trusted-certificates/ICertificateRevocation.js +2 -0
  25. package/lib/esm2015/src/trusted-certificates/ICertificateRevocation.js.map +1 -0
  26. package/lib/esm2015/src/trusted-certificates/index.d.ts +2 -0
  27. package/lib/esm2015/src/trusted-certificates/index.js +2 -0
  28. package/lib/esm2015/src/trusted-certificates/index.js.map +1 -1
  29. package/lib/src/services.d.ts +1 -1
  30. package/lib/src/trusted-certificates/CrlService.d.ts +71 -0
  31. package/lib/src/trusted-certificates/ICertificateRevocation.d.ts +12 -0
  32. package/lib/src/trusted-certificates/index.d.ts +2 -0
  33. package/package.json +1 -1
@@ -4,7 +4,7 @@
4
4
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.cumulocity = {}));
5
5
  })(this, (function (exports) { 'use strict';
6
6
 
7
- var __awaiter$v = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
7
+ var __awaiter$w = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
8
8
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
9
9
  return new (P || (P = Promise))(function (resolve, reject) {
10
10
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -36,7 +36,7 @@
36
36
  * @param filter
37
37
  */
38
38
  next(filter = {}) {
39
- return __awaiter$v(this, void 0, void 0, function* () {
39
+ return __awaiter$w(this, void 0, void 0, function* () {
40
40
  return this.list(this.getFilter(filter, this.nextPage));
41
41
  });
42
42
  }
@@ -45,7 +45,7 @@
45
45
  * @param filter
46
46
  */
47
47
  prev(filter = {}) {
48
- return __awaiter$v(this, void 0, void 0, function* () {
48
+ return __awaiter$w(this, void 0, void 0, function* () {
49
49
  return this.list(this.getFilter(filter, this.prevPage));
50
50
  });
51
51
  }
@@ -56,7 +56,7 @@
56
56
  * @param filter
57
57
  */
58
58
  list(filter = {}) {
59
- return __awaiter$v(this, void 0, void 0, function* () {
59
+ return __awaiter$w(this, void 0, void 0, function* () {
60
60
  return this.service.list(filter);
61
61
  });
62
62
  }
@@ -66,7 +66,7 @@
66
66
  * @param filter
67
67
  */
68
68
  goto(page, filter = {}) {
69
- return __awaiter$v(this, void 0, void 0, function* () {
69
+ return __awaiter$w(this, void 0, void 0, function* () {
70
70
  return this.list(this.getFilter(filter, page));
71
71
  });
72
72
  }
@@ -75,7 +75,7 @@
75
75
  }
76
76
  }
77
77
 
78
- var __awaiter$u = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
78
+ var __awaiter$v = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
79
79
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
80
80
  return new (P || (P = Promise))(function (resolve, reject) {
81
81
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -102,7 +102,7 @@
102
102
  });
103
103
  }
104
104
  list(filter = {}) {
105
- return __awaiter$u(this, void 0, void 0, function* () {
105
+ return __awaiter$v(this, void 0, void 0, function* () {
106
106
  const headers = { accept: 'application/json' };
107
107
  const url = this.listUrl;
108
108
  const res = yield this.fetch(url, this.changeFetchOptions({ headers, params: filter }, url));
@@ -113,7 +113,7 @@
113
113
  });
114
114
  }
115
115
  detail(entityOrId, filter = {}) {
116
- return __awaiter$u(this, void 0, void 0, function* () {
116
+ return __awaiter$v(this, void 0, void 0, function* () {
117
117
  const headers = { accept: 'application/json' };
118
118
  const url = this.getDetailUrl(entityOrId);
119
119
  const res = yield this.fetch(url, this.changeFetchOptions({ headers, params: Object.assign({}, filter) }, url));
@@ -122,7 +122,7 @@
122
122
  });
123
123
  }
124
124
  create(entity) {
125
- return __awaiter$u(this, void 0, void 0, function* () {
125
+ return __awaiter$v(this, void 0, void 0, function* () {
126
126
  const url = this.listUrl;
127
127
  const method = 'POST';
128
128
  const body = JSON.stringify(this.onBeforeCreate(entity));
@@ -133,7 +133,7 @@
133
133
  });
134
134
  }
135
135
  update(entity) {
136
- return __awaiter$u(this, void 0, void 0, function* () {
136
+ return __awaiter$v(this, void 0, void 0, function* () {
137
137
  const url = this.getDetailUrl(entity);
138
138
  const method = 'PUT';
139
139
  const body = JSON.stringify(this.onBeforeUpdate(entity));
@@ -144,7 +144,7 @@
144
144
  });
145
145
  }
146
146
  delete(entityOrId, params) {
147
- return __awaiter$u(this, void 0, void 0, function* () {
147
+ return __awaiter$v(this, void 0, void 0, function* () {
148
148
  const method = 'DELETE';
149
149
  const url = this.getDetailUrl(entityOrId);
150
150
  const res = yield this.fetch(url, this.changeFetchOptions({ method, params }, url));
@@ -180,7 +180,7 @@
180
180
  return `${this.listUrl}/${id}`;
181
181
  }
182
182
  fetch(url, init) {
183
- return __awaiter$u(this, void 0, void 0, function* () {
183
+ return __awaiter$v(this, void 0, void 0, function* () {
184
184
  const fullUrl = this.getUrl(url);
185
185
  const res = yield this.client.fetch(fullUrl, init);
186
186
  return yield this.handleErrorStatusCodes(res);
@@ -196,7 +196,7 @@
196
196
  * @throws If an error is detected, it throws `{ res, data }`, where `data` contains error details from server.
197
197
  */
198
198
  handleErrorStatusCodes(response) {
199
- return __awaiter$u(this, void 0, void 0, function* () {
199
+ return __awaiter$v(this, void 0, void 0, function* () {
200
200
  if (response.status >= 400) {
201
201
  let data = null;
202
202
  try {
@@ -814,7 +814,7 @@
814
814
  browserPonyfill.Request;
815
815
  browserPonyfill.Response;
816
816
 
817
- var __awaiter$t = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
817
+ var __awaiter$u = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
818
818
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
819
819
  return new (P || (P = Promise))(function (resolve, reject) {
820
820
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -842,7 +842,7 @@
842
842
  auths.set(this, auth);
843
843
  }
844
844
  fetch(url, init) {
845
- return __awaiter$t(this, void 0, void 0, function* () {
845
+ return __awaiter$u(this, void 0, void 0, function* () {
846
846
  let fetchFn = fetch;
847
847
  try {
848
848
  fetchFn = window.fetch || fetchFn;
@@ -1056,7 +1056,7 @@
1056
1056
  }
1057
1057
  }
1058
1058
 
1059
- var __awaiter$s = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
1059
+ var __awaiter$t = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
1060
1060
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
1061
1061
  return new (P || (P = Promise))(function (resolve, reject) {
1062
1062
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -1091,7 +1091,7 @@
1091
1091
  return config;
1092
1092
  }
1093
1093
  logout() {
1094
- return __awaiter$s(this, void 0, void 0, function* () {
1094
+ return __awaiter$t(this, void 0, void 0, function* () {
1095
1095
  if (this.user) {
1096
1096
  delete this.user;
1097
1097
  }
@@ -4953,7 +4953,7 @@
4953
4953
  }
4954
4954
  }
4955
4955
 
4956
- var __awaiter$r = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
4956
+ var __awaiter$s = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
4957
4957
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4958
4958
  return new (P || (P = Promise))(function (resolve, reject) {
4959
4959
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -4994,7 +4994,7 @@
4994
4994
  const _super = Object.create(null, {
4995
4995
  detail: { get: () => super.detail }
4996
4996
  });
4997
- return __awaiter$r(this, void 0, void 0, function* () {
4997
+ return __awaiter$s(this, void 0, void 0, function* () {
4998
4998
  return _super.detail.call(this, entityOrId);
4999
4999
  });
5000
5000
  }
@@ -5024,7 +5024,7 @@
5024
5024
  const _super = Object.create(null, {
5025
5025
  create: { get: () => super.create }
5026
5026
  });
5027
- return __awaiter$r(this, void 0, void 0, function* () {
5027
+ return __awaiter$s(this, void 0, void 0, function* () {
5028
5028
  return _super.create.call(this, entity);
5029
5029
  });
5030
5030
  }
@@ -5052,7 +5052,7 @@
5052
5052
  const _super = Object.create(null, {
5053
5053
  update: { get: () => super.update }
5054
5054
  });
5055
- return __awaiter$r(this, void 0, void 0, function* () {
5055
+ return __awaiter$s(this, void 0, void 0, function* () {
5056
5056
  return _super.update.call(this, entity);
5057
5057
  });
5058
5058
  }
@@ -5080,7 +5080,7 @@
5080
5080
  const _super = Object.create(null, {
5081
5081
  list: { get: () => super.list }
5082
5082
  });
5083
- return __awaiter$r(this, void 0, void 0, function* () {
5083
+ return __awaiter$s(this, void 0, void 0, function* () {
5084
5084
  return _super.list.call(this, filter);
5085
5085
  });
5086
5086
  }
@@ -5106,7 +5106,7 @@
5106
5106
  const _super = Object.create(null, {
5107
5107
  delete: { get: () => super.delete }
5108
5108
  });
5109
- return __awaiter$r(this, void 0, void 0, function* () {
5109
+ return __awaiter$s(this, void 0, void 0, function* () {
5110
5110
  return _super.delete.call(this, entityOrId);
5111
5111
  });
5112
5112
  }
@@ -5115,7 +5115,7 @@
5115
5115
  /* eslint-env browser */
5116
5116
  var browser = typeof self == 'object' ? self.FormData : window.FormData;
5117
5117
 
5118
- var __awaiter$q = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
5118
+ var __awaiter$r = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
5119
5119
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
5120
5120
  return new (P || (P = Promise))(function (resolve, reject) {
5121
5121
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -5149,7 +5149,7 @@
5149
5149
  * ```
5150
5150
  */
5151
5151
  upload(file, entityOrId) {
5152
- return __awaiter$q(this, void 0, void 0, function* () {
5152
+ return __awaiter$r(this, void 0, void 0, function* () {
5153
5153
  const method = 'POST';
5154
5154
  const url = this.getDetailUrl(entityOrId);
5155
5155
  const body = new browser();
@@ -5178,7 +5178,7 @@
5178
5178
  * })();
5179
5179
  */
5180
5180
  download(entityOrId) {
5181
- return __awaiter$q(this, void 0, void 0, function* () {
5181
+ return __awaiter$r(this, void 0, void 0, function* () {
5182
5182
  const url = this.getDetailUrl(entityOrId);
5183
5183
  return yield this.fetch(url);
5184
5184
  });
@@ -5203,7 +5203,7 @@
5203
5203
  const _super = Object.create(null, {
5204
5204
  delete: { get: () => super.delete }
5205
5205
  });
5206
- return __awaiter$q(this, void 0, void 0, function* () {
5206
+ return __awaiter$r(this, void 0, void 0, function* () {
5207
5207
  return _super.delete.call(this, entityOrId);
5208
5208
  });
5209
5209
  }
@@ -5219,7 +5219,7 @@
5219
5219
  }
5220
5220
  }
5221
5221
 
5222
- var __awaiter$p = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
5222
+ var __awaiter$q = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
5223
5223
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
5224
5224
  return new (P || (P = Promise))(function (resolve, reject) {
5225
5225
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -5243,7 +5243,7 @@
5243
5243
  * but these two properties will be removed from `managedObject` before saving.
5244
5244
  */
5245
5245
  create(file, managedObject = {}) {
5246
- return __awaiter$p(this, void 0, void 0, function* () {
5246
+ return __awaiter$q(this, void 0, void 0, function* () {
5247
5247
  const method = 'POST';
5248
5248
  const url = this.listUrl;
5249
5249
  const body = new browser();
@@ -5284,7 +5284,7 @@
5284
5284
  const _super = Object.create(null, {
5285
5285
  list: { get: () => super.list }
5286
5286
  });
5287
- return __awaiter$p(this, void 0, void 0, function* () {
5287
+ return __awaiter$q(this, void 0, void 0, function* () {
5288
5288
  return _super.list.call(this, filter);
5289
5289
  });
5290
5290
  }
@@ -5292,12 +5292,12 @@
5292
5292
  const _super = Object.create(null, {
5293
5293
  delete: { get: () => super.delete }
5294
5294
  });
5295
- return __awaiter$p(this, void 0, void 0, function* () {
5295
+ return __awaiter$q(this, void 0, void 0, function* () {
5296
5296
  return _super.delete.call(this, managedObjectOrId);
5297
5297
  });
5298
5298
  }
5299
5299
  download(managedObjectOrId, init) {
5300
- return __awaiter$p(this, void 0, void 0, function* () {
5300
+ return __awaiter$q(this, void 0, void 0, function* () {
5301
5301
  const url = this.getDetailUrl(managedObjectOrId);
5302
5302
  return yield this.fetch(url, init);
5303
5303
  });
@@ -5394,7 +5394,7 @@
5394
5394
  }
5395
5395
  }
5396
5396
 
5397
- var __awaiter$o = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
5397
+ var __awaiter$p = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
5398
5398
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
5399
5399
  return new (P || (P = Promise))(function (resolve, reject) {
5400
5400
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -5450,7 +5450,7 @@
5450
5450
  const _super = Object.create(null, {
5451
5451
  detail: { get: () => super.detail }
5452
5452
  });
5453
- return __awaiter$o(this, void 0, void 0, function* () {
5453
+ return __awaiter$p(this, void 0, void 0, function* () {
5454
5454
  return _super.detail.call(this, managedObjectOrId, filter);
5455
5455
  });
5456
5456
  }
@@ -5477,7 +5477,7 @@
5477
5477
  const _super = Object.create(null, {
5478
5478
  create: { get: () => super.create }
5479
5479
  });
5480
- return __awaiter$o(this, void 0, void 0, function* () {
5480
+ return __awaiter$p(this, void 0, void 0, function* () {
5481
5481
  return _super.create.call(this, managedObject);
5482
5482
  });
5483
5483
  }
@@ -5505,7 +5505,7 @@
5505
5505
  const _super = Object.create(null, {
5506
5506
  update: { get: () => super.update }
5507
5507
  });
5508
- return __awaiter$o(this, void 0, void 0, function* () {
5508
+ return __awaiter$p(this, void 0, void 0, function* () {
5509
5509
  return _super.update.call(this, managedObject);
5510
5510
  });
5511
5511
  }
@@ -5533,7 +5533,7 @@
5533
5533
  const _super = Object.create(null, {
5534
5534
  list: { get: () => super.list }
5535
5535
  });
5536
- return __awaiter$o(this, void 0, void 0, function* () {
5536
+ return __awaiter$p(this, void 0, void 0, function* () {
5537
5537
  return _super.list.call(this, filter);
5538
5538
  });
5539
5539
  }
@@ -5565,7 +5565,7 @@
5565
5565
  const _super = Object.create(null, {
5566
5566
  list: { get: () => super.list }
5567
5567
  });
5568
- return __awaiter$o(this, void 0, void 0, function* () {
5568
+ return __awaiter$p(this, void 0, void 0, function* () {
5569
5569
  filter[this.inventoriesQueryParamName] = this.queriesUtil.buildQuery(query);
5570
5570
  return _super.list.call(this, filter);
5571
5571
  });
@@ -5598,7 +5598,7 @@
5598
5598
  const _super = Object.create(null, {
5599
5599
  list: { get: () => super.list }
5600
5600
  });
5601
- return __awaiter$o(this, void 0, void 0, function* () {
5601
+ return __awaiter$p(this, void 0, void 0, function* () {
5602
5602
  filter[this.devicesQueryParamName] = this.queriesUtil.buildQuery(query);
5603
5603
  return _super.list.call(this, filter);
5604
5604
  });
@@ -5628,7 +5628,7 @@
5628
5628
  const _super = Object.create(null, {
5629
5629
  delete: { get: () => super.delete }
5630
5630
  });
5631
- return __awaiter$o(this, void 0, void 0, function* () {
5631
+ return __awaiter$p(this, void 0, void 0, function* () {
5632
5632
  return _super.delete.call(this, managedObjectOrId, params);
5633
5633
  });
5634
5634
  }
@@ -5655,7 +5655,7 @@
5655
5655
  * ```
5656
5656
  */
5657
5657
  childAdditionsList(parentReference, filter = {}) {
5658
- return __awaiter$o(this, void 0, void 0, function* () {
5658
+ return __awaiter$p(this, void 0, void 0, function* () {
5659
5659
  return this.listChildren(exports.ChildType.ADDITIONS, parentReference, filter);
5660
5660
  });
5661
5661
  }
@@ -5686,7 +5686,7 @@
5686
5686
  * ```
5687
5687
  */
5688
5688
  childAdditionsCreate(managedObject, parentReference) {
5689
- return __awaiter$o(this, void 0, void 0, function* () {
5689
+ return __awaiter$p(this, void 0, void 0, function* () {
5690
5690
  return this.createChild(exports.ChildType.ADDITIONS, managedObject, parentReference);
5691
5691
  });
5692
5692
  }
@@ -5710,7 +5710,7 @@
5710
5710
  * ```
5711
5711
  */
5712
5712
  childAdditionsAdd(childReference, parentReference) {
5713
- return __awaiter$o(this, void 0, void 0, function* () {
5713
+ return __awaiter$p(this, void 0, void 0, function* () {
5714
5714
  return this.addChild(exports.ChildType.ADDITIONS, childReference, parentReference);
5715
5715
  });
5716
5716
  }
@@ -5734,7 +5734,7 @@
5734
5734
  * ```
5735
5735
  */
5736
5736
  childAdditionsRemove(childReference, parentReference) {
5737
- return __awaiter$o(this, void 0, void 0, function* () {
5737
+ return __awaiter$p(this, void 0, void 0, function* () {
5738
5738
  return this.removeChild(exports.ChildType.ADDITIONS, childReference, parentReference);
5739
5739
  });
5740
5740
  }
@@ -5762,7 +5762,7 @@
5762
5762
  * ```
5763
5763
  */
5764
5764
  childAssetsList(parentReference, filter = {}) {
5765
- return __awaiter$o(this, void 0, void 0, function* () {
5765
+ return __awaiter$p(this, void 0, void 0, function* () {
5766
5766
  return this.listChildren(exports.ChildType.ASSETS, parentReference, filter);
5767
5767
  });
5768
5768
  }
@@ -5793,7 +5793,7 @@
5793
5793
  * ```
5794
5794
  */
5795
5795
  childAssetsCreate(managedObject, parentReference) {
5796
- return __awaiter$o(this, void 0, void 0, function* () {
5796
+ return __awaiter$p(this, void 0, void 0, function* () {
5797
5797
  return this.createChild(exports.ChildType.ASSETS, managedObject, parentReference);
5798
5798
  });
5799
5799
  }
@@ -5817,7 +5817,7 @@
5817
5817
  * ```
5818
5818
  */
5819
5819
  childAssetsAdd(childReference, parentReference) {
5820
- return __awaiter$o(this, void 0, void 0, function* () {
5820
+ return __awaiter$p(this, void 0, void 0, function* () {
5821
5821
  return this.addChild(exports.ChildType.ASSETS, childReference, parentReference);
5822
5822
  });
5823
5823
  }
@@ -5841,7 +5841,7 @@
5841
5841
  * ```
5842
5842
  */
5843
5843
  childAssetsBulkAdd(childReference, parentReference) {
5844
- return __awaiter$o(this, void 0, void 0, function* () {
5844
+ return __awaiter$p(this, void 0, void 0, function* () {
5845
5845
  return this.addChildBulk(exports.ChildType.ASSETS, childReference, parentReference);
5846
5846
  });
5847
5847
  }
@@ -5865,7 +5865,7 @@
5865
5865
  * ```
5866
5866
  */
5867
5867
  childAssetsRemove(childReference, parentReference) {
5868
- return __awaiter$o(this, void 0, void 0, function* () {
5868
+ return __awaiter$p(this, void 0, void 0, function* () {
5869
5869
  return this.removeChild(exports.ChildType.ASSETS, childReference, parentReference);
5870
5870
  });
5871
5871
  }
@@ -5893,7 +5893,7 @@
5893
5893
  * ```
5894
5894
  */
5895
5895
  childDevicesList(parentReference, filter = {}) {
5896
- return __awaiter$o(this, void 0, void 0, function* () {
5896
+ return __awaiter$p(this, void 0, void 0, function* () {
5897
5897
  return this.listChildren(exports.ChildType.DEVICES, parentReference, filter);
5898
5898
  });
5899
5899
  }
@@ -5924,7 +5924,7 @@
5924
5924
  * ```
5925
5925
  */
5926
5926
  childDevicesCreate(managedObject, parentReference) {
5927
- return __awaiter$o(this, void 0, void 0, function* () {
5927
+ return __awaiter$p(this, void 0, void 0, function* () {
5928
5928
  return this.createChild(exports.ChildType.DEVICES, managedObject, parentReference);
5929
5929
  });
5930
5930
  }
@@ -5948,7 +5948,7 @@
5948
5948
  * ```
5949
5949
  */
5950
5950
  childDevicesAdd(childReference, parentReference) {
5951
- return __awaiter$o(this, void 0, void 0, function* () {
5951
+ return __awaiter$p(this, void 0, void 0, function* () {
5952
5952
  return this.addChild(exports.ChildType.DEVICES, childReference, parentReference);
5953
5953
  });
5954
5954
  }
@@ -5972,7 +5972,7 @@
5972
5972
  * ```
5973
5973
  */
5974
5974
  childDevicesRemove(childReference, parentReference) {
5975
- return __awaiter$o(this, void 0, void 0, function* () {
5975
+ return __awaiter$p(this, void 0, void 0, function* () {
5976
5976
  return this.removeChild(exports.ChildType.DEVICES, childReference, parentReference);
5977
5977
  });
5978
5978
  }
@@ -5985,7 +5985,7 @@
5985
5985
  * @param {IdReference} managedObjectOrId
5986
5986
  */
5987
5987
  getSupportedMeasurements(managedObjectOrId) {
5988
- return __awaiter$o(this, void 0, void 0, function* () {
5988
+ return __awaiter$p(this, void 0, void 0, function* () {
5989
5989
  return this.getSupportedMeasurementDetails(managedObjectOrId, 'supportedMeasurements');
5990
5990
  });
5991
5991
  }
@@ -5998,7 +5998,7 @@
5998
5998
  * @param {IdReference} managedObjectOrId
5999
5999
  */
6000
6000
  getSupportedSeries(managedObjectOrId) {
6001
- return __awaiter$o(this, void 0, void 0, function* () {
6001
+ return __awaiter$p(this, void 0, void 0, function* () {
6002
6002
  return this.getSupportedMeasurementDetails(managedObjectOrId, 'supportedSeries');
6003
6003
  });
6004
6004
  }
@@ -6010,7 +6010,7 @@
6010
6010
  * @param {IdReference} managedObjectOrId
6011
6011
  */
6012
6012
  getMeasurementsAndSeries(managedObjectOrId) {
6013
- return __awaiter$o(this, void 0, void 0, function* () {
6013
+ return __awaiter$p(this, void 0, void 0, function* () {
6014
6014
  const [supportedMeasurements, supportedSeries] = yield Promise.all([
6015
6015
  this.getSupportedMeasurements(managedObjectOrId),
6016
6016
  this.getSupportedSeries(managedObjectOrId)
@@ -6038,12 +6038,12 @@
6038
6038
  * @param {object} filter
6039
6039
  */
6040
6040
  assetKPIsList(parentReference, filter = {}) {
6041
- return __awaiter$o(this, void 0, void 0, function* () {
6041
+ return __awaiter$p(this, void 0, void 0, function* () {
6042
6042
  return this.listKPIs(parentReference, filter);
6043
6043
  });
6044
6044
  }
6045
6045
  listKPIs(parentReference, filter = {}) {
6046
- return __awaiter$o(this, void 0, void 0, function* () {
6046
+ return __awaiter$p(this, void 0, void 0, function* () {
6047
6047
  const headers = { accept: 'application/json' };
6048
6048
  const url = this.getChildrenUrl('kpis', parentReference);
6049
6049
  const res = yield this.fetch(url, this.changeFetchOptions({ headers, params: filter }, url));
@@ -6070,7 +6070,7 @@
6070
6070
  return `${this.getChildrenUrl(type, parentReference)}/${childId}`;
6071
6071
  }
6072
6072
  listChildren(type, parentReference, filter = {}) {
6073
- return __awaiter$o(this, void 0, void 0, function* () {
6073
+ return __awaiter$p(this, void 0, void 0, function* () {
6074
6074
  const headers = { 'content-type': 'application/json' };
6075
6075
  const url = this.getChildrenUrl(type, parentReference);
6076
6076
  const res = yield this.fetch(url, { headers, params: filter });
@@ -6082,7 +6082,7 @@
6082
6082
  });
6083
6083
  }
6084
6084
  createChild(type, managedObject, parentReference) {
6085
- return __awaiter$o(this, void 0, void 0, function* () {
6085
+ return __awaiter$p(this, void 0, void 0, function* () {
6086
6086
  const url = this.getChildrenUrl(type, parentReference);
6087
6087
  const method = 'POST';
6088
6088
  const body = JSON.stringify(this.onBeforeCreate(managedObject));
@@ -6093,7 +6093,7 @@
6093
6093
  });
6094
6094
  }
6095
6095
  addChild(type, childReference, parentReference) {
6096
- return __awaiter$o(this, void 0, void 0, function* () {
6096
+ return __awaiter$p(this, void 0, void 0, function* () {
6097
6097
  const url = this.getChildrenUrl(type, parentReference);
6098
6098
  const method = 'POST';
6099
6099
  const childId = this.getIdString(childReference);
@@ -6109,7 +6109,7 @@
6109
6109
  });
6110
6110
  }
6111
6111
  addChildBulk(type, childReferenceArray, parentReference) {
6112
- return __awaiter$o(this, void 0, void 0, function* () {
6112
+ return __awaiter$p(this, void 0, void 0, function* () {
6113
6113
  const url = this.getChildrenUrl(type, parentReference);
6114
6114
  const method = 'POST';
6115
6115
  const references = childReferenceArray.map(childId => ({
@@ -6130,7 +6130,7 @@
6130
6130
  });
6131
6131
  }
6132
6132
  removeChild(type, childReference, parentReference) {
6133
- return __awaiter$o(this, void 0, void 0, function* () {
6133
+ return __awaiter$p(this, void 0, void 0, function* () {
6134
6134
  const childId = this.getIdString(childReference);
6135
6135
  const url = `${this.getChildrenUrl(type, parentReference)}/${childId}`;
6136
6136
  const method = 'DELETE';
@@ -6141,7 +6141,7 @@
6141
6141
  });
6142
6142
  }
6143
6143
  getSupportedMeasurementDetails(managedObjectOrId, type = 'supportedSeries') {
6144
- return __awaiter$o(this, void 0, void 0, function* () {
6144
+ return __awaiter$p(this, void 0, void 0, function* () {
6145
6145
  const url = `${this.getDetailUrl(managedObjectOrId)}/${type}`;
6146
6146
  this.getIdString(managedObjectOrId);
6147
6147
  const headers = { accept: 'application/json' };
@@ -6152,7 +6152,7 @@
6152
6152
  }
6153
6153
  }
6154
6154
 
6155
- var __awaiter$n = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
6155
+ var __awaiter$o = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
6156
6156
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
6157
6157
  return new (P || (P = Promise))(function (resolve, reject) {
6158
6158
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -6196,7 +6196,7 @@
6196
6196
  const _super = Object.create(null, {
6197
6197
  detail: { get: () => super.detail }
6198
6198
  });
6199
- return __awaiter$n(this, void 0, void 0, function* () {
6199
+ return __awaiter$o(this, void 0, void 0, function* () {
6200
6200
  return _super.detail.call(this, entityOrId);
6201
6201
  });
6202
6202
  }
@@ -6224,7 +6224,7 @@
6224
6224
  const _super = Object.create(null, {
6225
6225
  create: { get: () => super.create }
6226
6226
  });
6227
- return __awaiter$n(this, void 0, void 0, function* () {
6227
+ return __awaiter$o(this, void 0, void 0, function* () {
6228
6228
  return _super.create.call(this, this.onBeforeCreate(entity));
6229
6229
  });
6230
6230
  }
@@ -6252,7 +6252,7 @@
6252
6252
  const _super = Object.create(null, {
6253
6253
  list: { get: () => super.list }
6254
6254
  });
6255
- return __awaiter$n(this, void 0, void 0, function* () {
6255
+ return __awaiter$o(this, void 0, void 0, function* () {
6256
6256
  return _super.list.call(this, filter);
6257
6257
  });
6258
6258
  }
@@ -6280,7 +6280,7 @@
6280
6280
  const _super = Object.create(null, {
6281
6281
  delete: { get: () => super.delete }
6282
6282
  });
6283
- return __awaiter$n(this, void 0, void 0, function* () {
6283
+ return __awaiter$o(this, void 0, void 0, function* () {
6284
6284
  return _super.delete.call(this, entityOrId);
6285
6285
  });
6286
6286
  }
@@ -6306,7 +6306,7 @@
6306
6306
  * ```
6307
6307
  */
6308
6308
  listSeries(params) {
6309
- return __awaiter$n(this, void 0, void 0, function* () {
6309
+ return __awaiter$o(this, void 0, void 0, function* () {
6310
6310
  const url = `${this.baseUrl}/${this.listUrl}/series`;
6311
6311
  const res = yield this.client.fetch(url, { params });
6312
6312
  const data = yield res.json();
@@ -6340,7 +6340,7 @@
6340
6340
  aggregationType["DAILY"] = "DAILY";
6341
6341
  })(exports.aggregationType || (exports.aggregationType = {}));
6342
6342
 
6343
- var __awaiter$m = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
6343
+ var __awaiter$n = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
6344
6344
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
6345
6345
  return new (P || (P = Promise))(function (resolve, reject) {
6346
6346
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -6381,7 +6381,7 @@
6381
6381
  const _super = Object.create(null, {
6382
6382
  detail: { get: () => super.detail }
6383
6383
  });
6384
- return __awaiter$m(this, void 0, void 0, function* () {
6384
+ return __awaiter$n(this, void 0, void 0, function* () {
6385
6385
  return _super.detail.call(this, entityOrId);
6386
6386
  });
6387
6387
  }
@@ -6412,7 +6412,7 @@
6412
6412
  const _super = Object.create(null, {
6413
6413
  create: { get: () => super.create }
6414
6414
  });
6415
- return __awaiter$m(this, void 0, void 0, function* () {
6415
+ return __awaiter$n(this, void 0, void 0, function* () {
6416
6416
  return _super.create.call(this, entity);
6417
6417
  });
6418
6418
  }
@@ -6441,7 +6441,7 @@
6441
6441
  const _super = Object.create(null, {
6442
6442
  update: { get: () => super.update }
6443
6443
  });
6444
- return __awaiter$m(this, void 0, void 0, function* () {
6444
+ return __awaiter$n(this, void 0, void 0, function* () {
6445
6445
  return _super.update.call(this, entity);
6446
6446
  });
6447
6447
  }
@@ -6470,7 +6470,7 @@
6470
6470
  const _super = Object.create(null, {
6471
6471
  list: { get: () => super.list }
6472
6472
  });
6473
- return __awaiter$m(this, void 0, void 0, function* () {
6473
+ return __awaiter$n(this, void 0, void 0, function* () {
6474
6474
  return _super.list.call(this, filter);
6475
6475
  });
6476
6476
  }
@@ -6486,7 +6486,7 @@
6486
6486
  AlarmStatus[AlarmStatus["ACTIVE"] = gettext('ACTIVE')] = "ACTIVE";
6487
6487
  })(exports.AlarmStatus || (exports.AlarmStatus = {}));
6488
6488
 
6489
- var __awaiter$l = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
6489
+ var __awaiter$m = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
6490
6490
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
6491
6491
  return new (P || (P = Promise))(function (resolve, reject) {
6492
6492
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -6526,7 +6526,7 @@
6526
6526
  const _super = Object.create(null, {
6527
6527
  detail: { get: () => super.detail }
6528
6528
  });
6529
- return __awaiter$l(this, void 0, void 0, function* () {
6529
+ return __awaiter$m(this, void 0, void 0, function* () {
6530
6530
  return _super.detail.call(this, entityOrId);
6531
6531
  });
6532
6532
  }
@@ -6560,7 +6560,7 @@
6560
6560
  const _super = Object.create(null, {
6561
6561
  create: { get: () => super.create }
6562
6562
  });
6563
- return __awaiter$l(this, void 0, void 0, function* () {
6563
+ return __awaiter$m(this, void 0, void 0, function* () {
6564
6564
  return _super.create.call(this, entity);
6565
6565
  });
6566
6566
  }
@@ -6595,7 +6595,7 @@
6595
6595
  const _super = Object.create(null, {
6596
6596
  update: { get: () => super.update }
6597
6597
  });
6598
- return __awaiter$l(this, void 0, void 0, function* () {
6598
+ return __awaiter$m(this, void 0, void 0, function* () {
6599
6599
  return _super.update.call(this, entity);
6600
6600
  });
6601
6601
  }
@@ -6623,13 +6623,13 @@
6623
6623
  const _super = Object.create(null, {
6624
6624
  list: { get: () => super.list }
6625
6625
  });
6626
- return __awaiter$l(this, void 0, void 0, function* () {
6626
+ return __awaiter$m(this, void 0, void 0, function* () {
6627
6627
  return _super.list.call(this, filter);
6628
6628
  });
6629
6629
  }
6630
6630
  }
6631
6631
 
6632
- var __awaiter$k = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
6632
+ var __awaiter$l = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
6633
6633
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
6634
6634
  return new (P || (P = Promise))(function (resolve, reject) {
6635
6635
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -6669,7 +6669,7 @@
6669
6669
  const _super = Object.create(null, {
6670
6670
  detail: { get: () => super.detail }
6671
6671
  });
6672
- return __awaiter$k(this, void 0, void 0, function* () {
6672
+ return __awaiter$l(this, void 0, void 0, function* () {
6673
6673
  return _super.detail.call(this, operationOrId);
6674
6674
  });
6675
6675
  }
@@ -6704,7 +6704,7 @@
6704
6704
  const _super = Object.create(null, {
6705
6705
  create: { get: () => super.create }
6706
6706
  });
6707
- return __awaiter$k(this, void 0, void 0, function* () {
6707
+ return __awaiter$l(this, void 0, void 0, function* () {
6708
6708
  return _super.create.call(this, operation);
6709
6709
  });
6710
6710
  }
@@ -6739,7 +6739,7 @@
6739
6739
  const _super = Object.create(null, {
6740
6740
  update: { get: () => super.update }
6741
6741
  });
6742
- return __awaiter$k(this, void 0, void 0, function* () {
6742
+ return __awaiter$l(this, void 0, void 0, function* () {
6743
6743
  return _super.update.call(this, entity);
6744
6744
  });
6745
6745
  }
@@ -6767,7 +6767,7 @@
6767
6767
  const _super = Object.create(null, {
6768
6768
  list: { get: () => super.list }
6769
6769
  });
6770
- return __awaiter$k(this, void 0, void 0, function* () {
6770
+ return __awaiter$l(this, void 0, void 0, function* () {
6771
6771
  return _super.list.call(this, filter);
6772
6772
  });
6773
6773
  }
@@ -6792,7 +6792,7 @@
6792
6792
  const _super = Object.create(null, {
6793
6793
  delete: { get: () => super.delete }
6794
6794
  });
6795
- return __awaiter$k(this, void 0, void 0, function* () {
6795
+ return __awaiter$l(this, void 0, void 0, function* () {
6796
6796
  return _super.delete.call(this, operationOrId);
6797
6797
  });
6798
6798
  }
@@ -6835,7 +6835,7 @@
6835
6835
  OperationStatus[OperationStatus["FAILED"] = gettext('FAILED')] = "FAILED";
6836
6836
  })(exports.OperationStatus || (exports.OperationStatus = {}));
6837
6837
 
6838
- var __awaiter$j = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
6838
+ var __awaiter$k = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
6839
6839
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
6840
6840
  return new (P || (P = Promise))(function (resolve, reject) {
6841
6841
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -6885,7 +6885,7 @@
6885
6885
  const _super = Object.create(null, {
6886
6886
  detail: { get: () => super.detail }
6887
6887
  });
6888
- return __awaiter$j(this, void 0, void 0, function* () {
6888
+ return __awaiter$k(this, void 0, void 0, function* () {
6889
6889
  return _super.detail.call(this, entityOrId);
6890
6890
  });
6891
6891
  }
@@ -6920,7 +6920,7 @@
6920
6920
  const _super = Object.create(null, {
6921
6921
  create: { get: () => super.create }
6922
6922
  });
6923
- return __awaiter$j(this, void 0, void 0, function* () {
6923
+ return __awaiter$k(this, void 0, void 0, function* () {
6924
6924
  return _super.create.call(this, entity);
6925
6925
  });
6926
6926
  }
@@ -6952,7 +6952,7 @@
6952
6952
  const _super = Object.create(null, {
6953
6953
  update: { get: () => super.update }
6954
6954
  });
6955
- return __awaiter$j(this, void 0, void 0, function* () {
6955
+ return __awaiter$k(this, void 0, void 0, function* () {
6956
6956
  return _super.update.call(this, entity);
6957
6957
  });
6958
6958
  }
@@ -6983,7 +6983,7 @@
6983
6983
  const _super = Object.create(null, {
6984
6984
  list: { get: () => super.list }
6985
6985
  });
6986
- return __awaiter$j(this, void 0, void 0, function* () {
6986
+ return __awaiter$k(this, void 0, void 0, function* () {
6987
6987
  return _super.list.call(this, filter);
6988
6988
  });
6989
6989
  }
@@ -7010,12 +7010,12 @@
7010
7010
  const _super = Object.create(null, {
7011
7011
  delete: { get: () => super.delete }
7012
7012
  });
7013
- return __awaiter$j(this, void 0, void 0, function* () {
7013
+ return __awaiter$k(this, void 0, void 0, function* () {
7014
7014
  return _super.delete.call(this, entityOrId);
7015
7015
  });
7016
7016
  }
7017
7017
  current() {
7018
- return __awaiter$j(this, void 0, void 0, function* () {
7018
+ return __awaiter$k(this, void 0, void 0, function* () {
7019
7019
  const headers = { 'content-type': 'application/json' };
7020
7020
  const res = yield this.fetch(this.currentTenantUrl, { headers });
7021
7021
  const data = yield res.json();
@@ -7035,7 +7035,7 @@
7035
7035
  * ```
7036
7036
  */
7037
7037
  enableSupportUser() {
7038
- return __awaiter$j(this, void 0, void 0, function* () {
7038
+ return __awaiter$k(this, void 0, void 0, function* () {
7039
7039
  const url = 'support-user/enable';
7040
7040
  const res = yield this.fetch(url, this.fetchOptions);
7041
7041
  return { res, data: null };
@@ -7054,14 +7054,14 @@
7054
7054
  * ```
7055
7055
  */
7056
7056
  disableSupportUser() {
7057
- return __awaiter$j(this, void 0, void 0, function* () {
7057
+ return __awaiter$k(this, void 0, void 0, function* () {
7058
7058
  const url = 'support-user/disable';
7059
7059
  const res = yield this.fetch(url, this.fetchOptions);
7060
7060
  return { res, data: null };
7061
7061
  });
7062
7062
  }
7063
7063
  currentTenantType() {
7064
- return __awaiter$j(this, void 0, void 0, function* () {
7064
+ return __awaiter$k(this, void 0, void 0, function* () {
7065
7065
  const tenantData = yield this.current();
7066
7066
  if (tenantData.data.customProperties &&
7067
7067
  tenantData.data.customProperties.tenantType === 'TRIAL') {
@@ -7089,7 +7089,7 @@
7089
7089
  * ```
7090
7090
  */
7091
7091
  getTfaSettings(tenant) {
7092
- return __awaiter$j(this, void 0, void 0, function* () {
7092
+ return __awaiter$k(this, void 0, void 0, function* () {
7093
7093
  const entityOrId = this.getIdString(tenant);
7094
7094
  const url = `tenants/${entityOrId}/tfa`;
7095
7095
  const res = yield this.fetch(url);
@@ -7121,7 +7121,7 @@
7121
7121
  * ```
7122
7122
  */
7123
7123
  subscribeApplication(tenant, application) {
7124
- return __awaiter$j(this, void 0, void 0, function* () {
7124
+ return __awaiter$k(this, void 0, void 0, function* () {
7125
7125
  const entityOrId = this.getIdString(tenant);
7126
7126
  const applicationId = application.id;
7127
7127
  const url = `tenants/${entityOrId}/applications`;
@@ -7162,7 +7162,7 @@
7162
7162
  * ```
7163
7163
  */
7164
7164
  unsubscribeApplication(tenant, application) {
7165
- return __awaiter$j(this, void 0, void 0, function* () {
7165
+ return __awaiter$k(this, void 0, void 0, function* () {
7166
7166
  const entityOrId = this.getIdString(tenant);
7167
7167
  const url = `tenants/${entityOrId}/applications/${application.id}`;
7168
7168
  const method = 'DELETE';
@@ -7195,7 +7195,7 @@
7195
7195
  TfaStrategy["SMS"] = "SMS";
7196
7196
  })(exports.TfaStrategy || (exports.TfaStrategy = {}));
7197
7197
 
7198
- var __awaiter$i = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
7198
+ var __awaiter$j = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
7199
7199
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
7200
7200
  return new (P || (P = Promise))(function (resolve, reject) {
7201
7201
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -7240,7 +7240,7 @@
7240
7240
  const _super = Object.create(null, {
7241
7241
  detail: { get: () => super.detail }
7242
7242
  });
7243
- return __awaiter$i(this, void 0, void 0, function* () {
7243
+ return __awaiter$j(this, void 0, void 0, function* () {
7244
7244
  return _super.detail.call(this, entityOrId);
7245
7245
  });
7246
7246
  }
@@ -7267,7 +7267,7 @@
7267
7267
  const _super = Object.create(null, {
7268
7268
  create: { get: () => super.create }
7269
7269
  });
7270
- return __awaiter$i(this, void 0, void 0, function* () {
7270
+ return __awaiter$j(this, void 0, void 0, function* () {
7271
7271
  return _super.create.call(this, entity);
7272
7272
  });
7273
7273
  }
@@ -7280,7 +7280,7 @@
7280
7280
  const _super = Object.create(null, {
7281
7281
  update: { get: () => super.update }
7282
7282
  });
7283
- return __awaiter$i(this, void 0, void 0, function* () {
7283
+ return __awaiter$j(this, void 0, void 0, function* () {
7284
7284
  return _super.update.call(this, entity);
7285
7285
  });
7286
7286
  }
@@ -7309,7 +7309,7 @@
7309
7309
  const _super = Object.create(null, {
7310
7310
  list: { get: () => super.list }
7311
7311
  });
7312
- return __awaiter$i(this, void 0, void 0, function* () {
7312
+ return __awaiter$j(this, void 0, void 0, function* () {
7313
7313
  return _super.list.call(this, filter);
7314
7314
  });
7315
7315
  }
@@ -7334,13 +7334,13 @@
7334
7334
  const _super = Object.create(null, {
7335
7335
  delete: { get: () => super.delete }
7336
7336
  });
7337
- return __awaiter$i(this, void 0, void 0, function* () {
7337
+ return __awaiter$j(this, void 0, void 0, function* () {
7338
7338
  return _super.delete.call(this, entityOrId);
7339
7339
  });
7340
7340
  }
7341
7341
  }
7342
7342
 
7343
- var __awaiter$h = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
7343
+ var __awaiter$i = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
7344
7344
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
7345
7345
  return new (P || (P = Promise))(function (resolve, reject) {
7346
7346
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -7401,7 +7401,7 @@
7401
7401
  const _super = Object.create(null, {
7402
7402
  detail: { get: () => super.detail }
7403
7403
  });
7404
- return __awaiter$h(this, void 0, void 0, function* () {
7404
+ return __awaiter$i(this, void 0, void 0, function* () {
7405
7405
  return _super.detail.call(this, entityOrId);
7406
7406
  });
7407
7407
  }
@@ -7429,7 +7429,7 @@
7429
7429
  const _super = Object.create(null, {
7430
7430
  create: { get: () => super.create }
7431
7431
  });
7432
- return __awaiter$h(this, void 0, void 0, function* () {
7432
+ return __awaiter$i(this, void 0, void 0, function* () {
7433
7433
  return _super.create.call(this, entity);
7434
7434
  });
7435
7435
  }
@@ -7461,7 +7461,7 @@
7461
7461
  const _super = Object.create(null, {
7462
7462
  update: { get: () => super.update }
7463
7463
  });
7464
- return __awaiter$h(this, void 0, void 0, function* () {
7464
+ return __awaiter$i(this, void 0, void 0, function* () {
7465
7465
  return _super.update.call(this, entity);
7466
7466
  });
7467
7467
  }
@@ -7489,7 +7489,7 @@
7489
7489
  const _super = Object.create(null, {
7490
7490
  list: { get: () => super.list }
7491
7491
  });
7492
- return __awaiter$h(this, void 0, void 0, function* () {
7492
+ return __awaiter$i(this, void 0, void 0, function* () {
7493
7493
  return _super.list.call(this, filter);
7494
7494
  });
7495
7495
  }
@@ -7514,7 +7514,7 @@
7514
7514
  const _super = Object.create(null, {
7515
7515
  delete: { get: () => super.delete }
7516
7516
  });
7517
- return __awaiter$h(this, void 0, void 0, function* () {
7517
+ return __awaiter$i(this, void 0, void 0, function* () {
7518
7518
  return _super.delete.call(this, entityOrId);
7519
7519
  });
7520
7520
  }
@@ -7553,7 +7553,7 @@
7553
7553
  * ```
7554
7554
  */
7555
7555
  current() {
7556
- return __awaiter$h(this, void 0, void 0, function* () {
7556
+ return __awaiter$i(this, void 0, void 0, function* () {
7557
7557
  const headers = {
7558
7558
  'content-type': 'application/json',
7559
7559
  Accept: 'application/vnd.com.nsn.cumulocity.user+json;'
@@ -7577,7 +7577,7 @@
7577
7577
  * ```
7578
7578
  */
7579
7579
  currentWithEffectiveRoles() {
7580
- return __awaiter$h(this, void 0, void 0, function* () {
7580
+ return __awaiter$i(this, void 0, void 0, function* () {
7581
7581
  const headers = {
7582
7582
  'content-type': 'application/json',
7583
7583
  Accept: 'application/vnd.com.nsn.cumulocity.currentUser+json;'
@@ -7595,7 +7595,7 @@
7595
7595
  * @return Returns promise object resolved with the IUser wrapped by IResult
7596
7596
  */
7597
7597
  updateCurrent(user) {
7598
- return __awaiter$h(this, void 0, void 0, function* () {
7598
+ return __awaiter$i(this, void 0, void 0, function* () {
7599
7599
  const mimeType = 'application/vnd.com.nsn.cumulocity.user+json';
7600
7600
  const headers = { 'content-type': mimeType, Accept: mimeType };
7601
7601
  const body = JSON.stringify(this.onBeforeUpdate(user));
@@ -7623,7 +7623,7 @@
7623
7623
  * ```
7624
7624
  */
7625
7625
  sendPasswordResetMail(email, tenantId) {
7626
- return __awaiter$h(this, void 0, void 0, function* () {
7626
+ return __awaiter$i(this, void 0, void 0, function* () {
7627
7627
  const headers = { 'content-type': 'application/json', accept: 'application/json' };
7628
7628
  const method = 'POST';
7629
7629
  const url = this.passwordResetUrl;
@@ -7657,7 +7657,7 @@
7657
7657
  * ```
7658
7658
  */
7659
7659
  resetPassword(newPassword, tenantId) {
7660
- return __awaiter$h(this, void 0, void 0, function* () {
7660
+ return __awaiter$i(this, void 0, void 0, function* () {
7661
7661
  const headers = { 'content-type': 'application/json', accept: 'application/json' };
7662
7662
  const method = 'PUT';
7663
7663
  const url = this.passwordResetUrl;
@@ -7683,7 +7683,7 @@
7683
7683
  * ```
7684
7684
  */
7685
7685
  verifyTFACode(pin) {
7686
- return __awaiter$h(this, void 0, void 0, function* () {
7686
+ return __awaiter$i(this, void 0, void 0, function* () {
7687
7687
  const method = 'POST';
7688
7688
  const body = JSON.stringify({ pin });
7689
7689
  const headers = { 'content-type': 'application/json', accept: 'application/json' };
@@ -7707,7 +7707,7 @@
7707
7707
  * ```
7708
7708
  */
7709
7709
  verifyTotpCode(code) {
7710
- return __awaiter$h(this, void 0, void 0, function* () {
7710
+ return __awaiter$i(this, void 0, void 0, function* () {
7711
7711
  const method = 'POST';
7712
7712
  const headers = { 'content-type': 'application/json' };
7713
7713
  const body = JSON.stringify({ code });
@@ -7729,7 +7729,7 @@
7729
7729
  * ```
7730
7730
  */
7731
7731
  activateTotp() {
7732
- return __awaiter$h(this, void 0, void 0, function* () {
7732
+ return __awaiter$i(this, void 0, void 0, function* () {
7733
7733
  const method = 'POST';
7734
7734
  const headers = { 'content-type': 'application/json' };
7735
7735
  const body = JSON.stringify({ isActive: true });
@@ -7752,7 +7752,7 @@
7752
7752
  * ```
7753
7753
  */
7754
7754
  getActivityTotp() {
7755
- return __awaiter$h(this, void 0, void 0, function* () {
7755
+ return __awaiter$i(this, void 0, void 0, function* () {
7756
7756
  const method = 'GET';
7757
7757
  const headers = { 'content-type': 'application/json' };
7758
7758
  const res = yield this.fetch(this.activateTOTPCodeUrl, { headers, method });
@@ -7775,7 +7775,7 @@
7775
7775
  * ```
7776
7776
  */
7777
7777
  generateTotpSecret() {
7778
- return __awaiter$h(this, void 0, void 0, function* () {
7778
+ return __awaiter$i(this, void 0, void 0, function* () {
7779
7779
  const method = 'POST';
7780
7780
  const headers = { 'content-type': 'application/json', accept: 'application/json' };
7781
7781
  const res = yield this.fetch(this.totpCurrentUserURL, { headers, method });
@@ -7791,7 +7791,7 @@
7791
7791
  * @returns Status object
7792
7792
  */
7793
7793
  totpRevokeSecret(user) {
7794
- return __awaiter$h(this, void 0, void 0, function* () {
7794
+ return __awaiter$i(this, void 0, void 0, function* () {
7795
7795
  const url = `${this.getDetailUrl(user)}/${this.revokeTOTPSecretUrl}`;
7796
7796
  const method = 'DELETE';
7797
7797
  const headers = { accept: 'application/json' };
@@ -7805,7 +7805,7 @@
7805
7805
  * @returns Server response and data with updated current user object.
7806
7806
  */
7807
7807
  savePhoneNumber(phoneNumber) {
7808
- return __awaiter$h(this, void 0, void 0, function* () {
7808
+ return __awaiter$i(this, void 0, void 0, function* () {
7809
7809
  const url = this.currentUserPhoneUrl;
7810
7810
  const options = {
7811
7811
  method: 'PUT',
@@ -7825,7 +7825,7 @@
7825
7825
  * @returns Server response and data with email addresses as plain text.
7826
7826
  */
7827
7827
  getNewsletterEmails() {
7828
- return __awaiter$h(this, void 0, void 0, function* () {
7828
+ return __awaiter$i(this, void 0, void 0, function* () {
7829
7829
  const url = this.newsletterEmailsUrl;
7830
7830
  const options = {
7831
7831
  method: 'GET',
@@ -7846,7 +7846,7 @@
7846
7846
  * @returns Returns a result object.
7847
7847
  */
7848
7848
  changeUserPassword(entityOrId, newPassword, currentUserPassword) {
7849
- return __awaiter$h(this, void 0, void 0, function* () {
7849
+ return __awaiter$i(this, void 0, void 0, function* () {
7850
7850
  const method = 'PUT';
7851
7851
  const headers = { 'content-type': 'application/json' };
7852
7852
  const body = JSON.stringify({ newPassword, currentUserPassword });
@@ -7863,7 +7863,7 @@
7863
7863
  * @returns Returns a result object. During this action if preferred login mode is OAI_SECURE new jwt cookie will be set.
7864
7864
  */
7865
7865
  changeCurrentUserPassword(newPassword, currentUserPassword) {
7866
- return __awaiter$h(this, void 0, void 0, function* () {
7866
+ return __awaiter$i(this, void 0, void 0, function* () {
7867
7867
  const method = 'PUT';
7868
7868
  const headers = { 'content-type': 'application/json' };
7869
7869
  const body = JSON.stringify({ newPassword, currentUserPassword });
@@ -7877,7 +7877,7 @@
7877
7877
  * @returns Returns a result object.
7878
7878
  */
7879
7879
  revokeTokens() {
7880
- return __awaiter$h(this, void 0, void 0, function* () {
7880
+ return __awaiter$i(this, void 0, void 0, function* () {
7881
7881
  const method = 'POST';
7882
7882
  const headers = { 'content-type': 'application/json' };
7883
7883
  const res = yield this.fetch(this.revokeAllTokensUrl, { headers, method });
@@ -7950,7 +7950,7 @@
7950
7950
  PasswordStrength["YELLOW"] = "YELLOW";
7951
7951
  })(exports.PasswordStrength || (exports.PasswordStrength = {}));
7952
7952
 
7953
- var __awaiter$g = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
7953
+ var __awaiter$h = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
7954
7954
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
7955
7955
  return new (P || (P = Promise))(function (resolve, reject) {
7956
7956
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -7967,7 +7967,7 @@
7967
7967
  this.baseUrl = `application/applications/${this.getIdString(applicationOrId)}`;
7968
7968
  }
7969
7969
  upload(binary, fileName, uploadParamsOverride) {
7970
- return __awaiter$g(this, void 0, void 0, function* () {
7970
+ return __awaiter$h(this, void 0, void 0, function* () {
7971
7971
  const url = (uploadParamsOverride === null || uploadParamsOverride === void 0 ? void 0 : uploadParamsOverride.listUrl) || this.listUrl;
7972
7972
  const method = 'POST';
7973
7973
  const body = this.createBinaryRequestBody(binary, fileName, uploadParamsOverride);
@@ -8027,7 +8027,7 @@
8027
8027
  const _super = Object.create(null, {
8028
8028
  list: { get: () => super.list }
8029
8029
  });
8030
- return __awaiter$g(this, void 0, void 0, function* () {
8030
+ return __awaiter$h(this, void 0, void 0, function* () {
8031
8031
  return _super.list.call(this, filter);
8032
8032
  });
8033
8033
  }
@@ -8035,12 +8035,12 @@
8035
8035
  const _super = Object.create(null, {
8036
8036
  delete: { get: () => super.delete }
8037
8037
  });
8038
- return __awaiter$g(this, void 0, void 0, function* () {
8038
+ return __awaiter$h(this, void 0, void 0, function* () {
8039
8039
  return _super.delete.call(this, binaryOrId);
8040
8040
  });
8041
8041
  }
8042
8042
  listPlugins() {
8043
- return __awaiter$g(this, void 0, void 0, function* () {
8043
+ return __awaiter$h(this, void 0, void 0, function* () {
8044
8044
  const headers = { accept: 'application/json' };
8045
8045
  const url = `${this.listUrl}/plugins`;
8046
8046
  const res = yield this.fetch(url, { headers });
@@ -8049,7 +8049,7 @@
8049
8049
  });
8050
8050
  }
8051
8051
  addPlugin(pluginName, pluginFile) {
8052
- return __awaiter$g(this, void 0, void 0, function* () {
8052
+ return __awaiter$h(this, void 0, void 0, function* () {
8053
8053
  const url = `${this.listUrl}/plugins/${encodeURIComponent(pluginName)}`;
8054
8054
  const method = 'POST';
8055
8055
  const body = new browser();
@@ -8064,7 +8064,7 @@
8064
8064
  });
8065
8065
  }
8066
8066
  removePlugin(pluginName) {
8067
- return __awaiter$g(this, void 0, void 0, function* () {
8067
+ return __awaiter$h(this, void 0, void 0, function* () {
8068
8068
  const method = 'DELETE';
8069
8069
  const headers = { accept: 'application/json' };
8070
8070
  const url = `${this.listUrl}/plugins/${pluginName}`;
@@ -8074,7 +8074,7 @@
8074
8074
  });
8075
8075
  }
8076
8076
  updateFiles(files) {
8077
- return __awaiter$g(this, void 0, void 0, function* () {
8077
+ return __awaiter$h(this, void 0, void 0, function* () {
8078
8078
  const url = `${this.listUrl}/files`;
8079
8079
  const method = 'POST';
8080
8080
  const body = new browser();
@@ -8091,7 +8091,7 @@
8091
8091
  });
8092
8092
  }
8093
8093
  downloadArchive(binaryId) {
8094
- return __awaiter$g(this, void 0, void 0, function* () {
8094
+ return __awaiter$h(this, void 0, void 0, function* () {
8095
8095
  const url = `${this.listUrl}/${binaryId}`;
8096
8096
  return yield this.fetch(url);
8097
8097
  });
@@ -8124,7 +8124,7 @@
8124
8124
  ApplicationType["FEATURE"] = "FEATURE";
8125
8125
  })(exports.ApplicationType || (exports.ApplicationType = {}));
8126
8126
 
8127
- var __awaiter$f = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
8127
+ var __awaiter$g = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
8128
8128
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
8129
8129
  return new (P || (P = Promise))(function (resolve, reject) {
8130
8130
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -8166,7 +8166,7 @@
8166
8166
  const _super = Object.create(null, {
8167
8167
  create: { get: () => super.create }
8168
8168
  });
8169
- return __awaiter$f(this, void 0, void 0, function* () {
8169
+ return __awaiter$g(this, void 0, void 0, function* () {
8170
8170
  return _super.create.call(this, entity);
8171
8171
  });
8172
8172
  }
@@ -8178,7 +8178,7 @@
8178
8178
  * @returns The application entity.
8179
8179
  */
8180
8180
  clone(entity, version) {
8181
- return __awaiter$f(this, void 0, void 0, function* () {
8181
+ return __awaiter$g(this, void 0, void 0, function* () {
8182
8182
  const url = `${this.getDetailUrl(entity)}/clone`;
8183
8183
  const method = 'POST';
8184
8184
  const body = '';
@@ -8216,7 +8216,7 @@
8216
8216
  const _super = Object.create(null, {
8217
8217
  list: { get: () => super.list }
8218
8218
  });
8219
- return __awaiter$f(this, void 0, void 0, function* () {
8219
+ return __awaiter$g(this, void 0, void 0, function* () {
8220
8220
  return _super.list.call(this, filter);
8221
8221
  });
8222
8222
  }
@@ -8241,7 +8241,7 @@
8241
8241
  */
8242
8242
  listVersions(entityOrId, params = {}) {
8243
8243
  var _a;
8244
- return __awaiter$f(this, void 0, void 0, function* () {
8244
+ return __awaiter$g(this, void 0, void 0, function* () {
8245
8245
  const id = this.getEntityId(entityOrId);
8246
8246
  const url = `${this.listUrl}/${id}/versions`;
8247
8247
  const headers = { 'content-type': 'application/json' };
@@ -8280,7 +8280,7 @@
8280
8280
  const _super = Object.create(null, {
8281
8281
  detail: { get: () => super.detail }
8282
8282
  });
8283
- return __awaiter$f(this, void 0, void 0, function* () {
8283
+ return __awaiter$g(this, void 0, void 0, function* () {
8284
8284
  return _super.detail.call(this, entityOrId);
8285
8285
  });
8286
8286
  }
@@ -8309,7 +8309,7 @@
8309
8309
  const _super = Object.create(null, {
8310
8310
  update: { get: () => super.update }
8311
8311
  });
8312
- return __awaiter$f(this, void 0, void 0, function* () {
8312
+ return __awaiter$g(this, void 0, void 0, function* () {
8313
8313
  return _super.update.call(this, entity);
8314
8314
  });
8315
8315
  }
@@ -8337,12 +8337,12 @@
8337
8337
  const _super = Object.create(null, {
8338
8338
  delete: { get: () => super.delete }
8339
8339
  });
8340
- return __awaiter$f(this, void 0, void 0, function* () {
8340
+ return __awaiter$g(this, void 0, void 0, function* () {
8341
8341
  return _super.delete.call(this, entityOrId);
8342
8342
  });
8343
8343
  }
8344
8344
  listByName(name) {
8345
- return __awaiter$f(this, void 0, void 0, function* () {
8345
+ return __awaiter$g(this, void 0, void 0, function* () {
8346
8346
  const headers = { 'content-type': 'application/json' };
8347
8347
  const url = `applicationsByName/${encodeURIComponent(name)}`;
8348
8348
  const res = yield this.fetch(url, { headers });
@@ -8352,7 +8352,7 @@
8352
8352
  });
8353
8353
  }
8354
8354
  listByTenant(tenantOrName, params = {}) {
8355
- return __awaiter$f(this, void 0, void 0, function* () {
8355
+ return __awaiter$g(this, void 0, void 0, function* () {
8356
8356
  const headers = { 'content-type': 'application/json' };
8357
8357
  const tenantService = new TenantService(this.client);
8358
8358
  const tenantName = this.getIdString(tenantOrName || (yield tenantService.current()).data.name);
@@ -8364,7 +8364,7 @@
8364
8364
  });
8365
8365
  }
8366
8366
  listByOwner(tenantOrName, params = {}) {
8367
- return __awaiter$f(this, void 0, void 0, function* () {
8367
+ return __awaiter$g(this, void 0, void 0, function* () {
8368
8368
  const headers = { 'content-type': 'application/json' };
8369
8369
  const tenantService = new TenantService(this.client);
8370
8370
  const tenantName = this.getIdString(tenantOrName || (yield tenantService.current()).data.name);
@@ -8376,7 +8376,7 @@
8376
8376
  });
8377
8377
  }
8378
8378
  listByUser(userOrId, params = {}) {
8379
- return __awaiter$f(this, void 0, void 0, function* () {
8379
+ return __awaiter$g(this, void 0, void 0, function* () {
8380
8380
  const headers = { 'content-type': 'application/json' };
8381
8381
  const userService = new UserService(this.client);
8382
8382
  const userId = this.getIdString(userOrId || (yield userService.current()).data);
@@ -8388,7 +8388,7 @@
8388
8388
  });
8389
8389
  }
8390
8390
  reactivateArchive(appId) {
8391
- return __awaiter$f(this, void 0, void 0, function* () {
8391
+ return __awaiter$g(this, void 0, void 0, function* () {
8392
8392
  const url = `${this.listUrl}/${appId}/refresh`;
8393
8393
  const method = 'POST';
8394
8394
  const body = '';
@@ -8427,7 +8427,7 @@
8427
8427
  * ```
8428
8428
  */
8429
8429
  isAvailable(application) {
8430
- return __awaiter$f(this, void 0, void 0, function* () {
8430
+ return __awaiter$g(this, void 0, void 0, function* () {
8431
8431
  const { res, data } = yield this.listByUser(undefined, {
8432
8432
  dropOverwrittenApps: true,
8433
8433
  noPaging: true
@@ -8456,7 +8456,7 @@
8456
8456
  * ```
8457
8457
  */
8458
8458
  getStatusDetails(entityOrId) {
8459
- return __awaiter$f(this, void 0, void 0, function* () {
8459
+ return __awaiter$g(this, void 0, void 0, function* () {
8460
8460
  const appId = this.getEntityId(entityOrId);
8461
8461
  const inventory = new InventoryService(this.client, this.realtime);
8462
8462
  return inventory.list({ type: `c8y_Application_${appId}` });
@@ -8510,7 +8510,7 @@
8510
8510
  * ```
8511
8511
  */
8512
8512
  getInstanceLog(entityOrId, instanceName, params) {
8513
- return __awaiter$f(this, void 0, void 0, function* () {
8513
+ return __awaiter$g(this, void 0, void 0, function* () {
8514
8514
  const url = `${this.getDetailUrl(entityOrId)}/logs/${instanceName}`;
8515
8515
  const headers = { accept: this.mimeType('applicationLogs') };
8516
8516
  const res = yield this.fetch(url, { headers, params });
@@ -8530,7 +8530,7 @@
8530
8530
  */
8531
8531
  updateApplicationConfig(entityOrId, config) {
8532
8532
  var _a;
8533
- return __awaiter$f(this, void 0, void 0, function* () {
8533
+ return __awaiter$g(this, void 0, void 0, function* () {
8534
8534
  const id = this.getEntityId(entityOrId);
8535
8535
  const { data: app } = yield this.detail(id);
8536
8536
  const currentConfig = (app === null || app === void 0 ? void 0 : app.config) || {};
@@ -8552,7 +8552,7 @@
8552
8552
  * @returns Application manifest object.
8553
8553
  */
8554
8554
  getAppManifest(app, version) {
8555
- return __awaiter$f(this, void 0, void 0, function* () {
8555
+ return __awaiter$g(this, void 0, void 0, function* () {
8556
8556
  const date = new Date();
8557
8557
  let result;
8558
8558
  if (!version) {
@@ -8578,7 +8578,7 @@
8578
8578
  * @returns Application manifest object.
8579
8579
  */
8580
8580
  storeAppManifest(entityOrId, manifestJSON) {
8581
- return __awaiter$f(this, void 0, void 0, function* () {
8581
+ return __awaiter$g(this, void 0, void 0, function* () {
8582
8582
  return yield this.binary(entityOrId).updateFiles([
8583
8583
  { path: 'cumulocity.json', contents: JSON.stringify(manifestJSON) }
8584
8584
  ]);
@@ -8596,7 +8596,7 @@
8596
8596
  * @returns Application version object.
8597
8597
  */
8598
8598
  setPackageVersionTag(app, version, tags) {
8599
- return __awaiter$f(this, void 0, void 0, function* () {
8599
+ return __awaiter$g(this, void 0, void 0, function* () {
8600
8600
  const url = `${this.getDetailUrl(app)}/versions/${version}`;
8601
8601
  const method = 'PUT';
8602
8602
  const body = JSON.stringify({ tags });
@@ -8614,7 +8614,7 @@
8614
8614
  * @param contextPath
8615
8615
  */
8616
8616
  getManifestOfContextPath(contextPath) {
8617
- return __awaiter$f(this, void 0, void 0, function* () {
8617
+ return __awaiter$g(this, void 0, void 0, function* () {
8618
8618
  const url = `${this.getDetailUrl(contextPath)}/manifest`;
8619
8619
  const res = yield this.fetch(url);
8620
8620
  const { application } = yield res.json();
@@ -8643,7 +8643,7 @@
8643
8643
  * ```
8644
8644
  */
8645
8645
  deleteVersionPackage(app, params) {
8646
- return __awaiter$f(this, void 0, void 0, function* () {
8646
+ return __awaiter$g(this, void 0, void 0, function* () {
8647
8647
  const url = `${this.getDetailUrl(app)}/versions/`;
8648
8648
  const method = 'DELETE';
8649
8649
  const res = yield this.fetch(url, this.changeFetchOptions({ method, params }, url));
@@ -8660,7 +8660,7 @@
8660
8660
  * @returns Updated application.
8661
8661
  */
8662
8662
  updateApplicationAvailability(entityOrId, availability) {
8663
- return __awaiter$f(this, void 0, void 0, function* () {
8663
+ return __awaiter$g(this, void 0, void 0, function* () {
8664
8664
  const id = this.getEntityId(entityOrId);
8665
8665
  return yield this.update({
8666
8666
  id,
@@ -8713,7 +8713,7 @@
8713
8713
  ApplicationAvailability[ApplicationAvailability["SHARED"] = gettext('SHARED')] = "SHARED";
8714
8714
  })(exports.ApplicationAvailability || (exports.ApplicationAvailability = {}));
8715
8715
 
8716
- var __awaiter$e = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
8716
+ var __awaiter$f = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
8717
8717
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
8718
8718
  return new (P || (P = Promise))(function (resolve, reject) {
8719
8719
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -8753,7 +8753,7 @@
8753
8753
  const _super = Object.create(null, {
8754
8754
  detail: { get: () => super.detail }
8755
8755
  });
8756
- return __awaiter$e(this, void 0, void 0, function* () {
8756
+ return __awaiter$f(this, void 0, void 0, function* () {
8757
8757
  return _super.detail.call(this, option);
8758
8758
  });
8759
8759
  }
@@ -8778,7 +8778,7 @@
8778
8778
  * ```
8779
8779
  */
8780
8780
  list(filter = {}) {
8781
- return __awaiter$e(this, void 0, void 0, function* () {
8781
+ return __awaiter$f(this, void 0, void 0, function* () {
8782
8782
  const headers = { 'content-type': 'application/json' };
8783
8783
  const url = this.listUrl;
8784
8784
  const res = yield this.fetch(url, { headers, params: filter });
@@ -8795,7 +8795,7 @@
8795
8795
  }
8796
8796
  }
8797
8797
 
8798
- var __awaiter$d = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
8798
+ var __awaiter$e = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
8799
8799
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
8800
8800
  return new (P || (P = Promise))(function (resolve, reject) {
8801
8801
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -8848,7 +8848,7 @@
8848
8848
  const _super = Object.create(null, {
8849
8849
  detail: { get: () => super.detail }
8850
8850
  });
8851
- return __awaiter$d(this, void 0, void 0, function* () {
8851
+ return __awaiter$e(this, void 0, void 0, function* () {
8852
8852
  return _super.detail.call(this, entity, params);
8853
8853
  });
8854
8854
  }
@@ -8886,7 +8886,7 @@
8886
8886
  const _super = Object.create(null, {
8887
8887
  create: { get: () => super.create }
8888
8888
  });
8889
- return __awaiter$d(this, void 0, void 0, function* () {
8889
+ return __awaiter$e(this, void 0, void 0, function* () {
8890
8890
  return _super.create.call(this, entity);
8891
8891
  });
8892
8892
  }
@@ -8916,7 +8916,7 @@
8916
8916
  const _super = Object.create(null, {
8917
8917
  update: { get: () => super.update }
8918
8918
  });
8919
- return __awaiter$d(this, void 0, void 0, function* () {
8919
+ return __awaiter$e(this, void 0, void 0, function* () {
8920
8920
  return _super.update.call(this, entity);
8921
8921
  });
8922
8922
  }
@@ -8948,7 +8948,7 @@
8948
8948
  const _super = Object.create(null, {
8949
8949
  list: { get: () => super.list }
8950
8950
  });
8951
- return __awaiter$d(this, void 0, void 0, function* () {
8951
+ return __awaiter$e(this, void 0, void 0, function* () {
8952
8952
  return _super.list.call(this, filter);
8953
8953
  });
8954
8954
  }
@@ -8975,7 +8975,7 @@
8975
8975
  const _super = Object.create(null, {
8976
8976
  delete: { get: () => super.delete }
8977
8977
  });
8978
- return __awaiter$d(this, void 0, void 0, function* () {
8978
+ return __awaiter$e(this, void 0, void 0, function* () {
8979
8979
  return _super.delete.call(this, entityOrId);
8980
8980
  });
8981
8981
  }
@@ -8994,7 +8994,7 @@
8994
8994
  }
8995
8995
  }
8996
8996
 
8997
- var __awaiter$c = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
8997
+ var __awaiter$d = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
8998
8998
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
8999
8999
  return new (P || (P = Promise))(function (resolve, reject) {
9000
9000
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -9038,7 +9038,7 @@
9038
9038
  const _super = Object.create(null, {
9039
9039
  detail: { get: () => super.detail }
9040
9040
  });
9041
- return __awaiter$c(this, void 0, void 0, function* () {
9041
+ return __awaiter$d(this, void 0, void 0, function* () {
9042
9042
  return _super.detail.call(this, tenantSecurityOption);
9043
9043
  });
9044
9044
  }
@@ -9050,7 +9050,7 @@
9050
9050
  }
9051
9051
  }
9052
9052
 
9053
- var __awaiter$b = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
9053
+ var __awaiter$c = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
9054
9054
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
9055
9055
  return new (P || (P = Promise))(function (resolve, reject) {
9056
9056
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -9091,7 +9091,7 @@
9091
9091
  const _super = Object.create(null, {
9092
9092
  detail: { get: () => super.detail }
9093
9093
  });
9094
- return __awaiter$b(this, void 0, void 0, function* () {
9094
+ return __awaiter$c(this, void 0, void 0, function* () {
9095
9095
  return _super.detail.call(this, entityIdentityOrId);
9096
9096
  });
9097
9097
  }
@@ -9118,7 +9118,7 @@
9118
9118
  const _super = Object.create(null, {
9119
9119
  list: { get: () => super.list }
9120
9120
  });
9121
- return __awaiter$b(this, void 0, void 0, function* () {
9121
+ return __awaiter$c(this, void 0, void 0, function* () {
9122
9122
  return _super.list.call(this, filter);
9123
9123
  });
9124
9124
  }
@@ -9139,7 +9139,7 @@
9139
9139
  const _super = Object.create(null, {
9140
9140
  list: { get: () => super.list }
9141
9141
  });
9142
- return __awaiter$b(this, void 0, void 0, function* () {
9142
+ return __awaiter$c(this, void 0, void 0, function* () {
9143
9143
  return _super.list.call(this, { tenantId: this.client.tenant });
9144
9144
  });
9145
9145
  }
@@ -9160,7 +9160,7 @@
9160
9160
  const _super = Object.create(null, {
9161
9161
  list: { get: () => super.list }
9162
9162
  });
9163
- return __awaiter$b(this, void 0, void 0, function* () {
9163
+ return __awaiter$c(this, void 0, void 0, function* () {
9164
9164
  return _super.list.call(this, { management: true });
9165
9165
  });
9166
9166
  }
@@ -9191,7 +9191,7 @@
9191
9191
  const _super = Object.create(null, {
9192
9192
  create: { get: () => super.create }
9193
9193
  });
9194
- return __awaiter$b(this, void 0, void 0, function* () {
9194
+ return __awaiter$c(this, void 0, void 0, function* () {
9195
9195
  return _super.create.call(this, entity);
9196
9196
  });
9197
9197
  }
@@ -9223,7 +9223,7 @@
9223
9223
  const _super = Object.create(null, {
9224
9224
  update: { get: () => super.update }
9225
9225
  });
9226
- return __awaiter$b(this, void 0, void 0, function* () {
9226
+ return __awaiter$c(this, void 0, void 0, function* () {
9227
9227
  return _super.update.call(this, entity);
9228
9228
  });
9229
9229
  }
@@ -9252,7 +9252,7 @@
9252
9252
  * ```
9253
9253
  */
9254
9254
  save(entity) {
9255
- return __awaiter$b(this, void 0, void 0, function* () {
9255
+ return __awaiter$c(this, void 0, void 0, function* () {
9256
9256
  return entity.id ? this.update(entity) : this.create(entity);
9257
9257
  });
9258
9258
  }
@@ -9277,7 +9277,7 @@
9277
9277
  const _super = Object.create(null, {
9278
9278
  delete: { get: () => super.delete }
9279
9279
  });
9280
- return __awaiter$b(this, void 0, void 0, function* () {
9280
+ return __awaiter$c(this, void 0, void 0, function* () {
9281
9281
  return _super.delete.call(this, entityOrId);
9282
9282
  });
9283
9283
  }
@@ -9309,7 +9309,7 @@
9309
9309
  UserManagementSource["INTERNAL"] = "INTERNAL";
9310
9310
  })(exports.UserManagementSource || (exports.UserManagementSource = {}));
9311
9311
 
9312
- var __awaiter$a = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
9312
+ var __awaiter$b = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
9313
9313
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
9314
9314
  return new (P || (P = Promise))(function (resolve, reject) {
9315
9315
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -9346,7 +9346,7 @@
9346
9346
  const _super = Object.create(null, {
9347
9347
  detail: { get: () => super.detail }
9348
9348
  });
9349
- return __awaiter$a(this, void 0, void 0, function* () {
9349
+ return __awaiter$b(this, void 0, void 0, function* () {
9350
9350
  return _super.detail.call(this, entityOrId);
9351
9351
  });
9352
9352
  }
@@ -9377,7 +9377,7 @@
9377
9377
  const _super = Object.create(null, {
9378
9378
  create: { get: () => super.create }
9379
9379
  });
9380
- return __awaiter$a(this, void 0, void 0, function* () {
9380
+ return __awaiter$b(this, void 0, void 0, function* () {
9381
9381
  return _super.create.call(this, entity);
9382
9382
  });
9383
9383
  }
@@ -9406,7 +9406,7 @@
9406
9406
  const _super = Object.create(null, {
9407
9407
  list: { get: () => super.list }
9408
9408
  });
9409
- return __awaiter$a(this, void 0, void 0, function* () {
9409
+ return __awaiter$b(this, void 0, void 0, function* () {
9410
9410
  return _super.list.call(this, filter);
9411
9411
  });
9412
9412
  }
@@ -9442,7 +9442,7 @@
9442
9442
  ChangeType[ChangeType["REMOVED"] = gettext('REMOVED')] = "REMOVED";
9443
9443
  })(exports.ChangeType || (exports.ChangeType = {}));
9444
9444
 
9445
- var __awaiter$9 = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
9445
+ var __awaiter$a = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
9446
9446
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
9447
9447
  return new (P || (P = Promise))(function (resolve, reject) {
9448
9448
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -9479,7 +9479,7 @@
9479
9479
  const _super = Object.create(null, {
9480
9480
  detail: { get: () => super.detail }
9481
9481
  });
9482
- return __awaiter$9(this, void 0, void 0, function* () {
9482
+ return __awaiter$a(this, void 0, void 0, function* () {
9483
9483
  return _super.detail.call(this, entityOrId);
9484
9484
  });
9485
9485
  }
@@ -9506,7 +9506,7 @@
9506
9506
  const _super = Object.create(null, {
9507
9507
  create: { get: () => super.create }
9508
9508
  });
9509
- return __awaiter$9(this, void 0, void 0, function* () {
9509
+ return __awaiter$a(this, void 0, void 0, function* () {
9510
9510
  return _super.create.call(this, entity);
9511
9511
  });
9512
9512
  }
@@ -9534,7 +9534,7 @@
9534
9534
  const _super = Object.create(null, {
9535
9535
  update: { get: () => super.update }
9536
9536
  });
9537
- return __awaiter$9(this, void 0, void 0, function* () {
9537
+ return __awaiter$a(this, void 0, void 0, function* () {
9538
9538
  return _super.update.call(this, entity);
9539
9539
  });
9540
9540
  }
@@ -9562,7 +9562,7 @@
9562
9562
  const _super = Object.create(null, {
9563
9563
  list: { get: () => super.list }
9564
9564
  });
9565
- return __awaiter$9(this, void 0, void 0, function* () {
9565
+ return __awaiter$a(this, void 0, void 0, function* () {
9566
9566
  return _super.list.call(this, filter);
9567
9567
  });
9568
9568
  }
@@ -9587,7 +9587,7 @@
9587
9587
  const _super = Object.create(null, {
9588
9588
  delete: { get: () => super.delete }
9589
9589
  });
9590
- return __awaiter$9(this, void 0, void 0, function* () {
9590
+ return __awaiter$a(this, void 0, void 0, function* () {
9591
9591
  return _super.delete.call(this, entityOrId);
9592
9592
  });
9593
9593
  }
@@ -9604,7 +9604,7 @@
9604
9604
  DeviceRegistrationStatus[DeviceRegistrationStatus["BLOCKED"] = gettext('BLOCKED')] = "BLOCKED";
9605
9605
  })(exports.DeviceRegistrationStatus || (exports.DeviceRegistrationStatus = {}));
9606
9606
 
9607
- var __awaiter$8 = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
9607
+ var __awaiter$9 = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
9608
9608
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
9609
9609
  return new (P || (P = Promise))(function (resolve, reject) {
9610
9610
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -9644,7 +9644,7 @@
9644
9644
  const _super = Object.create(null, {
9645
9645
  detail: { get: () => super.detail }
9646
9646
  });
9647
- return __awaiter$8(this, void 0, void 0, function* () {
9647
+ return __awaiter$9(this, void 0, void 0, function* () {
9648
9648
  return _super.detail.call(this, entityOrId);
9649
9649
  });
9650
9650
  }
@@ -9671,7 +9671,7 @@
9671
9671
  const _super = Object.create(null, {
9672
9672
  create: { get: () => super.create }
9673
9673
  });
9674
- return __awaiter$8(this, void 0, void 0, function* () {
9674
+ return __awaiter$9(this, void 0, void 0, function* () {
9675
9675
  return _super.create.call(this, entity);
9676
9676
  });
9677
9677
  }
@@ -9699,7 +9699,7 @@
9699
9699
  const _super = Object.create(null, {
9700
9700
  list: { get: () => super.list }
9701
9701
  });
9702
- return __awaiter$8(this, void 0, void 0, function* () {
9702
+ return __awaiter$9(this, void 0, void 0, function* () {
9703
9703
  return _super.list.call(this, filter);
9704
9704
  });
9705
9705
  }
@@ -9725,7 +9725,7 @@
9725
9725
  const _super = Object.create(null, {
9726
9726
  delete: { get: () => super.delete }
9727
9727
  });
9728
- return __awaiter$8(this, void 0, void 0, function* () {
9728
+ return __awaiter$9(this, void 0, void 0, function* () {
9729
9729
  return _super.delete.call(this, entityOrId);
9730
9730
  });
9731
9731
  }
@@ -9750,7 +9750,7 @@
9750
9750
  const _super = Object.create(null, {
9751
9751
  update: { get: () => super.update }
9752
9752
  });
9753
- return __awaiter$8(this, void 0, void 0, function* () {
9753
+ return __awaiter$9(this, void 0, void 0, function* () {
9754
9754
  const securityToken = this.getSecurityToken(entityOrId);
9755
9755
  let payload = {
9756
9756
  id: this.getIdString(entityOrId),
@@ -9779,7 +9779,7 @@
9779
9779
  const _super = Object.create(null, {
9780
9780
  fetch: { get: () => super.fetch }
9781
9781
  });
9782
- return __awaiter$8(this, void 0, void 0, function* () {
9782
+ return __awaiter$9(this, void 0, void 0, function* () {
9783
9783
  const res = yield _super.fetch.call(this, `${this.listUrl}/acceptAll`, { method: 'POST' });
9784
9784
  const data = (yield res.json());
9785
9785
  return { res, data };
@@ -9802,7 +9802,7 @@
9802
9802
  const _super = Object.create(null, {
9803
9803
  fetch: { get: () => super.fetch }
9804
9804
  });
9805
- return __awaiter$8(this, void 0, void 0, function* () {
9805
+ return __awaiter$9(this, void 0, void 0, function* () {
9806
9806
  const res = yield _super.fetch.call(this, `${this.listUrl}/limit`);
9807
9807
  const data = (yield res.json());
9808
9808
  return { res, data };
@@ -9832,7 +9832,7 @@
9832
9832
  * ```
9833
9833
  */
9834
9834
  bootstrap(entityOrId, options) {
9835
- return __awaiter$8(this, void 0, void 0, function* () {
9835
+ return __awaiter$9(this, void 0, void 0, function* () {
9836
9836
  const id = this.getIdString(entityOrId);
9837
9837
  const securityToken = this.getSecurityToken(entityOrId);
9838
9838
  const body = securityToken ? JSON.stringify({ id, securityToken }) : JSON.stringify({ id });
@@ -9878,7 +9878,7 @@
9878
9878
  }
9879
9879
  }
9880
9880
 
9881
- var __awaiter$7 = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
9881
+ var __awaiter$8 = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
9882
9882
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
9883
9883
  return new (P || (P = Promise))(function (resolve, reject) {
9884
9884
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -9922,7 +9922,7 @@
9922
9922
  * ```
9923
9923
  */
9924
9924
  create(inputFile) {
9925
- return __awaiter$7(this, void 0, void 0, function* () {
9925
+ return __awaiter$8(this, void 0, void 0, function* () {
9926
9926
  let csv = inputFile;
9927
9927
  const url = '/devicecontrol/bulkNewDeviceRequests';
9928
9928
  const method = 'POST';
@@ -9956,7 +9956,7 @@
9956
9956
  DeviceRegistrationSecurityMode["IGNORED"] = "IGNORED";
9957
9957
  })(exports.DeviceRegistrationSecurityMode || (exports.DeviceRegistrationSecurityMode = {}));
9958
9958
 
9959
- var __awaiter$6 = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
9959
+ var __awaiter$7 = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
9960
9960
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
9961
9961
  return new (P || (P = Promise))(function (resolve, reject) {
9962
9962
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -9997,7 +9997,7 @@
9997
9997
  const _super = Object.create(null, {
9998
9998
  detail: { get: () => super.detail }
9999
9999
  });
10000
- return __awaiter$6(this, void 0, void 0, function* () {
10000
+ return __awaiter$7(this, void 0, void 0, function* () {
10001
10001
  return _super.detail.call(this, entityOrId);
10002
10002
  });
10003
10003
  }
@@ -10026,13 +10026,13 @@
10026
10026
  const _super = Object.create(null, {
10027
10027
  list: { get: () => super.list }
10028
10028
  });
10029
- return __awaiter$6(this, void 0, void 0, function* () {
10029
+ return __awaiter$7(this, void 0, void 0, function* () {
10030
10030
  return _super.list.call(this, filter);
10031
10031
  });
10032
10032
  }
10033
10033
  }
10034
10034
 
10035
- var __awaiter$5 = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
10035
+ var __awaiter$6 = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
10036
10036
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
10037
10037
  return new (P || (P = Promise))(function (resolve, reject) {
10038
10038
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -10080,7 +10080,7 @@
10080
10080
  const _super = Object.create(null, {
10081
10081
  detail: { get: () => super.detail }
10082
10082
  });
10083
- return __awaiter$5(this, void 0, void 0, function* () {
10083
+ return __awaiter$6(this, void 0, void 0, function* () {
10084
10084
  return _super.detail.call(this, entityOrId);
10085
10085
  });
10086
10086
  }
@@ -10108,7 +10108,7 @@
10108
10108
  const _super = Object.create(null, {
10109
10109
  create: { get: () => super.create }
10110
10110
  });
10111
- return __awaiter$5(this, void 0, void 0, function* () {
10111
+ return __awaiter$6(this, void 0, void 0, function* () {
10112
10112
  return _super.create.call(this, entity);
10113
10113
  });
10114
10114
  }
@@ -10138,7 +10138,7 @@
10138
10138
  const _super = Object.create(null, {
10139
10139
  update: { get: () => super.update }
10140
10140
  });
10141
- return __awaiter$5(this, void 0, void 0, function* () {
10141
+ return __awaiter$6(this, void 0, void 0, function* () {
10142
10142
  return _super.update.call(this, entity);
10143
10143
  });
10144
10144
  }
@@ -10167,7 +10167,7 @@
10167
10167
  const _super = Object.create(null, {
10168
10168
  list: { get: () => super.list }
10169
10169
  });
10170
- return __awaiter$5(this, void 0, void 0, function* () {
10170
+ return __awaiter$6(this, void 0, void 0, function* () {
10171
10171
  return _super.list.call(this, filter);
10172
10172
  });
10173
10173
  }
@@ -10196,7 +10196,7 @@
10196
10196
  const _super = Object.create(null, {
10197
10197
  delete: { get: () => super.delete }
10198
10198
  });
10199
- return __awaiter$5(this, void 0, void 0, function* () {
10199
+ return __awaiter$6(this, void 0, void 0, function* () {
10200
10200
  return _super.delete.call(this, entityOrId);
10201
10201
  });
10202
10202
  }
@@ -10221,7 +10221,7 @@
10221
10221
  * When role is assigned to user, suitable audit record is created with type 'User' and activity 'User updated'.
10222
10222
  */
10223
10223
  addRoleToGroup(entityOrId, childEntityOrSelf) {
10224
- return __awaiter$5(this, void 0, void 0, function* () {
10224
+ return __awaiter$6(this, void 0, void 0, function* () {
10225
10225
  return this.addChild(ChildType.ROLES, entityOrId, childEntityOrSelf);
10226
10226
  });
10227
10227
  }
@@ -10245,7 +10245,7 @@
10245
10245
  * ```
10246
10246
  */
10247
10247
  removeRoleFromGroup(entityOrId, childEntityOrSelf) {
10248
- return __awaiter$5(this, void 0, void 0, function* () {
10248
+ return __awaiter$6(this, void 0, void 0, function* () {
10249
10249
  return this.removeChild(ChildType.ROLES, entityOrId, childEntityOrSelf);
10250
10250
  });
10251
10251
  }
@@ -10270,7 +10270,7 @@
10270
10270
  * When user is added to group, suitable audit record is created with type 'User' and activity 'User updated'.
10271
10271
  */
10272
10272
  addUserToGroup(entityOrId, childEntityOrSelf) {
10273
- return __awaiter$5(this, void 0, void 0, function* () {
10273
+ return __awaiter$6(this, void 0, void 0, function* () {
10274
10274
  return this.addChild(ChildType.USERS, entityOrId, childEntityOrSelf);
10275
10275
  });
10276
10276
  }
@@ -10295,7 +10295,7 @@
10295
10295
  * When user is removed from group, suitable audit record is created with type 'User' and activity 'User updated'.
10296
10296
  */
10297
10297
  removeUserFromGroup(entityOrId, childEntityOrSelf) {
10298
- return __awaiter$5(this, void 0, void 0, function* () {
10298
+ return __awaiter$6(this, void 0, void 0, function* () {
10299
10299
  return this.removeChild(ChildType.USERS, entityOrId, childEntityOrSelf);
10300
10300
  });
10301
10301
  }
@@ -10321,7 +10321,7 @@
10321
10321
  throw new Error('UserGroupService -> getChild -> unsupported child type');
10322
10322
  }
10323
10323
  addChild(type, userGroupOrId, childReference) {
10324
- return __awaiter$5(this, void 0, void 0, function* () {
10324
+ return __awaiter$6(this, void 0, void 0, function* () {
10325
10325
  const url = this.getChildUrl(type, userGroupOrId);
10326
10326
  const method = 'POST';
10327
10327
  const body = this.getChildReferenceAsBody(type, childReference);
@@ -10336,7 +10336,7 @@
10336
10336
  });
10337
10337
  }
10338
10338
  removeChild(type, userGroupOrId, childReference) {
10339
- return __awaiter$5(this, void 0, void 0, function* () {
10339
+ return __awaiter$6(this, void 0, void 0, function* () {
10340
10340
  const childId = this.getIdString(childReference);
10341
10341
  const url = `${this.getChildUrl(type, userGroupOrId)}/${encodeURIComponent(String(childId))}`;
10342
10342
  const method = 'DELETE';
@@ -10348,7 +10348,7 @@
10348
10348
  }
10349
10349
  }
10350
10350
 
10351
- var __awaiter$4 = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
10351
+ var __awaiter$5 = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
10352
10352
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
10353
10353
  return new (P || (P = Promise))(function (resolve, reject) {
10354
10354
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -10387,7 +10387,7 @@
10387
10387
  * ```
10388
10388
  */
10389
10389
  list(managedObjectId) {
10390
- return __awaiter$4(this, void 0, void 0, function* () {
10390
+ return __awaiter$5(this, void 0, void 0, function* () {
10391
10391
  const headers = { accept: 'application/json' };
10392
10392
  const url = this.getExternalIdsOfGlobalIdUrl(managedObjectId);
10393
10393
  const res = yield this.fetch(url, { headers });
@@ -10420,7 +10420,7 @@
10420
10420
  * ```
10421
10421
  */
10422
10422
  create(identity) {
10423
- return __awaiter$4(this, void 0, void 0, function* () {
10423
+ return __awaiter$5(this, void 0, void 0, function* () {
10424
10424
  const headers = { 'content-type': 'application/json', accept: 'application/json' };
10425
10425
  const method = 'POST';
10426
10426
  const body = JSON.stringify(identity);
@@ -10451,7 +10451,7 @@
10451
10451
  * ```
10452
10452
  */
10453
10453
  detail(identity) {
10454
- return __awaiter$4(this, void 0, void 0, function* () {
10454
+ return __awaiter$5(this, void 0, void 0, function* () {
10455
10455
  const headers = { accept: 'application/json' };
10456
10456
  const url = this.getExternalIdUrl(identity);
10457
10457
  const res = yield this.fetch(url, { headers });
@@ -10480,7 +10480,7 @@
10480
10480
  * ```
10481
10481
  */
10482
10482
  delete(identity) {
10483
- return __awaiter$4(this, void 0, void 0, function* () {
10483
+ return __awaiter$5(this, void 0, void 0, function* () {
10484
10484
  const headers = { accept: 'application/json' };
10485
10485
  const method = 'DELETE';
10486
10486
  const url = this.getExternalIdUrl(identity);
@@ -10489,7 +10489,7 @@
10489
10489
  });
10490
10490
  }
10491
10491
  fetch(url, init) {
10492
- return __awaiter$4(this, void 0, void 0, function* () {
10492
+ return __awaiter$5(this, void 0, void 0, function* () {
10493
10493
  const res = yield this.client.fetch(url, init);
10494
10494
  if (res.status >= 400) {
10495
10495
  let data = null;
@@ -10517,7 +10517,7 @@
10517
10517
  }
10518
10518
  }
10519
10519
 
10520
- var __awaiter$3 = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
10520
+ var __awaiter$4 = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
10521
10521
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
10522
10522
  return new (P || (P = Promise))(function (resolve, reject) {
10523
10523
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -10556,7 +10556,7 @@
10556
10556
  const _super = Object.create(null, {
10557
10557
  list: { get: () => super.list }
10558
10558
  });
10559
- return __awaiter$3(this, void 0, void 0, function* () {
10559
+ return __awaiter$4(this, void 0, void 0, function* () {
10560
10560
  return _super.list.call(this, filter);
10561
10561
  });
10562
10562
  }
@@ -10581,7 +10581,7 @@
10581
10581
  const _super = Object.create(null, {
10582
10582
  detail: { get: () => super.detail }
10583
10583
  });
10584
- return __awaiter$3(this, void 0, void 0, function* () {
10584
+ return __awaiter$4(this, void 0, void 0, function* () {
10585
10585
  return _super.detail.call(this, entityOrId);
10586
10586
  });
10587
10587
  }
@@ -10606,7 +10606,7 @@
10606
10606
  const _super = Object.create(null, {
10607
10607
  delete: { get: () => super.delete }
10608
10608
  });
10609
- return __awaiter$3(this, void 0, void 0, function* () {
10609
+ return __awaiter$4(this, void 0, void 0, function* () {
10610
10610
  return _super.delete.call(this, entityOrId);
10611
10611
  });
10612
10612
  }
@@ -10633,7 +10633,7 @@
10633
10633
  const _super = Object.create(null, {
10634
10634
  update: { get: () => super.update }
10635
10635
  });
10636
- return __awaiter$3(this, void 0, void 0, function* () {
10636
+ return __awaiter$4(this, void 0, void 0, function* () {
10637
10637
  return _super.update.call(this, entity);
10638
10638
  });
10639
10639
  }
@@ -10662,7 +10662,7 @@
10662
10662
  const _super = Object.create(null, {
10663
10663
  create: { get: () => super.create }
10664
10664
  });
10665
- return __awaiter$3(this, void 0, void 0, function* () {
10665
+ return __awaiter$4(this, void 0, void 0, function* () {
10666
10666
  return _super.create.call(this, entity);
10667
10667
  });
10668
10668
  }
@@ -10685,7 +10685,7 @@
10685
10685
  * ```
10686
10686
  */
10687
10687
  regeneratePoPVerificationCode(entityOrId) {
10688
- return __awaiter$3(this, void 0, void 0, function* () {
10688
+ return __awaiter$4(this, void 0, void 0, function* () {
10689
10689
  const method = 'POST';
10690
10690
  const headers = { 'content-type': 'application/json', Accept: 'application/json' };
10691
10691
  const url = `${this.proofOfPossessionUrl}/${this.getEntityId(entityOrId)}/verification-code`;
@@ -10715,7 +10715,7 @@
10715
10715
  * ```
10716
10716
  */
10717
10717
  verifySignedVerificationCode(entityOrId, proofOfPossessionSignedVerificationCode) {
10718
- return __awaiter$3(this, void 0, void 0, function* () {
10718
+ return __awaiter$4(this, void 0, void 0, function* () {
10719
10719
  const method = 'POST';
10720
10720
  const headers = { 'content-type': 'application/json', Accept: 'application/json' };
10721
10721
  const url = `${this.proofOfPossessionUrl}/${this.getEntityId(entityOrId)}/pop`;
@@ -10741,6 +10741,105 @@
10741
10741
  }
10742
10742
  }
10743
10743
 
10744
+ var __awaiter$3 = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
10745
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
10746
+ return new (P || (P = Promise))(function (resolve, reject) {
10747
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
10748
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
10749
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
10750
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
10751
+ });
10752
+ };
10753
+ /**
10754
+ * This class allows for managing a list of certificate revocations.
10755
+ */
10756
+ class CrlService extends Service {
10757
+ get baseUrl() {
10758
+ return `/tenant/trusted-certificates/settings/crl`;
10759
+ }
10760
+ /**
10761
+ * Uploads a list of certificate revocations.
10762
+ * Adds new entries to the certificate revocation list,
10763
+ * the ones that already exist are updated.
10764
+ * No entries are removed from the certificate revocation list.
10765
+ *
10766
+ * @returns Returns a status object.
10767
+ *
10768
+ * **Example**
10769
+ * ```typescript
10770
+ *
10771
+ * const crls: ICertificateRevocation[] = [
10772
+ * { serialNumberInHex: '24234', revocationDate: '2023-01-13T23:00:00.000Z' }
10773
+ * ];
10774
+ *
10775
+ * (async () => {
10776
+ * const { res } = await crlService.uploadCrls(crls);
10777
+ * })();
10778
+ * ```
10779
+ */
10780
+ uploadCrls(crls) {
10781
+ return __awaiter$3(this, void 0, void 0, function* () {
10782
+ const method = 'PUT';
10783
+ const headers = { 'content-type': 'application/json', Accept: 'application/json' };
10784
+ const body = JSON.stringify({ crls });
10785
+ const res = yield this.fetch('', { method, body, headers });
10786
+ return { res, data: null };
10787
+ });
10788
+ }
10789
+ /**
10790
+ * Uploads a csv file containing a list of certificate revocations.
10791
+ * Adds new entries to the certificate revocation list,
10792
+ * the ones that already exist are updated.
10793
+ * No entries are removed from the certificate revocation list.
10794
+ *
10795
+ * File format:
10796
+ * SERIALNO,DATE
10797
+ * 1234567890abcdef,2023-01-01T00:00:00.000Z
10798
+ *
10799
+ * @returns Returns a status object.
10800
+ *
10801
+ * **Example**
10802
+ * ```typescript
10803
+ *
10804
+ * (async () => {
10805
+ * const { res } = await crlService.uploadCrlFile( file );
10806
+ * })();
10807
+ * ```
10808
+ */
10809
+ uploadCrlFile(file) {
10810
+ return __awaiter$3(this, void 0, void 0, function* () {
10811
+ const method = 'PUT';
10812
+ const body = new browser();
10813
+ body.append('file', file);
10814
+ const headers = {
10815
+ accept: 'application/json'
10816
+ };
10817
+ const res = yield this.fetch('', { method, body, headers });
10818
+ return { res, data: null };
10819
+ });
10820
+ }
10821
+ /**
10822
+ * Downloads a certificate revocation list file.
10823
+ * To open the downloaded file please use command: openssl crl -inform DER -text -noout -in fileName.crl
10824
+ *
10825
+ * @returns Returns a arrayBuffer wrapped in [[IFetchResponse]].
10826
+ *
10827
+ * **Example**
10828
+ * ```typescript
10829
+ *
10830
+ * (async () => {
10831
+ * const res = await this.crlService.downloadCrlFile();
10832
+ * const arrayBuffer = await res.arrayBuffer();
10833
+ * })();
10834
+ * ```
10835
+ */
10836
+ downloadCrlFile(init) {
10837
+ return __awaiter$3(this, void 0, void 0, function* () {
10838
+ return yield this.fetch('', init);
10839
+ });
10840
+ }
10841
+ }
10842
+
10744
10843
  var __awaiter$2 = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
10745
10844
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
10746
10845
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -11501,6 +11600,7 @@
11501
11600
  exports.BearerAuth = BearerAuth;
11502
11601
  exports.Client = Client;
11503
11602
  exports.CookieAuth = CookieAuth;
11603
+ exports.CrlService = CrlService;
11504
11604
  exports.DeviceRegistrationBulkService = DeviceRegistrationBulkService;
11505
11605
  exports.DeviceRegistrationService = DeviceRegistrationService;
11506
11606
  exports.EventBinaryService = EventBinaryService;