@northern.tech/store 0.19.1 → 0.20.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 (151) hide show
  1. package/dist/actions.cjs +3 -0
  2. package/dist/actions.cjs.map +1 -1
  3. package/dist/actions.d.cts +2 -1
  4. package/dist/actions.d.ts +2 -1
  5. package/dist/actions.js +6 -6
  6. package/dist/api/general-api.js +2 -2
  7. package/dist/api/users-api.js +2 -2
  8. package/dist/appSlice/constants.cjs +11 -49
  9. package/dist/appSlice/constants.cjs.map +1 -1
  10. package/dist/appSlice/constants.d.cts +1 -16
  11. package/dist/appSlice/constants.d.ts +1 -16
  12. package/dist/appSlice/constants.js +1 -1
  13. package/dist/appSlice/index.js +2 -2
  14. package/dist/appSlice/mocks.js +2 -2
  15. package/dist/appSlice/thunks.cjs +30 -60
  16. package/dist/appSlice/thunks.cjs.map +1 -1
  17. package/dist/appSlice/thunks.js +17 -17
  18. package/dist/auth.js +2 -2
  19. package/dist/{chunk-QFYYTAYD.js → chunk-3JBVI4UH.js} +9 -9
  20. package/dist/{chunk-QL6FN2JC.js → chunk-4ZYLGBJU.js} +2 -2
  21. package/dist/{chunk-U5TPV5X5.js → chunk-7WIISD2N.js} +17 -14
  22. package/dist/{chunk-U5TPV5X5.js.map → chunk-7WIISD2N.js.map} +1 -1
  23. package/dist/{chunk-FUGCLQ5L.js → chunk-AY7E7VA6.js} +102 -28
  24. package/dist/chunk-AY7E7VA6.js.map +1 -0
  25. package/dist/{chunk-EL672W25.js → chunk-DBBE6D36.js} +12 -50
  26. package/dist/chunk-DBBE6D36.js.map +1 -0
  27. package/dist/{chunk-GBXG2XBY.js → chunk-E657OJL4.js} +6 -6
  28. package/dist/{chunk-MZ5NRW3K.js → chunk-FXKMYYK5.js} +17 -17
  29. package/dist/{chunk-KJHHSYGP.js → chunk-P3N2J3QT.js} +10 -10
  30. package/dist/{chunk-GEQ2QQEE.js → chunk-PL6RIFD5.js} +2 -2
  31. package/dist/{chunk-VCEFZTWS.js → chunk-TIL2S3JA.js} +4 -1
  32. package/dist/chunk-TIL2S3JA.js.map +1 -0
  33. package/dist/{chunk-C3EMLDPU.js → chunk-V6BWOIRC.js} +6 -6
  34. package/dist/{chunk-O7DR57RN.js → chunk-ZGRY42BZ.js} +9 -12
  35. package/dist/{chunk-O7DR57RN.js.map → chunk-ZGRY42BZ.js.map} +1 -1
  36. package/dist/{chunk-3NOV7X4M.js → chunk-ZZQJWNQT.js} +3 -1
  37. package/dist/chunk-ZZQJWNQT.js.map +1 -0
  38. package/dist/commonConstants.js +2 -2
  39. package/dist/commonSelectors.cjs +19 -60
  40. package/dist/commonSelectors.cjs.map +1 -1
  41. package/dist/commonSelectors.js +9 -9
  42. package/dist/constants.cjs +11 -49
  43. package/dist/constants.cjs.map +1 -1
  44. package/dist/constants.js +2 -2
  45. package/dist/deploymentsSlice/constants.js +2 -2
  46. package/dist/deploymentsSlice/index.js +2 -2
  47. package/dist/deploymentsSlice/mocks.js +2 -2
  48. package/dist/deploymentsSlice/selectors.js +2 -2
  49. package/dist/deploymentsSlice/thunks.cjs +30 -60
  50. package/dist/deploymentsSlice/thunks.cjs.map +1 -1
  51. package/dist/deploymentsSlice/thunks.js +17 -17
  52. package/dist/devicesSlice/constants.js +2 -2
  53. package/dist/devicesSlice/index.js +2 -2
  54. package/dist/devicesSlice/mocks.js +2 -2
  55. package/dist/devicesSlice/selectors.cjs +8 -11
  56. package/dist/devicesSlice/selectors.cjs.map +1 -1
  57. package/dist/devicesSlice/selectors.js +3 -3
  58. package/dist/devicesSlice/thunks.cjs +32 -60
  59. package/dist/devicesSlice/thunks.cjs.map +1 -1
  60. package/dist/devicesSlice/thunks.d.cts +41 -3
  61. package/dist/devicesSlice/thunks.d.ts +41 -3
  62. package/dist/devicesSlice/thunks.js +19 -17
  63. package/dist/liststatehook.js +2 -2
  64. package/dist/locationutils.js +2 -2
  65. package/dist/monitorSlice/index.js +2 -2
  66. package/dist/monitorSlice/mocks.js +2 -2
  67. package/dist/monitorSlice/thunks.cjs +22 -60
  68. package/dist/monitorSlice/thunks.cjs.map +1 -1
  69. package/dist/monitorSlice/thunks.js +15 -15
  70. package/dist/onboardingSlice/thunks.cjs +30 -60
  71. package/dist/onboardingSlice/thunks.cjs.map +1 -1
  72. package/dist/onboardingSlice/thunks.js +17 -17
  73. package/dist/organizationSlice/constants.js +2 -2
  74. package/dist/organizationSlice/index.cjs +3 -0
  75. package/dist/organizationSlice/index.cjs.map +1 -1
  76. package/dist/organizationSlice/index.d.cts +4 -1
  77. package/dist/organizationSlice/index.d.ts +4 -1
  78. package/dist/organizationSlice/index.js +3 -3
  79. package/dist/organizationSlice/mocks.cjs +175 -0
  80. package/dist/organizationSlice/mocks.cjs.map +1 -1
  81. package/dist/organizationSlice/mocks.d.cts +121 -2
  82. package/dist/organizationSlice/mocks.d.ts +121 -2
  83. package/dist/organizationSlice/mocks.js +88 -3
  84. package/dist/organizationSlice/mocks.js.map +1 -1
  85. package/dist/organizationSlice/selectors.cjs +3 -0
  86. package/dist/organizationSlice/selectors.cjs.map +1 -1
  87. package/dist/organizationSlice/selectors.d.cts +3 -2
  88. package/dist/organizationSlice/selectors.d.ts +3 -2
  89. package/dist/organizationSlice/selectors.js +5 -3
  90. package/dist/organizationSlice/thunks.cjs +113 -75
  91. package/dist/organizationSlice/thunks.cjs.map +1 -1
  92. package/dist/organizationSlice/thunks.d.cts +17 -3
  93. package/dist/organizationSlice/thunks.d.ts +17 -3
  94. package/dist/organizationSlice/thunks.js +23 -19
  95. package/dist/organizationSlice/types.cjs.map +1 -1
  96. package/dist/organizationSlice/types.d.cts +30 -7
  97. package/dist/organizationSlice/types.d.ts +30 -7
  98. package/dist/releasesSlice/index.js +2 -2
  99. package/dist/releasesSlice/mocks.js +2 -2
  100. package/dist/releasesSlice/selectors.cjs.map +1 -1
  101. package/dist/releasesSlice/selectors.js +4 -4
  102. package/dist/releasesSlice/thunks.cjs +22 -60
  103. package/dist/releasesSlice/thunks.cjs.map +1 -1
  104. package/dist/releasesSlice/thunks.js +15 -15
  105. package/dist/selectors.cjs +22 -60
  106. package/dist/selectors.cjs.map +1 -1
  107. package/dist/selectors.d.cts +1 -1
  108. package/dist/selectors.d.ts +1 -1
  109. package/dist/selectors.js +39 -37
  110. package/dist/sockethook.js +2 -2
  111. package/dist/store.cjs +3 -0
  112. package/dist/store.cjs.map +1 -1
  113. package/dist/store.js +7 -7
  114. package/dist/storehooks.cjs +109 -74
  115. package/dist/storehooks.cjs.map +1 -1
  116. package/dist/storehooks.js +24 -22
  117. package/dist/storehooks.js.map +1 -1
  118. package/dist/thunks.cjs +113 -73
  119. package/dist/thunks.cjs.map +1 -1
  120. package/dist/thunks.d.cts +2 -2
  121. package/dist/thunks.d.ts +2 -2
  122. package/dist/thunks.js +23 -17
  123. package/dist/useDeploymentDevice.cjs +30 -60
  124. package/dist/useDeploymentDevice.cjs.map +1 -1
  125. package/dist/useDeploymentDevice.js +19 -19
  126. package/dist/usersSlice/constants.js +2 -2
  127. package/dist/usersSlice/index.js +2 -2
  128. package/dist/usersSlice/mocks.js +2 -2
  129. package/dist/usersSlice/selectors.cjs +11 -49
  130. package/dist/usersSlice/selectors.cjs.map +1 -1
  131. package/dist/usersSlice/selectors.js +4 -4
  132. package/dist/usersSlice/thunks.cjs +30 -60
  133. package/dist/usersSlice/thunks.cjs.map +1 -1
  134. package/dist/usersSlice/thunks.js +17 -17
  135. package/dist/utils.cjs +26 -61
  136. package/dist/utils.cjs.map +1 -1
  137. package/dist/utils.d.cts +1 -3
  138. package/dist/utils.d.ts +1 -3
  139. package/dist/utils.js +3 -3
  140. package/package.json +3 -3
  141. package/dist/chunk-3NOV7X4M.js.map +0 -1
  142. package/dist/chunk-EL672W25.js.map +0 -1
  143. package/dist/chunk-FUGCLQ5L.js.map +0 -1
  144. package/dist/chunk-VCEFZTWS.js.map +0 -1
  145. /package/dist/{chunk-QFYYTAYD.js.map → chunk-3JBVI4UH.js.map} +0 -0
  146. /package/dist/{chunk-QL6FN2JC.js.map → chunk-4ZYLGBJU.js.map} +0 -0
  147. /package/dist/{chunk-GBXG2XBY.js.map → chunk-E657OJL4.js.map} +0 -0
  148. /package/dist/{chunk-MZ5NRW3K.js.map → chunk-FXKMYYK5.js.map} +0 -0
  149. /package/dist/{chunk-KJHHSYGP.js.map → chunk-P3N2J3QT.js.map} +0 -0
  150. /package/dist/{chunk-GEQ2QQEE.js.map → chunk-PL6RIFD5.js.map} +0 -0
  151. /package/dist/{chunk-C3EMLDPU.js.map → chunk-V6BWOIRC.js.map} +0 -0
