@northern.tech/store 0.46.5 → 0.48.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 +80 -373
- package/dist/commonSelectors.d.ts +80 -373
- package/dist/commonSelectors.js +1 -1
- package/dist/constants-3gsHyxWr.d.ts +109 -0
- package/dist/{constants-B3NH1IQi.d.ts → constants-DOnQ-UzD.d.cts} +2 -3
- package/dist/{constants-B3NH1IQi.d.cts → constants-DOnQ-UzD.d.ts} +2 -3
- package/dist/{constants-MVizYy89.cjs → constants-DsOnY5o5.cjs} +1 -279
- package/dist/constants-DsOnY5o5.cjs.map +1 -0
- package/dist/constants-hMMMdt0R.d.cts +109 -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-D5hACLhF.js → constants-yul-O5hD.js} +3 -269
- package/dist/constants-yul-O5hD.js.map +1 -0
- package/dist/constants.cjs +6 -6
- package/dist/constants.d.cts +4 -4
- package/dist/constants.d.ts +4 -4
- package/dist/constants.js +2 -2
- 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 +13 -13
- package/dist/deploymentsSlice/thunks.d.ts +13 -13
- 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 +1 -1
- 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 +1 -1
- 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-fGVC5s1C.d.cts → index-B9jUHGsM.d.cts} +2 -2
- package/dist/{index-xxqlerg5.d.ts → index-BMi8ZqpV.d.ts} +2 -2
- package/dist/{index-BKU1G9-x.d.cts → index-BoZjwQHk.d.cts} +2 -2
- package/dist/{index-BfmRpbiJ.d.cts → index-C-6WkMAo.d.cts} +2 -2
- package/dist/{index-CRqnH_go.d.ts → index-CD39K38q.d.ts} +2 -2
- package/dist/{index-KxRmyFLr.d.cts → index-D8O1HJ8Q.d.cts} +2 -2
- package/dist/{index-BMsafOyJ.d.ts → index-DXfbW2gi.d.ts} +2 -2
- package/dist/{index-HjOSTTGF.d.cts → index-Dd_guNwA.d.cts} +2 -2
- package/dist/{index-CqhXqGLt.d.cts → index-DlTiYWBe.d.cts} +2 -2
- package/dist/{index-BVNS-Aut.d.ts → index-I82Wu-Ah.d.ts} +2 -2
- package/dist/{index--SKVGToc.d.ts → index-KQNyWRoG.d.ts} +2 -2
- package/dist/{index-D9GJhX1I.d.ts → index-uhmZ9qaP.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/constants.cjs +0 -2
- package/dist/releasesSlice/constants.cjs.map +1 -1
- package/dist/releasesSlice/constants.d.cts +2 -2
- package/dist/releasesSlice/constants.d.ts +2 -2
- package/dist/releasesSlice/constants.js +1 -2
- package/dist/releasesSlice/constants.js.map +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 +18 -18
- package/dist/releasesSlice/thunks.cjs.map +1 -1
- package/dist/releasesSlice/thunks.d.cts +4 -4
- package/dist/releasesSlice/thunks.d.ts +4 -4
- package/dist/releasesSlice/thunks.js +3 -2
- package/dist/releasesSlice/thunks.js.map +1 -1
- package/dist/selectors-CH-yXu-7.d.cts +84 -0
- package/dist/selectors-CQYkG1VI.d.cts +9 -0
- package/dist/selectors-CR0q7rXC.d.cts +593 -0
- package/dist/selectors-CdCZGn7e.d.cts +99 -0
- package/dist/selectors-CdllyZyW.d.cts +363 -0
- package/dist/selectors-CftbLtXH.d.cts +14 -0
- package/dist/selectors-D2j3_Mnp.d.ts +363 -0
- package/dist/selectors-D78O3T1o.d.ts +99 -0
- package/dist/selectors-D9t4It2i.d.ts +84 -0
- package/dist/selectors-D_UFk4Uz.d.ts +14 -0
- package/dist/selectors-DuHGqmMJ.d.cts +712 -0
- package/dist/selectors-SvKXGJM5.d.ts +712 -0
- package/dist/selectors-eYLuQW4M.d.ts +593 -0
- package/dist/selectors-elCimAHX.d.ts +9 -0
- package/dist/selectors-qClZ9EXM.d.ts +374 -0
- package/dist/selectors-rto0SO4z.d.cts +374 -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-DLp6ajT8.d.ts → store-BQcycBPp.d.ts} +15 -34
- package/dist/{store-Dw8Uo_Df.d.cts → store-CrLzRDCx.d.cts} +14 -33
- 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 +39 -43
- package/dist/thunks.cjs.map +1 -1
- package/dist/thunks.js +19 -22
- package/dist/thunks.js.map +1 -1
- package/dist/{types-DY0J79yF.d.ts → types-DB1IOQX8.d.ts} +3 -3
- package/dist/{types-B67YW1jV.d.cts → types-DtTmD7Yn.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 -8
- 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 -6
- 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-hMMMdt0R.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-DlTiYWBe.cjs";
|
|
4
|
+
import { i as SnackbarContent } from "../index-BoZjwQHk.cjs";
|
|
5
|
+
import { i as RootState, t as AppDispatch } from "../store-CrLzRDCx.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-3gsHyxWr.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-KQNyWRoG.js";
|
|
4
|
+
import { i as SnackbarContent } from "../index-BMi8ZqpV.js";
|
|
5
|
+
import { i as RootState, t as AppDispatch } from "../store-BQcycBPp.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,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const
|
|
3
|
-
const require_constants = require("./constants-MVizYy89.cjs");
|
|
4
|
-
const require_releasesSlice_constants = require("./releasesSlice/constants.cjs");
|
|
5
|
-
let _northern_tech_utils_helpers = require("@northern.tech/utils/helpers");
|
|
2
|
+
const require_constants = require("./constants-DsOnY5o5.cjs");
|
|
6
3
|
let _northern_tech_utils_constants = require("@northern.tech/utils/constants");
|
|
4
|
+
let _northern_tech_utils_helpers = require("@northern.tech/utils/helpers");
|
|
7
5
|
//#region src/utils.ts
|
|
8
6
|
const filterProcessors = {
|
|
9
7
|
[_northern_tech_utils_constants.DEVICE_FILTERING_OPTIONS.$gt.key]: (val) => Number(val) || val,
|
|
@@ -107,7 +105,7 @@ const progress = ({ loaded, total }) => {
|
|
|
107
105
|
return uploadProgress < 50 ? Math.ceil(uploadProgress) : Math.round(uploadProgress);
|
|
108
106
|
};
|
|
109
107
|
const extractErrorMessage = (err, fallback = "") => (typeof err.response?.data?.error === "object" ? err.response?.data?.error?.message : err.response?.data?.error) || err.error || err.message || fallback;
|
|
110
|
-
const ensureVersionString = (software, fallback) => software.length && software !== "artifact_name" ? software.endsWith(
|
|
108
|
+
const ensureVersionString = (software, fallback) => software.length && software !== "artifact_name" ? software.endsWith(_northern_tech_utils_constants.softwareIndicator) ? software : `${software}${_northern_tech_utils_constants.softwareIndicator}` : fallback;
|
|
111
109
|
const stringToBoolean = (content) => {
|
|
112
110
|
if (!content) return false;
|
|
113
111
|
const string = content + "";
|
|
@@ -183,7 +181,6 @@ const mapDeviceAttributes = (attributes = []) => attributes.reduce((accu, attrib
|
|
|
183
181
|
system: {},
|
|
184
182
|
tags: {}
|
|
185
183
|
});
|
|
186
|
-
const isDarkMode = (mode) => mode === require_appSlice_constants.DARK_MODE;
|
|
187
184
|
const parseSubscriptionPreview = (lines) => lines.reduce((acc, { addon, amount, product }) => {
|
|
188
185
|
const tier = product.replace("mender_", "");
|
|
189
186
|
if (!acc[tier]) acc[tier] = {
|
|
@@ -201,7 +198,7 @@ const convertToBackendSPLimits = (limits, spLimits) => Object.fromEntries(Object
|
|
|
201
198
|
value: Number(limit) || 0
|
|
202
199
|
}];
|
|
203
200
|
}));
|
|
204
|
-
const dispatchDelayed = ({ action, delay =
|
|
201
|
+
const dispatchDelayed = ({ action, delay = _northern_tech_utils_constants.TIMEOUTS.threeSeconds, dispatch }) => setTimeout(() => dispatch(action), delay);
|
|
205
202
|
//#endregion
|
|
206
203
|
exports.convertDeviceListStateToFilters = convertDeviceListStateToFilters;
|
|
207
204
|
exports.convertToBackendSPLimits = convertToBackendSPLimits;
|
|
@@ -214,7 +211,7 @@ exports.getAttributeScopeLabel = getAttributeScopeLabel;
|
|
|
214
211
|
exports.getDeploymentState = getDeploymentState;
|
|
215
212
|
exports.groupDeploymentDevicesStats = groupDeploymentDevicesStats;
|
|
216
213
|
exports.groupDeploymentStats = groupDeploymentStats;
|
|
217
|
-
exports.isDarkMode = isDarkMode;
|
|
214
|
+
exports.isDarkMode = _northern_tech_utils_helpers.isDarkMode;
|
|
218
215
|
exports.listItemMapper = listItemMapper;
|
|
219
216
|
exports.mapDeviceAttributes = mapDeviceAttributes;
|
|
220
217
|
exports.mapFiltersToTerms = mapFiltersToTerms;
|