@northern.tech/store 0.12.0 → 0.14.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 (179) hide show
  1. package/dist/actions.cjs +21 -16
  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 +8 -8
  6. package/dist/appSlice/index.cjs +1 -0
  7. package/dist/appSlice/index.cjs.map +1 -1
  8. package/dist/appSlice/index.d.cts +1 -1
  9. package/dist/appSlice/index.d.ts +1 -1
  10. package/dist/appSlice/index.js +1 -1
  11. package/dist/appSlice/mocks.cjs +1 -0
  12. package/dist/appSlice/mocks.cjs.map +1 -1
  13. package/dist/appSlice/mocks.js +1 -1
  14. package/dist/appSlice/selectors.d.cts +34 -528
  15. package/dist/appSlice/selectors.d.ts +34 -528
  16. package/dist/appSlice/thunks.cjs +46 -41
  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 +15 -15
  21. package/dist/{chunk-C5NXNZ7F.js → chunk-2SAH2AN2.js} +23 -30
  22. package/dist/chunk-2SAH2AN2.js.map +1 -0
  23. package/dist/{chunk-QOFVCPRW.js → chunk-5PUF4LA5.js} +1 -1
  24. package/dist/chunk-5PUF4LA5.js.map +1 -0
  25. package/dist/{chunk-ZRMB4U7Z.js → chunk-5XUPXMYV.js} +4 -4
  26. package/dist/{chunk-ZNAJKEP2.js → chunk-CQXDAXQF.js} +1 -1
  27. package/dist/chunk-CQXDAXQF.js.map +1 -0
  28. package/dist/{chunk-OFGCC3GM.js → chunk-IUGHRJV2.js} +2 -1
  29. package/dist/chunk-IUGHRJV2.js.map +1 -0
  30. package/dist/{chunk-WCBHYLUK.js → chunk-KJ4BPXMB.js} +1 -1
  31. package/dist/chunk-KJ4BPXMB.js.map +1 -0
  32. package/dist/{chunk-OGUVURJ5.js → chunk-KVZEKHVC.js} +12 -12
  33. package/dist/{chunk-5ZCZTTYX.js → chunk-LX4YRTYY.js} +5 -5
  34. package/dist/{chunk-C2LGE3P6.js → chunk-OLKM53RL.js} +1 -1
  35. package/dist/chunk-OLKM53RL.js.map +1 -0
  36. package/dist/{chunk-4HSH7RH3.js → chunk-PIFXECFW.js} +10 -10
  37. package/dist/{chunk-HLX5L3IM.js → chunk-PVCHKW35.js} +1 -1
  38. package/dist/chunk-PVCHKW35.js.map +1 -0
  39. package/dist/{chunk-REZWSU22.js → chunk-VODRLEDP.js} +21 -17
  40. package/dist/chunk-VODRLEDP.js.map +1 -0
  41. package/dist/{chunk-MH5WPYQI.js → chunk-X7NEALMI.js} +16 -9
  42. package/dist/chunk-X7NEALMI.js.map +1 -0
  43. package/dist/{chunk-TKIOEF3B.js → chunk-ZWLCUOQN.js} +6 -6
  44. package/dist/commonSelectors.cjs +15 -8
  45. package/dist/commonSelectors.cjs.map +1 -1
  46. package/dist/commonSelectors.d.cts +178 -3523
  47. package/dist/commonSelectors.d.ts +178 -3523
  48. package/dist/commonSelectors.js +3 -3
  49. package/dist/deploymentsSlice/index.cjs.map +1 -1
  50. package/dist/deploymentsSlice/index.d.cts +1 -1
  51. package/dist/deploymentsSlice/index.d.ts +1 -1
  52. package/dist/deploymentsSlice/index.js +1 -1
  53. package/dist/deploymentsSlice/mocks.cjs.map +1 -1
  54. package/dist/deploymentsSlice/mocks.js +1 -1
  55. package/dist/deploymentsSlice/selectors.d.cts +16 -138
  56. package/dist/deploymentsSlice/selectors.d.ts +16 -138
  57. package/dist/deploymentsSlice/thunks.cjs +46 -41
  58. package/dist/deploymentsSlice/thunks.cjs.map +1 -1
  59. package/dist/deploymentsSlice/thunks.d.cts +4 -2
  60. package/dist/deploymentsSlice/thunks.d.ts +4 -2
  61. package/dist/deploymentsSlice/thunks.js +15 -15
  62. package/dist/devicesSlice/index.cjs +20 -16
  63. package/dist/devicesSlice/index.cjs.map +1 -1
  64. package/dist/devicesSlice/index.d.cts +11 -20
  65. package/dist/devicesSlice/index.d.ts +11 -20
  66. package/dist/devicesSlice/index.js +1 -1
  67. package/dist/devicesSlice/mocks.cjs +24 -22
  68. package/dist/devicesSlice/mocks.cjs.map +1 -1
  69. package/dist/devicesSlice/mocks.d.cts +20 -12
  70. package/dist/devicesSlice/mocks.d.ts +20 -12
  71. package/dist/devicesSlice/mocks.js +5 -7
  72. package/dist/devicesSlice/mocks.js.map +1 -1
  73. package/dist/devicesSlice/selectors.cjs +15 -8
  74. package/dist/devicesSlice/selectors.cjs.map +1 -1
  75. package/dist/devicesSlice/selectors.d.cts +207 -1730
  76. package/dist/devicesSlice/selectors.d.ts +207 -1730
  77. package/dist/devicesSlice/selectors.js +1 -1
  78. package/dist/devicesSlice/thunks.cjs +46 -43
  79. package/dist/devicesSlice/thunks.cjs.map +1 -1
  80. package/dist/devicesSlice/thunks.d.cts +12 -46
  81. package/dist/devicesSlice/thunks.d.ts +12 -46
  82. package/dist/devicesSlice/thunks.js +15 -17
  83. package/dist/monitorSlice/index.cjs.map +1 -1
  84. package/dist/monitorSlice/index.d.cts +1 -1
  85. package/dist/monitorSlice/index.d.ts +1 -1
  86. package/dist/monitorSlice/index.js +1 -1
  87. package/dist/monitorSlice/mocks.cjs.map +1 -1
  88. package/dist/monitorSlice/mocks.js +1 -1
  89. package/dist/monitorSlice/thunks.cjs +36 -24
  90. package/dist/monitorSlice/thunks.cjs.map +1 -1
  91. package/dist/monitorSlice/thunks.d.cts +3 -2
  92. package/dist/monitorSlice/thunks.d.ts +3 -2
  93. package/dist/monitorSlice/thunks.js +13 -13
  94. package/dist/onboardingSlice/index.cjs.map +1 -1
  95. package/dist/onboardingSlice/index.d.cts +1 -1
  96. package/dist/onboardingSlice/index.d.ts +1 -1
  97. package/dist/onboardingSlice/index.js +1 -1
  98. package/dist/onboardingSlice/mocks.cjs.map +1 -1
  99. package/dist/onboardingSlice/mocks.js +1 -1
  100. package/dist/onboardingSlice/thunks.cjs +46 -41
  101. package/dist/onboardingSlice/thunks.cjs.map +1 -1
  102. package/dist/onboardingSlice/thunks.d.cts +7 -15
  103. package/dist/onboardingSlice/thunks.d.ts +7 -15
  104. package/dist/onboardingSlice/thunks.js +15 -15
  105. package/dist/organizationSlice/index.cjs.map +1 -1
  106. package/dist/organizationSlice/index.d.cts +41 -31
  107. package/dist/organizationSlice/index.d.ts +41 -31
  108. package/dist/organizationSlice/index.js +1 -1
  109. package/dist/organizationSlice/mocks.cjs.map +1 -1
  110. package/dist/organizationSlice/mocks.js +1 -1
  111. package/dist/organizationSlice/selectors.d.cts +42 -659
  112. package/dist/organizationSlice/selectors.d.ts +42 -659
  113. package/dist/organizationSlice/thunks.cjs +46 -41
  114. package/dist/organizationSlice/thunks.cjs.map +1 -1
  115. package/dist/organizationSlice/thunks.d.cts +4 -1
  116. package/dist/organizationSlice/thunks.d.ts +4 -1
  117. package/dist/organizationSlice/thunks.js +15 -15
  118. package/dist/organizationSlice/types.cjs.map +1 -1
  119. package/dist/organizationSlice/types.d.cts +2 -12
  120. package/dist/organizationSlice/types.d.ts +2 -12
  121. package/dist/releasesSlice/mocks.d.cts +7 -1
  122. package/dist/releasesSlice/mocks.d.ts +7 -1
  123. package/dist/releasesSlice/selectors.d.cts +155 -930
  124. package/dist/releasesSlice/selectors.d.ts +155 -930
  125. package/dist/releasesSlice/thunks.cjs +36 -24
  126. package/dist/releasesSlice/thunks.cjs.map +1 -1
  127. package/dist/releasesSlice/thunks.d.cts +4 -2
  128. package/dist/releasesSlice/thunks.d.ts +4 -2
  129. package/dist/releasesSlice/thunks.js +13 -13
  130. package/dist/selectors.cjs +15 -8
  131. package/dist/selectors.cjs.map +1 -1
  132. package/dist/selectors.d.cts +6 -3
  133. package/dist/selectors.d.ts +6 -3
  134. package/dist/selectors.js +17 -17
  135. package/dist/store.cjs +21 -16
  136. package/dist/store.cjs.map +1 -1
  137. package/dist/store.d.cts +40 -658
  138. package/dist/store.d.ts +40 -658
  139. package/dist/store.js +9 -9
  140. package/dist/storehooks.cjs +47 -41
  141. package/dist/storehooks.cjs.map +1 -1
  142. package/dist/storehooks.js +16 -15
  143. package/dist/storehooks.js.map +1 -1
  144. package/dist/thunks.cjs +46 -43
  145. package/dist/thunks.cjs.map +1 -1
  146. package/dist/thunks.d.cts +7 -5
  147. package/dist/thunks.d.ts +7 -5
  148. package/dist/thunks.js +15 -17
  149. package/dist/useDeploymentDevice.cjs +46 -41
  150. package/dist/useDeploymentDevice.cjs.map +1 -1
  151. package/dist/useDeploymentDevice.js +15 -15
  152. package/dist/usersSlice/index.cjs.map +1 -1
  153. package/dist/usersSlice/index.d.cts +46 -46
  154. package/dist/usersSlice/index.d.ts +46 -46
  155. package/dist/usersSlice/index.js +1 -1
  156. package/dist/usersSlice/mocks.cjs.map +1 -1
  157. package/dist/usersSlice/mocks.js +1 -1
  158. package/dist/usersSlice/selectors.d.cts +75 -1436
  159. package/dist/usersSlice/selectors.d.ts +75 -1436
  160. package/dist/usersSlice/thunks.cjs +46 -41
  161. package/dist/usersSlice/thunks.cjs.map +1 -1
  162. package/dist/usersSlice/thunks.d.cts +3 -1
  163. package/dist/usersSlice/thunks.d.ts +3 -1
  164. package/dist/usersSlice/thunks.js +15 -15
  165. package/package.json +7 -7
  166. package/dist/chunk-C2LGE3P6.js.map +0 -1
  167. package/dist/chunk-C5NXNZ7F.js.map +0 -1
  168. package/dist/chunk-HLX5L3IM.js.map +0 -1
  169. package/dist/chunk-MH5WPYQI.js.map +0 -1
  170. package/dist/chunk-OFGCC3GM.js.map +0 -1
  171. package/dist/chunk-QOFVCPRW.js.map +0 -1
  172. package/dist/chunk-REZWSU22.js.map +0 -1
  173. package/dist/chunk-WCBHYLUK.js.map +0 -1
  174. package/dist/chunk-ZNAJKEP2.js.map +0 -1
  175. /package/dist/{chunk-ZRMB4U7Z.js.map → chunk-5XUPXMYV.js.map} +0 -0
  176. /package/dist/{chunk-OGUVURJ5.js.map → chunk-KVZEKHVC.js.map} +0 -0
  177. /package/dist/{chunk-5ZCZTTYX.js.map → chunk-LX4YRTYY.js.map} +0 -0
  178. /package/dist/{chunk-4HSH7RH3.js.map → chunk-PIFXECFW.js.map} +0 -0
  179. /package/dist/{chunk-TKIOEF3B.js.map → chunk-ZWLCUOQN.js.map} +0 -0
