@northern.tech/store 0.41.3 → 0.43.0

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 (231) hide show
  1. package/dist/actions.d.cts +10 -11
  2. package/dist/actions.d.ts +10 -11
  3. package/dist/api/general-api.cjs +1 -1
  4. package/dist/api/general-api.cjs.map +1 -1
  5. package/dist/api/general-api.d.cts +0 -1
  6. package/dist/api/general-api.d.ts +0 -1
  7. package/dist/api/general-api.js +1 -1
  8. package/dist/api/users-api.cjs +1 -1
  9. package/dist/api/users-api.d.cts +1 -6
  10. package/dist/api/users-api.d.ts +1 -6
  11. package/dist/appSlice/constants.cjs +0 -5
  12. package/dist/appSlice/constants.cjs.map +1 -1
  13. package/dist/appSlice/constants.d.cts +1 -1
  14. package/dist/appSlice/constants.d.ts +1 -1
  15. package/dist/appSlice/constants.js +0 -5
  16. package/dist/appSlice/constants.js.map +1 -1
  17. package/dist/appSlice/index.cjs.map +1 -1
  18. package/dist/appSlice/index.d.cts +1 -1
  19. package/dist/appSlice/index.d.ts +1 -1
  20. package/dist/appSlice/index.js +1 -1
  21. package/dist/appSlice/mocks.d.cts +1 -2
  22. package/dist/appSlice/mocks.d.ts +1 -2
  23. package/dist/appSlice/selectors.cjs.map +1 -1
  24. package/dist/appSlice/selectors.d.cts +9 -10
  25. package/dist/appSlice/selectors.d.ts +9 -10
  26. package/dist/appSlice/thunks.d.cts +2 -3
  27. package/dist/appSlice/thunks.d.ts +2 -3
  28. package/dist/auth.cjs +1 -1
  29. package/dist/auth.d.cts +3 -10
  30. package/dist/auth.d.ts +3 -10
  31. package/dist/auth.js +1 -1
  32. package/dist/commonConstants.d.cts +1 -1
  33. package/dist/commonConstants.d.ts +1 -1
  34. package/dist/commonConstants.js +1 -1
  35. package/dist/commonSelectors.cjs +4 -3
  36. package/dist/commonSelectors.cjs.map +1 -1
  37. package/dist/commonSelectors.d.cts +20 -21
  38. package/dist/commonSelectors.d.ts +20 -21
  39. package/dist/commonSelectors.js +4 -3
  40. package/dist/commonSelectors.js.map +1 -1
  41. package/dist/{constants-Sn4gnNA3.d.ts → constants-B3Jdkn2b.d.cts} +2 -5
  42. package/dist/{constants-Sn4gnNA3.d.cts → constants-B3Jdkn2b.d.ts} +2 -5
  43. package/dist/{constants-CzjK2gV-.d.ts → constants-B_H4squx.d.ts} +4 -4
  44. package/dist/{constants-D9o0Cnk_.d.ts → constants-C6TIYaY4.d.cts} +1 -2
  45. package/dist/{constants-D9o0Cnk_.d.cts → constants-C6TIYaY4.d.ts} +1 -2
  46. package/dist/{constants-6kYRTdox.d.ts → constants-CEwun8TL.d.cts} +3 -2
  47. package/dist/{constants-6kYRTdox.d.cts → constants-CEwun8TL.d.ts} +3 -2
  48. package/dist/constants-C_SC_VKE.cjs.map +1 -1
  49. package/dist/{constants-xpheFFkA.js → constants-CerzXHnQ.js} +3 -3
  50. package/dist/{constants-xpheFFkA.js.map → constants-CerzXHnQ.js.map} +1 -1
  51. package/dist/{constants-DAi2zOZN.d.cts → constants-Rl3FJzFf.d.cts} +4 -4
  52. package/dist/{constants-B_7FCJQX.d.ts → constants-nKSWZ8oD.d.cts} +3 -8
  53. package/dist/{constants-B_7FCJQX.d.cts → constants-nKSWZ8oD.d.ts} +3 -8
  54. package/dist/constants.cjs +2 -0
  55. package/dist/constants.d.cts +6 -6
  56. package/dist/constants.d.ts +6 -6
  57. package/dist/constants.js +3 -3
  58. package/dist/deploymentsSlice/constants.d.cts +1 -1
  59. package/dist/deploymentsSlice/constants.d.ts +1 -1
  60. package/dist/deploymentsSlice/constants.js +1 -1
  61. package/dist/deploymentsSlice/index.cjs.map +1 -1
  62. package/dist/deploymentsSlice/index.d.cts +1 -1
  63. package/dist/deploymentsSlice/index.d.ts +1 -1
  64. package/dist/deploymentsSlice/index.js +1 -1
  65. package/dist/deploymentsSlice/mocks.d.cts +1 -2
  66. package/dist/deploymentsSlice/mocks.d.ts +1 -2
  67. package/dist/deploymentsSlice/selectors.cjs.map +1 -1
  68. package/dist/deploymentsSlice/selectors.d.cts +9 -10
  69. package/dist/deploymentsSlice/selectors.d.ts +9 -10
  70. package/dist/deploymentsSlice/selectors.js +1 -1
  71. package/dist/deploymentsSlice/thunks.d.cts +7 -13
  72. package/dist/deploymentsSlice/thunks.d.ts +7 -13
  73. package/dist/devicesSlice/constants.d.cts +1 -1
  74. package/dist/devicesSlice/constants.d.ts +1 -1
  75. package/dist/devicesSlice/constants.js +1 -1
  76. package/dist/devicesSlice/index.cjs +5 -2
  77. package/dist/devicesSlice/index.cjs.map +1 -1
  78. package/dist/devicesSlice/index.d.cts +2 -2
  79. package/dist/devicesSlice/index.d.ts +2 -2
  80. package/dist/devicesSlice/index.js +6 -3
  81. package/dist/devicesSlice/index.js.map +1 -1
  82. package/dist/devicesSlice/mocks.d.cts +1 -0
  83. package/dist/devicesSlice/mocks.d.ts +1 -0
  84. package/dist/devicesSlice/mocks.js +1 -1
  85. package/dist/devicesSlice/selectors.cjs +2 -0
  86. package/dist/devicesSlice/selectors.cjs.map +1 -1
  87. package/dist/devicesSlice/selectors.d.cts +41 -41
  88. package/dist/devicesSlice/selectors.d.ts +41 -41
  89. package/dist/devicesSlice/selectors.js +3 -2
  90. package/dist/devicesSlice/selectors.js.map +1 -1
  91. package/dist/devicesSlice/thunks.cjs +1 -2
  92. package/dist/devicesSlice/thunks.d.cts +13 -25
  93. package/dist/devicesSlice/thunks.d.ts +13 -25
  94. package/dist/devicesSlice/thunks.js +2 -2
  95. package/dist/{index-Bb4yvvgG.d.ts → index-B8td4-rY.d.ts} +1 -2
  96. package/dist/{index-C5oQrJGU.d.ts → index-BAGyeC-q.d.ts} +2 -3
  97. package/dist/{index-CgPgKMve.d.cts → index-BgF6rhXn.d.cts} +3 -4
  98. package/dist/{index-BtGhTFBc.d.ts → index-BpamudGf.d.ts} +15 -17
  99. package/dist/{index-CnH51JfB.d.ts → index-Bs0c1-WY.d.ts} +4 -9
  100. package/dist/{index-m1c0qk2s.d.ts → index-C8uiyxnb.d.ts} +2 -3
  101. package/dist/{index-CSOj22xK.d.cts → index-C_LGDJN2.d.cts} +2 -3
  102. package/dist/{index-H9zg_3UV.d.ts → index-ChKTa1aL.d.ts} +2 -3
  103. package/dist/{index-DBUt8xVc.d.ts → index-CoObjWL4.d.cts} +1 -2
  104. package/dist/{index-DBUt8xVc.d.cts → index-CoObjWL4.d.ts} +1 -2
  105. package/dist/{index-BCErsO5h.d.ts → index-CpfhQHfg.d.ts} +3 -4
  106. package/dist/{index-BQCnJ5gh.d.cts → index-Ctj2r57a.d.cts} +2 -3
  107. package/dist/{index-Dn1SqQYh.d.cts → index-DeOpb2oK.d.cts} +4 -9
  108. package/dist/{index-VEayiYkv.d.cts → index-DiAjzARZ.d.cts} +2 -3
  109. package/dist/{index-vXsWdis1.d.cts → index-DnKVKM0G.d.cts} +15 -17
  110. package/dist/{index-EPmsL6Lb.d.cts → index-mvxjivTJ.d.cts} +1 -2
  111. package/dist/liststatehook.cjs.map +1 -1
  112. package/dist/liststatehook.d.cts +0 -1
  113. package/dist/liststatehook.d.ts +0 -1
  114. package/dist/locationutils.cjs.map +1 -1
  115. package/dist/locationutils.d.cts +14 -67
  116. package/dist/locationutils.d.ts +14 -67
  117. package/dist/locationutils.js +1 -1
  118. package/dist/monitorSlice/constants.d.cts +1 -1
  119. package/dist/monitorSlice/constants.d.ts +1 -1
  120. package/dist/monitorSlice/index.cjs.map +1 -1
  121. package/dist/monitorSlice/index.d.cts +1 -1
  122. package/dist/monitorSlice/index.d.ts +1 -1
  123. package/dist/monitorSlice/index.js +1 -1
  124. package/dist/monitorSlice/mocks.d.cts +1 -2
  125. package/dist/monitorSlice/mocks.d.ts +1 -2
  126. package/dist/monitorSlice/mocks.js +1 -1
  127. package/dist/monitorSlice/selectors.d.cts +1 -2
  128. package/dist/monitorSlice/selectors.d.ts +1 -2
  129. package/dist/monitorSlice/thunks.d.cts +4 -5
  130. package/dist/monitorSlice/thunks.d.ts +4 -5
  131. package/dist/monitorSlice/thunks.js +1 -1
  132. package/dist/onboardingSlice/index.cjs.map +1 -1
  133. package/dist/onboardingSlice/index.d.cts +1 -1
  134. package/dist/onboardingSlice/index.d.ts +1 -1
  135. package/dist/onboardingSlice/mocks.d.cts +1 -2
  136. package/dist/onboardingSlice/mocks.d.ts +1 -2
  137. package/dist/onboardingSlice/selectors.d.cts +2 -3
  138. package/dist/onboardingSlice/selectors.d.ts +2 -3
  139. package/dist/onboardingSlice/thunks.d.cts +4 -4
  140. package/dist/onboardingSlice/thunks.d.ts +4 -4
  141. package/dist/organizationSlice/constants.js +1 -1
  142. package/dist/organizationSlice/index.cjs.map +1 -1
  143. package/dist/organizationSlice/index.d.cts +1 -1
  144. package/dist/organizationSlice/index.d.ts +1 -1
  145. package/dist/organizationSlice/index.js +1 -1
  146. package/dist/organizationSlice/mocks.d.cts +3 -3
  147. package/dist/organizationSlice/mocks.d.ts +3 -3
  148. package/dist/organizationSlice/mocks.js +1 -1
  149. package/dist/organizationSlice/selectors.cjs.map +1 -1
  150. package/dist/organizationSlice/selectors.d.cts +11 -16
  151. package/dist/organizationSlice/selectors.d.ts +11 -16
  152. package/dist/organizationSlice/selectors.js +1 -1
  153. package/dist/organizationSlice/thunks.d.cts +6 -7
  154. package/dist/organizationSlice/thunks.d.ts +6 -7
  155. package/dist/organizationSlice/types.d.cts +1 -1
  156. package/dist/organizationSlice/types.d.ts +1 -1
  157. package/dist/releasesSlice/constants.cjs +2 -0
  158. package/dist/releasesSlice/constants.cjs.map +1 -1
  159. package/dist/releasesSlice/constants.d.cts +2 -2
  160. package/dist/releasesSlice/constants.d.ts +2 -2
  161. package/dist/releasesSlice/constants.js +2 -1
  162. package/dist/releasesSlice/constants.js.map +1 -1
  163. package/dist/releasesSlice/index.cjs.map +1 -1
  164. package/dist/releasesSlice/index.d.cts +1 -1
  165. package/dist/releasesSlice/index.d.ts +1 -1
  166. package/dist/releasesSlice/index.js +1 -1
  167. package/dist/releasesSlice/mocks.js +1 -1
  168. package/dist/releasesSlice/selectors.cjs.map +1 -1
  169. package/dist/releasesSlice/selectors.d.cts +9 -10
  170. package/dist/releasesSlice/selectors.d.ts +9 -10
  171. package/dist/releasesSlice/thunks.cjs +1 -1
  172. package/dist/releasesSlice/thunks.cjs.map +1 -1
  173. package/dist/releasesSlice/thunks.d.cts +4 -5
  174. package/dist/releasesSlice/thunks.d.ts +4 -5
  175. package/dist/releasesSlice/thunks.js +1 -1
  176. package/dist/{rolldown-runtime-D6vf50IK.cjs → rolldown-runtime-VH7oDXx4.cjs} +1 -1
  177. package/dist/selectors.cjs +1 -0
  178. package/dist/selectors.d.cts +2 -2
  179. package/dist/selectors.d.ts +2 -2
  180. package/dist/selectors.js +2 -2
  181. package/dist/sockethook.cjs +1 -2
  182. package/dist/sockethook.cjs.map +1 -1
  183. package/dist/sockethook.d.cts +1 -8
  184. package/dist/sockethook.d.ts +1 -8
  185. package/dist/sockethook.js +1 -2
  186. package/dist/sockethook.js.map +1 -1
  187. package/dist/{store-CkgokFlk.d.ts → store-B2_hrsgP.d.ts} +27 -48
  188. package/dist/{store-CGP5pCH8.d.cts → store-DquBGT7j.d.cts} +27 -48
  189. package/dist/store.cjs.map +1 -1
  190. package/dist/store.d.cts +1 -1
  191. package/dist/store.d.ts +1 -1
  192. package/dist/store.js +1 -1
  193. package/dist/storehooks.cjs +31 -20
  194. package/dist/storehooks.cjs.map +1 -1
  195. package/dist/storehooks.d.cts +13 -4
  196. package/dist/storehooks.d.ts +13 -4
  197. package/dist/storehooks.js +32 -22
  198. package/dist/storehooks.js.map +1 -1
  199. package/dist/thunks.cjs +16 -107
  200. package/dist/thunks.cjs.map +1 -1
  201. package/dist/thunks.d.cts +2 -2
  202. package/dist/thunks.d.ts +2 -2
  203. package/dist/thunks.js +16 -106
  204. package/dist/thunks.js.map +1 -1
  205. package/dist/{types-uHmaedGU.d.ts → types-B3qGQoMx.d.ts} +3 -4
  206. package/dist/{types-yQ0ypHMZ.d.cts → types-B80ckxiy.d.cts} +3 -4
  207. package/dist/useDeploymentDevice.cjs +1 -1
  208. package/dist/useDeploymentDevice.cjs.map +1 -1
  209. package/dist/usersSlice/constants.d.cts +1 -1
  210. package/dist/usersSlice/constants.d.ts +1 -1
  211. package/dist/usersSlice/constants.js +1 -1
  212. package/dist/usersSlice/index.cjs.map +1 -1
  213. package/dist/usersSlice/index.d.cts +1 -1
  214. package/dist/usersSlice/index.d.ts +1 -1
  215. package/dist/usersSlice/index.js +1 -1
  216. package/dist/usersSlice/mocks.d.cts +2 -3
  217. package/dist/usersSlice/mocks.d.ts +2 -3
  218. package/dist/usersSlice/mocks.js +1 -1
  219. package/dist/usersSlice/selectors.cjs.map +1 -1
  220. package/dist/usersSlice/selectors.d.cts +10 -11
  221. package/dist/usersSlice/selectors.d.ts +10 -11
  222. package/dist/usersSlice/selectors.js +1 -1
  223. package/dist/usersSlice/thunks.d.cts +5 -6
  224. package/dist/usersSlice/thunks.d.ts +5 -6
  225. package/dist/utils.cjs +2 -2
  226. package/dist/utils.cjs.map +1 -1
  227. package/dist/utils.d.cts +1 -1
  228. package/dist/utils.d.ts +1 -1
  229. package/dist/utils.js +3 -3
  230. package/dist/utils.js.map +1 -1
  231. package/package.json +9 -9
@@ -1,5 +1,4 @@
1
1
  import { DeploymentStatistics } from "@northern.tech/types/MenderTypes";
2
-
3
2
  //#region src/deploymentsSlice/constants.d.ts
4
3
  declare const deploymentSubstates: {
5
4
  aborted: string;
@@ -158,4 +157,4 @@ declare const pauseMap: {
158
157
  };
159
158
  //#endregion
160
159
  export { DeploymentSubstateMapping as a, deploymentPrototype as c, deploymentSubstates as d, installationSubstatesMap as f, DEPLOYMENT_TYPES as i, deploymentStatesToSubstates as l, pauseMap as m, DEPLOYMENT_ROUTES as n, defaultStats as o, listDefaultsByState as p, DEPLOYMENT_STATES as r, deploymentDisplayStates as s, DEFAULT_PENDING_INPROGRESS_COUNT as t, deploymentStatesToSubstatesWithSkipped as u };
161
- //# sourceMappingURL=constants-D9o0Cnk_.d.ts.map
160
+ //# sourceMappingURL=constants-C6TIYaY4.d.cts.map
@@ -1,5 +1,4 @@
1
1
  import { DeploymentStatistics } from "@northern.tech/types/MenderTypes";
2
-
3
2
  //#region src/deploymentsSlice/constants.d.ts
4
3
  declare const deploymentSubstates: {
5
4
  aborted: string;
@@ -158,4 +157,4 @@ declare const pauseMap: {
158
157
  };
159
158
  //#endregion
160
159
  export { DeploymentSubstateMapping as a, deploymentPrototype as c, deploymentSubstates as d, installationSubstatesMap as f, DEPLOYMENT_TYPES as i, deploymentStatesToSubstates as l, pauseMap as m, DEPLOYMENT_ROUTES as n, defaultStats as o, listDefaultsByState as p, DEPLOYMENT_STATES as r, deploymentDisplayStates as s, DEFAULT_PENDING_INPROGRESS_COUNT as t, deploymentStatesToSubstatesWithSkipped as u };
161
- //# sourceMappingURL=constants-D9o0Cnk_.d.cts.map
160
+ //# sourceMappingURL=constants-C6TIYaY4.d.ts.map
@@ -12,6 +12,7 @@ declare const softwareTitleMap: {
12
12
  key: string;
13
13
  };
14
14
  };
15
+ declare const rootfsManifestVersion = "rootfs-image.update-module.mender-orchestrator-manifest.version";
15
16
  //#endregion
16
- export { softwareTitleMap as a, softwareIndicator as i, currentArtifact as n, rootfsImageVersion as r, ARTIFACT_GENERATION_TYPE as t };
17
- //# sourceMappingURL=constants-6kYRTdox.d.ts.map
17
+ export { softwareIndicator as a, rootfsManifestVersion as i, currentArtifact as n, softwareTitleMap as o, rootfsImageVersion as r, ARTIFACT_GENERATION_TYPE as t };
18
+ //# sourceMappingURL=constants-CEwun8TL.d.cts.map
@@ -12,6 +12,7 @@ declare const softwareTitleMap: {
12
12
  key: string;
13
13
  };
14
14
  };
15
+ declare const rootfsManifestVersion = "rootfs-image.update-module.mender-orchestrator-manifest.version";
15
16
  //#endregion
