@northern.tech/store 0.39.0 → 0.41.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 (134) hide show
  1. package/dist/api/general-api.cjs +1 -1
  2. package/dist/api/general-api.js +1 -1
  3. package/dist/appSlice/index.js +1 -1
  4. package/dist/appSlice/selectors.d.cts +1 -1
  5. package/dist/appSlice/selectors.d.ts +1 -1
  6. package/dist/appSlice/thunks.d.cts +1 -1
  7. package/dist/appSlice/thunks.d.ts +1 -1
  8. package/dist/auth.cjs +1 -1
  9. package/dist/auth.js +1 -1
  10. package/dist/commonConstants.cjs +1 -1
  11. package/dist/commonConstants.js +1 -1
  12. package/dist/commonSelectors.cjs +1 -1
  13. package/dist/commonSelectors.d.cts +1 -1
  14. package/dist/commonSelectors.d.ts +1 -1
  15. package/dist/commonSelectors.js +1 -1
  16. package/dist/constants-CNZ5L0A0.cjs +957 -0
  17. package/dist/constants-CNZ5L0A0.cjs.map +1 -0
  18. package/dist/constants-Cj2kp3Iy.js +676 -0
  19. package/dist/constants-Cj2kp3Iy.js.map +1 -0
  20. package/dist/{constants-BwKiHHaB.d.ts → constants-D9o0Cnk_.d.cts} +2 -1
  21. package/dist/{constants-BwKiHHaB.d.cts → constants-D9o0Cnk_.d.ts} +2 -1
  22. package/dist/constants.cjs +48 -718
  23. package/dist/constants.d.cts +1 -1
  24. package/dist/constants.d.ts +1 -1
  25. package/dist/constants.js +1 -672
  26. package/dist/deploymentsSlice/constants.cjs +1 -1
  27. package/dist/deploymentsSlice/constants.d.cts +1 -1
  28. package/dist/deploymentsSlice/constants.d.ts +1 -1
  29. package/dist/deploymentsSlice/constants.js +1 -1
  30. package/dist/deploymentsSlice/index.cjs +1 -1
  31. package/dist/deploymentsSlice/index.js +1 -1
  32. package/dist/deploymentsSlice/mocks.cjs +1 -1
  33. package/dist/deploymentsSlice/mocks.cjs.map +1 -1
  34. package/dist/deploymentsSlice/mocks.d.cts +1 -1
  35. package/dist/deploymentsSlice/mocks.d.ts +1 -1
  36. package/dist/deploymentsSlice/mocks.js +1 -1
  37. package/dist/deploymentsSlice/mocks.js.map +1 -1
  38. package/dist/deploymentsSlice/selectors.cjs +1 -1
  39. package/dist/deploymentsSlice/selectors.d.cts +1 -1
  40. package/dist/deploymentsSlice/selectors.d.ts +1 -1
  41. package/dist/deploymentsSlice/selectors.js +1 -1
  42. package/dist/deploymentsSlice/thunks.d.cts +1 -1
  43. package/dist/deploymentsSlice/thunks.d.ts +1 -1
  44. package/dist/devicesSlice/constants.cjs +1 -1
  45. package/dist/devicesSlice/constants.js +1 -1
  46. package/dist/devicesSlice/index.js +1 -1
  47. package/dist/devicesSlice/mocks.js +1 -1
  48. package/dist/devicesSlice/selectors.cjs +1 -1
  49. package/dist/devicesSlice/selectors.d.cts +1 -1
  50. package/dist/devicesSlice/selectors.d.ts +1 -1
  51. package/dist/devicesSlice/selectors.js +1 -1
  52. package/dist/devicesSlice/thunks.d.cts +3 -3
  53. package/dist/devicesSlice/thunks.d.ts +3 -3
  54. package/dist/liststatehook.cjs +2 -1
  55. package/dist/liststatehook.cjs.map +1 -1
  56. package/dist/liststatehook.js +2 -1
  57. package/dist/liststatehook.js.map +1 -1
  58. package/dist/locationutils.cjs +1 -1
  59. package/dist/locationutils.js +1 -1
  60. package/dist/monitorSlice/index.js +1 -1
  61. package/dist/monitorSlice/mocks.js +1 -1
  62. package/dist/monitorSlice/selectors.d.cts +1 -1
  63. package/dist/monitorSlice/selectors.d.ts +1 -1
  64. package/dist/monitorSlice/thunks.cjs +1 -1
  65. package/dist/monitorSlice/thunks.cjs.map +1 -1
  66. package/dist/monitorSlice/thunks.d.cts +1 -1
  67. package/dist/monitorSlice/thunks.d.ts +1 -1
  68. package/dist/monitorSlice/thunks.js +1 -1
  69. package/dist/monitorSlice/thunks.js.map +1 -1
  70. package/dist/onboardingSlice/selectors.d.cts +1 -1
  71. package/dist/onboardingSlice/selectors.d.ts +1 -1
  72. package/dist/onboardingSlice/thunks.d.cts +1 -1
  73. package/dist/onboardingSlice/thunks.d.ts +1 -1
  74. package/dist/organizationSlice/constants.cjs +1 -1
  75. package/dist/organizationSlice/constants.js +1 -1
  76. package/dist/organizationSlice/index.cjs +1 -1
  77. package/dist/organizationSlice/index.js +1 -1
  78. package/dist/organizationSlice/mocks.js +1 -1
  79. package/dist/organizationSlice/selectors.cjs +1 -1
  80. package/dist/organizationSlice/selectors.d.cts +1 -1
  81. package/dist/organizationSlice/selectors.d.ts +1 -1
  82. package/dist/organizationSlice/selectors.js +1 -1
  83. package/dist/organizationSlice/thunks.d.cts +1 -1
  84. package/dist/organizationSlice/thunks.d.ts +1 -1
  85. package/dist/releasesSlice/index.js +1 -1
  86. package/dist/releasesSlice/mocks.js +1 -1
  87. package/dist/releasesSlice/selectors.d.cts +1 -1
  88. package/dist/releasesSlice/selectors.d.ts +1 -1
  89. package/dist/releasesSlice/thunks.cjs +6 -4
  90. package/dist/releasesSlice/thunks.cjs.map +1 -1
  91. package/dist/releasesSlice/thunks.d.cts +1 -1
  92. package/dist/releasesSlice/thunks.d.ts +1 -1
  93. package/dist/releasesSlice/thunks.js +6 -4
  94. package/dist/releasesSlice/thunks.js.map +1 -1
  95. package/dist/sockethook.cjs +1 -1
  96. package/dist/sockethook.js +1 -1
  97. package/dist/{store-xV2zaXAc.d.cts → store-B5-0USDz.d.cts} +3 -3
  98. package/dist/{store-BzrMxxAO.d.ts → store-CmiiLjxd.d.ts} +3 -3
  99. package/dist/store.cjs +1 -1
  100. package/dist/store.d.cts +1 -1
  101. package/dist/store.d.ts +1 -1
  102. package/dist/store.js +1 -1
  103. package/dist/storehooks.cjs +1 -1
  104. package/dist/storehooks.d.cts +1 -1
  105. package/dist/storehooks.d.ts +1 -1
  106. package/dist/storehooks.js +1 -1
  107. package/dist/thunks.cjs +57 -40
  108. package/dist/thunks.cjs.map +1 -1
  109. package/dist/thunks.d.cts +2 -2
  110. package/dist/thunks.d.ts +2 -2
  111. package/dist/thunks.js +54 -41
  112. package/dist/thunks.js.map +1 -1
  113. package/dist/usersSlice/constants.cjs +1 -1
  114. package/dist/usersSlice/constants.js +1 -1
  115. package/dist/usersSlice/index.cjs +1 -1
  116. package/dist/usersSlice/index.js +1 -1
  117. package/dist/usersSlice/mocks.js +1 -1
  118. package/dist/usersSlice/selectors.cjs +1 -1
  119. package/dist/usersSlice/selectors.d.cts +1 -1
  120. package/dist/usersSlice/selectors.d.ts +1 -1
  121. package/dist/usersSlice/selectors.js +1 -1
  122. package/dist/usersSlice/thunks.cjs +4 -0
  123. package/dist/usersSlice/thunks.d.cts +43 -3
  124. package/dist/usersSlice/thunks.d.ts +43 -3
  125. package/dist/usersSlice/thunks.js +2 -2
  126. package/dist/utils.cjs +11 -21
  127. package/dist/utils.cjs.map +1 -1
  128. package/dist/utils.d.cts +1 -1
  129. package/dist/utils.d.ts +1 -1
  130. package/dist/utils.js +11 -21
  131. package/dist/utils.js.map +1 -1
  132. package/package.json +3 -3
  133. package/dist/constants.cjs.map +0 -1
  134. package/dist/constants.js.map +0 -1
