@northern.tech/store 0.4.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (128) hide show
  1. package/dist/actions.js +4 -4
  2. package/dist/api/general-api.js +2 -2
  3. package/dist/api/users-api.js +2 -2
  4. package/dist/appSlice/constants.cjs +2 -10
  5. package/dist/appSlice/constants.cjs.map +1 -1
  6. package/dist/appSlice/constants.d.cts +0 -2
  7. package/dist/appSlice/constants.d.ts +0 -2
  8. package/dist/appSlice/constants.js +1 -1
  9. package/dist/appSlice/index.js +2 -2
  10. package/dist/appSlice/mocks.js +2 -2
  11. package/dist/appSlice/selectors.cjs +6 -0
  12. package/dist/appSlice/selectors.cjs.map +1 -1
  13. package/dist/appSlice/selectors.d.cts +3 -1
  14. package/dist/appSlice/selectors.d.ts +3 -1
  15. package/dist/appSlice/selectors.js +5 -1
  16. package/dist/appSlice/thunks.cjs +8 -3
  17. package/dist/appSlice/thunks.cjs.map +1 -1
  18. package/dist/appSlice/thunks.js +16 -16
  19. package/dist/auth.js +2 -2
  20. package/dist/{chunk-ZRSYBSSY.js → chunk-4E7ZSEFL.js} +2 -2
  21. package/dist/{chunk-X4GUACQO.js → chunk-6XVREXI4.js} +2 -2
  22. package/dist/{chunk-URNS6A5T.js → chunk-7PRZYHDP.js} +4 -4
  23. package/dist/{chunk-MBKAZVE3.js → chunk-BYUPW7RA.js} +5 -1
  24. package/dist/chunk-BYUPW7RA.js.map +1 -0
  25. package/dist/{chunk-ZN5TB2NJ.js → chunk-FQW72QFK.js} +23 -17
  26. package/dist/chunk-FQW72QFK.js.map +1 -0
  27. package/dist/{chunk-OHF3YUXX.js → chunk-HFOTAPIJ.js} +3 -11
  28. package/dist/chunk-HFOTAPIJ.js.map +1 -0
  29. package/dist/{chunk-CW5T6OGF.js → chunk-MPYYSFPL.js} +5 -5
  30. package/dist/{chunk-IQG5I7AM.js → chunk-NQIP7VFB.js} +14 -14
  31. package/dist/{chunk-XWYJACQC.js → chunk-QEKN5R7E.js} +2 -2
  32. package/dist/{chunk-N2KLYPS5.js → chunk-YWHRAPDQ.js} +6 -6
  33. package/dist/{chunk-4TUJPE6G.js → chunk-YY6SKZDF.js} +2 -2
  34. package/dist/chunk-YY6SKZDF.js.map +1 -0
  35. package/dist/{chunk-JUGE7L3K.js → chunk-ZIUUV35J.js} +5 -5
  36. package/dist/commonConstants.js +2 -2
  37. package/dist/commonSelectors.cjs +1 -1
  38. package/dist/commonSelectors.cjs.map +1 -1
  39. package/dist/commonSelectors.js +10 -10
  40. package/dist/constants.cjs +2 -10
  41. package/dist/constants.cjs.map +1 -1
  42. package/dist/constants.js +2 -2
  43. package/dist/deploymentsSlice/constants.js +2 -2
  44. package/dist/deploymentsSlice/index.js +2 -2
  45. package/dist/deploymentsSlice/mocks.js +2 -2
  46. package/dist/deploymentsSlice/selectors.js +2 -2
  47. package/dist/deploymentsSlice/thunks.cjs +8 -3
  48. package/dist/deploymentsSlice/thunks.cjs.map +1 -1
  49. package/dist/deploymentsSlice/thunks.js +16 -16
  50. package/dist/devicesSlice/constants.js +2 -2
  51. package/dist/devicesSlice/index.js +2 -2
  52. package/dist/devicesSlice/mocks.js +2 -2
  53. package/dist/devicesSlice/selectors.js +2 -2
  54. package/dist/devicesSlice/thunks.cjs +8 -3
  55. package/dist/devicesSlice/thunks.cjs.map +1 -1
  56. package/dist/devicesSlice/thunks.js +16 -16
  57. package/dist/liststatehook.js +2 -2
  58. package/dist/locationutils.js +2 -2
  59. package/dist/monitorSlice/index.js +2 -2
  60. package/dist/monitorSlice/mocks.js +2 -2
  61. package/dist/monitorSlice/thunks.cjs +1 -1
  62. package/dist/monitorSlice/thunks.cjs.map +1 -1
  63. package/dist/monitorSlice/thunks.js +14 -14
  64. package/dist/onboardingSlice/thunks.cjs +8 -3
  65. package/dist/onboardingSlice/thunks.cjs.map +1 -1
  66. package/dist/onboardingSlice/thunks.js +16 -16
  67. package/dist/organizationSlice/constants.js +2 -2
  68. package/dist/organizationSlice/index.js +2 -2
  69. package/dist/organizationSlice/mocks.js +2 -2
  70. package/dist/organizationSlice/selectors.cjs +1 -1
  71. package/dist/organizationSlice/selectors.cjs.map +1 -1
  72. package/dist/organizationSlice/selectors.js +3 -3
  73. package/dist/organizationSlice/thunks.cjs +12 -15
  74. package/dist/organizationSlice/thunks.cjs.map +1 -1
  75. package/dist/organizationSlice/thunks.js +16 -16
  76. package/dist/releasesSlice/index.js +2 -2
  77. package/dist/releasesSlice/mocks.js +2 -2
  78. package/dist/releasesSlice/selectors.js +4 -4
  79. package/dist/releasesSlice/thunks.cjs +1 -1
  80. package/dist/releasesSlice/thunks.cjs.map +1 -1
  81. package/dist/releasesSlice/thunks.js +14 -14
  82. package/dist/selectors.cjs +7 -1
  83. package/dist/selectors.cjs.map +1 -1
  84. package/dist/selectors.d.cts +1 -1
  85. package/dist/selectors.d.ts +1 -1
  86. package/dist/selectors.js +23 -19
  87. package/dist/sockethook.js +2 -2
  88. package/dist/store.js +5 -5
  89. package/dist/storehooks.cjs +13 -16
  90. package/dist/storehooks.cjs.map +1 -1
  91. package/dist/storehooks.js +17 -17
  92. package/dist/storehooks.js.map +1 -1
  93. package/dist/thunks.cjs +14 -15
  94. package/dist/thunks.cjs.map +1 -1
  95. package/dist/thunks.d.cts +1 -1
  96. package/dist/thunks.d.ts +1 -1
  97. package/dist/thunks.js +18 -16
  98. package/dist/useDeploymentDevice.cjs +11 -5
  99. package/dist/useDeploymentDevice.cjs.map +1 -1
  100. package/dist/useDeploymentDevice.js +18 -17
  101. package/dist/useDeploymentDevice.js.map +1 -1
  102. package/dist/usersSlice/constants.js +2 -2
  103. package/dist/usersSlice/index.js +2 -2
  104. package/dist/usersSlice/mocks.js +2 -2
  105. package/dist/usersSlice/selectors.cjs.map +1 -1
  106. package/dist/usersSlice/selectors.js +4 -4
  107. package/dist/usersSlice/thunks.cjs +10 -3
  108. package/dist/usersSlice/thunks.cjs.map +1 -1
  109. package/dist/usersSlice/thunks.d.cts +11 -1
  110. package/dist/usersSlice/thunks.d.ts +11 -1
  111. package/dist/usersSlice/thunks.js +18 -16
  112. package/dist/utils.cjs.map +1 -1
  113. package/dist/utils.js +3 -3
  114. package/package.json +1 -1
  115. package/dist/chunk-4TUJPE6G.js.map +0 -1
  116. package/dist/chunk-MBKAZVE3.js.map +0 -1
  117. package/dist/chunk-OHF3YUXX.js.map +0 -1
  118. package/dist/chunk-ZN5TB2NJ.js.map +0 -1
  119. package/dist/flag-eu-5477R2P4.svg +0 -130
  120. package/dist/flag-us-HNQAF66I.svg +0 -63
  121. /package/dist/{chunk-ZRSYBSSY.js.map → chunk-4E7ZSEFL.js.map} +0 -0
  122. /package/dist/{chunk-X4GUACQO.js.map → chunk-6XVREXI4.js.map} +0 -0
  123. /package/dist/{chunk-URNS6A5T.js.map → chunk-7PRZYHDP.js.map} +0 -0
  124. /package/dist/{chunk-CW5T6OGF.js.map → chunk-MPYYSFPL.js.map} +0 -0
  125. /package/dist/{chunk-IQG5I7AM.js.map → chunk-NQIP7VFB.js.map} +0 -0
  126. /package/dist/{chunk-XWYJACQC.js.map → chunk-QEKN5R7E.js.map} +0 -0
  127. /package/dist/{chunk-N2KLYPS5.js.map → chunk-YWHRAPDQ.js.map} +0 -0
  128. /package/dist/{chunk-JUGE7L3K.js.map → chunk-ZIUUV35J.js.map} +0 -0