package/dist/store.d.ts CHANGED
@@ -1,698 +1,80 @@
1
1
  import * as _reduxjs_toolkit from '@reduxjs/toolkit';
2
2
  import * as redux_thunk from 'redux-thunk';
3
3
  import * as redux from 'redux';
4
- import * as _northern_tech_utils_constants from '@northern.tech/utils/constants';
5
- import { ReadState } from './usersSlice/constants.js';
6
- import { User, UserSession, CustomColumn, GlobalSettings, UserSettings } from './usersSlice/index.js';
4
+ import { UserSliceType } from './usersSlice/index.js';
7
5
  import { ReleaseSliceType } from './releasesSlice/index.js';
8
- import { OrganizationState } from './organizationSlice/types.js';
9
- import { OnboardingApproach } from './onboardingSlice/index.js';
10
- import * as _northern_tech_types_types_gen from '@northern.tech/types/types.gen';
11
- import { Deployment, DeploymentByStatus, DeploymentConfig, SelectionState } from './deploymentsSlice/index.js';
6
+ import { OrganizationSliceType } from './organizationSlice/index.js';
7
+ import { OnboardingSliceType } from './onboardingSlice/index.js';
8
+ import { MonitorSliceType } from './monitorSlice/index.js';
9
+ import { DeploymentsSliceType } from './deploymentsSlice/index.js';
12
10
  import { DeviceSliceType } from './devicesSlice/index.js';
