@northern.tech/store 0.2.0 → 0.2.1

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 (190) hide show
  1. package/dist/actions.js +183 -129
  2. package/dist/actions.js.map +1 -1
  3. package/dist/actions.mjs +13 -13
  4. package/dist/api/general-api.js +42 -55
  5. package/dist/api/general-api.js.map +1 -1
  6. package/dist/api/general-api.mjs +6 -6
  7. package/dist/api/users-api.js +44 -70
  8. package/dist/api/users-api.js.map +1 -1
  9. package/dist/api/users-api.mjs +7 -7
  10. package/dist/appSlice/constants.js +1 -39
  11. package/dist/appSlice/constants.js.map +1 -1
  12. package/dist/appSlice/constants.mjs +2 -2
  13. package/dist/appSlice/index.js +51 -68
  14. package/dist/appSlice/index.js.map +1 -1
  15. package/dist/appSlice/index.mjs +5 -5
  16. package/dist/appSlice/selectors.js +1 -43
  17. package/dist/appSlice/selectors.js.map +1 -1
  18. package/dist/appSlice/selectors.mjs +2 -2
  19. package/dist/appSlice/thunks.js +563 -544
  20. package/dist/appSlice/thunks.js.map +1 -1
  21. package/dist/appSlice/thunks.mjs +28 -28
  22. package/dist/auth.js +39 -55
  23. package/dist/auth.js.map +1 -1
  24. package/dist/auth.mjs +5 -5
  25. package/dist/{chunk-C2YZYTJ6.mjs → chunk-2Z3RFYW4.mjs} +2 -11
  26. package/dist/{chunk-C2YZYTJ6.mjs.map → chunk-2Z3RFYW4.mjs.map} +1 -1
  27. package/dist/{chunk-OWHFMKTA.mjs → chunk-3ORTTLIB.mjs} +19 -16
  28. package/dist/{chunk-OWHFMKTA.mjs.map → chunk-3ORTTLIB.mjs.map} +1 -1
  29. package/dist/{chunk-NCI6JV5R.mjs → chunk-4SDUITD4.mjs} +6 -12
  30. package/dist/{chunk-NCI6JV5R.mjs.map → chunk-4SDUITD4.mjs.map} +1 -1
  31. package/dist/{chunk-BOSBROA3.mjs → chunk-5VNQCCAQ.mjs} +2 -7
  32. package/dist/{chunk-BOSBROA3.mjs.map → chunk-5VNQCCAQ.mjs.map} +1 -1
  33. package/dist/{chunk-2P4VECEE.mjs → chunk-65YIOCCD.mjs} +6 -11
  34. package/dist/{chunk-2P4VECEE.mjs.map → chunk-65YIOCCD.mjs.map} +1 -1
  35. package/dist/{chunk-QG4PT5WK.mjs → chunk-6CSGHZ3E.mjs} +9 -21
  36. package/dist/{chunk-QG4PT5WK.mjs.map → chunk-6CSGHZ3E.mjs.map} +1 -1
  37. package/dist/{chunk-X65NMDPS.mjs → chunk-AZRVRNXT.mjs} +40 -30
  38. package/dist/{chunk-X65NMDPS.mjs.map → chunk-AZRVRNXT.mjs.map} +1 -1
  39. package/dist/{chunk-M4U5R7A4.mjs → chunk-B42NUKMZ.mjs} +2 -6
  40. package/dist/{chunk-M4U5R7A4.mjs.map → chunk-B42NUKMZ.mjs.map} +1 -1
  41. package/dist/{chunk-BWFTQHNM.mjs → chunk-CHUCIHMY.mjs} +3 -4
  42. package/dist/{chunk-BWFTQHNM.mjs.map → chunk-CHUCIHMY.mjs.map} +1 -1
  43. package/dist/{chunk-UPMSYTWW.mjs → chunk-DIZJVB6M.mjs} +306 -291
  44. package/dist/{chunk-UPMSYTWW.mjs.map → chunk-DIZJVB6M.mjs.map} +1 -1
  45. package/dist/chunk-H5UCKQWK.mjs +41 -0
  46. package/dist/{chunk-ENLZPHTQ.mjs.map → chunk-H5UCKQWK.mjs.map} +1 -1
  47. package/dist/{chunk-MQIKQKSW.mjs → chunk-IFWKT27G.mjs} +37 -33
  48. package/dist/{chunk-MQIKQKSW.mjs.map → chunk-IFWKT27G.mjs.map} +1 -1
  49. package/dist/{chunk-EM2HUGUY.mjs → chunk-JA27QXVB.mjs} +37 -28
  50. package/dist/{chunk-EM2HUGUY.mjs.map → chunk-JA27QXVB.mjs.map} +1 -1
  51. package/dist/{chunk-2HCZYULZ.mjs → chunk-K2NZL5V4.mjs} +3 -6
  52. package/dist/{chunk-2HCZYULZ.mjs.map → chunk-K2NZL5V4.mjs.map} +1 -1
  53. package/dist/{chunk-Y47SYXII.mjs → chunk-KJAZNKV2.mjs} +43 -52
  54. package/dist/{chunk-Y47SYXII.mjs.map → chunk-KJAZNKV2.mjs.map} +1 -1
  55. package/dist/{chunk-U6YTBIDT.mjs → chunk-KPPU6OWF.mjs} +27 -39
  56. package/dist/{chunk-U6YTBIDT.mjs.map → chunk-KPPU6OWF.mjs.map} +1 -1
  57. package/dist/{chunk-EFHEROXZ.mjs → chunk-KZSTW27Q.mjs} +30 -18
  58. package/dist/{chunk-EFHEROXZ.mjs.map → chunk-KZSTW27Q.mjs.map} +1 -1
  59. package/dist/chunk-LZOMFHX3.mjs +38 -0
  60. package/dist/{chunk-RWYS5MKN.mjs → chunk-NJNSCJEY.mjs} +22 -26
  61. package/dist/{chunk-RWYS5MKN.mjs.map → chunk-NJNSCJEY.mjs.map} +1 -1
  62. package/dist/{chunk-ZLRZO4EY.mjs → chunk-O6TYYKSD.mjs} +62 -60
  63. package/dist/chunk-O6TYYKSD.mjs.map +1 -0
  64. package/dist/{chunk-OGAMVFPS.mjs → chunk-QQBUNZHA.mjs} +2 -6
  65. package/dist/{chunk-OGAMVFPS.mjs.map → chunk-QQBUNZHA.mjs.map} +1 -1
  66. package/dist/{chunk-WS3YYLTJ.mjs → chunk-R7LXL3KJ.mjs} +14 -13
  67. package/dist/{chunk-WS3YYLTJ.mjs.map → chunk-R7LXL3KJ.mjs.map} +1 -1
  68. package/dist/{chunk-MJW4632R.mjs → chunk-WCUGLHYM.mjs} +16 -20
  69. package/dist/{chunk-MJW4632R.mjs.map → chunk-WCUGLHYM.mjs.map} +1 -1
  70. package/dist/chunk-WYHJFSMQ.mjs +25 -0
  71. package/dist/{chunk-L4HIW3KB.mjs.map → chunk-WYHJFSMQ.mjs.map} +1 -1
  72. package/dist/{chunk-XJNI62IP.mjs → chunk-XC5UXEIB.mjs} +4 -11
  73. package/dist/{chunk-XJNI62IP.mjs.map → chunk-XC5UXEIB.mjs.map} +1 -1
  74. package/dist/{chunk-4U4X4KAC.mjs → chunk-XD7INCM4.mjs} +11 -17
  75. package/dist/{chunk-4U4X4KAC.mjs.map → chunk-XD7INCM4.mjs.map} +1 -1
  76. package/dist/{chunk-ZZ6VIQ3U.mjs → chunk-ZE7R2XXE.mjs} +10 -12
  77. package/dist/{chunk-ZZ6VIQ3U.mjs.map → chunk-ZE7R2XXE.mjs.map} +1 -1
  78. package/dist/{chunk-4C6IY46N.mjs → chunk-ZK4W5T53.mjs} +7 -11
  79. package/dist/{chunk-4C6IY46N.mjs.map → chunk-ZK4W5T53.mjs.map} +1 -1
  80. package/dist/commonConstants.js +1 -35
  81. package/dist/commonConstants.js.map +1 -1
  82. package/dist/commonConstants.mjs +2 -2
  83. package/dist/commonSelectors.js +73 -135
  84. package/dist/commonSelectors.js.map +1 -1
  85. package/dist/commonSelectors.mjs +12 -12
  86. package/dist/constants.js +36 -153
  87. package/dist/constants.js.map +1 -1
  88. package/dist/constants.mjs +14 -14
  89. package/dist/deploymentsSlice/constants.js +34 -59
  90. package/dist/deploymentsSlice/constants.js.map +1 -1
  91. package/dist/deploymentsSlice/constants.mjs +4 -4
  92. package/dist/deploymentsSlice/index.js +68 -79
  93. package/dist/deploymentsSlice/index.js.map +1 -1
  94. package/dist/deploymentsSlice/index.mjs +5 -5
  95. package/dist/deploymentsSlice/selectors.js +35 -52
  96. package/dist/deploymentsSlice/selectors.js.map +1 -1
  97. package/dist/deploymentsSlice/selectors.mjs +5 -5
  98. package/dist/deploymentsSlice/thunks.js +563 -553
  99. package/dist/deploymentsSlice/thunks.js.map +1 -1
  100. package/dist/deploymentsSlice/thunks.mjs +28 -28
  101. package/dist/devicesSlice/constants.js +34 -58
  102. package/dist/devicesSlice/constants.js.map +1 -1
  103. package/dist/devicesSlice/constants.mjs +4 -4
  104. package/dist/devicesSlice/index.js +71 -81
  105. package/dist/devicesSlice/index.js.map +1 -1
  106. package/dist/devicesSlice/index.mjs +5 -5
  107. package/dist/devicesSlice/selectors.js +40 -89
  108. package/dist/devicesSlice/selectors.js.map +1 -1
  109. package/dist/devicesSlice/selectors.mjs +5 -5
  110. package/dist/devicesSlice/thunks.js +563 -589
  111. package/dist/devicesSlice/thunks.js.map +1 -1
  112. package/dist/devicesSlice/thunks.mjs +28 -28
  113. package/dist/monitorSlice/constants.js +34 -45
  114. package/dist/monitorSlice/constants.js.map +1 -1
  115. package/dist/monitorSlice/constants.mjs +4 -4
  116. package/dist/monitorSlice/index.js +41 -52
  117. package/dist/monitorSlice/index.js.map +1 -1
  118. package/dist/monitorSlice/index.mjs +5 -5
  119. package/dist/monitorSlice/selectors.js +0 -4
  120. package/dist/monitorSlice/selectors.mjs +1 -1
  121. package/dist/monitorSlice/thunks.js +249 -232
  122. package/dist/monitorSlice/thunks.js.map +1 -1
  123. package/dist/monitorSlice/thunks.mjs +25 -25
  124. package/dist/onboardingSlice/constants.js +0 -5
  125. package/dist/onboardingSlice/constants.mjs +1 -1
  126. package/dist/onboardingSlice/index.js +1 -22
  127. package/dist/onboardingSlice/index.js.map +1 -1
  128. package/dist/onboardingSlice/index.mjs +2 -2
  129. package/dist/onboardingSlice/selectors.js +0 -4
  130. package/dist/onboardingSlice/selectors.mjs +1 -1
  131. package/dist/onboardingSlice/thunks.js +563 -547
  132. package/dist/onboardingSlice/thunks.js.map +1 -1
  133. package/dist/onboardingSlice/thunks.mjs +28 -28
  134. package/dist/organizationSlice/constants.js +34 -56
  135. package/dist/organizationSlice/constants.js.map +1 -1
  136. package/dist/organizationSlice/constants.mjs +4 -4
  137. package/dist/organizationSlice/index.js +45 -53
  138. package/dist/organizationSlice/index.js.map +1 -1
  139. package/dist/organizationSlice/index.mjs +5 -5
  140. package/dist/organizationSlice/selectors.js +35 -61
  141. package/dist/organizationSlice/selectors.js.map +1 -1
  142. package/dist/organizationSlice/selectors.mjs +5 -5
  143. package/dist/organizationSlice/thunks.js +563 -572
  144. package/dist/organizationSlice/thunks.js.map +1 -1
  145. package/dist/organizationSlice/thunks.mjs +28 -28
  146. package/dist/releasesSlice/constants.js +0 -7
  147. package/dist/releasesSlice/constants.mjs +1 -1
  148. package/dist/releasesSlice/index.js +38 -64
  149. package/dist/releasesSlice/index.js.map +1 -1
  150. package/dist/releasesSlice/index.mjs +5 -5
  151. package/dist/releasesSlice/selectors.js +37 -57
  152. package/dist/releasesSlice/selectors.js.map +1 -1
  153. package/dist/releasesSlice/selectors.mjs +6 -6
  154. package/dist/releasesSlice/thunks.js +293 -281
  155. package/dist/releasesSlice/thunks.js.map +1 -1
  156. package/dist/releasesSlice/thunks.mjs +25 -25
  157. package/dist/selectors.js +73 -207
  158. package/dist/selectors.js.map +1 -1
  159. package/dist/selectors.mjs +43 -43
  160. package/dist/store.js +194 -151
  161. package/dist/store.js.map +1 -1
  162. package/dist/store.mjs +16 -16
  163. package/dist/storehooks.js +568 -547
  164. package/dist/storehooks.js.map +1 -1
  165. package/dist/storehooks.mjs +38 -41
  166. package/dist/storehooks.mjs.map +1 -1
  167. package/dist/thunks.js +563 -702
  168. package/dist/thunks.js.map +1 -1
  169. package/dist/thunks.mjs +28 -28
  170. package/dist/usersSlice/constants.js +36 -66
  171. package/dist/usersSlice/constants.js.map +1 -1
  172. package/dist/usersSlice/constants.mjs +4 -4
  173. package/dist/usersSlice/index.js +62 -71
  174. package/dist/usersSlice/index.js.map +1 -1
  175. package/dist/usersSlice/index.mjs +5 -5
  176. package/dist/usersSlice/selectors.js +41 -66
  177. package/dist/usersSlice/selectors.js.map +1 -1
  178. package/dist/usersSlice/selectors.mjs +6 -6
  179. package/dist/usersSlice/thunks.js +563 -576
  180. package/dist/usersSlice/thunks.js.map +1 -1
  181. package/dist/usersSlice/thunks.mjs +28 -28
  182. package/dist/utils.js +57 -93
  183. package/dist/utils.js.map +1 -1
  184. package/dist/utils.mjs +5 -5
  185. package/package.json +66 -1
  186. package/dist/chunk-ENLZPHTQ.mjs +0 -35
  187. package/dist/chunk-L4HIW3KB.mjs +0 -36
  188. package/dist/chunk-XWBD7VOK.mjs +0 -93
  189. package/dist/chunk-ZLRZO4EY.mjs.map +0 -1
  190. /package/dist/{chunk-XWBD7VOK.mjs.map → chunk-LZOMFHX3.mjs.map} +0 -0