@@ -1,13 +1,5 @@
1
1
  // src/appSlice/constants.ts
2
2
  import { BarChart as BarChartIcon, PieChartOutline as PieChartIcon } from "@mui/icons-material";
3
-
4
- // ../../assets/img/flag-eu.svg
5
- var flag_eu_default = "./flag-eu-5477R2P4.svg";
6
-
7
- // ../../assets/img/flag-us.svg
8
- var flag_us_default = "./flag-us-HNQAF66I.svg";
9
-
10
- // src/appSlice/constants.ts
11
3
  var startingDeviceCount = {
12
4
  os: "for first 50 devices",
13
5
  professional: "for first 250 devices"
@@ -21,8 +13,8 @@ var defaultReportType = "distribution";
21
13
  var defaultReports = [{ ...emptyChartSelection, group: null, attribute: "artifact_name", type: defaultReportType }];
22
14
  var BEGINNING_OF_TIME = "2016-01-01T00:00:00.000Z";
23
15
  var locations = {
24
- eu: { key: "eu", title: "EU", location: "eu.hosted.mender.io", icon: flag_eu_default },
25
- us: { key: "us", title: "US", location: "hosted.mender.io", icon: flag_us_default }
16
+ eu: { key: "eu", title: "EU", location: "eu.hosted.mender.io" },
17
+ us: { key: "us", title: "US", location: "hosted.mender.io" }
26
18
  };
27
19
  var PLANS = {
28
20
  os: {
@@ -156,4 +148,4 @@ export {
156
148
  DARK_MODE,
157
149
  LIGHT_MODE
158
150
  };
159
- //# sourceMappingURL=chunk-OHF3YUXX.js.map
151
+ //# sourceMappingURL=chunk-HFOTAPIJ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/appSlice/constants.ts"],"sourcesContent":["// 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 { BarChart as BarChartIcon, PieChartOutline as PieChartIcon } from '@mui/icons-material';\n\nconst startingDeviceCount = {\n os: 'for first 50 devices',\n professional: 'for first 250 devices'\n} as const;\n\nexport const chartTypes = {\n bar: { key: 'bar', Icon: BarChartIcon },\n pie: { key: 'pie', Icon: PieChartIcon }\n} as const;\nexport const emptyChartSelection = { software: '', group: '', chartType: chartTypes.bar.key, attribute: 'artifact_name' };\nexport const defaultReportType = 'distribution';\nexport const defaultReports = [{ ...emptyChartSelection, group: null, attribute: 'artifact_name', type: defaultReportType }];\n\nexport const BEGINNING_OF_TIME = '2016-01-01T00:00:00.000Z';\n\nexport const locations = {\n eu: { key: 'eu', title: 'EU', location: 'eu.hosted.mender.io' },\n us: { key: 'us', title: 'US', location: 'hosted.mender.io' }\n} as const;\nexport type AvailablePlans = 'os' | 'professional' | 'enterprise';\n\nexport type Plan = {\n description: string;\n deviceCount: string;\n features: string[];\n id: AvailablePlans;\n minimalDeviceCount: number;\n name: string;\n offer?: boolean;\n offerprice?: string;\n price: string;\n price2?: string;\n};\n\nexport type AvailableAddon = 'configure' | 'troubleshoot' | 'monitor';\n\nexport const PLANS: { [key in AvailablePlans]: Plan } = {\n os: {\n id: 'os',\n name: 'Basic',\n minimalDeviceCount: 50,\n offer: true,\n price: '$34 / month',\n deviceCount: startingDeviceCount.os,\n description:\n 'The core features of Mender. To continue using Enterprise Trial features—like Delta updates, scheduled deployments, phased rollouts, device filtering, dynamic groups, RBAC, audit logs, and more—please upgrade to a higher plan.',\n features: ['Access to core features of Mender', 'Basic support']\n },\n professional: {\n id: 'professional',\n name: 'Professional',\n minimalDeviceCount: 250,\n offer: true,\n price: '$291 / month',\n deviceCount: startingDeviceCount.professional,\n description: 'Everything in Basic, plus enhanced update management and automation features.',\n features: ['Advanced OTA features', 'Higher priority support']\n },\n enterprise: {\n id: 'enterprise',\n name: 'Enterprise',\n minimalDeviceCount: 1000,\n price: 'Custom pricing',\n deviceCount: 'Unlimited devices',\n description:\n 'Every advanced feature of Mender, tailored for complex and large-scale deployments. Not available as a monthly subscription — ask us for a quote.',\n features: ['All Mender features', 'Advanced security features', 'SLA-backed support']\n }\n} as const;\nexport type Addon = {\n description: string;\n eligible: AvailablePlans[];\n id: string;\n needs: string[];\n title: string;\n} & {\n [key in Exclude<AvailablePlans, 'enterprise'>]: {\n deviceCount: string;\n price: string;\n };\n};\n\nexport type AddonId = keyof typeof ADDONS;\n\n// the needs names need to be aligned with the name of the features in the appReducer, as they will be checked in the addonselection\nexport const ADDONS: { [key in AvailableAddon]: Addon } = {\n configure: {\n id: 'configure',\n title: 'Configure',\n description: 'Expand your plan with device configuration features',\n needs: ['hasDeviceConfig'],\n os: {\n price: '$11/month',\n deviceCount: startingDeviceCount.os\n },\n professional: {\n price: '$65/month',\n deviceCount: startingDeviceCount.professional\n },\n eligible: ['os', 'professional', 'enterprise']\n },\n monitor: {\n id: 'monitor',\n title: 'Monitor',\n description: 'Expand your plan with device monitoring features',\n needs: ['hasMonitor'],\n os: {\n price: '-',\n deviceCount: '-'\n },\n professional: {\n price: '$86/month',\n deviceCount: startingDeviceCount.professional\n },\n eligible: ['professional', 'enterprise']\n },\n troubleshoot: {\n id: 'troubleshoot',\n title: 'Troubleshoot',\n description: 'Expand your plan with device troubleshooting features',\n needs: ['hasDeviceConnect'],\n os: {\n price: '$27/month',\n deviceCount: startingDeviceCount.os\n },\n professional: {\n price: '$72/month',\n deviceCount: startingDeviceCount.professional\n },\n eligible: ['os', 'professional', 'enterprise']\n }\n};\n\nexport const BENEFITS = {\n auditlog: { id: 'auditlog', benefit: 'trace change across your devices and access troubleshooting session replay', requiredPlan: PLANS.professional.id },\n dashboard: { id: 'dashboard', benefit: 'actionable insights into the devices you are updating with Mender', requiredPlan: PLANS.enterprise.id },\n deltaGeneration: {\n id: 'deltaGeneration',\n benefit: 'automatic delta artifacts generation to minimize data transfer and improve the update delivery',\n requiredPlan: PLANS.enterprise.id\n },\n deviceConfiguration: { id: 'deviceConfiguration', benefit: 'device configuration features', requiredAddon: ADDONS.configure.id },\n deviceMonitor: { id: 'deviceMonitor', benefit: 'device monitoring features', requiredAddon: ADDONS.monitor.id, requiredPlan: PLANS.professional.id },\n deviceTroubleshoot: { id: 'deviceTroubleshoot', benefit: 'device troubleshooting features', requiredAddon: ADDONS.troubleshoot.id },\n dynamicGroups: { id: 'dynamicGroups', benefit: 'create dynamic groups to ease device management', requiredPlan: PLANS.enterprise.id },\n fullFiltering: { id: 'fullFiltering', benefit: 'filtering by multiple attributes to improve the device overview', requiredPlan: PLANS.professional.id },\n gateway: { id: 'gateway', benefit: 'see devices connected to your gateway device for easy access', requiredPlans: PLANS.professional.id },\n pausedDeployments: {\n id: 'pausedDeployments',\n benefit: 'granular control about update rollout to allow synchronization across your fleet',\n requiredPlan: PLANS.enterprise.id\n },\n phasedDeployments: { id: 'phasedDeployments', benefit: 'choose to roll out deployments in multiple phases', requiredPlan: PLANS.enterprise.id },\n rbac: { id: 'rbac', benefit: 'granular role based access control', requiredPlan: PLANS.enterprise.id },\n retryDeployments: { id: 'retryDeployments', benefit: 'optional retries for failed rollout attempts', requiredPlan: PLANS.professional.id },\n scheduledDeployments: {\n id: 'scheduledDeployments',\n benefit: 'scheduled deployments to steer the distribution of your updates.',\n requiredPlan: PLANS.professional.id\n },\n webhookEvents: {\n id: 'webhookEvents',\n benefit: 'receive inventory events and select which type(s) of events the webhook will receive',\n requiredPlan: PLANS.professional.id\n },\n\n default: { id: 'default', benefit: 'gain access to this feature', requiredPlan: PLANS.enterprise.id }\n} as const;\n\nexport const yes = () => true;\nexport const canAccess = yes;\n\nexport const DARK_MODE = 'dark';\nexport const LIGHT_MODE = 'light';\n"],"mappings":";AAaA,SAAS,YAAY,cAAc,mBAAmB,oBAAoB;AAE1E,IAAM,sBAAsB;AAAA,EAC1B,IAAI;AAAA,EACJ,cAAc;AAChB;AAEO,IAAM,aAAa;AAAA,EACxB,KAAK,EAAE,KAAK,OAAO,MAAM,aAAa;AAAA,EACtC,KAAK,EAAE,KAAK,OAAO,MAAM,aAAa;AACxC;AACO,IAAM,sBAAsB,EAAE,UAAU,IAAI,OAAO,IAAI,WAAW,WAAW,IAAI,KAAK,WAAW,gBAAgB;AACjH,IAAM,oBAAoB;AAC1B,IAAM,iBAAiB,CAAC,EAAE,GAAG,qBAAqB,OAAO,MAAM,WAAW,iBAAiB,MAAM,kBAAkB,CAAC;AAEpH,IAAM,oBAAoB;AAE1B,IAAM,YAAY;AAAA,EACvB,IAAI,EAAE,KAAK,MAAM,OAAO,MAAM,UAAU,sBAAsB;AAAA,EAC9D,IAAI,EAAE,KAAK,MAAM,OAAO,MAAM,UAAU,mBAAmB;AAC7D;AAkBO,IAAM,QAA2C;AAAA,EACtD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AS,sCAAsC,cAAc,MAAM,WAAW,GAAG;AAAA,EACrG,kBAAkB,EAAE,IAAI,oBAAoB,SAAS,gDAAgD,cAAc,MAAM,aAAa,GAAG;AAAA,EACzI,sBAAsB;AAAA,IACpB,IAAI;AAAA,IACJ,SAAS;AAAA,IACT,cAAc,MAAM,aAAa;AAAA,EACnC;AAAA,EACA,eAAe;AAAA,IACb,IAAI;AAAA,IACJ,SAAS;AAAA,IACT,cAAc,MAAM,aAAa;AAAA,EACnC;AAAA,EAEA,SAAS,EAAE,IAAI,WAAW,SAAS,+BAA+B,cAAc,MAAM,WAAW,GAAG;AACtG;AAEO,IAAM,MAAM,MAAM;AAClB,IAAM,YAAY;AAElB,IAAM,YAAY;AAClB,IAAM,aAAa;","names":[]}
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  actions_default
3
- } from "./chunk-URNS6A5T.js";
3
+ } from "./chunk-7PRZYHDP.js";
4
4
  import {
5
5
  releasesSlice_default
6
6
  } from "./chunk-OOICURFL.js";
@@ -12,15 +12,15 @@ import {
12
12
  actions,
13
13
  organizationSlice_default
14
14
  } from "./chunk-MZNANSS2.js";
15
+ import {
16
+ monitorSlice_default
17
+ } from "./chunk-PGFVHKP5.js";
15
18
  import {
16
19
  onboardingSlice_default
17
20
  } from "./chunk-VANBSJS5.js";
18
21
  import {
19
22
  deploymentsSlice_default
20
23
  } from "./chunk-VUFRP6P3.js";
21
- import {
22
- monitorSlice_default
23
- } from "./chunk-PGFVHKP5.js";
24
24
  import {
25
25
  appSlice_default
26
26
  } from "./chunk-6KGTHJKC.js";
@@ -139,4 +139,4 @@ export {
139
139
  useAppDispatch,
140
140
  createAppAsyncThunk
141
141
  };
142
- //# sourceMappingURL=chunk-CW5T6OGF.js.map
142
+ //# sourceMappingURL=chunk-MPYYSFPL.js.map
@@ -1,26 +1,24 @@
1
1
  import {
2
2
  getReleasesById
3
- } from "./chunk-X4GUACQO.js";
3
+ } from "./chunk-6XVREXI4.js";
4
4
  import {
5
5
  getCurrentUser,
6
6
  getGlobalSettings,
7
7
  getRolesById,
8
8
  getRolesList,
9
9
  getUserSettings
10
- } from "./chunk-ZRSYBSSY.js";
10
+ } from "./chunk-4E7ZSEFL.js";
11
11
  import {
12
12
  getAuditLogEntry,
13
13
  getIsServiceProvider,
14
14
  getOrganization
15
- } from "./chunk-4TUJPE6G.js";
15
+ } from "./chunk-YY6SKZDF.js";
16
+ import {
17
+ getIssueCountsByType
18
+ } from "./chunk-YO22XLHI.js";
16
19
  import {
17
20
  getOnboarding
18
21
  } from "./chunk-JIS4PA3R.js";