13
- import { SearchState, SentryConfig, SnackbarContent, Upload } from './appSlice/index.js';
11
+ import { AppSliceType } from './appSlice/index.js';
14
12
  import 'immer';
15
13
  import '@northern.tech/types/MenderTypes';
14
+ import '@northern.tech/utils/constants';
16
15
  import './commonConstants.js';
17
16
  import 'react/jsx-runtime';
17
+ import './usersSlice/constants.js';
18
+ import './organizationSlice/types.js';
18
19
  import './appSlice/constants.js';
19
20
  import '@mui/material/OverridableComponent';
20
21
  import '@mui/material';
21
22
  import './organizationSlice/constants.js';
23
+ import './monitorSlice/constants.js';
22
24
  import './devicesSlice/constants.js';
23
25
 
24
26
  declare const commonErrorFallback = "Please check your connection.";
25
27
  declare const commonErrorHandler: (err: any, errorContext: any, dispatch: any, fallback?: string, mightBeAuthRelated?: boolean) => Promise<never>;
26
28
  declare const sessionReducer: (state: any, action: any) => {
27
- app: {
28
- cancelSource: any;
29
- commit: string;
30
- demoArtifactLink: string;
31
- docsVersion: string;
32
- features: Record<string, boolean>;
33
- feedbackProbability: number;
34
- firstLoginAfterSignup: boolean;
35
- hostAddress: string | null;
36
- hostedAnnouncement: string;
37
- newThreshold: string;
38
- offlineThreshold: string;
39
- recaptchaSiteKey: string;
40
- searchState: SearchState;
41
- sentry: SentryConfig;
42
- snackbar: SnackbarContent;
43
- stripeAPIKey: string;
44
- trackerCode: string;
45
- uploadsById: Record<string, Upload>;
46
- versionInformation: {
47
- [key: string]: string | {
48
- releaseDate: string;
49
- repos: Record<string, string>;
50
- } | undefined;
51
- backend?: string;
52
- GUI?: string;
53
- latestRelease?: {
54
- releaseDate: string;
55
- repos: Record<string, string>;
56
- };
57
- };
58
- yesterday?: string;
59
- };
29
+ app: AppSliceType;
60
30
  devices: DeviceSliceType;
61
- deployments: {
62
- byId: Record<string, Deployment>;
63
- byStatus: DeploymentByStatus;
64
- config: DeploymentConfig;
65
- deploymentDeviceLimit: number;
66
- selectedDeviceIds: string[];
67
- selectionState: SelectionState;
68
- };
69
- monitor: {
70
- alerts: {
71
- alertList: {
72
- page: number;
73
- perPage: number;
74
- total: number;
75
- };
76
- byDeviceId: {
77
- alerts?: Record<string, _northern_tech_types_types_gen.Alert & {
78
- fullName?: string;
79
- }>;
80
- latest?: Record<string, _northern_tech_types_types_gen.Alert & {
81
- fullName?: string;
82
- }>;
83
- };
84
- };
85
- issueCounts: {
86
- byType: {
87
- issues: {
88
- filtered: number;
89
- total: number;
90
- };
91
- offline: {
92
- filtered: number;
93
- total: number;
94
- };
95
- failedLastUpdate: {
96
- filtered: number;
97
- total: number;
98
- };
99
- monitoring: {
100
- filtered: number;
101
- total: number;
102
- };
103
- authRequests: {
104
- filtered: number;
105
- total: number;
106
- };
107
- gatewayDevices: {
108
- filtered: number;
109
- total: number;
110
- };
111
- };
112
- };
113
- settings: {
114
- global: {
115
- channels: {
116
- email: {
117
- enabled: boolean;
118
- };
119
- };
120
- };
121
- };
122
- };
123
- onboarding: {
124
- address?: string;
125
- approach: OnboardingApproach | null;
126
- complete: boolean;
127
- demoArtifactPort: number;
128
- deviceConnection?: string;
129
- deviceType: string[] | string | null;
130
- progress: string | null;
131
- showTips: boolean | null;
132
- showTipsDialog: boolean;
133
- };
134
- organization: OrganizationState;
31
+ deployments: DeploymentsSliceType;
32
+ monitor: MonitorSliceType;
33
+ onboarding: OnboardingSliceType;
34
+ organization: OrganizationSliceType;
135
35
  releases: ReleaseSliceType;
136
- users: {
137
- activationCode?: string;
138
- byId: Record<string, User>;
139
- currentSession?: UserSession | object;
140
- currentUser: string | null;
141
- customColumns: CustomColumn[];
142
- globalSettings: GlobalSettings;
143
- permissionSetsById: Record<string, _northern_tech_utils_constants.PermissionSet>;
144
- qrCode: string | null;
145
- rolesById: Record<string, _northern_tech_utils_constants.Role>;
146
- rolesInitialized: boolean;
147
- settingsInitialized: boolean;
148
- showConnectDeviceDialog: boolean;
149
- showFeedbackDialog: boolean;
150
- showStartupNotification: boolean;
151
- tooltips: {
152
- byId: Record<string, {
153
- readState: ReadState;
154
- }>;
155
- };
156
- userSettings: UserSettings;
157
- userSettingsInitialized: boolean;
158
- };
36
+ users: UserSliceType;
159
37
  };