@@ -1,40 +1,10 @@
1
1
  "use strict";
2
2
  var __create = Object.create;
3
3
  var __defProp = Object.defineProperty;
4
- var __defProps = Object.defineProperties;
5
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
7
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
8
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
9
6
  var __getProtoOf = Object.getPrototypeOf;
10
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
11
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
12
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13
- var __spreadValues = (a, b) => {
14
- for (var prop in b || (b = {}))
15
- if (__hasOwnProp.call(b, prop))
16
- __defNormalProp(a, prop, b[prop]);
17
- if (__getOwnPropSymbols)
18
- for (var prop of __getOwnPropSymbols(b)) {
19
- if (__propIsEnum.call(b, prop))
20
- __defNormalProp(a, prop, b[prop]);
21
- }
22
- return a;
23
- };
24
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
25
- var __restKey = (key) => typeof key === "symbol" ? key : key + "";
26
- var __objRest = (source, exclude) => {
27
- var target = {};
28
- for (var prop in source)
29
- if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
30
- target[prop] = source[prop];
31
- if (source != null && __getOwnPropSymbols)
32
- for (var prop of __getOwnPropSymbols(source)) {
33
- if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
34
- target[prop] = source[prop];
35
- }
36
- return target;
37
- };
38
8
  var __export = (target, all) => {
39
9
  for (var name in all)
40
10
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -101,7 +71,7 @@ var chartTypes = {
101
71
  };
102
72
  var emptyChartSelection = { software: "", group: "", chartType: chartTypes.bar.key, attribute: "artifact_name" };
103
73
  var defaultReportType = "distribution";
104
- var defaultReports = [__spreadProps(__spreadValues({}, emptyChartSelection), { group: null, attribute: "artifact_name", type: defaultReportType })];
74
+ var defaultReports = [{ ...emptyChartSelection, group: null, attribute: "artifact_name", type: defaultReportType }];
105
75
  var PLANS = {
106
76
  os: {
107
77
  id: "os",
@@ -430,7 +400,7 @@ var emptyRole = Object.freeze({
430
400
  name: void 0,
431
401
  description: "",
432
402
  permissions: [],
433
- uiPermissions: Object.freeze(__spreadValues({}, emptyUiPermissions))
403
+ uiPermissions: Object.freeze({ ...emptyUiPermissions })
434
404
  });
435
405
 
436
406
  // src/deploymentsSlice/constants.ts
@@ -459,11 +429,12 @@ var deploymentStatesToSubstates = {
459
429
  pending: [deploymentSubstates.pending],
460
430
  successes: [deploymentSubstates.success, deploymentSubstates.alreadyInstalled, deploymentSubstates.noartifact]
461
431
  };
462
- var deploymentStatesToSubstatesWithSkipped = __spreadProps(__spreadValues({}, deploymentStatesToSubstates), {
432
+ var deploymentStatesToSubstatesWithSkipped = {
433
+ ...deploymentStatesToSubstates,
463
434
  failures: [deploymentSubstates.failure],
464
435
  skipped: [deploymentSubstates.aborted, deploymentSubstates.noartifact, deploymentSubstates.alreadyInstalled, deploymentSubstates.decommissioned],
465
436
  successes: [deploymentSubstates.success]
466
- });
437
+ };
467
438
  var installationSubstatesMap = {
468
439
  download: {
469
440
  title: "download",
@@ -508,8 +479,8 @@ var DEPLOYMENT_STATES = {
508
479
  var listDefaultsByState = {
509
480
  [DEPLOYMENT_STATES.inprogress]: { page: 1, perPage: 10 },
510
481
  [DEPLOYMENT_STATES.pending]: { page: 1, perPage: 10 },
511
- [DEPLOYMENT_STATES.scheduled]: __spreadValues({}, DEVICE_LIST_DEFAULTS),
512
- [DEPLOYMENT_STATES.finished]: __spreadValues({}, DEVICE_LIST_DEFAULTS),
482
+ [DEPLOYMENT_STATES.scheduled]: { ...DEVICE_LIST_DEFAULTS },
483
+ [DEPLOYMENT_STATES.finished]: { ...DEVICE_LIST_DEFAULTS },
513
484
  sort: { direction: SORTING_OPTIONS.desc }
514
485
  };
515
486
  var DEFAULT_PENDING_INPROGRESS_COUNT = 10;
@@ -856,54 +827,59 @@ var rolesById = Object.freeze({
856
827
  description: "Full access",
857
828
  permissions: [],
858
829
  // permissions refers to the values returned from the backend
859
- uiPermissions: __spreadProps(__spreadValues({}, emptyUiPermissions), {
830
+ uiPermissions: {
831
+ ...emptyUiPermissions,
860
832
  auditlog: uiPermissionsByArea.auditlog.uiPermissions.map(permissionMapper),
861
833
  deployments: uiPermissionsByArea.deployments.uiPermissions.map(permissionMapper),
862
834
  groups: { [ALL_DEVICES]: uiPermissionsByArea.groups.uiPermissions.map(permissionMapper) },
863
835
  releases: { [ALL_RELEASES]: uiPermissionsByArea.releases.uiPermissions.map(permissionMapper) },
864
836
  userManagement: uiPermissionsByArea.userManagement.uiPermissions.map(permissionMapper)
865
- })
837
+ }
866
838
  },
867
839
  [staticRolesByName.readOnly]: {
868
840
  name: "Read Access",
869
841
  value: staticRolesByName.readOnly,
870
842
  description: "",
871
843
  permissions: [],
872
- uiPermissions: __spreadProps(__spreadValues({}, emptyUiPermissions), {
844
+ uiPermissions: {
845
+ ...emptyUiPermissions,
873
846
  deployments: [uiPermissionsById.read.value],
874
847
  groups: { [ALL_DEVICES]: [uiPermissionsById.read.value] },
875
848
  releases: { [ALL_RELEASES]: [uiPermissionsById.read.value] },
876
849
  userManagement: [uiPermissionsById.read.value]
877
- })
850
+ }
878
851
  },
879
852
  [staticRolesByName.ci]: {
880
853
  name: "Releases Manager",
881
854
  value: staticRolesByName.ci,
882
855
  description: "",
883
856
  permissions: [],
884
- uiPermissions: __spreadProps(__spreadValues({}, emptyUiPermissions), {
857
+ uiPermissions: {
858
+ ...emptyUiPermissions,
885
859
  releases: { [ALL_RELEASES]: uiPermissionsByArea.releases.uiPermissions.map(permissionMapper) }
886
- })
860
+ }
887
861
  },
888
862
  [staticRolesByName.deploymentsManager]: {
889
863
  name: "Deployments Manager",
890
864
  value: staticRolesByName.deploymentsManager,
891
865
  description: "",
892
866
  permissions: [],
893
- uiPermissions: __spreadProps(__spreadValues({}, emptyUiPermissions), {
867
+ uiPermissions: {
868
+ ...emptyUiPermissions,
894
869
  deployments: uiPermissionsByArea.deployments.uiPermissions.map(permissionMapper),
895
870
  groups: { [ALL_DEVICES]: [uiPermissionsById.deploy.value, uiPermissionsById.read.value] },
896
871
  releases: { [ALL_RELEASES]: [uiPermissionsById.read.value] }
897
- })
872
+ }
898
873
  },
899
874
  [staticRolesByName.terminalAccess]: {
900
875
  name: "Troubleshooting",
901
876
  value: staticRolesByName.terminalAccess,
902
877
  description: "Access to the troubleshooting features: Remote Terminal, File Transfer, Port Forwarding",
903
878
  permissions: [],
904
- uiPermissions: __spreadProps(__spreadValues({}, emptyUiPermissions), {
879
+ uiPermissions: {
880
+ ...emptyUiPermissions,
905
881
  groups: { [ALL_DEVICES]: [uiPermissionsById.connect.value] }
906
- })
882
+ }
907
883
  }
908
884
  });
909
885
  var serviceProviderRolesById = {
@@ -912,22 +888,24 @@ var serviceProviderRolesById = {
912
888
  value: staticRolesByName.admin,
913
889
  description: "Full access",
914
890
  permissions: [],
915
- uiPermissions: __spreadProps(__spreadValues({}, emptyUiPermissions), {
891
+ uiPermissions: {
892
+ ...emptyUiPermissions,
916
893
  auditlog: uiPermissionsByArea.auditlog.uiPermissions.map(permissionMapper),
917
894
  userManagement: uiPermissionsByArea.userManagement.uiPermissions.map(permissionMapper),
918
895
  tenantManagement: uiPermissionsByArea.tenantManagement.uiPermissions.map(permissionMapper)
919
- })
896
+ }
920
897
  },
921
898
  readOnly: {
922
899
  name: "Read access",
923
900
  value: staticRolesByName.admin,
924
901
  description: "This role can see all linked organizations but cannot make any changes",
925
902
  permissions: [],
926
- uiPermissions: __spreadProps(__spreadValues({}, emptyUiPermissions), {
903
+ uiPermissions: {
904
+ ...emptyUiPermissions,
927
905
  auditlog: [uiPermissionsById.read.value],
928
906
  userManagement: [uiPermissionsById.read.value],
929
907
  tenantManagement: [uiPermissionsById.read.value]
930
- })
908
+ }
931
909
  }
932
910
  };
933
911
  var defaultPermissionSets = {
@@ -940,7 +918,9 @@ var defaultPermissionSets = {
940
918
  },
941
919
  [permissionSetIds.SuperUser]: {
942
920
  name: permissionSetIds.SuperUser,
943
- result: __spreadValues({}, rolesById[staticRolesByName.admin].uiPermissions)
921
+ result: {
922
+ ...rolesById[staticRolesByName.admin].uiPermissions
923
+ }
944
924
  },
945
925
  [permissionSetIds.ManageUsers]: {
946
926
  name: permissionSetIds.ManageUsers,
@@ -1024,11 +1004,12 @@ var defaultPermissionSets = {
1024
1004
  }
1025
1005
  };
1026
1006
  var USER_LOGOUT = "USER_LOGOUT";
1027
- var rolesByName = __spreadProps(__spreadValues({}, staticRolesByName), {
1007
+ var rolesByName = {
1008
+ ...staticRolesByName,
1028
1009
  deploymentCreation: { action: "CREATE_DEPLOYMENT", object: { type: "DEVICE_GROUP", value: void 0 } },
1029
1010
  groupAccess: { action: "VIEW_DEVICE", object: { type: "DEVICE_GROUP", value: void 0 } },
1030
1011
  userManagement: { action: "http", object: { type: "any", value: `${useradmApiUrlv1}/.*` } }
1031
- });
1012
+ };
1032
1013
  var twoFAStates = {
1033
1014
  enabled: "enabled",
1034
1015
  disabled: "disabled",
@@ -1116,7 +1097,10 @@ var appSlice = (0, import_toolkit.createSlice)({
1116
1097
  initialState,
1117
1098
  reducers: {
1118
1099
  setFeatures: (state, action) => {
1119
- state.features = __spreadValues(__spreadValues({}, state.features), action.payload);
1100
+ state.features = {
1101
+ ...state.features,
1102
+ ...action.payload
1103
+ };
1120
1104
  },
1121
1105
  setSnackbar: (state, { payload }) => {
1122
1106
  let { message, autoHideDuration, action, children, onClick, onClose } = payload;
@@ -1141,7 +1125,10 @@ var appSlice = (0, import_toolkit.createSlice)({
1141
1125
  state.hostedAnnouncement = action.payload;
1142
1126
  },
1143
1127
  setSearchState: (state, action) => {
1144
- state.searchState = __spreadValues(__spreadValues({}, state.searchState), action.payload);
1128
+ state.searchState = {
1129
+ ...state.searchState,
1130
+ ...action.payload
1131
+ };
1145
1132
  },
1146
1133
  setOfflineThreshold: (state, action) => {
1147
1134
  state.offlineThreshold = action.payload;
@@ -1152,20 +1139,23 @@ var appSlice = (0, import_toolkit.createSlice)({
1152
1139
  },
1153
1140
  uploadProgress: (state, action) => {
1154
1141
  const { id, progress: progress2 } = action.payload;
1155
- state.uploadsById[id] = __spreadProps(__spreadValues({}, state.uploadsById[id]), {
1142
+ state.uploadsById[id] = {
1143
+ ...state.uploadsById[id],
1156
1144
  progress: progress2
1157
- });
1145
+ };
1158
1146
  },
1159
1147
  cleanUpUpload: (state, action) => {
1160
- var _a;
1161
- const _b2 = state.uploadsById, { [_a = action.payload]: current } = _b2, remainder = __objRest(_b2, [__restKey(_a)]);
1148
+ const { [action.payload]: current, ...remainder } = state.uploadsById;
1162
1149
  state.uploadsById = remainder;
1163
1150
  },
1164
1151
  setVersionInformation: (state, action) => {
1165
- state.versionInformation = __spreadValues(__spreadValues({}, state.versionInformation), action.payload);
1152
+ state.versionInformation = {
1153
+ ...state.versionInformation,
1154
+ ...action.payload
1155
+ };
1166
1156
  },
1167
1157
  setEnvironmentData: (state, action) => {
1168
- return __spreadValues(__spreadValues({}, state), action.payload);
1158
+ return { ...state, ...action.payload };
1169
1159
  }
1170
1160
  }
1171
1161
  });
@@ -1197,7 +1187,7 @@ var initialState2 = {
1197
1187
  sourceWindow: -1
1198
1188
  },
1199
1189
  binaryDeltaLimits: {
1200
- timeout: __spreadProps(__spreadValues({}, limitDefault), { default: 60, max: 3600, min: 60 }),
1190
+ timeout: { ...limitDefault, default: 60, max: 3600, min: 60 },
1201
1191
  sourceWindow: limitDefault,
1202
1192
  inputWindow: limitDefault,
1203
1193
  duplicatesWindow: limitDefault,
@@ -1207,10 +1197,10 @@ var initialState2 = {
1207
1197
  deploymentDeviceLimit: 5e3,
1208
1198
  selectedDeviceIds: [],
1209
1199
  selectionState: {
1210
- finished: __spreadProps(__spreadValues({}, DEVICE_LIST_DEFAULTS), { endDate: void 0, search: "", selection: [], startDate: void 0, total: 0, type: "" }),
1211
- inprogress: __spreadProps(__spreadValues({}, DEVICE_LIST_DEFAULTS), { perPage: DEFAULT_PENDING_INPROGRESS_COUNT, selection: [] }),
1212
- pending: __spreadProps(__spreadValues({}, DEVICE_LIST_DEFAULTS), { perPage: DEFAULT_PENDING_INPROGRESS_COUNT, selection: [] }),
1213
- scheduled: __spreadProps(__spreadValues({}, DEVICE_LIST_DEFAULTS), { selection: [] }),
1200
+ finished: { ...DEVICE_LIST_DEFAULTS, endDate: void 0, search: "", selection: [], startDate: void 0, total: 0, type: "" },
1201
+ inprogress: { ...DEVICE_LIST_DEFAULTS, perPage: DEFAULT_PENDING_INPROGRESS_COUNT, selection: [] },
1202
+ pending: { ...DEVICE_LIST_DEFAULTS, perPage: DEFAULT_PENDING_INPROGRESS_COUNT, selection: [] },
1203
+ scheduled: { ...DEVICE_LIST_DEFAULTS, selection: [] },
1214
1204
  general: {
1215
1205
  state: DEPLOYMENT_ROUTES.active.key,
1216
1206
  showCreationDialog: false,
@@ -1226,40 +1216,55 @@ var deploymentsSlice = (0, import_toolkit2.createSlice)({
1226
1216
  initialState: initialState2,
1227
1217
  reducers: {
1228
1218
  createdDeployment: (state, action) => {
1229
- state.byId[action.payload.id] = __spreadValues(__spreadValues({}, deploymentPrototype), action.payload);
1219
+ state.byId[action.payload.id] = {
1220
+ ...deploymentPrototype,
1221
+ ...action.payload
1222
+ };
1230
1223
  state.byStatus[DEPLOYMENT_STATES.pending].total = state.byStatus[DEPLOYMENT_STATES.pending].total + 1;
1231
1224
  state.byStatus[DEPLOYMENT_STATES.pending].deploymentIds = [...state.byStatus.pending.deploymentIds, action.payload.id];
1232
1225
  state.selectionState[DEPLOYMENT_STATES.pending].selection = [action.payload.id, ...state.selectionState[DEPLOYMENT_STATES.pending].selection], state.selectionState[DEPLOYMENT_STATES.pending].total = state.selectionState[DEPLOYMENT_STATES.pending].total + 1;
1233
1226
  },
1234
1227
  removedDeployment: (state, action) => {
1235
- var _a;
1236
- const _b2 = state.byId, { [_a = action.payload]: removedDeployment } = _b2, remainder = __objRest(_b2, [__restKey(_a)]);
1228
+ const { [action.payload]: removedDeployment, ...remainder } = state.byId;
1237
1229
  state.byId = remainder;
1238
1230
  },
1239
1231
  receivedDeployment: (state, action) => {
1240
- state.byId[action.payload.id] = __spreadValues(__spreadValues({}, state.byId[action.payload.id] || {}), action.payload);
1232
+ state.byId[action.payload.id] = {
1233
+ ...state.byId[action.payload.id] || {},
1234
+ ...action.payload
1235
+ };
1241
1236
  },
1242
1237
  receivedDeploymentDeviceLog: (state, action) => {
1243
1238
  const { id, deviceId, log } = action.payload;
1244
- const deployment = __spreadValues(__spreadValues({}, deploymentPrototype), state.byId[id]);
1245
- state.byId[id] = __spreadProps(__spreadValues({}, deployment), {
1246
- devices: __spreadProps(__spreadValues({}, deployment.devices), {
1247
- [deviceId]: __spreadProps(__spreadValues({}, deployment.devices[deviceId]), {
1239
+ const deployment = {
1240
+ ...deploymentPrototype,
1241
+ ...state.byId[id]
1242
+ };
1243
+ state.byId[id] = {
1244
+ ...deployment,
1245
+ devices: {
1246
+ ...deployment.devices,
1247
+ [deviceId]: {
1248
+ ...deployment.devices[deviceId],
1248
1249
  log
1249
- })
1250
- })
1251
- });
1250
+ }
1251
+ }
1252
+ };
1252
1253
  },
1253
1254
  receivedDeploymentDevices: (state, action) => {
1254
1255
  const { id, devices, selectedDeviceIds, totalDeviceCount } = action.payload;
1255
- state.byId[id] = __spreadProps(__spreadValues({}, state.byId[id]), {
1256
+ state.byId[id] = {
1257
+ ...state.byId[id],
1256
1258
  devices,
1257
1259
  totalDeviceCount
1258
- });
1260
+ };
1259
1261
  state.selectedDeviceIds = selectedDeviceIds;
1260
1262
  },
1261
1263
  receivedDeployments: (state, action) => {
1262
- state.byId = __spreadValues(__spreadValues({}, state.byId), action.payload);
1264
+ state.byId = {
1265
+ ...state.byId,
1266
+ ...action.payload
1267
+ };
1263
1268
  },
1264
1269
  receivedDeploymentsForStatus: (state, action) => {
1265
1270
  const { status, deploymentIds, total } = action.payload;
@@ -1301,9 +1306,9 @@ var initialState3 = {
1301
1306
  [DEVICE_STATES.preauth]: { deviceIds: [], total: 0 },
1302
1307
  [DEVICE_STATES.rejected]: { deviceIds: [], total: 0 }
1303
1308
  },
1304
- deviceList: __spreadProps(__spreadValues({
1305
- deviceIds: []
1306
- }, DEVICE_LIST_DEFAULTS), {
1309
+ deviceList: {
1310
+ deviceIds: [],
1311
+ ...DEVICE_LIST_DEFAULTS,
1307
1312
  selectedAttributes: [],
1308
1313
  selectedIssues: [],
1309
1314
  selection: [],
@@ -1314,7 +1319,7 @@ var initialState3 = {
1314
1319
  },
1315
1320
  state: DEVICE_STATES.accepted,
1316
1321
  total: 0
1317
- }),
1322
+ },
1318
1323
  filters: [
1319
1324
  // { key: 'device_type', value: 'raspberry', operator: '$eq', scope: 'inventory' }
1320
1325
  ],
@@ -1349,49 +1354,59 @@ var devicesSlice = (0, import_toolkit3.createSlice)({
1349
1354
  },
1350
1355
  addToGroup: (state, action) => {
1351
1356
  const { group, deviceIds } = action.payload;
1352
- const maybeExistingGroup = __spreadValues({
1357
+ const maybeExistingGroup = {
1353
1358
  filters: [],
1354
- deviceIds: []
1355
- }, state.groups.byId[group]);
1356
- state.groups.byId[group] = __spreadProps(__spreadValues({}, maybeExistingGroup), {
1359
+ deviceIds: [],
1360
+ ...state.groups.byId[group]
1361
+ };
1362
+ state.groups.byId[group] = {
1363
+ ...maybeExistingGroup,
1357
1364
  deviceIds: [...maybeExistingGroup.deviceIds, ...deviceIds].filter(import_helpers.duplicateFilter),
1358
1365
  total: (maybeExistingGroup.total || 0) + 1
1359
- });
1366
+ };
1360
1367
  },
1361
1368
  removeFromGroup: (state, action) => {
1362
1369
  const { group, deviceIds: removedIds } = action.payload;
1363
- const _a = state.groups.byId[group] || {}, { deviceIds = [], total = 0 } = _a, maybeExistingGroup = __objRest(_a, ["deviceIds", "total"]);
1364
- const changedGroup = __spreadProps(__spreadValues({}, maybeExistingGroup), {
1370
+ const { deviceIds = [], total = 0, ...maybeExistingGroup } = state.groups.byId[group] || {};
1371
+ const changedGroup = {
1372
+ ...maybeExistingGroup,
1365
1373
  deviceIds: deviceIds.filter((id) => !removedIds.includes(id)),
1366
1374
  total: Math.max(total - removedIds.length, 0)
1367
- });
1375
+ };
1368
1376
  if (changedGroup.total || changedGroup.deviceIds.length) {
1369
1377
  state.groups.byId[group] = changedGroup;
1370
1378
  return;
1371
1379
  } else if (state.groups.selectedGroup === group) {
1372
1380
  state.groups.selectedGroup = void 0;
1373
1381
  }
1374
- const _b2 = state.groups.byId, { [group]: removal } = _b2, remainingById = __objRest(_b2, [__restKey(group)]);
1382
+ const { [group]: removal, ...remainingById } = state.groups.byId;
1375
1383
  state.groups.byId = remainingById;
1376
1384
  },
1377
1385
  addGroup: (state, action) => {
1378
1386
  const { groupName, group } = action.payload;
1379
- state.groups.byId[groupName] = __spreadValues(__spreadValues({}, state.groups.byId[groupName]), group);
1387
+ state.groups.byId[groupName] = {
1388
+ ...state.groups.byId[groupName],
1389
+ ...group
1390
+ };
1380
1391
  },
1381
1392
  selectGroup: (state, { payload: group }) => {
1382
1393
  state.deviceList.deviceIds = state.groups.byId[group] && state.groups.byId[group].deviceIds.length > 0 ? state.groups.byId[group].deviceIds : [];
1383
1394
  state.groups.selectedGroup = group;
1384
1395
  },
1385
1396
  removeGroup: (state, action) => {
1386
- var _a;
1387
- const _b2 = state.groups.byId, { [_a = action.payload]: removal } = _b2, remainingById = __objRest(_b2, [__restKey(_a)]);
1397
+ const { [action.payload]: removal, ...remainingById } = state.groups.byId;
1388
1398
  state.groups.byId = remainingById;
1389
1399
  state.groups.selectedGroup = state.groups.selectedGroup === action.payload ? void 0 : state.groups.selectedGroup;
1390
1400
  },
1391
1401
  setDeviceListState: (state, action) => {
1392
- state.deviceList = __spreadProps(__spreadValues(__spreadValues({}, state.deviceList), action.payload), {
1393
- sort: __spreadValues(__spreadValues({}, state.deviceList.sort), action.payload.sort)
1394
- });
1402
+ state.deviceList = {
1403
+ ...state.deviceList,
1404
+ ...action.payload,
1405
+ sort: {
1406
+ ...state.deviceList.sort,
1407
+ ...action.payload.sort
1408
+ }
1409
+ };
1395
1410
  },
1396
1411
  setFilterAttributes: (state, action) => {
1397
1412
  state.filteringAttributes = action.payload;
@@ -1400,7 +1415,10 @@ var devicesSlice = (0, import_toolkit3.createSlice)({
1400
1415
  state.filteringAttributesConfig = action.payload;
1401
1416
  },
1402
1417
  receivedDevices: (state, action) => {
1403
- state.byId = __spreadValues(__spreadValues({}, state.byId), action.payload);
1418
+ state.byId = {
1419
+ ...state.byId,
1420
+ ...action.payload
1421
+ };
1404
1422
  },
1405
1423
  setDeviceFilters: (state, action) => {
1406
1424
  if ((0, import_helpers.deepCompare)(action.payload, state.filters)) {
@@ -1431,7 +1449,10 @@ var devicesSlice = (0, import_toolkit3.createSlice)({
1431
1449
  state.limit = action.payload;
1432
1450
  },
1433
1451
  receivedDevice: (state, action) => {
1434
- state.byId[action.payload.id] = __spreadValues(__spreadValues({}, state.byId[action.payload.id]), action.payload);
1452
+ state.byId[action.payload.id] = {
1453
+ ...state.byId[action.payload.id],
1454
+ ...action.payload
1455
+ };
1435
1456
  },
1436
1457
  maybeUpdateDevicesByStatus: (state, action) => {
1437
1458
  const { deviceId, authId } = action.payload;
@@ -1452,15 +1473,17 @@ var import_toolkit4 = require("@reduxjs/toolkit");
1452
1473
  var sliceName4 = "monitor";
1453
1474
  var initialState4 = {
1454
1475
  alerts: {
1455
- alertList: __spreadProps(__spreadValues({}, DEVICE_LIST_DEFAULTS), { total: 0 }),
1476
+ alertList: { ...DEVICE_LIST_DEFAULTS, total: 0 },
1456
1477
  byDeviceId: {}
1457
1478
  },
1458
1479
  issueCounts: {
1459
- byType: Object.values(DEVICE_ISSUE_OPTIONS).reduce((accu, { key }) => __spreadProps(__spreadValues({}, accu), { [key]: { filtered: 0, total: 0 } }), {})
1480
+ byType: Object.values(DEVICE_ISSUE_OPTIONS).reduce((accu, { key }) => ({ ...accu, [key]: { filtered: 0, total: 0 } }), {})
1460
1481
  },
1461
1482
  settings: {
1462
1483
  global: {
1463
- channels: __spreadValues({}, Object.keys(alertChannels).reduce((accu, item) => __spreadProps(__spreadValues({}, accu), { [item]: { enabled: true } }), {}))
1484
+ channels: {
1485
+ ...Object.keys(alertChannels).reduce((accu, item) => ({ ...accu, [item]: { enabled: true } }), {})
1486
+ }
1464
1487
  }
1465
1488
  }
1466
1489
  };
@@ -1478,14 +1501,14 @@ var monitorSlice = (0, import_toolkit4.createSlice)({
1478
1501
  },
1479
1502
  receiveLatestDeviceAlerts: (state, action) => {
1480
1503
  const { deviceId, alerts } = action.payload;
1481
- state.alerts.byDeviceId[deviceId] = __spreadProps(__spreadValues({}, state.alerts.byDeviceId[deviceId]), { latest: alerts });
1504
+ state.alerts.byDeviceId[deviceId] = { ...state.alerts.byDeviceId[deviceId], latest: alerts };
1482
1505
  },
1483
1506
  receiveDeviceIssueCounts: (state, action) => {
1484
1507
  const { issueType, counts } = action.payload;
1485
1508
  state.issueCounts.byType[issueType] = counts;
1486
1509
  },
1487
1510
  setAlertListState: (state, action) => {
1488
- state.alerts.alertList = __spreadValues(__spreadValues({}, state.alerts.alertList), action.payload);
1511
+ state.alerts.alertList = { ...state.alerts.alertList, ...action.payload };
1489
1512
  }
1490
1513
  }
1491
1514
  });
@@ -1509,7 +1532,7 @@ var onboardingSlice = (0, import_toolkit5.createSlice)({
1509
1532
  initialState: initialState5,
1510
1533
  reducers: {
1511
1534
  setOnboardingState: (state, action) => {
1512
- return __spreadValues(__spreadValues({}, state), action.payload);
1535
+ return { ...state, ...action.payload };
1513
1536
  },
1514
1537
  setDemoArtifactPort: (state, action) => {
1515
1538
  state.demoArtifactPort = action.payload;
@@ -1547,7 +1570,8 @@ var initialState6 = {
1547
1570
  brand: ""
1548
1571
  },
1549
1572
  intentId: null,
1550
- tenantList: __spreadProps(__spreadValues({}, TENANT_LIST_DEFAULT), {
1573
+ tenantList: {
1574
+ ...TENANT_LIST_DEFAULT,
1551
1575
  total: 0,
1552
1576
  tenants: [],
1553
1577
  selectedTenant: null,
@@ -1555,13 +1579,14 @@ var initialState6 = {
1555
1579
  direction: SORTING_OPTIONS.desc,
1556
1580
  key: "name"
1557
1581
  }
1558
- }),
1582
+ },
1559
1583
  organization: {
1560
1584
  // id, name, status, tenant_token, plan
1561
1585
  },
1562
1586
  auditlog: {
1563
1587
  events: [],
1564
- selectionState: __spreadProps(__spreadValues({}, DEVICE_LIST_DEFAULTS), {
1588
+ selectionState: {
1589
+ ...DEVICE_LIST_DEFAULTS,
1565
1590
  detail: void 0,
1566
1591
  endDate: void 0,
1567
1592
  selectedIssue: void 0,
@@ -1570,7 +1595,7 @@ var initialState6 = {
1570
1595
  total: 0,
1571
1596
  type: void 0,
1572
1597
  user: void 0
1573
- })
1598
+ }
1574
1599
  },
1575
1600
  externalDeviceIntegrations: [
1576
1601
  // { <connection_string|x509|...>, id, provider }
@@ -1593,7 +1618,10 @@ var organizationSlice = (0, import_toolkit6.createSlice)({
1593
1618
  state.auditlog.selectionState.total = total;
1594
1619
  },
1595
1620
  setAuditLogState: (state, action) => {
1596
- state.auditlog.selectionState = __spreadValues(__spreadValues({}, state.auditlog.selectionState), action.payload);
1621
+ state.auditlog.selectionState = {
1622
+ ...state.auditlog.selectionState,
1623
+ ...action.payload
1624
+ };
1597
1625
  },
1598
1626
  receiveCurrentCard: (state, action) => {
1599
1627
  state.card = action.payload;
@@ -1602,7 +1630,7 @@ var organizationSlice = (0, import_toolkit6.createSlice)({
1602
1630
  state.intentId = action.payload;
1603
1631
  },
1604
1632
  setOrganization: (state, action) => {
1605
- state.organization = __spreadValues(__spreadValues({}, state.organization), action.payload);
1633
+ state.organization = { ...state.organization, ...action.payload };
1606
1634
  },
1607
1635
  setTenantListState: (state, action) => {
1608
1636
  state.tenantList = action.payload;
@@ -1665,7 +1693,8 @@ var initialState7 = {
1665
1693
  }
1666
1694
  */
1667
1695
  },
1668
- releasesList: __spreadProps(__spreadValues({}, DEVICE_LIST_DEFAULTS), {
1696
+ releasesList: {
1697
+ ...DEVICE_LIST_DEFAULTS,
1669
1698
  searchedIds: [],
1670
1699
  releaseIds: [],
1671
1700
  selection: [],
@@ -1679,7 +1708,7 @@ var initialState7 = {
1679
1708
  selectedTags: [],
1680
1709
  total: 0,
1681
1710
  type: ""
1682
- }),
1711
+ },
1683
1712
  tags: [],
1684
1713
  updateTypes: [],
1685
1714
  /*
@@ -1705,8 +1734,7 @@ var releaseSlice = (0, import_toolkit7.createSlice)({
1705
1734
  state.updateTypes = action.payload;
1706
1735
  },
1707
1736
  removeRelease: (state, action) => {
1708
- var _a;
1709
- const _b2 = state.byId, { [_a = action.payload]: toBeRemoved } = _b2, byId = __objRest(_b2, [__restKey(_a)]);
1737
+ const { [action.payload]: toBeRemoved, ...byId } = state.byId;
1710
1738
  state.byId = byId;
1711
1739
  state.selectedRelease = action.payload === state.selectedRelease ? null : state.selectedRelease;
1712
1740
  },
@@ -1739,8 +1767,12 @@ var initialState8 = {
1739
1767
  previousPhases: [],
1740
1768
  retries: 0
1741
1769
  },
1742
- permissionSetsById: __spreadValues({}, defaultPermissionSets),
1743
- rolesById: __spreadValues({}, rolesById),
1770
+ permissionSetsById: {
1771
+ ...defaultPermissionSets
1772
+ },
1773
+ rolesById: {
1774
+ ...rolesById
1775
+ },
1744
1776
  settingsInitialized: false,
1745
1777
  showConnectDeviceDialog: false,
1746
1778
  showFeedbackDialog: false,
@@ -1780,13 +1812,15 @@ var usersSlice = (0, import_toolkit8.createSlice)({
1780
1812
  state.byId[0] = action.payload;
1781
1813
  },
1782
1814
  removedUser: (state, action) => {
1783
- var _a;
1784
- const _b2 = state.byId, { [_a = action.payload]: removedUser } = _b2, byId = __objRest(_b2, [__restKey(_a)]);
1815
+ const { [action.payload]: removedUser, ...byId } = state.byId;
1785
1816
  state.byId = byId;
1786
1817
  state.currentUser = state.currentUser === action.payload ? null : state.currentUser;
1787
1818
  },
1788
1819
  updatedUser: (state, action) => {
1789
- state.byId[action.payload.id] = __spreadValues(__spreadValues({}, state.byId[action.payload.id]), action.payload);
1820
+ state.byId[action.payload.id] = {
1821
+ ...state.byId[action.payload.id],
1822
+ ...action.payload
1823
+ };
1790
1824
  },
1791
1825
  receivedPermissionSets: (state, action) => {
1792
1826
  state.permissionSetsById = action.payload;
@@ -1795,11 +1829,13 @@ var usersSlice = (0, import_toolkit8.createSlice)({
1795
1829
  state.rolesById = action.payload;
1796
1830
  },
1797
1831
  createdRole: (state, action) => {
1798
- state.rolesById[action.payload.name] = __spreadValues(__spreadValues({}, state.rolesById[action.payload.name]), action.payload);
1832
+ state.rolesById[action.payload.name] = {
1833
+ ...state.rolesById[action.payload.name],
1834
+ ...action.payload
1835
+ };
1799
1836
  },
1800
1837
  removedRole: (state, action) => {
1801
- var _a;
1802
- const _b2 = state.rolesById, { [_a = action.payload]: toBeRemoved } = _b2, rolesById2 = __objRest(_b2, [__restKey(_a)]);
1838
+ const { [action.payload]: toBeRemoved, ...rolesById2 } = state.rolesById;
1803
1839
  state.rolesById = rolesById2;
1804
1840
  },
1805
1841
  setCustomColumns: (state, action) => {
@@ -1807,18 +1843,27 @@ var usersSlice = (0, import_toolkit8.createSlice)({
1807
1843
  },
1808
1844
  setGlobalSettings: (state, action) => {
1809
1845
  state.settingsInitialized = true;
1810
- state.globalSettings = __spreadValues(__spreadValues({}, state.globalSettings), action.payload);
1846
+ state.globalSettings = {
1847
+ ...state.globalSettings,
1848
+ ...action.payload
1849
+ };
1811
1850
  },
1812
1851
  setUserSettings: (state, action) => {
1813
1852
  state.userSettingsInitialized = true;
1814
- state.userSettings = __spreadValues(__spreadValues({}, state.userSettings), action.payload);
1853
+ state.userSettings = {
1854
+ ...state.userSettings,
1855
+ ...action.payload
1856
+ };
1815
1857
  },
1816
1858
  setTooltipState: (state, action) => {
1817
1859
  const { id, readState = READ_STATES.read } = action.payload;
1818
1860
  state.tooltips.byId[id].readState = readState;
1819
1861
  },
1820
1862
  setTooltipsState: (state, action) => {
1821
- state.tooltips.byId = __spreadValues(__spreadValues({}, state.tooltips.byId), action.payload);
1863
+ state.tooltips.byId = {
1864
+ ...state.tooltips.byId,
1865
+ ...action.payload
1866
+ };
1822
1867
  },
1823
1868
  setShowFeedbackDialog: (state, action) => {
1824
1869
  state.showFeedbackDialog = action.payload;
@@ -1835,7 +1880,16 @@ var actions8 = usersSlice.actions;
1835
1880
  var usersSlice_default = usersSlice.reducer;
1836
1881
 
1837
1882
  // src/actions.ts
1838
- var actions_default = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, actions), actions2), actions3), actions4), actions5), actions6), actions7), actions8);
1883
+ var actions_default = {
1884
+ ...actions,
1885
+ ...actions2,
1886
+ ...actions3,
1887
+ ...actions4,
1888
+ ...actions5,
1889
+ ...actions6,
1890
+ ...actions7,
1891
+ ...actions8
1892
+ };
1839
1893
 
1840
1894
  // src/api/general-api.ts
1841
1895
  var import_axios = __toESM(require("axios"));
@@ -1846,18 +1900,17 @@ var cookies = new import_universal_cookie.default();
1846
1900
  var emptySession = Object.freeze({ token: "", exiresAt: void 0 });
1847
1901
  var tokenCache = "";
1848
1902
  var getSessionInfo = () => {
1849
- var _a, _b2;
1850
- let sessionInfo = __spreadValues({}, emptySession);
1903
+ let sessionInfo = { ...emptySession };
1851
1904
  try {
1852
- sessionInfo = JSON.parse((_a = window.localStorage.getItem("JWT")) != null ? _a : "");
1853
- } catch (e) {
1905
+ sessionInfo = JSON.parse(window.localStorage.getItem("JWT") ?? "");
1906
+ } catch {
1854
1907
  }
1855
1908
  if (sessionInfo.expiresAt && new Date(sessionInfo.expiresAt) < /* @__PURE__ */ new Date()) {
1856
1909
  cleanUp();
1857
- return __spreadValues({}, emptySession);
1910
+ return { ...emptySession };
1858
1911
  }
1859
1912
  if (!sessionInfo.token) {
1860
- let jwtTokenFromCookie = (_b2 = cookies.get("JWT", { doNotParse: true })) != null ? _b2 : "";
1913
+ let jwtTokenFromCookie = cookies.get("JWT", { doNotParse: true }) ?? "";
1861
1914
  if (jwtTokenFromCookie) {
1862
1915
  setSessionInfo({ token: jwtTokenFromCookie, undefined: void 0 });
1863
1916
  sessionInfo.token = jwtTokenFromCookie;
@@ -1884,8 +1937,7 @@ var cleanUp = () => {
1884
1937
 
1885
1938
  // src/api/general-api.ts
1886
1939
  var unauthorizedRedirect = (error) => {
1887
- var _a;
1888
- if (!(0, import_axios.isCancel)(error) && ((_a = error.response) == null ? void 0 : _a.status) === 401 && getToken()) {
1940
+ if (!(0, import_axios.isCancel)(error) && error.response?.status === 401 && getToken()) {
1889
1941
  cleanUp();
1890
1942
  window.location.replace("/ui/");
1891
1943
  }
@@ -1895,7 +1947,7 @@ var commonRequestConfig = { timeout: TIMEOUTS.refreshDefault, headers: { "Conten
1895
1947
  var authenticatedRequest = import_axios.default.create(commonRequestConfig);
1896
1948
  authenticatedRequest.interceptors.response.use((res) => res, unauthorizedRedirect);
1897
1949
  authenticatedRequest.interceptors.request.use(
1898
- (config) => __spreadProps(__spreadValues({}, config), { headers: __spreadProps(__spreadValues({}, config.headers), { Authorization: `Bearer ${getToken()}` }) }),
1950
+ (config) => ({ ...config, headers: { ...config.headers, Authorization: `Bearer ${getToken()}` } }),
1899
1951
  (error) => Promise.reject(error)
1900
1952
  );
1901
1953
  var Api = {
@@ -1903,7 +1955,7 @@ var Api = {
1903
1955
  delete: (url, data) => authenticatedRequest.request({ method: "delete", url, data }),
1904
1956
  patch: authenticatedRequest.patch,
1905
1957
  post: authenticatedRequest.post,
1906
- postUnauthorized: (url, data, config = {}) => import_axios.default.post(url, data, __spreadValues(__spreadValues({}, commonRequestConfig), config)),
1958
+ postUnauthorized: (url, data, config = {}) => import_axios.default.post(url, data, { ...commonRequestConfig, ...config }),
1907
1959
  put: authenticatedRequest.put,
1908
1960
  upload: (url, formData, progress2, cancelSignal) => authenticatedRequest.post(url, formData, {
1909
1961
  headers: { "Content-Type": "multipart/form-data" },
@@ -1934,10 +1986,7 @@ var getSearchState = (state) => state.app.searchState;
1934
1986
  var getSearchedDevices = (0, import_toolkit9.createSelector)([getSearchState], ({ deviceIds }) => deviceIds);
1935
1987
  var getVersionInformation = (0, import_toolkit9.createSelector)(
1936
1988
  [getFullVersionInformation, getFeatures],
1937
- (_a, { isHosted }) => {
1938
- var _b2 = _a, { Integration } = _b2, remainder = __objRest(_b2, ["Integration"]);
1939
- return isHosted && Integration !== "next" ? remainder : __spreadProps(__spreadValues({}, remainder), { Integration });
1940
- }
1989
+ ({ Integration, ...remainder }, { isHosted }) => isHosted && Integration !== "next" ? remainder : { ...remainder, Integration }
1941
1990
  );
1942
1991
  var getIsPreview = (0, import_toolkit9.createSelector)([getFullVersionInformation], ({ Integration }) => (0, import_helpers2.versionCompare)(Integration, "next") > -1);
1943
1992
 
@@ -1954,8 +2003,7 @@ var getDeploymentsSelectionState = (state) => state.deployments.selectionState;
1954
2003
  var getMappedDeploymentSelection = (0, import_toolkit10.createSelector)(
1955
2004
  [getDeploymentsSelectionState, (_, deploymentsState) => deploymentsState, getDeploymentsById],
1956
2005
  (selectionState, deploymentsState, deploymentsById) => {
1957
- var _a;
1958
- const { selection = [] } = (_a = selectionState[deploymentsState]) != null ? _a : {};
2006
+ const { selection = [] } = selectionState[deploymentsState] ?? {};
1959
2007
  return selection.reduce((accu, id) => {
1960
2008
  if (deploymentsById[id]) {
1961
2009
  accu.push(deploymentsById[id]);
@@ -1997,7 +2045,8 @@ var getSelectedGroup = (state) => state.devices.groups.selectedGroup;
1997
2045
  var getListedDevices = (state) => state.devices.deviceList.deviceIds;
1998
2046
  var getFilteringAttributes = (state) => state.devices.filteringAttributes;
1999
2047
  var getFilteringAttributesFromConfig = (state) => state.devices.filteringAttributesConfig.attributes;
2000
- var getSortedFilteringAttributes = (0, import_toolkit11.createSelector)([getFilteringAttributes], (filteringAttributes) => __spreadProps(__spreadValues({}, filteringAttributes), {
2048
+ var getSortedFilteringAttributes = (0, import_toolkit11.createSelector)([getFilteringAttributes], (filteringAttributes) => ({
2049
+ ...filteringAttributes,
2001
2050
  identityAttributes: [...filteringAttributes.identityAttributes, "id"]
2002
2051
  }));
2003
2052
  var getDeviceLimit = (state) => state.devices.limit;
@@ -2025,10 +2074,7 @@ var getDeviceCountsByStatus = (0, import_toolkit11.createSelector)(
2025
2074
  return accu;
2026
2075
  }, {})
2027
2076
  );
2028
- var getDeviceById = (0, import_toolkit11.createSelector)([getDevicesById, (_, deviceId) => deviceId], (devicesById, deviceId = "") => {
2029
- var _a;
2030
- return (_a = devicesById[deviceId]) != null ? _a : {};
2031
- });
2077
+ var getDeviceById = (0, import_toolkit11.createSelector)([getDevicesById, (_, deviceId) => deviceId], (devicesById, deviceId = "") => devicesById[deviceId] ?? {});
2032
2078
  var getSelectedGroupInfo = (0, import_toolkit11.createSelector)(
2033
2079
  [getAcceptedDevices, getGroupsById, getSelectedGroup],
2034
2080
  ({ total: acceptedDeviceTotal }, groupsById, selectedGroup) => {
@@ -2045,17 +2091,13 @@ var getLimitMaxed = (0, import_toolkit11.createSelector)(
2045
2091
  [getAcceptedDevices, getDeviceLimit],
2046
2092
  ({ total: acceptedDevices = 0 }, deviceLimit) => Boolean(deviceLimit && deviceLimit <= acceptedDevices)
2047
2093
  );
2048
- var _b;
2049
- var getGroupsByIdWithoutUngrouped = (0, import_toolkit11.createSelector)([getGroupsById], (_a) => {
2050
- var _c = _a, { [_b = UNGROUPED_GROUP.id]: ungrouped } = _c, groups = __objRest(_c, [__restKey(_b)]);
2051
- return groups;
2052
- });
2094
+ var getGroupsByIdWithoutUngrouped = (0, import_toolkit11.createSelector)([getGroupsById], ({ [UNGROUPED_GROUP.id]: ungrouped, ...groups }) => groups);
2053
2095
  var getGroups = (0, import_toolkit11.createSelector)([getGroupsById], (groupsById) => {
2054
2096
  const groupNames = Object.keys(groupsById).sort();
2055
2097
  const groupedGroups = Object.entries(groupsById).sort((a, b) => a[0].localeCompare(b[0])).reduce(
2056
2098
  (accu, [groupname, group]) => {
2057
2099
  const name = groupname === UNGROUPED_GROUP.id ? UNGROUPED_GROUP.name : groupname;
2058
- const groupItem = __spreadProps(__spreadValues({}, group), { groupId: name, name: groupname });
2100
+ const groupItem = { ...group, groupId: name, name: groupname };
2059
2101
  if (group.filters.length > 0) {
2060
2102
  if (groupname !== UNGROUPED_GROUP.id) {
2061
2103
  accu.dynamic.push(groupItem);
@@ -2069,7 +2111,7 @@ var getGroups = (0, import_toolkit11.createSelector)([getGroupsById], (groupsByI
2069
2111
  },
2070
2112
  { dynamic: [], static: [], ungrouped: [] }
2071
2113
  );
2072
- return __spreadValues({ groupNames }, groupedGroups);
2114
+ return { groupNames, ...groupedGroups };
2073
2115
  });
2074
2116
  var getAttributesList = (0, import_toolkit11.createSelector)(
2075
2117
  [getFilteringAttributes, getFilteringAttributesFromConfig],
@@ -2107,10 +2149,7 @@ var getWebhookEvents = (state) => state.organization.webhooks.events;
2107
2149
  var getWebhookEventTotal = (state) => state.organization.webhooks.eventTotal;
2108
2150
  var getDeviceTwinIntegrations = (0, import_toolkit12.createSelector)(
2109
2151
  [getExternalIntegrations],
2110
- (integrations) => integrations.filter((integration) => {
2111
- var _a;
2112
- return integration.id && ((_a = EXTERNAL_PROVIDER[integration.provider]) == null ? void 0 : _a.deviceTwin);
2113
- })
2152
+ (integrations) => integrations.filter((integration) => integration.id && EXTERNAL_PROVIDER[integration.provider]?.deviceTwin)
2114
2153
  );
2115
2154
  var getIsServiceProvider = (state) => state.organization.organization.service_provider;
2116
2155
  var getWebhooks = (0, import_toolkit12.createSelector)(
@@ -2144,25 +2183,21 @@ var filterProcessors = {
2144
2183
  var filterAliases = {
2145
2184
  $nexists: { alias: DEVICE_FILTERING_OPTIONS.$exists.key, value: false }
2146
2185
  };
2147
- var mapFiltersToTerms = (filters) => filters.map((filter) => {
2148
- var _a;
2149
- return {
2150
- scope: filter.scope,
2151
- attribute: filter.key,
2152
- type: ((_a = filterAliases[filter.operator]) == null ? void 0 : _a.alias) || filter.operator,
2153
- value: filterProcessors.hasOwnProperty(filter.operator) ? filterProcessors[filter.operator](filter.value) : filter.value
2154
- };
2155
- });
2186
+ var mapFiltersToTerms = (filters) => filters.map((filter) => ({
2187
+ scope: filter.scope,
2188
+ attribute: filter.key,
2189
+ type: filterAliases[filter.operator]?.alias || filter.operator,
2190
+ value: filterProcessors.hasOwnProperty(filter.operator) ? filterProcessors[filter.operator](filter.value) : filter.value
2191
+ }));
2156
2192
  var convertIssueOptionsToFilters = (issuesSelection, filtersState = {}) => issuesSelection.map((item) => {
2157
2193
  if (typeof DEVICE_ISSUE_OPTIONS[item].filterRule.value === "function") {
2158
- return __spreadProps(__spreadValues({}, DEVICE_ISSUE_OPTIONS[item].filterRule), { value: DEVICE_ISSUE_OPTIONS[item].filterRule.value(filtersState) });
2194
+ return { ...DEVICE_ISSUE_OPTIONS[item].filterRule, value: DEVICE_ISSUE_OPTIONS[item].filterRule.value(filtersState) };
2159
2195
  }
2160
2196
  return DEVICE_ISSUE_OPTIONS[item].filterRule;
2161
2197
  });
2162
2198
  var convertDeviceListStateToFilters = ({ filters = [], group, groups = { byId: {} }, offlineThreshold, selectedIssues = [], status }) => {
2163
- var _a;
2164
2199
  let applicableFilters = [...filters];
2165
- if (typeof group === "string" && !(((_a = groups.byId[group]) == null ? void 0 : _a.filters) || applicableFilters).length) {
2200
+ if (typeof group === "string" && !(groups.byId[group]?.filters || applicableFilters).length) {
2166
2201
  applicableFilters.push({ key: "group", value: group, operator: DEVICE_FILTERING_OPTIONS.$eq.key, scope: "system" });
2167
2202
  }
2168
2203
  const nonMonitorFilters = applicableFilters.filter(
@@ -2178,12 +2213,12 @@ var convertDeviceListStateToFilters = ({ filters = [], group, groups = { byId: {
2178
2213
  var listItemMapper = (byId, ids, { defaultObject = {}, cutOffSize = DEVICE_LIST_MAXIMUM_LENGTH }) => {
2179
2214
  return ids.slice(0, cutOffSize).reduce((accu, id) => {
2180
2215
  if (id && byId[id]) {
2181
- accu.push(__spreadValues(__spreadValues({}, defaultObject), byId[id]));
2216
+ accu.push({ ...defaultObject, ...byId[id] });
2182
2217
  }
2183
2218
  return accu;
2184
2219
  }, []);
2185
2220
  };
2186
- var mergePermissions = (existingPermissions = __spreadValues({}, emptyUiPermissions), addedPermissions) => Object.entries(existingPermissions).reduce(
2221
+ var mergePermissions = (existingPermissions = { ...emptyUiPermissions }, addedPermissions) => Object.entries(existingPermissions).reduce(
2187
2222
  (accu, [key, value]) => {
2188
2223
  let values;
2189
2224
  if (!accu[key]) {
@@ -2193,12 +2228,12 @@ var mergePermissions = (existingPermissions = __spreadValues({}, emptyUiPermissi
2193
2228
  if (Array.isArray(value)) {
2194
2229
  values = [...value, ...accu[key]].filter(import_helpers4.duplicateFilter);
2195
2230
  } else {
2196
- values = mergePermissions(accu[key], __spreadValues({}, value));
2231
+ values = mergePermissions(accu[key], { ...value });
2197
2232
  }
2198
2233
  accu[key] = values;
2199
2234
  return accu;
2200
2235
  },
2201
- __spreadValues({}, addedPermissions)
2236
+ { ...addedPermissions }
2202
2237
  );
2203
2238
  var mapUserRolesToUiPermissions = (userRoles, roles) => userRoles.reduce(
2204
2239
  (accu, roleId) => {
@@ -2207,20 +2242,17 @@ var mapUserRolesToUiPermissions = (userRoles, roles) => userRoles.reduce(
2207
2242
  }
2208
2243
  return mergePermissions(accu, roles[roleId].uiPermissions);
2209
2244
  },
2210
- __spreadValues({}, emptyUiPermissions)
2245
+ { ...emptyUiPermissions }
2211
2246
  );
2212
2247
  var progress = ({ loaded, total }) => {
2213
2248
  let uploadProgress3 = loaded / total * 100;
2214
2249
  return uploadProgress3 = uploadProgress3 < 50 ? Math.ceil(uploadProgress3) : Math.round(uploadProgress3);
2215
2250
  };
2216
- var extractErrorMessage = (err, fallback = "") => {
2217
- var _a, _b2, _c, _d, _e;
2218
- return ((_c = (_b2 = (_a = err.response) == null ? void 0 : _a.data) == null ? void 0 : _b2.error) == null ? void 0 : _c.message) || ((_e = (_d = err.response) == null ? void 0 : _d.data) == null ? void 0 : _e.error) || err.error || err.message || fallback;
2219
- };
2251
+ var extractErrorMessage = (err, fallback = "") => err.response?.data?.error?.message || err.response?.data?.error || err.error || err.message || fallback;
2220
2252
  var preformatWithRequestID = (res, failMsg) => {
2221
2253
  if (failMsg.length > 100) failMsg = `${failMsg.substring(0, 220)}...`;
2222
2254
  try {
2223
- if ((res == null ? void 0 : res.data) && Object.keys(res.data).includes("request_id")) {
2255
+ if (res?.data && Object.keys(res.data).includes("request_id")) {
2224
2256
  let shortRequestUUID = res.data["request_id"].substring(0, 8);
2225
2257
  return `${failMsg} [Request ID: ${shortRequestUUID}]`;
2226
2258
  }
@@ -2240,15 +2272,12 @@ var getReleaseListState = (state) => state.releases.releasesList;
2240
2272
  var getListedReleases = (state) => state.releases.releasesList.releaseIds;
2241
2273
  var getReleaseMappingDefaults = () => ({});
2242
2274
  var getReleasesList = (0, import_toolkit13.createSelector)([getReleasesById, getListedReleases, getReleaseMappingDefaults], listItemMapper);
2243
- var getReleaseTagsById = (0, import_toolkit13.createSelector)([getReleaseTags], (releaseTags) => releaseTags.reduce((accu, key) => __spreadProps(__spreadValues({}, accu), { [key]: key }), {}));
2275
+ var getReleaseTagsById = (0, import_toolkit13.createSelector)([getReleaseTags], (releaseTags) => releaseTags.reduce((accu, key) => ({ ...accu, [key]: key }), {}));
2244
2276
  var getHasReleases = (0, import_toolkit13.createSelector)(
2245
2277
  [getReleaseListState, getReleasesById],
2246
2278
  ({ searchTotal, total }, byId) => !!(Object.keys(byId).length || total || searchTotal)
2247
2279
  );
2248
- var getSelectedRelease = (0, import_toolkit13.createSelector)([getReleasesById, getSelectedReleaseId], (byId, id) => {
2249
- var _a;
2250
- return (_a = byId[id]) != null ? _a : {};
2251
- });
2280
+ var getSelectedRelease = (0, import_toolkit13.createSelector)([getReleasesById, getSelectedReleaseId], (byId, id) => byId[id] ?? {});
2252
2281
 
2253
2282
  // src/usersSlice/selectors.ts
2254
2283
  var import_toolkit14 = require("@reduxjs/toolkit");
@@ -2257,10 +2286,7 @@ var getTooltipsById = (state) => state.users.tooltips.byId;
2257
2286
  var getGlobalSettings = (state) => state.users.globalSettings;
2258
2287
  var getCurrentUserId = (state) => state.users.currentUser;
2259
2288
  var getUsersById = (state) => state.users.byId;
2260
- var getCurrentUser = (0, import_toolkit14.createSelector)([getUsersById, getCurrentUserId], (usersById, userId) => {
2261
- var _a;
2262
- return (_a = usersById[userId]) != null ? _a : {};
2263
- });
2289
+ var getCurrentUser = (0, import_toolkit14.createSelector)([getUsersById, getCurrentUserId], (usersById, userId) => usersById[userId] ?? {});
2264
2290
  var getUserSettings = (state) => state.users.userSettings;
2265
2291
  var getIsDarkMode = (0, import_toolkit14.createSelector)([getUserSettings], ({ mode }) => isDarkMode(mode));
2266
2292
  var getShowHelptips = (0, import_toolkit14.createSelector)(
@@ -2271,22 +2297,22 @@ var getTooltipsState = (0, import_toolkit14.createSelector)(
2271
2297
  [getTooltipsById, getUserSettings],
2272
2298
  (byId, { tooltips = {} }) => Object.entries(byId).reduce(
2273
2299
  (accu, [id, value]) => {
2274
- accu[id] = __spreadValues(__spreadValues({}, accu[id]), value);
2300
+ accu[id] = { ...accu[id], ...value };
2275
2301
  return accu;
2276
2302
  },
2277
- __spreadValues({}, tooltips)
2303
+ { ...tooltips }
2278
2304
  )
2279
2305
  );
2280
2306
  var getHas2FA = (0, import_toolkit14.createSelector)(
2281
2307
  [getCurrentUser],
2282
2308
  (currentUser) => currentUser.hasOwnProperty("tfa_status") && currentUser.tfa_status === twoFAStates.enabled
2283
2309
  );
2284
- var getIdAttribute = (0, import_toolkit14.createSelector)([getGlobalSettings], ({ id_attribute = __spreadValues({}, defaultIdAttribute) }) => id_attribute);
2310
+ var getIdAttribute = (0, import_toolkit14.createSelector)([getGlobalSettings], ({ id_attribute = { ...defaultIdAttribute } }) => id_attribute);
2285
2311
  var getOfflineThresholdSettings = (0, import_toolkit14.createSelector)([getGlobalSettings], ({ offlineThreshold }) => ({
2286
- interval: (offlineThreshold == null ? void 0 : offlineThreshold.interval) || DEVICE_ONLINE_CUTOFF.interval,
2287
- intervalUnit: (offlineThreshold == null ? void 0 : offlineThreshold.intervalUnit) || DEVICE_ONLINE_CUTOFF.intervalName
2312
+ interval: offlineThreshold?.interval || DEVICE_ONLINE_CUTOFF.interval,
2313
+ intervalUnit: offlineThreshold?.intervalUnit || DEVICE_ONLINE_CUTOFF.intervalName
2288
2314
  }));
2289
- var getRolesList = (0, import_toolkit14.createSelector)([getRolesById], (rolesById2) => Object.entries(rolesById2).map(([id, role]) => __spreadValues({ id }, role)));
2315
+ var getRolesList = (0, import_toolkit14.createSelector)([getRolesById], (rolesById2) => Object.entries(rolesById2).map(([id, role]) => ({ id, ...role })));
2290
2316
 
2291
2317
  // src/commonSelectors.ts
2292
2318
  var getIsEnterprise = (0, import_toolkit15.createSelector)(
@@ -2304,8 +2330,7 @@ var getSearchEndpoint = (0, import_toolkit15.createSelector)(
2304
2330
  var getUserRoles = (0, import_toolkit15.createSelector)(
2305
2331
  [getCurrentUser, getRolesById, getIsEnterprise, getFeatures, getOrganization],
2306
2332
  (currentUser, rolesById2, isEnterprise, { isHosted, hasMultitenancy }, { plan = PLANS.os.id }) => {
2307
- var _a;
2308
- const isAdmin = ((_a = currentUser.roles) == null ? void 0 : _a.length) ? currentUser.roles.some((role) => role === rolesByName.admin) : !(hasMultitenancy || isEnterprise || isHosted && plan !== PLANS.os.id);
2333
+ const isAdmin = currentUser.roles?.length ? currentUser.roles.some((role) => role === rolesByName.admin) : !(hasMultitenancy || isEnterprise || isHosted && plan !== PLANS.os.id);
2309
2334
  const uiPermissions = isAdmin ? mapUserRolesToUiPermissions([rolesByName.admin], rolesById2) : mapUserRolesToUiPermissions(currentUser.roles || [], rolesById2);
2310
2335
  return { isAdmin, uiPermissions };
2311
2336
  }
@@ -2374,10 +2399,11 @@ var getFilterAttributes = (0, import_toolkit15.createSelector)(
2374
2399
  const deviceNameAttribute = { key: "name", value: "Name", scope: ATTRIBUTE_SCOPES.tags, category: ATTRIBUTE_SCOPES.tags, priority: 1 };
2375
2400
  const deviceIdAttribute = { key: "id", value: "Device ID", scope: ATTRIBUTE_SCOPES.identity, category: ATTRIBUTE_SCOPES.identity, priority: 1 };
2376
2401
  const checkInAttribute = { key: "check_in_time", value: "Latest activity", scope: ATTRIBUTE_SCOPES.system, category: ATTRIBUTE_SCOPES.system, priority: 4 };
2377
- const updateAttribute = __spreadProps(__spreadValues({}, checkInAttribute), { key: "updated_ts", value: "Last inventory update" });
2402
+ const updateAttribute = { ...checkInAttribute, key: "updated_ts", value: "Last inventory update" };
2378
2403
  const firstRequestAttribute = { key: "created_ts", value: "First request", scope: ATTRIBUTE_SCOPES.system, category: ATTRIBUTE_SCOPES.system, priority: 4 };
2379
2404
  const attributes = [
2380
- ...previousFilters.map((item) => __spreadProps(__spreadValues({}, item), {
2405
+ ...previousFilters.map((item) => ({
2406
+ ...item,
2381
2407
  value: deviceIdAttribute.key === item.key ? deviceIdAttribute.value : item.key,
2382
2408
  category: "recently used",
2383
2409
  priority: 0
@@ -2395,14 +2421,13 @@ var getFilterAttributes = (0, import_toolkit15.createSelector)(
2395
2421
  return (0, import_helpers5.attributeDuplicateFilter)(attributes, "key");
2396
2422
  }
2397
2423
  );
2398
- var getOnboardingState = (0, import_toolkit15.createSelector)([getOnboarding, getUserSettings], (_a, { onboarding = {} }) => {
2399
- var _b2 = _a, { complete, progress: progress2, showTips } = _b2, remainder = __objRest(_b2, ["complete", "progress", "showTips"]);
2400
- return __spreadProps(__spreadValues(__spreadValues({}, remainder), onboarding), {
2401
- complete: onboarding.complete || complete,
2402
- progress: Object.keys(onboardingSteps).findIndex((step) => step === progress2) > Object.keys(onboardingSteps).findIndex((step) => step === onboarding.progress) ? progress2 : onboarding.progress,
2403
- showTips: !onboarding.showTips ? onboarding.showTips : showTips
2404
- });
2405
- });
2424
+ var getOnboardingState = (0, import_toolkit15.createSelector)([getOnboarding, getUserSettings], ({ complete, progress: progress2, showTips, ...remainder }, { onboarding = {} }) => ({
2425
+ ...remainder,
2426
+ ...onboarding,
2427
+ complete: onboarding.complete || complete,
2428
+ progress: Object.keys(onboardingSteps).findIndex((step) => step === progress2) > Object.keys(onboardingSteps).findIndex((step) => step === onboarding.progress) ? progress2 : onboarding.progress,
2429
+ showTips: !onboarding.showTips ? onboarding.showTips : showTips
2430
+ }));
2406
2431
  var getDemoDeviceAddress = (0, import_toolkit15.createSelector)([getDevicesById, getOnboarding], (devicesById, { approach, demoArtifactPort }) => {
2407
2432
  const demoDeviceAddress = `http://${(0, import_helpers5.getDemoDeviceAddress)(Object.values(devicesById), approach)}`;
2408
2433
  return demoArtifactPort ? `${demoDeviceAddress}:${demoArtifactPort}` : demoDeviceAddress;
@@ -2423,12 +2448,11 @@ var getDeploymentRelease = (0, import_toolkit15.createSelector)(
2423
2448
  var getSelectedDeploymentData = (0, import_toolkit15.createSelector)(
2424
2449
  [getDeploymentsById, getDeploymentsSelectionState, getDevicesById, getSelectedDeploymentDeviceIds],
2425
2450
  (deploymentsById, { selectedId }, devicesById, selectedDeviceIds) => {
2426
- var _a;
2427
- const deployment = (_a = deploymentsById[selectedId]) != null ? _a : {};
2451
+ const deployment = deploymentsById[selectedId] ?? {};
2428
2452
  const { devices = {} } = deployment;
2429
2453
  return {
2430
2454
  deployment,
2431
- selectedDevices: selectedDeviceIds.map((deviceId) => __spreadValues(__spreadValues({}, devicesById[deviceId]), devices[deviceId]))
2455
+ selectedDevices: selectedDeviceIds.map((deviceId) => ({ ...devicesById[deviceId], ...devices[deviceId] }))
2432
2456
  };
2433
2457
  }
2434
2458
  );
@@ -2443,8 +2467,7 @@ var getAvailableIssueOptionsByType = (0, import_toolkit15.createSelector)(
2443
2467
  }, {})
2444
2468
  );
2445
2469
  var getGroupNames = (0, import_toolkit15.createSelector)([getGroupsById, getUserRoles, (_, options = {}) => options], (groupsById, { uiPermissions }, { staticOnly }) => {
2446
- var _a;
2447
- const _b2 = groupsById, { [_a = UNGROUPED_GROUP.id]: ungrouped } = _b2, groups = __objRest(_b2, [__restKey(_a)]);
2470
+ const { [UNGROUPED_GROUP.id]: ungrouped, ...groups } = groupsById;
2448
2471
  if (staticOnly) {
2449
2472
  return Object.keys(uiPermissions.groups).sort();
2450
2473
  }
@@ -2478,9 +2501,9 @@ var getAuditlogDevice = (0, import_toolkit15.createSelector)([getAuditLogEntry,
2478
2501
  if (auditlogEvent) {
2479
2502
  const { object = {} } = auditlogEvent;
2480
2503
  const { device = {}, id, type } = object;
2481
- auditlogDevice = type === "device" ? __spreadValues({ id }, device) : auditlogDevice;
2504
+ auditlogDevice = type === "device" ? { id, ...device } : auditlogDevice;
2482
2505
  }
2483
- return __spreadValues(__spreadValues({}, auditlogDevice), devicesById[auditlogDevice.id]);
2506
+ return { ...auditlogDevice, ...devicesById[auditlogDevice.id] };
2484
2507
  });
2485
2508
  var getRelevantRoles = (0, import_toolkit15.createSelector)([getOrganization, getRolesList], ({ service_provider }, roles) => {
2486
2509
  if (service_provider) {
@@ -2532,8 +2555,9 @@ var sessionReducer = (state, action) => {
2532
2555
  return rootReducer(state, action);
2533
2556
  };
2534
2557
  var getConfiguredStore = (options = {}) => {
2535
- const _a = options, { preloadedState = {} } = _a, config = __objRest(_a, ["preloadedState"]);
2536
- return (0, import_toolkit16.configureStore)(__spreadProps(__spreadValues({}, config), {
2558
+ const { preloadedState = {}, ...config } = options;
2559
+ return (0, import_toolkit16.configureStore)({
2560
+ ...config,
2537
2561
  preloadedState,
2538
2562
  reducer: sessionReducer,
2539
2563
  middleware: (getDefaultMiddleware) => getDefaultMiddleware({
@@ -2546,7 +2570,7 @@ var getConfiguredStore = (options = {}) => {
2546
2570
  ignoredPaths: ["app.uploadsById", "app.snackbar", "organization.externalDeviceIntegrations"]
2547
2571
  }
2548
2572
  })
2549
- }));
2573
+ });
2550
2574
  };
2551
2575
  var store = getConfiguredStore({
2552
2576
  preloadedState: {}
@@ -2558,19 +2582,20 @@ var import_locationutils = require("@northern.tech/utils/locationutils");
2558
2582
  var import_toolkit17 = require("@reduxjs/toolkit");
2559
2583
  var import_axios2 = require("axios");
2560
2584
 
2561
- // ../../node_modules/uuid/dist/esm-node/rng.js
2562
- var import_crypto = __toESM(require("crypto"));
2563
- var rnds8Pool = new Uint8Array(256);
2564
- var poolPtr = rnds8Pool.length;
2585
+ // ../../node_modules/uuid/dist/esm-browser/rng.js
2586
+ var getRandomValues;
2587
+ var rnds8 = new Uint8Array(16);
2565
2588
  function rng() {
2566
- if (poolPtr > rnds8Pool.length - 16) {
2567
- import_crypto.default.randomFillSync(rnds8Pool);
2568
- poolPtr = 0;
2589
+ if (!getRandomValues) {
2590
+ getRandomValues = typeof crypto !== "undefined" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
2591
+ if (!getRandomValues) {
2592
+ throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
2593
+ }
2569
2594
  }
2570
- return rnds8Pool.slice(poolPtr, poolPtr += 16);
2595
+ return getRandomValues(rnds8);
2571
2596
  }
2572
2597
 
2573
- // ../../node_modules/uuid/dist/esm-node/stringify.js
2598
+ // ../../node_modules/uuid/dist/esm-browser/stringify.js
2574
2599
  var byteToHex = [];
2575
2600
  for (let i = 0; i < 256; ++i) {
2576
2601
  byteToHex.push((i + 256).toString(16).slice(1));
@@ -2579,13 +2604,13 @@ function unsafeStringify(arr, offset = 0) {
2579
2604
  return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
2580
2605
  }
2581
2606
 
2582
- // ../../node_modules/uuid/dist/esm-node/native.js
2583
- var import_crypto2 = __toESM(require("crypto"));
2607
+ // ../../node_modules/uuid/dist/esm-browser/native.js
2608
+ var randomUUID = typeof crypto !== "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
2584
2609
  var native_default = {
2585
- randomUUID: import_crypto2.default.randomUUID
2610
+ randomUUID
2586
2611
  };
2587
2612
 
2588
- // ../../node_modules/uuid/dist/esm-node/v4.js
2613
+ // ../../node_modules/uuid/dist/esm-browser/v4.js
2589
2614
  function v4(options, buf, offset) {
2590
2615
  if (native_default.randomUUID && !buf && !options) {
2591
2616
  return native_default.randomUUID();
@@ -2610,20 +2635,21 @@ var { setSnackbar: setSnackbar2, initUpload, uploadProgress: uploadProgress2, cl
2610
2635
  var { page: defaultPage, perPage: defaultPerPage } = DEVICE_LIST_DEFAULTS;
2611
2636
  var sortingDefaults = { direction: SORTING_OPTIONS.desc, key: "modified" };
2612
2637
  var flattenRelease = (release, stateRelease) => {
2613
- var _a;
2614
- const updatedArtifacts = ((_a = release.artifacts) == null ? void 0 : _a.sort((0, import_helpers6.customSort)(1, "modified"))) || [];
2638
+ const updatedArtifacts = release.artifacts?.sort((0, import_helpers6.customSort)(1, "modified")) || [];
2615
2639
  const { artifacts, deviceTypes, modified } = updatedArtifacts.reduce(
2616
2640
  (accu, item) => {
2617
- var _a2;
2618
2641
  accu.deviceTypes.push(...item.device_types_compatible);
2619
- const stateArtifact = ((_a2 = stateRelease.artifacts) == null ? void 0 : _a2.find((releaseArtifact) => releaseArtifact.id === item.id)) || {};
2642
+ const stateArtifact = stateRelease.artifacts?.find((releaseArtifact) => releaseArtifact.id === item.id) || {};
2620
2643
  accu.modified = accu.modified ? accu.modified : item.modified;
2621
- accu.artifacts.push(__spreadValues(__spreadValues({}, stateArtifact), item));
2644
+ accu.artifacts.push({
2645
+ ...stateArtifact,
2646
+ ...item
2647
+ });
2622
2648
  return accu;
2623
2649
  },
2624
2650
  { artifacts: [], deviceTypes: [], modified: void 0 }
2625
2651
  );
2626
- return __spreadProps(__spreadValues(__spreadValues({}, stateRelease), release), { artifacts, device_types_compatible: deviceTypes.filter(import_helpers6.duplicateFilter), modified });
2652
+ return { ...stateRelease, ...release, artifacts, device_types_compatible: deviceTypes.filter(import_helpers6.duplicateFilter), modified };
2627
2653
  };
2628
2654
  var reduceReceivedReleases = (releases, stateReleasesById) => releases.reduce((accu, release) => {
2629
2655
  const stateRelease = stateReleasesById[release.name] || {};
@@ -2641,17 +2667,16 @@ var findArtifactIndexInRelease = (releases, id) => Object.values(releases).reduc
2641
2667
  { release: null, index: -1 }
2642
2668
  );
2643
2669
  var getArtifactInstallCount = (0, import_toolkit17.createAsyncThunk)(`${sliceName7}/getArtifactInstallCount`, (id, { dispatch, getState }) => {
2644
- var _a;
2645
2670
  let { release, index } = findArtifactIndexInRelease(getReleasesById(getState()), id);
2646
2671
  if (!release || index === -1) {
2647
2672
  return;
2648
2673
  }
2649
2674
  const releaseArtifacts = [...release.artifacts];
2650
2675
  const artifact = releaseArtifacts[index];
2651
- const { key, name, version } = (_a = (0, import_helpers6.extractSoftwareItem)(artifact.artifact_provides)) != null ? _a : {};
2676
+ const { key, name, version } = (0, import_helpers6.extractSoftwareItem)(artifact.artifact_provides) ?? {};
2652
2677
  const attribute = `${key}${name ? `.${name}` : ""}.version`;
2653
2678
  const { filterTerms } = convertDeviceListStateToFilters({
2654
- filters: [__spreadProps(__spreadValues({}, emptyFilter), { key: attribute, value: version, scope: "inventory" })]
2679
+ filters: [{ ...emptyFilter, key: attribute, value: version, scope: "inventory" }]
2655
2680
  });
2656
2681
  return general_api_default.post(getSearchEndpoint(getState()), {
2657
2682
  page: 1,
@@ -2665,10 +2690,11 @@ var getArtifactInstallCount = (0, import_toolkit17.createAsyncThunk)(`${sliceNam
2665
2690
  }
2666
2691
  const installCount = Number(headers[headerNames.total]);
2667
2692
  const releaseArtifacts2 = [...release2.artifacts];
2668
- releaseArtifacts2[index2] = __spreadProps(__spreadValues({}, releaseArtifacts2[index2]), { installCount });
2669
- release2 = __spreadProps(__spreadValues({}, release2), {
2693
+ releaseArtifacts2[index2] = { ...releaseArtifacts2[index2], installCount };
2694
+ release2 = {
2695
+ ...release2,
2670
2696
  artifacts: releaseArtifacts2
2671
- });
2697
+ };
2672
2698
  return dispatch(actions7.receiveRelease(release2));
2673
2699
  });
2674
2700
  });
@@ -2680,12 +2706,14 @@ var getArtifactUrl = (0, import_toolkit17.createAsyncThunk)(
2680
2706
  return dispatch(getReleases());
2681
2707
  }
2682
2708
  const releaseArtifacts = [...release.artifacts];
2683
- releaseArtifacts[index] = __spreadProps(__spreadValues({}, releaseArtifacts[index]), {
2709
+ releaseArtifacts[index] = {
2710
+ ...releaseArtifacts[index],
2684
2711
  url: response.data.uri
2685
- });
2686
- release = __spreadProps(__spreadValues({}, release), {
2712
+ };
2713
+ release = {
2714
+ ...release,
2687
2715
  artifacts: releaseArtifacts
2688
- });
2716
+ };
2689
2717
  return dispatch(actions7.receiveRelease(release));
2690
2718
  })
2691
2719
  );
@@ -2810,12 +2838,14 @@ var selectRelease = (0, import_toolkit17.createAsyncThunk)(`${sliceName7}/select
2810
2838
  });
2811
2839
  var setReleasesListState = (0, import_toolkit17.createAsyncThunk)(`${sliceName7}/setReleasesListState`, (selectionState, { dispatch, getState }) => {
2812
2840
  const currentState = getState().releases.releasesList;
2813
- let nextState = __spreadProps(__spreadValues(__spreadValues({}, currentState), selectionState), {
2814
- sort: __spreadValues(__spreadValues({}, currentState.sort), selectionState.sort)
2815
- });
2841
+ let nextState = {
2842
+ ...currentState,
2843
+ ...selectionState,
2844
+ sort: { ...currentState.sort, ...selectionState.sort }
2845
+ };
2816
2846
  let tasks = [];
2817
- const _a = currentState, { isLoading: currentLoading } = _a, currentRequestState = __objRest(_a, ["isLoading"]);
2818
- const _b2 = nextState, { isLoading: selectionLoading } = _b2, selectionRequestState = __objRest(_b2, ["isLoading"]);
2847
+ const { isLoading: currentLoading, ...currentRequestState } = currentState;
2848
+ const { isLoading: selectionLoading, ...selectionRequestState } = nextState;
2819
2849
  if (!(0, import_helpers6.deepCompare)(currentRequestState, selectionRequestState)) {
2820
2850
  nextState.isLoading = true;
2821
2851
  tasks.push(dispatch(getReleases(nextState)).finally(() => dispatch(setReleasesListState({ isLoading: false }))));
@@ -2834,29 +2864,30 @@ var releaseListRetrieval = (config) => {
2834
2864
  );
2835
2865
  };
2836
2866
  var deductSearchState = (receivedReleases, config, total, state) => {
2837
- let releaseListState = __spreadValues({}, state.releasesList);
2867
+ let releaseListState = { ...state.releasesList };
2838
2868
  const { searchTerm, searchOnly, sort = {}, selectedTags = [], type } = config;
2839
2869
  const flattenedReleases = Object.values(receivedReleases).sort((0, import_helpers6.customSort)(sort.direction === SORTING_OPTIONS.desc, sort.key));
2840
2870
  const releaseIds = flattenedReleases.map((item) => item.name);
2841
2871
  const isFiltering = !!(selectedTags.length || type || searchTerm);
2842
2872
  if (searchOnly) {
2843
- releaseListState = __spreadProps(__spreadValues({}, releaseListState), { searchedIds: releaseIds });
2873
+ releaseListState = { ...releaseListState, searchedIds: releaseIds };
2844
2874
  } else {
2845
- releaseListState = __spreadProps(__spreadValues({}, releaseListState), {
2875
+ releaseListState = {
2876
+ ...releaseListState,
2846
2877
  releaseIds,
2847
2878
  searchTotal: isFiltering ? total : state.releasesList.searchTotal,
2848
2879
  total: !isFiltering ? total : state.releasesList.total
2849
- });
2880
+ };
2850
2881
  }
2851
2882
  return releaseListState;
2852
2883
  };
2853
2884
  var getReleases = (0, import_toolkit17.createAsyncThunk)(`${sliceName7}/getReleases`, (passedConfig = {}, { dispatch, getState }) => {
2854
- const config = __spreadValues(__spreadValues({}, getState().releases.releasesList), passedConfig);
2885
+ const config = { ...getState().releases.releasesList, ...passedConfig };
2855
2886
  return releaseListRetrieval(config).then(({ data: receivedReleases = [], headers = {} }) => {
2856
2887
  const total = headers[headerNames.total] ? Number(headers[headerNames.total]) : 0;
2857
2888
  const state = getState().releases;
2858
2889
  const flatReleases = reduceReceivedReleases(receivedReleases, state.byId);
2859
- const combinedReleases = __spreadValues(__spreadValues({}, state.byId), flatReleases);
2890
+ const combinedReleases = { ...state.byId, ...flatReleases };
2860
2891
  let tasks = [dispatch(actions7.receiveReleases(combinedReleases))];
2861
2892
  const releaseListState = deductSearchState(receivedReleases, config, total, state);
2862
2893
  tasks.push(dispatch(actions7.setReleaseListState(releaseListState)));
@@ -2877,7 +2908,7 @@ var updateReleaseInfo = (0, import_toolkit17.createAsyncThunk)(
2877
2908
  `${sliceName7}/updateReleaseInfo`,
2878
2909
  ({ name, info }, { dispatch, getState }) => general_api_default.patch(`${deploymentsApiUrlV2}/deployments/releases/${name}`, info).catch((err) => commonErrorHandler(err, `Release details couldn't be updated.`, dispatch)).then(() => {
2879
2910
  return Promise.all([
2880
- dispatch(actions7.receiveRelease(__spreadProps(__spreadValues(__spreadValues({}, getReleasesById(getState())[name]), info), { name }))),
2911
+ dispatch(actions7.receiveRelease({ ...getReleasesById(getState())[name], ...info, name })),
2881
2912
  dispatch(setSnackbar2("Release details were updated successfully.", TIMEOUTS.fiveSeconds, ""))
2882
2913
  ]);
2883
2914
  })
@@ -2886,7 +2917,7 @@ var setReleaseTags = (0, import_toolkit17.createAsyncThunk)(
2886
2917
  `${sliceName7}/setReleaseTags`,
2887
2918
  ({ name, tags = [] }, { dispatch, getState }) => general_api_default.put(`${deploymentsApiUrlV2}/deployments/releases/${name}/tags`, tags).catch((err) => commonErrorHandler(err, `Release tags couldn't be set.`, dispatch)).then(() => {
2888
2919
  return Promise.all([
2889
- dispatch(actions7.receiveRelease(__spreadProps(__spreadValues({}, getReleasesById(getState())[name]), { name, tags }))),
2920
+ dispatch(actions7.receiveRelease({ ...getReleasesById(getState())[name], name, tags })),
2890
2921
  dispatch(setSnackbar2("Release tags were set successfully.", TIMEOUTS.fiveSeconds, ""))
2891
2922
  ]);
2892
2923
  })
@@ -2899,23 +2930,4 @@ var getUpdateTypes = (0, import_toolkit17.createAsyncThunk)(
2899
2930
  `${sliceName7}/getReleaseTypes`,
2900
2931
  (_, { dispatch }) => general_api_default.get(`${deploymentsApiUrlV2}/releases/all/types`).catch((err) => commonErrorHandler(err, `Existing update types couldn't be retrieved.`, dispatch)).then(({ data: types }) => Promise.resolve(dispatch(actions7.receiveReleaseTypes(types))))
2901
2932
  );
2902
- // Annotate the CommonJS export names for ESM import in node:
2903
- 0 && (module.exports = {
2904
- cancelFileUpload,
2905
- createArtifact,
2906
- editArtifact,
2907
- getArtifactInstallCount,
2908
- getArtifactUrl,
2909
- getExistingReleaseTags,
2910
- getRelease,
2911
- getReleases,
2912
- getUpdateTypes,
2913
- removeArtifact,
2914
- removeRelease,
2915
- selectRelease,
2916
- setReleaseTags,
2917
- setReleasesListState,
2918
- updateReleaseInfo,
2919
- uploadArtifact
2920
- });
2921
2933
  //# sourceMappingURL=thunks.js.map