@northern.tech/store 0.3.1 → 0.3.3

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 (197) hide show
  1. package/dist/actions.cjs +20 -17
  2. package/dist/actions.cjs.map +1 -1
  3. package/dist/actions.js +8 -8
  4. package/dist/api/general-api.js +2 -2
  5. package/dist/api/types/Tenant.ts +17 -12
  6. package/dist/api/users-api.js +2 -2
  7. package/dist/appSlice/constants.cjs +18 -10
  8. package/dist/appSlice/constants.cjs.map +1 -1
  9. package/dist/appSlice/constants.d.cts +41 -84
  10. package/dist/appSlice/constants.d.ts +41 -84
  11. package/dist/appSlice/constants.js +1 -1
  12. package/dist/appSlice/index.js +2 -2
  13. package/dist/appSlice/thunks.cjs +140 -96
  14. package/dist/appSlice/thunks.cjs.map +1 -1
  15. package/dist/appSlice/thunks.js +19 -19
  16. package/dist/auth.js +2 -2
  17. package/dist/{chunk-Q6M5TTDQ.js → chunk-2CYOM4BK.js} +1 -1
  18. package/dist/chunk-2CYOM4BK.js.map +1 -0
  19. package/dist/{chunk-APHL4JZP.js → chunk-2JHFUQ6B.js} +141 -102
  20. package/dist/chunk-2JHFUQ6B.js.map +1 -0
  21. package/dist/{chunk-YETZPQFR.js → chunk-4XJMRVFI.js} +12 -11
  22. package/dist/chunk-4XJMRVFI.js.map +1 -0
  23. package/dist/{chunk-RX55KAKX.js → chunk-7JKWI5FK.js} +2 -2
  24. package/dist/{chunk-A6CT6GTI.js → chunk-C5NEDBJI.js} +17 -11
  25. package/dist/chunk-C5NEDBJI.js.map +1 -0
  26. package/dist/{chunk-NNADGHSL.js → chunk-DAPAXWA5.js} +8 -8
  27. package/dist/{chunk-ANB5BM5J.js → chunk-DCK2DBOA.js} +27 -20
  28. package/dist/chunk-DCK2DBOA.js.map +1 -0
  29. package/dist/{chunk-E5LEU5PF.js → chunk-HPBE6KYY.js} +2 -2
  30. package/dist/{chunk-2RJIDREZ.js → chunk-LEMVXAYP.js} +25 -16
  31. package/dist/chunk-LEMVXAYP.js.map +1 -0
  32. package/dist/{chunk-NI4SZOCF.js → chunk-LGNOTPUG.js} +9 -9
  33. package/dist/{chunk-MDC7Y3EX.js → chunk-LTKOV26W.js} +22 -20
  34. package/dist/chunk-LTKOV26W.js.map +1 -0
  35. package/dist/{chunk-YTQUNAZP.js → chunk-QRGTG4YB.js} +2 -2
  36. package/dist/{chunk-XTRPX7JZ.js → chunk-TI2RL5P2.js} +2 -2
  37. package/dist/chunk-TI2RL5P2.js.map +1 -0
  38. package/dist/{chunk-YGBFDXXA.js → chunk-TUACATJA.js} +2 -2
  39. package/dist/{chunk-25AKG5HH.js → chunk-UWMYZNUB.js} +19 -11
  40. package/dist/chunk-UWMYZNUB.js.map +1 -0
  41. package/dist/{chunk-UEP36GCI.js → chunk-VMNMD6KF.js} +2 -2
  42. package/dist/{chunk-KAQJH2YL.js → chunk-WXL7PVI5.js} +12 -4
  43. package/dist/chunk-WXL7PVI5.js.map +1 -0
  44. package/dist/{chunk-VOCOFE4I.js → chunk-X7IEZBM4.js} +2 -2
  45. package/dist/{chunk-XXHONFSQ.js → chunk-YDS36ALB.js} +3 -3
  46. package/dist/{chunk-XXHONFSQ.js.map → chunk-YDS36ALB.js.map} +1 -1
  47. package/dist/commonSelectors.cjs +40 -18
  48. package/dist/commonSelectors.cjs.map +1 -1
  49. package/dist/commonSelectors.d.cts +54 -46
  50. package/dist/commonSelectors.d.ts +54 -46
  51. package/dist/commonSelectors.js +9 -9
  52. package/dist/constants.cjs +35 -19
  53. package/dist/constants.cjs.map +1 -1
  54. package/dist/constants.d.cts +3 -3
  55. package/dist/constants.d.ts +3 -3
  56. package/dist/constants.js +6 -2
  57. package/dist/deploymentdevicehook.cjs +146 -101
  58. package/dist/deploymentdevicehook.cjs.map +1 -1
  59. package/dist/deploymentdevicehook.d.cts +1 -1
  60. package/dist/deploymentdevicehook.d.ts +1 -1
  61. package/dist/deploymentdevicehook.js +24 -22
  62. package/dist/deploymentdevicehook.js.map +1 -1
  63. package/dist/deploymentsSlice/constants.cjs +8 -8
  64. package/dist/deploymentsSlice/constants.cjs.map +1 -1
  65. package/dist/deploymentsSlice/constants.js +2 -2
  66. package/dist/deploymentsSlice/index.cjs +8 -8
  67. package/dist/deploymentsSlice/index.cjs.map +1 -1
  68. package/dist/deploymentsSlice/index.js +3 -3
  69. package/dist/deploymentsSlice/selectors.cjs +8 -8
  70. package/dist/deploymentsSlice/selectors.cjs.map +1 -1
  71. package/dist/deploymentsSlice/selectors.js +3 -3
  72. package/dist/deploymentsSlice/thunks.cjs +140 -96
  73. package/dist/deploymentsSlice/thunks.cjs.map +1 -1
  74. package/dist/deploymentsSlice/thunks.js +19 -19
  75. package/dist/devicesSlice/constants.cjs +11 -8
  76. package/dist/devicesSlice/constants.cjs.map +1 -1
  77. package/dist/devicesSlice/constants.d.cts +2 -1
  78. package/dist/devicesSlice/constants.d.ts +2 -1
  79. package/dist/devicesSlice/constants.js +4 -2
  80. package/dist/devicesSlice/index.cjs +8 -8
  81. package/dist/devicesSlice/index.cjs.map +1 -1
  82. package/dist/devicesSlice/index.js +3 -3
  83. package/dist/devicesSlice/selectors.cjs +9 -9
  84. package/dist/devicesSlice/selectors.cjs.map +1 -1
  85. package/dist/devicesSlice/selectors.js +3 -3
  86. package/dist/devicesSlice/thunks.cjs +142 -96
  87. package/dist/devicesSlice/thunks.cjs.map +1 -1
  88. package/dist/devicesSlice/thunks.d.cts +12 -2
  89. package/dist/devicesSlice/thunks.d.ts +12 -2
  90. package/dist/devicesSlice/thunks.js +21 -19
  91. package/dist/flag-eu-5477R2P4.svg +130 -0
  92. package/dist/flag-us-HNQAF66I.svg +63 -0
  93. package/dist/monitorSlice/constants.cjs +8 -8
  94. package/dist/monitorSlice/constants.cjs.map +1 -1
  95. package/dist/monitorSlice/constants.js +2 -2
  96. package/dist/monitorSlice/index.cjs +8 -8
  97. package/dist/monitorSlice/index.cjs.map +1 -1
  98. package/dist/monitorSlice/index.js +3 -3
  99. package/dist/monitorSlice/thunks.cjs +59 -37
  100. package/dist/monitorSlice/thunks.cjs.map +1 -1
  101. package/dist/monitorSlice/thunks.js +17 -17
  102. package/dist/onboardingSlice/thunks.cjs +149 -102
  103. package/dist/onboardingSlice/thunks.cjs.map +1 -1
  104. package/dist/onboardingSlice/thunks.d.cts +1 -32
  105. package/dist/onboardingSlice/thunks.d.ts +1 -32
  106. package/dist/onboardingSlice/thunks.js +19 -19
  107. package/dist/organizationSlice/constants.cjs +22 -17
  108. package/dist/organizationSlice/constants.cjs.map +1 -1
  109. package/dist/organizationSlice/constants.d.cts +33 -1
  110. package/dist/organizationSlice/constants.d.ts +33 -1
  111. package/dist/organizationSlice/constants.js +4 -2
  112. package/dist/organizationSlice/index.cjs +18 -15
  113. package/dist/organizationSlice/index.cjs.map +1 -1
  114. package/dist/organizationSlice/index.d.cts +26 -1012
  115. package/dist/organizationSlice/index.d.ts +26 -1012
  116. package/dist/organizationSlice/index.js +3 -3
  117. package/dist/organizationSlice/selectors.cjs.map +1 -1
  118. package/dist/organizationSlice/selectors.d.cts +9 -1
  119. package/dist/organizationSlice/selectors.d.ts +9 -1
  120. package/dist/organizationSlice/selectors.js +3 -3
  121. package/dist/organizationSlice/thunks.cjs +1608 -1540
  122. package/dist/organizationSlice/thunks.cjs.map +1 -1
  123. package/dist/organizationSlice/thunks.d.cts +61 -36
  124. package/dist/organizationSlice/thunks.d.ts +61 -36
  125. package/dist/organizationSlice/thunks.js +19 -19
  126. package/dist/organizationSlice/types.cjs +19 -0
  127. package/dist/organizationSlice/types.cjs.map +1 -0
  128. package/dist/organizationSlice/types.d.cts +114 -0
  129. package/dist/organizationSlice/types.d.ts +114 -0
  130. package/dist/organizationSlice/types.js +1 -0
  131. package/dist/organizationSlice/types.js.map +1 -0
  132. package/dist/releasesSlice/index.js +2 -2
  133. package/dist/releasesSlice/selectors.cjs +11 -0
  134. package/dist/releasesSlice/selectors.cjs.map +1 -1
  135. package/dist/releasesSlice/selectors.js +4 -4
  136. package/dist/releasesSlice/thunks.cjs +73 -49
  137. package/dist/releasesSlice/thunks.cjs.map +1 -1
  138. package/dist/releasesSlice/thunks.d.cts +1 -4
  139. package/dist/releasesSlice/thunks.d.ts +1 -4
  140. package/dist/releasesSlice/thunks.js +17 -17
  141. package/dist/selectors.cjs +46 -18
  142. package/dist/selectors.cjs.map +1 -1
  143. package/dist/selectors.d.cts +9 -1
  144. package/dist/selectors.d.ts +9 -1
  145. package/dist/selectors.js +36 -30
  146. package/dist/store.cjs +36 -23
  147. package/dist/store.cjs.map +1 -1
  148. package/dist/store.d.cts +12 -231
  149. package/dist/store.d.ts +12 -231
  150. package/dist/store.js +13 -11
  151. package/dist/storehooks.cjs +222 -141
  152. package/dist/storehooks.cjs.map +1 -1
  153. package/dist/storehooks.js +36 -24
  154. package/dist/storehooks.js.map +1 -1
  155. package/dist/thunks.cjs +199 -126
  156. package/dist/thunks.cjs.map +1 -1
  157. package/dist/thunks.d.cts +5 -1
  158. package/dist/thunks.d.ts +5 -1
  159. package/dist/thunks.js +21 -19
  160. package/dist/usersSlice/constants.cjs +10 -10
  161. package/dist/usersSlice/constants.cjs.map +1 -1
  162. package/dist/usersSlice/constants.js +2 -2
  163. package/dist/usersSlice/index.cjs +10 -10
  164. package/dist/usersSlice/index.cjs.map +1 -1
  165. package/dist/usersSlice/index.js +3 -3
  166. package/dist/usersSlice/selectors.cjs +35 -13
  167. package/dist/usersSlice/selectors.cjs.map +1 -1
  168. package/dist/usersSlice/selectors.d.cts +44 -1
  169. package/dist/usersSlice/selectors.d.ts +44 -1
  170. package/dist/usersSlice/selectors.js +12 -6
  171. package/dist/usersSlice/thunks.cjs +138 -96
  172. package/dist/usersSlice/thunks.cjs.map +1 -1
  173. package/dist/usersSlice/thunks.d.cts +10 -9
  174. package/dist/usersSlice/thunks.d.ts +10 -9
  175. package/dist/usersSlice/thunks.js +19 -19
  176. package/dist/utils.cjs +17 -16
  177. package/dist/utils.cjs.map +1 -1
  178. package/dist/utils.js +3 -3
  179. package/package.json +7 -7
  180. package/dist/chunk-25AKG5HH.js.map +0 -1
  181. package/dist/chunk-2RJIDREZ.js.map +0 -1
  182. package/dist/chunk-A6CT6GTI.js.map +0 -1
  183. package/dist/chunk-ANB5BM5J.js.map +0 -1
  184. package/dist/chunk-APHL4JZP.js.map +0 -1
  185. package/dist/chunk-KAQJH2YL.js.map +0 -1
  186. package/dist/chunk-MDC7Y3EX.js.map +0 -1
  187. package/dist/chunk-Q6M5TTDQ.js.map +0 -1
  188. package/dist/chunk-XTRPX7JZ.js.map +0 -1
  189. package/dist/chunk-YETZPQFR.js.map +0 -1
  190. /package/dist/{chunk-RX55KAKX.js.map → chunk-7JKWI5FK.js.map} +0 -0
  191. /package/dist/{chunk-NNADGHSL.js.map → chunk-DAPAXWA5.js.map} +0 -0
  192. /package/dist/{chunk-E5LEU5PF.js.map → chunk-HPBE6KYY.js.map} +0 -0
  193. /package/dist/{chunk-NI4SZOCF.js.map → chunk-LGNOTPUG.js.map} +0 -0
  194. /package/dist/{chunk-YTQUNAZP.js.map → chunk-QRGTG4YB.js.map} +0 -0
  195. /package/dist/{chunk-YGBFDXXA.js.map → chunk-TUACATJA.js.map} +0 -0
  196. /package/dist/{chunk-UEP36GCI.js.map → chunk-VMNMD6KF.js.map} +0 -0
  197. /package/dist/{chunk-VOCOFE4I.js.map → chunk-X7IEZBM4.js.map} +0 -0