19
- import {
20
- getDeploymentsById,
21
- getDeploymentsSelectionState,
22
- getSelectedDeploymentDeviceIds
23
- } from "./chunk-JXQUFKID.js";
24
22
  import {
25
23
  getDeviceById,
26
24
  getDevicesById,
@@ -29,16 +27,18 @@ import {
29
27
  getListedDevices
30
28
  } from "./chunk-KJNNEDRV.js";
31
29
  import {
32
- getIssueCountsByType
33
- } from "./chunk-YO22XLHI.js";
30
+ getDeploymentsById,
31
+ getDeploymentsSelectionState,
32
+ getSelectedDeploymentDeviceIds
33
+ } from "./chunk-JXQUFKID.js";
34
34
  import {
35
35
  getFeatures,
36
36
  getSearchedDevices
37
- } from "./chunk-MBKAZVE3.js";
37
+ } from "./chunk-BYUPW7RA.js";
38
38
  import {
39
39
  listItemMapper,
40
40
  mapUserRolesToUiPermissions
41
- } from "./chunk-XWYJACQC.js";
41
+ } from "./chunk-QEKN5R7E.js";
42
42
  import {
43
43
  ALL_DEVICES,
44
44
  ATTRIBUTE_SCOPES,
@@ -59,7 +59,7 @@ import {
59
59
  ADDONS,
60
60
  PLANS,
61
61
  defaultReports
62
- } from "./chunk-OHF3YUXX.js";
62
+ } from "./chunk-HFOTAPIJ.js";
63
63
 