@@ -120,10 +120,34 @@ declare const addStaticGroup: _reduxjs_toolkit.AsyncThunk<[_reduxjs_toolkit.Payl
120
120
  fulfilledMeta?: unknown;
121
121
  rejectedMeta?: unknown;
122
122
  }>;
123
+ declare const removeReportsByGroupName: _reduxjs_toolkit.AsyncThunk<void | undefined, string, {
124
+ dispatch: AppDispatch;
125
+ state: RootState;
126
+ extra?: unknown;
127
+ rejectValue?: unknown;
128
+ serializedErrorType?: unknown;
129
+ pendingMeta?: unknown;
130
+ fulfilledMeta?: unknown;
131
+ rejectedMeta?: unknown;
132
+ }>;
123
133
  declare const removeStaticGroup: _reduxjs_toolkit.AsyncThunk<[{
124
134
  payload: string;
125
135
  type: "devices/removeGroup";
126
- }, _reduxjs_toolkit.PayloadAction<any, string, {
136
+ }, _reduxjs_toolkit.PayloadAction<unknown, string, {
137
+ arg: string;
138
+ requestId: string;
139
+ requestStatus: "rejected";
140
+ aborted: boolean;
141
+ condition: boolean;
142
+ } & ({
143
+ rejectedWithValue: true;
144
+ } | ({
145
+ rejectedWithValue: false;
146
+ } & {})), _reduxjs_toolkit.SerializedError> | _reduxjs_toolkit.PayloadAction<void | undefined, string, {
147
+ arg: string;
148
+ requestId: string;
149
+ requestStatus: "fulfilled";
150
+ }, never>, _reduxjs_toolkit.PayloadAction<any, string, {
127
151
  arg: void;
128
152
  requestId: string;
129
153
  requestStatus: "fulfilled";
@@ -215,7 +239,21 @@ declare const updateDynamicGroup: _reduxjs_toolkit.AsyncThunk<any, {
215
239
  declare const removeDynamicGroup: _reduxjs_toolkit.AsyncThunk<[{
216
240
  payload: string;
217
241
  type: "devices/removeGroup";
218
- }, {
242
+ }, _reduxjs_toolkit.PayloadAction<unknown, string, {
243
+ arg: string;
244
+ requestId: string;
245
+ requestStatus: "rejected";
246
+ aborted: boolean;
247
+ condition: boolean;
248
+ } & ({
249
+ rejectedWithValue: true;
250
+ } | ({
251
+ rejectedWithValue: false;
252
+ } & {})), _reduxjs_toolkit.SerializedError> | _reduxjs_toolkit.PayloadAction<void | undefined, string, {
253
+ arg: string;
254
+ requestId: string;
255
+ requestStatus: "fulfilled";
256
+ }, never>, {
219
257
  payload: string | SnackbarContent;
220
258
  type: "app/setSnackbar";
221
259
  }], string, {
@@ -798,4 +836,4 @@ declare const getGatewayDevices: _reduxjs_toolkit.AsyncThunk<any[], string, {
798
836
  rejectedMeta?: unknown;
799
837
  }>;
800
838
 
801
- export { addDevicesToGroup, addDynamicGroup, addStaticGroup, applyDeviceConfig, decommissionDevice, deleteAuthset, deviceFileUpload, getAllDeviceCounts, getAllDevicesByStatus, getAllDynamicGroupDevices, getAllGroupDevices, getDeviceAttributes, getDeviceAuth, getDeviceById, getDeviceConfig, getDeviceConnect, getDeviceFileDownloadLink, getDeviceInfo, getDeviceLimits, getDeviceTwin, getDevicesByStatus, getDevicesWithAuth, getDynamicGroups, getGatewayDevices, getGroupDevices, getGroups, getReportDataWithoutBackendSupport, getSessionDetails, getSystemDevices, preauthDevice, removeDevicesFromGroup, removeDynamicGroup, removeStaticGroup, searchDevices, selectGroup, setDeviceConfig, setDeviceListState, setDeviceTags, setDeviceTwin, triggerDeviceUpdate, updateDeviceAuth, updateDevicesAuth, updateDynamicGroup, updateReportData };
839
+ export { addDevicesToGroup, addDynamicGroup, addStaticGroup, applyDeviceConfig, decommissionDevice, deleteAuthset, deviceFileUpload, getAllDeviceCounts, getAllDevicesByStatus, getAllDynamicGroupDevices, getAllGroupDevices, getDeviceAttributes, getDeviceAuth, getDeviceById, getDeviceConfig, getDeviceConnect, getDeviceFileDownloadLink, getDeviceInfo, getDeviceLimits, getDeviceTwin, getDevicesByStatus, getDevicesWithAuth, getDynamicGroups, getGatewayDevices, getGroupDevices, getGroups, getReportDataWithoutBackendSupport, getSessionDetails, getSystemDevices, preauthDevice, removeDevicesFromGroup, removeDynamicGroup, removeReportsByGroupName, removeStaticGroup, searchDevices, selectGroup, setDeviceConfig, setDeviceListState, setDeviceTags, setDeviceTwin, triggerDeviceUpdate, updateDeviceAuth, updateDevicesAuth, updateDynamicGroup, updateReportData };
@@ -120,10 +120,34 @@ declare const addStaticGroup: _reduxjs_toolkit.AsyncThunk<[_reduxjs_toolkit.Payl
120
120
  fulfilledMeta?: unknown;
121
121
  rejectedMeta?: unknown;
122
122
  }>;
123
+ declare const removeReportsByGroupName: _reduxjs_toolkit.AsyncThunk<void | undefined, string, {
124
+ dispatch: AppDispatch;
125
+ state: RootState;
126
+ extra?: unknown;
127
+ rejectValue?: unknown;
128
+ serializedErrorType?: unknown;
129
+ pendingMeta?: unknown;
130
+ fulfilledMeta?: unknown;
131
+ rejectedMeta?: unknown;
132
+ }>;
123
133
  declare const removeStaticGroup: _reduxjs_toolkit.AsyncThunk<[{
124
134
  payload: string;
125
135
  type: "devices/removeGroup";
126
- }, _reduxjs_toolkit.PayloadAction<any, string, {
136
+ }, _reduxjs_toolkit.PayloadAction<unknown, string, {
137
+ arg: string;
138
+ requestId: string;
139
+ requestStatus: "rejected";
140
+ aborted: boolean;
141
+ condition: boolean;
142
+ } & ({
143
+ rejectedWithValue: true;
144
+ } | ({
145
+ rejectedWithValue: false;
146
+ } & {})), _reduxjs_toolkit.SerializedError> | _reduxjs_toolkit.PayloadAction<void | undefined, string, {
147
+ arg: string;
148
+ requestId: string;
149
+ requestStatus: "fulfilled";
150
+ }, never>, _reduxjs_toolkit.PayloadAction<any, string, {
127
151
  arg: void;
128
152
  requestId: string;
129
153
  requestStatus: "fulfilled";
@@ -215,7 +239,21 @@ declare const updateDynamicGroup: _reduxjs_toolkit.AsyncThunk<any, {
215
239
  declare const removeDynamicGroup: _reduxjs_toolkit.AsyncThunk<[{
216
240
  payload: string;
217
241
  type: "devices/removeGroup";
218
- }, {
242
+ }, _reduxjs_toolkit.PayloadAction<unknown, string, {
243
+ arg: string;
244
+ requestId: string;
245
+ requestStatus: "rejected";
246
+ aborted: boolean;
247
+ condition: boolean;
248
+ } & ({
249
+ rejectedWithValue: true;
250
+ } | ({
251
+ rejectedWithValue: false;
252
+ } & {})), _reduxjs_toolkit.SerializedError> | _reduxjs_toolkit.PayloadAction<void | undefined, string, {
253
+ arg: string;
254
+ requestId: string;
255
+ requestStatus: "fulfilled";
256
+ }, never>, {
219
257
  payload: string | SnackbarContent;
220
258
  type: "app/setSnackbar";
221
259
  }], string, {
@@ -798,4 +836,4 @@ declare const getGatewayDevices: _reduxjs_toolkit.AsyncThunk<any[], string, {
798
836
  rejectedMeta?: unknown;
799
837
  }>;
800
838
 
801
- export { addDevicesToGroup, addDynamicGroup, addStaticGroup, applyDeviceConfig, decommissionDevice, deleteAuthset, deviceFileUpload, getAllDeviceCounts, getAllDevicesByStatus, getAllDynamicGroupDevices, getAllGroupDevices, getDeviceAttributes, getDeviceAuth, getDeviceById, getDeviceConfig, getDeviceConnect, getDeviceFileDownloadLink, getDeviceInfo, getDeviceLimits, getDeviceTwin, getDevicesByStatus, getDevicesWithAuth, getDynamicGroups, getGatewayDevices, getGroupDevices, getGroups, getReportDataWithoutBackendSupport, getSessionDetails, getSystemDevices, preauthDevice, removeDevicesFromGroup, removeDynamicGroup, removeStaticGroup, searchDevices, selectGroup, setDeviceConfig, setDeviceListState, setDeviceTags, setDeviceTwin, triggerDeviceUpdate, updateDeviceAuth, updateDevicesAuth, updateDynamicGroup, updateReportData };
839
+ export { addDevicesToGroup, addDynamicGroup, addStaticGroup, applyDeviceConfig, decommissionDevice, deleteAuthset, deviceFileUpload, getAllDeviceCounts, getAllDevicesByStatus, getAllDynamicGroupDevices, getAllGroupDevices, getDeviceAttributes, getDeviceAuth, getDeviceById, getDeviceConfig, getDeviceConnect, getDeviceFileDownloadLink, getDeviceInfo, getDeviceLimits, getDeviceTwin, getDevicesByStatus, getDevicesWithAuth, getDynamicGroups, getGatewayDevices, getGroupDevices, getGroups, getReportDataWithoutBackendSupport, getSessionDetails, getSystemDevices, preauthDevice, removeDevicesFromGroup, removeDynamicGroup, removeReportsByGroupName, removeStaticGroup, searchDevices, selectGroup, setDeviceConfig, setDeviceListState, setDeviceTags, setDeviceTwin, triggerDeviceUpdate, updateDeviceAuth, updateDevicesAuth, updateDynamicGroup, updateReportData };
@@ -31,6 +31,7 @@ import {
31
31
  preauthDevice,
32
32
  removeDevicesFromGroup,
33
33
  removeDynamicGroup,
34
+ removeReportsByGroupName,
34
35
  removeStaticGroup,
35
36
  searchDevices,
36
37
  selectGroup,
@@ -43,39 +44,39 @@ import {
43
44
  updateDevicesAuth,
44
45
  updateDynamicGroup,
45
46
  updateReportData
46
- } from "../chunk-FUGCLQ5L.js";
47
- import "../chunk-GBXG2XBY.js";
48
- import "../chunk-C3EMLDPU.js";
49
- import "../chunk-KJHHSYGP.js";
47
+ } from "../chunk-AY7E7VA6.js";
48
+ import "../chunk-E657OJL4.js";
49
+ import "../chunk-V6BWOIRC.js";
50
+ import "../chunk-P3N2J3QT.js";
50
51
  import "../chunk-XJLZK4QY.js";
51
52
  import "../chunk-IRQRV552.js";
52
- import "../chunk-QFYYTAYD.js";
53
+ import "../chunk-3JBVI4UH.js";
54
+ import "../chunk-CQXDAXQF.js";
53
55
  import "../chunk-YR65C62H.js";
54
- import "../chunk-VODRLEDP.js";
55
56
  import "../chunk-TRKA7XYU.js";
56
- import "../chunk-CQXDAXQF.js";
57
- import "../chunk-VCEFZTWS.js";
58
57
  import "../chunk-PVCHKW35.js";
58
+ import "../chunk-TIL2S3JA.js";
59
+ import "../chunk-VODRLEDP.js";
59
60
  import "../chunk-6WJI4MOP.js";
60
61
  import "../chunk-OLKM53RL.js";
61
62
  import "../chunk-UVTLZV34.js";
62
63
  import "../chunk-53W2NRSL.js";
63
64
  import "../chunk-NMAXZ3ZY.js";
64
- import "../chunk-MZ5NRW3K.js";
65
- import "../chunk-QL6FN2JC.js";
66
- import "../chunk-O7DR57RN.js";
67
- import "../chunk-GEQ2QQEE.js";
65
+ import "../chunk-FXKMYYK5.js";
68
66
  import "../chunk-JIS4PA3R.js";
69
- import "../chunk-3NOV7X4M.js";
70
- import "../chunk-WR6RQKF5.js";
67
+ import "../chunk-4ZYLGBJU.js";
68
+ import "../chunk-PL6RIFD5.js";
71
69
  import "../chunk-YO22XLHI.js";
70
+ import "../chunk-ZZQJWNQT.js";
71
+ import "../chunk-WR6RQKF5.js";
72
+ import "../chunk-ZGRY42BZ.js";
72
73
  import "../chunk-4BHM6WVX.js";
73
- import "../chunk-U5TPV5X5.js";
74
+ import "../chunk-7WIISD2N.js";
74
75
  import "../chunk-WWED74SG.js";
75
76
  import "../chunk-2DYA3X77.js";
76
- import "../chunk-ZKAH3APE.js";
77
77
  import "../chunk-FAJ3I2UQ.js";
78
- import "../chunk-EL672W25.js";
78
+ import "../chunk-ZKAH3APE.js";
79
+ import "../chunk-DBBE6D36.js";
79
80
  export {
80
81
  addDevicesToGroup,
81
82
  addDynamicGroup,
@@ -109,6 +110,7 @@ export {
109
110
  preauthDevice,
110
111
  removeDevicesFromGroup,
111
112
  removeDynamicGroup,
113
+ removeReportsByGroupName,
112
114
  removeStaticGroup,
113
115
  searchDevices,
114
116
  selectGroup,
@@ -18,9 +18,9 @@ import {
18
18
  } from "./chunk-53W2NRSL.js";
19
19
  import "./chunk-WWED74SG.js";
20
20
  import "./chunk-2DYA3X77.js";
21
- import "./chunk-ZKAH3APE.js";
22
21
  import "./chunk-FAJ3I2UQ.js";
23
- import "./chunk-EL672W25.js";
22
+ import "./chunk-ZKAH3APE.js";
23
+ import "./chunk-DBBE6D36.js";
24
24
 
25
25
  // src/liststatehook.ts
26
26
  import { useCallback, useMemo } from "react";
@@ -20,9 +20,9 @@ import {
20
20
  } from "./chunk-53W2NRSL.js";
21
21
  import "./chunk-WWED74SG.js";
22
22
  import "./chunk-2DYA3X77.js";
23
- import "./chunk-ZKAH3APE.js";
24
23
  import "./chunk-FAJ3I2UQ.js";
25
- import "./chunk-EL672W25.js";
24
+ import "./chunk-ZKAH3APE.js";
25
+ import "./chunk-DBBE6D36.js";
26
26
  export {
27
27
  commonProcessor,
28
28
  formatAuditlogs,
@@ -7,9 +7,9 @@ import {
7
7
  } from "../chunk-PVCHKW35.js";
8
8
  import "../chunk-WWED74SG.js";
9
9
  import "../chunk-2DYA3X77.js";
10
- import "../chunk-ZKAH3APE.js";
11
10
  import "../chunk-FAJ3I2UQ.js";
12
- import "../chunk-EL672W25.js";
11
+ import "../chunk-ZKAH3APE.js";
12
+ import "../chunk-DBBE6D36.js";
13
13
  export {
14
14
  actions,
15
15
  monitorSlice_default as default,
@@ -6,9 +6,9 @@ import {
6
6
  DEVICE_LIST_DEFAULTS
7
7
  } from "../chunk-WWED74SG.js";
8
8
  import "../chunk-2DYA3X77.js";
9
- import "../chunk-ZKAH3APE.js";
10
9
  import "../chunk-FAJ3I2UQ.js";
11
- import "../chunk-EL672W25.js";
10
+ import "../chunk-ZKAH3APE.js";
11
+ import "../chunk-DBBE6D36.js";
12
12
 
13
13
  // src/monitorSlice/mocks.ts
14
14
  var mockState = {
@@ -47,10 +47,6 @@ var import_constants3 = require("@northern.tech/utils/constants");
47
47
  // src/appSlice/constants.ts
48
48
  var import_icons_material = require("@mui/icons-material");
49
49
  var import_utils = require("@northern.tech/utils");
50
- var startingDeviceCount = {
51
- os: "for first 50 devices",
52
- professional: "for first 250 devices"
53
- };
54
50
  var chartTypes = {
55
51
  bar: { key: "bar", Icon: import_icons_material.BarChart },
56
52
  pie: { key: "pie", Icon: import_icons_material.PieChartOutline }
@@ -62,82 +58,48 @@ var PLANS = {
62
58
  os: {
63
59
  id: "os",
64
60
  name: "Basic",
65
- minimalDeviceCount: { standard: 50, micro: 100 },
66
- offer: true,
67
- price: "$34 / month",
68
- deviceCount: startingDeviceCount.os,
69
- description: "The core features of Mender. To continue using Enterprise Trial features\u2014like Delta updates, scheduled deployments, phased rollouts, device filtering, dynamic groups, RBAC, audit logs, and more\u2014please upgrade to a higher plan.",
70
- features: ["Access to core features of Mender", "Basic support"]
61
+ description: "The core features of Mender. To continue using Enterprise Trial features\u2014like Delta updates, scheduled deployments, phased rollouts, device filtering, dynamic groups, RBAC, audit logs, and more\u2014please upgrade to a higher plan."
71
62
  },
72
63
  professional: {
73
64
  id: "professional",
74
65
  name: "Professional",
75
- minimalDeviceCount: { standard: 250, micro: 500 },
76
- offer: true,
77
- price: "$291 / month",
78
- deviceCount: startingDeviceCount.professional,
79
- description: "Everything in Basic, plus enhanced update management and automation features.",
80
- features: ["Advanced OTA features", "Higher priority support"]
66
+ description: "Everything in Basic, plus enhanced update management and automation features."
81
67
  },
82
68
  enterprise: {
83
69
  id: "enterprise",
84
70
  name: "Enterprise",
85
- minimalDeviceCount: { standard: 1e3, micro: 2e3 },
86
- price: "Custom pricing",
87
- deviceCount: "Unlimited devices",
88
- description: "Every advanced feature of Mender, tailored for complex and large-scale deployments. Not available as a monthly subscription \u2014 ask us for a quote.",
89
- features: ["All Mender features", "Advanced security features", "SLA-backed support"]
71
+ description: "Every advanced feature of Mender, tailored for complex and large-scale deployments. Not available as a monthly subscription \u2014 ask us for a quote."
90
72
  }
91
73
  };
92
74
  var ADDONS = {
93
75
  configure: {
94
76
  id: "configure",
95
77
  title: "Configure",
96
- description: "Expand your plan with device configuration features",
78
+ description: "Seamlessly configure applications and devices remotely \u2013 configure each device to its environment.",
97
79
  needs: ["hasDeviceConfig"],
98
- os: {
99
- price: "$11/month",
100
- deviceCount: startingDeviceCount.os
101
- },
102
- professional: {
103
- price: "$65/month",
104
- deviceCount: startingDeviceCount.professional
105
- },
106
80
  eligible: ["os", "professional", "enterprise"]
107
81
  },
108
82
  monitor: {
109
83
  id: "monitor",
110
84
  title: "Monitor",
111
- description: "Expand your plan with device monitoring features",
85
+ description: "Detect and analyze health issues of devices, services and applications. Set up alerts so you can act quickly.",
112
86
  needs: ["hasMonitor"],
113
- os: {
114
- price: "-",
115
- deviceCount: "-"
116
- },
117
- professional: {
118
- price: "$86/month",
119
- deviceCount: startingDeviceCount.professional
120
- },
121
87
  eligible: ["professional", "enterprise"]
122
88
  },
123
89
  troubleshoot: {
124
90
  id: "troubleshoot",
125
91
  title: "Troubleshoot",
126
- description: "Expand your plan with device troubleshooting features",
92
+ description: "Secure, remote access to your devices \u2013 quickly diagnose and fix issues in real time.",
127
93
  needs: ["hasDeviceConnect"],
128
- os: {
129
- price: "$27/month",
130
- deviceCount: startingDeviceCount.os
131
- },
132
- professional: {
133
- price: "$72/month",
134
- deviceCount: startingDeviceCount.professional
135
- },
136
94
  eligible: ["os", "professional", "enterprise"]
137
95
  }
138
96
  };
139
97
  var BENEFITS = {
140
- auditlog: { id: "auditlog", benefit: "trace change across your devices and access troubleshooting session replay", requiredPlan: PLANS.professional.id },
98
+ auditlog: {
99
+ id: "auditlog",
100
+ benefit: "gain access to logs for important events such as changes to devices, deployments and user management, as well as remote terminal session replays",
101
+ requiredPlan: PLANS.enterprise.id
102
+ },
141
103
  dashboard: { id: "dashboard", benefit: "actionable insights into the devices you are updating with Mender", requiredPlan: PLANS.enterprise.id },
142
104
  deltaGeneration: {
143
105
  id: "deltaGeneration",
@@ -1336,6 +1298,9 @@ var organizationSlice = (0, import_toolkit6.createSlice)({
1336
1298
  setSubscription: (state, action) => {
1337
1299
  state.organization.subscription = { ...state.organization.subscription, ...action.payload };
1338
1300
  },
1301
+ setProducts: (state, action) => {
1302
+ state.products = action.payload;
1303
+ },
1339
1304
  setBillingProfile: (state, action) => {
1340
1305
  state.organization.billing_profile = action.payload;
1341
1306
  },
@@ -1898,17 +1863,14 @@ var getAttributesList = (0, import_toolkit11.createSelector)(
1898
1863
  [getFilteringAttributes, getFilteringAttributesFromConfig],
1899
1864
  ({ identityAttributes = [], inventoryAttributes = [] }, { identity = [], inventory = [] }) => [...identityAttributes, ...inventoryAttributes, ...identity, ...inventory].filter(import_helpers3.duplicateFilter)
1900
1865
  );
1901
- var getDeviceLimitStats = (0, import_toolkit11.createSelector)(
1902
- [getDeviceLimits, getAcceptedDevices],
1903
- (limits, accepted) => {
1904
- const { counts } = accepted;
1905
- return Object.entries(limits).filter(([, limit]) => limit !== 0).map(([type, limit]) => ({
1906
- type,
1907
- limit,
1908
- total: counts[type] || 0
1909
- }));
1910
- }
1911
- );
1866
+ var getDeviceLimitStats = (0, import_toolkit11.createSelector)([getDeviceLimits, getAcceptedDevices], (limits, accepted) => {
1867
+ const { counts } = accepted;
1868
+ return Object.entries(limits).filter(([, limit]) => limit !== 0).map(([type, limit]) => ({
1869
+ type,
1870
+ limit,
1871
+ total: counts[type] || 0
1872
+ }));
1873
+ });
1912
1874
  var getDeviceTypes = (0, import_toolkit11.createSelector)(
1913
1875
  [getAcceptedDevices, getDevicesById],
1914
1876
  ({ deviceIds = [] }, devicesById) => Object.keys(