@northern.tech/store 0.5.3 → 0.6.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 (237) hide show
  1. package/dist/actions.cjs.map +1 -1
  2. package/dist/actions.d.cts +8 -13
  3. package/dist/actions.d.ts +8 -13
  4. package/dist/actions.js +10 -10
  5. package/dist/api/general-api.cjs +4 -5
  6. package/dist/api/general-api.cjs.map +1 -1
  7. package/dist/api/general-api.js +4 -4
  8. package/dist/api/users-api.cjs +4 -5
  9. package/dist/api/users-api.cjs.map +1 -1
  10. package/dist/api/users-api.js +5 -5
  11. package/dist/appSlice/constants.cjs +1 -1
  12. package/dist/appSlice/constants.cjs.map +1 -1
  13. package/dist/appSlice/constants.d.cts +1 -1
  14. package/dist/appSlice/constants.d.ts +1 -1
  15. package/dist/appSlice/constants.js +1 -1
  16. package/dist/appSlice/index.js +3 -3
  17. package/dist/appSlice/mocks.js +3 -3
  18. package/dist/appSlice/selectors.d.cts +9 -9
  19. package/dist/appSlice/selectors.d.ts +9 -9
  20. package/dist/appSlice/thunks.cjs +8 -7
  21. package/dist/appSlice/thunks.cjs.map +1 -1
  22. package/dist/appSlice/thunks.d.cts +1 -1
  23. package/dist/appSlice/thunks.d.ts +1 -1
  24. package/dist/appSlice/thunks.js +26 -26
  25. package/dist/auth.cjs +4 -5
  26. package/dist/auth.cjs.map +1 -1
  27. package/dist/auth.js +3 -3
  28. package/dist/{chunk-DYN7AU7R.js → chunk-2ASLHSBV.js} +9 -9
  29. package/dist/{chunk-HLTP624H.js → chunk-2M5W3IDP.js} +2 -2
  30. package/dist/{chunk-J74LNK6P.js → chunk-3ECSADAW.js} +13 -13
  31. package/dist/{chunk-W37ETKI6.js → chunk-67GS7ERY.js} +2 -2
  32. package/dist/{chunk-CWZKWW74.js → chunk-7BKDELUQ.js} +2 -2
  33. package/dist/{chunk-ZZ3YDCYZ.js → chunk-B7GXA42G.js} +3 -3
  34. package/dist/{chunk-AVCIWAZB.js → chunk-CEH2D355.js} +2 -2
  35. package/dist/{chunk-5HYHE4HO.js → chunk-EIIFEV62.js} +2 -2
  36. package/dist/chunk-EIIFEV62.js.map +1 -0
  37. package/dist/{chunk-DE25YP6N.js → chunk-GN2HC6HW.js} +29 -28
  38. package/dist/chunk-GN2HC6HW.js.map +1 -0
  39. package/dist/{chunk-IY76MO6R.js → chunk-MVK6W7ZH.js} +2 -2
  40. package/dist/chunk-MVK6W7ZH.js.map +1 -0
  41. package/dist/{chunk-PY6ID7TL.js → chunk-N3XU7WJM.js} +2 -2
  42. package/dist/chunk-N3XU7WJM.js.map +1 -0
  43. package/dist/{chunk-DXJ2WS3N.js → chunk-PB36MEEN.js} +2 -2
  44. package/dist/{chunk-I6JE3OLT.js → chunk-PTQS3JDZ.js} +10 -10
  45. package/dist/{chunk-JOK26PI7.js → chunk-QPHDDTQC.js} +14 -13
  46. package/dist/chunk-QPHDDTQC.js.map +1 -0
  47. package/dist/{chunk-4DOSYAJY.js → chunk-RRL7OZHU.js} +2 -2
  48. package/dist/{chunk-KGSJ7CSA.js → chunk-RWGVRDFG.js} +2 -2
  49. package/dist/chunk-RWGVRDFG.js.map +1 -0
  50. package/dist/{chunk-BNSSPYCA.js → chunk-TL6KSTZZ.js} +3 -3
  51. package/dist/{chunk-VCTZ25Q5.js → chunk-TU4IVT3M.js} +14 -14
  52. package/dist/{chunk-4UJXT6RF.js → chunk-VIV6U46F.js} +6 -4
  53. package/dist/chunk-VIV6U46F.js.map +1 -0
  54. package/dist/{chunk-66NK2ZV2.js → chunk-W2RDUU5Q.js} +2 -2
  55. package/dist/{chunk-KJJ47UIO.js → chunk-WD7MIPCO.js} +2 -2
  56. package/dist/chunk-WD7MIPCO.js.map +1 -0
  57. package/dist/{chunk-JZXNRDO2.js → chunk-XLXLFSZA.js} +2 -2
  58. package/dist/{chunk-CEEXZF5E.js → chunk-XZDCXV4H.js} +3 -3
  59. package/dist/chunk-XZDCXV4H.js.map +1 -0
  60. package/dist/{chunk-MRXTMI6O.js → chunk-YEQ7D6AW.js} +5 -6
  61. package/dist/chunk-YEQ7D6AW.js.map +1 -0
  62. package/dist/{chunk-GRVTVLIZ.js → chunk-ZABYTBKG.js} +2 -2
  63. package/dist/commonConstants.cjs +4 -5
  64. package/dist/commonConstants.cjs.map +1 -1
  65. package/dist/commonConstants.d.cts +8 -8
  66. package/dist/commonConstants.d.ts +8 -8
  67. package/dist/commonConstants.js +2 -2
  68. package/dist/commonSelectors.cjs +6 -7
  69. package/dist/commonSelectors.cjs.map +1 -1
  70. package/dist/commonSelectors.d.cts +127 -138
  71. package/dist/commonSelectors.d.ts +127 -138
  72. package/dist/commonSelectors.js +10 -10
  73. package/dist/constants.cjs +5 -6
  74. package/dist/constants.cjs.map +1 -1
  75. package/dist/constants.js +2 -2
  76. package/dist/deploymentsSlice/constants.cjs.map +1 -1
  77. package/dist/deploymentsSlice/constants.d.cts +2 -2
  78. package/dist/deploymentsSlice/constants.d.ts +2 -2
  79. package/dist/deploymentsSlice/constants.js +2 -2
  80. package/dist/deploymentsSlice/index.cjs.map +1 -1
  81. package/dist/deploymentsSlice/index.d.cts +5 -4
  82. package/dist/deploymentsSlice/index.d.ts +5 -4
  83. package/dist/deploymentsSlice/index.js +3 -3
  84. package/dist/deploymentsSlice/mocks.cjs.map +1 -1
  85. package/dist/deploymentsSlice/mocks.js +3 -3
  86. package/dist/deploymentsSlice/selectors.cjs.map +1 -1
  87. package/dist/deploymentsSlice/selectors.d.cts +3 -3
  88. package/dist/deploymentsSlice/selectors.d.ts +3 -3
  89. package/dist/deploymentsSlice/selectors.js +3 -3
  90. package/dist/deploymentsSlice/thunks.cjs +8 -7
  91. package/dist/deploymentsSlice/thunks.cjs.map +1 -1
  92. package/dist/deploymentsSlice/thunks.d.cts +3 -3
  93. package/dist/deploymentsSlice/thunks.d.ts +3 -3
  94. package/dist/deploymentsSlice/thunks.js +26 -26
  95. package/dist/devicesSlice/constants.js +2 -2
  96. package/dist/devicesSlice/index.cjs.map +1 -1
  97. package/dist/devicesSlice/index.d.cts +4 -4
  98. package/dist/devicesSlice/index.d.ts +4 -4
  99. package/dist/devicesSlice/index.js +3 -3
  100. package/dist/devicesSlice/mocks.cjs +4 -4
  101. package/dist/devicesSlice/mocks.cjs.map +1 -1
  102. package/dist/devicesSlice/mocks.js +7 -7
  103. package/dist/devicesSlice/mocks.js.map +1 -1
  104. package/dist/devicesSlice/selectors.cjs +4 -5
  105. package/dist/devicesSlice/selectors.cjs.map +1 -1
  106. package/dist/devicesSlice/selectors.d.cts +23 -23
  107. package/dist/devicesSlice/selectors.d.ts +23 -23
  108. package/dist/devicesSlice/selectors.js +3 -3
  109. package/dist/devicesSlice/thunks.cjs +8 -7
  110. package/dist/devicesSlice/thunks.cjs.map +1 -1
  111. package/dist/devicesSlice/thunks.d.cts +5 -5
  112. package/dist/devicesSlice/thunks.d.ts +5 -5
  113. package/dist/devicesSlice/thunks.js +26 -26
  114. package/dist/liststatehook.cjs +4 -5
  115. package/dist/liststatehook.cjs.map +1 -1
  116. package/dist/liststatehook.js +3 -3
  117. package/dist/locationutils.cjs +4 -5
  118. package/dist/locationutils.cjs.map +1 -1
  119. package/dist/locationutils.js +3 -3
  120. package/dist/monitorSlice/index.js +3 -3
  121. package/dist/monitorSlice/mocks.js +3 -3
  122. package/dist/monitorSlice/thunks.cjs +6 -7
  123. package/dist/monitorSlice/thunks.cjs.map +1 -1
  124. package/dist/monitorSlice/thunks.d.cts +1 -1
  125. package/dist/monitorSlice/thunks.d.ts +1 -1
  126. package/dist/monitorSlice/thunks.js +22 -22
  127. package/dist/onboardingSlice/thunks.cjs +8 -7
  128. package/dist/onboardingSlice/thunks.cjs.map +1 -1
  129. package/dist/onboardingSlice/thunks.d.cts +1 -1
  130. package/dist/onboardingSlice/thunks.d.ts +1 -1
  131. package/dist/onboardingSlice/thunks.js +26 -26
  132. package/dist/organizationSlice/constants.js +2 -2
  133. package/dist/organizationSlice/index.js +3 -3
  134. package/dist/organizationSlice/mocks.d.cts +2 -2
  135. package/dist/organizationSlice/mocks.d.ts +2 -2
  136. package/dist/organizationSlice/mocks.js +3 -3
  137. package/dist/organizationSlice/selectors.cjs +4 -5
  138. package/dist/organizationSlice/selectors.cjs.map +1 -1
  139. package/dist/organizationSlice/selectors.d.cts +44 -48
  140. package/dist/organizationSlice/selectors.d.ts +44 -48
  141. package/dist/organizationSlice/selectors.js +3 -3
  142. package/dist/organizationSlice/thunks.cjs +10 -10
  143. package/dist/organizationSlice/thunks.cjs.map +1 -1
  144. package/dist/organizationSlice/thunks.d.cts +1 -1
  145. package/dist/organizationSlice/thunks.d.ts +1 -1
  146. package/dist/organizationSlice/thunks.js +26 -26
  147. package/dist/organizationSlice/types.cjs.map +1 -1
  148. package/dist/organizationSlice/types.d.cts +8 -30
  149. package/dist/organizationSlice/types.d.ts +8 -30
  150. package/dist/releasesSlice/index.cjs.map +1 -1
  151. package/dist/releasesSlice/index.d.cts +7 -5
  152. package/dist/releasesSlice/index.d.ts +7 -5
  153. package/dist/releasesSlice/index.js +3 -3
  154. package/dist/releasesSlice/mocks.cjs.map +1 -1
  155. package/dist/releasesSlice/mocks.d.cts +1 -3
  156. package/dist/releasesSlice/mocks.d.ts +1 -3
  157. package/dist/releasesSlice/mocks.js +3 -3
  158. package/dist/releasesSlice/selectors.cjs +4 -5
  159. package/dist/releasesSlice/selectors.cjs.map +1 -1
  160. package/dist/releasesSlice/selectors.d.cts +39 -41
  161. package/dist/releasesSlice/selectors.d.ts +39 -41
  162. package/dist/releasesSlice/selectors.js +4 -4
  163. package/dist/releasesSlice/thunks.cjs +10 -10
  164. package/dist/releasesSlice/thunks.cjs.map +1 -1
  165. package/dist/releasesSlice/thunks.d.cts +3 -3
  166. package/dist/releasesSlice/thunks.d.ts +3 -3
  167. package/dist/releasesSlice/thunks.js +23 -23
  168. package/dist/selectors.cjs +10 -8
  169. package/dist/selectors.cjs.map +1 -1
  170. package/dist/selectors.d.cts +2 -18
  171. package/dist/selectors.d.ts +2 -18
  172. package/dist/selectors.js +21 -19
  173. package/dist/sockethook.cjs +4 -5
  174. package/dist/sockethook.cjs.map +1 -1
  175. package/dist/sockethook.js +2 -2
  176. package/dist/store.cjs.map +1 -1
  177. package/dist/store.d.cts +11 -11
  178. package/dist/store.d.ts +11 -11
  179. package/dist/store.js +12 -12
  180. package/dist/storehooks.cjs +14 -13
  181. package/dist/storehooks.cjs.map +1 -1
  182. package/dist/storehooks.js +26 -26
  183. package/dist/thunks.cjs +14 -13
  184. package/dist/thunks.cjs.map +1 -1
  185. package/dist/thunks.d.cts +1 -1
  186. package/dist/thunks.d.ts +1 -1
  187. package/dist/thunks.js +26 -26
  188. package/dist/useDeploymentDevice.cjs +8 -7
  189. package/dist/useDeploymentDevice.cjs.map +1 -1
  190. package/dist/useDeploymentDevice.js +26 -26
  191. package/dist/usersSlice/constants.js +2 -2
  192. package/dist/usersSlice/index.js +3 -3
  193. package/dist/usersSlice/mocks.cjs +1 -0
  194. package/dist/usersSlice/mocks.cjs.map +1 -1
  195. package/dist/usersSlice/mocks.d.cts +3 -3
  196. package/dist/usersSlice/mocks.d.ts +3 -3
  197. package/dist/usersSlice/mocks.js +4 -3
  198. package/dist/usersSlice/mocks.js.map +1 -1
  199. package/dist/usersSlice/selectors.cjs +8 -6
  200. package/dist/usersSlice/selectors.cjs.map +1 -1
  201. package/dist/usersSlice/selectors.d.cts +33 -34
  202. package/dist/usersSlice/selectors.d.ts +33 -34
  203. package/dist/usersSlice/selectors.js +6 -4
  204. package/dist/usersSlice/thunks.cjs +8 -7
  205. package/dist/usersSlice/thunks.cjs.map +1 -1
  206. package/dist/usersSlice/thunks.d.cts +1 -1
  207. package/dist/usersSlice/thunks.d.ts +1 -1
  208. package/dist/usersSlice/thunks.js +26 -26
  209. package/dist/utils.cjs +4 -5
  210. package/dist/utils.cjs.map +1 -1
  211. package/dist/utils.js +3 -3
  212. package/package.json +1 -1
  213. package/dist/chunk-4UJXT6RF.js.map +0 -1
  214. package/dist/chunk-5HYHE4HO.js.map +0 -1
  215. package/dist/chunk-CEEXZF5E.js.map +0 -1
  216. package/dist/chunk-DE25YP6N.js.map +0 -1
  217. package/dist/chunk-IY76MO6R.js.map +0 -1
  218. package/dist/chunk-JOK26PI7.js.map +0 -1
  219. package/dist/chunk-KGSJ7CSA.js.map +0 -1
  220. package/dist/chunk-KJJ47UIO.js.map +0 -1
  221. package/dist/chunk-MRXTMI6O.js.map +0 -1
  222. package/dist/chunk-PY6ID7TL.js.map +0 -1
  223. /package/dist/{chunk-DYN7AU7R.js.map → chunk-2ASLHSBV.js.map} +0 -0
  224. /package/dist/{chunk-HLTP624H.js.map → chunk-2M5W3IDP.js.map} +0 -0
  225. /package/dist/{chunk-J74LNK6P.js.map → chunk-3ECSADAW.js.map} +0 -0
  226. /package/dist/{chunk-W37ETKI6.js.map → chunk-67GS7ERY.js.map} +0 -0
  227. /package/dist/{chunk-CWZKWW74.js.map → chunk-7BKDELUQ.js.map} +0 -0
  228. /package/dist/{chunk-ZZ3YDCYZ.js.map → chunk-B7GXA42G.js.map} +0 -0
  229. /package/dist/{chunk-AVCIWAZB.js.map → chunk-CEH2D355.js.map} +0 -0
  230. /package/dist/{chunk-DXJ2WS3N.js.map → chunk-PB36MEEN.js.map} +0 -0
  231. /package/dist/{chunk-I6JE3OLT.js.map → chunk-PTQS3JDZ.js.map} +0 -0
  232. /package/dist/{chunk-4DOSYAJY.js.map → chunk-RRL7OZHU.js.map} +0 -0
  233. /package/dist/{chunk-BNSSPYCA.js.map → chunk-TL6KSTZZ.js.map} +0 -0
  234. /package/dist/{chunk-VCTZ25Q5.js.map → chunk-TU4IVT3M.js.map} +0 -0
  235. /package/dist/{chunk-66NK2ZV2.js.map → chunk-W2RDUU5Q.js.map} +0 -0
  236. /package/dist/{chunk-JZXNRDO2.js.map → chunk-XLXLFSZA.js.map} +0 -0
  237. /package/dist/{chunk-GRVTVLIZ.js.map → chunk-ZABYTBKG.js.map} +0 -0