64
64
  // src/commonSelectors.ts
65
65
  import { attributeDuplicateFilter, getDemoDeviceAddress as getDemoDeviceAddressHelper } from "@northern.tech/utils/helpers";
@@ -289,4 +289,4 @@ export {
289
289
  getAuditlogDevice,
290
290
  getRelevantRoles
291
291
  };
292
- //# sourceMappingURL=chunk-IQG5I7AM.js.map
292
+ //# sourceMappingURL=chunk-NQIP7VFB.js.map
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk-2DYA3X77.js";
17
17
  import {
18
18
  DARK_MODE
19
- } from "./chunk-OHF3YUXX.js";
19
+ } from "./chunk-HFOTAPIJ.js";
20
20
 
21
21
  // src/utils.ts
22
22
  import { duplicateFilter, yes } from "@northern.tech/utils/helpers";
@@ -233,4 +233,4 @@ export {
233
233
  isDarkMode,
234
234
  parseSubscriptionPreview
235
235
  };
236
- //# sourceMappingURL=chunk-XWYJACQC.js.map
236
+ //# sourceMappingURL=chunk-QEKN5R7E.js.map
@@ -2,13 +2,13 @@ import {
2
2
  commonErrorFallback,
3
3
  commonErrorHandler,
4
4
  createAppAsyncThunk
5
- } from "./chunk-CW5T6OGF.js";
5
+ } from "./chunk-MPYYSFPL.js";
6
6
  import {
7
7
  general_api_default
8
8
  } from "./chunk-RS37Y2PQ.js";
