@northern.tech/store 0.3.3 → 0.3.4

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 (207) hide show
  1. package/dist/BillingProfile-ChP2_Sqw.d.cts +45 -0
  2. package/dist/BillingProfile-ChP2_Sqw.d.ts +45 -0
  3. package/dist/actions.cjs +2 -6
  4. package/dist/actions.cjs.map +1 -1
  5. package/dist/actions.js +12 -12
  6. package/dist/api/general-api.cjs.map +1 -1
  7. package/dist/api/general-api.js +5 -5
  8. package/dist/api/users-api.cjs.map +1 -1
  9. package/dist/api/users-api.js +6 -6
  10. package/dist/appSlice/constants.cjs.map +1 -1
  11. package/dist/appSlice/constants.d.cts +7 -7
  12. package/dist/appSlice/constants.d.ts +7 -7
  13. package/dist/appSlice/constants.js +1 -1
  14. package/dist/appSlice/index.cjs +1 -3
  15. package/dist/appSlice/index.cjs.map +1 -1
  16. package/dist/appSlice/index.js +4 -4
  17. package/dist/appSlice/thunks.cjs +16 -26
  18. package/dist/appSlice/thunks.cjs.map +1 -1
  19. package/dist/appSlice/thunks.js +28 -27
  20. package/dist/auth.cjs.map +1 -1
  21. package/dist/auth.js +4 -4
  22. package/dist/{chunk-LGNOTPUG.js → chunk-4RWZR3BN.js} +23 -25
  23. package/dist/{chunk-LGNOTPUG.js.map → chunk-4RWZR3BN.js.map} +1 -1
  24. package/dist/{chunk-TUACATJA.js → chunk-7YZCUAXZ.js} +2 -2
  25. package/dist/{chunk-7PVGDMNM.js → chunk-AFICTIVU.js} +3 -5
  26. package/dist/{chunk-7PVGDMNM.js.map → chunk-AFICTIVU.js.map} +1 -1
  27. package/dist/{chunk-YT73QWCN.js → chunk-AUBJUUP3.js} +3 -3
  28. package/dist/{chunk-VMNMD6KF.js → chunk-AVX7VVOK.js} +3 -3
  29. package/dist/{chunk-4B3IMP4I.js → chunk-BSN2TOQC.js} +1 -1
  30. package/dist/{chunk-4B3IMP4I.js.map → chunk-BSN2TOQC.js.map} +1 -1
  31. package/dist/{chunk-X7IEZBM4.js → chunk-DCEKU6UV.js} +2 -2
  32. package/dist/{chunk-HPBE6KYY.js → chunk-DGQKXSRI.js} +3 -3
  33. package/dist/{chunk-2JHFUQ6B.js → chunk-EQLHIPPR.js} +88 -85
  34. package/dist/chunk-EQLHIPPR.js.map +1 -0
  35. package/dist/{chunk-LTKOV26W.js → chunk-EYCORLYU.js} +30 -28
  36. package/dist/chunk-EYCORLYU.js.map +1 -0
  37. package/dist/{chunk-WXL7PVI5.js → chunk-FQDSV3NK.js} +4 -4
  38. package/dist/{chunk-TI2RL5P2.js → chunk-FRSA2YB5.js} +3 -3
  39. package/dist/{chunk-DCK2DBOA.js → chunk-FVCYB5OP.js} +22 -24
  40. package/dist/{chunk-DCK2DBOA.js.map → chunk-FVCYB5OP.js.map} +1 -1
  41. package/dist/{chunk-AMGWP7A4.js → chunk-GAI4VYRZ.js} +2 -2
  42. package/dist/{chunk-4XJMRVFI.js → chunk-GWJIY56H.js} +10 -12
  43. package/dist/chunk-GWJIY56H.js.map +1 -0
  44. package/dist/{chunk-2CYOM4BK.js → chunk-JO33IORF.js} +2 -2
  45. package/dist/chunk-K4MMUDYT.js +391 -0
  46. package/dist/chunk-K4MMUDYT.js.map +1 -0
  47. package/dist/{chunk-YDS36ALB.js → chunk-L3SY3J5M.js} +3 -3
  48. package/dist/{chunk-JAROCU6M.js → chunk-NCSKCF2S.js} +3 -3
  49. package/dist/{chunk-CYV6632F.js → chunk-NOQR3TE7.js} +2 -2
  50. package/dist/{chunk-C5NEDBJI.js → chunk-OEP2D6QL.js} +3 -3
  51. package/dist/{chunk-C5NEDBJI.js.map → chunk-OEP2D6QL.js.map} +1 -1
  52. package/dist/{chunk-LEMVXAYP.js → chunk-PAIB5V27.js} +15 -15
  53. package/dist/{chunk-FGKMJS3B.js → chunk-RX32WLVJ.js} +2 -4
  54. package/dist/chunk-RX32WLVJ.js.map +1 -0
  55. package/dist/{chunk-QRGTG4YB.js → chunk-X3GZILYD.js} +3 -3
  56. package/dist/{chunk-UWMYZNUB.js → chunk-Y575RZHR.js} +1 -1
  57. package/dist/{chunk-UWMYZNUB.js.map → chunk-Y575RZHR.js.map} +1 -1
  58. package/dist/{chunk-7JKWI5FK.js → chunk-ZWOAFHAR.js} +2 -2
  59. package/dist/{chunk-DAPAXWA5.js → chunk-ZZMFXRQK.js} +12 -12
  60. package/dist/commonConstants.cjs.map +1 -1
  61. package/dist/commonConstants.d.cts +1 -1
  62. package/dist/commonConstants.d.ts +1 -1
  63. package/dist/commonConstants.js +1 -1
  64. package/dist/commonSelectors.cjs +7 -11
  65. package/dist/commonSelectors.cjs.map +1 -1
  66. package/dist/commonSelectors.d.cts +12 -11
  67. package/dist/commonSelectors.d.ts +12 -11
  68. package/dist/commonSelectors.js +11 -11
  69. package/dist/constants.cjs.map +1 -1
  70. package/dist/constants.js +3 -3
  71. package/dist/deploymentdevicehook.cjs +16 -26
  72. package/dist/deploymentdevicehook.cjs.map +1 -1
  73. package/dist/deploymentdevicehook.js +30 -29
  74. package/dist/deploymentdevicehook.js.map +1 -1
  75. package/dist/deploymentsSlice/constants.cjs.map +1 -1
  76. package/dist/deploymentsSlice/constants.js +3 -3
  77. package/dist/deploymentsSlice/index.cjs.map +1 -1
  78. package/dist/deploymentsSlice/index.js +4 -4
  79. package/dist/deploymentsSlice/selectors.cjs.map +1 -1
  80. package/dist/deploymentsSlice/selectors.js +4 -4
  81. package/dist/deploymentsSlice/thunks.cjs +16 -26
  82. package/dist/deploymentsSlice/thunks.cjs.map +1 -1
  83. package/dist/deploymentsSlice/thunks.js +28 -27
  84. package/dist/devicesSlice/constants.cjs.map +1 -1
  85. package/dist/devicesSlice/constants.js +3 -3
  86. package/dist/devicesSlice/index.cjs.map +1 -1
  87. package/dist/devicesSlice/index.js +4 -4
  88. package/dist/devicesSlice/selectors.cjs.map +1 -1
  89. package/dist/devicesSlice/selectors.js +4 -4
  90. package/dist/devicesSlice/thunks.cjs +16 -26
  91. package/dist/devicesSlice/thunks.cjs.map +1 -1
  92. package/dist/devicesSlice/thunks.js +28 -27
  93. package/dist/liststatehook.cjs +971 -0
  94. package/dist/liststatehook.cjs.map +1 -0
  95. package/dist/liststatehook.d.cts +246 -0
  96. package/dist/liststatehook.d.ts +246 -0
  97. package/dist/liststatehook.js +88 -0
  98. package/dist/liststatehook.js.map +1 -0
  99. package/dist/locationutils.cjs +942 -0
  100. package/dist/locationutils.cjs.map +1 -0
  101. package/dist/locationutils.d.cts +113 -0
  102. package/dist/locationutils.d.ts +113 -0
  103. package/dist/locationutils.js +46 -0
  104. package/dist/locationutils.js.map +1 -0
  105. package/dist/monitorSlice/constants.cjs.map +1 -1
  106. package/dist/monitorSlice/constants.js +3 -3
  107. package/dist/monitorSlice/index.cjs.map +1 -1
  108. package/dist/monitorSlice/index.js +4 -4
  109. package/dist/monitorSlice/thunks.cjs +15 -25
  110. package/dist/monitorSlice/thunks.cjs.map +1 -1
  111. package/dist/monitorSlice/thunks.js +24 -24
  112. package/dist/onboardingSlice/index.cjs +1 -3
  113. package/dist/onboardingSlice/index.cjs.map +1 -1
  114. package/dist/onboardingSlice/index.js +1 -1
  115. package/dist/onboardingSlice/thunks.cjs +22 -35
  116. package/dist/onboardingSlice/thunks.cjs.map +1 -1
  117. package/dist/onboardingSlice/thunks.d.cts +1 -2
  118. package/dist/onboardingSlice/thunks.d.ts +1 -2
  119. package/dist/onboardingSlice/thunks.js +28 -29
  120. package/dist/organizationSlice/constants.cjs.map +1 -1
  121. package/dist/organizationSlice/constants.js +3 -3
  122. package/dist/organizationSlice/index.cjs.map +1 -1
  123. package/dist/organizationSlice/index.d.cts +2 -1
  124. package/dist/organizationSlice/index.d.ts +2 -1
  125. package/dist/organizationSlice/index.js +4 -4
  126. package/dist/organizationSlice/selectors.cjs.map +1 -1
  127. package/dist/organizationSlice/selectors.d.cts +2 -1
  128. package/dist/organizationSlice/selectors.d.ts +2 -1
  129. package/dist/organizationSlice/selectors.js +4 -4
  130. package/dist/organizationSlice/thunks.cjs +38 -44
  131. package/dist/organizationSlice/thunks.cjs.map +1 -1
  132. package/dist/organizationSlice/thunks.d.cts +5 -5
  133. package/dist/organizationSlice/thunks.d.ts +5 -5
  134. package/dist/organizationSlice/thunks.js +28 -27
  135. package/dist/organizationSlice/types.cjs.map +1 -1
  136. package/dist/organizationSlice/types.d.cts +3 -112
  137. package/dist/organizationSlice/types.d.ts +3 -112
  138. package/dist/releasesSlice/index.cjs.map +1 -1
  139. package/dist/releasesSlice/index.js +4 -4
  140. package/dist/releasesSlice/selectors.cjs +6 -8
  141. package/dist/releasesSlice/selectors.cjs.map +1 -1
  142. package/dist/releasesSlice/selectors.js +5 -5
  143. package/dist/releasesSlice/thunks.cjs +51 -46
  144. package/dist/releasesSlice/thunks.cjs.map +1 -1
  145. package/dist/releasesSlice/thunks.js +25 -24
  146. package/dist/selectors.cjs +7 -11
  147. package/dist/selectors.cjs.map +1 -1
  148. package/dist/selectors.d.cts +2 -1
  149. package/dist/selectors.d.ts +2 -1
  150. package/dist/selectors.js +37 -37
  151. package/dist/sockethook.cjs +529 -0
  152. package/dist/sockethook.cjs.map +1 -0
  153. package/dist/sockethook.d.cts +10 -0
  154. package/dist/sockethook.d.ts +10 -0
  155. package/dist/sockethook.js +141 -0
  156. package/dist/sockethook.js.map +1 -0
  157. package/dist/store.cjs +2 -6
  158. package/dist/store.cjs.map +1 -1
  159. package/dist/store.d.cts +2 -1
  160. package/dist/store.d.ts +2 -1
  161. package/dist/store.js +14 -14
  162. package/dist/storehooks.cjs +86 -90
  163. package/dist/storehooks.cjs.map +1 -1
  164. package/dist/storehooks.js +37 -48
  165. package/dist/storehooks.js.map +1 -1
  166. package/dist/thunks.cjs +83 -79
  167. package/dist/thunks.cjs.map +1 -1
  168. package/dist/thunks.d.cts +2 -2
  169. package/dist/thunks.d.ts +2 -2
  170. package/dist/thunks.js +28 -29
  171. package/dist/types-DBj17FZO.d.cts +135 -0
  172. package/dist/types-DnfZa6xd.d.ts +135 -0
  173. package/dist/usersSlice/constants.cjs.map +1 -1
  174. package/dist/usersSlice/constants.d.cts +6 -6
  175. package/dist/usersSlice/constants.d.ts +6 -6
  176. package/dist/usersSlice/constants.js +3 -3
  177. package/dist/usersSlice/index.cjs.map +1 -1
  178. package/dist/usersSlice/index.js +4 -4
  179. package/dist/usersSlice/selectors.cjs.map +1 -1
  180. package/dist/usersSlice/selectors.js +5 -5
  181. package/dist/usersSlice/thunks.cjs +16 -26
  182. package/dist/usersSlice/thunks.cjs.map +1 -1
  183. package/dist/usersSlice/thunks.js +28 -27
  184. package/dist/utils.cjs +6 -8
  185. package/dist/utils.cjs.map +1 -1
  186. package/dist/utils.js +4 -4
  187. package/package.json +6 -5
  188. package/dist/chunk-2JHFUQ6B.js.map +0 -1
  189. package/dist/chunk-4XJMRVFI.js.map +0 -1
  190. package/dist/chunk-FGKMJS3B.js.map +0 -1
  191. package/dist/chunk-LTKOV26W.js.map +0 -1
  192. /package/dist/{chunk-TUACATJA.js.map → chunk-7YZCUAXZ.js.map} +0 -0
  193. /package/dist/{chunk-YT73QWCN.js.map → chunk-AUBJUUP3.js.map} +0 -0
  194. /package/dist/{chunk-VMNMD6KF.js.map → chunk-AVX7VVOK.js.map} +0 -0
  195. /package/dist/{chunk-X7IEZBM4.js.map → chunk-DCEKU6UV.js.map} +0 -0
  196. /package/dist/{chunk-HPBE6KYY.js.map → chunk-DGQKXSRI.js.map} +0 -0
  197. /package/dist/{chunk-WXL7PVI5.js.map → chunk-FQDSV3NK.js.map} +0 -0
  198. /package/dist/{chunk-TI2RL5P2.js.map → chunk-FRSA2YB5.js.map} +0 -0
  199. /package/dist/{chunk-AMGWP7A4.js.map → chunk-GAI4VYRZ.js.map} +0 -0
  200. /package/dist/{chunk-2CYOM4BK.js.map → chunk-JO33IORF.js.map} +0 -0
  201. /package/dist/{chunk-YDS36ALB.js.map → chunk-L3SY3J5M.js.map} +0 -0
  202. /package/dist/{chunk-JAROCU6M.js.map → chunk-NCSKCF2S.js.map} +0 -0
  203. /package/dist/{chunk-CYV6632F.js.map → chunk-NOQR3TE7.js.map} +0 -0
  204. /package/dist/{chunk-LEMVXAYP.js.map → chunk-PAIB5V27.js.map} +0 -0
  205. /package/dist/{chunk-QRGTG4YB.js.map → chunk-X3GZILYD.js.map} +0 -0
  206. /package/dist/{chunk-7JKWI5FK.js.map → chunk-ZWOAFHAR.js.map} +0 -0
  207. /package/dist/{chunk-DAPAXWA5.js.map → chunk-ZZMFXRQK.js.map} +0 -0
