@northern.tech/store 0.46.4 → 0.47.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.
- package/dist/actions.d.cts +6 -6
- package/dist/actions.d.ts +6 -6
- package/dist/api/general-api.cjs +2 -2
- package/dist/api/general-api.cjs.map +1 -1
- package/dist/api/general-api.js +1 -1
- package/dist/api/general-api.js.map +1 -1
- package/dist/appSlice/constants.cjs +3 -4
- package/dist/appSlice/constants.cjs.map +1 -1
- package/dist/appSlice/constants.d.cts +1 -1
- package/dist/appSlice/constants.d.ts +1 -1
- package/dist/appSlice/constants.js +1 -2
- package/dist/appSlice/constants.js.map +1 -1
- package/dist/appSlice/index.d.cts +1 -1
- package/dist/appSlice/index.d.ts +1 -1
- package/dist/appSlice/index.js +1 -1
- package/dist/appSlice/mocks.d.cts +1 -1
- package/dist/appSlice/mocks.d.ts +1 -1
- package/dist/appSlice/selectors.cjs.map +1 -1
- package/dist/appSlice/selectors.d.cts +2 -130
- package/dist/appSlice/selectors.d.ts +2 -130
- package/dist/appSlice/selectors.js.map +1 -1
- package/dist/appSlice/thunks.d.cts +2 -2
- package/dist/appSlice/thunks.d.ts +2 -2
- package/dist/auth.cjs +3 -3
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.d.cts +1 -1
- package/dist/auth.d.ts +1 -1
- package/dist/auth.js +2 -1
- package/dist/auth.js.map +1 -1
- package/dist/commonConstants.cjs +4 -3
- package/dist/commonConstants.d.cts +2 -2
- package/dist/commonConstants.d.ts +2 -2
- package/dist/commonConstants.js +1 -1
- package/dist/commonSelectors.cjs +1 -1
- package/dist/commonSelectors.d.cts +76 -369
- package/dist/commonSelectors.d.ts +76 -369
- package/dist/commonSelectors.js +1 -1
- package/dist/constants-CCkKh9KM.d.ts +109 -0
- package/dist/constants-CUwYPOYK.d.cts +109 -0
- package/dist/{constants-D5hACLhF.js → constants-DjiC_FnZ.js} +3 -269
- package/dist/constants-DjiC_FnZ.js.map +1 -0
- package/dist/{constants-MVizYy89.cjs → constants-DsOnY5o5.cjs} +1 -279
- package/dist/constants-DsOnY5o5.cjs.map +1 -0
- package/dist/{constants-nKSWZ8oD.d.ts → constants-tC3RR_Oo.d.cts} +2 -3
- package/dist/{constants-nKSWZ8oD.d.cts → constants-tC3RR_Oo.d.ts} +2 -3
- package/dist/constants.cjs +5 -5
- package/dist/constants.d.cts +3 -3
- package/dist/constants.d.ts +3 -3
- package/dist/constants.js +1 -1
- package/dist/deploymentsSlice/constants.cjs +1 -1
- package/dist/deploymentsSlice/constants.js +1 -1
- package/dist/deploymentsSlice/index.cjs +1 -1
- package/dist/deploymentsSlice/index.js +1 -1
- package/dist/deploymentsSlice/selectors.cjs +1 -1
- package/dist/deploymentsSlice/selectors.cjs.map +1 -1
- package/dist/deploymentsSlice/selectors.d.cts +2 -97
- package/dist/deploymentsSlice/selectors.d.ts +2 -97
- package/dist/deploymentsSlice/selectors.js +1 -1
- package/dist/deploymentsSlice/selectors.js.map +1 -1
- package/dist/deploymentsSlice/thunks.d.cts +4 -4
- package/dist/deploymentsSlice/thunks.d.ts +4 -4
- package/dist/devicesSlice/constants.cjs +1 -1
- package/dist/devicesSlice/constants.d.cts +1 -1
- package/dist/devicesSlice/constants.d.ts +1 -1
- package/dist/devicesSlice/constants.js +1 -1
- package/dist/devicesSlice/index.d.cts +1 -1
- package/dist/devicesSlice/index.d.ts +1 -1
- package/dist/devicesSlice/index.js +1 -1
- package/dist/devicesSlice/mocks.js +1 -1
- package/dist/devicesSlice/selectors.cjs +2 -2
- package/dist/devicesSlice/selectors.cjs.map +1 -1
- package/dist/devicesSlice/selectors.d.cts +2 -887
- package/dist/devicesSlice/selectors.d.ts +2 -887
- package/dist/devicesSlice/selectors.js +2 -2
- package/dist/devicesSlice/selectors.js.map +1 -1
- package/dist/devicesSlice/thunks.d.cts +4 -4
- package/dist/devicesSlice/thunks.d.ts +4 -4
- package/dist/{index-KxRmyFLr.d.cts → index-7jVuB4tG.d.cts} +2 -2
- package/dist/{index-fGVC5s1C.d.cts → index-BWtIaimn.d.cts} +2 -2
- package/dist/{index-BfmRpbiJ.d.cts → index-BcrZxKLw.d.cts} +2 -2
- package/dist/{index--SKVGToc.d.ts → index-C1vNDCYR.d.ts} +2 -2
- package/dist/{index-CRqnH_go.d.ts → index-C2za83Qs.d.ts} +2 -2
- package/dist/{index-xxqlerg5.d.ts → index-CThE5Gfh.d.ts} +2 -2
- package/dist/{index-BKU1G9-x.d.cts → index-CaNZaXie.d.cts} +2 -2
- package/dist/{index-BVNS-Aut.d.ts → index-CvMpbsOo.d.ts} +2 -2
- package/dist/{index-HjOSTTGF.d.cts → index-CzQRHJ6f.d.cts} +2 -2
- package/dist/{index-CqhXqGLt.d.cts → index-DNYeo7wc.d.cts} +2 -2
- package/dist/{index-D9GJhX1I.d.ts → index-DOPRnlaC.d.ts} +2 -2
- package/dist/{index-BMsafOyJ.d.ts → index-o_m7WKiR.d.ts} +2 -2
- package/dist/locationutils.cjs +1 -1
- package/dist/locationutils.d.cts +2 -2
- package/dist/locationutils.d.ts +2 -2
- package/dist/locationutils.js +1 -1
- package/dist/mockState.cjs +24 -0
- package/dist/mockState.cjs.map +1 -0
- package/dist/mockState.d.cts +7 -0
- package/dist/mockState.d.ts +7 -0
- package/dist/mockState.js +23 -0
- package/dist/mockState.js.map +1 -0
- package/dist/monitorSlice/constants.d.cts +1 -1
- package/dist/monitorSlice/constants.d.ts +1 -1
- package/dist/monitorSlice/index.d.cts +1 -1
- package/dist/monitorSlice/index.d.ts +1 -1
- package/dist/monitorSlice/index.js +1 -1
- package/dist/monitorSlice/mocks.d.cts +1 -1
- package/dist/monitorSlice/mocks.d.ts +1 -1
- package/dist/monitorSlice/mocks.js +1 -1
- package/dist/monitorSlice/selectors.cjs.map +1 -1
- package/dist/monitorSlice/selectors.d.cts +2 -10
- package/dist/monitorSlice/selectors.d.ts +2 -10
- package/dist/monitorSlice/selectors.js.map +1 -1
- package/dist/monitorSlice/thunks.cjs +2 -3
- package/dist/monitorSlice/thunks.cjs.map +1 -1
- package/dist/monitorSlice/thunks.d.cts +4 -4
- package/dist/monitorSlice/thunks.d.ts +4 -4
- package/dist/monitorSlice/thunks.js +3 -2
- package/dist/monitorSlice/thunks.js.map +1 -1
- package/dist/onboardingSlice/selectors.cjs.map +1 -1
- package/dist/onboardingSlice/selectors.d.cts +2 -6
- package/dist/onboardingSlice/selectors.d.ts +2 -6
- package/dist/onboardingSlice/selectors.js.map +1 -1
- package/dist/onboardingSlice/thunks.d.cts +3 -3
- package/dist/onboardingSlice/thunks.d.ts +3 -3
- package/dist/organizationSlice/constants.cjs +1 -1
- package/dist/organizationSlice/constants.js +1 -1
- package/dist/organizationSlice/index.cjs +1 -1
- package/dist/organizationSlice/index.d.cts +1 -1
- package/dist/organizationSlice/index.d.ts +1 -1
- package/dist/organizationSlice/index.js +1 -1
- package/dist/organizationSlice/mocks.d.cts +3 -3
- package/dist/organizationSlice/mocks.d.ts +3 -3
- package/dist/organizationSlice/mocks.js +1 -1
- package/dist/organizationSlice/selectors.cjs +1 -1
- package/dist/organizationSlice/selectors.cjs.map +1 -1
- package/dist/organizationSlice/selectors.d.cts +2 -472
- package/dist/organizationSlice/selectors.d.ts +2 -472
- package/dist/organizationSlice/selectors.js +1 -1
- package/dist/organizationSlice/selectors.js.map +1 -1
- package/dist/organizationSlice/thunks.d.cts +25 -21
- package/dist/organizationSlice/thunks.d.ts +25 -21
- package/dist/organizationSlice/types.d.cts +1 -1
- package/dist/organizationSlice/types.d.ts +1 -1
- package/dist/releasesSlice/index.d.cts +1 -1
- package/dist/releasesSlice/index.d.ts +1 -1
- package/dist/releasesSlice/index.js +1 -1
- package/dist/releasesSlice/mocks.js +1 -1
- package/dist/releasesSlice/selectors.cjs.map +1 -1
- package/dist/releasesSlice/selectors.d.cts +2 -795
- package/dist/releasesSlice/selectors.d.ts +2 -795
- package/dist/releasesSlice/selectors.js.map +1 -1
- package/dist/releasesSlice/thunks.cjs +17 -17
- package/dist/releasesSlice/thunks.cjs.map +1 -1
- package/dist/releasesSlice/thunks.d.cts +5 -5
- package/dist/releasesSlice/thunks.d.ts +5 -5
- package/dist/releasesSlice/thunks.js +2 -1
- package/dist/releasesSlice/thunks.js.map +1 -1
- package/dist/selectors-1394DVvN.d.ts +712 -0
- package/dist/selectors-Ba9LUr_0.d.ts +593 -0
- package/dist/selectors-CAo0fzIZ.d.ts +99 -0
- package/dist/selectors-CH-yXu-7.d.cts +84 -0
- package/dist/selectors-CQYkG1VI.d.cts +9 -0
- package/dist/selectors-D9t4It2i.d.ts +84 -0
- package/dist/selectors-DDsFLtxz.d.cts +712 -0
- package/dist/selectors-DFSv4A_m.d.ts +378 -0
- package/dist/selectors-DQKg681M.d.ts +363 -0
- package/dist/selectors-DeqP_VLU.d.cts +593 -0
- package/dist/selectors-LhR8TyWU.d.cts +378 -0
- package/dist/selectors-XzNyGFJI.d.cts +99 -0
- package/dist/selectors-aLOjKkxN.d.cts +14 -0
- package/dist/selectors-elCimAHX.d.ts +9 -0
- package/dist/selectors-jusUdUdc.d.cts +363 -0
- package/dist/selectors-vk0GUGHf.d.ts +14 -0
- package/dist/selectors.d.cts +9 -9
- package/dist/selectors.d.ts +9 -9
- package/dist/sockethook.cjs +4 -4
- package/dist/sockethook.cjs.map +1 -1
- package/dist/sockethook.js +2 -1
- package/dist/sockethook.js.map +1 -1
- package/dist/{store-Dw8Uo_Df.d.cts → store-CCvk8X-k.d.cts} +14 -33
- package/dist/{store-DLp6ajT8.d.ts → store-v5V-bbB_.d.ts} +15 -34
- package/dist/store.cjs +2 -4
- package/dist/store.cjs.map +1 -1
- package/dist/store.d.cts +2 -2
- package/dist/store.d.ts +2 -2
- package/dist/store.js +2 -4
- package/dist/store.js.map +1 -1
- package/dist/thunks.cjs +30 -38
- package/dist/thunks.cjs.map +1 -1
- package/dist/thunks.js +10 -17
- package/dist/thunks.js.map +1 -1
- package/dist/{types-DY0J79yF.d.ts → types-B2gphGj8.d.ts} +3 -3
- package/dist/{types-B67YW1jV.d.cts → types-CLASWtVP.d.cts} +3 -3
- package/dist/usersSlice/constants.cjs +1 -1
- package/dist/usersSlice/constants.js +1 -1
- package/dist/usersSlice/index.cjs +1 -1
- package/dist/usersSlice/index.d.cts +1 -1
- package/dist/usersSlice/index.d.ts +1 -1
- package/dist/usersSlice/index.js +1 -1
- package/dist/usersSlice/mocks.d.cts +1 -1
- package/dist/usersSlice/mocks.d.ts +1 -1
- package/dist/usersSlice/mocks.js +1 -1
- package/dist/usersSlice/selectors.cjs +3 -3
- package/dist/usersSlice/selectors.cjs.map +1 -1
- package/dist/usersSlice/selectors.d.cts +2 -466
- package/dist/usersSlice/selectors.d.ts +2 -466
- package/dist/usersSlice/selectors.js +2 -2
- package/dist/usersSlice/selectors.js.map +1 -1
- package/dist/usersSlice/thunks.d.cts +88 -88
- package/dist/usersSlice/thunks.d.ts +88 -88
- package/dist/utils.cjs +5 -10
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.d.cts +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +4 -8
- package/dist/utils.js.map +1 -1
- package/package.json +1 -1
- package/dist/constants-BJuY-ODE.d.ts +0 -124
- package/dist/constants-C2O55iZu.d.cts +0 -124
- package/dist/constants-D5hACLhF.js.map +0 -1
- package/dist/constants-MVizYy89.cjs.map +0 -1
- package/dist/storehooks.cjs +0 -249
- package/dist/storehooks.cjs.map +0 -1
- package/dist/storehooks.d.cts +0 -49
- package/dist/storehooks.d.ts +0 -49
- package/dist/storehooks.js +0 -241
- package/dist/storehooks.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { S as Role, c as AuditLogPermission, h as GroupsPermission, k as UserManagementPermission, p as DeploymentPermission, v as PermissionSet, x as ReleasesPermission } from "../constants-
|
|
1
|
+
import { S as Role, c as AuditLogPermission, h as GroupsPermission, k as UserManagementPermission, p as DeploymentPermission, v as PermissionSet, x as ReleasesPermission } from "../constants-CUwYPOYK.cjs";
|
|
2
2
|
import { i as ReadState } from "../constants-D8-yUk19.cjs";
|
|
3
|
-
import { a as UserSettings, i as UserSession, n as GlobalSettings, r as User$1, t as CustomColumn } from "../index-
|
|
4
|
-
import { i as SnackbarContent } from "../index-
|
|
5
|
-
import {
|
|
3
|
+
import { a as UserSettings, i as UserSession, n as GlobalSettings, r as User$1, t as CustomColumn } from "../index-DNYeo7wc.cjs";
|
|
4
|
+
import { i as SnackbarContent } from "../index-CaNZaXie.cjs";
|
|
5
|
+
import { i as RootState, t as AppDispatch } from "../store-CCvk8X-k.cjs";
|
|
6
6
|
import { EmailUpdateRequest, PendingEmailChange, PersonalAccessToken } from "@northern.tech/types/MenderTypes";
|
|
7
7
|
//#region src/usersSlice/thunks.d.ts
|
|
8
8
|
type ThunkPermissionSet = Record<string, PermissionSet>;
|
|
@@ -167,17 +167,7 @@ export declare const cancelEmailChange: import("@reduxjs/toolkit").AsyncThunk<im
|
|
|
167
167
|
fulfilledMeta?: unknown;
|
|
168
168
|
rejectedMeta?: unknown;
|
|
169
169
|
}>;
|
|
170
|
-
export declare const verify2FA: import("@reduxjs/toolkit").AsyncThunk<import("@reduxjs/toolkit").PayloadAction<
|
|
171
|
-
arg: string;
|
|
172
|
-
requestId: string;
|
|
173
|
-
requestStatus: "rejected";
|
|
174
|
-
aborted: boolean;
|
|
175
|
-
condition: boolean;
|
|
176
|
-
} & ({
|
|
177
|
-
rejectedWithValue: true;
|
|
178
|
-
} | ({
|
|
179
|
-
rejectedWithValue: false;
|
|
180
|
-
} & {})), import("@reduxjs/toolkit").SerializedError> | import("@reduxjs/toolkit").PayloadAction<[{
|
|
170
|
+
export declare const verify2FA: import("@reduxjs/toolkit").AsyncThunk<import("@reduxjs/toolkit").PayloadAction<[{
|
|
181
171
|
payload: User$1;
|
|
182
172
|
type: "users/receivedUser";
|
|
183
173
|
}, import("@reduxjs/toolkit").PayloadAction<void, string, {
|
|
@@ -221,7 +211,17 @@ export declare const verify2FA: import("@reduxjs/toolkit").AsyncThunk<import("@r
|
|
|
221
211
|
arg: string;
|
|
222
212
|
requestId: string;
|
|
223
213
|
requestStatus: "fulfilled";
|
|
224
|
-
}, never
|
|
214
|
+
}, never> | import("@reduxjs/toolkit").PayloadAction<unknown, string, {
|
|
215
|
+
arg: string;
|
|
216
|
+
requestId: string;
|
|
217
|
+
requestStatus: "rejected";
|
|
218
|
+
aborted: boolean;
|
|
219
|
+
condition: boolean;
|
|
220
|
+
} & ({
|
|
221
|
+
rejectedWithValue: true;
|
|
222
|
+
} | ({
|
|
223
|
+
rejectedWithValue: false;
|
|
224
|
+
} & {})), import("@reduxjs/toolkit").SerializedError>, {
|
|
225
225
|
token2fa: string;
|
|
226
226
|
}, {
|
|
227
227
|
dispatch: AppDispatch;
|
|
@@ -296,17 +296,7 @@ export declare const getUser: import("@reduxjs/toolkit").AsyncThunk<[{
|
|
|
296
296
|
fulfilledMeta?: unknown;
|
|
297
297
|
rejectedMeta?: unknown;
|
|
298
298
|
}>;
|
|
299
|
-
export declare const initializeSelf: import("@reduxjs/toolkit").AsyncThunk<import("@reduxjs/toolkit").PayloadAction<
|
|
300
|
-
arg: string;
|
|
301
|
-
requestId: string;
|
|
302
|
-
requestStatus: "rejected";
|
|
303
|
-
aborted: boolean;
|
|
304
|
-
condition: boolean;
|
|
305
|
-
} & ({
|
|
306
|
-
rejectedWithValue: true;
|
|
307
|
-
} | ({
|
|
308
|
-
rejectedWithValue: false;
|
|
309
|
-
} & {})), import("@reduxjs/toolkit").SerializedError> | import("@reduxjs/toolkit").PayloadAction<[{
|
|
299
|
+
export declare const initializeSelf: import("@reduxjs/toolkit").AsyncThunk<import("@reduxjs/toolkit").PayloadAction<[{
|
|
310
300
|
payload: User$1;
|
|
311
301
|
type: "users/receivedUser";
|
|
312
302
|
}, import("@reduxjs/toolkit").PayloadAction<void, string, {
|
|
@@ -350,7 +340,17 @@ export declare const initializeSelf: import("@reduxjs/toolkit").AsyncThunk<impor
|
|
|
350
340
|
arg: string;
|
|
351
341
|
requestId: string;
|
|
352
342
|
requestStatus: "fulfilled";
|
|
353
|
-
}, never
|
|
343
|
+
}, never> | import("@reduxjs/toolkit").PayloadAction<unknown, string, {
|
|
344
|
+
arg: string;
|
|
345
|
+
requestId: string;
|
|
346
|
+
requestStatus: "rejected";
|
|
347
|
+
aborted: boolean;
|
|
348
|
+
condition: boolean;
|
|
349
|
+
} & ({
|
|
350
|
+
rejectedWithValue: true;
|
|
351
|
+
} | ({
|
|
352
|
+
rejectedWithValue: false;
|
|
353
|
+
} & {})), import("@reduxjs/toolkit").SerializedError>, void, {
|
|
354
354
|
dispatch: AppDispatch;
|
|
355
355
|
state: RootState;
|
|
356
356
|
extra?: unknown;
|
|
@@ -383,7 +383,14 @@ interface CreateUserPayload {
|
|
|
383
383
|
shouldResetPassword?: boolean;
|
|
384
384
|
sso?: boolean;
|
|
385
385
|
}
|
|
386
|
-
export declare const createUser: import("@reduxjs/toolkit").AsyncThunk<[import("@reduxjs/toolkit").PayloadAction<
|
|
386
|
+
export declare const createUser: import("@reduxjs/toolkit").AsyncThunk<[import("@reduxjs/toolkit").PayloadAction<{
|
|
387
|
+
payload: Record<string, User$1>;
|
|
388
|
+
type: "users/receivedUserList";
|
|
389
|
+
}, string, {
|
|
390
|
+
arg: void;
|
|
391
|
+
requestId: string;
|
|
392
|
+
requestStatus: "fulfilled";
|
|
393
|
+
}, never> | import("@reduxjs/toolkit").PayloadAction<unknown, string, {
|
|
387
394
|
arg: void;
|
|
388
395
|
requestId: string;
|
|
389
396
|
requestStatus: "rejected";
|
|
@@ -393,14 +400,7 @@ export declare const createUser: import("@reduxjs/toolkit").AsyncThunk<[import("
|
|
|
393
400
|
rejectedWithValue: true;
|
|
394
401
|
} | ({
|
|
395
402
|
rejectedWithValue: false;
|
|
396
|
-
} & {})), import("@reduxjs/toolkit").SerializedError
|
|
397
|
-
payload: Record<string, User$1>;
|
|
398
|
-
type: "users/receivedUserList";
|
|
399
|
-
}, string, {
|
|
400
|
-
arg: void;
|
|
401
|
-
requestId: string;
|
|
402
|
-
requestStatus: "fulfilled";
|
|
403
|
-
}, never>, {
|
|
403
|
+
} & {})), import("@reduxjs/toolkit").SerializedError>, {
|
|
404
404
|
payload: string | SnackbarContent;
|
|
405
405
|
type: "app/setSnackbar";
|
|
406
406
|
}], CreateUserPayload, {
|
|
@@ -417,7 +417,14 @@ type CreateUserV2Payload = {
|
|
|
417
417
|
email: string;
|
|
418
418
|
roles?: string[];
|
|
419
419
|
};
|
|
420
|
-
export declare const createUserV2: import("@reduxjs/toolkit").AsyncThunk<[import("@reduxjs/toolkit").PayloadAction<
|
|
420
|
+
export declare const createUserV2: import("@reduxjs/toolkit").AsyncThunk<[import("@reduxjs/toolkit").PayloadAction<{
|
|
421
|
+
payload: Record<string, User$1>;
|
|
422
|
+
type: "users/receivedUserList";
|
|
423
|
+
}, string, {
|
|
424
|
+
arg: void;
|
|
425
|
+
requestId: string;
|
|
426
|
+
requestStatus: "fulfilled";
|
|
427
|
+
}, never> | import("@reduxjs/toolkit").PayloadAction<unknown, string, {
|
|
421
428
|
arg: void;
|
|
422
429
|
requestId: string;
|
|
423
430
|
requestStatus: "rejected";
|
|
@@ -427,14 +434,7 @@ export declare const createUserV2: import("@reduxjs/toolkit").AsyncThunk<[import
|
|
|
427
434
|
rejectedWithValue: true;
|
|
428
435
|
} | ({
|
|
429
436
|
rejectedWithValue: false;
|
|
430
|
-
} & {})), import("@reduxjs/toolkit").SerializedError
|
|
431
|
-
payload: Record<string, User$1>;
|
|
432
|
-
type: "users/receivedUserList";
|
|
433
|
-
}, string, {
|
|
434
|
-
arg: void;
|
|
435
|
-
requestId: string;
|
|
436
|
-
requestStatus: "fulfilled";
|
|
437
|
-
}, never>, {
|
|
437
|
+
} & {})), import("@reduxjs/toolkit").SerializedError>, {
|
|
438
438
|
payload: string | SnackbarContent;
|
|
439
439
|
type: "app/setSnackbar";
|
|
440
440
|
}], CreateUserV2Payload, {
|
|
@@ -450,7 +450,14 @@ export declare const createUserV2: import("@reduxjs/toolkit").AsyncThunk<[import
|
|
|
450
450
|
export declare const removeUser: import("@reduxjs/toolkit").AsyncThunk<[{
|
|
451
451
|
payload: string;
|
|
452
452
|
type: "users/removedUser";
|
|
453
|
-
}, import("@reduxjs/toolkit").PayloadAction<
|
|
453
|
+
}, import("@reduxjs/toolkit").PayloadAction<{
|
|
454
|
+
payload: Record<string, User$1>;
|
|
455
|
+
type: "users/receivedUserList";
|
|
456
|
+
}, string, {
|
|
457
|
+
arg: void;
|
|
458
|
+
requestId: string;
|
|
459
|
+
requestStatus: "fulfilled";
|
|
460
|
+
}, never> | import("@reduxjs/toolkit").PayloadAction<unknown, string, {
|
|
454
461
|
arg: void;
|
|
455
462
|
requestId: string;
|
|
456
463
|
requestStatus: "rejected";
|
|
@@ -460,14 +467,7 @@ export declare const removeUser: import("@reduxjs/toolkit").AsyncThunk<[{
|
|
|
460
467
|
rejectedWithValue: true;
|
|
461
468
|
} | ({
|
|
462
469
|
rejectedWithValue: false;
|
|
463
|
-
} & {})), import("@reduxjs/toolkit").SerializedError
|
|
464
|
-
payload: Record<string, User$1>;
|
|
465
|
-
type: "users/receivedUserList";
|
|
466
|
-
}, string, {
|
|
467
|
-
arg: void;
|
|
468
|
-
requestId: string;
|
|
469
|
-
requestStatus: "fulfilled";
|
|
470
|
-
}, never>, {
|
|
470
|
+
} & {})), import("@reduxjs/toolkit").SerializedError>, {
|
|
471
471
|
payload: string | SnackbarContent;
|
|
472
472
|
type: "app/setSnackbar";
|
|
473
473
|
}], string, {
|
|
@@ -518,7 +518,14 @@ export declare const checkEmailExists: import("@reduxjs/toolkit").AsyncThunk<boo
|
|
|
518
518
|
export declare const addUserToCurrentTenant: import("@reduxjs/toolkit").AsyncThunk<[{
|
|
519
519
|
payload: string | SnackbarContent;
|
|
520
520
|
type: "app/setSnackbar";
|
|
521
|
-
}, import("@reduxjs/toolkit").PayloadAction<
|
|
521
|
+
}, import("@reduxjs/toolkit").PayloadAction<{
|
|
522
|
+
payload: Record<string, User$1>;
|
|
523
|
+
type: "users/receivedUserList";
|
|
524
|
+
}, string, {
|
|
525
|
+
arg: void;
|
|
526
|
+
requestId: string;
|
|
527
|
+
requestStatus: "fulfilled";
|
|
528
|
+
}, never> | import("@reduxjs/toolkit").PayloadAction<unknown, string, {
|
|
522
529
|
arg: void;
|
|
523
530
|
requestId: string;
|
|
524
531
|
requestStatus: "rejected";
|
|
@@ -528,14 +535,7 @@ export declare const addUserToCurrentTenant: import("@reduxjs/toolkit").AsyncThu
|
|
|
528
535
|
rejectedWithValue: true;
|
|
529
536
|
} | ({
|
|
530
537
|
rejectedWithValue: false;
|
|
531
|
-
} & {})), import("@reduxjs/toolkit").SerializedError>
|
|
532
|
-
payload: Record<string, User$1>;
|
|
533
|
-
type: "users/receivedUserList";
|
|
534
|
-
}, string, {
|
|
535
|
-
arg: void;
|
|
536
|
-
requestId: string;
|
|
537
|
-
requestStatus: "fulfilled";
|
|
538
|
-
}, never>], string, {
|
|
538
|
+
} & {})), import("@reduxjs/toolkit").SerializedError>], string, {
|
|
539
539
|
dispatch: AppDispatch;
|
|
540
540
|
state: RootState;
|
|
541
541
|
extra?: unknown;
|
|
@@ -545,17 +545,7 @@ export declare const addUserToCurrentTenant: import("@reduxjs/toolkit").AsyncThu
|
|
|
545
545
|
fulfilledMeta?: unknown;
|
|
546
546
|
rejectedMeta?: unknown;
|
|
547
547
|
}>;
|
|
548
|
-
export declare const enableUser2fa: import("@reduxjs/toolkit").AsyncThunk<import("@reduxjs/toolkit").PayloadAction<
|
|
549
|
-
arg: string;
|
|
550
|
-
requestId: string;
|
|
551
|
-
requestStatus: "rejected";
|
|
552
|
-
aborted: boolean;
|
|
553
|
-
condition: boolean;
|
|
554
|
-
} & ({
|
|
555
|
-
rejectedWithValue: true;
|
|
556
|
-
} | ({
|
|
557
|
-
rejectedWithValue: false;
|
|
558
|
-
} & {})), import("@reduxjs/toolkit").SerializedError> | import("@reduxjs/toolkit").PayloadAction<[{
|
|
548
|
+
export declare const enableUser2fa: import("@reduxjs/toolkit").AsyncThunk<import("@reduxjs/toolkit").PayloadAction<[{
|
|
559
549
|
payload: User$1;
|
|
560
550
|
type: "users/receivedUser";
|
|
561
551
|
}, import("@reduxjs/toolkit").PayloadAction<void, string, {
|
|
@@ -599,17 +589,7 @@ export declare const enableUser2fa: import("@reduxjs/toolkit").AsyncThunk<import
|
|
|
599
589
|
arg: string;
|
|
600
590
|
requestId: string;
|
|
601
591
|
requestStatus: "fulfilled";
|
|
602
|
-
}, never
|
|
603
|
-
dispatch: AppDispatch;
|
|
604
|
-
state: RootState;
|
|
605
|
-
extra?: unknown;
|
|
606
|
-
rejectValue?: unknown;
|
|
607
|
-
serializedErrorType?: unknown;
|
|
608
|
-
pendingMeta?: unknown;
|
|
609
|
-
fulfilledMeta?: unknown;
|
|
610
|
-
rejectedMeta?: unknown;
|
|
611
|
-
}>;
|
|
612
|
-
export declare const disableUser2fa: import("@reduxjs/toolkit").AsyncThunk<[import("@reduxjs/toolkit").PayloadAction<unknown, string, {
|
|
592
|
+
}, never> | import("@reduxjs/toolkit").PayloadAction<unknown, string, {
|
|
613
593
|
arg: string;
|
|
614
594
|
requestId: string;
|
|
615
595
|
requestStatus: "rejected";
|
|
@@ -619,7 +599,17 @@ export declare const disableUser2fa: import("@reduxjs/toolkit").AsyncThunk<[impo
|
|
|
619
599
|
rejectedWithValue: true;
|
|
620
600
|
} | ({
|
|
621
601
|
rejectedWithValue: false;
|
|
622
|
-
} & {})), import("@reduxjs/toolkit").SerializedError
|
|
602
|
+
} & {})), import("@reduxjs/toolkit").SerializedError>, string, {
|
|
603
|
+
dispatch: AppDispatch;
|
|
604
|
+
state: RootState;
|
|
605
|
+
extra?: unknown;
|
|
606
|
+
rejectValue?: unknown;
|
|
607
|
+
serializedErrorType?: unknown;
|
|
608
|
+
pendingMeta?: unknown;
|
|
609
|
+
fulfilledMeta?: unknown;
|
|
610
|
+
rejectedMeta?: unknown;
|
|
611
|
+
}>;
|
|
612
|
+
export declare const disableUser2fa: import("@reduxjs/toolkit").AsyncThunk<[import("@reduxjs/toolkit").PayloadAction<[{
|
|
623
613
|
payload: User$1;
|
|
624
614
|
type: "users/receivedUser";
|
|
625
615
|
}, import("@reduxjs/toolkit").PayloadAction<void, string, {
|
|
@@ -663,7 +653,17 @@ export declare const disableUser2fa: import("@reduxjs/toolkit").AsyncThunk<[impo
|
|
|
663
653
|
arg: string;
|
|
664
654
|
requestId: string;
|
|
665
655
|
requestStatus: "fulfilled";
|
|
666
|
-
}, never
|
|
656
|
+
}, never> | import("@reduxjs/toolkit").PayloadAction<unknown, string, {
|
|
657
|
+
arg: string;
|
|
658
|
+
requestId: string;
|
|
659
|
+
requestStatus: "rejected";
|
|
660
|
+
aborted: boolean;
|
|
661
|
+
condition: boolean;
|
|
662
|
+
} & ({
|
|
663
|
+
rejectedWithValue: true;
|
|
664
|
+
} | ({
|
|
665
|
+
rejectedWithValue: false;
|
|
666
|
+
} & {})), import("@reduxjs/toolkit").SerializedError>, {
|
|
667
667
|
payload: string | null;
|
|
668
668
|
type: "users/receivedQrCode";
|
|
669
669
|
}], string, {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { S as Role, c as AuditLogPermission, h as GroupsPermission, k as UserManagementPermission, p as DeploymentPermission, v as PermissionSet, x as ReleasesPermission } from "../constants-
|
|
1
|
+
import { S as Role, c as AuditLogPermission, h as GroupsPermission, k as UserManagementPermission, p as DeploymentPermission, v as PermissionSet, x as ReleasesPermission } from "../constants-CCkKh9KM.js";
|
|
2
2
|
import { i as ReadState } from "../constants-D8-yUk19.js";
|
|
3
|
-
import { a as UserSettings, i as UserSession, n as GlobalSettings, r as User$1, t as CustomColumn } from "../index
|
|
4
|
-
import { i as SnackbarContent } from "../index-
|
|
5
|
-
import {
|
|
3
|
+
import { a as UserSettings, i as UserSession, n as GlobalSettings, r as User$1, t as CustomColumn } from "../index-C1vNDCYR.js";
|
|
4
|
+
import { i as SnackbarContent } from "../index-CThE5Gfh.js";
|
|
5
|
+
import { i as RootState, t as AppDispatch } from "../store-v5V-bbB_.js";
|
|
6
6
|
import { EmailUpdateRequest, PendingEmailChange, PersonalAccessToken } from "@northern.tech/types/MenderTypes";
|
|
7
7
|
//#region src/usersSlice/thunks.d.ts
|
|
8
8
|
type ThunkPermissionSet = Record<string, PermissionSet>;
|
|
@@ -167,17 +167,7 @@ export declare const cancelEmailChange: import("@reduxjs/toolkit").AsyncThunk<im
|
|
|
167
167
|
fulfilledMeta?: unknown;
|
|
168
168
|
rejectedMeta?: unknown;
|
|
169
169
|
}>;
|
|
170
|
-
export declare const verify2FA: import("@reduxjs/toolkit").AsyncThunk<import("@reduxjs/toolkit").PayloadAction<
|
|
171
|
-
arg: string;
|
|
172
|
-
requestId: string;
|
|
173
|
-
requestStatus: "rejected";
|
|
174
|
-
aborted: boolean;
|
|
175
|
-
condition: boolean;
|
|
176
|
-
} & ({
|
|
177
|
-
rejectedWithValue: true;
|
|
178
|
-
} | ({
|
|
179
|
-
rejectedWithValue: false;
|
|
180
|
-
} & {})), import("@reduxjs/toolkit").SerializedError> | import("@reduxjs/toolkit").PayloadAction<[{
|
|
170
|
+
export declare const verify2FA: import("@reduxjs/toolkit").AsyncThunk<import("@reduxjs/toolkit").PayloadAction<[{
|
|
181
171
|
payload: User$1;
|
|
182
172
|
type: "users/receivedUser";
|
|
183
173
|
}, import("@reduxjs/toolkit").PayloadAction<void, string, {
|
|
@@ -221,7 +211,17 @@ export declare const verify2FA: import("@reduxjs/toolkit").AsyncThunk<import("@r
|
|
|
221
211
|
arg: string;
|
|
222
212
|
requestId: string;
|
|
223
213
|
requestStatus: "fulfilled";
|
|
224
|
-
}, never
|
|
214
|
+
}, never> | import("@reduxjs/toolkit").PayloadAction<unknown, string, {
|
|
215
|
+
arg: string;
|
|
216
|
+
requestId: string;
|
|
217
|
+
requestStatus: "rejected";
|
|
218
|
+
aborted: boolean;
|
|
219
|
+
condition: boolean;
|
|
220
|
+
} & ({
|
|
221
|
+
rejectedWithValue: true;
|
|
222
|
+
} | ({
|
|
223
|
+
rejectedWithValue: false;
|
|
224
|
+
} & {})), import("@reduxjs/toolkit").SerializedError>, {
|
|
225
225
|
token2fa: string;
|
|
226
226
|
}, {
|
|
227
227
|
dispatch: AppDispatch;
|
|
@@ -296,17 +296,7 @@ export declare const getUser: import("@reduxjs/toolkit").AsyncThunk<[{
|
|
|
296
296
|
fulfilledMeta?: unknown;
|
|
297
297
|
rejectedMeta?: unknown;
|
|
298
298
|
}>;
|
|
299
|
-
export declare const initializeSelf: import("@reduxjs/toolkit").AsyncThunk<import("@reduxjs/toolkit").PayloadAction<
|
|
300
|
-
arg: string;
|
|
301
|
-
requestId: string;
|
|
302
|
-
requestStatus: "rejected";
|
|
303
|
-
aborted: boolean;
|
|
304
|
-
condition: boolean;
|
|
305
|
-
} & ({
|
|
306
|
-
rejectedWithValue: true;
|
|
307
|
-
} | ({
|
|
308
|
-
rejectedWithValue: false;
|
|
309
|
-
} & {})), import("@reduxjs/toolkit").SerializedError> | import("@reduxjs/toolkit").PayloadAction<[{
|
|
299
|
+
export declare const initializeSelf: import("@reduxjs/toolkit").AsyncThunk<import("@reduxjs/toolkit").PayloadAction<[{
|
|
310
300
|
payload: User$1;
|
|
311
301
|
type: "users/receivedUser";
|
|
312
302
|
}, import("@reduxjs/toolkit").PayloadAction<void, string, {
|
|
@@ -350,7 +340,17 @@ export declare const initializeSelf: import("@reduxjs/toolkit").AsyncThunk<impor
|
|
|
350
340
|
arg: string;
|
|
351
341
|
requestId: string;
|
|
352
342
|
requestStatus: "fulfilled";
|
|
353
|
-
}, never
|
|
343
|
+
}, never> | import("@reduxjs/toolkit").PayloadAction<unknown, string, {
|
|
344
|
+
arg: string;
|
|
345
|
+
requestId: string;
|
|
346
|
+
requestStatus: "rejected";
|
|
347
|
+
aborted: boolean;
|
|
348
|
+
condition: boolean;
|
|
349
|
+
} & ({
|
|
350
|
+
rejectedWithValue: true;
|
|
351
|
+
} | ({
|
|
352
|
+
rejectedWithValue: false;
|
|
353
|
+
} & {})), import("@reduxjs/toolkit").SerializedError>, void, {
|
|
354
354
|
dispatch: AppDispatch;
|
|
355
355
|
state: RootState;
|
|
356
356
|
extra?: unknown;
|
|
@@ -383,7 +383,14 @@ interface CreateUserPayload {
|
|
|
383
383
|
shouldResetPassword?: boolean;
|
|
384
384
|
sso?: boolean;
|
|
385
385
|
}
|
|
386
|
-
export declare const createUser: import("@reduxjs/toolkit").AsyncThunk<[import("@reduxjs/toolkit").PayloadAction<
|
|
386
|
+
export declare const createUser: import("@reduxjs/toolkit").AsyncThunk<[import("@reduxjs/toolkit").PayloadAction<{
|
|
387
|
+
payload: Record<string, User$1>;
|
|
388
|
+
type: "users/receivedUserList";
|
|
389
|
+
}, string, {
|
|
390
|
+
arg: void;
|
|
391
|
+
requestId: string;
|
|
392
|
+
requestStatus: "fulfilled";
|
|
393
|
+
}, never> | import("@reduxjs/toolkit").PayloadAction<unknown, string, {
|
|
387
394
|
arg: void;
|
|
388
395
|
requestId: string;
|
|
389
396
|
requestStatus: "rejected";
|
|
@@ -393,14 +400,7 @@ export declare const createUser: import("@reduxjs/toolkit").AsyncThunk<[import("
|
|
|
393
400
|
rejectedWithValue: true;
|
|
394
401
|
} | ({
|
|
395
402
|
rejectedWithValue: false;
|
|
396
|
-
} & {})), import("@reduxjs/toolkit").SerializedError
|
|
397
|
-
payload: Record<string, User$1>;
|
|
398
|
-
type: "users/receivedUserList";
|
|
399
|
-
}, string, {
|
|
400
|
-
arg: void;
|
|
401
|
-
requestId: string;
|
|
402
|
-
requestStatus: "fulfilled";
|
|
403
|
-
}, never>, {
|
|
403
|
+
} & {})), import("@reduxjs/toolkit").SerializedError>, {
|
|
404
404
|
payload: string | SnackbarContent;
|
|
405
405
|
type: "app/setSnackbar";
|
|
406
406
|
}], CreateUserPayload, {
|
|
@@ -417,7 +417,14 @@ type CreateUserV2Payload = {
|
|
|
417
417
|
email: string;
|
|
418
418
|
roles?: string[];
|
|
419
419
|
};
|
|
420
|
-
export declare const createUserV2: import("@reduxjs/toolkit").AsyncThunk<[import("@reduxjs/toolkit").PayloadAction<
|
|
420
|
+
export declare const createUserV2: import("@reduxjs/toolkit").AsyncThunk<[import("@reduxjs/toolkit").PayloadAction<{
|
|
421
|
+
payload: Record<string, User$1>;
|
|
422
|
+
type: "users/receivedUserList";
|
|
423
|
+
}, string, {
|
|
424
|
+
arg: void;
|
|
425
|
+
requestId: string;
|
|
426
|
+
requestStatus: "fulfilled";
|
|
427
|
+
}, never> | import("@reduxjs/toolkit").PayloadAction<unknown, string, {
|
|
421
428
|
arg: void;
|
|
422
429
|
requestId: string;
|
|
423
430
|
requestStatus: "rejected";
|
|
@@ -427,14 +434,7 @@ export declare const createUserV2: import("@reduxjs/toolkit").AsyncThunk<[import
|
|
|
427
434
|
rejectedWithValue: true;
|
|
428
435
|
} | ({
|
|
429
436
|
rejectedWithValue: false;
|
|
430
|
-
} & {})), import("@reduxjs/toolkit").SerializedError
|
|
431
|
-
payload: Record<string, User$1>;
|
|
432
|
-
type: "users/receivedUserList";
|
|
433
|
-
}, string, {
|
|
434
|
-
arg: void;
|
|
435
|
-
requestId: string;
|
|
436
|
-
requestStatus: "fulfilled";
|
|
437
|
-
}, never>, {
|
|
437
|
+
} & {})), import("@reduxjs/toolkit").SerializedError>, {
|
|
438
438
|
payload: string | SnackbarContent;
|
|
439
439
|
type: "app/setSnackbar";
|
|
440
440
|
}], CreateUserV2Payload, {
|
|
@@ -450,7 +450,14 @@ export declare const createUserV2: import("@reduxjs/toolkit").AsyncThunk<[import
|
|
|
450
450
|
export declare const removeUser: import("@reduxjs/toolkit").AsyncThunk<[{
|
|
451
451
|
payload: string;
|
|
452
452
|
type: "users/removedUser";
|
|
453
|
-
}, import("@reduxjs/toolkit").PayloadAction<
|
|
453
|
+
}, import("@reduxjs/toolkit").PayloadAction<{
|
|
454
|
+
payload: Record<string, User$1>;
|
|
455
|
+
type: "users/receivedUserList";
|
|
456
|
+
}, string, {
|
|
457
|
+
arg: void;
|
|
458
|
+
requestId: string;
|
|
459
|
+
requestStatus: "fulfilled";
|
|
460
|
+
}, never> | import("@reduxjs/toolkit").PayloadAction<unknown, string, {
|
|
454
461
|
arg: void;
|
|
455
462
|
requestId: string;
|
|
456
463
|
requestStatus: "rejected";
|
|
@@ -460,14 +467,7 @@ export declare const removeUser: import("@reduxjs/toolkit").AsyncThunk<[{
|
|
|
460
467
|
rejectedWithValue: true;
|
|
461
468
|
} | ({
|
|
462
469
|
rejectedWithValue: false;
|
|
463
|
-
} & {})), import("@reduxjs/toolkit").SerializedError
|
|
464
|
-
payload: Record<string, User$1>;
|
|
465
|
-
type: "users/receivedUserList";
|
|
466
|
-
}, string, {
|
|
467
|
-
arg: void;
|
|
468
|
-
requestId: string;
|
|
469
|
-
requestStatus: "fulfilled";
|
|
470
|
-
}, never>, {
|
|
470
|
+
} & {})), import("@reduxjs/toolkit").SerializedError>, {
|
|
471
471
|
payload: string | SnackbarContent;
|
|
472
472
|
type: "app/setSnackbar";
|
|
473
473
|
}], string, {
|
|
@@ -518,7 +518,14 @@ export declare const checkEmailExists: import("@reduxjs/toolkit").AsyncThunk<boo
|
|
|
518
518
|
export declare const addUserToCurrentTenant: import("@reduxjs/toolkit").AsyncThunk<[{
|
|
519
519
|
payload: string | SnackbarContent;
|
|
520
520
|
type: "app/setSnackbar";
|
|
521
|
-
}, import("@reduxjs/toolkit").PayloadAction<
|
|
521
|
+
}, import("@reduxjs/toolkit").PayloadAction<{
|
|
522
|
+
payload: Record<string, User$1>;
|
|
523
|
+
type: "users/receivedUserList";
|
|
524
|
+
}, string, {
|
|
525
|
+
arg: void;
|
|
526
|
+
requestId: string;
|
|
527
|
+
requestStatus: "fulfilled";
|
|
528
|
+
}, never> | import("@reduxjs/toolkit").PayloadAction<unknown, string, {
|
|
522
529
|
arg: void;
|
|
523
530
|
requestId: string;
|
|
524
531
|
requestStatus: "rejected";
|
|
@@ -528,14 +535,7 @@ export declare const addUserToCurrentTenant: import("@reduxjs/toolkit").AsyncThu
|
|
|
528
535
|
rejectedWithValue: true;
|
|
529
536
|
} | ({
|
|
530
537
|
rejectedWithValue: false;
|
|
531
|
-
} & {})), import("@reduxjs/toolkit").SerializedError>
|
|
532
|
-
payload: Record<string, User$1>;
|
|
533
|
-
type: "users/receivedUserList";
|
|
534
|
-
}, string, {
|
|
535
|
-
arg: void;
|
|
536
|
-
requestId: string;
|
|
537
|
-
requestStatus: "fulfilled";
|
|
538
|
-
}, never>], string, {
|
|
538
|
+
} & {})), import("@reduxjs/toolkit").SerializedError>], string, {
|
|
539
539
|
dispatch: AppDispatch;
|
|
540
540
|
state: RootState;
|
|
541
541
|
extra?: unknown;
|
|
@@ -545,17 +545,7 @@ export declare const addUserToCurrentTenant: import("@reduxjs/toolkit").AsyncThu
|
|
|
545
545
|
fulfilledMeta?: unknown;
|
|
546
546
|
rejectedMeta?: unknown;
|
|
547
547
|
}>;
|
|
548
|
-
export declare const enableUser2fa: import("@reduxjs/toolkit").AsyncThunk<import("@reduxjs/toolkit").PayloadAction<
|
|
549
|
-
arg: string;
|
|
550
|
-
requestId: string;
|
|
551
|
-
requestStatus: "rejected";
|
|
552
|
-
aborted: boolean;
|
|
553
|
-
condition: boolean;
|
|
554
|
-
} & ({
|
|
555
|
-
rejectedWithValue: true;
|
|
556
|
-
} | ({
|
|
557
|
-
rejectedWithValue: false;
|
|
558
|
-
} & {})), import("@reduxjs/toolkit").SerializedError> | import("@reduxjs/toolkit").PayloadAction<[{
|
|
548
|
+
export declare const enableUser2fa: import("@reduxjs/toolkit").AsyncThunk<import("@reduxjs/toolkit").PayloadAction<[{
|
|
559
549
|
payload: User$1;
|
|
560
550
|
type: "users/receivedUser";
|
|
561
551
|
}, import("@reduxjs/toolkit").PayloadAction<void, string, {
|
|
@@ -599,17 +589,7 @@ export declare const enableUser2fa: import("@reduxjs/toolkit").AsyncThunk<import
|
|
|
599
589
|
arg: string;
|
|
600
590
|
requestId: string;
|
|
601
591
|
requestStatus: "fulfilled";
|
|
602
|
-
}, never
|
|
603
|
-
dispatch: AppDispatch;
|
|
604
|
-
state: RootState;
|
|
605
|
-
extra?: unknown;
|
|
606
|
-
rejectValue?: unknown;
|
|
607
|
-
serializedErrorType?: unknown;
|
|
608
|
-
pendingMeta?: unknown;
|
|
609
|
-
fulfilledMeta?: unknown;
|
|
610
|
-
rejectedMeta?: unknown;
|
|
611
|
-
}>;
|
|
612
|
-
export declare const disableUser2fa: import("@reduxjs/toolkit").AsyncThunk<[import("@reduxjs/toolkit").PayloadAction<unknown, string, {
|
|
592
|
+
}, never> | import("@reduxjs/toolkit").PayloadAction<unknown, string, {
|
|
613
593
|
arg: string;
|
|
614
594
|
requestId: string;
|
|
615
595
|
requestStatus: "rejected";
|
|
@@ -619,7 +599,17 @@ export declare const disableUser2fa: import("@reduxjs/toolkit").AsyncThunk<[impo
|
|
|
619
599
|
rejectedWithValue: true;
|
|
620
600
|
} | ({
|
|
621
601
|
rejectedWithValue: false;
|
|
622
|
-
} & {})), import("@reduxjs/toolkit").SerializedError
|
|
602
|
+
} & {})), import("@reduxjs/toolkit").SerializedError>, string, {
|
|
603
|
+
dispatch: AppDispatch;
|
|
604
|
+
state: RootState;
|
|
605
|
+
extra?: unknown;
|
|
606
|
+
rejectValue?: unknown;
|
|
607
|
+
serializedErrorType?: unknown;
|
|
608
|
+
pendingMeta?: unknown;
|
|
609
|
+
fulfilledMeta?: unknown;
|
|
610
|
+
rejectedMeta?: unknown;
|
|
611
|
+
}>;
|
|
612
|
+
export declare const disableUser2fa: import("@reduxjs/toolkit").AsyncThunk<[import("@reduxjs/toolkit").PayloadAction<[{
|
|
623
613
|
payload: User$1;
|
|
624
614
|
type: "users/receivedUser";
|
|
625
615
|
}, import("@reduxjs/toolkit").PayloadAction<void, string, {
|
|
@@ -663,7 +653,17 @@ export declare const disableUser2fa: import("@reduxjs/toolkit").AsyncThunk<[impo
|
|
|
663
653
|
arg: string;
|
|
664
654
|
requestId: string;
|
|
665
655
|
requestStatus: "fulfilled";
|
|
666
|
-
}, never
|
|
656
|
+
}, never> | import("@reduxjs/toolkit").PayloadAction<unknown, string, {
|
|
657
|
+
arg: string;
|
|
658
|
+
requestId: string;
|
|
659
|
+
requestStatus: "rejected";
|
|
660
|
+
aborted: boolean;
|
|
661
|
+
condition: boolean;
|
|
662
|
+
} & ({
|
|
663
|
+
rejectedWithValue: true;
|
|
664
|
+
} | ({
|
|
665
|
+
rejectedWithValue: false;
|
|
666
|
+
} & {})), import("@reduxjs/toolkit").SerializedError>, {
|
|
667
667
|
payload: string | null;
|
|
668
668
|
type: "users/receivedQrCode";
|
|
669
669
|
}], string, {
|
package/dist/utils.cjs
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const
|
|
3
|
-
const require_constants = require("./constants-MVizYy89.cjs");
|
|
2
|
+
const require_constants = require("./constants-DsOnY5o5.cjs");
|
|
4
3
|
const require_releasesSlice_constants = require("./releasesSlice/constants.cjs");
|
|
5
|
-
let _northern_tech_utils_helpers = require("@northern.tech/utils/helpers");
|
|
6
4
|
let _northern_tech_utils_constants = require("@northern.tech/utils/constants");
|
|
5
|
+
let _northern_tech_utils_helpers = require("@northern.tech/utils/helpers");
|
|
7
6
|
//#region src/utils.ts
|
|
8
7
|
const filterProcessors = {
|
|
9
8
|
[_northern_tech_utils_constants.DEVICE_FILTERING_OPTIONS.$gt.key]: (val) => Number(val) || val,
|
|
@@ -54,11 +53,8 @@ const convertDeviceListStateToFilters = ({ filters = [], group, groups = { byId:
|
|
|
54
53
|
operator: _northern_tech_utils_constants.DEVICE_FILTERING_OPTIONS.$eq.key,
|
|
55
54
|
scope: "system"
|
|
56
55
|
});
|
|
57
|
-
const nonMonitorFilters = applicableFilters.filter((filter) => !Object.values(_northern_tech_utils_constants.DEVICE_ISSUE_OPTIONS).some(({ filterRule }) => {
|
|
58
|
-
const { key = "", scope = "" } = filterRule;
|
|
59
|
-
return filter.scope !== "inventory" && scope === filter.scope && key === filter.key;
|
|
60
|
-
}));
|
|
61
56
|
const deviceIssueFilters = convertIssueOptionsToFilters(selectedIssues, { offlineThreshold });
|
|
57
|
+
const nonMonitorFilters = applicableFilters.filter((filter) => !deviceIssueFilters.some((issueFilter) => filterCompare(issueFilter, filter)));
|
|
62
58
|
applicableFilters = [...nonMonitorFilters, ...deviceIssueFilters];
|
|
63
59
|
const effectiveFilters = status ? [...applicableFilters, {
|
|
64
60
|
key: "status",
|
|
@@ -186,7 +182,6 @@ const mapDeviceAttributes = (attributes = []) => attributes.reduce((accu, attrib
|
|
|
186
182
|
system: {},
|
|
187
183
|
tags: {}
|
|
188
184
|
});
|
|
189
|
-
const isDarkMode = (mode) => mode === require_appSlice_constants.DARK_MODE;
|
|
190
185
|
const parseSubscriptionPreview = (lines) => lines.reduce((acc, { addon, amount, product }) => {
|
|
191
186
|
const tier = product.replace("mender_", "");
|
|
192
187
|
if (!acc[tier]) acc[tier] = {
|
|
@@ -204,7 +199,7 @@ const convertToBackendSPLimits = (limits, spLimits) => Object.fromEntries(Object
|
|
|
204
199
|
value: Number(limit) || 0
|
|
205
200
|
}];
|
|
206
201
|
}));
|
|
207
|
-
const dispatchDelayed = ({ action, delay =
|
|
202
|
+
const dispatchDelayed = ({ action, delay = _northern_tech_utils_constants.TIMEOUTS.threeSeconds, dispatch }) => setTimeout(() => dispatch(action), delay);
|
|
208
203
|
//#endregion
|
|
209
204
|
exports.convertDeviceListStateToFilters = convertDeviceListStateToFilters;
|
|
210
205
|
exports.convertToBackendSPLimits = convertToBackendSPLimits;
|
|
@@ -217,7 +212,7 @@ exports.getAttributeScopeLabel = getAttributeScopeLabel;
|
|
|
217
212
|
exports.getDeploymentState = getDeploymentState;
|
|
218
213
|
exports.groupDeploymentDevicesStats = groupDeploymentDevicesStats;
|
|
219
214
|
exports.groupDeploymentStats = groupDeploymentStats;
|
|
220
|
-
exports.isDarkMode = isDarkMode;
|
|
215
|
+
exports.isDarkMode = _northern_tech_utils_helpers.isDarkMode;
|
|
221
216
|
exports.listItemMapper = listItemMapper;
|
|
222
217
|
exports.mapDeviceAttributes = mapDeviceAttributes;
|
|
223
218
|
exports.mapFiltersToTerms = mapFiltersToTerms;
|