@northern.tech/store 0.11.0 → 0.13.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 (200) hide show
  1. package/dist/actions.cjs +22 -17
  2. package/dist/actions.cjs.map +1 -1
  3. package/dist/actions.d.cts +7 -22
  4. package/dist/actions.d.ts +7 -22
  5. package/dist/actions.js +9 -9
  6. package/dist/api/general-api.js +1 -1
  7. package/dist/api/users-api.js +1 -1
  8. package/dist/appSlice/index.cjs.map +1 -1
  9. package/dist/appSlice/index.d.cts +1 -1
  10. package/dist/appSlice/index.d.ts +1 -1
  11. package/dist/appSlice/index.js +2 -2
  12. package/dist/appSlice/mocks.cjs.map +1 -1
  13. package/dist/appSlice/mocks.js +2 -2
  14. package/dist/appSlice/selectors.d.cts +34 -528
  15. package/dist/appSlice/selectors.d.ts +34 -528
  16. package/dist/appSlice/thunks.cjs +49 -42
  17. package/dist/appSlice/thunks.cjs.map +1 -1
  18. package/dist/appSlice/thunks.d.cts +5 -3
  19. package/dist/appSlice/thunks.d.ts +5 -3
  20. package/dist/appSlice/thunks.js +18 -18
  21. package/dist/auth.js +1 -1
  22. package/dist/{chunk-QOFVCPRW.js → chunk-5PUF4LA5.js} +1 -1
  23. package/dist/chunk-5PUF4LA5.js.map +1 -0
  24. package/dist/{chunk-X3NF4KNC.js → chunk-6KAV62BW.js} +6 -6
  25. package/dist/{chunk-OFGCC3GM.js → chunk-7MTM3BDT.js} +1 -1
  26. package/dist/chunk-7MTM3BDT.js.map +1 -0
  27. package/dist/{chunk-4FNSLYK5.js → chunk-AR4FTKSL.js} +14 -14
  28. package/dist/{chunk-6KNRR7A5.js → chunk-BZAXFAGT.js} +4 -4
  29. package/dist/{chunk-ZNAJKEP2.js → chunk-CQXDAXQF.js} +1 -1
  30. package/dist/chunk-CQXDAXQF.js.map +1 -0
  31. package/dist/{chunk-I3H5EFZK.js → chunk-EOZ665GA.js} +15 -15
  32. package/dist/{chunk-NVNO3I3K.js → chunk-ETZVJXPD.js} +36 -41
  33. package/dist/chunk-ETZVJXPD.js.map +1 -0
  34. package/dist/{chunk-RFF52JYU.js → chunk-KJ4BPXMB.js} +3 -2
  35. package/dist/chunk-KJ4BPXMB.js.map +1 -0
  36. package/dist/{chunk-C2LGE3P6.js → chunk-OLKM53RL.js} +1 -1
  37. package/dist/chunk-OLKM53RL.js.map +1 -0
  38. package/dist/{chunk-HLX5L3IM.js → chunk-PVCHKW35.js} +1 -1
  39. package/dist/chunk-PVCHKW35.js.map +1 -0
  40. package/dist/{chunk-REZWSU22.js → chunk-VODRLEDP.js} +21 -17
  41. package/dist/chunk-VODRLEDP.js.map +1 -0
  42. package/dist/{chunk-MH5WPYQI.js → chunk-X7NEALMI.js} +16 -9
  43. package/dist/chunk-X7NEALMI.js.map +1 -0
  44. package/dist/{chunk-CUU3N6KW.js → chunk-YFAIYNQG.js} +16 -16
  45. package/dist/commonConstants.js +1 -1
  46. package/dist/commonSelectors.cjs +15 -8
  47. package/dist/commonSelectors.cjs.map +1 -1
  48. package/dist/commonSelectors.d.cts +178 -3523
  49. package/dist/commonSelectors.d.ts +178 -3523
  50. package/dist/commonSelectors.js +6 -6
  51. package/dist/constants.js +1 -1
  52. package/dist/deploymentsSlice/constants.js +1 -1
  53. package/dist/deploymentsSlice/index.cjs.map +1 -1
  54. package/dist/deploymentsSlice/index.d.cts +1 -1
  55. package/dist/deploymentsSlice/index.d.ts +1 -1
  56. package/dist/deploymentsSlice/index.js +2 -2
  57. package/dist/deploymentsSlice/mocks.cjs.map +1 -1
  58. package/dist/deploymentsSlice/mocks.js +2 -2
  59. package/dist/deploymentsSlice/selectors.d.cts +16 -138
  60. package/dist/deploymentsSlice/selectors.d.ts +16 -138
  61. package/dist/deploymentsSlice/selectors.js +1 -1
  62. package/dist/deploymentsSlice/thunks.cjs +49 -42
  63. package/dist/deploymentsSlice/thunks.cjs.map +1 -1
  64. package/dist/deploymentsSlice/thunks.d.cts +4 -2
  65. package/dist/deploymentsSlice/thunks.d.ts +4 -2
  66. package/dist/deploymentsSlice/thunks.js +18 -18
  67. package/dist/devicesSlice/constants.js +1 -1
  68. package/dist/devicesSlice/index.cjs +20 -16
  69. package/dist/devicesSlice/index.cjs.map +1 -1
  70. package/dist/devicesSlice/index.d.cts +11 -20
  71. package/dist/devicesSlice/index.d.ts +11 -20
  72. package/dist/devicesSlice/index.js +2 -2
  73. package/dist/devicesSlice/mocks.cjs +24 -22
  74. package/dist/devicesSlice/mocks.cjs.map +1 -1
  75. package/dist/devicesSlice/mocks.d.cts +20 -12
  76. package/dist/devicesSlice/mocks.d.ts +20 -12
  77. package/dist/devicesSlice/mocks.js +6 -8
  78. package/dist/devicesSlice/mocks.js.map +1 -1
  79. package/dist/devicesSlice/selectors.cjs +15 -8
  80. package/dist/devicesSlice/selectors.cjs.map +1 -1
  81. package/dist/devicesSlice/selectors.d.cts +207 -1730
  82. package/dist/devicesSlice/selectors.d.ts +207 -1730
  83. package/dist/devicesSlice/selectors.js +2 -2
  84. package/dist/devicesSlice/thunks.cjs +49 -44
  85. package/dist/devicesSlice/thunks.cjs.map +1 -1
  86. package/dist/devicesSlice/thunks.d.cts +12 -46
  87. package/dist/devicesSlice/thunks.d.ts +12 -46
  88. package/dist/devicesSlice/thunks.js +18 -20
  89. package/dist/liststatehook.js +1 -1
  90. package/dist/locationutils.js +1 -1
  91. package/dist/monitorSlice/index.cjs.map +1 -1
  92. package/dist/monitorSlice/index.d.cts +1 -1
  93. package/dist/monitorSlice/index.d.ts +1 -1
  94. package/dist/monitorSlice/index.js +2 -2
  95. package/dist/monitorSlice/mocks.cjs.map +1 -1
  96. package/dist/monitorSlice/mocks.js +2 -2
  97. package/dist/monitorSlice/thunks.cjs +37 -25
  98. package/dist/monitorSlice/thunks.cjs.map +1 -1
  99. package/dist/monitorSlice/thunks.d.cts +3 -2
  100. package/dist/monitorSlice/thunks.d.ts +3 -2
  101. package/dist/monitorSlice/thunks.js +16 -16
  102. package/dist/onboardingSlice/index.cjs.map +1 -1
  103. package/dist/onboardingSlice/index.d.cts +1 -1
  104. package/dist/onboardingSlice/index.d.ts +1 -1
  105. package/dist/onboardingSlice/index.js +1 -1
  106. package/dist/onboardingSlice/mocks.cjs.map +1 -1
  107. package/dist/onboardingSlice/mocks.js +1 -1
  108. package/dist/onboardingSlice/thunks.cjs +49 -42
  109. package/dist/onboardingSlice/thunks.cjs.map +1 -1
  110. package/dist/onboardingSlice/thunks.d.cts +7 -15
  111. package/dist/onboardingSlice/thunks.d.ts +7 -15
  112. package/dist/onboardingSlice/thunks.js +18 -18
  113. package/dist/organizationSlice/constants.js +1 -1
  114. package/dist/organizationSlice/index.cjs.map +1 -1
  115. package/dist/organizationSlice/index.d.cts +41 -31
  116. package/dist/organizationSlice/index.d.ts +41 -31
  117. package/dist/organizationSlice/index.js +2 -2
  118. package/dist/organizationSlice/mocks.cjs.map +1 -1
  119. package/dist/organizationSlice/mocks.js +2 -2
  120. package/dist/organizationSlice/selectors.d.cts +42 -659
  121. package/dist/organizationSlice/selectors.d.ts +42 -659
  122. package/dist/organizationSlice/selectors.js +1 -1
  123. package/dist/organizationSlice/thunks.cjs +51 -44
  124. package/dist/organizationSlice/thunks.cjs.map +1 -1
  125. package/dist/organizationSlice/thunks.d.cts +4 -1
  126. package/dist/organizationSlice/thunks.d.ts +4 -1
  127. package/dist/organizationSlice/thunks.js +18 -18
  128. package/dist/organizationSlice/types.cjs.map +1 -1
  129. package/dist/organizationSlice/types.d.cts +2 -12
  130. package/dist/organizationSlice/types.d.ts +2 -12
  131. package/dist/releasesSlice/index.js +1 -1
  132. package/dist/releasesSlice/mocks.d.cts +7 -1
  133. package/dist/releasesSlice/mocks.d.ts +7 -1
  134. package/dist/releasesSlice/mocks.js +1 -1
  135. package/dist/releasesSlice/selectors.d.cts +155 -930
  136. package/dist/releasesSlice/selectors.d.ts +155 -930
  137. package/dist/releasesSlice/selectors.js +1 -1
  138. package/dist/releasesSlice/thunks.cjs +37 -25
  139. package/dist/releasesSlice/thunks.cjs.map +1 -1
  140. package/dist/releasesSlice/thunks.d.cts +4 -2
  141. package/dist/releasesSlice/thunks.d.ts +4 -2
  142. package/dist/releasesSlice/thunks.js +16 -16
  143. package/dist/selectors.cjs +15 -8
  144. package/dist/selectors.cjs.map +1 -1
  145. package/dist/selectors.d.cts +6 -3
  146. package/dist/selectors.d.ts +6 -3
  147. package/dist/selectors.js +33 -33
  148. package/dist/sockethook.cjs +1 -1
  149. package/dist/sockethook.cjs.map +1 -1
  150. package/dist/sockethook.js +2 -2
  151. package/dist/sockethook.js.map +1 -1
  152. package/dist/store.cjs +22 -17
  153. package/dist/store.cjs.map +1 -1
  154. package/dist/store.d.cts +40 -658
  155. package/dist/store.d.ts +40 -658
  156. package/dist/store.js +10 -10
  157. package/dist/storehooks.cjs +52 -45
  158. package/dist/storehooks.cjs.map +1 -1
  159. package/dist/storehooks.js +19 -19
  160. package/dist/thunks.cjs +49 -44
  161. package/dist/thunks.cjs.map +1 -1
  162. package/dist/thunks.d.cts +7 -5
  163. package/dist/thunks.d.ts +7 -5
  164. package/dist/thunks.js +18 -20
  165. package/dist/useDeploymentDevice.cjs +49 -42
  166. package/dist/useDeploymentDevice.cjs.map +1 -1
  167. package/dist/useDeploymentDevice.js +19 -19
  168. package/dist/usersSlice/constants.js +1 -1
  169. package/dist/usersSlice/index.cjs +2 -1
  170. package/dist/usersSlice/index.cjs.map +1 -1
  171. package/dist/usersSlice/index.d.cts +47 -46
  172. package/dist/usersSlice/index.d.ts +47 -46
  173. package/dist/usersSlice/index.js +2 -2
  174. package/dist/usersSlice/mocks.cjs +2 -1
  175. package/dist/usersSlice/mocks.cjs.map +1 -1
  176. package/dist/usersSlice/mocks.js +2 -2
  177. package/dist/usersSlice/selectors.d.cts +75 -1436
  178. package/dist/usersSlice/selectors.d.ts +75 -1436
  179. package/dist/usersSlice/selectors.js +1 -1
  180. package/dist/usersSlice/thunks.cjs +49 -42
  181. package/dist/usersSlice/thunks.cjs.map +1 -1
  182. package/dist/usersSlice/thunks.d.cts +3 -1
  183. package/dist/usersSlice/thunks.d.ts +3 -1
  184. package/dist/usersSlice/thunks.js +18 -18
  185. package/dist/utils.js +1 -1
  186. package/package.json +4 -4
  187. package/dist/chunk-C2LGE3P6.js.map +0 -1
  188. package/dist/chunk-HLX5L3IM.js.map +0 -1
  189. package/dist/chunk-MH5WPYQI.js.map +0 -1
  190. package/dist/chunk-NVNO3I3K.js.map +0 -1
  191. package/dist/chunk-OFGCC3GM.js.map +0 -1
  192. package/dist/chunk-QOFVCPRW.js.map +0 -1
  193. package/dist/chunk-REZWSU22.js.map +0 -1
  194. package/dist/chunk-RFF52JYU.js.map +0 -1
  195. package/dist/chunk-ZNAJKEP2.js.map +0 -1
  196. /package/dist/{chunk-X3NF4KNC.js.map → chunk-6KAV62BW.js.map} +0 -0
  197. /package/dist/{chunk-4FNSLYK5.js.map → chunk-AR4FTKSL.js.map} +0 -0
  198. /package/dist/{chunk-6KNRR7A5.js.map → chunk-BZAXFAGT.js.map} +0 -0
  199. /package/dist/{chunk-I3H5EFZK.js.map → chunk-EOZ665GA.js.map} +0 -0
  200. /package/dist/{chunk-CUU3N6KW.js.map → chunk-YFAIYNQG.js.map} +0 -0