@@ -1,6 +1,6 @@
1
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
2
  import { $ as serviceProviderRolesById, A as alertChannels, At as emptyWebhook, B as deviceConnect, C as SORTING_OPTIONS, Ct as MAX_PAGE_SIZE, D as UiPermissionsByIdKey, Dt as countries, E as UiPermissionsByAreaKey, Et as Webhook, 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 timeUnits, N as auditLogsApiUrl, O as UiPermissionsDefinition, Ot as credentialTypes, P as defaultPermissionSets, Q as scopedPermissionAreas, R as deviceAuthV2, S as Role, St as IdAttribute, T as SortOptions, Tt as UNGROUPED_GROUP, 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 EXTERNAL_PROVIDER, 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 productOrder, k as UserManagementPermission, kt as defaultIdAttribute, 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 DEVICE_LIST_MAXIMUM_LENGTH, w as ScopedPermissionsByAreaKey, wt as TIMEOUTS, x as ReleasesPermission, xt as FilterOperator, y as PermissionSetId, yt as DEVICE_ONLINE_CUTOFF, z as deviceConfig } from "./constants-_p6w8uEp.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-BwKiHHaB.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";
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
6
  import { a as softwareTitleMap, i as softwareIndicator, n as currentArtifact, r as rootfsImageVersion, t as ARTIFACT_GENERATION_TYPE } from "./constants-6kYRTdox.cjs";
