@frontegg/redux-store 7.2.0 → 7.3.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/auth/LoginState/consts.js +2 -1
- package/auth/UnlockAccountState/actions.d.ts +12 -0
- package/auth/UnlockAccountState/actions.js +45 -0
- package/auth/UnlockAccountState/index.d.ts +3 -0
- package/auth/UnlockAccountState/index.js +3 -0
- package/auth/UnlockAccountState/interfaces.d.ts +8 -0
- package/auth/UnlockAccountState/interfaces.js +1 -0
- package/auth/UnlockAccountState/state.d.ts +4 -0
- package/auth/UnlockAccountState/state.js +7 -0
- package/auth/index.d.ts +5 -1
- package/auth/index.js +5 -0
- package/auth/interfaces.d.ts +6 -0
- package/index.js +1 -1
- package/mocks/auth-mocks/index.js +4 -1
- package/mocks/auth-mocks/unlockAccountActions.mocks.d.ts +11 -0
- package/mocks/auth-mocks/unlockAccountActions.mocks.js +6 -0
- package/node/auth/LoginState/consts.js +2 -1
- package/node/auth/UnlockAccountState/actions.js +52 -0
- package/node/auth/UnlockAccountState/index.js +20 -0
- package/node/auth/UnlockAccountState/interfaces.js +5 -0
- package/node/auth/UnlockAccountState/state.js +15 -0
- package/node/auth/index.js +52 -36
- package/node/index.js +1 -1
- package/node/mocks/auth-mocks/index.js +4 -1
- package/node/mocks/auth-mocks/unlockAccountActions.mocks.js +13 -0
- package/package.json +2 -2
|
@@ -30,5 +30,6 @@ export const defaultFronteggRoutes = {
|
|
|
30
30
|
samlCallbackUrl: '/account/saml/callback',
|
|
31
31
|
magicLinkCallbackUrl: '/account/login/magic-link',
|
|
32
32
|
hostedLoginRedirectUrl: '/oauth/callback',
|
|
33
|
-
openAppUrl: '/account/redirect'
|
|
33
|
+
openAppUrl: '/account/redirect',
|
|
34
|
+
unlockAccountUrl: '/account/unlock'
|
|
34
35
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FronteggState, SharedActions, RestApi } from '../../interfaces';
|
|
2
|
+
import { UnlockAccountState, IUnlockAccountPayload } from './interfaces';
|
|
3
|
+
declare const _default: (store: FronteggState, api: RestApi, sharedActions: SharedActions) => {
|
|
4
|
+
setUnlockAccountState: (state: Partial<UnlockAccountState>) => {
|
|
5
|
+
readonly loading?: boolean | undefined;
|
|
6
|
+
readonly error?: any;
|
|
7
|
+
readonly unlockAccountSuccess?: boolean | undefined;
|
|
8
|
+
};
|
|
9
|
+
resetUnlockAccountState: () => void;
|
|
10
|
+
unlockAccount: (_payload: IUnlockAccountPayload) => Promise<void>;
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { snapshot } from 'valtio/vanilla';
|
|
2
|
+
import { initialState } from './state';
|
|
3
|
+
import { errorHandler, deepClone, delay } from '../../helpers';
|
|
4
|
+
import { ContextHolder } from '@frontegg/rest-api';
|
|
5
|
+
export default ((store, api, sharedActions) => {
|
|
6
|
+
const setUnlockAccountState = state => {
|
|
7
|
+
Object.assign(store.auth.unlockAccountState, state);
|
|
8
|
+
return snapshot(store.auth.unlockAccountState);
|
|
9
|
+
};
|
|
10
|
+
const resetUnlockAccountState = () => {
|
|
11
|
+
store.auth.activateAccountState = deepClone(initialState);
|
|
12
|
+
};
|
|
13
|
+
const unlockAccount = async _payload => {
|
|
14
|
+
const {
|
|
15
|
+
token
|
|
16
|
+
} = _payload;
|
|
17
|
+
const onRedirectTo = ContextHolder.for(store.root.appName).onRedirectTo;
|
|
18
|
+
const routes = store.auth.routes;
|
|
19
|
+
setUnlockAccountState({
|
|
20
|
+
loading: true
|
|
21
|
+
});
|
|
22
|
+
try {
|
|
23
|
+
await api.users.unlockMe({
|
|
24
|
+
token
|
|
25
|
+
});
|
|
26
|
+
setUnlockAccountState({
|
|
27
|
+
loading: false,
|
|
28
|
+
error: undefined,
|
|
29
|
+
unlockAccountSuccess: true
|
|
30
|
+
});
|
|
31
|
+
await delay(1000);
|
|
32
|
+
onRedirectTo(routes.loginUrl);
|
|
33
|
+
} catch (e) {
|
|
34
|
+
setUnlockAccountState({
|
|
35
|
+
loading: false,
|
|
36
|
+
error: errorHandler(e)
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
return {
|
|
41
|
+
setUnlockAccountState,
|
|
42
|
+
resetUnlockAccountState,
|
|
43
|
+
unlockAccount
|
|
44
|
+
};
|
|
45
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/auth/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { DeepPartial, FronteggActions, FronteggState, RestApi } from '../interfa
|
|
|
2
2
|
export * from './AcceptInvitationState/interfaces';
|
|
3
3
|
export * from './AccountSettingsState/interfaces';
|
|
4
4
|
export * from './ActivateAccountState/interfaces';
|
|
5
|
+
export * from './UnlockAccountState/interfaces';
|
|
5
6
|
export * from './ApiTokensState/interfaces';
|
|
6
7
|
export * from './ApplicationsState/interfaces';
|
|
7
8
|
export * from './CustomLoginState/interfaces';
|
|
@@ -36,6 +37,7 @@ import { AuthState, User } from './interfaces';
|
|
|
36
37
|
import { buildAcceptInvitationActions } from './AcceptInvitationState';
|
|
37
38
|
import { buildAccountSettingsActions } from './AccountSettingsState';
|
|
38
39
|
import { buildActivateAccountActions } from './ActivateAccountState';
|
|
40
|
+
import { buildUnlockAccountActions } from './UnlockAccountState';
|
|
39
41
|
import { buildApiTokensActions } from './ApiTokensState';
|
|
40
42
|
import { buildApplicationsActions } from './ApplicationsState';
|
|
41
43
|
import { buildCustomLoginActions } from './CustomLoginState';
|
|
@@ -70,6 +72,7 @@ export declare const buildAuthActions: (store: FronteggState, api: RestApi, acti
|
|
|
70
72
|
export type AcceptInvitationActions = ReturnType<typeof buildAcceptInvitationActions>;
|
|
71
73
|
export type AccountSettingsActions = ReturnType<typeof buildAccountSettingsActions>;
|
|
72
74
|
export type ActivateAccountActions = ReturnType<typeof buildActivateAccountActions>;
|
|
75
|
+
export type UnlockAccountActions = ReturnType<typeof buildUnlockAccountActions>;
|
|
73
76
|
export type ApiTokensActions = ReturnType<typeof buildApiTokensActions>;
|
|
74
77
|
export type ApplicationsActions = ReturnType<typeof buildApplicationsActions>;
|
|
75
78
|
export type CustomLoginActions = ReturnType<typeof buildCustomLoginActions>;
|
|
@@ -103,6 +106,7 @@ export type AuthStateActions = {
|
|
|
103
106
|
acceptInvitationActions: AcceptInvitationActions;
|
|
104
107
|
accountSettingsActions: AccountSettingsActions;
|
|
105
108
|
activateAccountActions: ActivateAccountActions;
|
|
109
|
+
unlockAccountActions: UnlockAccountActions;
|
|
106
110
|
apiTokensActions: ApiTokensActions;
|
|
107
111
|
applicationsActions: ApplicationsActions;
|
|
108
112
|
customLoginActions: CustomLoginActions;
|
|
@@ -139,4 +143,4 @@ export type AuthActions = {
|
|
|
139
143
|
setAuthState: (state: Partial<FronteggState['auth']>) => void;
|
|
140
144
|
resetAuthState: () => void;
|
|
141
145
|
setUser: (user: User | null) => void;
|
|
142
|
-
} & AcceptInvitationActions & AccountSettingsActions & ActivateAccountActions & ApiTokensActions & ApplicationsActions & CustomLoginActions & EntitlementsActions & ForgotPasswordActions & GroupsActions & GroupsDialogsActions & ImpersonateActions & LoginActions & MfaActions & AllAccountsActions & AllAccountsDialogActions & PasskeysActions & ProfileActions & ProvisioningActions & ResetPhoneNumberActions & RolesActions & RestrictionsActions & SecurityCenterActions & SecurityPolicyActions & SessionsPolicyActions & SessionsActions & SignUpActions & SmsActions & SocialLoginActions & SSOActions & StepUpActions & TeamActions & TenantsActions;
|
|
146
|
+
} & AcceptInvitationActions & AccountSettingsActions & UnlockAccountActions & ActivateAccountActions & ApiTokensActions & ApplicationsActions & CustomLoginActions & EntitlementsActions & ForgotPasswordActions & GroupsActions & GroupsDialogsActions & ImpersonateActions & LoginActions & MfaActions & AllAccountsActions & AllAccountsDialogActions & PasskeysActions & ProfileActions & ProvisioningActions & ResetPhoneNumberActions & RolesActions & RestrictionsActions & SecurityCenterActions & SecurityPolicyActions & SessionsPolicyActions & SessionsActions & SignUpActions & SmsActions & SocialLoginActions & SSOActions & StepUpActions & TeamActions & TenantsActions;
|
package/auth/index.js
CHANGED
|
@@ -4,6 +4,7 @@ const _excluded = ["routes"];
|
|
|
4
4
|
export * from './AcceptInvitationState/interfaces';
|
|
5
5
|
export * from './AccountSettingsState/interfaces';
|
|
6
6
|
export * from './ActivateAccountState/interfaces';
|
|
7
|
+
export * from './UnlockAccountState/interfaces';
|
|
7
8
|
export * from './ApiTokensState/interfaces';
|
|
8
9
|
export * from './ApplicationsState/interfaces';
|
|
9
10
|
export * from './CustomLoginState/interfaces';
|
|
@@ -37,6 +38,7 @@ export * from './interfaces';
|
|
|
37
38
|
import { createAcceptInvitationState, buildAcceptInvitationActions } from './AcceptInvitationState';
|
|
38
39
|
import { createAccountSettingsState, buildAccountSettingsActions } from './AccountSettingsState';
|
|
39
40
|
import { createActivateAccountState, buildActivateAccountActions } from './ActivateAccountState';
|
|
41
|
+
import { createUnlockAccountState, buildUnlockAccountActions } from './UnlockAccountState';
|
|
40
42
|
import { createApiTokensState, buildApiTokensActions } from './ApiTokensState';
|
|
41
43
|
import { createApplicationsState, buildApplicationsActions } from './ApplicationsState';
|
|
42
44
|
import { createCustomLoginState, buildCustomLoginActions } from './CustomLoginState';
|
|
@@ -89,6 +91,7 @@ export const createAuthState = _overrideState => {
|
|
|
89
91
|
acceptInvitationState: createAcceptInvitationState(overrideState == null ? void 0 : overrideState.acceptInvitationState),
|
|
90
92
|
accountSettingsState: createAccountSettingsState(overrideState == null ? void 0 : overrideState.accountSettingsState),
|
|
91
93
|
activateAccountState: createActivateAccountState(overrideState == null ? void 0 : overrideState.activateAccountState),
|
|
94
|
+
unlockAccountState: createUnlockAccountState(overrideState == null ? void 0 : overrideState.unlockAccountState),
|
|
92
95
|
apiTokensState: createApiTokensState(overrideState == null ? void 0 : overrideState.apiTokensState),
|
|
93
96
|
applicationsState: createApplicationsState(overrideState == null ? void 0 : overrideState.applicationsState),
|
|
94
97
|
customLoginState: createCustomLoginState(overrideState == null ? void 0 : overrideState.customLoginState),
|
|
@@ -141,6 +144,7 @@ export const buildAuthActions = (store, api, actions, snapshotAuthState) => {
|
|
|
141
144
|
const acceptInvitationActions = buildAcceptInvitationActions(store, api, actions);
|
|
142
145
|
const accountSettingsActions = buildAccountSettingsActions(store, api, actions);
|
|
143
146
|
const activateAccountActions = buildActivateAccountActions(store, api, actions);
|
|
147
|
+
const unlockAccountActions = buildUnlockAccountActions(store, api, actions);
|
|
144
148
|
const apiTokensActions = buildApiTokensActions(store, api, actions);
|
|
145
149
|
const applicationsActions = buildApplicationsActions(store, api, actions);
|
|
146
150
|
const customLoginActions = buildCustomLoginActions(store, api, actions);
|
|
@@ -174,6 +178,7 @@ export const buildAuthActions = (store, api, actions, snapshotAuthState) => {
|
|
|
174
178
|
acceptInvitationActions,
|
|
175
179
|
accountSettingsActions,
|
|
176
180
|
activateAccountActions,
|
|
181
|
+
unlockAccountActions,
|
|
177
182
|
apiTokensActions,
|
|
178
183
|
applicationsActions,
|
|
179
184
|
customLoginActions,
|
package/auth/interfaces.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ import type { TeamState } from './TeamState/interfaces';
|
|
|
29
29
|
import type { TenantsState } from './TenantsState/interfaces';
|
|
30
30
|
import type { IAllAccountsDialogsState, IAllAccountsState } from './MSP/interfaces';
|
|
31
31
|
import { ApplicationsState } from './ApplicationsState/interfaces';
|
|
32
|
+
import { UnlockAccountState } from './UnlockAccountState/interfaces';
|
|
32
33
|
export interface AuthState extends Routes, PluginOptions {
|
|
33
34
|
onRedirectTo: (path: string, opts?: RedirectOptions) => void;
|
|
34
35
|
error?: any;
|
|
@@ -50,6 +51,7 @@ export interface AuthState extends Routes, PluginOptions {
|
|
|
50
51
|
acceptInvitationState: AcceptInvitationState;
|
|
51
52
|
accountSettingsState: AccountSettingsState;
|
|
52
53
|
activateAccountState: ActivateAccountState;
|
|
54
|
+
unlockAccountState: UnlockAccountState;
|
|
53
55
|
apiTokensState: ApiTokensState;
|
|
54
56
|
customLoginState: CustomLoginState;
|
|
55
57
|
forgotPasswordState: ForgotPasswordState;
|
|
@@ -195,6 +197,10 @@ export type AuthPageRoutes = {
|
|
|
195
197
|
* open app url used for redirecting to app after login
|
|
196
198
|
*/
|
|
197
199
|
openAppUrl?: string;
|
|
200
|
+
/**
|
|
201
|
+
* unlock account url
|
|
202
|
+
*/
|
|
203
|
+
unlockAccountUrl?: string;
|
|
198
204
|
};
|
|
199
205
|
export declare enum UserVeirifedOriginTypes {
|
|
200
206
|
SOCIAL_LOGIN = "SOCIAL_LOGIN",
|
package/index.js
CHANGED
|
@@ -33,10 +33,12 @@ import buildSsoActions from './ssoActions.mocks';
|
|
|
33
33
|
import buildStepUpActions from './stepUpActions.mocks';
|
|
34
34
|
import buildTeamActions from './teamActions.mocks';
|
|
35
35
|
import buildTenantsActions from './tenantsActions.mocks';
|
|
36
|
+
import buildUnlockAccountActions from './unlockAccountActions.mocks';
|
|
36
37
|
import { isProxy } from '../../helpers';
|
|
37
38
|
export const buildAuthActions = (store, api, actions) => {
|
|
38
39
|
const acceptInvitationActions = buildAcceptInvitationActions(store, api, actions);
|
|
39
40
|
const accountSettingsActions = buildAccountSettingsActions(store, api, actions);
|
|
41
|
+
const unlockAccountActions = buildUnlockAccountActions(store, api, actions);
|
|
40
42
|
const activateAccountActions = buildActivateAccountActions(store, api, actions);
|
|
41
43
|
const allAccountsActions = buildAllAccountsActions(store, api, actions);
|
|
42
44
|
const allAccountsDialogActions = buildAllAccountsDialogActions(store, api, actions);
|
|
@@ -70,6 +72,7 @@ export const buildAuthActions = (store, api, actions) => {
|
|
|
70
72
|
const authStateActions = {
|
|
71
73
|
acceptInvitationActions,
|
|
72
74
|
accountSettingsActions,
|
|
75
|
+
unlockAccountActions,
|
|
73
76
|
activateAccountActions,
|
|
74
77
|
allAccountsActions,
|
|
75
78
|
allAccountsDialogActions,
|
|
@@ -123,7 +126,7 @@ export const buildAuthActions = (store, api, actions) => {
|
|
|
123
126
|
setAuthState,
|
|
124
127
|
resetAuthState,
|
|
125
128
|
setUser
|
|
126
|
-
}, acceptInvitationActions, accountSettingsActions, activateAccountActions, allAccountsActions, allAccountsDialogActions, apiTokensActions, applicationsActions, customLoginActions, entitlementsActions, forgotPasswordActions, groupsActions, groupsDialogsActions, impersonateActions, loginActions, mfaActions, passkeysActions, profileActions, provisioningActions, resetPhoneNumberActions, restrictionsActions, rolesActions, securityCenterActions, securityPolicyActions, sessionsActions, sessionsPolicyActions, signUpActions, smsActions, socialLoginActions, ssoActions, stepUpActions, teamActions, tenantsActions);
|
|
129
|
+
}, acceptInvitationActions, accountSettingsActions, activateAccountActions, unlockAccountActions, allAccountsActions, allAccountsDialogActions, apiTokensActions, applicationsActions, customLoginActions, entitlementsActions, forgotPasswordActions, groupsActions, groupsDialogsActions, impersonateActions, loginActions, mfaActions, passkeysActions, profileActions, provisioningActions, resetPhoneNumberActions, restrictionsActions, rolesActions, securityCenterActions, securityPolicyActions, sessionsActions, sessionsPolicyActions, signUpActions, smsActions, socialLoginActions, ssoActions, stepUpActions, teamActions, tenantsActions);
|
|
127
130
|
return {
|
|
128
131
|
authActions,
|
|
129
132
|
authStateActions
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FronteggState, RestApi, SharedActions } from '../../interfaces';
|
|
2
|
+
declare const _default: (store: FronteggState, api: RestApi, actions: SharedActions) => {
|
|
3
|
+
setUnlockAccountState: (state: Partial<import("../..").UnlockAccountState>) => {
|
|
4
|
+
readonly loading?: boolean | undefined;
|
|
5
|
+
readonly error?: any;
|
|
6
|
+
readonly unlockAccountSuccess?: boolean | undefined;
|
|
7
|
+
};
|
|
8
|
+
resetUnlockAccountState: () => void;
|
|
9
|
+
unlockAccount: (_payload: import("../..").IUnlockAccountPayload) => Promise<void>;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { buildUnlockAccountActions } from '../../auth/UnlockAccountState';
|
|
2
|
+
import { mockActionsExpect } from '../helpers';
|
|
3
|
+
export default ((store, api, actions) => {
|
|
4
|
+
const originalActions = buildUnlockAccountActions(store, api, actions);
|
|
5
|
+
return mockActionsExpect(originalActions, ['setUnlockAccountState', 'resetUnlockAccountState']);
|
|
6
|
+
});
|
|
@@ -38,6 +38,7 @@ const defaultFronteggRoutes = {
|
|
|
38
38
|
samlCallbackUrl: '/account/saml/callback',
|
|
39
39
|
magicLinkCallbackUrl: '/account/login/magic-link',
|
|
40
40
|
hostedLoginRedirectUrl: '/oauth/callback',
|
|
41
|
-
openAppUrl: '/account/redirect'
|
|
41
|
+
openAppUrl: '/account/redirect',
|
|
42
|
+
unlockAccountUrl: '/account/unlock'
|
|
42
43
|
};
|
|
43
44
|
exports.defaultFronteggRoutes = defaultFronteggRoutes;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _vanilla = require("valtio/vanilla");
|
|
8
|
+
var _state = require("./state");
|
|
9
|
+
var _helpers = require("../../helpers");
|
|
10
|
+
var _restApi = require("@frontegg/rest-api");
|
|
11
|
+
var _default = (store, api, sharedActions) => {
|
|
12
|
+
const setUnlockAccountState = state => {
|
|
13
|
+
Object.assign(store.auth.unlockAccountState, state);
|
|
14
|
+
return (0, _vanilla.snapshot)(store.auth.unlockAccountState);
|
|
15
|
+
};
|
|
16
|
+
const resetUnlockAccountState = () => {
|
|
17
|
+
store.auth.activateAccountState = (0, _helpers.deepClone)(_state.initialState);
|
|
18
|
+
};
|
|
19
|
+
const unlockAccount = async _payload => {
|
|
20
|
+
const {
|
|
21
|
+
token
|
|
22
|
+
} = _payload;
|
|
23
|
+
const onRedirectTo = _restApi.ContextHolder.for(store.root.appName).onRedirectTo;
|
|
24
|
+
const routes = store.auth.routes;
|
|
25
|
+
setUnlockAccountState({
|
|
26
|
+
loading: true
|
|
27
|
+
});
|
|
28
|
+
try {
|
|
29
|
+
await api.users.unlockMe({
|
|
30
|
+
token
|
|
31
|
+
});
|
|
32
|
+
setUnlockAccountState({
|
|
33
|
+
loading: false,
|
|
34
|
+
error: undefined,
|
|
35
|
+
unlockAccountSuccess: true
|
|
36
|
+
});
|
|
37
|
+
await (0, _helpers.delay)(1000);
|
|
38
|
+
onRedirectTo(routes.loginUrl);
|
|
39
|
+
} catch (e) {
|
|
40
|
+
setUnlockAccountState({
|
|
41
|
+
loading: false,
|
|
42
|
+
error: (0, _helpers.errorHandler)(e)
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
return {
|
|
47
|
+
setUnlockAccountState,
|
|
48
|
+
resetUnlockAccountState,
|
|
49
|
+
unlockAccount
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
exports.default = _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
Object.defineProperty(exports, "buildUnlockAccountActions", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () {
|
|
10
|
+
return _actions.default;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, "createUnlockAccountState", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () {
|
|
16
|
+
return _state.default;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
var _state = _interopRequireDefault(require("./state"));
|
|
20
|
+
var _actions = _interopRequireDefault(require("./actions"));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.initialState = exports.default = void 0;
|
|
7
|
+
var _proxy = require("../../toolkit/proxy");
|
|
8
|
+
const initialState = {
|
|
9
|
+
loading: false,
|
|
10
|
+
error: undefined,
|
|
11
|
+
unlockAccountSuccess: false
|
|
12
|
+
};
|
|
13
|
+
exports.initialState = initialState;
|
|
14
|
+
var _default = overrideState => (0, _proxy.createProxy)(initialState, overrideState);
|
|
15
|
+
exports.default = _default;
|
package/node/auth/index.js
CHANGED
|
@@ -47,7 +47,7 @@ Object.keys(_interfaces3).forEach(function (key) {
|
|
|
47
47
|
}
|
|
48
48
|
});
|
|
49
49
|
});
|
|
50
|
-
var _interfaces4 = require("./
|
|
50
|
+
var _interfaces4 = require("./UnlockAccountState/interfaces");
|
|
51
51
|
Object.keys(_interfaces4).forEach(function (key) {
|
|
52
52
|
if (key === "default" || key === "__esModule") return;
|
|
53
53
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -59,7 +59,7 @@ Object.keys(_interfaces4).forEach(function (key) {
|
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
61
|
});
|
|
62
|
-
var _interfaces5 = require("./
|
|
62
|
+
var _interfaces5 = require("./ApiTokensState/interfaces");
|
|
63
63
|
Object.keys(_interfaces5).forEach(function (key) {
|
|
64
64
|
if (key === "default" || key === "__esModule") return;
|
|
65
65
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -71,7 +71,7 @@ Object.keys(_interfaces5).forEach(function (key) {
|
|
|
71
71
|
}
|
|
72
72
|
});
|
|
73
73
|
});
|
|
74
|
-
var _interfaces6 = require("./
|
|
74
|
+
var _interfaces6 = require("./ApplicationsState/interfaces");
|
|
75
75
|
Object.keys(_interfaces6).forEach(function (key) {
|
|
76
76
|
if (key === "default" || key === "__esModule") return;
|
|
77
77
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -83,7 +83,7 @@ Object.keys(_interfaces6).forEach(function (key) {
|
|
|
83
83
|
}
|
|
84
84
|
});
|
|
85
85
|
});
|
|
86
|
-
var _interfaces7 = require("./
|
|
86
|
+
var _interfaces7 = require("./CustomLoginState/interfaces");
|
|
87
87
|
Object.keys(_interfaces7).forEach(function (key) {
|
|
88
88
|
if (key === "default" || key === "__esModule") return;
|
|
89
89
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -95,31 +95,31 @@ Object.keys(_interfaces7).forEach(function (key) {
|
|
|
95
95
|
}
|
|
96
96
|
});
|
|
97
97
|
});
|
|
98
|
-
var
|
|
99
|
-
Object.keys(
|
|
98
|
+
var _interfaces8 = require("./Entitlements/interfaces");
|
|
99
|
+
Object.keys(_interfaces8).forEach(function (key) {
|
|
100
100
|
if (key === "default" || key === "__esModule") return;
|
|
101
101
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
102
|
-
if (key in exports && exports[key] ===
|
|
102
|
+
if (key in exports && exports[key] === _interfaces8[key]) return;
|
|
103
103
|
Object.defineProperty(exports, key, {
|
|
104
104
|
enumerable: true,
|
|
105
105
|
get: function () {
|
|
106
|
-
return
|
|
106
|
+
return _interfaces8[key];
|
|
107
107
|
}
|
|
108
108
|
});
|
|
109
109
|
});
|
|
110
|
-
var
|
|
111
|
-
Object.keys(
|
|
110
|
+
var _helpers = require("./Entitlements/helpers");
|
|
111
|
+
Object.keys(_helpers).forEach(function (key) {
|
|
112
112
|
if (key === "default" || key === "__esModule") return;
|
|
113
113
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
114
|
-
if (key in exports && exports[key] ===
|
|
114
|
+
if (key in exports && exports[key] === _helpers[key]) return;
|
|
115
115
|
Object.defineProperty(exports, key, {
|
|
116
116
|
enumerable: true,
|
|
117
117
|
get: function () {
|
|
118
|
-
return
|
|
118
|
+
return _helpers[key];
|
|
119
119
|
}
|
|
120
120
|
});
|
|
121
121
|
});
|
|
122
|
-
var _interfaces9 = require("./
|
|
122
|
+
var _interfaces9 = require("./ForgotPasswordState/interfaces");
|
|
123
123
|
Object.keys(_interfaces9).forEach(function (key) {
|
|
124
124
|
if (key === "default" || key === "__esModule") return;
|
|
125
125
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -131,7 +131,7 @@ Object.keys(_interfaces9).forEach(function (key) {
|
|
|
131
131
|
}
|
|
132
132
|
});
|
|
133
133
|
});
|
|
134
|
-
var _interfaces10 = require("./
|
|
134
|
+
var _interfaces10 = require("./GroupsState/interfaces");
|
|
135
135
|
Object.keys(_interfaces10).forEach(function (key) {
|
|
136
136
|
if (key === "default" || key === "__esModule") return;
|
|
137
137
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -143,7 +143,7 @@ Object.keys(_interfaces10).forEach(function (key) {
|
|
|
143
143
|
}
|
|
144
144
|
});
|
|
145
145
|
});
|
|
146
|
-
var _interfaces11 = require("./
|
|
146
|
+
var _interfaces11 = require("./GroupsDialogsState/interfaces");
|
|
147
147
|
Object.keys(_interfaces11).forEach(function (key) {
|
|
148
148
|
if (key === "default" || key === "__esModule") return;
|
|
149
149
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -155,7 +155,7 @@ Object.keys(_interfaces11).forEach(function (key) {
|
|
|
155
155
|
}
|
|
156
156
|
});
|
|
157
157
|
});
|
|
158
|
-
var _interfaces12 = require("./
|
|
158
|
+
var _interfaces12 = require("./ImpersonateState/interfaces");
|
|
159
159
|
Object.keys(_interfaces12).forEach(function (key) {
|
|
160
160
|
if (key === "default" || key === "__esModule") return;
|
|
161
161
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -167,7 +167,7 @@ Object.keys(_interfaces12).forEach(function (key) {
|
|
|
167
167
|
}
|
|
168
168
|
});
|
|
169
169
|
});
|
|
170
|
-
var _interfaces13 = require("./
|
|
170
|
+
var _interfaces13 = require("./LoginState/interfaces");
|
|
171
171
|
Object.keys(_interfaces13).forEach(function (key) {
|
|
172
172
|
if (key === "default" || key === "__esModule") return;
|
|
173
173
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -179,7 +179,7 @@ Object.keys(_interfaces13).forEach(function (key) {
|
|
|
179
179
|
}
|
|
180
180
|
});
|
|
181
181
|
});
|
|
182
|
-
var _interfaces14 = require("./
|
|
182
|
+
var _interfaces14 = require("./MfaState/interfaces");
|
|
183
183
|
Object.keys(_interfaces14).forEach(function (key) {
|
|
184
184
|
if (key === "default" || key === "__esModule") return;
|
|
185
185
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -191,7 +191,7 @@ Object.keys(_interfaces14).forEach(function (key) {
|
|
|
191
191
|
}
|
|
192
192
|
});
|
|
193
193
|
});
|
|
194
|
-
var _interfaces15 = require("./
|
|
194
|
+
var _interfaces15 = require("./MSP/interfaces");
|
|
195
195
|
Object.keys(_interfaces15).forEach(function (key) {
|
|
196
196
|
if (key === "default" || key === "__esModule") return;
|
|
197
197
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -203,7 +203,7 @@ Object.keys(_interfaces15).forEach(function (key) {
|
|
|
203
203
|
}
|
|
204
204
|
});
|
|
205
205
|
});
|
|
206
|
-
var _interfaces16 = require("./
|
|
206
|
+
var _interfaces16 = require("./PasskeysState/interfaces");
|
|
207
207
|
Object.keys(_interfaces16).forEach(function (key) {
|
|
208
208
|
if (key === "default" || key === "__esModule") return;
|
|
209
209
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -215,7 +215,7 @@ Object.keys(_interfaces16).forEach(function (key) {
|
|
|
215
215
|
}
|
|
216
216
|
});
|
|
217
217
|
});
|
|
218
|
-
var _interfaces17 = require("./
|
|
218
|
+
var _interfaces17 = require("./ProfileState/interfaces");
|
|
219
219
|
Object.keys(_interfaces17).forEach(function (key) {
|
|
220
220
|
if (key === "default" || key === "__esModule") return;
|
|
221
221
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -227,7 +227,7 @@ Object.keys(_interfaces17).forEach(function (key) {
|
|
|
227
227
|
}
|
|
228
228
|
});
|
|
229
229
|
});
|
|
230
|
-
var _interfaces18 = require("./
|
|
230
|
+
var _interfaces18 = require("./ProvisioningState/interfaces");
|
|
231
231
|
Object.keys(_interfaces18).forEach(function (key) {
|
|
232
232
|
if (key === "default" || key === "__esModule") return;
|
|
233
233
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -239,7 +239,7 @@ Object.keys(_interfaces18).forEach(function (key) {
|
|
|
239
239
|
}
|
|
240
240
|
});
|
|
241
241
|
});
|
|
242
|
-
var _interfaces19 = require("./
|
|
242
|
+
var _interfaces19 = require("./ResetPhoneNumberState/interfaces");
|
|
243
243
|
Object.keys(_interfaces19).forEach(function (key) {
|
|
244
244
|
if (key === "default" || key === "__esModule") return;
|
|
245
245
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -251,7 +251,7 @@ Object.keys(_interfaces19).forEach(function (key) {
|
|
|
251
251
|
}
|
|
252
252
|
});
|
|
253
253
|
});
|
|
254
|
-
var _interfaces20 = require("./
|
|
254
|
+
var _interfaces20 = require("./RolesState/interfaces");
|
|
255
255
|
Object.keys(_interfaces20).forEach(function (key) {
|
|
256
256
|
if (key === "default" || key === "__esModule") return;
|
|
257
257
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -263,7 +263,7 @@ Object.keys(_interfaces20).forEach(function (key) {
|
|
|
263
263
|
}
|
|
264
264
|
});
|
|
265
265
|
});
|
|
266
|
-
var _interfaces21 = require("./Security/
|
|
266
|
+
var _interfaces21 = require("./Security/RestrictionsState/interfaces");
|
|
267
267
|
Object.keys(_interfaces21).forEach(function (key) {
|
|
268
268
|
if (key === "default" || key === "__esModule") return;
|
|
269
269
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -275,7 +275,7 @@ Object.keys(_interfaces21).forEach(function (key) {
|
|
|
275
275
|
}
|
|
276
276
|
});
|
|
277
277
|
});
|
|
278
|
-
var _interfaces22 = require("./Security/
|
|
278
|
+
var _interfaces22 = require("./Security/SecurityCenterState/interfaces");
|
|
279
279
|
Object.keys(_interfaces22).forEach(function (key) {
|
|
280
280
|
if (key === "default" || key === "__esModule") return;
|
|
281
281
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -287,7 +287,7 @@ Object.keys(_interfaces22).forEach(function (key) {
|
|
|
287
287
|
}
|
|
288
288
|
});
|
|
289
289
|
});
|
|
290
|
-
var _interfaces23 = require("./Security/
|
|
290
|
+
var _interfaces23 = require("./Security/SecurityPolicyState/interfaces");
|
|
291
291
|
Object.keys(_interfaces23).forEach(function (key) {
|
|
292
292
|
if (key === "default" || key === "__esModule") return;
|
|
293
293
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -299,7 +299,7 @@ Object.keys(_interfaces23).forEach(function (key) {
|
|
|
299
299
|
}
|
|
300
300
|
});
|
|
301
301
|
});
|
|
302
|
-
var _interfaces24 = require("./
|
|
302
|
+
var _interfaces24 = require("./Security/SessionsPolicyState/interfaces");
|
|
303
303
|
Object.keys(_interfaces24).forEach(function (key) {
|
|
304
304
|
if (key === "default" || key === "__esModule") return;
|
|
305
305
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -311,7 +311,7 @@ Object.keys(_interfaces24).forEach(function (key) {
|
|
|
311
311
|
}
|
|
312
312
|
});
|
|
313
313
|
});
|
|
314
|
-
var _interfaces25 = require("./
|
|
314
|
+
var _interfaces25 = require("./SessionsState/interfaces");
|
|
315
315
|
Object.keys(_interfaces25).forEach(function (key) {
|
|
316
316
|
if (key === "default" || key === "__esModule") return;
|
|
317
317
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -323,7 +323,7 @@ Object.keys(_interfaces25).forEach(function (key) {
|
|
|
323
323
|
}
|
|
324
324
|
});
|
|
325
325
|
});
|
|
326
|
-
var _interfaces26 = require("./
|
|
326
|
+
var _interfaces26 = require("./SignUpState/interfaces");
|
|
327
327
|
Object.keys(_interfaces26).forEach(function (key) {
|
|
328
328
|
if (key === "default" || key === "__esModule") return;
|
|
329
329
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -335,7 +335,7 @@ Object.keys(_interfaces26).forEach(function (key) {
|
|
|
335
335
|
}
|
|
336
336
|
});
|
|
337
337
|
});
|
|
338
|
-
var _interfaces27 = require("./
|
|
338
|
+
var _interfaces27 = require("./SmsState/interfaces");
|
|
339
339
|
Object.keys(_interfaces27).forEach(function (key) {
|
|
340
340
|
if (key === "default" || key === "__esModule") return;
|
|
341
341
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -347,7 +347,7 @@ Object.keys(_interfaces27).forEach(function (key) {
|
|
|
347
347
|
}
|
|
348
348
|
});
|
|
349
349
|
});
|
|
350
|
-
var _interfaces28 = require("./
|
|
350
|
+
var _interfaces28 = require("./SocialLoginState/interfaces");
|
|
351
351
|
Object.keys(_interfaces28).forEach(function (key) {
|
|
352
352
|
if (key === "default" || key === "__esModule") return;
|
|
353
353
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -359,7 +359,7 @@ Object.keys(_interfaces28).forEach(function (key) {
|
|
|
359
359
|
}
|
|
360
360
|
});
|
|
361
361
|
});
|
|
362
|
-
var _interfaces29 = require("./
|
|
362
|
+
var _interfaces29 = require("./SSOState/interfaces");
|
|
363
363
|
Object.keys(_interfaces29).forEach(function (key) {
|
|
364
364
|
if (key === "default" || key === "__esModule") return;
|
|
365
365
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -371,7 +371,7 @@ Object.keys(_interfaces29).forEach(function (key) {
|
|
|
371
371
|
}
|
|
372
372
|
});
|
|
373
373
|
});
|
|
374
|
-
var _interfaces30 = require("./
|
|
374
|
+
var _interfaces30 = require("./StepUpState/interfaces");
|
|
375
375
|
Object.keys(_interfaces30).forEach(function (key) {
|
|
376
376
|
if (key === "default" || key === "__esModule") return;
|
|
377
377
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -383,7 +383,7 @@ Object.keys(_interfaces30).forEach(function (key) {
|
|
|
383
383
|
}
|
|
384
384
|
});
|
|
385
385
|
});
|
|
386
|
-
var _interfaces31 = require("./
|
|
386
|
+
var _interfaces31 = require("./TeamState/interfaces");
|
|
387
387
|
Object.keys(_interfaces31).forEach(function (key) {
|
|
388
388
|
if (key === "default" || key === "__esModule") return;
|
|
389
389
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -395,7 +395,7 @@ Object.keys(_interfaces31).forEach(function (key) {
|
|
|
395
395
|
}
|
|
396
396
|
});
|
|
397
397
|
});
|
|
398
|
-
var _interfaces32 = require("./interfaces");
|
|
398
|
+
var _interfaces32 = require("./TenantsState/interfaces");
|
|
399
399
|
Object.keys(_interfaces32).forEach(function (key) {
|
|
400
400
|
if (key === "default" || key === "__esModule") return;
|
|
401
401
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -407,9 +407,22 @@ Object.keys(_interfaces32).forEach(function (key) {
|
|
|
407
407
|
}
|
|
408
408
|
});
|
|
409
409
|
});
|
|
410
|
+
var _interfaces33 = require("./interfaces");
|
|
411
|
+
Object.keys(_interfaces33).forEach(function (key) {
|
|
412
|
+
if (key === "default" || key === "__esModule") return;
|
|
413
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
414
|
+
if (key in exports && exports[key] === _interfaces33[key]) return;
|
|
415
|
+
Object.defineProperty(exports, key, {
|
|
416
|
+
enumerable: true,
|
|
417
|
+
get: function () {
|
|
418
|
+
return _interfaces33[key];
|
|
419
|
+
}
|
|
420
|
+
});
|
|
421
|
+
});
|
|
410
422
|
var _AcceptInvitationState = require("./AcceptInvitationState");
|
|
411
423
|
var _AccountSettingsState = require("./AccountSettingsState");
|
|
412
424
|
var _ActivateAccountState = require("./ActivateAccountState");
|
|
425
|
+
var _UnlockAccountState = require("./UnlockAccountState");
|
|
413
426
|
var _ApiTokensState = require("./ApiTokensState");
|
|
414
427
|
var _ApplicationsState = require("./ApplicationsState");
|
|
415
428
|
var _CustomLoginState = require("./CustomLoginState");
|
|
@@ -462,6 +475,7 @@ const createAuthState = _overrideState => {
|
|
|
462
475
|
acceptInvitationState: (0, _AcceptInvitationState.createAcceptInvitationState)(overrideState == null ? void 0 : overrideState.acceptInvitationState),
|
|
463
476
|
accountSettingsState: (0, _AccountSettingsState.createAccountSettingsState)(overrideState == null ? void 0 : overrideState.accountSettingsState),
|
|
464
477
|
activateAccountState: (0, _ActivateAccountState.createActivateAccountState)(overrideState == null ? void 0 : overrideState.activateAccountState),
|
|
478
|
+
unlockAccountState: (0, _UnlockAccountState.createUnlockAccountState)(overrideState == null ? void 0 : overrideState.unlockAccountState),
|
|
465
479
|
apiTokensState: (0, _ApiTokensState.createApiTokensState)(overrideState == null ? void 0 : overrideState.apiTokensState),
|
|
466
480
|
applicationsState: (0, _ApplicationsState.createApplicationsState)(overrideState == null ? void 0 : overrideState.applicationsState),
|
|
467
481
|
customLoginState: (0, _CustomLoginState.createCustomLoginState)(overrideState == null ? void 0 : overrideState.customLoginState),
|
|
@@ -515,6 +529,7 @@ const buildAuthActions = (store, api, actions, snapshotAuthState) => {
|
|
|
515
529
|
const acceptInvitationActions = (0, _AcceptInvitationState.buildAcceptInvitationActions)(store, api, actions);
|
|
516
530
|
const accountSettingsActions = (0, _AccountSettingsState.buildAccountSettingsActions)(store, api, actions);
|
|
517
531
|
const activateAccountActions = (0, _ActivateAccountState.buildActivateAccountActions)(store, api, actions);
|
|
532
|
+
const unlockAccountActions = (0, _UnlockAccountState.buildUnlockAccountActions)(store, api, actions);
|
|
518
533
|
const apiTokensActions = (0, _ApiTokensState.buildApiTokensActions)(store, api, actions);
|
|
519
534
|
const applicationsActions = (0, _ApplicationsState.buildApplicationsActions)(store, api, actions);
|
|
520
535
|
const customLoginActions = (0, _CustomLoginState.buildCustomLoginActions)(store, api, actions);
|
|
@@ -548,6 +563,7 @@ const buildAuthActions = (store, api, actions, snapshotAuthState) => {
|
|
|
548
563
|
acceptInvitationActions,
|
|
549
564
|
accountSettingsActions,
|
|
550
565
|
activateAccountActions,
|
|
566
|
+
unlockAccountActions,
|
|
551
567
|
apiTokensActions,
|
|
552
568
|
applicationsActions,
|
|
553
569
|
customLoginActions,
|
package/node/index.js
CHANGED
|
@@ -38,6 +38,7 @@ var _ssoActions = _interopRequireDefault(require("./ssoActions.mocks"));
|
|
|
38
38
|
var _stepUpActions = _interopRequireDefault(require("./stepUpActions.mocks"));
|
|
39
39
|
var _teamActions = _interopRequireDefault(require("./teamActions.mocks"));
|
|
40
40
|
var _tenantsActions = _interopRequireDefault(require("./tenantsActions.mocks"));
|
|
41
|
+
var _unlockAccountActions = _interopRequireDefault(require("./unlockAccountActions.mocks"));
|
|
41
42
|
var _helpers = require("../../helpers");
|
|
42
43
|
/* contains reducers only no need to mock */
|
|
43
44
|
|
|
@@ -46,6 +47,7 @@ var _helpers = require("../../helpers");
|
|
|
46
47
|
const buildAuthActions = (store, api, actions) => {
|
|
47
48
|
const acceptInvitationActions = (0, _acceptInvitationActions.default)(store, api, actions);
|
|
48
49
|
const accountSettingsActions = (0, _accountSettingsActions.default)(store, api, actions);
|
|
50
|
+
const unlockAccountActions = (0, _unlockAccountActions.default)(store, api, actions);
|
|
49
51
|
const activateAccountActions = (0, _activateAccountActions.default)(store, api, actions);
|
|
50
52
|
const allAccountsActions = (0, _allAccountsActions.default)(store, api, actions);
|
|
51
53
|
const allAccountsDialogActions = (0, _MSP.buildAllAccountsDialogActions)(store, api, actions);
|
|
@@ -79,6 +81,7 @@ const buildAuthActions = (store, api, actions) => {
|
|
|
79
81
|
const authStateActions = {
|
|
80
82
|
acceptInvitationActions,
|
|
81
83
|
accountSettingsActions,
|
|
84
|
+
unlockAccountActions,
|
|
82
85
|
activateAccountActions,
|
|
83
86
|
allAccountsActions,
|
|
84
87
|
allAccountsDialogActions,
|
|
@@ -132,7 +135,7 @@ const buildAuthActions = (store, api, actions) => {
|
|
|
132
135
|
setAuthState,
|
|
133
136
|
resetAuthState,
|
|
134
137
|
setUser
|
|
135
|
-
}, acceptInvitationActions, accountSettingsActions, activateAccountActions, allAccountsActions, allAccountsDialogActions, apiTokensActions, applicationsActions, customLoginActions, entitlementsActions, forgotPasswordActions, groupsActions, groupsDialogsActions, impersonateActions, loginActions, mfaActions, passkeysActions, profileActions, provisioningActions, resetPhoneNumberActions, restrictionsActions, rolesActions, securityCenterActions, securityPolicyActions, sessionsActions, sessionsPolicyActions, signUpActions, smsActions, socialLoginActions, ssoActions, stepUpActions, teamActions, tenantsActions);
|
|
138
|
+
}, acceptInvitationActions, accountSettingsActions, activateAccountActions, unlockAccountActions, allAccountsActions, allAccountsDialogActions, apiTokensActions, applicationsActions, customLoginActions, entitlementsActions, forgotPasswordActions, groupsActions, groupsDialogsActions, impersonateActions, loginActions, mfaActions, passkeysActions, profileActions, provisioningActions, resetPhoneNumberActions, restrictionsActions, rolesActions, securityCenterActions, securityPolicyActions, sessionsActions, sessionsPolicyActions, signUpActions, smsActions, socialLoginActions, ssoActions, stepUpActions, teamActions, tenantsActions);
|
|
136
139
|
return {
|
|
137
140
|
authActions,
|
|
138
141
|
authStateActions
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _UnlockAccountState = require("../../auth/UnlockAccountState");
|
|
8
|
+
var _helpers = require("../helpers");
|
|
9
|
+
var _default = (store, api, actions) => {
|
|
10
|
+
const originalActions = (0, _UnlockAccountState.buildUnlockAccountActions)(store, api, actions);
|
|
11
|
+
return (0, _helpers.mockActionsExpect)(originalActions, ['setUnlockAccountState', 'resetUnlockAccountState']);
|
|
12
|
+
};
|
|
13
|
+
exports.default = _default;
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontegg/redux-store",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.3.0",
|
|
4
4
|
"main": "./node/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Frontegg LTD",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@babel/runtime": "^7.18.6",
|
|
9
9
|
"@frontegg/entitlements-javascript-commons": "1.1.2",
|
|
10
|
-
"@frontegg/rest-api": "3.2.
|
|
10
|
+
"@frontegg/rest-api": "3.2.1",
|
|
11
11
|
"fast-deep-equal": "3.1.3",
|
|
12
12
|
"set-value": "^4.1.0",
|
|
13
13
|
"uuid": "^10.0.0",
|