160
38
  declare const getConfiguredStore: (options?: {}) => _reduxjs_toolkit.EnhancedStore<{
161
- app: {
162
- cancelSource: any;
163
- commit: string;
164
- demoArtifactLink: string;
165
- docsVersion: string;
166
- features: Record<string, boolean>;
167
- feedbackProbability: number;
168
- firstLoginAfterSignup: boolean;
169
- hostAddress: string | null;
170
- hostedAnnouncement: string;
171
- newThreshold: string;
172
- offlineThreshold: string;
173
- recaptchaSiteKey: string;
174
- searchState: SearchState;
175
- sentry: SentryConfig;
176
- snackbar: SnackbarContent;
177
- stripeAPIKey: string;
178
- trackerCode: string;
179
- uploadsById: Record<string, Upload>;
180
- versionInformation: {
181
- [key: string]: string | {
182
- releaseDate: string;
183
- repos: Record<string, string>;
184
- } | undefined;
185
- backend?: string;
186
- GUI?: string;
187
- latestRelease?: {
188
- releaseDate: string;
189
- repos: Record<string, string>;
190
- };
191
- };
192
- yesterday?: string;
193
- };
39
+ app: AppSliceType;
194
40
  devices: DeviceSliceType;
195
- deployments: {
196
- byId: Record<string, Deployment>;
197
- byStatus: DeploymentByStatus;
198
- config: DeploymentConfig;
199
- deploymentDeviceLimit: number;
200
- selectedDeviceIds: string[];
201
- selectionState: SelectionState;
202
- };
203
- monitor: {
204
- alerts: {
205
- alertList: {
206
- page: number;
207
- perPage: number;
208
- total: number;
209
- };
210
- byDeviceId: {
211
- alerts?: Record<string, _northern_tech_types_types_gen.Alert & {
212
- fullName?: string;
213
- }>;
214
- latest?: Record<string, _northern_tech_types_types_gen.Alert & {
215
- fullName?: string;
216
- }>;
217
- };
218
- };
219
- issueCounts: {
220
- byType: {
221
- issues: {
222
- filtered: number;
223
- total: number;
224
- };
225
- offline: {
226
- filtered: number;
227
- total: number;
228
- };
229
- failedLastUpdate: {
230
- filtered: number;
231
- total: number;
232
- };
233
- monitoring: {
234
- filtered: number;
235
- total: number;
236
- };
237
- authRequests: {
238
- filtered: number;
239
- total: number;
240
- };
241
- gatewayDevices: {
242
- filtered: number;
243
- total: number;
244
- };
245
- };
246
- };
247
- settings: {
248
- global: {
249
- channels: {
250
- email: {
251
- enabled: boolean;
252
- };
253
- };
254
- };
255
- };
256
- };
257
- onboarding: {
258
- address?: string;
259
- approach: OnboardingApproach | null;
260
- complete: boolean;
261
- demoArtifactPort: number;
262
- deviceConnection?: string;
263
- deviceType: string[] | string | null;
264
- progress: string | null;
265
- showTips: boolean | null;
266
- showTipsDialog: boolean;
267
- };
268
- organization: OrganizationState;
41
+ deployments: DeploymentsSliceType;
42
+ monitor: MonitorSliceType;
43
+ onboarding: OnboardingSliceType;
44
+ organization: OrganizationSliceType;
269
45
  releases: ReleaseSliceType;
270
- users: {
271
- activationCode?: string;
272
- byId: Record<string, User>;
273
- currentSession?: UserSession | object;
274
- currentUser: string | null;
275
- customColumns: CustomColumn[];
276
- globalSettings: GlobalSettings;
277
- permissionSetsById: Record<string, _northern_tech_utils_constants.PermissionSet>;
278
- qrCode: string | null;
279
- rolesById: Record<string, _northern_tech_utils_constants.Role>;
280
- rolesInitialized: boolean;
281
- settingsInitialized: boolean;
282
- showConnectDeviceDialog: boolean;
283
- showFeedbackDialog: boolean;
284
- showStartupNotification: boolean;
285
- tooltips: {
286
- byId: Record<string, {
287
- readState: ReadState;
288
- }>;
289
- };
290
- userSettings: UserSettings;
291
- userSettingsInitialized: boolean;
292
- };
46
+ users: UserSliceType;
293
47
  }, any, _reduxjs_toolkit.Tuple<[redux.StoreEnhancer<{
294
48
  dispatch: redux_thunk.ThunkDispatch<{
295
- app: {
296
- cancelSource: any;
297
- commit: string;
298
- demoArtifactLink: string;
299
- docsVersion: string;
300
- features: Record<string, boolean>;
301
- feedbackProbability: number;
302
- firstLoginAfterSignup: boolean;
303
- hostAddress: string | null;
304
- hostedAnnouncement: string;
305
- newThreshold: string;
306
- offlineThreshold: string;
307
- recaptchaSiteKey: string;
308
- searchState: SearchState;
309
- sentry: SentryConfig;
310
- snackbar: SnackbarContent;
311
- stripeAPIKey: string;
312
- trackerCode: string;
313
- uploadsById: Record<string, Upload>;
314
- versionInformation: {
315
- [key: string]: string | {
316
- releaseDate: string;
317
- repos: Record<string, string>;
318
- } | undefined;
319
- backend?: string;
320
- GUI?: string;
321
- latestRelease?: {
322
- releaseDate: string;
323
- repos: Record<string, string>;
324
- };
325
- };
326
- yesterday?: string;
327
- };
49
+ app: AppSliceType;
328
50
  devices: DeviceSliceType;
329
- deployments: {
330
- byId: Record<string, Deployment>;
331
- byStatus: DeploymentByStatus;
332
- config: DeploymentConfig;
333
- deploymentDeviceLimit: number;
334
- selectedDeviceIds: string[];
335
- selectionState: SelectionState;
336
- };
337
- monitor: {
338
- alerts: {
339
- alertList: {
340
- page: number;
341
- perPage: number;
342
- total: number;
343
- };
344
- byDeviceId: {
345
- alerts?: Record<string, _northern_tech_types_types_gen.Alert & {
346
- fullName?: string;
347
- }>;
348
- latest?: Record<string, _northern_tech_types_types_gen.Alert & {
349
- fullName?: string;
350
- }>;
351
- };
352
- };
353
- issueCounts: {
354
- byType: {
355
- issues: {
356
- filtered: number;
357
- total: number;
358
- };
359
- offline: {
360
- filtered: number;
361
- total: number;
362
- };
363
- failedLastUpdate: {
364
- filtered: number;
365
- total: number;
366
- };
367
- monitoring: {
368
- filtered: number;
369
- total: number;
370
- };
371
- authRequests: {
372
- filtered: number;
373
- total: number;
374
- };
375
- gatewayDevices: {
376
- filtered: number;
377
- total: number;
378
- };
379
- };
380
- };
381
- settings: {
382
- global: {
383
- channels: {
384
- email: {
385
- enabled: boolean;
386
- };
387
- };
388
- };
389
- };
390
- };
391
- onboarding: {
392
- address?: string;
393
- approach: OnboardingApproach | null;
394
- complete: boolean;
395
- demoArtifactPort: number;
396
- deviceConnection?: string;
397
- deviceType: string[] | string | null;
398
- progress: string | null;
399
- showTips: boolean | null;
400
- showTipsDialog: boolean;
401
- };
402
- organization: OrganizationState;
51
+ deployments: DeploymentsSliceType;
52
+ monitor: MonitorSliceType;
53
+ onboarding: OnboardingSliceType;
54
+ organization: OrganizationSliceType;
403
55
  releases: ReleaseSliceType;
404
- users: {
405
- activationCode?: string;
406
- byId: Record<string, User>;
407
- currentSession?: UserSession | object;
408
- currentUser: string | null;
409
- customColumns: CustomColumn[];
410
- globalSettings: GlobalSettings;
411
- permissionSetsById: Record<string, _northern_tech_utils_constants.PermissionSet>;
412
- qrCode: string | null;
413
- rolesById: Record<string, _northern_tech_utils_constants.Role>;
414
- rolesInitialized: boolean;
415
- settingsInitialized: boolean;
416
- showConnectDeviceDialog: boolean;
417
- showFeedbackDialog: boolean;
418
- showStartupNotification: boolean;
419
- tooltips: {
420
- byId: Record<string, {
421
- readState: ReadState;
422
- }>;
423
- };
424
- userSettings: UserSettings;
425
- userSettingsInitialized: boolean;
426
- };
56
+ users: UserSliceType;
427
57
  }, undefined, redux.UnknownAction>;
428
58
  }>, redux.StoreEnhancer]>>;