@@ -1,6 +1,6 @@
1
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.js";
2
2
  import { $ as serviceProviderRolesById, A as alertChannels, At as emptyWebhook, B as deviceConnect, C as SORTING_OPTIONS, Ct as MAX_PAGE_SIZE, D as UiPermissionsByIdKey, Dt as countries, E as UiPermissionsByAreaKey, Et as Webhook, 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 timeUnits, N as auditLogsApiUrl, O as UiPermissionsDefinition, Ot as credentialTypes, P as defaultPermissionSets, Q as scopedPermissionAreas, R as deviceAuthV2, S as Role, St as IdAttribute, T as SortOptions, Tt as UNGROUPED_GROUP, 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 EXTERNAL_PROVIDER, 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 productOrder, k as UserManagementPermission, kt as defaultIdAttribute, 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 DEVICE_LIST_MAXIMUM_LENGTH, w as ScopedPermissionsByAreaKey, wt as TIMEOUTS, x as ReleasesPermission, xt as FilterOperator, y as PermissionSetId, yt as DEVICE_ONLINE_CUTOFF, z as deviceConfig } from "./constants-OcdoVk6f.js";
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-BwKiHHaB.js";
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_.js";
4
4
  import { i as orderedOnboardingSteps, n as OnboardingStepKey, r as onboardingSteps, t as OnboardingStep } from "./constants-Db_RBdlV.js";
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.js";
6
6
  import { a as softwareTitleMap, i as softwareIndicator, n as currentArtifact, r as rootfsImageVersion, t as ARTIFACT_GENERATION_TYPE } from "./constants-6kYRTdox.js";
package/dist/constants.js CHANGED
@@ -1,676 +1,5 @@
1
1
  import { ADDONS, BEGINNING_OF_TIME, BENEFITS, DARK_MODE, LIGHT_MODE, PLANS, canAccess, chartTypes, defaultReportType, defaultReports, emptyChartSelection, locations, yes } from "./appSlice/constants.js";
2
+ import { $ as JSON_METADATA_FORMAT, A as limitDefault, At as MAX_PAGE_SIZE, B as twoFAStates, C as deviceConnect, Ct as deploymentSubstates, D as inventoryApiUrl, Dt as DEVICE_LIST_MAXIMUM_LENGTH, E as headerNames, Et as pauseMap, F as scopedPermissionAreas, Ft as defaultIdAttribute, G as useradmApiUrlv2, H as uiPermissionsById, I as serviceProviderRolesById, It as emptyWebhook, J as USER_LOGOUT, K as OWN_USER_ID, L as ssoIdpApiUrlv1, Lt as productOrder, M as monitorApiUrlv1, Mt as UNGROUPED_GROUP, N as rolesById, Nt as countries, O as inventoryApiUrlV2, Ot as DEVICE_ONLINE_CUTOFF, P as rolesByName, Pt as credentialTypes, Q as AUDIT_LOGS_TYPES, R as tenantadmApiUrlv1, Rt as timeUnits, S as deviceConfig, St as deploymentStatesToSubstatesWithSkipped, T as emptyUiPermissions, Tt as listDefaultsByState, U as useradmApiUrl, V as uiPermissionsByArea, W as useradmApiUrlv1, X as itemUiPermissionsReducer, Y as checkPermissionsObject, Z as settingsKeys, _ as defaultPermissionSets, _t as DEPLOYMENT_TYPES, a as APPLICATION_JWT_CONTENT_TYPE, at as getOidcStartUrl, b as deploymentsApiUrlV2, bt as deploymentPrototype, c as DEVICE_ISSUE_OPTIONS, ct as DEVICE_DISMISSAL_STATE, d as PermissionTypes, dt as REPORT_CHART_SIZE_LIMIT, et as SP_AUDIT_LOGS_TYPES, f as SORTING_OPTIONS, ft as emptyFilter, g as auditLogsApiUrl, gt as DEPLOYMENT_STATES, h as apiUrl, ht as DEPLOYMENT_ROUTES, i as APPLICATION_JSON_CONTENT_TYPE, it as auditlogTypes, j as maxSessionAge, jt as TIMEOUTS, k as iotManagerBaseURL, kt as EXTERNAL_PROVIDER, l as DEVICE_LIST_DEFAULTS, lt as DEVICE_MESSAGE_PROTOCOLS, m as apiRoot, mt as DEFAULT_PENDING_INPROGRESS_COUNT, n as ALL_DEVICE_STATES, nt as TENANT_LIST_DEFAULT, o as ATTRIBUTE_SCOPES, ot as getSamlStartUrl, p as alertChannels, pt as geoAttributes, q as READ_STATES, r as ALL_RELEASES, rt as XML_METADATA_FORMAT, s as DEVICE_FILTERING_OPTIONS, st as DEVICE_CONNECT_STATES, t as ALL_DEVICES, tt as SSO_TYPES, u as DEVICE_STATES, ut as DEVICE_MESSAGE_TYPES, v as deploymentsApiUrl, vt as defaultStats, w as emptyRole, wt as installationSubstatesMap, x as deviceAuthV2, xt as deploymentStatesToSubstates, y as deploymentsApiUrlV1alpha1, yt as deploymentDisplayStates, z as tenantadmApiUrlv2 } from "./constants-Cj2kp3Iy.js";
2
3
  import { onboardingSteps, orderedOnboardingSteps } from "./onboardingSlice/constants.js";