@@ -1,10 +1,8 @@
1
- import * as _northern_tech_types_RolePermission from '@northern.tech/types/RolePermission';
2
- import * as _northern_tech_types_PermissionSetWithScope from '@northern.tech/types/PermissionSetWithScope';
3
1
  import * as reselect from 'reselect';
4
2
  import { ReleaseSliceType } from '../releasesSlice/index.cjs';
5
3
  import { OrganizationState } from '../organizationSlice/types.cjs';
6
4
  import { OnboardingApproach } from '../onboardingSlice/index.cjs';
7
- import * as _northern_tech_types_Alert from '@northern.tech/types/Alert';
5
+ import * as _northern_tech_types_types_gen from '@northern.tech/types/types.gen';
8
6
  import { Deployment, DeploymentByStatus, DeploymentConfig, SelectionState } from '../deploymentsSlice/index.cjs';
9
7
  import { DeviceSliceType } from '../devicesSlice/index.cjs';
10
8
  import { SearchState, SentryConfig, SnackbarContent, Upload } from '../appSlice/index.cjs';
@@ -30,6 +28,7 @@ declare const getTooltipsById: (state: RootState) => Record<string, {
30
28
  readState: ReadState;
31
29
  }>;
32
30
  declare const getGlobalSettings: (state: RootState) => GlobalSettings;