16
- export { softwareTitleMap as a, softwareIndicator as i, currentArtifact as n, rootfsImageVersion as r, ARTIFACT_GENERATION_TYPE as t };
17
- //# sourceMappingURL=constants-6kYRTdox.d.cts.map
17
+ export { softwareIndicator as a, rootfsManifestVersion as i, currentArtifact as n, softwareTitleMap as o, rootfsImageVersion as r, ARTIFACT_GENERATION_TYPE as t };
18
+ //# sourceMappingURL=constants-CEwun8TL.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants-C_SC_VKE.cjs","names":["ATTRIBUTE_SCOPES","AWS","Azure","DEVICE_LIST_DEFAULTS","SORTING_OPTIONS","DEVICE_FILTERING_OPTIONS","useradmApiUrl","uiPermissionsById"],"sources":["../src/commonConstants.tsx","../src/deploymentsSlice/constants.ts","../src/devicesSlice/constants.ts","../src/organizationSlice/constants.ts","../src/usersSlice/constants.ts"],"sourcesContent":["// Copyright 2024 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n// @ts-nocheck\nimport { mdiAws as AWS, mdiMicrosoftAzure as Azure } from '@mdi/js';\nimport type { Integration } from '@northern.tech/types/MenderTypes';\n\nimport type { DEVICE_FILTERING_OPTIONS } from './constants';\nimport { ATTRIBUTE_SCOPES } from './constants';\n\nexport const timeUnits = {\n days: 'days',\n minutes: 'minutes',\n hours: 'hours'\n};\n\nexport const UNGROUPED_GROUP = { id: '*|=ungrouped=|*', name: 'Unassigned' };\n\nexport const DEVICE_LIST_MAXIMUM_LENGTH = 50;\n\nexport type FilterOperator = keyof typeof DEVICE_FILTERING_OPTIONS;\n\nconst oneSecond = 1000;\nexport const TIMEOUTS = {\n debounceDefault: 700,\n debounceShort: 300,\n halfASecond: 0.5 * oneSecond,\n oneSecond,\n twoSeconds: 2 * oneSecond,\n threeSeconds: 3 * oneSecond,\n fiveSeconds: 5 * oneSecond,\n refreshDefault: 10 * oneSecond,\n refreshLong: 60 * oneSecond\n};\n\nexport const DEVICE_ONLINE_CUTOFF = { interval: 1, intervalName: timeUnits.days };\n\nexport interface IdAttribute {\n attribute: string;\n scope: string;\n}\nexport const defaultIdAttribute: Readonly<IdAttribute> = Object.freeze({ attribute: 'id', scope: ATTRIBUTE_SCOPES.identity });\n\nexport const ORCHESTRATOR_MANIFEST_ATTRIBUTE_PREFIX = 'mender-orchestrator-manifest.';\n\n// displayed labels for attribute scopes that diverge from the internal scope values: the system scope shows as\n// `default`, while orchestrator manifest attributes (inventory scope) show as `system`\nexport const ATTRIBUTE_SCOPE_LABELS = {\n default: 'default',\n system: 'system'\n} as const;\n\nexport const productOrder = ['micro', 'standard', 'system'];\n\nexport const credentialTypes = {\n aws: 'aws',\n http: 'http',\n sas: 'sas',\n x509: 'x509'\n};\nexport const EXTERNAL_PROVIDER = {\n 'iot-core': {\n credentialsType: credentialTypes.aws,\n icon: AWS,\n title: 'AWS IoT Core',\n twinTitle: 'Device Shadow',\n provider: 'iot-core',\n enabled: true,\n deviceTwin: true,\n configHint: <>For help finding your AWS IoT Core connection string, check the AWS IoT documentation.</>\n },\n 'iot-hub': {\n credentialsType: credentialTypes.sas,\n icon: Azure,\n title: 'Azure IoT Hub',\n twinTitle: 'Device Twin',\n provider: 'iot-hub',\n enabled: true,\n deviceTwin: true,\n configHint: (\n <span>\n For help finding your Azure IoT Hub connection string, look under &apos;Shared access policies&apos; in the Microsoft Azure UI as described{' '}\n {\n <a\n href=\"https://devblogs.microsoft.com/iotdev/understand-different-connection-strings-in-azure-iot-hub/#iothubconn\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n >\n here\n </a>\n }\n .\n </span>\n )\n },\n webhook: {\n credentialsType: credentialTypes.http,\n deviceTwin: false,\n twinTitle: '',\n // disable the webhook provider here, since it is treated different than other integrations, with a custom configuration & management view, etc.\n enabled: false,\n provider: 'webhook'\n }\n} as const;\n\nexport interface Webhook extends Integration {\n provider: 'webhook';\n}\n\nexport const emptyWebhook: Webhook = {\n description: '',\n provider: 'webhook',\n credentials: {\n type: EXTERNAL_PROVIDER.webhook.credentialsType,\n [EXTERNAL_PROVIDER.webhook.credentialsType]: {\n secret: '',\n url: ''\n }\n }\n};\n\ninterface CountryType {\n code: string;\n label: string;\n}\nexport const MAX_PAGE_SIZE = 500;\nconst regionNames = new Intl.DisplayNames(['en'], { type: 'region' });\nexport const countries: readonly CountryType[] = [\n 'AD',\n 'AE',\n 'AF',\n 'AG',\n 'AI',\n 'AL',\n 'AM',\n 'AO',\n 'AQ',\n 'AR',\n 'AS',\n 'AT',\n 'AU',\n 'AW',\n 'AX',\n 'AZ',\n 'BA',\n 'BB',\n 'BD',\n 'BE',\n 'BF',\n 'BG',\n 'BH',\n 'BI',\n 'BJ',\n 'BL',\n 'BM',\n 'BN',\n 'BO',\n 'BR',\n 'BS',\n 'BT',\n 'BV',\n 'BW',\n 'BY',\n 'BZ',\n 'CA',\n 'CC',\n 'CD',\n 'CF',\n 'CG',\n 'CH',\n 'CI',\n 'CK',\n 'CL',\n 'CM',\n 'CN',\n 'CO',\n 'CR',\n 'CU',\n 'CV',\n 'CW',\n 'CX',\n 'CY',\n 'CZ',\n 'DE',\n 'DJ',\n 'DK',\n 'DM',\n 'DO',\n 'DZ',\n 'EC',\n 'EE',\n 'EG',\n 'EH',\n 'ER',\n 'ES',\n 'ET',\n 'FI',\n 'FJ',\n 'FK',\n 'FM',\n 'FO',\n 'FR',\n 'GA',\n 'GB',\n 'GD',\n 'GE',\n 'GF',\n 'GG',\n 'GH',\n 'GI',\n 'GL',\n 'GM',\n 'GN',\n 'GP',\n 'GQ',\n 'GR',\n 'GS',\n 'GT',\n 'GU',\n 'GW',\n 'GY',\n 'HK',\n 'HM',\n 'HN',\n 'HR',\n 'HT',\n 'HU',\n 'ID',\n 'IE',\n 'IL',\n 'IM',\n 'IN',\n 'IO',\n 'IQ',\n 'IR',\n 'IS',\n 'IT',\n 'JE',\n 'JM',\n 'JO',\n 'JP',\n 'KE',\n 'KG',\n 'KH',\n 'KI',\n 'KM',\n 'KN',\n 'KP',\n 'KR',\n 'KW',\n 'KY',\n 'KZ',\n 'LA',\n 'LB',\n 'LC',\n 'LI',\n 'LK',\n 'LR',\n 'LS',\n 'LT',\n 'LU',\n 'LV',\n 'LY',\n 'MA',\n 'MC',\n 'MD',\n 'ME',\n 'MF',\n 'MG',\n 'MH',\n 'MK',\n 'ML',\n 'MM',\n 'MN',\n 'MO',\n 'MP',\n 'MQ',\n 'MR',\n 'MS',\n 'MT',\n 'MU',\n 'MV',\n 'MW',\n 'MX',\n 'MY',\n 'MZ',\n 'NA',\n 'NC',\n 'NE',\n 'NF',\n 'NG',\n 'NI',\n 'NL',\n 'NO',\n 'NP',\n 'NR',\n 'NU',\n 'NZ',\n 'OM',\n 'PA',\n 'PE',\n 'PF',\n 'PG',\n 'PH',\n 'PK',\n 'PL',\n 'PM',\n 'PN',\n 'PR',\n 'PS',\n 'PT',\n 'PW',\n 'PY',\n 'QA',\n 'RE',\n 'RO',\n 'RS',\n 'RU',\n 'RW',\n 'SA',\n 'SB',\n 'SC',\n 'SD',\n 'SE',\n 'SG',\n 'SH',\n 'SI',\n 'SJ',\n 'SK',\n 'SL',\n 'SM',\n 'SN',\n 'SO',\n 'SR',\n 'SS',\n 'ST',\n 'SV',\n 'SX',\n 'SY',\n 'SZ',\n 'TC',\n 'TD',\n 'TF',\n 'TG',\n 'TH',\n 'TJ',\n 'TK',\n 'TL',\n 'TM',\n 'TN',\n 'TO',\n 'TR',\n 'TT',\n 'TV',\n 'TW',\n 'TZ',\n 'UA',\n 'UG',\n 'US',\n 'UY',\n 'UZ',\n 'VA',\n 'VC',\n 'VE',\n 'VG',\n 'VI',\n 'VN',\n 'VU',\n 'WF',\n 'WS',\n 'XK',\n 'YE',\n 'YT',\n 'ZA',\n 'ZM',\n 'ZW'\n]\n .map(code => ({ code, label: regionNames.of(code) }))\n .sort((a, b) => a.label.localeCompare(b.label));\n","// Copyright 2019 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport type { DeploymentStatistics } from '@northern.tech/types/MenderTypes';\n\nimport { DEVICE_LIST_DEFAULTS, SORTING_OPTIONS } from '../constants';\n\nconst alreadyInstalled = 'already-installed';\n\nexport const deploymentSubstates = {\n aborted: 'aborted',\n alreadyInstalled,\n decommissioned: 'decommissioned',\n downloading: 'downloading',\n failure: 'failure',\n installing: 'installing',\n noartifact: 'noartifact',\n artifact_too_big: 'artifact_too_big',\n incompatible_tier: 'incompatible_tier',\n pause_before_committing: 'pause_before_committing',\n pause_before_installing: 'pause_before_installing',\n pause_before_rebooting: 'pause_before_rebooting',\n pending: 'pending',\n rebooting: 'rebooting',\n success: 'success'\n};\n\nexport type DeploymentSubstateMapping = {\n failures: string[];\n inprogress: string[];\n paused: string[];\n pending: string[];\n skipped?: string[];\n successes: string[];\n};\n\nexport const deploymentStatesToSubstates: DeploymentSubstateMapping = {\n failures: [deploymentSubstates.failure, deploymentSubstates.aborted, deploymentSubstates.decommissioned],\n inprogress: [deploymentSubstates.downloading, deploymentSubstates.installing, deploymentSubstates.rebooting],\n paused: [deploymentSubstates.pause_before_installing, deploymentSubstates.pause_before_rebooting, deploymentSubstates.pause_before_committing],\n pending: [deploymentSubstates.pending],\n successes: [\n deploymentSubstates.success,\n deploymentSubstates.alreadyInstalled,\n deploymentSubstates.noartifact,\n deploymentSubstates.artifact_too_big,\n deploymentSubstates.incompatible_tier\n ]\n};\n\nexport const deploymentStatesToSubstatesWithSkipped: DeploymentSubstateMapping = {\n ...deploymentStatesToSubstates,\n failures: [deploymentSubstates.failure],\n skipped: [\n deploymentSubstates.aborted,\n deploymentSubstates.noartifact,\n deploymentSubstates.artifact_too_big,\n deploymentSubstates.alreadyInstalled,\n deploymentSubstates.decommissioned,\n deploymentSubstates.incompatible_tier\n ],\n successes: [deploymentSubstates.success]\n};\nexport const installationSubstatesMap = {\n download: {\n title: 'download',\n done: 'downloaded',\n successIndicators: [deploymentSubstates.installing, deploymentSubstates.rebooting, ...deploymentStatesToSubstates.paused, deploymentSubstates.success],\n failureIndicators: deploymentStatesToSubstates.failures,\n pauseConfigurationIndicator: 'ArtifactInstall_Enter'\n },\n install: {\n title: 'install',\n done: 'installed',\n successIndicators: [\n deploymentSubstates.rebooting,\n deploymentSubstates.pause_before_rebooting,\n deploymentSubstates.pause_before_committing,\n deploymentSubstates.success\n ],\n failureIndicators: deploymentStatesToSubstates.failures,\n pauseConfigurationIndicator: 'ArtifactReboot_Enter'\n },\n reboot: {\n title: 'reboot',\n done: 'rebooted',\n successIndicators: [deploymentSubstates.pause_before_committing, deploymentSubstates.success],\n failureIndicators: deploymentStatesToSubstates.failures,\n pauseConfigurationIndicator: 'ArtifactCommit_Enter'\n },\n commit: {\n title: 'commit',\n done: 'committed',\n successIndicators: deploymentStatesToSubstates.successes,\n failureIndicators: deploymentStatesToSubstates.failures,\n pauseConfigurationIndicator: undefined\n }\n};\n\nexport const DEPLOYMENT_STATES = {\n finished: 'finished',\n inprogress: 'inprogress',\n pending: 'pending',\n scheduled: 'scheduled'\n} as const;\n\nexport const listDefaultsByState = {\n [DEPLOYMENT_STATES.inprogress]: { page: 1, perPage: 10 },\n [DEPLOYMENT_STATES.pending]: { page: 1, perPage: 10 },\n [DEPLOYMENT_STATES.scheduled]: { ...DEVICE_LIST_DEFAULTS },\n [DEPLOYMENT_STATES.finished]: { ...DEVICE_LIST_DEFAULTS },\n sort: { direction: SORTING_OPTIONS.desc }\n};\n\nexport const DEFAULT_PENDING_INPROGRESS_COUNT = 10;\nexport const DEPLOYMENT_ROUTES = {\n active: {\n key: 'active',\n route: '/deployments/active',\n states: [DEPLOYMENT_STATES.pending, DEPLOYMENT_STATES.inprogress],\n title: 'Active'\n },\n finished: {\n key: 'finished',\n route: '/deployments/finished',\n states: [DEPLOYMENT_STATES.finished],\n title: 'Finished'\n },\n scheduled: {\n key: 'scheduled',\n route: '/deployments/scheduled',\n states: [DEPLOYMENT_STATES.scheduled],\n title: 'Scheduled'\n }\n} as const;\nexport const DEPLOYMENT_TYPES = {\n software: 'software',\n configuration: 'configuration'\n};\nexport const defaultStats = {\n [deploymentSubstates.aborted]: 0,\n [deploymentSubstates.alreadyInstalled]: 0,\n [deploymentSubstates.decommissioned]: 0,\n [deploymentSubstates.downloading]: 0,\n [deploymentSubstates.failure]: 0,\n [deploymentSubstates.installing]: 0,\n [deploymentSubstates.noartifact]: 0,\n [deploymentSubstates.pause_before_committing]: 0,\n [deploymentSubstates.pause_before_installing]: 0,\n [deploymentSubstates.pause_before_rebooting]: 0,\n [deploymentSubstates.pending]: 0,\n [deploymentSubstates.rebooting]: 0,\n [deploymentSubstates.success]: 0\n};\nexport const deploymentDisplayStates = {\n finished: 'Finished',\n scheduled: 'Scheduled',\n skipped: 'Skipped',\n paused: 'Paused',\n pending: 'Pending',\n inprogress: 'In Progress',\n success: 'Success',\n successes: 'Success',\n failure: 'Fail',\n failures: 'Fail'\n};\n\nexport const deploymentPrototype = {\n devices: {},\n name: undefined,\n statistics: { status: {} } as DeploymentStatistics\n};\n\nexport const pauseMap = {\n [deploymentSubstates.pause_before_installing]: {\n title: installationSubstatesMap.download.done,\n followUp: installationSubstatesMap.download.pauseConfigurationIndicator\n },\n [deploymentSubstates.pause_before_rebooting]: {\n title: installationSubstatesMap.install.done,\n followUp: installationSubstatesMap.install.pauseConfigurationIndicator\n },\n [deploymentSubstates.pause_before_committing]: {\n title: installationSubstatesMap.reboot.done,\n followUp: installationSubstatesMap.reboot.pauseConfigurationIndicator\n }\n};\n","// Copyright 2019 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport type { DEVICE_STATES, FilterOperator } from '../constants';\nimport { DEVICE_FILTERING_OPTIONS } from '../constants';\n\nexport const emptyFilter = { key: null, value: '', operator: DEVICE_FILTERING_OPTIONS.$eq.key as FilterOperator, scope: 'inventory' };\n\n// see https://github.com/mendersoftware/go-lib-micro/tree/master/ws\n// for the description of proto_header and the consts\n// *Note*: this needs to be aligned with mender-connect and deviceconnect.\nexport const DEVICE_MESSAGE_PROTOCOLS = {\n Shell: 1\n};\nexport const DEVICE_MESSAGE_TYPES = {\n Delay: 'delay',\n New: 'new',\n Ping: 'ping',\n Pong: 'pong',\n Resize: 'resize',\n Shell: 'shell',\n Stop: 'stop'\n};\n\n// we can't include the dismiss state with the rest since this would include dismissed devices in several queries\nexport const DEVICE_DISMISSAL_STATE = 'dismiss';\n\nexport type DeviceAuthState = (typeof DEVICE_STATES)[keyof typeof DEVICE_STATES];\n\nexport const DEVICE_CONNECT_STATES = {\n connected: 'connected',\n disconnected: 'disconnected',\n unknown: 'unknown'\n};\n\nexport const geoAttributes = ['geo-lat', 'geo-lon'].map(attribute => ({ attribute, scope: 'inventory' }));\n\nexport const REPORT_CHART_SIZE_LIMIT = 6;\n","// Copyright 2020 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { useradmApiUrl } from '../constants';\n\nexport const XML_METADATA_FORMAT = 'xml';\nexport const JSON_METADATA_FORMAT = 'json';\n\nexport const getSamlStartUrl = id => `${window.location.origin}${useradmApiUrl}/auth/sso/${id}/login`;\nexport const getOidcStartUrl = id => `${window.location.origin}${useradmApiUrl}/oidc/${id}/start`;\n\nexport const SSO_TYPES = {\n saml: {\n id: 'saml',\n type: 'saml',\n title: 'SAML',\n metadataFormat: XML_METADATA_FORMAT,\n editorLanguage: XML_METADATA_FORMAT,\n contentType: 'application/samlmetadata+xml',\n getStartUrl: getSamlStartUrl,\n configDetails: [\n { key: 'entityID', label: 'Entity ID', getValue: id => `${window.location.origin}${useradmApiUrl}/sso/sp/metadata/${id}` },\n { key: 'acs', label: 'ACS URL', getValue: id => `${window.location.origin}${useradmApiUrl}/auth/sso/${id}/acs` },\n { key: 'startURL', label: 'Start URL', getValue: getSamlStartUrl }\n ]\n },\n oidc: {\n id: 'oidc',\n type: 'oidc',\n title: 'OpenID Connect',\n metadataFormat: JSON_METADATA_FORMAT,\n editorLanguage: JSON_METADATA_FORMAT,\n contentType: 'application/json',\n getStartUrl: getOidcStartUrl,\n configDetails: [{ key: 'startURL', label: 'Start Url', getValue: getOidcStartUrl }]\n }\n} as const;\n\nexport type ContentType = (typeof SSO_TYPES)[keyof typeof SSO_TYPES]['contentType'];\n\nexport const auditlogTypes = {\n artifact: { title: 'Artifact', queryParameter: 'object_type', value: 'artifact' },\n deployment: { title: 'Deployment', queryParameter: 'object_deployment_name', value: 'deployment' },\n device: { title: 'Device', queryParameter: 'object_id', value: 'device' },\n user_access_token: { title: 'Personal Access Token', queryParameter: 'user_access_token', value: 'user_access_token' },\n user: { title: 'User', queryParameter: 'object_id', value: 'user' },\n tenant: { title: 'Tenant', queryParameter: 'object_id', value: 'tenant' }\n};\n\nexport const AUDIT_LOGS_TYPES = [auditlogTypes.artifact, auditlogTypes.deployment, auditlogTypes.device, auditlogTypes.user_access_token, auditlogTypes.user];\nexport const SP_AUDIT_LOGS_TYPES = [auditlogTypes.user, auditlogTypes.tenant];\n\nexport const TENANT_LIST_DEFAULT = {\n page: 1,\n perPage: 20\n};\n","'use strict';\n\n// Copyright 2015 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { uiPermissionsById } from '../constants';\n\nexport type UiPermission = {\n explanations: object;\n permissionLevel: number;\n permissionSets: Record<string, string>;\n title: string;\n value: string;\n verbs: string[];\n};\n\ntype ExcessiveAccessConfig = {\n selector: string;\n warning: string;\n};\n\ntype EndpointDefinition = {\n path: RegExp;\n types: string[];\n uiPermissions: UiPermission[];\n};\n\n/**\n * _uiPermissions_ represent the possible permissions/ rights that can be given for the area\n * _endpoints_ represent the possible endpoints this definition might be affecting in the UI and what\n * functionality might be affected\n *\n */\nexport type PermissionsArea = {\n endpoints: EndpointDefinition[];\n excessiveAccessConfig?: ExcessiveAccessConfig;\n explanation: string;\n filter?: (object) => string[];\n key: string;\n placeholder?: string;\n scope?: string;\n title: string;\n uiPermissions: UiPermission[];\n};\n\nexport const itemUiPermissionsReducer = (accu, { item, uiPermissions }) => (item ? { ...accu, [item]: uiPermissions } : accu);\n\nconst checkSinglePermission = (permission, requiredPermission) =>\n requiredPermission === permission || uiPermissionsById[permission].permissionLevel > uiPermissionsById[requiredPermission].permissionLevel;\n\nexport const checkPermissionsObject = (permissions, requiredPermission, scopedAccess, superAccess) =>\n permissions[superAccess]?.some(permission => checkSinglePermission(permission, requiredPermission)) ||\n permissions[scopedAccess]?.some(permission => checkSinglePermission(permission, requiredPermission));\n\nexport const USER_LOGOUT = 'USER_LOGOUT';\n\nexport const OWN_USER_ID = 'me';\n\nexport const settingsKeys = { initialized: 'settings-initialized' };\n\nexport const READ_STATES = {\n read: 'read',\n seen: 'seen',\n unread: 'unread'\n} as const;\nexport type ReadState = keyof typeof READ_STATES;\n"],"mappings":";;;;AAoBA,MAAa,YAAY;CACvB,MAAM;CACN,SAAS;CACT,OAAO;AACT;AAEA,MAAa,kBAAkB;CAAE,IAAI;CAAmB,MAAM;AAAa;AAE3E,MAAa,6BAA6B;AAI1C,MAAM,YAAY;AAClB,MAAa,WAAW;CACtB,iBAAiB;CACjB,eAAe;CACf,aAAa,KAAM;CACnB;CACA,YAAY,IAAI;CAChB,cAAc,IAAI;CAClB,aAAa,IAAI;CACjB,gBAAgB,KAAK;CACrB,aAAa,KAAK;AACpB;AAEA,MAAa,uBAAuB;CAAE,UAAU;CAAG,cAAc,UAAU;AAAK;AAMhF,MAAa,qBAA4C,OAAO,OAAO;CAAE,WAAW;CAAM,OAAOA,+BAAAA,iBAAiB;AAAS,CAAC;AAE5H,MAAa,yCAAyC;AAItD,MAAa,yBAAyB;CACpC,SAAS;CACT,QAAQ;AACV;AAEA,MAAa,eAAe;CAAC;CAAS;CAAY;AAAQ;AAE1D,MAAa,kBAAkB;CAC7B,KAAK;CACL,MAAM;CACN,KAAK;CACL,MAAM;AACR;AACA,MAAa,oBAAoB;CAC/B,YAAY;EACV,iBAAiB,gBAAgB;EACjC,MAAMC,QAAAA;EACN,OAAO;EACP,WAAW;EACX,UAAU;EACV,SAAS;EACT,YAAY;EACZ,YAAY,iBAAA,GAAA,kBAAA,IAAA,CAAA,kBAAA,UAAA,EAAA,UAAE,yFAAwF,CAAA;CACxG;CACA,WAAW;EACT,iBAAiB,gBAAgB;EACjC,MAAMC,QAAAA;EACN,OAAO;EACP,WAAW;EACX,UAAU;EACV,SAAS;EACT,YAAY;EACZ,YACE,iBAAA,GAAA,kBAAA,KAAA,CAAC,QAAD,EAAA,UAAA;GAAM;GACwI;GAE1I,iBAAA,GAAA,kBAAA,IAAA,CAAC,KAAD;IACE,MAAK;IACL,QAAO;IACP,KAAI;cACL;GAEE,CAAA;GACJ;EAEG,EAAA,CAAA;CAEV;CACA,SAAS;EACP,iBAAiB,gBAAgB;EACjC,YAAY;EACZ,WAAW;EAEX,SAAS;EACT,UAAU;CACZ;AACF;AAMA,MAAa,eAAwB;CACnC,aAAa;CACb,UAAU;CACV,aAAa;EACX,MAAM,kBAAkB,QAAQ;GAC/B,kBAAkB,QAAQ,kBAAkB;GAC3C,QAAQ;GACR,KAAK;EACP;CACF;AACF;AAMA,MAAa,gBAAgB;AAC7B,MAAM,cAAc,IAAI,KAAK,aAAa,CAAC,IAAI,GAAG,EAAE,MAAM,SAAS,CAAC;AACpE,MAAa,YAAoC;CAC/C;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF,CAAC,CACE,KAAI,UAAS;CAAE;CAAM,OAAO,YAAY,GAAG,IAAI;AAAE,EAAE,CAAC,CACpD,MAAM,GAAG,MAAM,EAAE,MAAM,cAAc,EAAE,KAAK,CAAC;ACjXhD,MAAa,sBAAsB;CACjC,SAAS;CACT;CACA,gBAAgB;CAChB,aAAa;CACb,SAAS;CACT,YAAY;CACZ,YAAY;CACZ,kBAAkB;CAClB,mBAAmB;CACnB,yBAAyB;CACzB,yBAAyB;CACzB,wBAAwB;CACxB,SAAS;CACT,WAAW;CACX,SAAS;AACX;AAWA,MAAa,8BAAyD;CACpE,UAAU;EAAC,oBAAoB;EAAS,oBAAoB;EAAS,oBAAoB;CAAc;CACvG,YAAY;EAAC,oBAAoB;EAAa,oBAAoB;EAAY,oBAAoB;CAAS;CAC3G,QAAQ;EAAC,oBAAoB;EAAyB,oBAAoB;EAAwB,oBAAoB;CAAuB;CAC7I,SAAS,CAAC,oBAAoB,OAAO;CACrC,WAAW;EACT,oBAAoB;EACpB,oBAAoB;EACpB,oBAAoB;EACpB,oBAAoB;EACpB,oBAAoB;CACtB;AACF;AAEA,MAAa,yCAAoE;CAC/E,GAAG;CACH,UAAU,CAAC,oBAAoB,OAAO;CACtC,SAAS;EACP,oBAAoB;EACpB,oBAAoB;EACpB,oBAAoB;EACpB,oBAAoB;EACpB,oBAAoB;E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AE,OAAO;EAAU,gBAAgB;EAAa,OAAO;CAAS;AAC1E;AAEA,MAAa,mBAAmB;CAAC,cAAc;CAAU,cAAc;CAAY,cAAc;CAAQ,cAAc;CAAmB,cAAc;AAAI;AAC5J,MAAa,sBAAsB,CAAC,cAAc,MAAM,cAAc,MAAM;AAE5E,MAAa,sBAAsB;CACjC,MAAM;CACN,SAAS;AACX;;;ACVA,MAAa,4BAA4B,MAAM,EAAE,MAAM,oBAAqB,OAAO;CAAE,GAAG;EAAO,OAAO;AAAc,IAAI;AAExH,MAAM,yBAAyB,YAAY,uBACzC,uBAAuB,cAAcC,+BAAAA,kBAAkB,WAAW,CAAC,kBAAkBA,+BAAAA,kBAAkB,mBAAmB,CAAC;AAE7H,MAAa,0BAA0B,aAAa,oBAAoB,cAAc,gBACpF,YAAY,YAAY,EAAE,MAAK,eAAc,sBAAsB,YAAY,kBAAkB,CAAC,KAClG,YAAY,aAAa,EAAE,MAAK,eAAc,sBAAsB,YAAY,kBAAkB,CAAC;AAErG,MAAa,cAAc;AAE3B,MAAa,cAAc;AAE3B,MAAa,eAAe,EAAE,aAAa,uBAAuB;AAElE,MAAa,cAAc;CACzB,MAAM;CACN,MAAM;CACN,QAAQ;AACV"}
1
+ {"version":3,"file":"constants-C_SC_VKE.cjs","names":["ATTRIBUTE_SCOPES","AWS","Azure","DEVICE_LIST_DEFAULTS","SORTING_OPTIONS","DEVICE_FILTERING_OPTIONS","useradmApiUrl","uiPermissionsById"],"sources":["../src/commonConstants.tsx","../src/deploymentsSlice/constants.ts","../src/devicesSlice/constants.ts","../src/organizationSlice/constants.ts","../src/usersSlice/constants.ts"],"sourcesContent":["// Copyright 2024 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n// @ts-nocheck\nimport { mdiAws as AWS, mdiMicrosoftAzure as Azure } from '@mdi/js';\nimport type { Integration } from '@northern.tech/types/MenderTypes';\n\nimport type { DEVICE_FILTERING_OPTIONS } from './constants';\nimport { ATTRIBUTE_SCOPES } from './constants';\n\nexport const timeUnits = {\n days: 'days',\n minutes: 'minutes',\n hours: 'hours'\n};\n\nexport const UNGROUPED_GROUP = { id: '*|=ungrouped=|*', name: 'Unassigned' };\n\nexport const DEVICE_LIST_MAXIMUM_LENGTH = 50;\n\nexport type FilterOperator = keyof typeof DEVICE_FILTERING_OPTIONS;\n\nconst oneSecond = 1000;\nexport const TIMEOUTS = {\n debounceDefault: 700,\n debounceShort: 300,\n halfASecond: 0.5 * oneSecond,\n oneSecond,\n twoSeconds: 2 * oneSecond,\n threeSeconds: 3 * oneSecond,\n fiveSeconds: 5 * oneSecond,\n refreshDefault: 10 * oneSecond,\n refreshLong: 60 * oneSecond\n};\n\nexport const DEVICE_ONLINE_CUTOFF = { interval: 1, intervalName: timeUnits.days };\n\nexport interface IdAttribute {\n attribute: string;\n scope: string;\n}\nexport const defaultIdAttribute: Readonly<IdAttribute> = Object.freeze({ attribute: 'id', scope: ATTRIBUTE_SCOPES.identity });\n\nexport const ORCHESTRATOR_MANIFEST_ATTRIBUTE_PREFIX = 'mender-orchestrator-manifest.';\n\n// displayed labels for attribute scopes that diverge from the internal scope values: the system scope shows as\n// `default`, while orchestrator manifest attributes (inventory scope) show as `system`\nexport const ATTRIBUTE_SCOPE_LABELS = {\n default: 'default',\n system: 'system'\n} as const;\n\nexport const productOrder = ['micro', 'standard', 'system'];\n\nexport const credentialTypes = {\n aws: 'aws',\n http: 'http',\n sas: 'sas',\n x509: 'x509'\n};\nexport const EXTERNAL_PROVIDER = {\n 'iot-core': {\n credentialsType: credentialTypes.aws,\n icon: AWS,\n title: 'AWS IoT Core',\n twinTitle: 'Device Shadow',\n provider: 'iot-core',\n enabled: true,\n deviceTwin: true,\n configHint: <>For help finding your AWS IoT Core connection string, check the AWS IoT documentation.</>\n },\n 'iot-hub': {\n credentialsType: credentialTypes.sas,\n icon: Azure,\n title: 'Azure IoT Hub',\n twinTitle: 'Device Twin',\n provider: 'iot-hub',\n enabled: true,\n deviceTwin: true,\n configHint: (\n <span>\n For help finding your Azure IoT Hub connection string, look under &apos;Shared access policies&apos; in the Microsoft Azure UI as described{' '}\n {\n <a\n href=\"https://devblogs.microsoft.com/iotdev/understand-different-connection-strings-in-azure-iot-hub/#iothubconn\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n >\n here\n </a>\n }\n .\n </span>\n )\n },\n webhook: {\n credentialsType: credentialTypes.http,\n deviceTwin: false,\n twinTitle: '',\n // disable the webhook provider here, since it is treated different than other integrations, with a custom configuration & management view, etc.\n enabled: false,\n provider: 'webhook'\n }\n} as const;\n\nexport interface Webhook extends Integration {\n provider: 'webhook';\n}\n\nexport const emptyWebhook: Webhook = {\n description: '',\n provider: 'webhook',\n credentials: {\n type: EXTERNAL_PROVIDER.webhook.credentialsType,\n [EXTERNAL_PROVIDER.webhook.credentialsType]: {\n secret: '',\n url: ''\n }\n }\n};\n\ninterface CountryType {\n code: string;\n label: string;\n}\nexport const MAX_PAGE_SIZE = 500;\nconst regionNames = new Intl.DisplayNames(['en'], { type: 'region' });\nexport const countries: readonly CountryType[] = [\n 'AD',\n 'AE',\n 'AF',\n 'AG',\n 'AI',\n 'AL',\n 'AM',\n 'AO',\n 'AQ',\n 'AR',\n 'AS',\n 'AT',\n 'AU',\n 'AW',\n 'AX',\n 'AZ',\n 'BA',\n 'BB',\n 'BD',\n 'BE',\n 'BF',\n 'BG',\n 'BH',\n 'BI',\n 'BJ',\n 'BL',\n 'BM',\n 'BN',\n 'BO',\n 'BR',\n 'BS',\n 'BT',\n 'BV',\n 'BW',\n 'BY',\n 'BZ',\n 'CA',\n 'CC',\n 'CD',\n 'CF',\n 'CG',\n 'CH',\n 'CI',\n 'CK',\n 'CL',\n 'CM',\n 'CN',\n 'CO',\n 'CR',\n 'CU',\n 'CV',\n 'CW',\n 'CX',\n 'CY',\n 'CZ',\n 'DE',\n 'DJ',\n 'DK',\n 'DM',\n 'DO',\n 'DZ',\n 'EC',\n 'EE',\n 'EG',\n 'EH',\n 'ER',\n 'ES',\n 'ET',\n 'FI',\n 'FJ',\n 'FK',\n 'FM',\n 'FO',\n 'FR',\n 'GA',\n 'GB',\n 'GD',\n 'GE',\n 'GF',\n 'GG',\n 'GH',\n 'GI',\n 'GL',\n 'GM',\n 'GN',\n 'GP',\n 'GQ',\n 'GR',\n 'GS',\n 'GT',\n 'GU',\n 'GW',\n 'GY',\n 'HK',\n 'HM',\n 'HN',\n 'HR',\n 'HT',\n 'HU',\n 'ID',\n 'IE',\n 'IL',\n 'IM',\n 'IN',\n 'IO',\n 'IQ',\n 'IR',\n 'IS',\n 'IT',\n 'JE',\n 'JM',\n 'JO',\n 'JP',\n 'KE',\n 'KG',\n 'KH',\n 'KI',\n 'KM',\n 'KN',\n 'KP',\n 'KR',\n 'KW',\n 'KY',\n 'KZ',\n 'LA',\n 'LB',\n 'LC',\n 'LI',\n 'LK',\n 'LR',\n 'LS',\n 'LT',\n 'LU',\n 'LV',\n 'LY',\n 'MA',\n 'MC',\n 'MD',\n 'ME',\n 'MF',\n 'MG',\n 'MH',\n 'MK',\n 'ML',\n 'MM',\n 'MN',\n 'MO',\n 'MP',\n 'MQ',\n 'MR',\n 'MS',\n 'MT',\n 'MU',\n 'MV',\n 'MW',\n 'MX',\n 'MY',\n 'MZ',\n 'NA',\n 'NC',\n 'NE',\n 'NF',\n 'NG',\n 'NI',\n 'NL',\n 'NO',\n 'NP',\n 'NR',\n 'NU',\n 'NZ',\n 'OM',\n 'PA',\n 'PE',\n 'PF',\n 'PG',\n 'PH',\n 'PK',\n 'PL',\n 'PM',\n 'PN',\n 'PR',\n 'PS',\n 'PT',\n 'PW',\n 'PY',\n 'QA',\n 'RE',\n 'RO',\n 'RS',\n 'RU',\n 'RW',\n 'SA',\n 'SB',\n 'SC',\n 'SD',\n 'SE',\n 'SG',\n 'SH',\n 'SI',\n 'SJ',\n 'SK',\n 'SL',\n 'SM',\n 'SN',\n 'SO',\n 'SR',\n 'SS',\n 'ST',\n 'SV',\n 'SX',\n 'SY',\n 'SZ',\n 'TC',\n 'TD',\n 'TF',\n 'TG',\n 'TH',\n 'TJ',\n 'TK',\n 'TL',\n 'TM',\n 'TN',\n 'TO',\n 'TR',\n 'TT',\n 'TV',\n 'TW',\n 'TZ',\n 'UA',\n 'UG',\n 'US',\n 'UY',\n 'UZ',\n 'VA',\n 'VC',\n 'VE',\n 'VG',\n 'VI',\n 'VN',\n 'VU',\n 'WF',\n 'WS',\n 'XK',\n 'YE',\n 'YT',\n 'ZA',\n 'ZM',\n 'ZW'\n]\n .map(code => ({ code, label: regionNames.of(code) }))\n .sort((a, b) => a.label.localeCompare(b.label));\n","// Copyright 2019 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport type { DeploymentStatistics } from '@northern.tech/types/MenderTypes';\n\nimport { DEVICE_LIST_DEFAULTS, SORTING_OPTIONS } from '../constants';\n\nconst alreadyInstalled = 'already-installed';\n\nexport const deploymentSubstates = {\n aborted: 'aborted',\n alreadyInstalled,\n decommissioned: 'decommissioned',\n downloading: 'downloading',\n failure: 'failure',\n installing: 'installing',\n noartifact: 'noartifact',\n artifact_too_big: 'artifact_too_big',\n incompatible_tier: 'incompatible_tier',\n pause_before_committing: 'pause_before_committing',\n pause_before_installing: 'pause_before_installing',\n pause_before_rebooting: 'pause_before_rebooting',\n pending: 'pending',\n rebooting: 'rebooting',\n success: 'success'\n};\n\nexport type DeploymentSubstateMapping = {\n failures: string[];\n inprogress: string[];\n paused: string[];\n pending: string[];\n skipped?: string[];\n successes: string[];\n};\n\nexport const deploymentStatesToSubstates: DeploymentSubstateMapping = {\n failures: [deploymentSubstates.failure, deploymentSubstates.aborted, deploymentSubstates.decommissioned],\n inprogress: [deploymentSubstates.downloading, deploymentSubstates.installing, deploymentSubstates.rebooting],\n paused: [deploymentSubstates.pause_before_installing, deploymentSubstates.pause_before_rebooting, deploymentSubstates.pause_before_committing],\n pending: [deploymentSubstates.pending],\n successes: [\n deploymentSubstates.success,\n deploymentSubstates.alreadyInstalled,\n deploymentSubstates.noartifact,\n deploymentSubstates.artifact_too_big,\n deploymentSubstates.incompatible_tier\n ]\n};\n\nexport const deploymentStatesToSubstatesWithSkipped: DeploymentSubstateMapping = {\n ...deploymentStatesToSubstates,\n failures: [deploymentSubstates.failure],\n skipped: [\n deploymentSubstates.aborted,\n deploymentSubstates.noartifact,\n deploymentSubstates.artifact_too_big,\n deploymentSubstates.alreadyInstalled,\n deploymentSubstates.decommissioned,\n deploymentSubstates.incompatible_tier\n ],\n successes: [deploymentSubstates.success]\n};\nexport const installationSubstatesMap = {\n download: {\n title: 'download',\n done: 'downloaded',\n successIndicators: [deploymentSubstates.installing, deploymentSubstates.rebooting, ...deploymentStatesToSubstates.paused, deploymentSubstates.success],\n failureIndicators: deploymentStatesToSubstates.failures,\n pauseConfigurationIndicator: 'ArtifactInstall_Enter'\n },\n install: {\n title: 'install',\n done: 'installed',\n successIndicators: [\n deploymentSubstates.rebooting,\n deploymentSubstates.pause_before_rebooting,\n deploymentSubstates.pause_before_committing,\n deploymentSubstates.success\n ],\n failureIndicators: deploymentStatesToSubstates.failures,\n pauseConfigurationIndicator: 'ArtifactReboot_Enter'\n },\n reboot: {\n title: 'reboot',\n done: 'rebooted',\n successIndicators: [deploymentSubstates.pause_before_committing, deploymentSubstates.success],\n failureIndicators: deploymentStatesToSubstates.failures,\n pauseConfigurationIndicator: 'ArtifactCommit_Enter'\n },\n commit: {\n title: 'commit',\n done: 'committed',\n successIndicators: deploymentStatesToSubstates.successes,\n failureIndicators: deploymentStatesToSubstates.failures,\n pauseConfigurationIndicator: undefined\n }\n};\n\nexport const DEPLOYMENT_STATES = {\n finished: 'finished',\n inprogress: 'inprogress',\n pending: 'pending',\n scheduled: 'scheduled'\n} as const;\n\nexport const listDefaultsByState = {\n [DEPLOYMENT_STATES.inprogress]: { page: 1, perPage: 10 },\n [DEPLOYMENT_STATES.pending]: { page: 1, perPage: 10 },\n [DEPLOYMENT_STATES.scheduled]: { ...DEVICE_LIST_DEFAULTS },\n [DEPLOYMENT_STATES.finished]: { ...DEVICE_LIST_DEFAULTS },\n sort: { direction: SORTING_OPTIONS.desc }\n};\n\nexport const DEFAULT_PENDING_INPROGRESS_COUNT = 10;\nexport const DEPLOYMENT_ROUTES = {\n active: {\n key: 'active',\n route: '/deployments/active',\n states: [DEPLOYMENT_STATES.pending, DEPLOYMENT_STATES.inprogress],\n title: 'Active'\n },\n finished: {\n key: 'finished',\n route: '/deployments/finished',\n states: [DEPLOYMENT_STATES.finished],\n title: 'Finished'\n },\n scheduled: {\n key: 'scheduled',\n route: '/deployments/scheduled',\n states: [DEPLOYMENT_STATES.scheduled],\n title: 'Scheduled'\n }\n} as const;\nexport const DEPLOYMENT_TYPES = {\n software: 'software',\n configuration: 'configuration'\n};\nexport const defaultStats = {\n [deploymentSubstates.aborted]: 0,\n [deploymentSubstates.alreadyInstalled]: 0,\n [deploymentSubstates.decommissioned]: 0,\n [deploymentSubstates.downloading]: 0,\n [deploymentSubstates.failure]: 0,\n [deploymentSubstates.installing]: 0,\n [deploymentSubstates.noartifact]: 0,\n [deploymentSubstates.pause_before_committing]: 0,\n [deploymentSubstates.pause_before_installing]: 0,\n [deploymentSubstates.pause_before_rebooting]: 0,\n [deploymentSubstates.pending]: 0,\n [deploymentSubstates.rebooting]: 0,\n [deploymentSubstates.success]: 0\n};\nexport const deploymentDisplayStates = {\n finished: 'Finished',\n scheduled: 'Scheduled',\n skipped: 'Skipped',\n paused: 'Paused',\n pending: 'Pending',\n inprogress: 'In Progress',\n success: 'Success',\n successes: 'Success',\n failure: 'Fail',\n failures: 'Fail'\n};\n\nexport const deploymentPrototype = {\n devices: {},\n name: undefined,\n statistics: { status: {} } as DeploymentStatistics\n};\n\nexport const pauseMap = {\n [deploymentSubstates.pause_before_installing]: {\n title: installationSubstatesMap.download.done,\n followUp: installationSubstatesMap.download.pauseConfigurationIndicator\n },\n [deploymentSubstates.pause_before_rebooting]: {\n title: installationSubstatesMap.install.done,\n followUp: installationSubstatesMap.install.pauseConfigurationIndicator\n },\n [deploymentSubstates.pause_before_committing]: {\n title: installationSubstatesMap.reboot.done,\n followUp: installationSubstatesMap.reboot.pauseConfigurationIndicator\n }\n};\n","// Copyright 2019 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport type { DEVICE_STATES, FilterOperator } from '../constants';\nimport { DEVICE_FILTERING_OPTIONS } from '../constants';\n\nexport const emptyFilter = { key: null, value: '', operator: DEVICE_FILTERING_OPTIONS.$eq.key as FilterOperator, scope: 'inventory' };\n\n// see https://github.com/mendersoftware/go-lib-micro/tree/master/ws\n// for the description of proto_header and the consts\n// *Note*: this needs to be aligned with mender-connect and deviceconnect.\nexport const DEVICE_MESSAGE_PROTOCOLS = {\n Shell: 1\n};\nexport const DEVICE_MESSAGE_TYPES = {\n Delay: 'delay',\n New: 'new',\n Ping: 'ping',\n Pong: 'pong',\n Resize: 'resize',\n Shell: 'shell',\n Stop: 'stop'\n};\n\n// we can't include the dismiss state with the rest since this would include dismissed devices in several queries\nexport const DEVICE_DISMISSAL_STATE = 'dismiss';\n\nexport type DeviceAuthState = (typeof DEVICE_STATES)[keyof typeof DEVICE_STATES];\n\nexport const DEVICE_CONNECT_STATES = {\n connected: 'connected',\n disconnected: 'disconnected',\n unknown: 'unknown'\n};\n\nexport const geoAttributes = ['geo-lat', 'geo-lon'].map(attribute => ({ attribute, scope: 'inventory' }));\n\nexport const REPORT_CHART_SIZE_LIMIT = 6;\n","// Copyright 2020 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { useradmApiUrl } from '../constants';\n\nexport const XML_METADATA_FORMAT = 'xml';\nexport const JSON_METADATA_FORMAT = 'json';\n\nexport const getSamlStartUrl = id => `${window.location.origin}${useradmApiUrl}/auth/sso/${id}/login`;\nexport const getOidcStartUrl = id => `${window.location.origin}${useradmApiUrl}/oidc/${id}/start`;\n\nexport const SSO_TYPES = {\n saml: {\n id: 'saml',\n type: 'saml',\n title: 'SAML',\n metadataFormat: XML_METADATA_FORMAT,\n editorLanguage: XML_METADATA_FORMAT,\n contentType: 'application/samlmetadata+xml',\n getStartUrl: getSamlStartUrl,\n configDetails: [\n { key: 'entityID', label: 'Entity ID', getValue: id => `${window.location.origin}${useradmApiUrl}/sso/sp/metadata/${id}` },\n { key: 'acs', label: 'ACS URL', getValue: id => `${window.location.origin}${useradmApiUrl}/auth/sso/${id}/acs` },\n { key: 'startURL', label: 'Start URL', getValue: getSamlStartUrl }\n ]\n },\n oidc: {\n id: 'oidc',\n type: 'oidc',\n title: 'OpenID Connect',\n metadataFormat: JSON_METADATA_FORMAT,\n editorLanguage: JSON_METADATA_FORMAT,\n contentType: 'application/json',\n getStartUrl: getOidcStartUrl,\n configDetails: [{ key: 'startURL', label: 'Start Url', getValue: getOidcStartUrl }]\n }\n} as const;\n\nexport type ContentType = (typeof SSO_TYPES)[keyof typeof SSO_TYPES]['contentType'];\n\nexport const auditlogTypes = {\n artifact: { title: 'Artifact', queryParameter: 'object_type', value: 'artifact' },\n deployment: { title: 'Deployment', queryParameter: 'object_deployment_name', value: 'deployment' },\n device: { title: 'Device', queryParameter: 'object_id', value: 'device' },\n user_access_token: { title: 'Personal Access Token', queryParameter: 'user_access_token', value: 'user_access_token' },\n user: { title: 'User', queryParameter: 'object_id', value: 'user' },\n tenant: { title: 'Tenant', queryParameter: 'object_id', value: 'tenant' }\n};\n\nexport const AUDIT_LOGS_TYPES = [auditlogTypes.artifact, auditlogTypes.deployment, auditlogTypes.device, auditlogTypes.user_access_token, auditlogTypes.user];\nexport const SP_AUDIT_LOGS_TYPES = [auditlogTypes.user, auditlogTypes.tenant];\n\nexport const TENANT_LIST_DEFAULT = {\n page: 1,\n perPage: 20\n};\n","'use strict';\n\n// Copyright 2015 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { uiPermissionsById } from '../constants';\n\nexport type UiPermission = {\n explanations: object;\n permissionLevel: number;\n permissionSets: Record<string, string>;\n title: string;\n value: string;\n verbs: string[];\n};\n\ntype ExcessiveAccessConfig = {\n selector: string;\n warning: string;\n};\n\ntype EndpointDefinition = {\n path: RegExp;\n types: string[];\n uiPermissions: UiPermission[];\n};\n\n/**\n * _uiPermissions_ represent the possible permissions/ rights that can be given for the area\n * _endpoints_ represent the possible endpoints this definition might be affecting in the UI and what\n * functionality might be affected\n *\n */\nexport type PermissionsArea = {\n endpoints: EndpointDefinition[];\n excessiveAccessConfig?: ExcessiveAccessConfig;\n explanation: string;\n filter?: (object) => string[];\n key: string;\n placeholder?: string;\n scope?: string;\n title: string;\n uiPermissions: UiPermission[];\n};\n\nexport const itemUiPermissionsReducer = (accu, { item, uiPermissions }) => (item ? { ...accu, [item]: uiPermissions } : accu);\n\nconst checkSinglePermission = (permission, requiredPermission) =>\n requiredPermission === permission || uiPermissionsById[permission].permissionLevel > uiPermissionsById[requiredPermission].permissionLevel;\n\nexport const checkPermissionsObject = (permissions, requiredPermission, scopedAccess, superAccess) =>\n permissions[superAccess]?.some(permission => checkSinglePermission(permission, requiredPermission)) ||\n permissions[scopedAccess]?.some(permission => checkSinglePermission(permission, requiredPermission));\n\nexport const USER_LOGOUT = 'USER_LOGOUT';\n\nexport const OWN_USER_ID = 'me';\n\nexport const settingsKeys = { initialized: 'settings-initialized' };\n\nexport const READ_STATES = {\n read: 'read',\n seen: 'seen',\n unread: 'unread'\n} as const;\nexport type ReadState = keyof typeof READ_STATES;\n"],"mappings":";;;;AAoBA,MAAa,YAAY;CACvB,MAAM;CACN,SAAS;CACT,OAAO;AACT;AAEA,MAAa,kBAAkB;CAAE,IAAI;CAAmB,MAAM;AAAa;AAE3E,MAAa,6BAA6B;AAI1C,MAAM,YAAY;AAClB,MAAa,WAAW;CACtB,iBAAiB;CACjB,eAAe;CACf,aAAa,KAAM;CACnB;CACA,YAAY,IAAI;CAChB,cAAc,IAAI;CAClB,aAAa,IAAI;CACjB,gBAAgB,KAAK;CACrB,aAAa,KAAK;AACpB;AAEA,MAAa,uBAAuB;CAAE,UAAU;CAAG,cAAc,UAAU;AAAK;AAMhF,MAAa,qBAA4C,OAAO,OAAO;CAAE,WAAW;CAAM,OAAOA,+BAAAA,iBAAiB;AAAS,CAAC;AAE5H,MAAa,yCAAy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;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF,CAAC,CACE,KAAI,UAAS;CAAE;CAAM,OAAO,YAAY,GAAG,IAAI;AAAE,EAAE,CAAC,CACpD,MAAM,GAAG,MAAM,EAAE,MAAM,cAAc,EAAE,KAAK,CAAC;ACjXhD,MAAa,sBAAsB;CACjC,SAAS;CACT;CACA,gBAAgB;CAChB,aAAa;CACb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AAY,kBAAkB,CAAC;AAErG,MAAa,cAAc;AAE3B,MAAa,cAAc;AAE3B,MAAa,eAAe,EAAE,aAAa,uBAAuB;AAElE,MAAa,cAAc;CACzB,MAAM;CACN,MAAM;CACN,QAAQ;AACV"}
@@ -1,4 +1,4 @@
1
- import { ALL_DEVICES, ALL_DEVICE_STATES, ALL_RELEASES, APPLICATION_JSON_CONTENT_TYPE, APPLICATION_JWT_CONTENT_TYPE, ATTRIBUTE_SCOPES, DEVICE_FILTERING_OPTIONS, DEVICE_ISSUE_OPTIONS, DEVICE_LIST_DEFAULTS, DEVICE_STATES, PermissionTypes, SORTING_OPTIONS, alertChannels, apiRoot, apiUrl, auditLogsApiUrl, defaultPermissionSets, deploymentsApiUrl, deploymentsApiUrlV1alpha1, deploymentsApiUrlV2, deviceAuthV2, deviceConfig, deviceConnect, emptyRole, emptyUiPermissions, headerNames, inventoryApiUrl, inventoryApiUrlV2, iotManagerBaseURL, limitDefault, maxSessionAge, monitorApiUrlv1, rolesById, rolesByName, scopedPermissionAreas, serviceProviderRolesById, ssoIdpApiUrlv1, tenantadmApiUrlv1, tenantadmApiUrlv2, twoFAStates, uiPermissionsByArea, uiPermissionsById, useradmApiUrl, useradmApiUrlv1, useradmApiUrlv2 } from "@northern.tech/utils/constants";
1
+ import { ALL_DEVICES, ALL_DEVICE_STATES, ALL_RELEASES, APPLICATION_JSON_CONTENT_TYPE, APPLICATION_JWT_CONTENT_TYPE, ATTRIBUTE_SCOPES, DEVICE_FILTERING_OPTIONS, DEVICE_ISSUE_OPTIONS, DEVICE_LIST_DEFAULTS, DEVICE_STATES, PermissionTypes, SORTING_OPTIONS, alertChannels, apiRoot, apiUrl, auditLogsApiUrl, defaultPermissionSets, deploymentsApiUrl, deploymentsApiUrlV1alpha1, deploymentsApiUrlV2, deviceAuthV2, deviceConfig, deviceConnect, emptyRole, emptyUiPermissions, headerNames, inventoryApiUrl, inventoryApiUrlV2, inventoryApiUrlV2alpha1, iotManagerBaseURL, limitDefault, maxSessionAge, monitorApiUrlv1, rolesById, rolesByName, scopedPermissionAreas, serviceProviderRolesById, ssoIdpApiUrlv1, tenantadmApiUrlv1, tenantadmApiUrlv2, twoFAStates, uiPermissionsByArea, uiPermissionsById, useradmApiUrl, useradmApiUrlv1, useradmApiUrlv2 } from "@northern.tech/utils/constants";
2
2
  import { mdiAws, mdiMicrosoftAzure } from "@mdi/js";