@@ -1,6 +1,10 @@
1
1
  import * as _reduxjs_toolkit from '@reduxjs/toolkit';
2
2
  import * as redux_thunk from 'redux-thunk';
3
3
  import * as redux from 'redux';
4
+ import { AvailablePlans } from '../appSlice/constants.cjs';
5
+ import { BillingProfile } from './types.cjs';
6
+ import '@mui/material/OverridableComponent';
7
+ import '@mui/material';
4
8
 
5
9
  declare const cancelRequest: _reduxjs_toolkit.AsyncThunk<{
6
10
  payload: any;
@@ -85,7 +89,29 @@ declare const cancelUpgrade: _reduxjs_toolkit.AsyncThunk</*elided*/ any, void, {
85
89
  fulfilledMeta?: unknown;
86
90
  rejectedMeta?: unknown;
87
91
  }>;
88
- declare const completeUpgrade: _reduxjs_toolkit.AsyncThunk<_reduxjs_toolkit.PayloadAction<unknown, string, {
92
+ interface completeUpgradePayload {
93
+ billing_profile: BillingProfile;
94
+ plan: AvailablePlans;
95
+ tenantId: string;
96
+ }
97
+ declare const completeUpgrade: _reduxjs_toolkit.AsyncThunk<[_reduxjs_toolkit.PayloadAction<unknown, string, {
98
+ arg: void;
99
+ requestId: string;
100
+ requestStatus: "rejected";
101
+ aborted: boolean;
102
+ condition: boolean;
103
+ } & ({
104
+ rejectedWithValue: true;
105
+ } | ({
106
+ rejectedWithValue: false;
107
+ } & {})), _reduxjs_toolkit.SerializedError> | _reduxjs_toolkit.PayloadAction<{
108
+ payload: any;
109
+ type: "devices/setDeviceLimit";
110
+ }, string, {
111
+ arg: void;
112
+ requestId: string;
113
+ requestStatus: "fulfilled";
114
+ }, never>, _reduxjs_toolkit.PayloadAction<unknown, string, {
89
115
  arg: void;
90
116
  requestId: string;
91
117
  requestStatus: "rejected";
@@ -102,7 +128,7 @@ declare const completeUpgrade: _reduxjs_toolkit.AsyncThunk<_reduxjs_toolkit.Payl
102
128
  arg: void;
103
129
  requestId: string;
104
130
  requestStatus: "fulfilled";
105
- }, never>, void, {
131
+ }, never>], completeUpgradePayload, {
106
132
  state?: unknown;
107
133
  dispatch?: redux_thunk.ThunkDispatch<unknown, unknown, redux.UnknownAction>;
108
134
  extra?: unknown;
@@ -143,24 +169,10 @@ declare const setAuditlogsState: _reduxjs_toolkit.AsyncThunk<never[], void, {
143
169
  rejectedMeta?: unknown;
144
170
  }>;
145
171
  declare const tenantDataDivergedMessage = "The system detected there is a change in your plan or purchased add-ons. Please log out and log in again";
146
- declare const addTenant: _reduxjs_toolkit.AsyncThunk<[_reduxjs_toolkit.PayloadAction<unknown, string, {
147
- arg: void;
148
- requestId: string;
149
- requestStatus: "rejected";
150
- aborted: boolean;
151
- condition: boolean;
152
- } & ({
153
- rejectedWithValue: true;
154
- } | ({
155
- rejectedWithValue: false;
156
- } & {})), _reduxjs_toolkit.SerializedError> | _reduxjs_toolkit.PayloadAction<void, string, {
157
- arg: void;
158
- requestId: string;
159
- requestStatus: "fulfilled";
160
- }, never>, {
172
+ declare const addTenant: _reduxjs_toolkit.AsyncThunk<[{
161
173
  payload: any;
162
174
  type: "app/setSnackbar";
163
- }], void, {
175
+ }, unknown], void, {
164
176
  state?: unknown;
165
177
  dispatch?: redux_thunk.ThunkDispatch<unknown, unknown, redux.UnknownAction>;
166
178
  extra?: unknown;
@@ -198,20 +210,7 @@ interface editTenantBody {
198
210
  newLimit: number;
199
211
  id: string;
200
212
  }
201
- declare const editTenantDeviceLimit: _reduxjs_toolkit.AsyncThunk<{
202
- payload: any;
203
- type: "app/setSnackbar";
204
- }[], editTenantBody, {
205
- state?: unknown;
206
- dispatch?: redux_thunk.ThunkDispatch<unknown, unknown, redux.UnknownAction>;
207
- extra?: unknown;
208
- rejectValue?: unknown;
209
- serializedErrorType?: unknown;
210
- pendingMeta?: unknown;
211
- fulfilledMeta?: unknown;
212
- rejectedMeta?: unknown;
213
- }>;
214
- declare const removeTenant: _reduxjs_toolkit.AsyncThunk<[{
213
+ declare const editTenantDeviceLimit: _reduxjs_toolkit.AsyncThunk<[{
215
214
  payload: any;
216
215
  type: "app/setSnackbar";
217
216
  }, _reduxjs_toolkit.PayloadAction<unknown, string, {
@@ -224,11 +223,27 @@ declare const removeTenant: _reduxjs_toolkit.AsyncThunk<[{
224
223
  rejectedWithValue: true;
225
224
  } | ({
226
225
  rejectedWithValue: false;
227
- } & {})), _reduxjs_toolkit.SerializedError> | _reduxjs_toolkit.PayloadAction<void, string, {
226
+ } & {})), _reduxjs_toolkit.SerializedError> | _reduxjs_toolkit.PayloadAction<{
227
+ payload: any;
228
+ type: "organization/setOrganization";
229
+ }[], string, {
228
230
  arg: void;
229
231
  requestId: string;
230
232
  requestStatus: "fulfilled";
231
- }, never>, _reduxjs_toolkit.PayloadAction<unknown, string, {
233
+ }, never>, unknown], editTenantBody, {
234
+ state?: unknown;
235
+ dispatch?: redux_thunk.ThunkDispatch<unknown, unknown, redux.UnknownAction>;
236
+ extra?: unknown;
237
+ rejectValue?: unknown;
238
+ serializedErrorType?: unknown;
239
+ pendingMeta?: unknown;
240
+ fulfilledMeta?: unknown;
241
+ rejectedMeta?: unknown;
242
+ }>;
243
+ declare const removeTenant: _reduxjs_toolkit.AsyncThunk<[{
244
+ payload: any;
245
+ type: "app/setSnackbar";
246
+ }, _reduxjs_toolkit.PayloadAction<unknown, string, {
232
247
  arg: void;
233
248
  requestId: string;
234
249
  requestStatus: "rejected";
@@ -245,7 +260,7 @@ declare const removeTenant: _reduxjs_toolkit.AsyncThunk<[{
245
260
  arg: void;
246
261
  requestId: string;
247
262
  requestStatus: "fulfilled";
248
- }, never>], {
263
+ }, never>, unknown], {
249
264
  id: string;
250
265
  }, {
251
266
  state?: unknown;
@@ -283,10 +298,20 @@ declare const sendSupportMessage: _reduxjs_toolkit.AsyncThunk<{
283
298
  fulfilledMeta?: unknown;
284
299
  rejectedMeta?: unknown;
285
300
  }>;
301
+ interface requestPlanChangePayload {
302
+ tenantId: string;
303
+ content: {
304
+ current_plan: string;
305
+ requested_plan: string;
306
+ current_addons: string;
307
+ requested_addons: string;
308
+ user_message: string;
309
+ };
310
+ }
286
311
  declare const requestPlanChange: _reduxjs_toolkit.AsyncThunk<{
287
312
  payload: any;
288
313
  type: "app/setSnackbar";
289
- }, void, {
314
+ }, requestPlanChangePayload, {
290
315
  state?: unknown;
291
316
  dispatch?: redux_thunk.ThunkDispatch<unknown, unknown, redux.UnknownAction>;
292
317
  extra?: unknown;
@@ -1,6 +1,10 @@
1
1
  import * as _reduxjs_toolkit from '@reduxjs/toolkit';
2
2
  import * as redux_thunk from 'redux-thunk';
3
3
  import * as redux from 'redux';
4
+ import { AvailablePlans } from '../appSlice/constants.js';
5
+ import { BillingProfile } from './types.js';
6
+ import '@mui/material/OverridableComponent';
7
+ import '@mui/material';
4
8
 
5
9
  declare const cancelRequest: _reduxjs_toolkit.AsyncThunk<{
6
10
  payload: any;
@@ -85,7 +89,29 @@ declare const cancelUpgrade: _reduxjs_toolkit.AsyncThunk</*elided*/ any, void, {
85
89
  fulfilledMeta?: unknown;
86
90
  rejectedMeta?: unknown;
87
91
  }>;
88
- declare const completeUpgrade: _reduxjs_toolkit.AsyncThunk<_reduxjs_toolkit.PayloadAction<unknown, string, {
92
+ interface completeUpgradePayload {
93
+ billing_profile: BillingProfile;
94
+ plan: AvailablePlans;
95
+ tenantId: string;
96
+ }
97
+ declare const completeUpgrade: _reduxjs_toolkit.AsyncThunk<[_reduxjs_toolkit.PayloadAction<unknown, string, {
98
+ arg: void;
99
+ requestId: string;
100
+ requestStatus: "rejected";
101
+ aborted: boolean;
102
+ condition: boolean;
103
+ } & ({
104
+ rejectedWithValue: true;
105
+ } | ({
106
+ rejectedWithValue: false;
107
+ } & {})), _reduxjs_toolkit.SerializedError> | _reduxjs_toolkit.PayloadAction<{
108
+ payload: any;
109
+ type: "devices/setDeviceLimit";
110
+ }, string, {
111
+ arg: void;
112
+ requestId: string;
113
+ requestStatus: "fulfilled";
114
+ }, never>, _reduxjs_toolkit.PayloadAction<unknown, string, {
89
115
  arg: void;
90
116
  requestId: string;
91
117
  requestStatus: "rejected";
@@ -102,7 +128,7 @@ declare const completeUpgrade: _reduxjs_toolkit.AsyncThunk<_reduxjs_toolkit.Payl
102
128
  arg: void;
103
129
  requestId: string;
104
130
  requestStatus: "fulfilled";
105
- }, never>, void, {
131
+ }, never>], completeUpgradePayload, {
106
132
  state?: unknown;
107
133
  dispatch?: redux_thunk.ThunkDispatch<unknown, unknown, redux.UnknownAction>;
108
134
  extra?: unknown;
@@ -143,24 +169,10 @@ declare const setAuditlogsState: _reduxjs_toolkit.AsyncThunk<never[], void, {
143
169
  rejectedMeta?: unknown;
144
170
  }>;
145
171
  declare const tenantDataDivergedMessage = "The system detected there is a change in your plan or purchased add-ons. Please log out and log in again";
146
- declare const addTenant: _reduxjs_toolkit.AsyncThunk<[_reduxjs_toolkit.PayloadAction<unknown, string, {
147
- arg: void;
148
- requestId: string;
149
- requestStatus: "rejected";
150
- aborted: boolean;
151
- condition: boolean;
152
- } & ({
153
- rejectedWithValue: true;
154
- } | ({
155
- rejectedWithValue: false;
156
- } & {})), _reduxjs_toolkit.SerializedError> | _reduxjs_toolkit.PayloadAction<void, string, {
157
- arg: void;
158
- requestId: string;
159
- requestStatus: "fulfilled";
160
- }, never>, {
172
+ declare const addTenant: _reduxjs_toolkit.AsyncThunk<[{
161
173
  payload: any;
162
174
  type: "app/setSnackbar";
163
- }], void, {
175
+ }, unknown], void, {
164
176
  state?: unknown;
165
177
  dispatch?: redux_thunk.ThunkDispatch<unknown, unknown, redux.UnknownAction>;
166
178
  extra?: unknown;
@@ -198,20 +210,7 @@ interface editTenantBody {
198
210
  newLimit: number;
199
211
  id: string;
200
212
  }
201
- declare const editTenantDeviceLimit: _reduxjs_toolkit.AsyncThunk<{
202
- payload: any;
203
- type: "app/setSnackbar";
204
- }[], editTenantBody, {
205
- state?: unknown;
206
- dispatch?: redux_thunk.ThunkDispatch<unknown, unknown, redux.UnknownAction>;
207
- extra?: unknown;
208
- rejectValue?: unknown;
209
- serializedErrorType?: unknown;
210
- pendingMeta?: unknown;
211
- fulfilledMeta?: unknown;
212
- rejectedMeta?: unknown;
213
- }>;
214
- declare const removeTenant: _reduxjs_toolkit.AsyncThunk<[{
213
+ declare const editTenantDeviceLimit: _reduxjs_toolkit.AsyncThunk<[{
215
214
  payload: any;
216
215
  type: "app/setSnackbar";
217
216
  }, _reduxjs_toolkit.PayloadAction<unknown, string, {
@@ -224,11 +223,27 @@ declare const removeTenant: _reduxjs_toolkit.AsyncThunk<[{
224
223
  rejectedWithValue: true;
225
224
  } | ({
226
225
  rejectedWithValue: false;
227
- } & {})), _reduxjs_toolkit.SerializedError> | _reduxjs_toolkit.PayloadAction<void, string, {
226
+ } & {})), _reduxjs_toolkit.SerializedError> | _reduxjs_toolkit.PayloadAction<{
227
+ payload: any;
228
+ type: "organization/setOrganization";
229
+ }[], string, {
228
230
  arg: void;
229
231
  requestId: string;
230
232
  requestStatus: "fulfilled";
231
- }, never>, _reduxjs_toolkit.PayloadAction<unknown, string, {
233
+ }, never>, unknown], editTenantBody, {
234
+ state?: unknown;
235
+ dispatch?: redux_thunk.ThunkDispatch<unknown, unknown, redux.UnknownAction>;
236
+ extra?: unknown;
237
+ rejectValue?: unknown;
238
+ serializedErrorType?: unknown;
239
+ pendingMeta?: unknown;
240
+ fulfilledMeta?: unknown;
241
+ rejectedMeta?: unknown;
242
+ }>;
243
+ declare const removeTenant: _reduxjs_toolkit.AsyncThunk<[{
244
+ payload: any;
245
+ type: "app/setSnackbar";
246
+ }, _reduxjs_toolkit.PayloadAction<unknown, string, {
232
247
  arg: void;
233
248
  requestId: string;
234
249
  requestStatus: "rejected";
@@ -245,7 +260,7 @@ declare const removeTenant: _reduxjs_toolkit.AsyncThunk<[{
245
260
  arg: void;
246
261
  requestId: string;
247
262
  requestStatus: "fulfilled";
248
- }, never>], {
263
+ }, never>, unknown], {
249
264
  id: string;
250
265
  }, {
251
266
  state?: unknown;
@@ -283,10 +298,20 @@ declare const sendSupportMessage: _reduxjs_toolkit.AsyncThunk<{
283
298
  fulfilledMeta?: unknown;
284
299
  rejectedMeta?: unknown;
285
300
  }>;
301
+ interface requestPlanChangePayload {
302
+ tenantId: string;
303
+ content: {
304
+ current_plan: string;
305
+ requested_plan: string;
306
+ current_addons: string;
307
+ requested_addons: string;
308
+ user_message: string;
309
+ };
310
+ }
286
311
  declare const requestPlanChange: _reduxjs_toolkit.AsyncThunk<{
287
312
  payload: any;
288
313
  type: "app/setSnackbar";
289
- }, void, {
314
+ }, requestPlanChangePayload, {
290
315
  state?: unknown;
291
316
  dispatch?: redux_thunk.ThunkDispatch<unknown, unknown, redux.UnknownAction>;
292
317
  extra?: unknown;
@@ -31,37 +31,37 @@ import {
31
31
  startUpgrade,
32
32
  storeSsoConfig,
33
33
  tenantDataDivergedMessage
34
- } from "../chunk-APHL4JZP.js";
35
- import "../chunk-MDC7Y3EX.js";
36
- import "../chunk-NI4SZOCF.js";
34
+ } from "../chunk-2JHFUQ6B.js";
35
+ import "../chunk-LTKOV26W.js";
36
+ import "../chunk-LGNOTPUG.js";
37
37
  import "../chunk-JAROCU6M.js";
38
38
  import "../chunk-YT73QWCN.js";
39
39
  import "../chunk-NMAXZ3ZY.js";
40
- import "../chunk-ANB5BM5J.js";
41
- import "../chunk-KAQJH2YL.js";
42
- import "../chunk-VOCOFE4I.js";
43
- import "../chunk-RX55KAKX.js";
40
+ import "../chunk-DCK2DBOA.js";
41
+ import "../chunk-X7IEZBM4.js";
42
+ import "../chunk-WXL7PVI5.js";
43
+ import "../chunk-2CYOM4BK.js";
44
+ import "../chunk-7JKWI5FK.js";
44
45
  import "../chunk-JIS4PA3R.js";
45
- import "../chunk-Q6M5TTDQ.js";
46
- import "../chunk-XXHONFSQ.js";
46
+ import "../chunk-YDS36ALB.js";
47
47
  import "../chunk-YO22XLHI.js";
48
- import "../chunk-YETZPQFR.js";
48
+ import "../chunk-4XJMRVFI.js";
49
49
  import "../chunk-LIJIIRON.js";
50
- import "../chunk-2RJIDREZ.js";
51
- import "../chunk-NNADGHSL.js";
52
- import "../chunk-YGBFDXXA.js";
50
+ import "../chunk-LEMVXAYP.js";
51
+ import "../chunk-DAPAXWA5.js";
52
+ import "../chunk-TUACATJA.js";
53
+ import "../chunk-TI2RL5P2.js";
53
54
  import "../chunk-CYV6632F.js";
54
- import "../chunk-E5LEU5PF.js";
55
+ import "../chunk-HPBE6KYY.js";
55
56
  import "../chunk-FGKMJS3B.js";
56
- import "../chunk-XTRPX7JZ.js";
57
- import "../chunk-YTQUNAZP.js";
58
- import "../chunk-UEP36GCI.js";
57
+ import "../chunk-QRGTG4YB.js";
58
+ import "../chunk-VMNMD6KF.js";
59
59
  import "../chunk-7PVGDMNM.js";
60
60
  import "../chunk-AMGWP7A4.js";
61
- import "../chunk-A6CT6GTI.js";
61
+ import "../chunk-C5NEDBJI.js";
62
62
  import "../chunk-CK6YE6AN.js";
63
63
  import "../chunk-MRCFLG45.js";
64
- import "../chunk-25AKG5HH.js";
64
+ import "../chunk-UWMYZNUB.js";
65
65
  import "../chunk-4B3IMP4I.js";
66
66
  export {
67
67
  addTenant,
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+
16
+ // src/organizationSlice/types.ts
17
+ var types_exports = {};
18
+ module.exports = __toCommonJS(types_exports);
19
+ //# sourceMappingURL=types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/organizationSlice/types.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.\nimport { AvailableAddon, AvailablePlans } from '@northern.tech/store/appSlice/constants';\n\n//TODO: improve types\ninterface Card {\n last4: string;\n expiration: {\n month: number;\n year: number;\n };\n brand: string;\n}\n\ninterface SortOptions {\n direction: 'asc' | 'desc';\n key?: string;\n}\n\ninterface Tenant {\n id: string;\n name: string;\n}\n\ninterface AuditLogSelectionState {\n total: number;\n startDate?: string;\n endDate?: string;\n detail?: string;\n selectedIssue?: string;\n type?: string;\n user?: string;\n sort: SortOptions;\n}\n\ninterface AuditLog {\n events: Array<any>;\n selectionState: AuditLogSelectionState;\n}\n\ninterface ExternalDeviceIntegration {\n id: string;\n provider: string;\n connection_string: string;\n}\n\ninterface Webhook {\n events: Array<any>;\n eventsTotal: number;\n}\n\ninterface TenantList {\n total: number;\n tenants: Tenant[];\n selectedTenant: Tenant | null;\n sort: SortOptions;\n}\n\nexport interface OrganizationState {\n card: Card;\n intentId: string | null;\n tenantList: TenantList;\n organization: Organization;\n auditlog: AuditLog;\n externalDeviceIntegrations: ExternalDeviceIntegration[];\n ssoConfigs: any[];\n webhooks: Webhook;\n}\ninterface ApiQuota {\n max_calls: number;\n interval_sec: number;\n}\n\ninterface ApiLimits {\n management: {\n bursts: any[];\n quota: ApiQuota;\n };\n devices: {\n bursts: any[];\n quota: ApiQuota;\n };\n}\n\nexport interface Addon {\n name: AvailableAddon;\n enabled: boolean;\n}\nexport interface BillingProfile {\n email: string;\n name: string;\n address: { country: string; state: string; city: string; line1: string; postal_code: string };\n}\n\nexport interface Organization {\n id: string;\n parent_tenant_id: string;\n name: string;\n tenant_token: string;\n status: 'active' | 'inactive';\n additional_info: {\n marketing: boolean;\n campaign: string;\n };\n plan: AvailablePlans;\n api_limits: ApiLimits;\n trial: boolean;\n trial_expiration: string | null;\n service_provider: boolean;\n created_at: string;\n cancelled_at: string | null;\n addons: Addon[];\n max_child_tenants: number;\n children_tenants: any | null;\n device_count: number;\n device_limit: number;\n binary_delta: boolean;\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
@@ -0,0 +1,114 @@
1
+ import { AvailableAddon, AvailablePlans } from '../appSlice/constants.cjs';
2
+ import '@mui/material/OverridableComponent';
3
+ import '@mui/material';
4
+
5
+ interface Card {
6
+ last4: string;
7
+ expiration: {
8
+ month: number;
9
+ year: number;
10
+ };
11
+ brand: string;
12
+ }
13
+ interface SortOptions {
14
+ direction: 'asc' | 'desc';
15
+ key?: string;
16
+ }
17
+ interface Tenant {
18
+ id: string;
19
+ name: string;
20
+ }
21
+ interface AuditLogSelectionState {
22
+ total: number;
23
+ startDate?: string;
24
+ endDate?: string;
25
+ detail?: string;
26
+ selectedIssue?: string;
27
+ type?: string;
28
+ user?: string;
29
+ sort: SortOptions;
30
+ }
31
+ interface AuditLog {
32
+ events: Array<any>;
33
+ selectionState: AuditLogSelectionState;
34
+ }
35
+ interface ExternalDeviceIntegration {
36
+ id: string;
37
+ provider: string;
38
+ connection_string: string;
39
+ }
40
+ interface Webhook {
41
+ events: Array<any>;
42
+ eventsTotal: number;
43
+ }
44
+ interface TenantList {
45
+ total: number;
46
+ tenants: Tenant[];
47
+ selectedTenant: Tenant | null;
48
+ sort: SortOptions;
49
+ }
50
+ interface OrganizationState {
51
+ card: Card;
52
+ intentId: string | null;
53
+ tenantList: TenantList;
54
+ organization: Organization;
55
+ auditlog: AuditLog;
56
+ externalDeviceIntegrations: ExternalDeviceIntegration[];
57
+ ssoConfigs: any[];
58
+ webhooks: Webhook;
59
+ }
60
+ interface ApiQuota {
61
+ max_calls: number;
62
+ interval_sec: number;
63
+ }
64
+ interface ApiLimits {
65
+ management: {
66
+ bursts: any[];
67
+ quota: ApiQuota;
68
+ };
69
+ devices: {
70
+ bursts: any[];
71
+ quota: ApiQuota;
72
+ };
73
+ }
74
+ interface Addon {
75
+ name: AvailableAddon;
76
+ enabled: boolean;
77
+ }
78
+ interface BillingProfile {
79
+ email: string;
80
+ name: string;
81
+ address: {
82
+ country: string;
83
+ state: string;
84
+ city: string;
85
+ line1: string;
86
+ postal_code: string;
87
+ };
88
+ }
89
+ interface Organization {
90
+ id: string;
91
+ parent_tenant_id: string;
92
+ name: string;
93
+ tenant_token: string;
94
+ status: 'active' | 'inactive';
95
+ additional_info: {
96
+ marketing: boolean;
97
+ campaign: string;
98
+ };
99
+ plan: AvailablePlans;
100
+ api_limits: ApiLimits;
101
+ trial: boolean;
102
+ trial_expiration: string | null;
103
+ service_provider: boolean;
104
+ created_at: string;
105
+ cancelled_at: string | null;
106
+ addons: Addon[];
107
+ max_child_tenants: number;
108
+ children_tenants: any | null;
109
+ device_count: number;
110
+ device_limit: number;
111
+ binary_delta: boolean;
112
+ }
113
+
114
+ export type { Addon, BillingProfile, Organization, OrganizationState };
@@ -0,0 +1,114 @@
1
+ import { AvailableAddon, AvailablePlans } from '../appSlice/constants.js';
2
+ import '@mui/material/OverridableComponent';
3
+ import '@mui/material';
4
+
5
+ interface Card {
6
+ last4: string;
7
+ expiration: {
8
+ month: number;
9
+ year: number;
10
+ };
11
+ brand: string;
12
+ }
13
+ interface SortOptions {
14
+ direction: 'asc' | 'desc';
15
+ key?: string;
16
+ }
17
+ interface Tenant {
18
+ id: string;
19
+ name: string;
20
+ }
21
+ interface AuditLogSelectionState {
22
+ total: number;
23
+ startDate?: string;
24
+ endDate?: string;
25
+ detail?: string;
26
+ selectedIssue?: string;
27
+ type?: string;
28
+ user?: string;
29
+ sort: SortOptions;
30
+ }
31
+ interface AuditLog {
32
+ events: Array<any>;
33
+ selectionState: AuditLogSelectionState;
34
+ }
35
+ interface ExternalDeviceIntegration {
36
+ id: string;
37
+ provider: string;
38
+ connection_string: string;
39
+ }
40
+ interface Webhook {
41
+ events: Array<any>;
42
+ eventsTotal: number;
43
+ }
44
+ interface TenantList {
45
+ total: number;
46
+ tenants: Tenant[];
47
+ selectedTenant: Tenant | null;
48
+ sort: SortOptions;
49
+ }
50
+ interface OrganizationState {
51
+ card: Card;
52
+ intentId: string | null;
53
+ tenantList: TenantList;
54
+ organization: Organization;
55
+ auditlog: AuditLog;
56
+ externalDeviceIntegrations: ExternalDeviceIntegration[];
57
+ ssoConfigs: any[];
58
+ webhooks: Webhook;
59
+ }
60
+ interface ApiQuota {
61
+ max_calls: number;
62
+ interval_sec: number;
63
+ }
64
+ interface ApiLimits {
65
+ management: {
66
+ bursts: any[];
67
+ quota: ApiQuota;
68
+ };
69
+ devices: {
70
+ bursts: any[];
71
+ quota: ApiQuota;
72
+ };
73
+ }
74
+ interface Addon {
75
+ name: AvailableAddon;
76
+ enabled: boolean;
77
+ }
78
+ interface BillingProfile {
79
+ email: string;
80
+ name: string;
81
+ address: {
82
+ country: string;
83
+ state: string;
84
+ city: string;
85
+ line1: string;
86
+ postal_code: string;
87
+ };
88
+ }
89
+ interface Organization {
90
+ id: string;
91
+ parent_tenant_id: string;
92
+ name: string;
93
+ tenant_token: string;
94
+ status: 'active' | 'inactive';
95
+ additional_info: {
96
+ marketing: boolean;
97
+ campaign: string;
98
+ };
99
+ plan: AvailablePlans;
100
+ api_limits: ApiLimits;
101
+ trial: boolean;
102
+ trial_expiration: string | null;
103
+ service_provider: boolean;
104
+ created_at: string;
105
+ cancelled_at: string | null;
106
+ addons: Addon[];
107
+ max_child_tenants: number;
108
+ children_tenants: any | null;
109
+ device_count: number;
110
+ device_limit: number;
111
+ binary_delta: boolean;
112
+ }
113
+
114
+ export type { Addon, BillingProfile, Organization, OrganizationState };
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -5,10 +5,10 @@ import {
5
5
  releasesSlice_default,
6
6
  sliceName
7
7
  } from "../chunk-CYV6632F.js";
8
- import "../chunk-A6CT6GTI.js";
8
+ import "../chunk-C5NEDBJI.js";
9
9
  import "../chunk-CK6YE6AN.js";
10
10
  import "../chunk-MRCFLG45.js";
11
- import "../chunk-25AKG5HH.js";
11
+ import "../chunk-UWMYZNUB.js";
12
12
  import "../chunk-4B3IMP4I.js";
13
13
  export {
14
14
  actions,
@@ -248,6 +248,17 @@ var emptyRole = Object.freeze({
248
248
  });
249
249
 
250
250
  // src/utils.ts
251
+ var filterProcessors = {
252
+ [DEVICE_FILTERING_OPTIONS.$gt.key]: (val) => Number(val) || val,
253
+ [DEVICE_FILTERING_OPTIONS.$gte.key]: (val) => Number(val) || val,
254
+ [DEVICE_FILTERING_OPTIONS.$lt.key]: (val) => Number(val) || val,
255
+ [DEVICE_FILTERING_OPTIONS.$lte.key]: (val) => Number(val) || val,
256
+ [DEVICE_FILTERING_OPTIONS.$ltne.key]: (val) => Number(val) || val,
257
+ [DEVICE_FILTERING_OPTIONS.$in.key]: (val) => ("" + val).split(",").map((i) => i.trim()),
258
+ [DEVICE_FILTERING_OPTIONS.$nin.key]: (val) => ("" + val).split(",").map((i) => i.trim()),
259
+ [DEVICE_FILTERING_OPTIONS.$exists.key]: import_helpers.yes,
260
+ [DEVICE_FILTERING_OPTIONS.$nexists.key]: () => false
261
+ };
251
262
  var filterAliases = {
252
263
  $nexists: { alias: DEVICE_FILTERING_OPTIONS.$exists.key, value: false }
253
264
  };