@@ -2,7 +2,7 @@ import * as _reduxjs_toolkit from '@reduxjs/toolkit';
2
2
  import * as redux_thunk from 'redux-thunk';
3
3
  import * as redux from 'redux';
4
4
  import { AvailablePlans } from '../appSlice/constants.cjs';
5
- import { BillingProfile } from './types.cjs';
5
+ import { B as BillingProfile } from '../BillingProfile-ChP2_Sqw.cjs';
6
6
  import '@mui/material/OverridableComponent';
7
7
  import '@mui/material';
8
8
 
@@ -206,9 +206,9 @@ declare const setTenantsListState: _reduxjs_toolkit.AsyncThunk<{
206
206
  rejectedMeta?: unknown;
207
207
  }>;
208
208
  interface editTenantBody {
209
+ id: string;
209
210
  name: string;
210
211
  newLimit: number;
211
- id: string;
212
212
  }
213
213
  declare const editTenantDeviceLimit: _reduxjs_toolkit.AsyncThunk<[{
214
214
  payload: any;
@@ -299,14 +299,14 @@ declare const sendSupportMessage: _reduxjs_toolkit.AsyncThunk<{
299
299
  rejectedMeta?: unknown;
300
300
  }>;
301
301
  interface requestPlanChangePayload {
302
- tenantId: string;
303
302
  content: {
304
- current_plan: string;
305
- requested_plan: string;
306
303
  current_addons: string;
304
+ current_plan: string;
307
305
  requested_addons: string;
306
+ requested_plan: string;
308
307
  user_message: string;
309
308
  };
309
+ tenantId: string;
310
310
  }
311
311
  declare const requestPlanChange: _reduxjs_toolkit.AsyncThunk<{
312
312
  payload: any;
@@ -2,7 +2,7 @@ import * as _reduxjs_toolkit from '@reduxjs/toolkit';
2
2
  import * as redux_thunk from 'redux-thunk';
3
3
  import * as redux from 'redux';
4
4
  import { AvailablePlans } from '../appSlice/constants.js';
5
- import { BillingProfile } from './types.js';
5
+ import { B as BillingProfile } from '../BillingProfile-ChP2_Sqw.js';
6
6
  import '@mui/material/OverridableComponent';
7
7
  import '@mui/material';
8
8
 
@@ -206,9 +206,9 @@ declare const setTenantsListState: _reduxjs_toolkit.AsyncThunk<{
206
206
  rejectedMeta?: unknown;
207
207
  }>;
208
208
  interface editTenantBody {
209
+ id: string;
209
210
  name: string;
210
211
  newLimit: number;
211
- id: string;
212
212
  }
213
213
  declare const editTenantDeviceLimit: _reduxjs_toolkit.AsyncThunk<[{
214
214
  payload: any;
@@ -299,14 +299,14 @@ declare const sendSupportMessage: _reduxjs_toolkit.AsyncThunk<{
299
299
  rejectedMeta?: unknown;
300
300
  }>;
301
301
  interface requestPlanChangePayload {
302
- tenantId: string;
303
302
  content: {
304
- current_plan: string;
305
- requested_plan: string;
306
303
  current_addons: string;
304
+ current_plan: string;
307
305
  requested_addons: string;
306
+ requested_plan: string;
308
307
  user_message: string;
309
308
  };
309
+ tenantId: string;
310
310
  }
311
311
  declare const requestPlanChange: _reduxjs_toolkit.AsyncThunk<{
312
312
  payload: any;
@@ -31,38 +31,39 @@ import {
31
31
  startUpgrade,
32
32
  storeSsoConfig,
33
33
  tenantDataDivergedMessage
34
- } from "../chunk-2JHFUQ6B.js";
35
- import "../chunk-LTKOV26W.js";
36
- import "../chunk-LGNOTPUG.js";
37
- import "../chunk-JAROCU6M.js";
38
- import "../chunk-YT73QWCN.js";
34
+ } from "../chunk-EQLHIPPR.js";
35
+ import "../chunk-EYCORLYU.js";
36
+ import "../chunk-4RWZR3BN.js";
37
+ import "../chunk-NCSKCF2S.js";
38
+ import "../chunk-AUBJUUP3.js";
39
39
  import "../chunk-NMAXZ3ZY.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";
45
- import "../chunk-JIS4PA3R.js";
46
- import "../chunk-YDS36ALB.js";
40
+ import "../chunk-PAIB5V27.js";
41
+ import "../chunk-ZZMFXRQK.js";
42
+ import "../chunk-DGQKXSRI.js";
43
+ import "../chunk-7YZCUAXZ.js";
44
+ import "../chunk-FRSA2YB5.js";
45
+ import "../chunk-NOQR3TE7.js";
46
+ import "../chunk-AVX7VVOK.js";
47
+ import "../chunk-RX32WLVJ.js";
48
+ import "../chunk-X3GZILYD.js";
49
+ import "../chunk-AFICTIVU.js";
50
+ import "../chunk-GAI4VYRZ.js";
51
+ import "../chunk-FVCYB5OP.js";
52
+ import "../chunk-ZWOAFHAR.js";
53
+ import "../chunk-FQDSV3NK.js";
54
+ import "../chunk-JO33IORF.js";
55
+ import "../chunk-DCEKU6UV.js";
47
56
  import "../chunk-YO22XLHI.js";
48
- import "../chunk-4XJMRVFI.js";
57
+ import "../chunk-JIS4PA3R.js";
49
58
  import "../chunk-LIJIIRON.js";
50
- import "../chunk-LEMVXAYP.js";
51
- import "../chunk-DAPAXWA5.js";
52
- import "../chunk-TUACATJA.js";
53
- import "../chunk-TI2RL5P2.js";
54
- import "../chunk-CYV6632F.js";
55
- import "../chunk-HPBE6KYY.js";
56
- import "../chunk-FGKMJS3B.js";
57
- import "../chunk-QRGTG4YB.js";
58
- import "../chunk-VMNMD6KF.js";
59
- import "../chunk-7PVGDMNM.js";
60
- import "../chunk-AMGWP7A4.js";
61
- import "../chunk-C5NEDBJI.js";
59
+ import "../chunk-L3SY3J5M.js";
60
+ import "../chunk-GWJIY56H.js";
61
+ import "../chunk-K4MMUDYT.js";
62
+ import "../chunk-OEP2D6QL.js";
62
63
  import "../chunk-CK6YE6AN.js";
63
64
  import "../chunk-MRCFLG45.js";
64
- import "../chunk-UWMYZNUB.js";
65
- import "../chunk-4B3IMP4I.js";
65
+ import "../chunk-Y575RZHR.js";
66
+ import "../chunk-BSN2TOQC.js";
66
67
  export {
67
68
  addTenant,
68
69
  cancelRequest,
@@ -1 +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":[]}
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 } from '@northern.tech/store/appSlice/constants';\n\nimport { ApiQuota } from '../api/types/ApiQuota';\nimport { Tenant } from '../api/types/Tenant';\n\n//TODO: improve types\ninterface Card {\n brand: string;\n expiration: {\n month: number;\n year: number;\n };\n last4: string;\n}\n\ninterface SortOptions {\n direction: 'asc' | 'desc';\n key?: string;\n}\n\ninterface AuditLogSelectionState {\n detail?: string;\n endDate?: string;\n selectedIssue?: string;\n sort: SortOptions;\n startDate?: string;\n total: number;\n type?: string;\n user?: string;\n}\n\ninterface AuditLog {\n events: Array<any>;\n selectionState: AuditLogSelectionState;\n}\n\ninterface ExternalDeviceIntegration {\n connection_string: string;\n id: string;\n provider: string;\n}\n\ninterface Webhook {\n events: Array<any>;\n eventsTotal: number;\n}\n\ninterface TenantList {\n selectedTenant: Tenant | null;\n sort: SortOptions;\n tenants: Tenant[];\n total: number;\n}\n\nexport interface OrganizationState {\n auditlog: AuditLog;\n card: Card;\n externalDeviceIntegrations: ExternalDeviceIntegration[];\n intentId: string | null;\n organization: Organization;\n ssoConfigs: any[];\n tenantList: TenantList;\n webhooks: Webhook;\n}\n\ninterface ApiLimits {\n devices: {\n bursts: any[];\n quota: ApiQuota;\n };\n management: {\n bursts: any[];\n quota: ApiQuota;\n };\n}\n\nexport interface Addon {\n enabled: boolean;\n name: AvailableAddon;\n}\n\nexport interface Organization extends Tenant {\n addons: Addon[];\n api_limits: ApiLimits;\n created_at: string;\n id: string;\n name: string;\n status: 'active' | 'inactive';\n tenant_token: string;\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
@@ -1,114 +1,5 @@
1
- import { AvailableAddon, AvailablePlans } from '../appSlice/constants.cjs';
1
+ import '../appSlice/constants.cjs';
2
+ export { A as Addon, O as Organization, a as OrganizationState } from '../types-DBj17FZO.cjs';
2
3
  import '@mui/material/OverridableComponent';
3
4
  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 };
5
+ import '../BillingProfile-ChP2_Sqw.cjs';
@@ -1,114 +1,5 @@
1
- import { AvailableAddon, AvailablePlans } from '../appSlice/constants.js';
1
+ import '../appSlice/constants.js';
2
+ export { A as Addon, O as Organization, a as OrganizationState } from '../types-DnfZa6xd.js';
2
3
  import '@mui/material/OverridableComponent';
3
4
  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 };
5
+ import '../BillingProfile-ChP2_Sqw.js';
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/releasesSlice/index.ts","../../src/commonConstants.tsx"],"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.\n// @ts-nocheck\nimport { DEVICE_LIST_DEFAULTS, SORTING_OPTIONS } from '@northern.tech/store/constants';\nimport { createSlice } from '@reduxjs/toolkit';\n\nexport const sliceName = 'releases';\n\nexport const initialState = {\n /*\n * Return list of saved artifacts objects\n */\n /*\n * return list of artifacts where duplicate names are collated with device compatibility lists combined\n */\n // artifacts: AppStore.getCollatedArtifacts(AppStore.getArtifactsRepo()),\n artifacts: [],\n /*\n * Return list of saved release objects\n */\n byId: {\n /*\n [releaseName]: {\n artifacts: [\n {\n id: '',\n name: '',\n description: '',\n device_types_compatible: [],\n ...\n updates: [{\n files: [\n { size: 123, name: '' }\n ],\n type_info: { type: '' }\n }],\n url: '' // optional\n }\n ],\n modified: ''\n device_types_compatible,\n name: '',\n tags: ['something'],\n notes: ''\n }\n */\n },\n releasesList: {\n ...DEVICE_LIST_DEFAULTS,\n searchedIds: [],\n releaseIds: [],\n selection: [],\n sort: {\n direction: SORTING_OPTIONS.desc,\n key: 'modified'\n },\n isLoading: undefined,\n searchTerm: '',\n searchTotal: 0,\n selectedTags: [],\n total: 0,\n type: ''\n },\n tags: [],\n updateTypes: [],\n /*\n * Return single release with corresponding Artifacts\n */\n selectedRelease: null\n};\n\nexport const releaseSlice = createSlice({\n name: sliceName,\n initialState,\n reducers: {\n receiveRelease: (state, action) => {\n const { name } = action.payload;\n state.byId[name] = action.payload;\n },\n receiveReleases: (state, action) => {\n state.byId = action.payload;\n },\n receiveReleaseTags: (state, action) => {\n state.tags = action.payload;\n },\n receiveReleaseTypes: (state, action) => {\n state.updateTypes = action.payload;\n },\n removeRelease: (state, action) => {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const { [action.payload]: toBeRemoved, ...byId } = state.byId;\n state.byId = byId;\n state.selectedRelease = action.payload === state.selectedRelease ? null : state.selectedRelease;\n },\n selectedRelease: (state, action) => {\n state.selectedRelease = action.payload;\n },\n setReleaseListState: (state, action) => {\n state.releasesList = action.payload;\n }\n }\n});\n\nexport const actions = releaseSlice.actions;\nexport default releaseSlice.reducer;\n","// Copyright 2024 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n// @ts-nocheck\nimport React from 'react';\n\nimport { mdiAws as AWS, mdiMicrosoftAzure as Azure } from '@mdi/js';\n\nexport const DEVICE_LIST_DEFAULTS = {\n page: 1,\n perPage: 20\n};\n\nexport const timeUnits = {\n days: 'days',\n minutes: 'minutes',\n hours: 'hours'\n};\n\nexport const ALL_DEVICES = 'All devices';\nexport const UNGROUPED_GROUP = { id: '*|=ungrouped=|*', name: 'Unassigned' };\n\nexport const DEVICE_LIST_MAXIMUM_LENGTH = 50;\n\nexport const DEVICE_FILTERING_OPTIONS = {\n $eq: { key: '$eq', title: 'equals', shortform: '=' },\n $ne: { key: '$ne', title: 'not equal', shortform: '!=' },\n $gt: {\n key: '$gt',\n title: '>',\n shortform: '>',\n help: 'The \"greater than\" operator can work both on numbers and strings. In the latter case, the operator applies the lexicographical order to the value strings.'\n },\n $gte: {\n title: '>=',\n shortform: '>=',\n help: 'The \"greater than or equal\" operator can work both on numbers and strings. In the latter case, the operator applies the lexicographical order to the value strings.'\n },\n $lt: {\n key: '$lt',\n title: '<',\n shortform: '<',\n help: 'The \"lesser than\" operator can work both on numbers and strings. In the latter case, the operator applies the lexicographical order to the value strings.'\n },\n $lte: {\n title: '<=',\n shortform: '<=',\n help: 'The \"lesser than or equal\" operator can work both on numbers and strings. In the latter case, the operator applies the lexicographical order to the value strings.'\n },\n $ltne: {\n key: '$ltne',\n title: '$ltne',\n shortform: 'ltne',\n help: 'The \"lesser than or does not exist\" operator can work both on numbers and strings. In the latter case, the operator applies the lexicographical order to the value strings.'\n },\n $in: {\n key: '$in',\n title: 'in',\n shortform: 'in',\n help: 'The \"in\" operator accepts a list of comma-separated values. It matches if the selected field is equal to one of the specified values.'\n },\n $nin: {\n key: '$nin',\n title: 'not in',\n shortform: 'not in',\n help: `The \"not in\" operator accepts a list of comma-separated values. It matches if the selected field's value is not equal to any of the specified options.`\n },\n $exists: {\n key: '$exists',\n title: 'exists',\n shortform: 'exists',\n value: true,\n help: `The \"exists\" operator matches if the selected field's value has a value. No value needs to be provided for this operator.`\n },\n $nexists: {\n key: '$nexists',\n title: `doesn't exist`,\n shortform: `doesn't exist`,\n value: true,\n help: `The \"doesn't exist\" operator matches if the selected field's value has no value. No value needs to be provided for this operator.`\n },\n $regex: {\n key: '$regex',\n title: `matches regular expression`,\n shortform: `matches`,\n help: `The \"regular expression\" operator matches the selected field's value with a Perl compatible regular expression (PCRE), automatically anchored by ^. If the regular expression is not valid, the filter will produce no results. If you need to specify options and flags, you can provide the full regex in the format of /regex/flags, for example.`\n }\n};\n\nexport const DEVICE_ISSUE_OPTIONS = {\n issues: {\n isCategory: true,\n key: 'issues',\n title: 'Devices with issues',\n filterRule: {}\n },\n offline: {\n issueCategory: 'issues',\n key: 'offline',\n needsFullFiltering: true,\n needsMonitor: false,\n needsReporting: false,\n filterRule: {\n scope: 'system',\n key: 'check_in_time',\n operator: DEVICE_FILTERING_OPTIONS.$ltne.key,\n value: ({ offlineThreshold }) => offlineThreshold\n },\n title: 'Offline devices'\n },\n failedLastUpdate: {\n issueCategory: 'issues',\n key: 'failedLastUpdate',\n needsFullFiltering: false,\n needsMonitor: false,\n needsReporting: true,\n filterRule: { scope: 'monitor', key: 'failed_last_update', operator: DEVICE_FILTERING_OPTIONS.$eq.key, value: true },\n title: 'Deployment failed'\n },\n monitoring: {\n issueCategory: 'issues',\n key: 'monitoring',\n needsFullFiltering: false,\n needsMonitor: true,\n needsReporting: false,\n filterRule: { scope: 'monitor', key: 'alerts', operator: DEVICE_FILTERING_OPTIONS.$eq.key, value: true },\n title: 'Monitoring alert'\n },\n authRequests: {\n key: 'authRequests',\n needsFullFiltering: false,\n needsMonitor: false,\n needsReporting: true,\n filterRule: { scope: 'monitor', key: 'auth_requests', operator: DEVICE_FILTERING_OPTIONS.$gt.key, value: 1 },\n title: 'Devices with new authentication requests'\n },\n gatewayDevices: {\n key: 'gatewayDevices',\n needsFullFiltering: false,\n needsMonitor: false,\n needsReporting: true,\n filterRule: { scope: 'inventory', key: 'mender_is_gateway', operator: DEVICE_FILTERING_OPTIONS.$eq.key, value: 'true' },\n title: 'Gateway devices'\n }\n};\nconst oneSecond = 1000;\nexport const TIMEOUTS = {\n debounceDefault: 700,\n debounceShort: 300,\n halfASecond: 0.5 * oneSecond,\n oneSecond,\n twoSeconds: 2 * oneSecond,\n threeSeconds: 3 * oneSecond,\n fiveSeconds: 5 * oneSecond,\n refreshDefault: 10 * oneSecond,\n refreshLong: 60 * oneSecond\n};\n\nexport const SORTING_OPTIONS = {\n asc: 'asc',\n desc: 'desc'\n};\n\nexport const DEVICE_ONLINE_CUTOFF = { interval: 1, intervalName: timeUnits.days };\n\nexport const ATTRIBUTE_SCOPES = {\n inventory: 'inventory',\n identity: 'identity',\n monitor: 'monitor',\n system: 'system',\n tags: 'tags'\n};\n\nexport const defaultIdAttribute = Object.freeze({ attribute: 'id', scope: ATTRIBUTE_SCOPES.identity });\n\nconst credentialTypes = {\n aws: 'aws',\n http: 'http',\n sas: 'sas',\n x509: 'x509'\n};\nexport const EXTERNAL_PROVIDER = {\n 'iot-core': {\n credentialsType: credentialTypes.aws,\n icon: AWS,\n title: 'AWS IoT Core',\n twinTitle: 'Device Shadow',\n provider: 'iot-core',\n enabled: true,\n deviceTwin: true,\n configHint: <>For help finding your AWS IoT Core connection string, check the AWS IoT documentation.</>\n },\n 'iot-hub': {\n credentialsType: credentialTypes.sas,\n icon: Azure,\n title: 'Azure IoT Hub',\n twinTitle: 'Device Twin',\n provider: 'iot-hub',\n enabled: true,\n deviceTwin: true,\n configHint: (\n <span>\n For help finding your Azure IoT Hub connection string, look under &apos;Shared access policies&apos; in the Microsoft Azure UI as described{' '}\n {\n <a\n href=\"https://devblogs.microsoft.com/iotdev/understand-different-connection-strings-in-azure-iot-hub/#iothubconn\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n >\n here\n </a>\n }\n .\n </span>\n )\n },\n webhook: {\n credentialsType: credentialTypes.http,\n deviceTwin: false,\n // disable the webhook provider here, since it is treated different than other integrations, with a custom configuration & management view, etc.\n enabled: false,\n provider: 'webhook'\n }\n};\nexport const MAX_PAGE_SIZE = 500;\n\nexport const ALL_RELEASES = 'All releases';\n\nexport type UiPermissionsDefinition = Readonly<{\n auditlog: string[];\n deployments?: string[]; // deployments are so far only covered indirectly through releases + device group permissions\n groups: Record<string, string[]>;\n releases: Record<string, string[]>;\n tenantManagement: string[];\n userManagement: string[];\n}>;\n\nexport type UiRoleDefinition = {\n name: string;\n description: string;\n editable?: boolean;\n isCustom?: boolean;\n permissions?: object[];\n uiPermissions: UiPermissionsDefinition;\n};\n\nexport const emptyUiPermissions: UiPermissionsDefinition = Object.freeze({\n auditlog: [],\n deployments: [],\n groups: Object.freeze({}),\n releases: Object.freeze({}),\n tenantManagement: [],\n userManagement: []\n});\n\nexport const emptyRole: UiRoleDefinition = Object.freeze({\n name: undefined,\n description: '',\n permissions: [],\n uiPermissions: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AA,IACb,cAAc,CAAC;AAAA,IACf,OAAO;AAAA,IACP,MAAM;AAAA,EACR;AAAA,EACA,MAAM,CAAC;AAAA,EACP,aAAa,CAAC;AAAA;AAAA;AAAA;AAAA,EAId,iBAAiB;AACnB;AAEO,IAAM,mBAAe,4BAAY;AAAA,EACtC,MAAM;AAAA,EACN;AAAA,EACA,UAAU;AAAA,IACR,gBAAgB,CAAC,OAAO,WAAW;AACjC,YAAM,EAAE,KAAK,IAAI,OAAO;AACxB,YAAM,KAAK,IAAI,IAAI,OAAO;AAAA,IAC5B;AAAA,IACA,iBAAiB,CAAC,OAAO,WAAW;AAClC,YAAM,OAAO,OAAO;AAAA,IACtB;AAAA,IACA,oBAAoB,CAAC,OAAO,WAAW;AACrC,YAAM,OAAO,OAAO;AAAA,IACtB;AAAA,IACA,qBAAqB,CAAC,OAAO,WAAW;AACtC,YAAM,cAAc,OAAO;AAAA,IAC7B;AAAA,IACA,eAAe,CAAC,OAAO,WAAW;AAEhC,YAAM,EAAE,CAAC,OAAO,OAAO,GAAG,aAAa,GAAG,KAAK,IAAI,MAAM;AACzD,YAAM,OAAO;AACb,YAAM,kBAAkB,OAAO,YAAY,MAAM,kBAAkB,OAAO,MAAM;AAAA,IAClF;AAAA,IACA,iBAAiB,CAAC,OAAO,WAAW;AAClC,YAAM,kBAAkB,OAAO;AAAA,IACjC;AAAA,IACA,qBAAqB,CAAC,OAAO,WAAW;AACtC,YAAM,eAAe,OAAO;AAAA,IAC9B;AAAA,EACF;AACF,CAAC;AAEM,IAAM,UAAU,aAAa;AACpC,IAAO,wBAAQ,aAAa;","names":["AWS","Azure"]}
1
+ {"version":3,"sources":["../../src/releasesSlice/index.ts","../../src/commonConstants.tsx"],"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.\n// @ts-nocheck\nimport { DEVICE_LIST_DEFAULTS, SORTING_OPTIONS } from '@northern.tech/store/constants';\nimport { createSlice } from '@reduxjs/toolkit';\n\nexport const sliceName = 'releases';\n\nexport const initialState = {\n /*\n * Return list of saved artifacts objects\n */\n /*\n * return list of artifacts where duplicate names are collated with device compatibility lists combined\n */\n // artifacts: AppStore.getCollatedArtifacts(AppStore.getArtifactsRepo()),\n artifacts: [],\n /*\n * Return list of saved release objects\n */\n byId: {\n /*\n [releaseName]: {\n artifacts: [\n {\n id: '',\n name: '',\n description: '',\n device_types_compatible: [],\n ...\n updates: [{\n files: [\n { size: 123, name: '' }\n ],\n type_info: { type: '' }\n }],\n url: '' // optional\n }\n ],\n modified: ''\n device_types_compatible,\n name: '',\n tags: ['something'],\n notes: ''\n }\n */\n },\n releasesList: {\n ...DEVICE_LIST_DEFAULTS,\n searchedIds: [],\n releaseIds: [],\n selection: [],\n sort: {\n direction: SORTING_OPTIONS.desc,\n key: 'modified'\n },\n isLoading: undefined,\n searchTerm: '',\n searchTotal: 0,\n selectedTags: [],\n total: 0,\n type: ''\n },\n tags: [],\n updateTypes: [],\n /*\n * Return single release with corresponding Artifacts\n */\n selectedRelease: null\n};\n\nexport const releaseSlice = createSlice({\n name: sliceName,\n initialState,\n reducers: {\n receiveRelease: (state, action) => {\n const { name } = action.payload;\n state.byId[name] = action.payload;\n },\n receiveReleases: (state, action) => {\n state.byId = action.payload;\n },\n receiveReleaseTags: (state, action) => {\n state.tags = action.payload;\n },\n receiveReleaseTypes: (state, action) => {\n state.updateTypes = action.payload;\n },\n removeRelease: (state, action) => {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const { [action.payload]: toBeRemoved, ...byId } = state.byId;\n state.byId = byId;\n state.selectedRelease = action.payload === state.selectedRelease ? null : state.selectedRelease;\n },\n selectedRelease: (state, action) => {\n state.selectedRelease = action.payload;\n },\n setReleaseListState: (state, action) => {\n state.releasesList = action.payload;\n }\n }\n});\n\nexport const actions = releaseSlice.actions;\nexport default releaseSlice.reducer;\n","// Copyright 2024 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n// @ts-nocheck\nimport React from 'react';\n\nimport { mdiAws as AWS, mdiMicrosoftAzure as Azure } from '@mdi/js';\n\nexport const DEVICE_LIST_DEFAULTS = {\n page: 1,\n perPage: 20\n};\n\nexport const timeUnits = {\n days: 'days',\n minutes: 'minutes',\n hours: 'hours'\n};\n\nexport const ALL_DEVICES = 'All devices';\nexport const UNGROUPED_GROUP = { id: '*|=ungrouped=|*', name: 'Unassigned' };\n\nexport const DEVICE_LIST_MAXIMUM_LENGTH = 50;\n\nexport const DEVICE_FILTERING_OPTIONS = {\n $eq: { key: '$eq', title: 'equals', shortform: '=' },\n $ne: { key: '$ne', title: 'not equal', shortform: '!=' },\n $gt: {\n key: '$gt',\n title: '>',\n shortform: '>',\n help: 'The \"greater than\" operator can work both on numbers and strings. In the latter case, the operator applies the lexicographical order to the value strings.'\n },\n $gte: {\n title: '>=',\n shortform: '>=',\n help: 'The \"greater than or equal\" operator can work both on numbers and strings. In the latter case, the operator applies the lexicographical order to the value strings.'\n },\n $lt: {\n key: '$lt',\n title: '<',\n shortform: '<',\n help: 'The \"lesser than\" operator can work both on numbers and strings. In the latter case, the operator applies the lexicographical order to the value strings.'\n },\n $lte: {\n title: '<=',\n shortform: '<=',\n help: 'The \"lesser than or equal\" operator can work both on numbers and strings. In the latter case, the operator applies the lexicographical order to the value strings.'\n },\n $ltne: {\n key: '$ltne',\n title: '$ltne',\n shortform: 'ltne',\n help: 'The \"lesser than or does not exist\" operator can work both on numbers and strings. In the latter case, the operator applies the lexicographical order to the value strings.'\n },\n $in: {\n key: '$in',\n title: 'in',\n shortform: 'in',\n help: 'The \"in\" operator accepts a list of comma-separated values. It matches if the selected field is equal to one of the specified values.'\n },\n $nin: {\n key: '$nin',\n title: 'not in',\n shortform: 'not in',\n help: `The \"not in\" operator accepts a list of comma-separated values. It matches if the selected field's value is not equal to any of the specified options.`\n },\n $exists: {\n key: '$exists',\n title: 'exists',\n shortform: 'exists',\n value: true,\n help: `The \"exists\" operator matches if the selected field's value has a value. No value needs to be provided for this operator.`\n },\n $nexists: {\n key: '$nexists',\n title: `doesn't exist`,\n shortform: `doesn't exist`,\n value: true,\n help: `The \"doesn't exist\" operator matches if the selected field's value has no value. No value needs to be provided for this operator.`\n },\n $regex: {\n key: '$regex',\n title: `matches regular expression`,\n shortform: `matches`,\n help: `The \"regular expression\" operator matches the selected field's value with a Perl compatible regular expression (PCRE), automatically anchored by ^. If the regular expression is not valid, the filter will produce no results. If you need to specify options and flags, you can provide the full regex in the format of /regex/flags, for example.`\n }\n};\n\nexport const DEVICE_ISSUE_OPTIONS = {\n issues: {\n isCategory: true,\n key: 'issues',\n title: 'Devices with issues',\n filterRule: {}\n },\n offline: {\n issueCategory: 'issues',\n key: 'offline',\n needsFullFiltering: true,\n needsMonitor: false,\n needsReporting: false,\n filterRule: {\n scope: 'system',\n key: 'check_in_time',\n operator: DEVICE_FILTERING_OPTIONS.$ltne.key,\n value: ({ offlineThreshold }) => offlineThreshold\n },\n title: 'Offline devices'\n },\n failedLastUpdate: {\n issueCategory: 'issues',\n key: 'failedLastUpdate',\n needsFullFiltering: false,\n needsMonitor: false,\n needsReporting: true,\n filterRule: { scope: 'monitor', key: 'failed_last_update', operator: DEVICE_FILTERING_OPTIONS.$eq.key, value: true },\n title: 'Deployment failed'\n },\n monitoring: {\n issueCategory: 'issues',\n key: 'monitoring',\n needsFullFiltering: false,\n needsMonitor: true,\n needsReporting: false,\n filterRule: { scope: 'monitor', key: 'alerts', operator: DEVICE_FILTERING_OPTIONS.$eq.key, value: true },\n title: 'Monitoring alert'\n },\n authRequests: {\n key: 'authRequests',\n needsFullFiltering: false,\n needsMonitor: false,\n needsReporting: true,\n filterRule: { scope: 'monitor', key: 'auth_requests', operator: DEVICE_FILTERING_OPTIONS.$gt.key, value: 1 },\n title: 'Devices with new authentication requests'\n },\n gatewayDevices: {\n key: 'gatewayDevices',\n needsFullFiltering: false,\n needsMonitor: false,\n needsReporting: true,\n filterRule: { scope: 'inventory', key: 'mender_is_gateway', operator: DEVICE_FILTERING_OPTIONS.$eq.key, value: 'true' },\n title: 'Gateway devices'\n }\n};\nconst oneSecond = 1000;\nexport const TIMEOUTS = {\n debounceDefault: 700,\n debounceShort: 300,\n halfASecond: 0.5 * oneSecond,\n oneSecond,\n twoSeconds: 2 * oneSecond,\n threeSeconds: 3 * oneSecond,\n fiveSeconds: 5 * oneSecond,\n refreshDefault: 10 * oneSecond,\n refreshLong: 60 * oneSecond\n};\n\nexport const SORTING_OPTIONS = {\n asc: 'asc',\n desc: 'desc'\n};\n\nexport const DEVICE_ONLINE_CUTOFF = { interval: 1, intervalName: timeUnits.days };\n\nexport const ATTRIBUTE_SCOPES = {\n inventory: 'inventory',\n identity: 'identity',\n monitor: 'monitor',\n system: 'system',\n tags: 'tags'\n};\n\nexport const defaultIdAttribute = Object.freeze({ attribute: 'id', scope: ATTRIBUTE_SCOPES.identity });\n\nconst credentialTypes = {\n aws: 'aws',\n http: 'http',\n sas: 'sas',\n x509: 'x509'\n};\nexport const EXTERNAL_PROVIDER = {\n 'iot-core': {\n credentialsType: credentialTypes.aws,\n icon: AWS,\n title: 'AWS IoT Core',\n twinTitle: 'Device Shadow',\n provider: 'iot-core',\n enabled: true,\n deviceTwin: true,\n configHint: <>For help finding your AWS IoT Core connection string, check the AWS IoT documentation.</>\n },\n 'iot-hub': {\n credentialsType: credentialTypes.sas,\n icon: Azure,\n title: 'Azure IoT Hub',\n twinTitle: 'Device Twin',\n provider: 'iot-hub',\n enabled: true,\n deviceTwin: true,\n configHint: (\n <span>\n For help finding your Azure IoT Hub connection string, look under &apos;Shared access policies&apos; in the Microsoft Azure UI as described{' '}\n {\n <a\n href=\"https://devblogs.microsoft.com/iotdev/understand-different-connection-strings-in-azure-iot-hub/#iothubconn\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n >\n here\n </a>\n }\n .\n </span>\n )\n },\n webhook: {\n credentialsType: credentialTypes.http,\n deviceTwin: false,\n // disable the webhook provider here, since it is treated different than other integrations, with a custom configuration & management view, etc.\n enabled: false,\n provider: 'webhook'\n }\n};\nexport const MAX_PAGE_SIZE = 500;\n\nexport const ALL_RELEASES = 'All releases';\n\nexport type UiPermissionsDefinition = Readonly<{\n auditlog: string[];\n deployments?: string[]; // deployments are so far only covered indirectly through releases + device group permissions\n groups: Record<string, string[]>;\n releases: Record<string, string[]>;\n tenantManagement: string[];\n userManagement: string[];\n}>;\n\nexport type UiRoleDefinition = {\n description: string;\n editable?: boolean;\n isCustom?: boolean;\n name: string;\n permissions?: object[];\n uiPermissions: UiPermissionsDefinition;\n};\n\nexport const emptyUiPermissions: UiPermissionsDefinition = Object.freeze({\n auditlog: [],\n deployments: [],\n groups: Object.freeze({}),\n releases: Object.freeze({}),\n tenantManagement: [],\n userManagement: []\n});\n\nexport const emptyRole: UiRoleDefinition = Object.freeze({\n name: undefined,\n description: '',\n permissions: [],\n uiPermissions: Object.freeze({ ...emptyUiPermissions })\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACgBA,gBAA0D;AAwL1C;AAtLT,IAAM,uBAAuB;AAAA,EAClC,MAAM;AAAA,EACN,SAAS;AACX;AAEO,IAAM,YAAY;AAAA,EACvB,MAAM;AAAA,EACN,SAAS;AAAA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W;AACjC,YAAM,EAAE,KAAK,IAAI,OAAO;AACxB,YAAM,KAAK,IAAI,IAAI,OAAO;AAAA,IAC5B;AAAA,IACA,iBAAiB,CAAC,OAAO,WAAW;AAClC,YAAM,OAAO,OAAO;AAAA,IACtB;AAAA,IACA,oBAAoB,CAAC,OAAO,WAAW;AACrC,YAAM,OAAO,OAAO;AAAA,IACtB;AAAA,IACA,qBAAqB,CAAC,OAAO,WAAW;AACtC,YAAM,cAAc,OAAO;AAAA,IAC7B;AAAA,IACA,eAAe,CAAC,OAAO,WAAW;AAEhC,YAAM,EAAE,CAAC,OAAO,OAAO,GAAG,aAAa,GAAG,KAAK,IAAI,MAAM;AACzD,YAAM,OAAO;AACb,YAAM,kBAAkB,OAAO,YAAY,MAAM,kBAAkB,OAAO,MAAM;AAAA,IAClF;AAAA,IACA,iBAAiB,CAAC,OAAO,WAAW;AAClC,YAAM,kBAAkB,OAAO;AAAA,IACjC;AAAA,IACA,qBAAqB,CAAC,OAAO,WAAW;AACtC,YAAM,eAAe,OAAO;AAAA,IAC9B;AAAA,EACF;AACF,CAAC;AAEM,IAAM,UAAU,aAAa;AACpC,IAAO,wBAAQ,aAAa;","names":["AWS","Azure"]}
@@ -4,12 +4,12 @@ import {
4
4
  releaseSlice,
5
5
  releasesSlice_default,
6
6
  sliceName
7
- } from "../chunk-CYV6632F.js";
8
- import "../chunk-C5NEDBJI.js";
7
+ } from "../chunk-NOQR3TE7.js";
8
+ import "../chunk-OEP2D6QL.js";
9
9
  import "../chunk-CK6YE6AN.js";
10
10
  import "../chunk-MRCFLG45.js";
11
- import "../chunk-UWMYZNUB.js";
12
- import "../chunk-4B3IMP4I.js";
11
+ import "../chunk-Y575RZHR.js";
12
+ import "../chunk-BSN2TOQC.js";
13
13
  export {
14
14
  actions,
15
15
  releasesSlice_default as default,
@@ -262,14 +262,12 @@ var filterProcessors = {
262
262
  var filterAliases = {
263
263
  $nexists: { alias: DEVICE_FILTERING_OPTIONS.$exists.key, value: false }
264
264
  };
265
- var listItemMapper = (byId, ids, { defaultObject = {}, cutOffSize = DEVICE_LIST_MAXIMUM_LENGTH }) => {
266
- return ids.slice(0, cutOffSize).reduce((accu, id) => {
267
- if (id && byId[id]) {
268
- accu.push({ ...defaultObject, ...byId[id] });
269
- }
270
- return accu;
271
- }, []);
272
- };
265
+ var listItemMapper = (byId, ids, { defaultObject = {}, cutOffSize = DEVICE_LIST_MAXIMUM_LENGTH }) => ids.slice(0, cutOffSize).reduce((accu, id) => {
266
+ if (id && byId[id]) {
267
+ accu.push({ ...defaultObject, ...byId[id] });
268
+ }
269
+ return accu;
270
+ }, []);
273
271
 
274
272
  // src/releasesSlice/selectors.ts
275
273
  var import_toolkit = require("@reduxjs/toolkit");