3
3
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
4
4
  //#region src/commonConstants.tsx
@@ -676,6 +676,6 @@ const READ_STATES = {
676
676
  unread: "unread"
677
677
  };
678
678
  //#endregion
679
- export { JSON_METADATA_FORMAT as $, limitDefault as A, EXTERNAL_PROVIDER as At, twoFAStates as B, timeUnits as Bt, deviceConnect as C, deploymentSubstates as Ct, inventoryApiUrl as D, ATTRIBUTE_SCOPE_LABELS as Dt, headerNames as E, pauseMap as Et, scopedPermissionAreas as F, countries as Ft, useradmApiUrlv2 as G, uiPermissionsById as H, serviceProviderRolesById as I, credentialTypes as It, USER_LOGOUT as J, OWN_USER_ID as K, ssoIdpApiUrlv1 as L, defaultIdAttribute as Lt, monitorApiUrlv1 as M, ORCHESTRATOR_MANIFEST_ATTRIBUTE_PREFIX as Mt, rolesById as N, TIMEOUTS as Nt, inventoryApiUrlV2 as O, DEVICE_LIST_MAXIMUM_LENGTH as Ot, rolesByName as P, UNGROUPED_GROUP as Pt, AUDIT_LOGS_TYPES as Q, tenantadmApiUrlv1 as R, emptyWebhook as Rt, deviceConfig as S, deploymentStatesToSubstatesWithSkipped as St, emptyUiPermissions as T, listDefaultsByState as Tt, useradmApiUrl as U, uiPermissionsByArea as V, useradmApiUrlv1 as W, itemUiPermissionsReducer as X, checkPermissionsObject as Y, settingsKeys as Z, defaultPermissionSets as _, DEPLOYMENT_TYPES as _t, APPLICATION_JWT_CONTENT_TYPE as a, getOidcStartUrl as at, deploymentsApiUrlV2 as b, deploymentPrototype as bt, DEVICE_ISSUE_OPTIONS as c, DEVICE_DISMISSAL_STATE as ct, PermissionTypes as d, REPORT_CHART_SIZE_LIMIT as dt, SP_AUDIT_LOGS_TYPES as et, SORTING_OPTIONS as f, emptyFilter as ft, auditLogsApiUrl as g, DEPLOYMENT_STATES as gt, apiUrl as h, DEPLOYMENT_ROUTES as ht, APPLICATION_JSON_CONTENT_TYPE as i, auditlogTypes as it, maxSessionAge as j, MAX_PAGE_SIZE as jt, iotManagerBaseURL as k, DEVICE_ONLINE_CUTOFF as kt, DEVICE_LIST_DEFAULTS as l, DEVICE_MESSAGE_PROTOCOLS as lt, apiRoot as m, DEFAULT_PENDING_INPROGRESS_COUNT as mt, ALL_DEVICE_STATES as n, TENANT_LIST_DEFAULT as nt, ATTRIBUTE_SCOPES as o, getSamlStartUrl as ot, alertChannels as p, geoAttributes as pt, READ_STATES as q, ALL_RELEASES as r, XML_METADATA_FORMAT as rt, DEVICE_FILTERING_OPTIONS as s, DEVICE_CONNECT_STATES as st, ALL_DEVICES as t, SSO_TYPES as tt, DEVICE_STATES as u, DEVICE_MESSAGE_TYPES as ut, deploymentsApiUrl as v, defaultStats as vt, emptyRole as w, installationSubstatesMap as wt, deviceAuthV2 as x, deploymentStatesToSubstates as xt, deploymentsApiUrlV1alpha1 as y, deploymentDisplayStates as yt, tenantadmApiUrlv2 as z, productOrder as zt };
679
+ export { AUDIT_LOGS_TYPES as $, iotManagerBaseURL as A, DEVICE_ONLINE_CUTOFF as At, tenantadmApiUrlv2 as B, productOrder as Bt, deviceConnect as C, deploymentStatesToSubstatesWithSkipped as Ct, inventoryApiUrl as D, pauseMap as Dt, headerNames as E, listDefaultsByState as Et, rolesByName as F, UNGROUPED_GROUP as Ft, useradmApiUrlv1 as G, uiPermissionsByArea as H, scopedPermissionAreas as I, countries as It, READ_STATES as J, useradmApiUrlv2 as K, serviceProviderRolesById as L, credentialTypes as Lt, maxSessionAge as M, MAX_PAGE_SIZE as Mt, monitorApiUrlv1 as N, ORCHESTRATOR_MANIFEST_ATTRIBUTE_PREFIX as Nt, inventoryApiUrlV2 as O, ATTRIBUTE_SCOPE_LABELS as Ot, rolesById as P, TIMEOUTS as Pt, settingsKeys as Q, ssoIdpApiUrlv1 as R, defaultIdAttribute as Rt, deviceConfig as S, deploymentStatesToSubstates as St, emptyUiPermissions as T, installationSubstatesMap as Tt, uiPermissionsById as U, twoFAStates as V, timeUnits as Vt, useradmApiUrl as W, checkPermissionsObject as X, USER_LOGOUT as Y, itemUiPermissionsReducer as Z, defaultPermissionSets as _, DEPLOYMENT_STATES as _t, APPLICATION_JWT_CONTENT_TYPE as a, auditlogTypes as at, deploymentsApiUrlV2 as b, deploymentDisplayStates as bt, DEVICE_ISSUE_OPTIONS as c, DEVICE_CONNECT_STATES as ct, PermissionTypes as d, DEVICE_MESSAGE_TYPES as dt, JSON_METADATA_FORMAT as et, SORTING_OPTIONS as f, REPORT_CHART_SIZE_LIMIT as ft, auditLogsApiUrl as g, DEPLOYMENT_ROUTES as gt, apiUrl as h, DEFAULT_PENDING_INPROGRESS_COUNT as ht, APPLICATION_JSON_CONTENT_TYPE as i, XML_METADATA_FORMAT as it, limitDefault as j, EXTERNAL_PROVIDER as jt, inventoryApiUrlV2alpha1 as k, DEVICE_LIST_MAXIMUM_LENGTH as kt, DEVICE_LIST_DEFAULTS as l, DEVICE_DISMISSAL_STATE as lt, apiRoot as m, geoAttributes as mt, ALL_DEVICE_STATES as n, SSO_TYPES as nt, ATTRIBUTE_SCOPES as o, getOidcStartUrl as ot, alertChannels as p, emptyFilter as pt, OWN_USER_ID as q, ALL_RELEASES as r, TENANT_LIST_DEFAULT as rt, DEVICE_FILTERING_OPTIONS as s, getSamlStartUrl as st, ALL_DEVICES as t, SP_AUDIT_LOGS_TYPES as tt, DEVICE_STATES as u, DEVICE_MESSAGE_PROTOCOLS as ut, deploymentsApiUrl as v, DEPLOYMENT_TYPES as vt, emptyRole as w, deploymentSubstates as wt, deviceAuthV2 as x, deploymentPrototype as xt, deploymentsApiUrlV1alpha1 as y, defaultStats as yt, tenantadmApiUrlv1 as z, emptyWebhook as zt };
680
680
 