429
59
  declare const store: _reduxjs_toolkit.EnhancedStore<{
430
- app: {
431
- cancelSource: any;
432
- commit: string;
433
- demoArtifactLink: string;
434
- docsVersion: string;
435
- features: Record<string, boolean>;
436
- feedbackProbability: number;
437
- firstLoginAfterSignup: boolean;
438
- hostAddress: string | null;
439
- hostedAnnouncement: string;
440
- newThreshold: string;
441
- offlineThreshold: string;
442
- recaptchaSiteKey: string;
443
- searchState: SearchState;
444
- sentry: SentryConfig;
445
- snackbar: SnackbarContent;
446
- stripeAPIKey: string;
447
- trackerCode: string;
448
- uploadsById: Record<string, Upload>;
449
- versionInformation: {
450
- [key: string]: string | {
451
- releaseDate: string;
452
- repos: Record<string, string>;
453
- } | undefined;
454
- backend?: string;
455
- GUI?: string;
456
- latestRelease?: {
457
- releaseDate: string;
458
- repos: Record<string, string>;
459
- };
460
- };
461
- yesterday?: string;
462
- };
60
+ app: AppSliceType;
463
61
  devices: DeviceSliceType;
464
- deployments: {
465
- byId: Record<string, Deployment>;
466
- byStatus: DeploymentByStatus;
467
- config: DeploymentConfig;
468
- deploymentDeviceLimit: number;
469
- selectedDeviceIds: string[];
470
- selectionState: SelectionState;
471
- };
472
- monitor: {
473
- alerts: {
474
- alertList: {
475
- page: number;
476
- perPage: number;
477
- total: number;
478
- };
479
- byDeviceId: {
480
- alerts?: Record<string, _northern_tech_types_types_gen.Alert & {
481
- fullName?: string;
482
- }>;
483
- latest?: Record<string, _northern_tech_types_types_gen.Alert & {
484
- fullName?: string;
485
- }>;
486
- };
487
- };
488
- issueCounts: {
489
- byType: {
490
- issues: {
491
- filtered: number;
492
- total: number;
493
- };
494
- offline: {
495
- filtered: number;
496
- total: number;
497
- };
498
- failedLastUpdate: {
499
- filtered: number;
500
- total: number;
501
- };
502
- monitoring: {
503
- filtered: number;
504
- total: number;
505
- };
506
- authRequests: {
507
- filtered: number;
508
- total: number;
509
- };
510
- gatewayDevices: {
511
- filtered: number;
512
- total: number;
513
- };
514
- };
515
- };
516
- settings: {
517
- global: {
518
- channels: {
519
- email: {
520
- enabled: boolean;
521
- };
522
- };
523
- };
524
- };
525
- };
526
- onboarding: {
527
- address?: string;
528
- approach: OnboardingApproach | null;
529
- complete: boolean;
530
- demoArtifactPort: number;
531
- deviceConnection?: string;
532
- deviceType: string[] | string | null;
533
- progress: string | null;
534
- showTips: boolean | null;
535
- showTipsDialog: boolean;
536
- };
537
- organization: OrganizationState;
62
+ deployments: DeploymentsSliceType;
63
+ monitor: MonitorSliceType;
64
+ onboarding: OnboardingSliceType;
65
+ organization: OrganizationSliceType;
538
66
  releases: ReleaseSliceType;
539
- users: {
540
- activationCode?: string;
541
- byId: Record<string, User>;
542
- currentSession?: UserSession | object;
543
- currentUser: string | null;
544
- customColumns: CustomColumn[];
545
- globalSettings: GlobalSettings;
546
- permissionSetsById: Record<string, _northern_tech_utils_constants.PermissionSet>;
547
- qrCode: string | null;
548
- rolesById: Record<string, _northern_tech_utils_constants.Role>;
549
- rolesInitialized: boolean;
550
- settingsInitialized: boolean;
551
- showConnectDeviceDialog: boolean;
552
- showFeedbackDialog: boolean;
553
- showStartupNotification: boolean;
554
- tooltips: {
555
- byId: Record<string, {
556
- readState: ReadState;
557
- }>;
558
- };
559
- userSettings: UserSettings;
560
- userSettingsInitialized: boolean;
561
- };
67
+ users: UserSliceType;
562
68
  }, any, _reduxjs_toolkit.Tuple<[redux.StoreEnhancer<{
563
69
  dispatch: redux_thunk.ThunkDispatch<{
564
- app: {
565
- cancelSource: any;
566
- commit: string;
567
- demoArtifactLink: string;
568
- docsVersion: string;
569
- features: Record<string, boolean>;
570
- feedbackProbability: number;
571
- firstLoginAfterSignup: boolean;
572
- hostAddress: string | null;
573
- hostedAnnouncement: string;
574
- newThreshold: string;
575
- offlineThreshold: string;
576
- recaptchaSiteKey: string;
577
- searchState: SearchState;
578
- sentry: SentryConfig;
579
- snackbar: SnackbarContent;
580
- stripeAPIKey: string;
581
- trackerCode: string;
582
- uploadsById: Record<string, Upload>;
583
- versionInformation: {
584
- [key: string]: string | {
585
- releaseDate: string;
586
- repos: Record<string, string>;
587
- } | undefined;
588
- backend?: string;
589
- GUI?: string;
590
- latestRelease?: {
591
- releaseDate: string;
592
- repos: Record<string, string>;
593
- };
594
- };
595
- yesterday?: string;
596
- };
70
+ app: AppSliceType;
597
71
  devices: DeviceSliceType;
598
- deployments: {
599
- byId: Record<string, Deployment>;
600
- byStatus: DeploymentByStatus;
601
- config: DeploymentConfig;
602
- deploymentDeviceLimit: number;
603
- selectedDeviceIds: string[];
604
- selectionState: SelectionState;
605
- };
606
- monitor: {
607
- alerts: {
608
- alertList: {
609
- page: number;
610
- perPage: number;
611
- total: number;
612
- };
613
- byDeviceId: {
614
- alerts?: Record<string, _northern_tech_types_types_gen.Alert & {
615
- fullName?: string;
616
- }>;
617
- latest?: Record<string, _northern_tech_types_types_gen.Alert & {
618
- fullName?: string;
619
- }>;
620
- };
621
- };
622
- issueCounts: {
623
- byType: {
624
- issues: {
625
- filtered: number;
626
- total: number;
627
- };
628
- offline: {
629
- filtered: number;
630
- total: number;
631
- };
632
- failedLastUpdate: {
633
- filtered: number;
634
- total: number;
635
- };
636
- monitoring: {
637
- filtered: number;
638
- total: number;
639
- };
640
- authRequests: {
641
- filtered: number;
642
- total: number;
643
- };
644
- gatewayDevices: {
645
- filtered: number;
646
- total: number;
647
- };
648
- };
649
- };
650
- settings: {
651
- global: {
652
- channels: {
653
- email: {
654
- enabled: boolean;
655
- };
656
- };
657
- };
658
- };
659
- };
660
- onboarding: {
661
- address?: string;
662
- approach: OnboardingApproach | null;
663
- complete: boolean;
664
- demoArtifactPort: number;
665
- deviceConnection?: string;
666
- deviceType: string[] | string | null;
667
- progress: string | null;
668
- showTips: boolean | null;
669
- showTipsDialog: boolean;
670
- };
671
- organization: OrganizationState;
72
+ deployments: DeploymentsSliceType;
73
+ monitor: MonitorSliceType;
74
+ onboarding: OnboardingSliceType;
75
+ organization: OrganizationSliceType;
672
76
  releases: ReleaseSliceType;
673
- users: {
674
- activationCode?: string;
675
- byId: Record<string, User>;
676
- currentSession?: UserSession | object;
677
- currentUser: string | null;
678
- customColumns: CustomColumn[];
679
- globalSettings: GlobalSettings;
680
- permissionSetsById: Record<string, _northern_tech_utils_constants.PermissionSet>;
681
- qrCode: string | null;
682
- rolesById: Record<string, _northern_tech_utils_constants.Role>;
683
- rolesInitialized: boolean;
684
- settingsInitialized: boolean;
685
- showConnectDeviceDialog: boolean;
686
- showFeedbackDialog: boolean;
687
- showStartupNotification: boolean;
688
- tooltips: {
689
- byId: Record<string, {
690
- readState: ReadState;
691
- }>;
692
- };
693
- userSettings: UserSettings;
694
- userSettingsInitialized: boolean;
695
- };
77
+ users: UserSliceType;
696
78
  }, undefined, redux.UnknownAction>;
697
79
  }>, redux.StoreEnhancer]>>;
698
80
  type AppDispatch = typeof store.dispatch;