9
9
  import {
10
10
  actions_default
11
- } from "./chunk-URNS6A5T.js";
11
+ } from "./chunk-7PRZYHDP.js";
12
12
  import {
13
13
  actions,
14
14
  sliceName
@@ -18,14 +18,14 @@ import {
18
18
  } from "./chunk-KC7SKI3U.js";
19
19
  import {
20
20
  getSearchEndpoint
21
- } from "./chunk-IQG5I7AM.js";
21
+ } from "./chunk-NQIP7VFB.js";
22
22
  import {
23
23
  getReleasesById
24
- } from "./chunk-X4GUACQO.js";
24
+ } from "./chunk-6XVREXI4.js";
25
25
  import {
26
26
  convertDeviceListStateToFilters,
27
27
  progress
28
- } from "./chunk-XWYJACQC.js";
28
+ } from "./chunk-QEKN5R7E.js";
29
29
  import {
30
30
  DEVICE_LIST_DEFAULTS,
31
31
  SORTING_OPTIONS,
@@ -408,4 +408,4 @@ export {
408
408
  getExistingReleaseTags,
409
409
  getUpdateTypes
410
410
  };
411
- //# sourceMappingURL=chunk-N2KLYPS5.js.map
411
+ //# sourceMappingURL=chunk-YWHRAPDQ.js.map
@@ -5,7 +5,7 @@ import {
5
5
  // src/organizationSlice/selectors.ts
6
6
  import { createSelector } from "@reduxjs/toolkit";
7
7
  import dayjs from "dayjs";
8
- import relativeTime from "dayjs/plugin/relativeTime";
8
+ import relativeTime from "dayjs/plugin/relativeTime.js";
9
9
  var getOrganization = (state) => state.organization.organization;
10
10
  var getExternalIntegrations = (state) => state.organization.externalDeviceIntegrations;
11
11
  var getAuditlogState = (state) => state.organization.auditlog.selectionState;
@@ -65,4 +65,4 @@ export {
65
65
  getAuditLogEntry,
66
66
  getHasCurrentPricing
67
67
  };
68
- //# sourceMappingURL=chunk-4TUJPE6G.js.map
68
+ //# sourceMappingURL=chunk-YY6SKZDF.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/organizationSlice/selectors.ts"],"sourcesContent":["// Copyright 2023 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 { createSelector } from '@reduxjs/toolkit';\nimport dayjs from 'dayjs';\nimport relativeTime from 'dayjs/plugin/relativeTime.js';\n\nimport { EXTERNAL_PROVIDER } from '../constants';\nimport type { RootState } from '../store';\n\nexport const getOrganization = (state: RootState) => state.organization.organization;\nexport const getExternalIntegrations = (state: RootState) => state.organization.externalDeviceIntegrations;\nexport const getAuditlogState = (state: RootState) => state.organization.auditlog.selectionState;\nexport const getAuditLog = (state: RootState) => state.organization.auditlog.events;\nexport const getAuditLogSelectionState = (state: RootState) => state.organization.auditlog.selectionState;\nexport const getBillingProfile = (state: RootState) => state.organization.organization.billing_profile;\nexport const getSubscription = (state: RootState) => state.organization.organization.subscription;\nexport const getCard = (state: RootState) => state.organization.card;\nexport const getSsoConfig = ({ organization: { ssoConfigs = [] } }: RootState) => ssoConfigs[0];\nexport const getTenantsList = (state: RootState) => state.organization.tenantList;\nexport const getWebhookEvents = (state: RootState) => state.organization.webhooks.events;\nexport const getWebhookEventTotal = (state: RootState) => state.organization.webhooks.eventsTotal;\n\nexport const getDeviceTwinIntegrations = createSelector([getExternalIntegrations], integrations =>\n integrations.filter(integration => integration.id && EXTERNAL_PROVIDER[integration.provider]?.deviceTwin)\n);\nexport const getIsServiceProvider = (state: RootState) => state.organization.organization.service_provider;\n\nexport const getWebhooks = createSelector([getExternalIntegrations], integrations =>\n integrations.filter(integration => integration.id && integration.provider === EXTERNAL_PROVIDER.webhook.provider)\n);\nexport const getWebhookEventInfo = createSelector([getWebhooks, getWebhookEvents, getWebhookEventTotal], (webhooks, events, eventTotal) =>\n webhooks.length ? { events, eventTotal } : { events: [], eventTotal: 0 }\n);\n\nexport const getAuditLogEntry = createSelector([getAuditLog, getAuditLogSelectionState], (events, { selectedId }) => {\n if (!selectedId) {\n return;\n }\n const [eventAction, eventTime] = atob(selectedId).split('|');\n return events.find(item => item.action === eventAction && item.time === eventTime);\n});\n\ndayjs.extend(relativeTime);\nconst newPricingIntroduction = dayjs('2025-06-03T00:00');\n\nexport const getHasCurrentPricing = createSelector(\n [getOrganization],\n ({ id }) => !!id && dayjs(parseInt(id.substring(0, 8), 16) * 1000) >= newPricingIntroduction\n);\n"],"mappings":";;;;;AAaA,SAAS,sBAAsB;AAC/B,OAAO,WAAW;AAClB,OAAO,kBAAkB;AAKlB,IAAM,kBAAkB,CAAC,UAAqB,MAAM,aAAa;AACjE,IAAM,0BAA0B,CAAC,UAAqB,MAAM,aAAa;AACzE,IAAM,mBAAmB,CAAC,UAAqB,MAAM,aAAa,SAAS;AAC3E,IAAM,cAAc,CAAC,UAAqB,MAAM,aAAa,SAAS;AACtE,IAAM,4BAA4B,CAAC,UAAqB,MAAM,aAAa,SAAS;AACpF,IA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AAA,EAClC,CAAC,eAAe;AAAA,EAChB,CAAC,EAAE,GAAG,MAAM,CAAC,CAAC,MAAM,MAAM,SAAS,GAAG,UAAU,GAAG,CAAC,GAAG,EAAE,IAAI,GAAI,KAAK;AACxE;","names":[]}
@@ -2,26 +2,26 @@ import {
2
2
  commonErrorFallback,
3
3
  commonErrorHandler,
4
4
  createAppAsyncThunk
5
- } from "./chunk-CW5T6OGF.js";
5
+ } from "./chunk-MPYYSFPL.js";
6
6
  import {
7
7
  general_api_default
8
8
  } from "./chunk-RS37Y2PQ.js";
9
9
  import {
10
10
  actions_default
11
- } from "./chunk-URNS6A5T.js";
11
+ } from "./chunk-7PRZYHDP.js";
12
12
  import {
13
13
  actions,
14
14
  sliceName
15
15
  } from "./chunk-PGFVHKP5.js";