681
- //# sourceMappingURL=constants-xpheFFkA.js.map
681
+ //# sourceMappingURL=constants-CerzXHnQ.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants-xpheFFkA.js","names":["AWS","Azure"],"sources":["../src/commonConstants.tsx","../src/deploymentsSlice/constants.ts","../src/devicesSlice/constants.ts","../src/organizationSlice/constants.ts","../src/usersSlice/constants.ts"],"sourcesContent":["// Copyright 2024 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n// @ts-nocheck\nimport { mdiAws as AWS, mdiMicrosoftAzure as Azure } from '@mdi/js';\nimport type { Integration } from '@northern.tech/types/MenderTypes';\n\nimport type { DEVICE_FILTERING_OPTIONS } from './constants';\nimport { ATTRIBUTE_SCOPES } from './constants';\n\nexport const timeUnits = {\n days: 'days',\n minutes: 'minutes',\n hours: 'hours'\n};\n\nexport const UNGROUPED_GROUP = { id: '*|=ungrouped=|*', name: 'Unassigned' };\n\nexport const DEVICE_LIST_MAXIMUM_LENGTH = 50;\n\nexport type FilterOperator = keyof typeof DEVICE_FILTERING_OPTIONS;\n\nconst oneSecond = 1000;\nexport const TIMEOUTS = {\n debounceDefault: 700,\n debounceShort: 300,\n halfASecond: 0.5 * oneSecond,\n oneSecond,\n twoSeconds: 2 * oneSecond,\n threeSeconds: 3 * oneSecond,\n fiveSeconds: 5 * oneSecond,\n refreshDefault: 10 * oneSecond,\n refreshLong: 60 * oneSecond\n};\n\nexport const DEVICE_ONLINE_CUTOFF = { interval: 1, intervalName: timeUnits.days };\n\nexport interface IdAttribute {\n attribute: string;\n scope: string;\n}\nexport const defaultIdAttribute: Readonly<IdAttribute> = Object.freeze({ attribute: 'id', scope: ATTRIBUTE_SCOPES.identity });\n\nexport const ORCHESTRATOR_MANIFEST_ATTRIBUTE_PREFIX = 'mender-orchestrator-manifest.';\n\n// displayed labels for attribute scopes that diverge from the internal scope values: the system scope shows as\n// `default`, while orchestrator manifest attributes (inventory scope) show as `system`\nexport const ATTRIBUTE_SCOPE_LABELS = {\n default: 'default',\n system: 'system'\n} as const;\n\nexport const productOrder = ['micro', 'standard', 'system'];\n\nexport const credentialTypes = {\n aws: 'aws',\n http: 'http',\n sas: 'sas',\n x509: 'x509'\n};\nexport const EXTERNAL_PROVIDER = {\n 'iot-core': {\n credentialsType: credentialTypes.aws,\n icon: AWS,\n title: 'AWS IoT Core',\n twinTitle: 'Device Shadow',\n provider: 'iot-core',\n enabled: true,\n deviceTwin: true,\n configHint: <>For help finding your AWS IoT Core connection string, check the AWS IoT documentation.</>\n },\n 'iot-hub': {\n credentialsType: credentialTypes.sas,\n icon: Azure,\n title: 'Azure IoT Hub',\n twinTitle: 'Device Twin',\n provider: 'iot-hub',\n enabled: true,\n deviceTwin: true,\n configHint: (\n <span>\n For help finding your Azure IoT Hub connection string, look under &apos;Shared access policies&apos; in the Microsoft Azure UI as described{' '}\n {\n <a\n href=\"https://devblogs.microsoft.com/iotdev/understand-different-connection-strings-in-azure-iot-hub/#iothubconn\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n >\n here\n </a>\n }\n .\n </span>\n )\n },\n webhook: {\n credentialsType: credentialTypes.http,\n deviceTwin: false,\n twinTitle: '',\n // disable the webhook provider here, since it is treated different than other integrations, with a custom configuration & management view, etc.\n enabled: false,\n provider: 'webhook'\n }\n} as const;\n\nexport interface Webhook extends Integration {\n provider: 'webhook';\n}\n\nexport const emptyWebhook: Webhook = {\n description: '',\n provider: 'webhook',\n credentials: {\n type: EXTERNAL_PROVIDER.webhook.credentialsType,\n [EXTERNAL_PROVIDER.webhook.credentialsType]: {\n secret: '',\n url: ''\n }\n }\n};\n\ninterface CountryType {\n code: string;\n label: string;\n}\nexport const MAX_PAGE_SIZE = 500;\nconst regionNames = new Intl.DisplayNames(['en'], { type: 'region' });\nexport const countries: readonly CountryType[] = [\n 'AD',\n 'AE',\n 'AF',\n 'AG',\n 'AI',\n 'AL',\n 'AM',\n 'AO',\n 'AQ',\n 'AR',\n 'AS',\n 'AT',\n 'AU',\n 'AW',\n 'AX',\n 'AZ',\n 'BA',\n 'BB',\n 'BD',\n 'BE',\n 'BF',\n 'BG',\n 'BH',\n 'BI',\n 'BJ',\n 'BL',\n 'BM',\n 'BN',\n 'BO',\n 'BR',\n 'BS',\n 'BT',\n 'BV',\n 'BW',\n 'BY',\n 'BZ',\n 'CA',\n 'CC',\n 'CD',\n 'CF',\n 'CG',\n 'CH',\n 'CI',\n 'CK',\n 'CL',\n 'CM',\n 'CN',\n 'CO',\n 'CR',\n 'CU',\n 'CV',\n 'CW',\n 'CX',\n 'CY',\n 'CZ',\n 'DE',\n 'DJ',\n 'DK',\n 'DM',\n 'DO',\n 'DZ',\n 'EC',\n 'EE',\n 'EG',\n 'EH',\n 'ER',\n 'ES',\n 'ET',\n 'FI',\n 'FJ',\n 'FK',\n 'FM',\n 'FO',\n 'FR',\n 'GA',\n 'GB',\n 'GD',\n 'GE',\n 'GF',\n 'GG',\n 'GH',\n 'GI',\n 'GL',\n 'GM',\n 'GN',\n 'GP',\n 'GQ',\n 'GR',\n 'GS',\n 'GT',\n 'GU',\n 'GW',\n 'GY',\n 'HK',\n 'HM',\n 'HN',\n 'HR',\n 'HT',\n 'HU',\n 'ID',\n 'IE',\n 'IL',\n 'IM',\n 'IN',\n 'IO',\n 'IQ',\n 'IR',\n 'IS',\n 'IT',\n 'JE',\n 'JM',\n 'JO',\n 'JP',\n 'KE',\n 'KG',\n 'KH',\n 'KI',\n 'KM',\n 'KN',\n 'KP',\n 'KR',\n 'KW',\n 'KY',\n 'KZ',\n 'LA',\n 'LB',\n 'LC',\n 'LI',\n 'LK',\n 'LR',\n 'LS',\n 'LT',\n 'LU',\n 'LV',\n 'LY',\n 'MA',\n 'MC',\n 'MD',\n 'ME',\n 'MF',\n 'MG',\n 'MH',\n 'MK',\n 'ML',\n 'MM',\n 'MN',\n 'MO',\n 'MP',\n 'MQ',\n 'MR',\n 'MS',\n 'MT',\n 'MU',\n 'MV',\n 'MW',\n 'MX',\n 'MY',\n 'MZ',\n 'NA',\n 'NC',\n 'NE',\n 'NF',\n 'NG',\n 'NI',\n 'NL',\n 'NO',\n 'NP',\n 'NR',\n 'NU',\n 'NZ',\n 'OM',\n 'PA',\n 'PE',\n 'PF',\n 'PG',\n 'PH',\n 'PK',\n 'PL',\n 'PM',\n 'PN',\n 'PR',\n 'PS',\n 'PT',\n 'PW',\n 'PY',\n 'QA',\n 'RE',\n 'RO',\n 'RS',\n 'RU',\n 'RW',\n 'SA',\n 'SB',\n 'SC',\n 'SD',\n 'SE',\n 'SG',\n 'SH',\n 'SI',\n 'SJ',\n 'SK',\n 'SL',\n 'SM',\n 'SN',\n 'SO',\n 'SR',\n 'SS',\n 'ST',\n 'SV',\n 'SX',\n 'SY',\n 'SZ',\n 'TC',\n 'TD',\n 'TF',\n 'TG',\n 'TH',\n 'TJ',\n 'TK',\n 'TL',\n 'TM',\n 'TN',\n 'TO',\n 'TR',\n 'TT',\n 'TV',\n 'TW',\n 'TZ',\n 'UA',\n 'UG',\n 'US',\n 'UY',\n 'UZ',\n 'VA',\n 'VC',\n 'VE',\n 'VG',\n 'VI',\n 'VN',\n 'VU',\n 'WF',\n 'WS',\n 'XK',\n 'YE',\n 'YT',\n 'ZA',\n 'ZM',\n 'ZW'\n]\n .map(code => ({ code, label: regionNames.of(code) }))\n .sort((a, b) => a.label.localeCompare(b.label));\n","// Copyright 2019 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport type { DeploymentStatistics } from '@northern.tech/types/MenderTypes';\n\nimport { DEVICE_LIST_DEFAULTS, SORTING_OPTIONS } from '../constants';\n\nconst alreadyInstalled = 'already-installed';\n\nexport const deploymentSubstates = {\n aborted: 'aborted',\n alreadyInstalled,\n decommissioned: 'decommissioned',\n downloading: 'downloading',\n failure: 'failure',\n installing: 'installing',\n noartifact: 'noartifact',\n artifact_too_big: 'artifact_too_big',\n incompatible_tier: 'incompatible_tier',\n pause_before_committing: 'pause_before_committing',\n pause_before_installing: 'pause_before_installing',\n pause_before_rebooting: 'pause_before_rebooting',\n pending: 'pending',\n rebooting: 'rebooting',\n success: 'success'\n};\n\nexport type DeploymentSubstateMapping = {\n failures: string[];\n inprogress: string[];\n paused: string[];\n pending: string[];\n skipped?: string[];\n successes: string[];\n};\n\nexport const deploymentStatesToSubstates: DeploymentSubstateMapping = {\n failures: [deploymentSubstates.failure, deploymentSubstates.aborted, deploymentSubstates.decommissioned],\n inprogress: [deploymentSubstates.downloading, deploymentSubstates.installing, deploymentSubstates.rebooting],\n paused: [deploymentSubstates.pause_before_installing, deploymentSubstates.pause_before_rebooting, deploymentSubstates.pause_before_committing],\n pending: [deploymentSubstates.pending],\n successes: [\n deploymentSubstates.success,\n deploymentSubstates.alreadyInstalled,\n deploymentSubstates.noartifact,\n deploymentSubstates.artifact_too_big,\n deploymentSubstates.incompatible_tier\n ]\n};\n\nexport const deploymentStatesToSubstatesWithSkipped: DeploymentSubstateMapping = {\n ...deploymentStatesToSubstates,\n failures: [deploymentSubstates.failure],\n skipped: [\n deploymentSubstates.aborted,\n deploymentSubstates.noartifact,\n deploymentSubstates.artifact_too_big,\n deploymentSubstates.alreadyInstalled,\n deploymentSubstates.decommissioned,\n deploymentSubstates.incompatible_tier\n ],\n successes: [deploymentSubstates.success]\n};\nexport const installationSubstatesMap = {\n download: {\n title: 'download',\n done: 'downloaded',\n successIndicators: [deploymentSubstates.installing, deploymentSubstates.rebooting, ...deploymentStatesToSubstates.paused, deploymentSubstates.success],\n failureIndicators: deploymentStatesToSubstates.failures,\n pauseConfigurationIndicator: 'ArtifactInstall_Enter'\n },\n install: {\n title: 'install',\n done: 'installed',\n successIndicators: [\n deploymentSubstates.rebooting,\n deploymentSubstates.pause_before_rebooting,\n deploymentSubstates.pause_before_committing,\n deploymentSubstates.success\n ],\n failureIndicators: deploymentStatesToSubstates.failures,\n pauseConfigurationIndicator: 'ArtifactReboot_Enter'\n },\n reboot: {\n title: 'reboot',\n done: 'rebooted',\n successIndicators: [deploymentSubstates.pause_before_committing, deploymentSubstates.success],\n failureIndicators: deploymentStatesToSubstates.failures,\n pauseConfigurationIndicator: 'ArtifactCommit_Enter'\n },\n commit: {\n title: 'commit',\n done: 'committed',\n successIndicators: deploymentStatesToSubstates.successes,\n failureIndicators: deploymentStatesToSubstates.failures,\n pauseConfigurationIndicator: undefined\n }\n};\n\nexport const DEPLOYMENT_STATES = {\n finished: 'finished',\n inprogress: 'inprogress',\n pending: 'pending',\n scheduled: 'scheduled'\n} as const;\n\nexport const listDefaultsByState = {\n [DEPLOYMENT_STATES.inprogress]: { page: 1, perPage: 10 },\n [DEPLOYMENT_STATES.pending]: { page: 1, perPage: 10 },\n [DEPLOYMENT_STATES.scheduled]: { ...DEVICE_LIST_DEFAULTS },\n [DEPLOYMENT_STATES.finished]: { ...DEVICE_LIST_DEFAULTS },\n sort: { direction: SORTING_OPTIONS.desc }\n};\n\nexport const DEFAULT_PENDING_INPROGRESS_COUNT = 10;\nexport const DEPLOYMENT_ROUTES = {\n active: {\n key: 'active',\n route: '/deployments/active',\n states: [DEPLOYMENT_STATES.pending, DEPLOYMENT_STATES.inprogress],\n title: 'Active'\n },\n finished: {\n key: 'finished',\n route: '/deployments/finished',\n states: [DEPLOYMENT_STATES.finished],\n title: 'Finished'\n },\n scheduled: {\n key: 'scheduled',\n route: '/deployments/scheduled',\n states: [DEPLOYMENT_STATES.scheduled],\n title: 'Scheduled'\n }\n} as const;\nexport const DEPLOYMENT_TYPES = {\n software: 'software',\n configuration: 'configuration'\n};\nexport const defaultStats = {\n [deploymentSubstates.aborted]: 0,\n [deploymentSubstates.alreadyInstalled]: 0,\n [deploymentSubstates.decommissioned]: 0,\n [deploymentSubstates.downloading]: 0,\n [deploymentSubstates.failure]: 0,\n [deploymentSubstates.installing]: 0,\n [deploymentSubstates.noartifact]: 0,\n [deploymentSubstates.pause_before_committing]: 0,\n [deploymentSubstates.pause_before_installing]: 0,\n [deploymentSubstates.pause_before_rebooting]: 0,\n [deploymentSubstates.pending]: 0,\n [deploymentSubstates.rebooting]: 0,\n [deploymentSubstates.success]: 0\n};\nexport const deploymentDisplayStates = {\n finished: 'Finished',\n scheduled: 'Scheduled',\n skipped: 'Skipped',\n paused: 'Paused',\n pending: 'Pending',\n inprogress: 'In Progress',\n success: 'Success',\n successes: 'Success',\n failure: 'Fail',\n failures: 'Fail'\n};\n\nexport const deploymentPrototype = {\n devices: {},\n name: undefined,\n statistics: { status: {} } as DeploymentStatistics\n};\n\nexport const pauseMap = {\n [deploymentSubstates.pause_before_installing]: {\n title: installationSubstatesMap.download.done,\n followUp: installationSubstatesMap.download.pauseConfigurationIndicator\n },\n [deploymentSubstates.pause_before_rebooting]: {\n title: installationSubstatesMap.install.done,\n followUp: installationSubstatesMap.install.pauseConfigurationIndicator\n },\n [deploymentSubstates.pause_before_committing]: {\n title: installationSubstatesMap.reboot.done,\n followUp: installationSubstatesMap.reboot.pauseConfigurationIndicator\n }\n};\n","// Copyright 2019 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport type { DEVICE_STATES, FilterOperator } from '../constants';\nimport { DEVICE_FILTERING_OPTIONS } from '../constants';\n\nexport const emptyFilter = { key: null, value: '', operator: DEVICE_FILTERING_OPTIONS.$eq.key as FilterOperator, scope: 'inventory' };\n\n// see https://github.com/mendersoftware/go-lib-micro/tree/master/ws\n// for the description of proto_header and the consts\n// *Note*: this needs to be aligned with mender-connect and deviceconnect.\nexport const DEVICE_MESSAGE_PROTOCOLS = {\n Shell: 1\n};\nexport const DEVICE_MESSAGE_TYPES = {\n Delay: 'delay',\n New: 'new',\n Ping: 'ping',\n Pong: 'pong',\n Resize: 'resize',\n Shell: 'shell',\n Stop: 'stop'\n};\n\n// we can't include the dismiss state with the rest since this would include dismissed devices in several queries\nexport const DEVICE_DISMISSAL_STATE = 'dismiss';\n\nexport type DeviceAuthState = (typeof DEVICE_STATES)[keyof typeof DEVICE_STATES];\n\nexport const DEVICE_CONNECT_STATES = {\n connected: 'connected',\n disconnected: 'disconnected',\n unknown: 'unknown'\n};\n\nexport const geoAttributes = ['geo-lat', 'geo-lon'].map(attribute => ({ attribute, scope: 'inventory' }));\n\nexport const REPORT_CHART_SIZE_LIMIT = 6;\n","// Copyright 2020 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { useradmApiUrl } from '../constants';\n\nexport const XML_METADATA_FORMAT = 'xml';\nexport const JSON_METADATA_FORMAT = 'json';\n\nexport const getSamlStartUrl = id => `${window.location.origin}${useradmApiUrl}/auth/sso/${id}/login`;\nexport const getOidcStartUrl = id => `${window.location.origin}${useradmApiUrl}/oidc/${id}/start`;\n\nexport const SSO_TYPES = {\n saml: {\n id: 'saml',\n type: 'saml',\n title: 'SAML',\n metadataFormat: XML_METADATA_FORMAT,\n editorLanguage: XML_METADATA_FORMAT,\n contentType: 'application/samlmetadata+xml',\n getStartUrl: getSamlStartUrl,\n configDetails: [\n { key: 'entityID', label: 'Entity ID', getValue: id => `${window.location.origin}${useradmApiUrl}/sso/sp/metadata/${id}` },\n { key: 'acs', label: 'ACS URL', getValue: id => `${window.location.origin}${useradmApiUrl}/auth/sso/${id}/acs` },\n { key: 'startURL', label: 'Start URL', getValue: getSamlStartUrl }\n ]\n },\n oidc: {\n id: 'oidc',\n type: 'oidc',\n title: 'OpenID Connect',\n metadataFormat: JSON_METADATA_FORMAT,\n editorLanguage: JSON_METADATA_FORMAT,\n contentType: 'application/json',\n getStartUrl: getOidcStartUrl,\n configDetails: [{ key: 'startURL', label: 'Start Url', getValue: getOidcStartUrl }]\n }\n} as const;\n\nexport type ContentType = (typeof SSO_TYPES)[keyof typeof SSO_TYPES]['contentType'];\n\nexport const auditlogTypes = {\n artifact: { title: 'Artifact', queryParameter: 'object_type', value: 'artifact' },\n deployment: { title: 'Deployment', queryParameter: 'object_deployment_name', value: 'deployment' },\n device: { title: 'Device', queryParameter: 'object_id', value: 'device' },\n user_access_token: { title: 'Personal Access Token', queryParameter: 'user_access_token', value: 'user_access_token' },\n user: { title: 'User', queryParameter: 'object_id', value: 'user' },\n tenant: { title: 'Tenant', queryParameter: 'object_id', value: 'tenant' }\n};\n\nexport const AUDIT_LOGS_TYPES = [auditlogTypes.artifact, auditlogTypes.deployment, auditlogTypes.device, auditlogTypes.user_access_token, auditlogTypes.user];\nexport const SP_AUDIT_LOGS_TYPES = [auditlogTypes.user, auditlogTypes.tenant];\n\nexport const TENANT_LIST_DEFAULT = {\n page: 1,\n perPage: 20\n};\n","'use strict';\n\n// Copyright 2015 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { uiPermissionsById } from '../constants';\n\nexport type UiPermission = {\n explanations: object;\n permissionLevel: number;\n permissionSets: Record<string, string>;\n title: string;\n value: string;\n verbs: string[];\n};\n\ntype ExcessiveAccessConfig = {\n selector: string;\n warning: string;\n};\n\ntype EndpointDefinition = {\n path: RegExp;\n types: string[];\n uiPermissions: UiPermission[];\n};\n\n/**\n * _uiPermissions_ represent the possible permissions/ rights that can be given for the area\n * _endpoints_ represent the possible endpoints this definition might be affecting in the UI and what\n * functionality might be affected\n *\n */\nexport type PermissionsArea = {\n endpoints: EndpointDefinition[];\n excessiveAccessConfig?: ExcessiveAccessConfig;\n explanation: string;\n filter?: (object) => string[];\n key: string;\n placeholder?: string;\n scope?: string;\n title: string;\n uiPermissions: UiPermission[];\n};\n\nexport const itemUiPermissionsReducer = (accu, { item, uiPermissions }) => (item ? { ...accu, [item]: uiPermissions } : accu);\n\nconst checkSinglePermission = (permission, requiredPermission) =>\n requiredPermission === permission || uiPermissionsById[permission].permissionLevel > uiPermissionsById[requiredPermission].permissionLevel;\n\nexport const checkPermissionsObject = (permissions, requiredPermission, scopedAccess, superAccess) =>\n permissions[superAccess]?.some(permission => checkSinglePermission(permission, requiredPermission)) ||\n permissions[scopedAccess]?.some(permission => checkSinglePermission(permission, requiredPermission));\n\nexport const USER_LOGOUT = 'USER_LOGOUT';\n\nexport const OWN_USER_ID = 'me';\n\nexport const settingsKeys = { initialized: 'settings-initialized' };\n\nexport const READ_STATES = {\n read: 'read',\n seen: 'seen',\n unread: 'unread'\n} as const;\nexport type ReadState = keyof typeof READ_STATES;\n"],"m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B,QAAQ;GAC/B,kBAAkB,QAAQ,kBAAkB;GAC3C,QAAQ;GACR,KAAK;EACP;CACF;AACF;AAMA,MAAa,gBAAgB;AAC7B,MAAM,cAAc,IAAI,KAAK,aAAa,CAAC,IAAI,GAAG,EAAE,MAAM,SAAS,CAAC;AACpE,MAAa,YAAoC;CAC/C;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;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AAG;EAAO,OAAO;AAAc,IAAI;AAExH,MAAM,yBAAyB,YAAY,uBACzC,uBAAuB,cAAc,kBAAkB,WAAW,CAAC,kBAAkB,kBAAkB,mBAAmB,CAAC;AAE7H,MAAa,0BAA0B,aAAa,oBAAoB,cAAc,gBACpF,YAAY,YAAY,EAAE,MAAK,eAAc,sBAAsB,YAAY,kBAAkB,CAAC,KAClG,YAAY,aAAa,EAAE,MAAK,eAAc,sBAAsB,YAAY,kBAAkB,CAAC;AAErG,MAAa,cAAc;AAE3B,MAAa,cAAc;AAE3B,MAAa,eAAe,EAAE,aAAa,uBAAuB;AAElE,MAAa,cAAc;CACzB,MAAM;CACN,MAAM;CACN,QAAQ;AACV"}
1
+ {"version":3,"file":"constants-CerzXHnQ.js","names":["AWS","Azure"],"sources":["../src/commonConstants.tsx","../src/deploymentsSlice/constants.ts","../src/devicesSlice/constants.ts","../src/organizationSlice/constants.ts","../src/usersSlice/constants.ts"],"sourcesContent":["// Copyright 2024 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n// @ts-nocheck\nimport { mdiAws as AWS, mdiMicrosoftAzure as Azure } from '@mdi/js';\nimport type { Integration } from '@northern.tech/types/MenderTypes';\n\nimport type { DEVICE_FILTERING_OPTIONS } from './constants';\nimport { ATTRIBUTE_SCOPES } from './constants';\n\nexport const timeUnits = {\n days: 'days',\n minutes: 'minutes',\n hours: 'hours'\n};\n\nexport const UNGROUPED_GROUP = { id: '*|=ungrouped=|*', name: 'Unassigned' };\n\nexport const DEVICE_LIST_MAXIMUM_LENGTH = 50;\n\nexport type FilterOperator = keyof typeof DEVICE_FILTERING_OPTIONS;\n\nconst oneSecond = 1000;\nexport const TIMEOUTS = {\n debounceDefault: 700,\n debounceShort: 300,\n halfASecond: 0.5 * oneSecond,\n oneSecond,\n twoSeconds: 2 * oneSecond,\n threeSeconds: 3 * oneSecond,\n fiveSeconds: 5 * oneSecond,\n refreshDefault: 10 * oneSecond,\n refreshLong: 60 * oneSecond\n};\n\nexport const DEVICE_ONLINE_CUTOFF = { interval: 1, intervalName: timeUnits.days };\n\nexport interface IdAttribute {\n attribute: string;\n scope: string;\n}\nexport const defaultIdAttribute: Readonly<IdAttribute> = Object.freeze({ attribute: 'id', scope: ATTRIBUTE_SCOPES.identity });\n\nexport const ORCHESTRATOR_MANIFEST_ATTRIBUTE_PREFIX = 'mender-orchestrator-manifest.';\n\n// displayed labels for attribute scopes that diverge from the internal scope values: the system scope shows as\n// `default`, while orchestrator manifest attributes (inventory scope) show as `system`\nexport const ATTRIBUTE_SCOPE_LABELS = {\n default: 'default',\n system: 'system'\n} as const;\n\nexport const productOrder = ['micro', 'standard', 'system'];\n\nexport const credentialTypes = {\n aws: 'aws',\n http: 'http',\n sas: 'sas',\n x509: 'x509'\n};\nexport const EXTERNAL_PROVIDER = {\n 'iot-core': {\n credentialsType: credentialTypes.aws,\n icon: AWS,\n title: 'AWS IoT Core',\n twinTitle: 'Device Shadow',\n provider: 'iot-core',\n enabled: true,\n deviceTwin: true,\n configHint: <>For help finding your AWS IoT Core connection string, check the AWS IoT documentation.</>\n },\n 'iot-hub': {\n credentialsType: credentialTypes.sas,\n icon: Azure,\n title: 'Azure IoT Hub',\n twinTitle: 'Device Twin',\n provider: 'iot-hub',\n enabled: true,\n deviceTwin: true,\n configHint: (\n <span>\n For help finding your Azure IoT Hub connection string, look under &apos;Shared access policies&apos; in the Microsoft Azure UI as described{' '}\n {\n <a\n href=\"https://devblogs.microsoft.com/iotdev/understand-different-connection-strings-in-azure-iot-hub/#iothubconn\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n >\n here\n </a>\n }\n .\n </span>\n )\n },\n webhook: {\n credentialsType: credentialTypes.http,\n deviceTwin: false,\n twinTitle: '',\n // disable the webhook provider here, since it is treated different than other integrations, with a custom configuration & management view, etc.\n enabled: false,\n provider: 'webhook'\n }\n} as const;\n\nexport interface Webhook extends Integration {\n provider: 'webhook';\n}\n\nexport const emptyWebhook: Webhook = {\n description: '',\n provider: 'webhook',\n credentials: {\n type: EXTERNAL_PROVIDER.webhook.credentialsType,\n [EXTERNAL_PROVIDER.webhook.credentialsType]: {\n secret: '',\n url: ''\n }\n }\n};\n\ninterface CountryType {\n code: string;\n label: string;\n}\nexport const MAX_PAGE_SIZE = 500;\nconst regionNames = new Intl.DisplayNames(['en'], { type: 'region' });\nexport const countries: readonly CountryType[] = [\n 'AD',\n 'AE',\n 'AF',\n 'AG',\n 'AI',\n 'AL',\n 'AM',\n 'AO',\n 'AQ',\n 'AR',\n 'AS',\n 'AT',\n 'AU',\n 'AW',\n 'AX',\n 'AZ',\n 'BA',\n 'BB',\n 'BD',\n 'BE',\n 'BF',\n 'BG',\n 'BH',\n 'BI',\n 'BJ',\n 'BL',\n 'BM',\n 'BN',\n 'BO',\n 'BR',\n 'BS',\n 'BT',\n 'BV',\n 'BW',\n 'BY',\n 'BZ',\n 'CA',\n 'CC',\n 'CD',\n 'CF',\n 'CG',\n 'CH',\n 'CI',\n 'CK',\n 'CL',\n 'CM',\n 'CN',\n 'CO',\n 'CR',\n 'CU',\n 'CV',\n 'CW',\n 'CX',\n 'CY',\n 'CZ',\n 'DE',\n 'DJ',\n 'DK',\n 'DM',\n 'DO',\n 'DZ',\n 'EC',\n 'EE',\n 'EG',\n 'EH',\n 'ER',\n 'ES',\n 'ET',\n 'FI',\n 'FJ',\n 'FK',\n 'FM',\n 'FO',\n 'FR',\n 'GA',\n 'GB',\n 'GD',\n 'GE',\n 'GF',\n 'GG',\n 'GH',\n 'GI',\n 'GL',\n 'GM',\n 'GN',\n 'GP',\n 'GQ',\n 'GR',\n 'GS',\n 'GT',\n 'GU',\n 'GW',\n 'GY',\n 'HK',\n 'HM',\n 'HN',\n 'HR',\n 'HT',\n 'HU',\n 'ID',\n 'IE',\n 'IL',\n 'IM',\n 'IN',\n 'IO',\n 'IQ',\n 'IR',\n 'IS',\n 'IT',\n 'JE',\n 'JM',\n 'JO',\n 'JP',\n 'KE',\n 'KG',\n 'KH',\n 'KI',\n 'KM',\n 'KN',\n 'KP',\n 'KR',\n 'KW',\n 'KY',\n 'KZ',\n 'LA',\n 'LB',\n 'LC',\n 'LI',\n 'LK',\n 'LR',\n 'LS',\n 'LT',\n 'LU',\n 'LV',\n 'LY',\n 'MA',\n 'MC',\n 'MD',\n 'ME',\n 'MF',\n 'MG',\n 'MH',\n 'MK',\n 'ML',\n 'MM',\n 'MN',\n 'MO',\n 'MP',\n 'MQ',\n 'MR',\n 'MS',\n 'MT',\n 'MU',\n 'MV',\n 'MW',\n 'MX',\n 'MY',\n 'MZ',\n 'NA',\n 'NC',\n 'NE',\n 'NF',\n 'NG',\n 'NI',\n 'NL',\n 'NO',\n 'NP',\n 'NR',\n 'NU',\n 'NZ',\n 'OM',\n 'PA',\n 'PE',\n 'PF',\n 'PG',\n 'PH',\n 'PK',\n 'PL',\n 'PM',\n 'PN',\n 'PR',\n 'PS',\n 'PT',\n 'PW',\n 'PY',\n 'QA',\n 'RE',\n 'RO',\n 'RS',\n 'RU',\n 'RW',\n 'SA',\n 'SB',\n 'SC',\n 'SD',\n 'SE',\n 'SG',\n 'SH',\n 'SI',\n 'SJ',\n 'SK',\n 'SL',\n 'SM',\n 'SN',\n 'SO',\n 'SR',\n 'SS',\n 'ST',\n 'SV',\n 'SX',\n 'SY',\n 'SZ',\n 'TC',\n 'TD',\n 'TF',\n 'TG',\n 'TH',\n 'TJ',\n 'TK',\n 'TL',\n 'TM',\n 'TN',\n 'TO',\n 'TR',\n 'TT',\n 'TV',\n 'TW',\n 'TZ',\n 'UA',\n 'UG',\n 'US',\n 'UY',\n 'UZ',\n 'VA',\n 'VC',\n 'VE',\n 'VG',\n 'VI',\n 'VN',\n 'VU',\n 'WF',\n 'WS',\n 'XK',\n 'YE',\n 'YT',\n 'ZA',\n 'ZM',\n 'ZW'\n]\n .map(code => ({ code, label: regionNames.of(code) }))\n .sort((a, b) => a.label.localeCompare(b.label));\n","// Copyright 2019 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport type { DeploymentStatistics } from '@northern.tech/types/MenderTypes';\n\nimport { DEVICE_LIST_DEFAULTS, SORTING_OPTIONS } from '../constants';\n\nconst alreadyInstalled = 'already-installed';\n\nexport const deploymentSubstates = {\n aborted: 'aborted',\n alreadyInstalled,\n decommissioned: 'decommissioned',\n downloading: 'downloading',\n failure: 'failure',\n installing: 'installing',\n noartifact: 'noartifact',\n artifact_too_big: 'artifact_too_big',\n incompatible_tier: 'incompatible_tier',\n pause_before_committing: 'pause_before_committing',\n pause_before_installing: 'pause_before_installing',\n pause_before_rebooting: 'pause_before_rebooting',\n pending: 'pending',\n rebooting: 'rebooting',\n success: 'success'\n};\n\nexport type DeploymentSubstateMapping = {\n failures: string[];\n inprogress: string[];\n paused: string[];\n pending: string[];\n skipped?: string[];\n successes: string[];\n};\n\nexport const deploymentStatesToSubstates: DeploymentSubstateMapping = {\n failures: [deploymentSubstates.failure, deploymentSubstates.aborted, deploymentSubstates.decommissioned],\n inprogress: [deploymentSubstates.downloading, deploymentSubstates.installing, deploymentSubstates.rebooting],\n paused: [deploymentSubstates.pause_before_installing, deploymentSubstates.pause_before_rebooting, deploymentSubstates.pause_before_committing],\n pending: [deploymentSubstates.pending],\n successes: [\n deploymentSubstates.success,\n deploymentSubstates.alreadyInstalled,\n deploymentSubstates.noartifact,\n deploymentSubstates.artifact_too_big,\n deploymentSubstates.incompatible_tier\n ]\n};\n\nexport const deploymentStatesToSubstatesWithSkipped: DeploymentSubstateMapping = {\n ...deploymentStatesToSubstates,\n failures: [deploymentSubstates.failure],\n skipped: [\n deploymentSubstates.aborted,\n deploymentSubstates.noartifact,\n deploymentSubstates.artifact_too_big,\n deploymentSubstates.alreadyInstalled,\n deploymentSubstates.decommissioned,\n deploymentSubstates.incompatible_tier\n ],\n successes: [deploymentSubstates.success]\n};\nexport const installationSubstatesMap = {\n download: {\n title: 'download',\n done: 'downloaded',\n successIndicators: [deploymentSubstates.installing, deploymentSubstates.rebooting, ...deploymentStatesToSubstates.paused, deploymentSubstates.success],\n failureIndicators: deploymentStatesToSubstates.failures,\n pauseConfigurationIndicator: 'ArtifactInstall_Enter'\n },\n install: {\n title: 'install',\n done: 'installed',\n successIndicators: [\n deploymentSubstates.rebooting,\n deploymentSubstates.pause_before_rebooting,\n deploymentSubstates.pause_before_committing,\n deploymentSubstates.success\n ],\n failureIndicators: deploymentStatesToSubstates.failures,\n pauseConfigurationIndicator: 'ArtifactReboot_Enter'\n },\n reboot: {\n title: 'reboot',\n done: 'rebooted',\n successIndicators: [deploymentSubstates.pause_before_committing, deploymentSubstates.success],\n failureIndicators: deploymentStatesToSubstates.failures,\n pauseConfigurationIndicator: 'ArtifactCommit_Enter'\n },\n commit: {\n title: 'commit',\n done: 'committed',\n successIndicators: deploymentStatesToSubstates.successes,\n failureIndicators: deploymentStatesToSubstates.failures,\n pauseConfigurationIndicator: undefined\n }\n};\n\nexport const DEPLOYMENT_STATES = {\n finished: 'finished',\n inprogress: 'inprogress',\n pending: 'pending',\n scheduled: 'scheduled'\n} as const;\n\nexport const listDefaultsByState = {\n [DEPLOYMENT_STATES.inprogress]: { page: 1, perPage: 10 },\n [DEPLOYMENT_STATES.pending]: { page: 1, perPage: 10 },\n [DEPLOYMENT_STATES.scheduled]: { ...DEVICE_LIST_DEFAULTS },\n [DEPLOYMENT_STATES.finished]: { ...DEVICE_LIST_DEFAULTS },\n sort: { direction: SORTING_OPTIONS.desc }\n};\n\nexport const DEFAULT_PENDING_INPROGRESS_COUNT = 10;\nexport const DEPLOYMENT_ROUTES = {\n active: {\n key: 'active',\n route: '/deployments/active',\n states: [DEPLOYMENT_STATES.pending, DEPLOYMENT_STATES.inprogress],\n title: 'Active'\n },\n finished: {\n key: 'finished',\n route: '/deployments/finished',\n states: [DEPLOYMENT_STATES.finished],\n title: 'Finished'\n },\n scheduled: {\n key: 'scheduled',\n route: '/deployments/scheduled',\n states: [DEPLOYMENT_STATES.scheduled],\n title: 'Scheduled'\n }\n} as const;\nexport const DEPLOYMENT_TYPES = {\n software: 'software',\n configuration: 'configuration'\n};\nexport const defaultStats = {\n [deploymentSubstates.aborted]: 0,\n [deploymentSubstates.alreadyInstalled]: 0,\n [deploymentSubstates.decommissioned]: 0,\n [deploymentSubstates.downloading]: 0,\n [deploymentSubstates.failure]: 0,\n [deploymentSubstates.installing]: 0,\n [deploymentSubstates.noartifact]: 0,\n [deploymentSubstates.pause_before_committing]: 0,\n [deploymentSubstates.pause_before_installing]: 0,\n [deploymentSubstates.pause_before_rebooting]: 0,\n [deploymentSubstates.pending]: 0,\n [deploymentSubstates.rebooting]: 0,\n [deploymentSubstates.success]: 0\n};\nexport const deploymentDisplayStates = {\n finished: 'Finished',\n scheduled: 'Scheduled',\n skipped: 'Skipped',\n paused: 'Paused',\n pending: 'Pending',\n inprogress: 'In Progress',\n success: 'Success',\n successes: 'Success',\n failure: 'Fail',\n failures: 'Fail'\n};\n\nexport const deploymentPrototype = {\n devices: {},\n name: undefined,\n statistics: { status: {} } as DeploymentStatistics\n};\n\nexport const pauseMap = {\n [deploymentSubstates.pause_before_installing]: {\n title: installationSubstatesMap.download.done,\n followUp: installationSubstatesMap.download.pauseConfigurationIndicator\n },\n [deploymentSubstates.pause_before_rebooting]: {\n title: installationSubstatesMap.install.done,\n followUp: installationSubstatesMap.install.pauseConfigurationIndicator\n },\n [deploymentSubstates.pause_before_committing]: {\n title: installationSubstatesMap.reboot.done,\n followUp: installationSubstatesMap.reboot.pauseConfigurationIndicator\n }\n};\n","// Copyright 2019 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport type { DEVICE_STATES, FilterOperator } from '../constants';\nimport { DEVICE_FILTERING_OPTIONS } from '../constants';\n\nexport const emptyFilter = { key: null, value: '', operator: DEVICE_FILTERING_OPTIONS.$eq.key as FilterOperator, scope: 'inventory' };\n\n// see https://github.com/mendersoftware/go-lib-micro/tree/master/ws\n// for the description of proto_header and the consts\n// *Note*: this needs to be aligned with mender-connect and deviceconnect.\nexport const DEVICE_MESSAGE_PROTOCOLS = {\n Shell: 1\n};\nexport const DEVICE_MESSAGE_TYPES = {\n Delay: 'delay',\n New: 'new',\n Ping: 'ping',\n Pong: 'pong',\n Resize: 'resize',\n Shell: 'shell',\n Stop: 'stop'\n};\n\n// we can't include the dismiss state with the rest since this would include dismissed devices in several queries\nexport const DEVICE_DISMISSAL_STATE = 'dismiss';\n\nexport type DeviceAuthState = (typeof DEVICE_STATES)[keyof typeof DEVICE_STATES];\n\nexport const DEVICE_CONNECT_STATES = {\n connected: 'connected',\n disconnected: 'disconnected',\n unknown: 'unknown'\n};\n\nexport const geoAttributes = ['geo-lat', 'geo-lon'].map(attribute => ({ attribute, scope: 'inventory' }));\n\nexport const REPORT_CHART_SIZE_LIMIT = 6;\n","// Copyright 2020 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { useradmApiUrl } from '../constants';\n\nexport const XML_METADATA_FORMAT = 'xml';\nexport const JSON_METADATA_FORMAT = 'json';\n\nexport const getSamlStartUrl = id => `${window.location.origin}${useradmApiUrl}/auth/sso/${id}/login`;\nexport const getOidcStartUrl = id => `${window.location.origin}${useradmApiUrl}/oidc/${id}/start`;\n\nexport const SSO_TYPES = {\n saml: {\n id: 'saml',\n type: 'saml',\n title: 'SAML',\n metadataFormat: XML_METADATA_FORMAT,\n editorLanguage: XML_METADATA_FORMAT,\n contentType: 'application/samlmetadata+xml',\n getStartUrl: getSamlStartUrl,\n configDetails: [\n { key: 'entityID', label: 'Entity ID', getValue: id => `${window.location.origin}${useradmApiUrl}/sso/sp/metadata/${id}` },\n { key: 'acs', label: 'ACS URL', getValue: id => `${window.location.origin}${useradmApiUrl}/auth/sso/${id}/acs` },\n { key: 'startURL', label: 'Start URL', getValue: getSamlStartUrl }\n ]\n },\n oidc: {\n id: 'oidc',\n type: 'oidc',\n title: 'OpenID Connect',\n metadataFormat: JSON_METADATA_FORMAT,\n editorLanguage: JSON_METADATA_FORMAT,\n contentType: 'application/json',\n getStartUrl: getOidcStartUrl,\n configDetails: [{ key: 'startURL', label: 'Start Url', getValue: getOidcStartUrl }]\n }\n} as const;\n\nexport type ContentType = (typeof SSO_TYPES)[keyof typeof SSO_TYPES]['contentType'];\n\nexport const auditlogTypes = {\n artifact: { title: 'Artifact', queryParameter: 'object_type', value: 'artifact' },\n deployment: { title: 'Deployment', queryParameter: 'object_deployment_name', value: 'deployment' },\n device: { title: 'Device', queryParameter: 'object_id', value: 'device' },\n user_access_token: { title: 'Personal Access Token', queryParameter: 'user_access_token', value: 'user_access_token' },\n user: { title: 'User', queryParameter: 'object_id', value: 'user' },\n tenant: { title: 'Tenant', queryParameter: 'object_id', value: 'tenant' }\n};\n\nexport const AUDIT_LOGS_TYPES = [auditlogTypes.artifact, auditlogTypes.deployment, auditlogTypes.device, auditlogTypes.user_access_token, auditlogTypes.user];\nexport const SP_AUDIT_LOGS_TYPES = [auditlogTypes.user, auditlogTypes.tenant];\n\nexport const TENANT_LIST_DEFAULT = {\n page: 1,\n perPage: 20\n};\n","'use strict';\n\n// Copyright 2015 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { uiPermissionsById } from '../constants';\n\nexport type UiPermission = {\n explanations: object;\n permissionLevel: number;\n permissionSets: Record<string, string>;\n title: string;\n value: string;\n verbs: string[];\n};\n\ntype ExcessiveAccessConfig = {\n selector: string;\n warning: string;\n};\n\ntype EndpointDefinition = {\n path: RegExp;\n types: string[];\n uiPermissions: UiPermission[];\n};\n\n/**\n * _uiPermissions_ represent the possible permissions/ rights that can be given for the area\n * _endpoints_ represent the possible endpoints this definition might be affecting in the UI and what\n * functionality might be affected\n *\n */\nexport type PermissionsArea = {\n endpoints: EndpointDefinition[];\n excessiveAccessConfig?: ExcessiveAccessConfig;\n explanation: string;\n filter?: (object) => string[];\n key: string;\n placeholder?: string;\n scope?: string;\n title: string;\n uiPermissions: UiPermission[];\n};\n\nexport const itemUiPermissionsReducer = (accu, { item, uiPermissions }) => (item ? { ...accu, [item]: uiPermissions } : accu);\n\nconst checkSinglePermission = (permission, requiredPermission) =>\n requiredPermission === permission || uiPermissionsById[permission].permissionLevel > uiPermissionsById[requiredPermission].permissionLevel;\n\nexport const checkPermissionsObject = (permissions, requiredPermission, scopedAccess, superAccess) =>\n permissions[superAccess]?.some(permission => checkSinglePermission(permission, requiredPermission)) ||\n permissions[scopedAccess]?.some(permission => checkSinglePermission(permission, requiredPermission));\n\nexport const USER_LOGOUT = 'USER_LOGOUT';\n\nexport const OWN_USER_ID = 'me';\n\nexport const settingsKeys = { initialized: 'settings-initialized' };\n\nexport const READ_STATES = {\n read: 'read',\n seen: 'seen',\n unread: 'unread'\n} as const;\nexport type ReadState = keyof typeof READ_STATES;\n"],"mappings":";;;;AAoBA,MAAa,YAAY;CACvB,MAAM;CACN,SAAS;CACT,OAAO;AACT;AAEA,MAAa,kBAAkB;CAAE,IAAI;CAAmB,MAAM;AAAa;AAE3E,MAAa,6BAA6B;AAI1C,MAAM,YAAY;AAClB,MAAa,WAAW;CACtB,iBAAiB;CACjB,eAAe;CACf,aAAa,KAAM;CACnB;CACA,YAAY,IAAI;CAChB,cAAc,IAAI;CAClB,aAAa,IAAI;CACjB,gBAAgB,KAAK;CACrB,aAAa,KAAK;AACpB;AAEA,MAAa,uBAAuB;CAAE,UAAU;CAAG,cAAc,UAAU;AAAK;AAMhF,MAAa,qBAA4C,OAAO,OAAO;CAAE,WAAW;CAAM,OAAO,iBAAiB;AAAS,CAAC;AAE5H,MAAa,yCAAyC;AAItD,MAAa,yBAAyB;CACpC,SAAS;CACT,QAAQ;AACV;AAEA,MAAa,eAAe;CAAC;CAAS;CAAY;AAAQ;AAE1D,MAAa,kBAAkB;CAC7B,KAAK;CACL,MAAM;CACN,KAAK;CACL,MAAM;AACR;AACA,MAAa,oBAAoB;CAC/B,YAAY;EACV,iBAAiB,gBAAgB;EACjC,MAAMA;EACN,OAAO;EACP,WAAW;EACX,UAAU;EACV,SAAS;EACT,YAAY;EACZ,YAAY,oBAAA,UAAA,EAAA,UAAE,yFAAwF,CAAA;CACxG;CACA,WAAW;EACT,iBAAiB,gBAAgB;EACjC,MAAMC;EACN,OAAO;EACP,WAAW;EACX,UAAU;EACV,SAAS;EACT,YAAY;EACZ,YACE,qBAAC,QAAD,EAAA,UAAA;GAAM;GACwI;GAE1I,oBAAC,KAAD;IACE,MAAK;IACL,QAAO;IACP,KAAI;IACL,UAAA;GAEE,CAAA;GACJ;EAEG,EAAA,CAAA;CAEV;CACA,SAAS;EACP,iBAAiB,gBAAgB;EACjC,YAAY;EACZ,WAAW;EAEX,SAAS;EACT,UAAU;CACZ;AACF;AAMA,MAAa,eAAwB;CACnC,aAAa;CACb,UAAU;CACV,aAAa;EACX,MAAM,kBAAkB,QAAQ;GAC/B,kBAAkB,QAAQ,kBAAkB;GAC3C,QAAQ;GACR,KAAK;EACP;CACF;AACF;AAMA,MAAa,gBAAgB;AAC7B,MAAM,cAAc,IAAI,KAAK,aAAa,CAAC,IAAI,GAAG,EAAE,MAAM,SAAS,CAAC;AACpE,MAAa,YAAoC;CAC/C;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF,CAAC,CACE,KAAI,UAAS;CAAE;CAAM,OAAO,YAAY,GAAG,IAAI;AAAE,EAAE,CAAC,CACpD,MAAM,GAAG,MAAM,EAAE,MAAM,cAAc,EAAE,KAAK,CAAC;ACjXhD,MAAa,sBAAsB;CACjC,SAAS;CACT;CACA,gBAAgB;CAChB,aAAa;CACb,SAAS;CACT,YAAY;CACZ,YAAY;CACZ,kBAAkB;CAClB,mBAAmB;CACnB,yBAAyB;CACzB,yBAAyB;CACzB,wBAAwB;CACxB,SAAS;CACT,WAAW;CACX,SAAS;AACX;AAWA,MAAa,8BAAyD;CACpE,UAAU;EAAC,oBAAoB;EAAS,oBAAoB;EAAS,oBAAoB;CAAc;CACvG,YAAY;EAAC,oBAAoB;EAAa,oBAAoB;EAAY,oBAAoB;CAAS;CAC3G,QAAQ;EAAC,oBAAoB;EAAyB,oBAAoB;EAAwB,oBAAoB;CAAuB;CAC7I,SAAS,CAAC,oBAAoB,OAAO;CACrC,WAAW;EACT,oBAAoB;EACpB,oBAAoB;EACpB,oBAAoB;EACpB,oBAAoB;EACpB,oBAAoB;CACtB;AACF;AAEA,MAAa,yCAAoE;CAC/E,GAAG;CACH,UAAU,CAAC,o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AO;CAAO;CAClE,QAAQ;EAAE,OAAO;EAAU,gBAAgB;EAAa,OAAO;CAAS;AAC1E;AAEA,MAAa,mBAAmB;CAAC,cAAc;CAAU,cAAc;CAAY,cAAc;CAAQ,cAAc;CAAmB,cAAc;AAAI;AAC5J,MAAa,sBAAsB,CAAC,cAAc,MAAM,cAAc,MAAM;AAE5E,MAAa,sBAAsB;CACjC,MAAM;CACN,SAAS;AACX;;;ACVA,MAAa,4BAA4B,MAAM,EAAE,MAAM,oBAAqB,OAAO;CAAE,GAAG;EAAO,OAAO;AAAc,IAAI;AAExH,MAAM,yBAAyB,YAAY,uBACzC,uBAAuB,cAAc,kBAAkB,WAAW,CAAC,kBAAkB,kBAAkB,mBAAmB,CAAC;AAE7H,MAAa,0BAA0B,aAAa,oBAAoB,cAAc,gBACpF,YAAY,YAAY,EAAE,MAAK,eAAc,sBAAsB,YAAY,kBAAkB,CAAC,KAClG,YAAY,aAAa,EAAE,MAAK,eAAc,sBAAsB,YAAY,kBAAkB,CAAC;AAErG,MAAa,cAAc;AAE3B,MAAa,cAAc;AAE3B,MAAa,eAAe,EAAE,aAAa,uBAAuB;AAElE,MAAa,cAAc;CACzB,MAAM;CACN,MAAM;CACN,QAAQ;AACV"}
@@ -1,6 +1,6 @@
1
+ import "./constants-C6TIYaY4.cjs";
1
2
  import { Integration } from "@northern.tech/types/MenderTypes";