3
4
  import { ARTIFACT_GENERATION_TYPE, currentArtifact, rootfsImageVersion, softwareIndicator, softwareTitleMap } from "./releasesSlice/constants.js";
4
- 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";
5
- import { mdiAws, mdiMicrosoftAzure } from "@mdi/js";
6
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
7
- //#region src/commonConstants.tsx
8
- const timeUnits = {
9
- days: "days",
10
- minutes: "minutes",
11
- hours: "hours"
12
- };
13
- const UNGROUPED_GROUP = {
14
- id: "*|=ungrouped=|*",
15
- name: "Unassigned"
16
- };
17
- const DEVICE_LIST_MAXIMUM_LENGTH = 50;
18
- const oneSecond = 1e3;
19
- const TIMEOUTS = {
20
- debounceDefault: 700,
21
- debounceShort: 300,
22
- halfASecond: .5 * oneSecond,
23
- oneSecond,
24
- twoSeconds: 2 * oneSecond,
25
- threeSeconds: 3 * oneSecond,
26
- fiveSeconds: 5 * oneSecond,
27
- refreshDefault: 10 * oneSecond,
28
- refreshLong: 60 * oneSecond
29
- };
30
- const DEVICE_ONLINE_CUTOFF = {
31
- interval: 1,
32
- intervalName: timeUnits.days
33
- };
34
- const defaultIdAttribute = Object.freeze({
35
- attribute: "id",
36
- scope: ATTRIBUTE_SCOPES.identity
37
- });
38
- const productOrder = [
39
- "micro",
40
- "standard",
41
- "system"
42
- ];
43
- const credentialTypes = {
44
- aws: "aws",
45
- http: "http",
46
- sas: "sas",
47
- x509: "x509"
48
- };
49
- const EXTERNAL_PROVIDER = {
50
- "iot-core": {
51
- credentialsType: credentialTypes.aws,
52
- icon: mdiAws,
53
- title: "AWS IoT Core",
54
- twinTitle: "Device Shadow",
55
- provider: "iot-core",
56
- enabled: true,
57
- deviceTwin: true,
58
- configHint: /* @__PURE__ */ jsx(Fragment, { children: "For help finding your AWS IoT Core connection string, check the AWS IoT documentation." })
59
- },
60
- "iot-hub": {
61
- credentialsType: credentialTypes.sas,
62
- icon: mdiMicrosoftAzure,
63
- title: "Azure IoT Hub",
64
- twinTitle: "Device Twin",
65
- provider: "iot-hub",
66
- enabled: true,
67
- deviceTwin: true,
68
- configHint: /* @__PURE__ */ jsxs("span", { children: [
69
- "For help finding your Azure IoT Hub connection string, look under 'Shared access policies' in the Microsoft Azure UI as described",
70
- " ",
71
- /* @__PURE__ */ jsx("a", {
72
- href: "https://devblogs.microsoft.com/iotdev/understand-different-connection-strings-in-azure-iot-hub/#iothubconn",
73
- target: "_blank",
74
- rel: "noopener noreferrer",
75
- children: "here"
76
- }),
77
- "."
78
- ] })
79
- },
80
- webhook: {
81
- credentialsType: credentialTypes.http,
82
- deviceTwin: false,
83
- twinTitle: "",
84
- enabled: false,
85
- provider: "webhook"
86
- }
87
- };
88
- const emptyWebhook = {
89
- description: "",
90
- provider: "webhook",
91
- credentials: {
92
- type: EXTERNAL_PROVIDER.webhook.credentialsType,
93
- [EXTERNAL_PROVIDER.webhook.credentialsType]: {
94
- secret: "",
95
- url: ""
96
- }
97
- }
98
- };
99
- const MAX_PAGE_SIZE = 500;
100
- const regionNames = new Intl.DisplayNames(["en"], { type: "region" });
101
- const countries = [
102
- "AD",
103
- "AE",
104
- "AF",
105
- "AG",
106
- "AI",
107
- "AL",
108
- "AM",
109
- "AO",
110
- "AQ",
111
- "AR",
112
- "AS",
113
- "AT",
114
- "AU",
115
- "AW",
116
- "AX",
117
- "AZ",
118
- "BA",
119
- "BB",
120
- "BD",
121
- "BE",
122
- "BF",
123
- "BG",
124
- "BH",
125
- "BI",
126
- "BJ",
127
- "BL",
128
- "BM",
129
- "BN",
130
- "BO",
131
- "BR",
132
- "BS",
133
- "BT",
134
- "BV",
135
- "BW",
136
- "BY",
137
- "BZ",
138
- "CA",
139
- "CC",
140
- "CD",
141
- "CF",
142
- "CG",
143
- "CH",
144
- "CI",
145
- "CK",
146
- "CL",
147
- "CM",
148
- "CN",
149
- "CO",
150
- "CR",
151
- "CU",
152
- "CV",
153
- "CW",
154
- "CX",
155
- "CY",
156
- "CZ",
157
- "DE",
158
- "DJ",
159
- "DK",
160
- "DM",
161
- "DO",
162
- "DZ",
163
- "EC",
164
- "EE",
165
- "EG",
166
- "EH",
167
- "ER",
168
- "ES",
169
- "ET",
170
- "FI",
171
- "FJ",
172
- "FK",
173
- "FM",
174
- "FO",
175
- "FR",
176
- "GA",
177
- "GB",
178
- "GD",
179
- "GE",
180
- "GF",
181
- "GG",
182
- "GH",
183
- "GI",
184
- "GL",
185
- "GM",
186
- "GN",
187
- "GP",
188
- "GQ",
189
- "GR",
190
- "GS",
191
- "GT",
192
- "GU",
193
- "GW",
194
- "GY",
195
- "HK",
196
- "HM",
197
- "HN",
198
- "HR",
199
- "HT",
200
- "HU",
201
- "ID",
202
- "IE",
203
- "IL",
204
- "IM",
205
- "IN",
206
- "IO",
207
- "IQ",
208
- "IR",
209
- "IS",
210
- "IT",
211
- "JE",
212
- "JM",
213
- "JO",
214
- "JP",
215
- "KE",
216
- "KG",
217
- "KH",
218
- "KI",
219
- "KM",
220
- "KN",
221
- "KP",
222
- "KR",
223
- "KW",
224
- "KY",
225
- "KZ",
226
- "LA",
227
- "LB",
228
- "LC",
229
- "LI",
230
- "LK",
231
- "LR",
232
- "LS",
233
- "LT",
234
- "LU",
235
- "LV",
236
- "LY",
237
- "MA",
238
- "MC",
239
- "MD",
240
- "ME",
241
- "MF",
242
- "MG",
243
- "MH",
244
- "MK",
245
- "ML",
246
- "MM",
247
- "MN",
248
- "MO",
249
- "MP",
250
- "MQ",
251
- "MR",
252
- "MS",
253
- "MT",
254
- "MU",
255
- "MV",
256
- "MW",
257
- "MX",
258
- "MY",
259
- "MZ",
260
- "NA",
261
- "NC",
262
- "NE",
263
- "NF",
264
- "NG",
265
- "NI",
266
- "NL",
267
- "NO",
268
- "NP",
269
- "NR",
270
- "NU",
271
- "NZ",
272
- "OM",
273
- "PA",
274
- "PE",
275
- "PF",
276
- "PG",
277
- "PH",
278
- "PK",
279
- "PL",
280
- "PM",
281
- "PN",
282
- "PR",
283
- "PS",
284
- "PT",
285
- "PW",
286
- "PY",
287
- "QA",
288
- "RE",
289
- "RO",
290
- "RS",
291
- "RU",
292
- "RW",
293
- "SA",
294
- "SB",
295
- "SC",
296
- "SD",
297
- "SE",
298
- "SG",
299
- "SH",
300
- "SI",
301
- "SJ",
302
- "SK",
303
- "SL",
304
- "SM",
305
- "SN",
306
- "SO",
307
- "SR",
308
- "SS",
309
- "ST",
310
- "SV",
311
- "SX",
312
- "SY",
313
- "SZ",
314
- "TC",
315
- "TD",
316
- "TF",
317
- "TG",
318
- "TH",
319
- "TJ",
320
- "TK",
321
- "TL",
322
- "TM",
323
- "TN",
324
- "TO",
325
- "TR",
326
- "TT",
327
- "TV",
328
- "TW",
329
- "TZ",
330
- "UA",
331
- "UG",
332
- "US",
333
- "UY",
334
- "UZ",
335
- "VA",
336
- "VC",
337
- "VE",
338
- "VG",
339
- "VI",
340
- "VN",
341
- "VU",
342
- "WF",
343
- "WS",
344
- "XK",
345
- "YE",
346
- "YT",
347
- "ZA",
348
- "ZM",
349
- "ZW"
350
- ].map((code) => ({
351
- code,
352
- label: regionNames.of(code)
353
- })).sort((a, b) => a.label.localeCompare(b.label));
354
- const deploymentSubstates = {
355
- aborted: "aborted",
356
- alreadyInstalled: "already-installed",
357
- decommissioned: "decommissioned",
358
- downloading: "downloading",
359
- failure: "failure",
360
- installing: "installing",
361
- noartifact: "noartifact",
362
- artifact_too_big: "artifact_too_big",
363
- pause_before_committing: "pause_before_committing",
364
- pause_before_installing: "pause_before_installing",
365
- pause_before_rebooting: "pause_before_rebooting",
366
- pending: "pending",
367
- rebooting: "rebooting",
368
- success: "success"
369
- };
370
- const deploymentStatesToSubstates = {
371
- failures: [
372
- deploymentSubstates.failure,
373
- deploymentSubstates.aborted,
374
- deploymentSubstates.decommissioned
375
- ],
376
- inprogress: [
377
- deploymentSubstates.downloading,
378
- deploymentSubstates.installing,
379
- deploymentSubstates.rebooting
380
- ],
381
- paused: [
382
- deploymentSubstates.pause_before_installing,
383
- deploymentSubstates.pause_before_rebooting,
384
- deploymentSubstates.pause_before_committing
385
- ],
386
- pending: [deploymentSubstates.pending],
387
- successes: [
388
- deploymentSubstates.success,
389
- deploymentSubstates.alreadyInstalled,
390
- deploymentSubstates.noartifact,
391
- deploymentSubstates.artifact_too_big
392
- ]
393
- };
394
- const deploymentStatesToSubstatesWithSkipped = {
395
- ...deploymentStatesToSubstates,
396
- failures: [deploymentSubstates.failure],
397
- skipped: [
398
- deploymentSubstates.aborted,
399
- deploymentSubstates.noartifact,
400
- deploymentSubstates.artifact_too_big,
401
- deploymentSubstates.alreadyInstalled,
402
- deploymentSubstates.decommissioned
403
- ],
404
- successes: [deploymentSubstates.success]
405
- };
406
- const installationSubstatesMap = {
407
- download: {
408
- title: "download",
409
- done: "downloaded",
410
- successIndicators: [
411
- deploymentSubstates.installing,
412
- deploymentSubstates.rebooting,
413
- ...deploymentStatesToSubstates.paused,
414
- deploymentSubstates.success
415
- ],
416
- failureIndicators: deploymentStatesToSubstates.failures,
417
- pauseConfigurationIndicator: "ArtifactInstall_Enter"
418
- },
419
- install: {
420
- title: "install",
421
- done: "installed",
422
- successIndicators: [
423
- deploymentSubstates.rebooting,
424
- deploymentSubstates.pause_before_rebooting,
425
- deploymentSubstates.pause_before_committing,
426
- deploymentSubstates.success
427
- ],
428
- failureIndicators: deploymentStatesToSubstates.failures,
429
- pauseConfigurationIndicator: "ArtifactReboot_Enter"
430
- },
431
- reboot: {
432
- title: "reboot",
433
- done: "rebooted",
434
- successIndicators: [deploymentSubstates.pause_before_committing, deploymentSubstates.success],
435
- failureIndicators: deploymentStatesToSubstates.failures,
436
- pauseConfigurationIndicator: "ArtifactCommit_Enter"
437
- },
438
- commit: {
439
- title: "commit",
440
- done: "committed",
441
- successIndicators: deploymentStatesToSubstates.successes,
442
- failureIndicators: deploymentStatesToSubstates.failures,
443
- pauseConfigurationIndicator: void 0
444
- }
445
- };
446
- const DEPLOYMENT_STATES = {
447
- finished: "finished",
448
- inprogress: "inprogress",
449
- pending: "pending",
450
- scheduled: "scheduled"
451
- };
452
- const listDefaultsByState = {
453
- [DEPLOYMENT_STATES.inprogress]: {
454
- page: 1,
455
- perPage: 10
456
- },
457
- [DEPLOYMENT_STATES.pending]: {
458
- page: 1,
459
- perPage: 10
460
- },
461
- [DEPLOYMENT_STATES.scheduled]: { ...DEVICE_LIST_DEFAULTS },
462
- [DEPLOYMENT_STATES.finished]: { ...DEVICE_LIST_DEFAULTS },
463
- sort: { direction: SORTING_OPTIONS.desc }
464
- };
465
- const DEFAULT_PENDING_INPROGRESS_COUNT = 10;
466
- const DEPLOYMENT_ROUTES = {
467
- active: {
468
- key: "active",
469
- route: "/deployments/active",
470
- states: [DEPLOYMENT_STATES.pending, DEPLOYMENT_STATES.inprogress],
471
- title: "Active"
472
- },
473
- finished: {
474
- key: "finished",
475
- route: "/deployments/finished",
476
- states: [DEPLOYMENT_STATES.finished],
477
- title: "Finished"
478
- },
479
- scheduled: {
480
- key: "scheduled",
481
- route: "/deployments/scheduled",
482
- states: [DEPLOYMENT_STATES.scheduled],
483
- title: "Scheduled"
484
- }
485
- };
486
- const DEPLOYMENT_TYPES = {
487
- software: "software",
488
- configuration: "configuration"
489
- };
490
- const defaultStats = {
491
- [deploymentSubstates.aborted]: 0,
492
- [deploymentSubstates.alreadyInstalled]: 0,
493
- [deploymentSubstates.decommissioned]: 0,
494
- [deploymentSubstates.downloading]: 0,
495
- [deploymentSubstates.failure]: 0,
496
- [deploymentSubstates.installing]: 0,
497
- [deploymentSubstates.noartifact]: 0,
498
- [deploymentSubstates.pause_before_committing]: 0,
499
- [deploymentSubstates.pause_before_installing]: 0,
500
- [deploymentSubstates.pause_before_rebooting]: 0,
501
- [deploymentSubstates.pending]: 0,
502
- [deploymentSubstates.rebooting]: 0,
503
- [deploymentSubstates.success]: 0
504
- };
505
- const deploymentDisplayStates = {
506
- finished: "Finished",
507
- scheduled: "Scheduled",
508
- skipped: "Skipped",
509
- paused: "Paused",
510
- pending: "Pending",
511
- inprogress: "In Progress",
512
- success: "Success",
513
- successes: "Success",
514
- failure: "Fail",
515
- failures: "Fail"
516
- };
517
- const deploymentPrototype = {
518
- devices: {},
519
- name: void 0,
520
- statistics: { status: {} }
521
- };
522
- const pauseMap = {
523
- [deploymentSubstates.pause_before_installing]: {
524
- title: installationSubstatesMap.download.done,
525
- followUp: installationSubstatesMap.download.pauseConfigurationIndicator
526
- },
527
- [deploymentSubstates.pause_before_rebooting]: {
528
- title: installationSubstatesMap.install.done,
529
- followUp: installationSubstatesMap.install.pauseConfigurationIndicator
530
- },
531
- [deploymentSubstates.pause_before_committing]: {
532
- title: installationSubstatesMap.reboot.done,
533
- followUp: installationSubstatesMap.reboot.pauseConfigurationIndicator
534
- }
535
- };
536
- //#endregion
537
- //#region src/devicesSlice/constants.ts
538
- const emptyFilter = {
539
- key: null,
540
- value: "",
541
- operator: DEVICE_FILTERING_OPTIONS.$eq.key,
542
- scope: "inventory"
543
- };
544
- const DEVICE_MESSAGE_PROTOCOLS = { Shell: 1 };
545
- const DEVICE_MESSAGE_TYPES = {
546
- Delay: "delay",
547
- New: "new",
548
- Ping: "ping",
549
- Pong: "pong",
550
- Resize: "resize",
551
- Shell: "shell",
552
- Stop: "stop"
553
- };
554
- const DEVICE_DISMISSAL_STATE = "dismiss";
555
- const DEVICE_CONNECT_STATES = {
556
- connected: "connected",
557
- disconnected: "disconnected",
558
- unknown: "unknown"
559
- };
560
- const geoAttributes = ["geo-lat", "geo-lon"].map((attribute) => ({
561
- attribute,
562
- scope: "inventory"
563
- }));
564
- const REPORT_CHART_SIZE_LIMIT = 6;
565
- //#endregion
566
- //#region src/organizationSlice/constants.ts
567
- const XML_METADATA_FORMAT = "xml";
568
- const JSON_METADATA_FORMAT = "json";
569
- const getSamlStartUrl = (id) => `${window.location.origin}${useradmApiUrl}/auth/sso/${id}/login`;
570
- const getOidcStartUrl = (id) => `${window.location.origin}${useradmApiUrl}/oidc/${id}/start`;
571
- const SSO_TYPES = {
572
- saml: {
573
- id: "saml",
574
- type: "saml",
575
- title: "SAML",
576
- metadataFormat: "xml",
577
- editorLanguage: "xml",
578
- contentType: "application/samlmetadata+xml",
579
- getStartUrl: getSamlStartUrl,
580
- configDetails: [
581
- {
582
- key: "entityID",
583
- label: "Entity ID",
584
- getValue: (id) => `${window.location.origin}${useradmApiUrl}/sso/sp/metadata/${id}`
585
- },
586
- {
587
- key: "acs",
588
- label: "ACS URL",
589
- getValue: (id) => `${window.location.origin}${useradmApiUrl}/auth/sso/${id}/acs`
590
- },
591
- {
592
- key: "startURL",
593
- label: "Start URL",
594
- getValue: getSamlStartUrl
595
- }
596
- ]
597
- },
598
- oidc: {
599
- id: "oidc",
600
- type: "oidc",
601
- title: "OpenID Connect",
602
- metadataFormat: JSON_METADATA_FORMAT,
603
- editorLanguage: JSON_METADATA_FORMAT,
604
- contentType: "application/json",
605
- getStartUrl: getOidcStartUrl,
606
- configDetails: [{
607
- key: "startURL",
608
- label: "Start Url",
609
- getValue: getOidcStartUrl
610
- }]
611
- }
612
- };
613
- const auditlogTypes = {
614
- artifact: {
615
- title: "Artifact",
616
- queryParameter: "object_type",
617
- value: "artifact"
618
- },
619
- deployment: {
620
- title: "Deployment",
621
- queryParameter: "object_deployment_name",
622
- value: "deployment"
623
- },
624
- device: {
625
- title: "Device",
626
- queryParameter: "object_id",
627
- value: "device"
628
- },
629
- user_access_token: {
630
- title: "Personal Access Token",
631
- queryParameter: "user_access_token",
632
- value: "user_access_token"
633
- },
634
- user: {
635
- title: "User",
636
- queryParameter: "object_id",
637
- value: "user"
638
- },
639
- tenant: {
640
- title: "Tenant",
641
- queryParameter: "object_id",
642
- value: "tenant"
643
- }
644
- };
645
- const AUDIT_LOGS_TYPES = [
646
- auditlogTypes.artifact,
647
- auditlogTypes.deployment,
648
- auditlogTypes.device,
649
- auditlogTypes.user_access_token,
650
- auditlogTypes.user
651
- ];
652
- const SP_AUDIT_LOGS_TYPES = [auditlogTypes.user, auditlogTypes.tenant];
653
- const TENANT_LIST_DEFAULT = {
654
- page: 1,
655
- perPage: 20
656
- };
657
- //#endregion
658
- //#region src/usersSlice/constants.ts
659
- const itemUiPermissionsReducer = (accu, { item, uiPermissions }) => item ? {
660
- ...accu,
661
- [item]: uiPermissions
662
- } : accu;
663
- const checkSinglePermission = (permission, requiredPermission) => requiredPermission === permission || uiPermissionsById[permission].permissionLevel > uiPermissionsById[requiredPermission].permissionLevel;
664
- const checkPermissionsObject = (permissions, requiredPermission, scopedAccess, superAccess) => permissions[superAccess]?.some((permission) => checkSinglePermission(permission, requiredPermission)) || permissions[scopedAccess]?.some((permission) => checkSinglePermission(permission, requiredPermission));
665
- const USER_LOGOUT = "USER_LOGOUT";
666
- const OWN_USER_ID = "me";
667
- const settingsKeys = { initialized: "settings-initialized" };
668
- const READ_STATES = {
669
- read: "read",
670
- seen: "seen",
671
- unread: "unread"
672
- };
673
- //#endregion
674
5
  export { ADDONS, ALL_DEVICES, ALL_DEVICE_STATES, ALL_RELEASES, APPLICATION_JSON_CONTENT_TYPE, APPLICATION_JWT_CONTENT_TYPE, ARTIFACT_GENERATION_TYPE, ATTRIBUTE_SCOPES, AUDIT_LOGS_TYPES, BEGINNING_OF_TIME, BENEFITS, 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, EXTERNAL_PROVIDER, JSON_METADATA_FORMAT, LIGHT_MODE, MAX_PAGE_SIZE, OWN_USER_ID, PLANS, PermissionTypes, READ_STATES, REPORT_CHART_SIZE_LIMIT, SORTING_OPTIONS, SP_AUDIT_LOGS_TYPES, SSO_TYPES, TENANT_LIST_DEFAULT, TIMEOUTS, UNGROUPED_GROUP, USER_LOGOUT, 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 };
675
-
676
- //# sourceMappingURL=constants.js.map