31
+ declare const getGlobalSettingsInitialized: (state: RootState) => boolean;
33
32
  declare const getUserSettingsInitialized: (state: RootState) => boolean;
34
33
  declare const getUsersById: (state: RootState) => Record<string, User>;
35
34
  declare const getUsersList: ((state: {
@@ -83,10 +82,10 @@ declare const getUsersList: ((state: {
83
82
  total: number;
84
83
  };
85
84
  byDeviceId: {
86
- alerts?: Record<string, _northern_tech_types_Alert.Alert & {
85
+ alerts?: Record<string, _northern_tech_types_types_gen.Alert & {
87
86
  fullName?: string;
88
87
  }>;
89
- latest?: Record<string, _northern_tech_types_Alert.Alert & {
88
+ latest?: Record<string, _northern_tech_types_types_gen.Alert & {
90
89
  fullName?: string;
91
90
  }>;
92
91
  };
@@ -237,10 +236,10 @@ declare const getCurrentUser: ((state: {
237
236
  total: number;
238
237
  };
239
238
  byDeviceId: {
240
- alerts?: Record<string, _northern_tech_types_Alert.Alert & {
239
+ alerts?: Record<string, _northern_tech_types_types_gen.Alert & {
241
240
  fullName?: string;
242
241
  }>;
243
- latest?: Record<string, _northern_tech_types_Alert.Alert & {
242
+ latest?: Record<string, _northern_tech_types_types_gen.Alert & {
244
243
  fullName?: string;
245
244
  }>;
246
245
  };
@@ -392,10 +391,10 @@ declare const getSelectedDeviceAttribute: ((state: {
392
391
  total: number;
393
392
  };
394
393
  byDeviceId: {
395
- alerts?: Record<string, _northern_tech_types_Alert.Alert & {
394
+ alerts?: Record<string, _northern_tech_types_types_gen.Alert & {
396
395
  fullName?: string;
397
396
  }>;
398
- latest?: Record<string, _northern_tech_types_Alert.Alert & {
397
+ latest?: Record<string, _northern_tech_types_types_gen.Alert & {
399
398
  fullName?: string;
400
399
  }>;
401
400
  };
@@ -558,10 +557,10 @@ declare const getIsDarkMode: ((state: {
558
557
  total: number;
559
558
  };
560
559
  byDeviceId: {
561
- alerts?: Record<string, _northern_tech_types_Alert.Alert & {
560
+ alerts?: Record<string, _northern_tech_types_types_gen.Alert & {
562
561
  fullName?: string;
563
562
  }>;
564
- latest?: Record<string, _northern_tech_types_Alert.Alert & {
563
+ latest?: Record<string, _northern_tech_types_types_gen.Alert & {
565
564
  fullName?: string;
566
565
  }>;
567
566
  };
@@ -712,10 +711,10 @@ declare const getReadAllHelptips: ((state: {
712
711
  total: number;
713
712
  };
714
713
  byDeviceId: {
715
- alerts?: Record<string, _northern_tech_types_Alert.Alert & {
714
+ alerts?: Record<string, _northern_tech_types_types_gen.Alert & {
716
715
  fullName?: string;
717
716
  }>;
718
- latest?: Record<string, _northern_tech_types_Alert.Alert & {
717
+ latest?: Record<string, _northern_tech_types_types_gen.Alert & {
719
718
  fullName?: string;
720
719
  }>;
721
720
  };
@@ -872,10 +871,10 @@ declare const getTooltipsState: ((state: {
872
871
  total: number;
873
872
  };
874
873
  byDeviceId: {
875
- alerts?: Record<string, _northern_tech_types_Alert.Alert & {
874
+ alerts?: Record<string, _northern_tech_types_types_gen.Alert & {
876
875
  fullName?: string;
877
876
  }>;
878
- latest?: Record<string, _northern_tech_types_Alert.Alert & {
877
+ latest?: Record<string, _northern_tech_types_types_gen.Alert & {
879
878
  fullName?: string;
880
879
  }>;
881
880
  };
@@ -1032,10 +1031,10 @@ declare const getHas2FA: ((state: {
1032
1031
  total: number;
1033
1032
  };
1034
1033
  byDeviceId: {
1035
- alerts?: Record<string, _northern_tech_types_Alert.Alert & {
1034
+ alerts?: Record<string, _northern_tech_types_types_gen.Alert & {
1036
1035
  fullName?: string;
1037
1036
  }>;
1038
- latest?: Record<string, _northern_tech_types_Alert.Alert & {
1037
+ latest?: Record<string, _northern_tech_types_types_gen.Alert & {
1039
1038
  fullName?: string;
1040
1039
  }>;
1041
1040
  };
@@ -1177,10 +1176,10 @@ declare const getHas2FA: ((state: {
1177
1176
  total: number;
1178
1177
  };
1179
1178
  byDeviceId: {
1180
- alerts?: Record<string, _northern_tech_types_Alert.Alert & {
1179
+ alerts?: Record<string, _northern_tech_types_types_gen.Alert & {
1181
1180
  fullName?: string;
1182
1181
  }>;
1183
- latest?: Record<string, _northern_tech_types_Alert.Alert & {
1182
+ latest?: Record<string, _northern_tech_types_types_gen.Alert & {
1184
1183
  fullName?: string;
1185
1184
  }>;
1186
1185
  };
@@ -1339,10 +1338,10 @@ declare const getIdAttribute: ((state: {
1339
1338
  total: number;
1340
1339
  };
1341
1340
  byDeviceId: {
1342
- alerts?: Record<string, _northern_tech_types_Alert.Alert & {
1341
+ alerts?: Record<string, _northern_tech_types_types_gen.Alert & {
1343
1342
  fullName?: string;
1344
1343
  }>;
1345
- latest?: Record<string, _northern_tech_types_Alert.Alert & {
1344
+ latest?: Record<string, _northern_tech_types_types_gen.Alert & {
1346
1345
  fullName?: string;
1347
1346
  }>;
1348
1347
  };
@@ -1505,10 +1504,10 @@ declare const getOfflineThresholdSettings: ((state: {
1505
1504
  total: number;
1506
1505
  };
1507
1506
  byDeviceId: {
1508
- alerts?: Record<string, _northern_tech_types_Alert.Alert & {
1507
+ alerts?: Record<string, _northern_tech_types_types_gen.Alert & {
1509
1508
  fullName?: string;
1510
1509
  }>;
1511
- latest?: Record<string, _northern_tech_types_Alert.Alert & {
1510
+ latest?: Record<string, _northern_tech_types_types_gen.Alert & {
1512
1511
  fullName?: string;
1513
1512
  }>;
1514
1513
  };
@@ -1671,10 +1670,10 @@ declare const getRolesList: ((state: {
1671
1670
  total: number;
1672
1671
  };
1673
1672
  byDeviceId: {
1674
- alerts?: Record<string, _northern_tech_types_Alert.Alert & {
1673
+ alerts?: Record<string, _northern_tech_types_types_gen.Alert & {
1675
1674
  fullName?: string;
1676
1675
  }>;
1677
- latest?: Record<string, _northern_tech_types_Alert.Alert & {
1676
+ latest?: Record<string, _northern_tech_types_types_gen.Alert & {
1678
1677
  fullName?: string;
1679
1678
  }>;
1680
1679
  };
@@ -1756,8 +1755,8 @@ declare const getRolesList: ((state: {
1756
1755
  }) => {
1757
1756
  name: string;
1758
1757
  description?: string;
1759
- permission_sets_with_scope?: Array<_northern_tech_types_PermissionSetWithScope.PermissionSetWithScope>;
1760
- permissions?: Array<_northern_tech_types_RolePermission.RolePermission> | undefined;
1758
+ permission_sets_with_scope?: Array<_northern_tech_types_types_gen.PermissionSetWithScope>;
1759
+ permissions?: Array<_northern_tech_types_types_gen.RolePermission> | undefined;
1761
1760
  editable?: boolean;
1762
1761
  isCustom?: boolean;
1763
1762
  uiPermissions: Readonly<{
@@ -1777,8 +1776,8 @@ declare const getRolesList: ((state: {
1777
1776
  resultFunc: (resultFuncArgs_0: Record<string, _northern_tech_utils_constants.Role>) => {
1778
1777
  name: string;
1779
1778
  description?: string;
1780
- permission_sets_with_scope?: Array<_northern_tech_types_PermissionSetWithScope.PermissionSetWithScope>;
1781
- permissions?: Array<_northern_tech_types_RolePermission.RolePermission> | undefined;
1779
+ permission_sets_with_scope?: Array<_northern_tech_types_types_gen.PermissionSetWithScope>;
1780
+ permissions?: Array<_northern_tech_types_types_gen.RolePermission> | undefined;
1782
1781
  editable?: boolean;
1783
1782
  isCustom?: boolean;
1784
1783
  uiPermissions: Readonly<{
@@ -1794,8 +1793,8 @@ declare const getRolesList: ((state: {
1794
1793
  memoizedResultFunc: ((resultFuncArgs_0: Record<string, _northern_tech_utils_constants.Role>) => {
1795
1794
  name: string;
1796
1795
  description?: string;
1797
- permission_sets_with_scope?: Array<_northern_tech_types_PermissionSetWithScope.PermissionSetWithScope>;
1798
- permissions?: Array<_northern_tech_types_RolePermission.RolePermission> | undefined;
1796
+ permission_sets_with_scope?: Array<_northern_tech_types_types_gen.PermissionSetWithScope>;
1797
+ permissions?: Array<_northern_tech_types_types_gen.RolePermission> | undefined;
1799
1798
  editable?: boolean;
1800
1799
  isCustom?: boolean;
1801
1800
  uiPermissions: Readonly<{
@@ -1815,8 +1814,8 @@ declare const getRolesList: ((state: {
1815
1814
  lastResult: () => {
1816
1815
  name: string;
1817
1816
  description?: string;
1818
- permission_sets_with_scope?: Array<_northern_tech_types_PermissionSetWithScope.PermissionSetWithScope>;
1819
- permissions?: Array<_northern_tech_types_RolePermission.RolePermission> | undefined;
1817
+ permission_sets_with_scope?: Array<_northern_tech_types_types_gen.PermissionSetWithScope>;
1818
+ permissions?: Array<_northern_tech_types_types_gen.RolePermission> | undefined;
1820
1819
  editable?: boolean;
1821
1820
  isCustom?: boolean;
1822
1821
  uiPermissions: Readonly<{
@@ -1841,4 +1840,4 @@ declare const getRolesList: ((state: {
1841
1840
  declare const getCurrentSession: (state: RootState) => object | UserSession | undefined;
1842
1841
  declare const getRolesInitialized: (state: RootState) => boolean;
1843
1842
 
1844
- export { getCurrentSession, getCurrentUser, getGlobalSettings, getHas2FA, getIdAttribute, getIsDarkMode, getOfflineThresholdSettings, getReadAllHelptips, getRolesById, getRolesInitialized, getRolesList, getSelectedDeviceAttribute, getTooltipsById, getTooltipsState, getUserSettings, getUserSettingsInitialized, getUsersById, getUsersList };
1843
+ export { getCurrentSession, getCurrentUser, getGlobalSettings, getGlobalSettingsInitialized, getHas2FA, getIdAttribute, getIsDarkMode, getOfflineThresholdSettings, getReadAllHelptips, getRolesById, getRolesInitialized, getRolesList, getSelectedDeviceAttribute, getTooltipsById, getTooltipsState, getUserSettings, getUserSettingsInitialized, getUsersById, getUsersList };
@@ -1,10 +1,8 @@
1
- import * as _northern_tech_types_RolePermission from '@northern.tech/types/RolePermission';
2
- import * as _northern_tech_types_PermissionSetWithScope from '@northern.tech/types/PermissionSetWithScope';
3
1
  import * as reselect from 'reselect';
4
2
  import { ReleaseSliceType } from '../releasesSlice/index.js';
5
3
  import { OrganizationState } from '../organizationSlice/types.js';
6
4
  import { OnboardingApproach } from '../onboardingSlice/index.js';
7
- import * as _northern_tech_types_Alert from '@northern.tech/types/Alert';
5
+ import * as _northern_tech_types_types_gen from '@northern.tech/types/types.gen';
8
6
  import { Deployment, DeploymentByStatus, DeploymentConfig, SelectionState } from '../deploymentsSlice/index.js';
9
7
  import { DeviceSliceType } from '../devicesSlice/index.js';
10
8
  import { SearchState, SentryConfig, SnackbarContent, Upload } from '../appSlice/index.js';
@@ -30,6 +28,7 @@ declare const getTooltipsById: (state: RootState) => Record<string, {
30
28
  readState: ReadState;
31
29
  }>;
32
30
  declare const getGlobalSettings: (state: RootState) => GlobalSettings;
31
+ declare const getGlobalSettingsInitialized: (state: RootState) => boolean;
33
32
  declare const getUserSettingsInitialized: (state: RootState) => boolean;
34
33
  declare const getUsersById: (state: RootState) => Record<string, User>;
35
34
  declare const getUsersList: ((state: {
@@ -83,10 +82,10 @@ declare const getUsersList: ((state: {
83
82
  total: number;
84
83
  };
85
84
  byDeviceId: {
86
- alerts?: Record<string, _northern_tech_types_Alert.Alert & {
85
+ alerts?: Record<string, _northern_tech_types_types_gen.Alert & {
87
86
  fullName?: string;
88
87
  }>;
89
- latest?: Record<string, _northern_tech_types_Alert.Alert & {
88
+ latest?: Record<string, _northern_tech_types_types_gen.Alert & {
90
89
  fullName?: string;
91
90
  }>;
92
91
  };
@@ -237,10 +236,10 @@ declare const getCurrentUser: ((state: {
237
236
  total: number;
238
237
  };
239
238
  byDeviceId: {
240
- alerts?: Record<string, _northern_tech_types_Alert.Alert & {
239
+ alerts?: Record<string, _northern_tech_types_types_gen.Alert & {
241
240
  fullName?: string;
242
241
  }>;
243
- latest?: Record<string, _northern_tech_types_Alert.Alert & {
242
+ latest?: Record<string, _northern_tech_types_types_gen.Alert & {
244
243
  fullName?: string;
245
244
  }>;
246
245
  };
@@ -392,10 +391,10 @@ declare const getSelectedDeviceAttribute: ((state: {
392
391
  total: number;
393
392
  };
394
393
  byDeviceId: {
395
- alerts?: Record<string, _northern_tech_types_Alert.Alert & {
394
+ alerts?: Record<string, _northern_tech_types_types_gen.Alert & {
396
395
  fullName?: string;
397
396
  }>;
398
- latest?: Record<string, _northern_tech_types_Alert.Alert & {
397
+ latest?: Record<string, _northern_tech_types_types_gen.Alert & {
399
398
  fullName?: string;
400
399
  }>;
401
400
  };
@@ -558,10 +557,10 @@ declare const getIsDarkMode: ((state: {
558
557
  total: number;
559
558
  };
560
559
  byDeviceId: {
561
- alerts?: Record<string, _northern_tech_types_Alert.Alert & {
560
+ alerts?: Record<string, _northern_tech_types_types_gen.Alert & {
562
561
  fullName?: string;
563
562
  }>;
564
- latest?: Record<string, _northern_tech_types_Alert.Alert & {
563
+ latest?: Record<string, _northern_tech_types_types_gen.Alert & {
565
564
  fullName?: string;
566
565
  }>;
567
566
  };
@@ -712,10 +711,10 @@ declare const getReadAllHelptips: ((state: {
712
711
  total: number;
713
712
  };
714
713
  byDeviceId: {
715
- alerts?: Record<string, _northern_tech_types_Alert.Alert & {
714
+ alerts?: Record<string, _northern_tech_types_types_gen.Alert & {
716
715
  fullName?: string;
717
716
  }>;
718
- latest?: Record<string, _northern_tech_types_Alert.Alert & {
717
+ latest?: Record<string, _northern_tech_types_types_gen.Alert & {
719
718
  fullName?: string;
720
719
  }>;
721
720
  };
@@ -872,10 +871,10 @@ declare const getTooltipsState: ((state: {
872
871
  total: number;
873
872
  };
874
873
  byDeviceId: {
875
- alerts?: Record<string, _northern_tech_types_Alert.Alert & {
874
+ alerts?: Record<string, _northern_tech_types_types_gen.Alert & {
876
875
  fullName?: string;
877
876
  }>;
878
- latest?: Record<string, _northern_tech_types_Alert.Alert & {
877
+ latest?: Record<string, _northern_tech_types_types_gen.Alert & {
879
878
  fullName?: string;
880
879
  }>;
881
880
  };
@@ -1032,10 +1031,10 @@ declare const getHas2FA: ((state: {
1032
1031
  total: number;
1033
1032
  };
1034
1033
  byDeviceId: {
1035
- alerts?: Record<string, _northern_tech_types_Alert.Alert & {
1034
+ alerts?: Record<string, _northern_tech_types_types_gen.Alert & {
1036
1035
  fullName?: string;
1037
1036
  }>;
1038
- latest?: Record<string, _northern_tech_types_Alert.Alert & {
1037
+ latest?: Record<string, _northern_tech_types_types_gen.Alert & {
1039
1038
  fullName?: string;
1040
1039
  }>;
1041
1040
  };
@@ -1177,10 +1176,10 @@ declare const getHas2FA: ((state: {
1177
1176
  total: number;
1178
1177
  };
1179
1178
  byDeviceId: {
1180
- alerts?: Record<string, _northern_tech_types_Alert.Alert & {
1179
+ alerts?: Record<string, _northern_tech_types_types_gen.Alert & {
1181
1180
  fullName?: string;
1182
1181
  }>;
1183
- latest?: Record<string, _northern_tech_types_Alert.Alert & {
1182
+ latest?: Record<string, _northern_tech_types_types_gen.Alert & {
1184
1183
  fullName?: string;
1185
1184
  }>;
1186
1185
  };
@@ -1339,10 +1338,10 @@ declare const getIdAttribute: ((state: {
1339
1338
  total: number;
1340
1339
  };
1341
1340
  byDeviceId: {
1342
- alerts?: Record<string, _northern_tech_types_Alert.Alert & {
1341
+ alerts?: Record<string, _northern_tech_types_types_gen.Alert & {
1343
1342
  fullName?: string;
1344
1343
  }>;
1345
- latest?: Record<string, _northern_tech_types_Alert.Alert & {
1344
+ latest?: Record<string, _northern_tech_types_types_gen.Alert & {
1346
1345
  fullName?: string;
1347
1346
  }>;
1348
1347
  };
@@ -1505,10 +1504,10 @@ declare const getOfflineThresholdSettings: ((state: {
1505
1504
  total: number;
1506
1505
  };
1507
1506
  byDeviceId: {
1508
- alerts?: Record<string, _northern_tech_types_Alert.Alert & {
1507
+ alerts?: Record<string, _northern_tech_types_types_gen.Alert & {
1509
1508
  fullName?: string;
1510
1509
  }>;
1511
- latest?: Record<string, _northern_tech_types_Alert.Alert & {
1510
+ latest?: Record<string, _northern_tech_types_types_gen.Alert & {
1512
1511
  fullName?: string;
1513
1512
  }>;
1514
1513
  };
@@ -1671,10 +1670,10 @@ declare const getRolesList: ((state: {
1671
1670
  total: number;
1672
1671
  };
1673
1672
  byDeviceId: {
1674
- alerts?: Record<string, _northern_tech_types_Alert.Alert & {
1673
+ alerts?: Record<string, _northern_tech_types_types_gen.Alert & {
1675
1674
  fullName?: string;
1676
1675
  }>;
1677
- latest?: Record<string, _northern_tech_types_Alert.Alert & {
1676
+ latest?: Record<string, _northern_tech_types_types_gen.Alert & {
1678
1677
  fullName?: string;
1679
1678
  }>;
1680
1679
  };
@@ -1756,8 +1755,8 @@ declare const getRolesList: ((state: {
1756
1755
  }) => {
1757
1756
  name: string;
1758
1757
  description?: string;
1759
- permission_sets_with_scope?: Array<_northern_tech_types_PermissionSetWithScope.PermissionSetWithScope>;
1760
- permissions?: Array<_northern_tech_types_RolePermission.RolePermission> | undefined;
1758
+ permission_sets_with_scope?: Array<_northern_tech_types_types_gen.PermissionSetWithScope>;
1759
+ permissions?: Array<_northern_tech_types_types_gen.RolePermission> | undefined;
1761
1760
  editable?: boolean;
1762
1761
  isCustom?: boolean;
1763
1762
  uiPermissions: Readonly<{
@@ -1777,8 +1776,8 @@ declare const getRolesList: ((state: {
1777
1776
  resultFunc: (resultFuncArgs_0: Record<string, _northern_tech_utils_constants.Role>) => {
1778
1777
  name: string;
1779
1778
  description?: string;
1780
- permission_sets_with_scope?: Array<_northern_tech_types_PermissionSetWithScope.PermissionSetWithScope>;
1781
- permissions?: Array<_northern_tech_types_RolePermission.RolePermission> | undefined;
1779
+ permission_sets_with_scope?: Array<_northern_tech_types_types_gen.PermissionSetWithScope>;
1780
+ permissions?: Array<_northern_tech_types_types_gen.RolePermission> | undefined;
1782
1781
  editable?: boolean;
1783
1782
  isCustom?: boolean;
1784
1783
  uiPermissions: Readonly<{
@@ -1794,8 +1793,8 @@ declare const getRolesList: ((state: {
1794
1793
  memoizedResultFunc: ((resultFuncArgs_0: Record<string, _northern_tech_utils_constants.Role>) => {
1795
1794
  name: string;
1796
1795
  description?: string;
1797
- permission_sets_with_scope?: Array<_northern_tech_types_PermissionSetWithScope.PermissionSetWithScope>;
1798
- permissions?: Array<_northern_tech_types_RolePermission.RolePermission> | undefined;
1796
+ permission_sets_with_scope?: Array<_northern_tech_types_types_gen.PermissionSetWithScope>;
1797
+ permissions?: Array<_northern_tech_types_types_gen.RolePermission> | undefined;
1799
1798
  editable?: boolean;
1800
1799
  isCustom?: boolean;
1801
1800
  uiPermissions: Readonly<{
@@ -1815,8 +1814,8 @@ declare const getRolesList: ((state: {
1815
1814
  lastResult: () => {
1816
1815
  name: string;
1817
1816
  description?: string;
1818
- permission_sets_with_scope?: Array<_northern_tech_types_PermissionSetWithScope.PermissionSetWithScope>;
1819
- permissions?: Array<_northern_tech_types_RolePermission.RolePermission> | undefined;
1817
+ permission_sets_with_scope?: Array<_northern_tech_types_types_gen.PermissionSetWithScope>;
1818
+ permissions?: Array<_northern_tech_types_types_gen.RolePermission> | undefined;
1820
1819
  editable?: boolean;
1821
1820
  isCustom?: boolean;
1822
1821
  uiPermissions: Readonly<{
@@ -1841,4 +1840,4 @@ declare const getRolesList: ((state: {
1841
1840
  declare const getCurrentSession: (state: RootState) => object | UserSession | undefined;
1842
1841
  declare const getRolesInitialized: (state: RootState) => boolean;
1843
1842
 
1844
- export { getCurrentSession, getCurrentUser, getGlobalSettings, getHas2FA, getIdAttribute, getIsDarkMode, getOfflineThresholdSettings, getReadAllHelptips, getRolesById, getRolesInitialized, getRolesList, getSelectedDeviceAttribute, getTooltipsById, getTooltipsState, getUserSettings, getUserSettingsInitialized, getUsersById, getUsersList };
1843
+ export { getCurrentSession, getCurrentUser, getGlobalSettings, getGlobalSettingsInitialized, getHas2FA, getIdAttribute, getIsDarkMode, getOfflineThresholdSettings, getReadAllHelptips, getRolesById, getRolesInitialized, getRolesList, getSelectedDeviceAttribute, getTooltipsById, getTooltipsState, getUserSettings, getUserSettingsInitialized, getUsersById, getUsersList };
@@ -2,6 +2,7 @@ import {
2
2
  getCurrentSession,
3
3
  getCurrentUser,
4
4
  getGlobalSettings,
5
+ getGlobalSettingsInitialized,
5
6
  getHas2FA,
6
7
  getIdAttribute,
7
8
  getIsDarkMode,
@@ -17,17 +18,18 @@ import {
17
18
  getUserSettingsInitialized,
18
19
  getUsersById,
19
20
  getUsersList
20
- } from "../chunk-4UJXT6RF.js";
21
- import "../chunk-CEEXZF5E.js";
22
- import "../chunk-MRXTMI6O.js";
21
+ } from "../chunk-VIV6U46F.js";
22
+ import "../chunk-XZDCXV4H.js";
23
+ import "../chunk-YEQ7D6AW.js";
23
24
  import "../chunk-2DYA3X77.js";
24
25
  import "../chunk-FAJ3I2UQ.js";
25
26
  import "../chunk-ZKAH3APE.js";
26
- import "../chunk-PY6ID7TL.js";
27
+ import "../chunk-N3XU7WJM.js";
27
28
  export {
28
29
  getCurrentSession,
29
30
  getCurrentUser,
30
31
  getGlobalSettings,
32
+ getGlobalSettingsInitialized,
31
33
  getHas2FA,
32
34
  getIdAttribute,
33
35
  getIsDarkMode,
@@ -209,7 +209,6 @@ var DARK_MODE = "dark";
209
209
 
210
210
  // src/commonConstants.tsx
211
211
  var import_js = require("@mdi/js");
212
- var import_MenderTypes = require("@northern.tech/types/MenderTypes");
213
212
  var import_jsx_runtime = require("react/jsx-runtime");
214
213
  var timeUnits = {
215
214
  days: "days",
@@ -233,9 +232,9 @@ var TIMEOUTS = {
233
232
  var DEVICE_ONLINE_CUTOFF = { interval: 1, intervalName: timeUnits.days };
234
233
  var defaultIdAttribute = Object.freeze({ attribute: "id", scope: import_constants5.ATTRIBUTE_SCOPES.identity });
235
234
  var credentialTypes = {
236
- aws: import_MenderTypes.Credentials.type.AWS,
237
- http: import_MenderTypes.Credentials.type.HTTP,
238
- sas: import_MenderTypes.Credentials.type.SAS,
235
+ aws: "aws",
236
+ http: "http",
237
+ sas: "sas",
239
238
  x509: "x509"
240
239
  };
241
240
  var EXTERNAL_PROVIDER = {
@@ -283,7 +282,7 @@ var EXTERNAL_PROVIDER = {
283
282
  };
284
283
  var emptyWebhook = {
285
284
  description: "",
286
- provider: import_MenderTypes.Integration.provider.WEBHOOK,
285
+ provider: "webhook",
287
286
  credentials: {
288
287
  type: EXTERNAL_PROVIDER.webhook.credentialsType,
289
288
  [EXTERNAL_PROVIDER.webhook.credentialsType]: {
@@ -1819,9 +1818,9 @@ var getIsUploading = (0, import_toolkit9.createSelector)([getUploads], (uploadsB
1819
1818
  var getSearchedDevices = (0, import_toolkit9.createSelector)([getSearchState], ({ deviceIds }) => deviceIds);
1820
1819
  var getVersionInformation = (0, import_toolkit9.createSelector)(
1821
1820
  [getFullVersionInformation, getFeatures],
1822
- ({ Integration: Integration2, ...remainder }, { isHosted }) => isHosted && Integration2 !== "next" ? remainder : { ...remainder, Integration: Integration2 }
1821
+ ({ Integration, ...remainder }, { isHosted }) => isHosted && Integration !== "next" ? remainder : { ...remainder, Integration }
1823
1822
  );
1824
- var getIsPreview = (0, import_toolkit9.createSelector)([getFullVersionInformation], ({ Integration: Integration2 }) => (0, import_helpers2.versionCompare)(Integration2, "next") > -1);
1823
+ var getIsPreview = (0, import_toolkit9.createSelector)([getFullVersionInformation], ({ Integration }) => (0, import_helpers2.versionCompare)(Integration, "next") > -1);
1825
1824
 
1826
1825
  // src/commonSelectors.ts
1827
1826
  var import_helpers5 = require("@northern.tech/utils/helpers");
@@ -2619,6 +2618,8 @@ var transformDeployments = (deployments, deploymentsById) => deployments.sort((0
2619
2618
  ...deploymentPrototype,
2620
2619
  ...deploymentsById[item.id],
2621
2620
  ...item,
2621
+ // TODO: explicitly set filter term types to address scope type mismatch in deployment specs
2622
+ // @ts-expect-error: type misalignment in filter terms type
2622
2623
  filter: filter ? { ...filter, name: filter.name ?? filter.id, filters: mapTermsToFilters(filter.terms) } : void 0,
2623
2624
  name: decodeURIComponent(item.name)
2624
2625
  };