2
- import { ALL_DEVICES, ALL_DEVICE_STATES, ALL_RELEASES, APPLICATION_JSON_CONTENT_TYPE, APPLICATION_JWT_CONTENT_TYPE, ATTRIBUTE_SCOPES, AnyPermission, AuditLogPermission, DEVICE_FILTERING_OPTIONS, DEVICE_ISSUE_OPTIONS, DEVICE_LIST_DEFAULTS, DEVICE_STATES, DeploymentPermission, DeviceIssueOptionKey, GroupsPermission, PaginationOptions, PermissionObject, PermissionSet, PermissionSetId, PermissionTypes, ReleasesPermission, Role, SORTING_OPTIONS, ScopedPermissionsByAreaKey, SortOptions, UiPermissionsByAreaKey, UiPermissionsByIdKey, UiPermissionsDefinition, UserManagementPermission, alertChannels, apiRoot, apiUrl, auditLogsApiUrl, defaultPermissionSets, deploymentsApiUrl, deploymentsApiUrlV1alpha1, deploymentsApiUrlV2, deviceAuthV2, deviceConfig, deviceConnect, emptyRole, emptyUiPermissions, headerNames, inventoryApiUrl, inventoryApiUrlV2, iotManagerBaseURL, limitDefault, maxSessionAge, monitorApiUrlv1, rolesById, rolesByName, scopedPermissionAreas, serviceProviderRolesById, ssoIdpApiUrlv1, tenantadmApiUrlv1, tenantadmApiUrlv2, twoFAStates, uiPermissionsByArea, uiPermissionsById, useradmApiUrl, useradmApiUrlv1, useradmApiUrlv2 } from "@northern.tech/utils/constants";
3
-
3
+ import { ALL_DEVICES, ALL_DEVICE_STATES, ALL_RELEASES, APPLICATION_JSON_CONTENT_TYPE, APPLICATION_JWT_CONTENT_TYPE, ATTRIBUTE_SCOPES, AnyPermission, AuditLogPermission, DEVICE_FILTERING_OPTIONS, DEVICE_ISSUE_OPTIONS, DEVICE_LIST_DEFAULTS, DEVICE_STATES, DeploymentPermission, DeviceIssueOptionKey, GroupsPermission, PaginationOptions, PermissionObject, PermissionSet, PermissionSetId, PermissionTypes, ReleasesPermission, Role, SORTING_OPTIONS, ScopedPermissionsByAreaKey, SortOptions, UiPermissionsByAreaKey, UiPermissionsByIdKey, UiPermissionsDefinition, UserManagementPermission, alertChannels, apiRoot, apiUrl, auditLogsApiUrl, defaultPermissionSets, deploymentsApiUrl, deploymentsApiUrlV1alpha1, deploymentsApiUrlV2, deviceAuthV2, deviceConfig, deviceConnect, emptyRole, emptyUiPermissions, headerNames, inventoryApiUrl, inventoryApiUrlV2, inventoryApiUrlV2alpha1, iotManagerBaseURL, limitDefault, maxSessionAge, monitorApiUrlv1, rolesById, rolesByName, scopedPermissionAreas, serviceProviderRolesById, ssoIdpApiUrlv1, tenantadmApiUrlv1, tenantadmApiUrlv2, twoFAStates, uiPermissionsByArea, uiPermissionsById, useradmApiUrl, useradmApiUrlv1, useradmApiUrlv2 } from "@northern.tech/utils/constants";
4
4
  //#region src/commonConstants.d.ts