@@ -1,25 +1,27 @@
1
1
  import * as reselect from 'reselect';
2
- import * as _northern_tech_utils_constants from '@northern.tech/utils/constants';
3
- import { ReadState } from '../usersSlice/constants.js';
4
- import { User, UserSession, CustomColumn, GlobalSettings, UserSettings } from '../usersSlice/index.js';
2
+ import { UserSliceType } from '../usersSlice/index.js';
5
3
  import { ReleaseSliceType } from '../releasesSlice/index.js';
6
- import { OrganizationState } from '../organizationSlice/types.js';
7
- import { OnboardingApproach } from '../onboardingSlice/index.js';
8
- import * as _northern_tech_types_types_gen from '@northern.tech/types/types.gen';
9
- import { Deployment, DeploymentByStatus, DeploymentConfig, SelectionState } from '../deploymentsSlice/index.js';
4
+ import { OrganizationSliceType } from '../organizationSlice/index.js';
5
+ import { OnboardingSliceType } from '../onboardingSlice/index.js';
6
+ import { MonitorSliceType } from '../monitorSlice/index.js';
7
+ import { DeploymentsSliceType } from '../deploymentsSlice/index.js';
10
8
  import { DeviceSliceType } from '../devicesSlice/index.js';
11
- import { SearchState, Upload, SnackbarContent, SentryConfig } from './index.js';
9
+ import { SearchState, Upload, SnackbarContent, SentryConfig, AppSliceType } from './index.js';
12
10
  import { RootState } from '../store.js';