16
16
  import {
17
17
  getSearchEndpoint
18
- } from "./chunk-IQG5I7AM.js";
18
+ } from "./chunk-NQIP7VFB.js";
19
19
  import {
20
20
  getDeviceFilters
21
21
  } from "./chunk-KJNNEDRV.js";
22
22
  import {
23
23
  convertDeviceListStateToFilters
24
- } from "./chunk-XWYJACQC.js";
24
+ } from "./chunk-QEKN5R7E.js";
25
25
  import {
26
26
  DEVICE_LIST_DEFAULTS,
27
27
  TIMEOUTS,
@@ -107,4 +107,4 @@ export {
107
107
  getDeviceMonitorConfig,
108
108
  changeNotificationSetting
109
109
  };
110
- //# sourceMappingURL=chunk-JUGE7L3K.js.map
110
+ //# sourceMappingURL=chunk-ZIUUV35J.js.map
@@ -12,9 +12,9 @@ import {
12
12
  timeUnits
13
13
  } from "./chunk-7C4SQBEE.js";
14
14
  import "./chunk-2DYA3X77.js";
15
- import "./chunk-ZKAH3APE.js";
16
15
  import "./chunk-FAJ3I2UQ.js";
17
- import "./chunk-OHF3YUXX.js";
16
+ import "./chunk-ZKAH3APE.js";
17
+ import "./chunk-HFOTAPIJ.js";
18
18
  export {
19
19
  DEVICE_LIST_MAXIMUM_LENGTH,
20
20
  DEVICE_ONLINE_CUTOFF,
@@ -867,7 +867,7 @@ var getOnboarding = (state) => state.onboarding;
867
867
  // src/organizationSlice/selectors.ts
868
868
  var import_toolkit4 = require("@reduxjs/toolkit");
869
869
  var import_dayjs = __toESM(require("dayjs"), 1);
870
- var import_relativeTime = __toESM(require("dayjs/plugin/relativeTime"), 1);
870
+ var import_relativeTime = __toESM(require("dayjs/plugin/relativeTime.js"), 1);
871
871
  var getOrganization = (state) => state.organization.organization;
872
872
  var getExternalIntegrations = (state) => state.organization.externalDeviceIntegrations;
873
873
  var getAuditLog = (state) => state.organization.auditlog.events;