5
5
  declare const timeUnits: {
6
6
  days: string;
@@ -120,5 +120,5 @@ declare const REPORT_CHART_SIZE_LIMIT = 6;
120
120
  //#region src/monitorSlice/constants.d.ts
121
121
  type AlertChannelKey = keyof typeof alertChannels;
122
122
  //#endregion
123
- export { serviceProviderRolesById as $, alertChannels as A, credentialTypes as At, deviceConnect as B, SORTING_OPTIONS as C, IdAttribute as Ct, UiPermissionsByIdKey as D, UNGROUPED_GROUP as Dt, UiPermissionsByAreaKey as E, TIMEOUTS as Et, deploymentsApiUrl as F, inventoryApiUrlV2 as G, emptyUiPermissions as H, deploymentsApiUrlV1alpha1 as I, maxSessionAge as J, iotManagerBaseURL as K, deploymentsApiUrlV2 as L, apiUrl as M, emptyWebhook as Mt, auditLogsApiUrl as N, productOrder as Nt, UiPermissionsDefinition as O, Webhook as Ot, defaultPermissionSets as P, timeUnits as Pt, scopedPermissionAreas as Q, deviceAuthV2 as R, Role as S, FilterOperator as St, SortOptions as T, ORCHESTRATOR_MANIFEST_ATTRIBUTE_PREFIX as Tt, headerNames as U, emptyRole as V, inventoryApiUrl as W, rolesById as X, monitorApiUrlv1 as Y, rolesByName as Z, PermissionObject as _, geoAttributes as _t, APPLICATION_JWT_CONTENT_TYPE as a, uiPermissionsById as at, PermissionTypes as b, DEVICE_ONLINE_CUTOFF as bt, AuditLogPermission as c, useradmApiUrlv2 as ct, DEVICE_LIST_DEFAULTS as d, DEVICE_DISMISSAL_STATE as dt, ssoIdpApiUrlv1 as et, DEVICE_STATES as f, DEVICE_MESSAGE_PROTOCOLS as ft, PaginationOptions as g, emptyFilter as gt, GroupsPermission as h, REPORT_CHART_SIZE_LIMIT as ht, APPLICATION_JSON_CONTENT_TYPE as i, uiPermissionsByArea as it, apiRoot as j, defaultIdAttribute as jt, UserManagementPermission as k, countries as kt, DEVICE_FILTERING_OPTIONS as l, AlertChannelKey as lt, DeviceIssueOptionKey as m, DeviceAuthState as mt, ALL_DEVICE_STATES as n, tenantadmApiUrlv2 as nt, ATTRIBUTE_SCOPES as o, useradmApiUrl as ot, DeploymentPermission as p, DEVICE_MESSAGE_TYPES as pt, limitDefault as q, ALL_RELEASES as r, twoFAStates as rt, AnyPermission as s, useradmApiUrlv1 as st, ALL_DEVICES as t, tenantadmApiUrlv1 as tt, DEVICE_ISSUE_OPTIONS as u, DEVICE_CONNECT_STATES as ut, PermissionSet as v, ATTRIBUTE_SCOPE_LABELS as vt, ScopedPermissionsByAreaKey as w, MAX_PAGE_SIZE as wt, ReleasesPermission as x, EXTERNAL_PROVIDER as xt, PermissionSetId as y, DEVICE_LIST_MAXIMUM_LENGTH as yt, deviceConfig as z };
124
- //# sourceMappingURL=constants-DAi2zOZN.d.cts.map
123
+ export { scopedPermissionAreas as $, alertChannels as A, countries as At, deviceConnect as B, SORTING_OPTIONS as C, FilterOperator as Ct, UiPermissionsByIdKey as D, TIMEOUTS as Dt, UiPermissionsByAreaKey as E, ORCHESTRATOR_MANIFEST_ATTRIBUTE_PREFIX as Et, deploymentsApiUrl as F, timeUnits as Ft, inventoryApiUrlV2 as G, emptyUiPermissions as H, deploymentsApiUrlV1alpha1 as I, limitDefault as J, inventoryApiUrlV2alpha1 as K, deploymentsApiUrlV2 as L, apiUrl as M, defaultIdAttribute as Mt, auditLogsApiUrl as N, emptyWebhook as Nt, UiPermissionsDefinition as O, UNGROUPED_GROUP as Ot, defaultPermissionSets as P, productOrder as Pt, rolesByName as Q, deviceAuthV2 as R, Role as S, EXTERNAL_PROVIDER as St, SortOptions as T, MAX_PAGE_SIZE as Tt, headerNames as U, emptyRole as V, inventoryApiUrl as W, monitorApiUrlv1 as X, maxSessionAge as Y, rolesById as Z, PermissionObject as _, emptyFilter as _t, APPLICATION_JWT_CONTENT_TYPE as a, uiPermissionsByArea as at, PermissionTypes as b, DEVICE_LIST_MAXIMUM_LENGTH as bt, AuditLogPermission as c, useradmApiUrlv1 as ct, DEVICE_LIST_DEFAULTS as d, DEVICE_CONNECT_STATES as dt, serviceProviderRolesById as et, DEVICE_STATES as f, DEVICE_DISMISSAL_STATE as ft, PaginationOptions as g, REPORT_CHART_SIZE_LIMIT as gt, GroupsPermission as h, DeviceAuthState as ht, APPLICATION_JSON_CONTENT_TYPE as i, twoFAStates as it, apiRoot as j, credentialTypes as jt, UserManagementPermission as k, Webhook as kt, DEVICE_FILTERING_OPTIONS as l, useradmApiUrlv2 as lt, DeviceIssueOptionKey as m, DEVICE_MESSAGE_TYPES as mt, ALL_DEVICE_STATES as n, tenantadmApiUrlv1 as nt, ATTRIBUTE_SCOPES as o, uiPermissionsById as ot, DeploymentPermission as p, DEVICE_MESSAGE_PROTOCOLS as pt, iotManagerBaseURL as q, ALL_RELEASES as r, tenantadmApiUrlv2 as rt, AnyPermission as s, useradmApiUrl as st, ALL_DEVICES as t, ssoIdpApiUrlv1 as tt, DEVICE_ISSUE_OPTIONS as u, AlertChannelKey as ut, PermissionSet as v, geoAttributes as vt, ScopedPermissionsByAreaKey as w, IdAttribute as wt, ReleasesPermission as x, DEVICE_ONLINE_CUTOFF as xt, PermissionSetId as y, ATTRIBUTE_SCOPE_LABELS as yt, deviceConfig as z };
124
+ //# sourceMappingURL=constants-Rl3FJzFf.d.cts.map
@@ -52,7 +52,7 @@ type Plan = {
52
52
  name: string;
53
53
  };
54
54
  type AvailableAddon = 'configure' | 'troubleshoot' | 'monitor';
55
- declare const PLANS: { [key in AvailablePlans]: Plan };
55
+ declare const PLANS: { [key in AvailablePlans]: Plan; };
56
56
  type Addon = {
57
57
  description: string;
58
58
  eligible: AvailablePlans[];
@@ -61,7 +61,7 @@ type Addon = {
61
61
  title: string;
62
62
  };
63
63
  type AddonId = keyof typeof ADDONS;
64
- declare const ADDONS: { [key in AvailableAddon]: Addon };
64
+ declare const ADDONS: { [key in AvailableAddon]: Addon; };
65
65
  declare const BENEFITS: {
66
66
  readonly auditlog: {
67
67
  readonly id: "auditlog";
@@ -104,11 +104,6 @@ declare const BENEFITS: {
104
104
  readonly benefit: "filtering by multiple attributes to improve the device overview";
105
105
  readonly requiredPlan: AvailablePlans;
106
106
  };
107
- readonly gateway: {
108
- readonly id: "gateway";
109
- readonly benefit: "see devices connected to your gateway device for easy access";
110
- readonly requiredPlans: AvailablePlans;
111
- };
112
107
  readonly pausedDeployments: {
113
108
  readonly id: "pausedDeployments";
114
109
  readonly benefit: "granular control about update rollout to allow synchronization across your fleet";
@@ -156,4 +151,4 @@ declare const DARK_MODE = "dark";
156
151
  declare const LIGHT_MODE = "light";
157
152
  //#endregion
158
153
  export { locations as _, AvailablePlans as a, DARK_MODE as c, Plan as d, canAccess as f, emptyChartSelection as g, defaultReports as h, AvailableAddon as i, LIGHT_MODE as l, defaultReportType as m, Addon as n, BEGINNING_OF_TIME as o, chartTypes as p, AddonId as r, BENEFITS as s, ADDONS as t, PLANS as u, yes as v };
159
- //# sourceMappingURL=constants-B_7FCJQX.d.ts.map
154
+ //# sourceMappingURL=constants-nKSWZ8oD.d.cts.map
@@ -52,7 +52,7 @@ type Plan = {
52
52
  name: string;
53
53
  };
54
54
  type AvailableAddon = 'configure' | 'troubleshoot' | 'monitor';
55
- declare const PLANS: { [key in AvailablePlans]: Plan };
55
+ declare const PLANS: { [key in AvailablePlans]: Plan; };
56
56
  type Addon = {
57
57
  description: string;
58
58
  eligible: AvailablePlans[];
@@ -61,7 +61,7 @@ type Addon = {
61
61
  title: string;
62
62
  };
63
63
  type AddonId = keyof typeof ADDONS;
64
- declare const ADDONS: { [key in AvailableAddon]: Addon };
64
+ declare const ADDONS: { [key in AvailableAddon]: Addon; };
65
65
  declare const BENEFITS: {
66
66
  readonly auditlog: {
67
67
  readonly id: "auditlog";
@@ -104,11 +104,6 @@ declare const BENEFITS: {
104
104
  readonly benefit: "filtering by multiple attributes to improve the device overview";
105
105
  readonly requiredPlan: AvailablePlans;
106
106
  };
107
- readonly gateway: {
108
- readonly id: "gateway";
109
- readonly benefit: "see devices connected to your gateway device for easy access";
110
- readonly requiredPlans: AvailablePlans;
111
- };
112
107
  readonly pausedDeployments: {
113
108
  readonly id: "pausedDeployments";
114
109
  readonly benefit: "granular control about update rollout to allow synchronization across your fleet";
@@ -156,4 +151,4 @@ declare const DARK_MODE = "dark";
156
151
  declare const LIGHT_MODE = "light";
157
152
  //#endregion
158
153
  export { locations as _, AvailablePlans as a, DARK_MODE as c, Plan as d, canAccess as f, emptyChartSelection as g, defaultReports as h, AvailableAddon as i, LIGHT_MODE as l, defaultReportType as m, Addon as n, BEGINNING_OF_TIME as o, chartTypes as p, AddonId as r, BENEFITS as s, ADDONS as t, PLANS as u, yes as v };
159
- //# sourceMappingURL=constants-B_7FCJQX.d.cts.map
154
+ //# sourceMappingURL=constants-nKSWZ8oD.d.ts.map
@@ -88,6 +88,7 @@ exports.headerNames = _northern_tech_utils_constants.headerNames;
88
88
  exports.installationSubstatesMap = require_constants.installationSubstatesMap;
89
89
  exports.inventoryApiUrl = _northern_tech_utils_constants.inventoryApiUrl;
90
90
  exports.inventoryApiUrlV2 = _northern_tech_utils_constants.inventoryApiUrlV2;
91
+ exports.inventoryApiUrlV2alpha1 = _northern_tech_utils_constants.inventoryApiUrlV2alpha1;
91
92
  exports.iotManagerBaseURL = _northern_tech_utils_constants.iotManagerBaseURL;
92
93
  exports.itemUiPermissionsReducer = require_constants.itemUiPermissionsReducer;
93
94
  exports.limitDefault = _northern_tech_utils_constants.limitDefault;
@@ -102,6 +103,7 @@ exports.productOrder = require_constants.productOrder;
102
103
  exports.rolesById = _northern_tech_utils_constants.rolesById;
103
104
  exports.rolesByName = _northern_tech_utils_constants.rolesByName;
104
105
  exports.rootfsImageVersion = require_releasesSlice_constants.rootfsImageVersion;
106
+ exports.rootfsManifestVersion = require_releasesSlice_constants.rootfsManifestVersion;
105
107
  exports.scopedPermissionAreas = _northern_tech_utils_constants.scopedPermissionAreas;
106
108
  exports.serviceProviderRolesById = _northern_tech_utils_constants.serviceProviderRolesById;
107
109
  exports.settingsKeys = require_constants.settingsKeys;
@@ -1,8 +1,8 @@
1
- import { _ as locations, a as AvailablePlans, c as DARK_MODE, d as Plan, f as canAccess, g as emptyChartSelection, h as defaultReports, i as AvailableAddon, l as LIGHT_MODE, m as defaultReportType, n as Addon, o as BEGINNING_OF_TIME, p as chartTypes, r as AddonId, s as BENEFITS, t as ADDONS, u as PLANS, v as yes } from "./constants-B_7FCJQX.cjs";
2
- import { $ as serviceProviderRolesById, A as alertChannels, At as credentialTypes, B as deviceConnect, C as SORTING_OPTIONS, Ct as IdAttribute, D as UiPermissionsByIdKey, Dt as UNGROUPED_GROUP, E as UiPermissionsByAreaKey, Et as TIMEOUTS, F as deploymentsApiUrl, G as inventoryApiUrlV2, H as emptyUiPermissions, I as deploymentsApiUrlV1alpha1, J as maxSessionAge, K as iotManagerBaseURL, L as deploymentsApiUrlV2, M as apiUrl, Mt as emptyWebhook, N as auditLogsApiUrl, Nt as productOrder, O as UiPermissionsDefinition, Ot as Webhook, P as defaultPermissionSets, Pt as timeUnits, Q as scopedPermissionAreas, R as deviceAuthV2, S as Role, St as FilterOperator, T as SortOptions, Tt as ORCHESTRATOR_MANIFEST_ATTRIBUTE_PREFIX, U as headerNames, V as emptyRole, W as inventoryApiUrl, X as rolesById, Y as monitorApiUrlv1, Z as rolesByName, _ as PermissionObject, _t as geoAttributes, a as APPLICATION_JWT_CONTENT_TYPE, at as uiPermissionsById, b as PermissionTypes, bt as DEVICE_ONLINE_CUTOFF, c as AuditLogPermission, ct as useradmApiUrlv2, d as DEVICE_LIST_DEFAULTS, dt as DEVICE_DISMISSAL_STATE, et as ssoIdpApiUrlv1, f as DEVICE_STATES, ft as DEVICE_MESSAGE_PROTOCOLS, g as PaginationOptions, gt as emptyFilter, h as GroupsPermission, ht as REPORT_CHART_SIZE_LIMIT, i as APPLICATION_JSON_CONTENT_TYPE, it as uiPermissionsByArea, j as apiRoot, jt as defaultIdAttribute, k as UserManagementPermission, kt as countries, l as DEVICE_FILTERING_OPTIONS, lt as AlertChannelKey, m as DeviceIssueOptionKey, mt as DeviceAuthState, n as ALL_DEVICE_STATES, nt as tenantadmApiUrlv2, o as ATTRIBUTE_SCOPES, ot as useradmApiUrl, p as DeploymentPermission, pt as DEVICE_MESSAGE_TYPES, q as limitDefault, r as ALL_RELEASES, rt as twoFAStates, s as AnyPermission, st as useradmApiUrlv1, t as ALL_DEVICES, tt as tenantadmApiUrlv1, u as DEVICE_ISSUE_OPTIONS, ut as DEVICE_CONNECT_STATES, v as PermissionSet, vt as ATTRIBUTE_SCOPE_LABELS, w as ScopedPermissionsByAreaKey, wt as MAX_PAGE_SIZE, x as ReleasesPermission, xt as EXTERNAL_PROVIDER, y as PermissionSetId, yt as DEVICE_LIST_MAXIMUM_LENGTH, z as deviceConfig } from "./constants-DAi2zOZN.cjs";
3
- import { a as DeploymentSubstateMapping, c as deploymentPrototype, d as deploymentSubstates, f as installationSubstatesMap, i as DEPLOYMENT_TYPES, l as deploymentStatesToSubstates, m as pauseMap, n as DEPLOYMENT_ROUTES, o as defaultStats, p as listDefaultsByState, r as DEPLOYMENT_STATES, s as deploymentDisplayStates, t as DEFAULT_PENDING_INPROGRESS_COUNT, u as deploymentStatesToSubstatesWithSkipped } from "./constants-D9o0Cnk_.cjs";
1
+ import { _ as locations, a as AvailablePlans, c as DARK_MODE, d as Plan, f as canAccess, g as emptyChartSelection, h as defaultReports, i as AvailableAddon, l as LIGHT_MODE, m as defaultReportType, n as Addon, o as BEGINNING_OF_TIME, p as chartTypes, r as AddonId, s as BENEFITS, t as ADDONS, u as PLANS, v as yes } from "./constants-nKSWZ8oD.cjs";
2
+ import { $ as scopedPermissionAreas, A as alertChannels, At as countries, B as deviceConnect, C as SORTING_OPTIONS, Ct as FilterOperator, D as UiPermissionsByIdKey, Dt as TIMEOUTS, E as UiPermissionsByAreaKey, Et as ORCHESTRATOR_MANIFEST_ATTRIBUTE_PREFIX, F as deploymentsApiUrl, Ft as timeUnits, G as inventoryApiUrlV2, H as emptyUiPermissions, I as deploymentsApiUrlV1alpha1, J as limitDefault, K as inventoryApiUrlV2alpha1, L as deploymentsApiUrlV2, M as apiUrl, Mt as defaultIdAttribute, N as auditLogsApiUrl, Nt as emptyWebhook, O as UiPermissionsDefinition, Ot as UNGROUPED_GROUP, P as defaultPermissionSets, Pt as productOrder, Q as rolesByName, R as deviceAuthV2, S as Role, St as EXTERNAL_PROVIDER, T as SortOptions, Tt as MAX_PAGE_SIZE, U as headerNames, V as emptyRole, W as inventoryApiUrl, X as monitorApiUrlv1, Y as maxSessionAge, Z as rolesById, _ as PermissionObject, _t as emptyFilter, a as APPLICATION_JWT_CONTENT_TYPE, at as uiPermissionsByArea, b as PermissionTypes, bt as DEVICE_LIST_MAXIMUM_LENGTH, c as AuditLogPermission, ct as useradmApiUrlv1, d as DEVICE_LIST_DEFAULTS, dt as DEVICE_CONNECT_STATES, et as serviceProviderRolesById, f as DEVICE_STATES, ft as DEVICE_DISMISSAL_STATE, g as PaginationOptions, gt as REPORT_CHART_SIZE_LIMIT, h as GroupsPermission, ht as DeviceAuthState, i as APPLICATION_JSON_CONTENT_TYPE, it as twoFAStates, j as apiRoot, jt as credentialTypes, k as UserManagementPermission, kt as Webhook, l as DEVICE_FILTERING_OPTIONS, lt as useradmApiUrlv2, m as DeviceIssueOptionKey, mt as DEVICE_MESSAGE_TYPES, n as ALL_DEVICE_STATES, nt as tenantadmApiUrlv1, o as ATTRIBUTE_SCOPES, ot as uiPermissionsById, p as DeploymentPermission, pt as DEVICE_MESSAGE_PROTOCOLS, q as iotManagerBaseURL, r as ALL_RELEASES, rt as tenantadmApiUrlv2, s as AnyPermission, st as useradmApiUrl, t as ALL_DEVICES, tt as ssoIdpApiUrlv1, u as DEVICE_ISSUE_OPTIONS, ut as AlertChannelKey, v as PermissionSet, vt as geoAttributes, w as ScopedPermissionsByAreaKey, wt as IdAttribute, x as ReleasesPermission, xt as DEVICE_ONLINE_CUTOFF, y as PermissionSetId, yt as ATTRIBUTE_SCOPE_LABELS, z as deviceConfig } from "./constants-Rl3FJzFf.cjs";
3
+ import { a as DeploymentSubstateMapping, c as deploymentPrototype, d as deploymentSubstates, f as installationSubstatesMap, i as DEPLOYMENT_TYPES, l as deploymentStatesToSubstates, m as pauseMap, n as DEPLOYMENT_ROUTES, o as defaultStats, p as listDefaultsByState, r as DEPLOYMENT_STATES, s as deploymentDisplayStates, t as DEFAULT_PENDING_INPROGRESS_COUNT, u as deploymentStatesToSubstatesWithSkipped } from "./constants-C6TIYaY4.cjs";
4
4
  import { i as orderedOnboardingSteps, n as OnboardingStepKey, r as onboardingSteps, t as OnboardingStep } from "./constants-Db_RBdlV.cjs";
5
5
  import { a as SSO_TYPES, c as auditlogTypes, i as SP_AUDIT_LOGS_TYPES, l as getOidcStartUrl, n as ContentType, o as TENANT_LIST_DEFAULT, r as JSON_METADATA_FORMAT, s as XML_METADATA_FORMAT, t as AUDIT_LOGS_TYPES, u as getSamlStartUrl } from "./constants-OZiiFKiA.cjs";
6
- import { a as softwareTitleMap, i as softwareIndicator, n as currentArtifact, r as rootfsImageVersion, t as ARTIFACT_GENERATION_TYPE } from "./constants-6kYRTdox.cjs";
7
- import { a as USER_LOGOUT, c as itemUiPermissionsReducer, i as ReadState, l as settingsKeys, n as PermissionsArea, o as UiPermission, r as READ_STATES, s as checkPermissionsObject, t as OWN_USER_ID } from "./constants-Sn4gnNA3.cjs";
8
- export { ADDONS, ALL_DEVICES, ALL_DEVICE_STATES, ALL_RELEASES, APPLICATION_JSON_CONTENT_TYPE, APPLICATION_JWT_CONTENT_TYPE, ARTIFACT_GENERATION_TYPE, ATTRIBUTE_SCOPES, ATTRIBUTE_SCOPE_LABELS, AUDIT_LOGS_TYPES, Addon, AddonId, AlertChannelKey, type AnyPermission, type AuditLogPermission, AvailableAddon, AvailablePlans, BEGINNING_OF_TIME, BENEFITS, ContentType, DARK_MODE, DEFAULT_PENDING_INPROGRESS_COUNT, DEPLOYMENT_ROUTES, DEPLOYMENT_STATES, DEPLOYMENT_TYPES, DEVICE_CONNECT_STATES, DEVICE_DISMISSAL_STATE, DEVICE_FILTERING_OPTIONS, DEVICE_ISSUE_OPTIONS, DEVICE_LIST_DEFAULTS, DEVICE_LIST_MAXIMUM_LENGTH, DEVICE_MESSAGE_PROTOCOLS, DEVICE_MESSAGE_TYPES, DEVICE_ONLINE_CUTOFF, DEVICE_STATES, type DeploymentPermission, DeploymentSubstateMapping, DeviceAuthState, type DeviceIssueOptionKey, EXTERNAL_PROVIDER, FilterOperator, type GroupsPermission, IdAttribute, JSON_METADATA_FORMAT, LIGHT_MODE, MAX_PAGE_SIZE, ORCHESTRATOR_MANIFEST_ATTRIBUTE_PREFIX, OWN_USER_ID, OnboardingStep, OnboardingStepKey, PLANS, type PaginationOptions, type PermissionObject, type PermissionSet, type PermissionSetId, PermissionTypes, PermissionsArea, Plan, READ_STATES, REPORT_CHART_SIZE_LIMIT, ReadState, type ReleasesPermission, type Role, SORTING_OPTIONS, SP_AUDIT_LOGS_TYPES, SSO_TYPES, type ScopedPermissionsByAreaKey, type SortOptions, TENANT_LIST_DEFAULT, TIMEOUTS, UNGROUPED_GROUP, USER_LOGOUT, UiPermission, type UiPermissionsByAreaKey, type UiPermissionsByIdKey, type UiPermissionsDefinition, type UserManagementPermission, Webhook, XML_METADATA_FORMAT, alertChannels, apiRoot, apiUrl, auditLogsApiUrl, auditlogTypes, canAccess, chartTypes, checkPermissionsObject, countries, credentialTypes, currentArtifact, defaultIdAttribute, defaultPermissionSets, defaultReportType, defaultReports, defaultStats, deploymentDisplayStates, deploymentPrototype, deploymentStatesToSubstates, deploymentStatesToSubstatesWithSkipped, deploymentSubstates, deploymentsApiUrl, deploymentsApiUrlV1alpha1, deploymentsApiUrlV2, deviceAuthV2, deviceConfig, deviceConnect, emptyChartSelection, emptyFilter, emptyRole, emptyUiPermissions, emptyWebhook, geoAttributes, getOidcStartUrl, getSamlStartUrl, headerNames, installationSubstatesMap, inventoryApiUrl, inventoryApiUrlV2, iotManagerBaseURL, itemUiPermissionsReducer, limitDefault, listDefaultsByState, locations, maxSessionAge, monitorApiUrlv1, onboardingSteps, orderedOnboardingSteps, pauseMap, productOrder, rolesById, rolesByName, rootfsImageVersion, scopedPermissionAreas, serviceProviderRolesById, settingsKeys, softwareIndicator, softwareTitleMap, ssoIdpApiUrlv1, tenantadmApiUrlv1, tenantadmApiUrlv2, timeUnits, twoFAStates, uiPermissionsByArea, uiPermissionsById, useradmApiUrl, useradmApiUrlv1, useradmApiUrlv2, yes };
6
+ import { a as softwareIndicator, i as rootfsManifestVersion, n as currentArtifact, o as softwareTitleMap, r as rootfsImageVersion, t as ARTIFACT_GENERATION_TYPE } from "./constants-CEwun8TL.cjs";
7
+ import { a as USER_LOGOUT, c as itemUiPermissionsReducer, i as ReadState, l as settingsKeys, n as PermissionsArea, o as UiPermission, r as READ_STATES, s as checkPermissionsObject, t as OWN_USER_ID } from "./constants-B3Jdkn2b.cjs";
8
+ export { ADDONS, ALL_DEVICES, ALL_DEVICE_STATES, ALL_RELEASES, APPLICATION_JSON_CONTENT_TYPE, APPLICATION_JWT_CONTENT_TYPE, ARTIFACT_GENERATION_TYPE, ATTRIBUTE_SCOPES, ATTRIBUTE_SCOPE_LABELS, AUDIT_LOGS_TYPES, Addon, AddonId, AlertChannelKey, type AnyPermission, type AuditLogPermission, AvailableAddon, AvailablePlans, BEGINNING_OF_TIME, BENEFITS, ContentType, DARK_MODE, DEFAULT_PENDING_INPROGRESS_COUNT, DEPLOYMENT_ROUTES, DEPLOYMENT_STATES, DEPLOYMENT_TYPES, DEVICE_CONNECT_STATES, DEVICE_DISMISSAL_STATE, DEVICE_FILTERING_OPTIONS, DEVICE_ISSUE_OPTIONS, DEVICE_LIST_DEFAULTS, DEVICE_LIST_MAXIMUM_LENGTH, DEVICE_MESSAGE_PROTOCOLS, DEVICE_MESSAGE_TYPES, DEVICE_ONLINE_CUTOFF, DEVICE_STATES, type DeploymentPermission, DeploymentSubstateMapping, DeviceAuthState, type DeviceIssueOptionKey, EXTERNAL_PROVIDER, FilterOperator, type GroupsPermission, IdAttribute, JSON_METADATA_FORMAT, LIGHT_MODE, MAX_PAGE_SIZE, ORCHESTRATOR_MANIFEST_ATTRIBUTE_PREFIX, OWN_USER_ID, OnboardingStep, OnboardingStepKey, PLANS, type PaginationOptions, type PermissionObject, type PermissionSet, type PermissionSetId, PermissionTypes, PermissionsArea, Plan, READ_STATES, REPORT_CHART_SIZE_LIMIT, ReadState, type ReleasesPermission, type Role, SORTING_OPTIONS, SP_AUDIT_LOGS_TYPES, SSO_TYPES, type ScopedPermissionsByAreaKey, type SortOptions, TENANT_LIST_DEFAULT, TIMEOUTS, UNGROUPED_GROUP, USER_LOGOUT, UiPermission, type UiPermissionsByAreaKey, type UiPermissionsByIdKey, type UiPermissionsDefinition, type UserManagementPermission, Webhook, XML_METADATA_FORMAT, alertChannels, apiRoot, apiUrl, auditLogsApiUrl, auditlogTypes, canAccess, chartTypes, checkPermissionsObject, countries, credentialTypes, currentArtifact, defaultIdAttribute, defaultPermissionSets, defaultReportType, defaultReports, defaultStats, deploymentDisplayStates, deploymentPrototype, deploymentStatesToSubstates, deploymentStatesToSubstatesWithSkipped, deploymentSubstates, deploymentsApiUrl, deploymentsApiUrlV1alpha1, deploymentsApiUrlV2, deviceAuthV2, deviceConfig, deviceConnect, emptyChartSelection, emptyFilter, emptyRole, emptyUiPermissions, emptyWebhook, geoAttributes, getOidcStartUrl, getSamlStartUrl, headerNames, installationSubstatesMap, inventoryApiUrl, inventoryApiUrlV2, inventoryApiUrlV2alpha1, iotManagerBaseURL, itemUiPermissionsReducer, limitDefault, listDefaultsByState, locations, maxSessionAge, monitorApiUrlv1, onboardingSteps, orderedOnboardingSteps, pauseMap, productOrder, rolesById, rolesByName, rootfsImageVersion, rootfsManifestVersion, scopedPermissionAreas, serviceProviderRolesById, settingsKeys, softwareIndicator, softwareTitleMap, ssoIdpApiUrlv1, tenantadmApiUrlv1, tenantadmApiUrlv2, timeUnits, twoFAStates, uiPermissionsByArea, uiPermissionsById, useradmApiUrl, useradmApiUrlv1, useradmApiUrlv2, yes };