13
11
  import 'redux';
14
12
  import '@reduxjs/toolkit';
15
13
  import 'immer';
16
14
  import '@northern.tech/types/MenderTypes';
15
+ import '@northern.tech/utils/constants';
17
16
  import '../commonConstants.js';
18
17
  import 'react/jsx-runtime';
18
+ import '../usersSlice/constants.js';
19
+ import '../organizationSlice/types.js';
19
20
  import './constants.js';
20
21
  import '@mui/material/OverridableComponent';
21
22
  import '@mui/material';
22
23
  import '../organizationSlice/constants.js';
24
+ import '../monitorSlice/constants.js';
23
25
  import '../devicesSlice/constants.js';
24
26
  import 'redux-thunk';
25
27
 
@@ -50,138 +52,14 @@ declare const getCommit: (state: RootState) => string;
50
52
  declare const getIsFirstLogin: (state: RootState) => boolean;
51
53
  declare const getFeedbackProbability: (state: RootState) => number;
52
54
  declare const getIsUploading: ((state: {
53
- app: {
54
- cancelSource: any;
55
- commit: string;
56
- demoArtifactLink: string;
57
- docsVersion: string;
58
- features: Record<string, boolean>;
59
- feedbackProbability: number;
60
- firstLoginAfterSignup: boolean;
61
- hostAddress: string | null;
62
- hostedAnnouncement: string;
63
- newThreshold: string;
64
- offlineThreshold: string;
65
- recaptchaSiteKey: string;
66
- searchState: SearchState;
67
- sentry: SentryConfig;
68
- snackbar: SnackbarContent;
69
- stripeAPIKey: string;
70
- trackerCode: string;
71
- uploadsById: Record<string, Upload>;
72
- versionInformation: {
73
- [key: string]: string | {
74
- releaseDate: string;
75
- repos: Record<string, string>;
76
- } | undefined;
77
- backend?: string;
78
- GUI?: string;
79
- latestRelease?: {
80
- releaseDate: string;
81
- repos: Record<string, string>;
82
- };
83
- };
84
- yesterday?: string;
85
- };
55
+ app: AppSliceType;
86
56
  devices: DeviceSliceType;
87
- deployments: {
88
- byId: Record<string, Deployment>;
89
- byStatus: DeploymentByStatus;
90
- config: DeploymentConfig;
91
- deploymentDeviceLimit: number;
92
- selectedDeviceIds: string[];
93
- selectionState: SelectionState;
94
- };
95
- monitor: {
96
- alerts: {
97
- alertList: {
98
- page: number;
99
- perPage: number;
100
- total: number;
101
- };
102
- byDeviceId: {
103
- alerts?: Record<string, _northern_tech_types_types_gen.Alert & {
104
- fullName?: string;
105
- }>;
106
- latest?: Record<string, _northern_tech_types_types_gen.Alert & {
107
- fullName?: string;
108
- }>;
109
- };
110
- };
111
- issueCounts: {
112
- byType: {
113
- issues: {
114
- filtered: number;
115
- total: number;
116
- };
117
- offline: {
118
- filtered: number;
119
- total: number;
120
- };
121
- failedLastUpdate: {
122
- filtered: number;
123
- total: number;
124
- };
125
- monitoring: {
126
- filtered: number;
127
- total: number;
128
- };
129
- authRequests: {
130
- filtered: number;
131
- total: number;
132
- };
133
- gatewayDevices: {
134
- filtered: number;
135
- total: number;
136
- };
137
- };
138
- };
139
- settings: {
140
- global: {
141
- channels: {
142
- email: {
143
- enabled: boolean;
144
- };
145
- };
146
- };
147
- };
148
- };
149
- onboarding: {
150
- address?: string;
151
- approach: OnboardingApproach | null;
152
- complete: boolean;
153
- demoArtifactPort: number;
154
- deviceConnection?: string;
155
- deviceType: string[] | string | null;
156
- progress: string | null;
157
- showTips: boolean | null;
158
- showTipsDialog: boolean;
159
- };
160
- organization: OrganizationState;
57
+ deployments: DeploymentsSliceType;
58
+ monitor: MonitorSliceType;
59
+ onboarding: OnboardingSliceType;
60
+ organization: OrganizationSliceType;
161
61
  releases: ReleaseSliceType;
162
- users: {
163
- activationCode?: string;
164
- byId: Record<string, User>;
165
- currentSession?: UserSession | object;
166
- currentUser: string | null;
167
- customColumns: CustomColumn[];
168
- globalSettings: GlobalSettings;
169
- permissionSetsById: Record<string, _northern_tech_utils_constants.PermissionSet>;
170
- qrCode: string | null;
171
- rolesById: Record<string, _northern_tech_utils_constants.Role>;
172
- rolesInitialized: boolean;
173
- settingsInitialized: boolean;
174
- showConnectDeviceDialog: boolean;
175
- showFeedbackDialog: boolean;
176
- showStartupNotification: boolean;
177
- tooltips: {
178
- byId: Record<string, {
179
- readState: ReadState;
180
- }>;
181
- };
182
- userSettings: UserSettings;
183
- userSettingsInitialized: boolean;
184
- };
62
+ users: UserSliceType;
185
63
  }) => boolean) & {
186
64
  clearCache: () => void;
187
65
  resultsCount: () => number;
@@ -204,138 +82,14 @@ declare const getIsUploading: ((state: {
204
82
  argsMemoize: typeof reselect.weakMapMemoize;
205
83
  };
206
84
  declare const getSearchedDevices: ((state: {
207
- app: {
208
- cancelSource: any;
209
- commit: string;
210
- demoArtifactLink: string;
211
- docsVersion: string;
212
- features: Record<string, boolean>;
213
- feedbackProbability: number;
214
- firstLoginAfterSignup: boolean;
215
- hostAddress: string | null;
216
- hostedAnnouncement: string;
217
- newThreshold: string;
218
- offlineThreshold: string;
219
- recaptchaSiteKey: string;
220
- searchState: SearchState;
221
- sentry: SentryConfig;
222
- snackbar: SnackbarContent;
223
- stripeAPIKey: string;
224
- trackerCode: string;
225
- uploadsById: Record<string, Upload>;
226
- versionInformation: {
227
- [key: string]: string | {
228
- releaseDate: string;
229
- repos: Record<string, string>;
230
- } | undefined;
231
- backend?: string;
232
- GUI?: string;
233
- latestRelease?: {
234
- releaseDate: string;
235
- repos: Record<string, string>;
236
- };
237
- };
238
- yesterday?: string;
239
- };
85
+ app: AppSliceType;
240
86
  devices: DeviceSliceType;
241
- deployments: {
242
- byId: Record<string, Deployment>;
243
- byStatus: DeploymentByStatus;
244
- config: DeploymentConfig;
245
- deploymentDeviceLimit: number;
246
- selectedDeviceIds: string[];
247
- selectionState: SelectionState;
248
- };
249
- monitor: {
250
- alerts: {
251
- alertList: {
252
- page: number;
253
- perPage: number;
254
- total: number;
255
- };
256
- byDeviceId: {
257
- alerts?: Record<string, _northern_tech_types_types_gen.Alert & {
258
- fullName?: string;
259
- }>;
260
- latest?: Record<string, _northern_tech_types_types_gen.Alert & {
261
- fullName?: string;
262
- }>;
263
- };
264
- };
265
- issueCounts: {
266
- byType: {
267
- issues: {
268
- filtered: number;
269
- total: number;
270
- };
271
- offline: {
272
- filtered: number;
273
- total: number;
274
- };
275
- failedLastUpdate: {
276
- filtered: number;
277
- total: number;
278
- };
279
- monitoring: {
280
- filtered: number;
281
- total: number;
282
- };
283
- authRequests: {
284
- filtered: number;
285
- total: number;
286
- };
287
- gatewayDevices: {
288
- filtered: number;
289
- total: number;
290
- };
291
- };
292
- };
293
- settings: {
294
- global: {
295
- channels: {
296
- email: {
297
- enabled: boolean;
298
- };
299
- };
300
- };
301
- };
302
- };
303
- onboarding: {
304
- address?: string;
305
- approach: OnboardingApproach | null;
306
- complete: boolean;
307
- demoArtifactPort: number;
308
- deviceConnection?: string;
309
- deviceType: string[] | string | null;
310
- progress: string | null;
311
- showTips: boolean | null;
312
- showTipsDialog: boolean;
313
- };
314
- organization: OrganizationState;
87
+ deployments: DeploymentsSliceType;
88
+ monitor: MonitorSliceType;
89
+ onboarding: OnboardingSliceType;
90
+ organization: OrganizationSliceType;
315
91
  releases: ReleaseSliceType;
316
- users: {
317
- activationCode?: string;
318
- byId: Record<string, User>;
319
- currentSession?: UserSession | object;
320
- currentUser: string | null;
321
- customColumns: CustomColumn[];
322
- globalSettings: GlobalSettings;
323
- permissionSetsById: Record<string, _northern_tech_utils_constants.PermissionSet>;
324
- qrCode: string | null;
325
- rolesById: Record<string, _northern_tech_utils_constants.Role>;
326
- rolesInitialized: boolean;
327
- settingsInitialized: boolean;
328
- showConnectDeviceDialog: boolean;
329
- showFeedbackDialog: boolean;
330
- showStartupNotification: boolean;
331
- tooltips: {
332
- byId: Record<string, {
333
- readState: ReadState;
334
- }>;
335
- };
336
- userSettings: UserSettings;
337
- userSettingsInitialized: boolean;
338
- };
92
+ users: UserSliceType;
339
93
  }) => string[]) & {
340
94
  clearCache: () => void;
341
95
  resultsCount: () => number;
@@ -358,138 +112,14 @@ declare const getSearchedDevices: ((state: {
358
112
  argsMemoize: typeof reselect.weakMapMemoize;
359
113
  };
360
114
  declare const getVersionInformation: ((state: {
361
- app: {
362
- cancelSource: any;
363
- commit: string;
364
- demoArtifactLink: string;
365
- docsVersion: string;
366
- features: Record<string, boolean>;
367
- feedbackProbability: number;
368
- firstLoginAfterSignup: boolean;
369
- hostAddress: string | null;
370
- hostedAnnouncement: string;
371
- newThreshold: string;
372
- offlineThreshold: string;
373
- recaptchaSiteKey: string;
374
- searchState: SearchState;
375
- sentry: SentryConfig;
376
- snackbar: SnackbarContent;
377
- stripeAPIKey: string;
378
- trackerCode: string;
379
- uploadsById: Record<string, Upload>;
380
- versionInformation: {
381
- [key: string]: string | {
382
- releaseDate: string;
383
- repos: Record<string, string>;
384
- } | undefined;
385
- backend?: string;
386
- GUI?: string;
387
- latestRelease?: {
388
- releaseDate: string;
389
- repos: Record<string, string>;
390
- };
391
- };
392
- yesterday?: string;
393
- };
115
+ app: AppSliceType;
394
116
  devices: DeviceSliceType;
395
- deployments: {
396
- byId: Record<string, Deployment>;
397
- byStatus: DeploymentByStatus;
398
- config: DeploymentConfig;
399
- deploymentDeviceLimit: number;
400
- selectedDeviceIds: string[];
401
- selectionState: SelectionState;
402
- };
403
- monitor: {
404
- alerts: {
405
- alertList: {
406
- page: number;
407
- perPage: number;
408
- total: number;
409
- };
410
- byDeviceId: {
411
- alerts?: Record<string, _northern_tech_types_types_gen.Alert & {
412
- fullName?: string;
413
- }>;
414
- latest?: Record<string, _northern_tech_types_types_gen.Alert & {
415
- fullName?: string;
416
- }>;
417
- };
418
- };
419
- issueCounts: {
420
- byType: {
421
- issues: {
422
- filtered: number;
423
- total: number;
424
- };
425
- offline: {
426
- filtered: number;
427
- total: number;
428
- };
429
- failedLastUpdate: {
430
- filtered: number;
431
- total: number;
432
- };
433
- monitoring: {
434
- filtered: number;
435
- total: number;
436
- };
437
- authRequests: {
438
- filtered: number;
439
- total: number;
440
- };
441
- gatewayDevices: {
442
- filtered: number;
443
- total: number;
444
- };
445
- };
446
- };
447
- settings: {
448
- global: {
449
- channels: {
450
- email: {
451
- enabled: boolean;
452
- };
453
- };
454
- };
455
- };
456
- };
457
- onboarding: {
458
- address?: string;
459
- approach: OnboardingApproach | null;
460
- complete: boolean;
461
- demoArtifactPort: number;
462
- deviceConnection?: string;
463
- deviceType: string[] | string | null;
464
- progress: string | null;
465
- showTips: boolean | null;
466
- showTipsDialog: boolean;
467
- };
468
- organization: OrganizationState;
117
+ deployments: DeploymentsSliceType;
118
+ monitor: MonitorSliceType;
119
+ onboarding: OnboardingSliceType;
120
+ organization: OrganizationSliceType;
469
121
  releases: ReleaseSliceType;
470
- users: {
471
- activationCode?: string;
472
- byId: Record<string, User>;
473
- currentSession?: UserSession | object;
474
- currentUser: string | null;
475
- customColumns: CustomColumn[];
476
- globalSettings: GlobalSettings;
477
- permissionSetsById: Record<string, _northern_tech_utils_constants.PermissionSet>;
478
- qrCode: string | null;
479
- rolesById: Record<string, _northern_tech_utils_constants.Role>;
480
- rolesInitialized: boolean;
481
- settingsInitialized: boolean;
482
- showConnectDeviceDialog: boolean;
483
- showFeedbackDialog: boolean;
484
- showStartupNotification: boolean;
485
- tooltips: {
486
- byId: Record<string, {
487
- readState: ReadState;
488
- }>;
489
- };
490
- userSettings: UserSettings;
491
- userSettingsInitialized: boolean;
492
- };
122
+ users: UserSliceType;
493
123
  }) => {
494
124
  [key: string]: string | {
495
125
  releaseDate: string;
@@ -589,138 +219,14 @@ declare const getVersionInformation: ((state: {
589
219
  argsMemoize: typeof reselect.weakMapMemoize;
590
220
  };
591
221
  declare const getIsPreview: ((state: {
592
- app: {
593
- cancelSource: any;
594
- commit: string;
595
- demoArtifactLink: string;
596
- docsVersion: string;
597
- features: Record<string, boolean>;
598
- feedbackProbability: number;
599
- firstLoginAfterSignup: boolean;
600
- hostAddress: string | null;
601
- hostedAnnouncement: string;
602
- newThreshold: string;
603
- offlineThreshold: string;
604
- recaptchaSiteKey: string;
605
- searchState: SearchState;
606
- sentry: SentryConfig;
607
- snackbar: SnackbarContent;
608
- stripeAPIKey: string;
609
- trackerCode: string;
610
- uploadsById: Record<string, Upload>;
611
- versionInformation: {
612
- [key: string]: string | {
613
- releaseDate: string;
614
- repos: Record<string, string>;
615
- } | undefined;
616
- backend?: string;
617
- GUI?: string;
618
- latestRelease?: {
619
- releaseDate: string;
620
- repos: Record<string, string>;
621
- };
622
- };
623
- yesterday?: string;
624
- };
222
+ app: AppSliceType;
625
223
  devices: DeviceSliceType;
626
- deployments: {
627
- byId: Record<string, Deployment>;
628
- byStatus: DeploymentByStatus;
629
- config: DeploymentConfig;
630
- deploymentDeviceLimit: number;
631
- selectedDeviceIds: string[];
632
- selectionState: SelectionState;
633
- };
634
- monitor: {
635
- alerts: {
636
- alertList: {
637
- page: number;
638
- perPage: number;
639
- total: number;
640
- };
641
- byDeviceId: {
642
- alerts?: Record<string, _northern_tech_types_types_gen.Alert & {
643
- fullName?: string;
644
- }>;
645
- latest?: Record<string, _northern_tech_types_types_gen.Alert & {
646
- fullName?: string;
647
- }>;
648
- };
649
- };
650
- issueCounts: {
651
- byType: {
652
- issues: {
653
- filtered: number;
654
- total: number;
655
- };
656
- offline: {
657
- filtered: number;
658
- total: number;
659
- };
660
- failedLastUpdate: {
661
- filtered: number;
662
- total: number;
663
- };
664
- monitoring: {
665
- filtered: number;
666
- total: number;
667
- };
668
- authRequests: {
669
- filtered: number;
670
- total: number;
671
- };
672
- gatewayDevices: {
673
- filtered: number;
674
- total: number;
675
- };
676
- };
677
- };
678
- settings: {
679
- global: {
680
- channels: {
681
- email: {
682
- enabled: boolean;
683
- };
684
- };
685
- };
686
- };
687
- };
688
- onboarding: {
689
- address?: string;
690
- approach: OnboardingApproach | null;
691
- complete: boolean;
692
- demoArtifactPort: number;
693
- deviceConnection?: string;
694
- deviceType: string[] | string | null;
695
- progress: string | null;
696
- showTips: boolean | null;
697
- showTipsDialog: boolean;
698
- };
699
- organization: OrganizationState;
224
+ deployments: DeploymentsSliceType;
225
+ monitor: MonitorSliceType;
226
+ onboarding: OnboardingSliceType;
227
+ organization: OrganizationSliceType;
700
228
  releases: ReleaseSliceType;
701
- users: {
702
- activationCode?: string;
703
- byId: Record<string, User>;
704
- currentSession?: UserSession | object;
705
- currentUser: string | null;
706
- customColumns: CustomColumn[];
707
- globalSettings: GlobalSettings;
708
- permissionSetsById: Record<string, _northern_tech_utils_constants.PermissionSet>;
709
- qrCode: string | null;
710
- rolesById: Record<string, _northern_tech_utils_constants.Role>;
711
- rolesInitialized: boolean;
712
- settingsInitialized: boolean;
713
- showConnectDeviceDialog: boolean;
714
- showFeedbackDialog: boolean;
715
- showStartupNotification: boolean;
716
- tooltips: {
717
- byId: Record<string, {
718
- readState: ReadState;
719
- }>;
720
- };
721
- userSettings: UserSettings;
722
- userSettingsInitialized: boolean;
723
- };
229
+ users: UserSliceType;
724
230
  }) => boolean) & {
725
231
  clearCache: () => void;
726
232
  resultsCount: () => number;