@frontegg/redux-store 6.101.0 → 6.102.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/AcceptInvitationState/index.d.ts +0 -2
- package/auth/AccountSettingsState/index.d.ts +0 -2
- package/auth/ActivateState/index.d.ts +0 -15
- package/auth/ApiTokensState/index.d.ts +0 -2
- package/auth/CustomLoginState/index.d.ts +0 -2
- package/auth/ForgotPasswordState/index.d.ts +0 -2
- package/auth/GroupsState/groupsDialogsState.d.ts +0 -12
- package/auth/GroupsState/index.d.ts +0 -2
- package/auth/ImpersonationState/index.d.ts +0 -2
- package/auth/LoginState/index.d.ts +0 -2
- package/auth/LoginState/saga.d.ts +2 -2
- package/auth/LoginState/saga.js +0 -10
- package/auth/MfaState/index.d.ts +0 -2
- package/auth/PasskeysState/index.d.ts +0 -2
- package/auth/ProfileState/index.d.ts +0 -2
- package/auth/Provisioning/index.d.ts +0 -2
- package/auth/ResetPhoneNumberState/index.d.ts +0 -2
- package/auth/RestrictionsState/index.d.ts +0 -3
- package/auth/RolesState/index.d.ts +0 -2
- package/auth/SSOState/index.d.ts +0 -2
- package/auth/SecurityPolicyState/index.d.ts +0 -13
- package/auth/SessionsPolicyState/index.d.ts +0 -2
- package/auth/SessionsState/index.d.ts +0 -2
- package/auth/SignUp/index.d.ts +0 -2
- package/auth/SocialLogins/index.d.ts +0 -2
- package/auth/TeamState/index.d.ts +0 -2
- package/auth/TenantsState/index.d.ts +0 -2
- package/auth/index.d.ts +0 -4
- package/auth/index.js +0 -2
- package/auth/initialState.js +1 -3
- package/auth/interfaces.d.ts +0 -2
- package/auth/reducer.d.ts +1 -4
- package/auth/reducer.js +2 -3
- package/auth/saga.js +1 -2
- package/auth/utils.d.ts +0 -6
- package/index.js +1 -1
- package/node/auth/LoginState/saga.js +0 -10
- package/node/auth/index.js +8 -32
- package/node/auth/initialState.js +1 -3
- package/node/auth/reducer.js +2 -3
- package/node/auth/saga.js +6 -7
- package/node/index.js +1 -1
- package/package.json +2 -2
- package/toolkit/index.d.ts +1 -1
- package/auth/EntitlementsState/index.d.ts +0 -70
- package/auth/EntitlementsState/index.js +0 -29
- package/auth/EntitlementsState/interfaces.d.ts +0 -9
- package/auth/EntitlementsState/interfaces.js +0 -1
- package/auth/EntitlementsState/saga.d.ts +0 -9
- package/auth/EntitlementsState/saga.js +0 -28
- package/auth/EntitlementsState/utils.d.ts +0 -8
- package/auth/EntitlementsState/utils.js +0 -8
- package/node/auth/EntitlementsState/index.js +0 -59
- package/node/auth/EntitlementsState/interfaces.js +0 -5
- package/node/auth/EntitlementsState/saga.js +0 -34
- package/node/auth/EntitlementsState/utils.js +0 -15
|
@@ -47,7 +47,6 @@ declare const reducers: {
|
|
|
47
47
|
impersonateState?: import("..").ImpersonateState | undefined;
|
|
48
48
|
passkeysState?: import("..").PasskeysState | undefined;
|
|
49
49
|
customLoginState?: import("..").CustomLoginState | undefined;
|
|
50
|
-
entitlementsState?: import("..").EntitlementsState | undefined;
|
|
51
50
|
routes: import("..").AuthPageRoutes;
|
|
52
51
|
header?: any;
|
|
53
52
|
loaderComponent?: any;
|
|
@@ -91,7 +90,6 @@ declare const reducers: {
|
|
|
91
90
|
impersonateState?: import("..").ImpersonateState | undefined;
|
|
92
91
|
passkeysState?: import("..").PasskeysState | undefined;
|
|
93
92
|
customLoginState?: import("..").CustomLoginState | undefined;
|
|
94
|
-
entitlementsState?: import("..").EntitlementsState | undefined;
|
|
95
93
|
routes: import("..").AuthPageRoutes;
|
|
96
94
|
header?: any;
|
|
97
95
|
loaderComponent?: any;
|
|
@@ -66,7 +66,6 @@ declare const reducers: {
|
|
|
66
66
|
impersonateState?: import("..").ImpersonateState | undefined;
|
|
67
67
|
passkeysState?: import("..").PasskeysState | undefined;
|
|
68
68
|
customLoginState?: import("..").CustomLoginState | undefined;
|
|
69
|
-
entitlementsState?: import("..").EntitlementsState | undefined;
|
|
70
69
|
routes: import("..").AuthPageRoutes;
|
|
71
70
|
header?: any;
|
|
72
71
|
loaderComponent?: any;
|
|
@@ -110,7 +109,6 @@ declare const reducers: {
|
|
|
110
109
|
impersonateState?: import("..").ImpersonateState | undefined;
|
|
111
110
|
passkeysState?: import("..").PasskeysState | undefined;
|
|
112
111
|
customLoginState?: import("..").CustomLoginState | undefined;
|
|
113
|
-
entitlementsState?: import("..").EntitlementsState | undefined;
|
|
114
112
|
routes: import("..").AuthPageRoutes;
|
|
115
113
|
header?: any;
|
|
116
114
|
loaderComponent?: any;
|
|
@@ -48,7 +48,6 @@ declare const reducers: {
|
|
|
48
48
|
impersonateState?: import("..").ImpersonateState | undefined;
|
|
49
49
|
passkeysState?: import("..").PasskeysState | undefined;
|
|
50
50
|
customLoginState?: import("..").CustomLoginState | undefined;
|
|
51
|
-
entitlementsState?: import("..").EntitlementsState | undefined;
|
|
52
51
|
routes: import("..").AuthPageRoutes;
|
|
53
52
|
header?: any;
|
|
54
53
|
loaderComponent?: any;
|
|
@@ -92,7 +91,6 @@ declare const reducers: {
|
|
|
92
91
|
impersonateState?: import("..").ImpersonateState | undefined;
|
|
93
92
|
passkeysState?: import("..").PasskeysState | undefined;
|
|
94
93
|
customLoginState?: import("..").CustomLoginState | undefined;
|
|
95
|
-
entitlementsState?: import("..").EntitlementsState | undefined;
|
|
96
94
|
routes: import("..").AuthPageRoutes;
|
|
97
95
|
header?: any;
|
|
98
96
|
loaderComponent?: any;
|
package/auth/index.d.ts
CHANGED
|
@@ -48,8 +48,6 @@ export * from './RestrictionsState';
|
|
|
48
48
|
export * from './RestrictionsState/interfaces';
|
|
49
49
|
export * from './Provisioning';
|
|
50
50
|
export * from './Provisioning/interfaces';
|
|
51
|
-
export * from './EntitlementsState';
|
|
52
|
-
export * from './EntitlementsState/interfaces';
|
|
53
51
|
export * from './PasskeysState';
|
|
54
52
|
export * from './PasskeysState/interfaces';
|
|
55
53
|
export * from './CustomLoginState';
|
|
@@ -71,7 +69,6 @@ declare const _default: {
|
|
|
71
69
|
deviceId: string;
|
|
72
70
|
}, boolean>, string, never, never>;
|
|
73
71
|
impersonate: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<import("./ImpersonationState/interfaces").IImpersonatePayload, boolean>], import("..").WithCallback<import("./ImpersonationState/interfaces").IImpersonatePayload, boolean>, string, never, never>;
|
|
74
|
-
loadEntitlements: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
75
72
|
loadProvisionConnections: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
76
73
|
createProvisionConnection: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<import("@frontegg/rest-api").Scim2CreateConnectionConfigRequest, import("@frontegg/rest-api").Scim2CreateConnectionConfigResponse>], import("..").WithCallback<import("@frontegg/rest-api").Scim2CreateConnectionConfigRequest, import("@frontegg/rest-api").Scim2CreateConnectionConfigResponse>, string, never, never>;
|
|
77
74
|
deleteProvisionConnection: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<{
|
|
@@ -485,7 +482,6 @@ declare const _default: {
|
|
|
485
482
|
verifyMFAWebAuthnForLogin: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("./LoginState/interfaces").IVerifyMFAWebAuthnPayload], import("./LoginState/interfaces").IVerifyMFAWebAuthnPayload, string, never, never>;
|
|
486
483
|
preVerifyMFASMSForLogin: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<import("./LoginState/interfaces").WithDeviceId<import("@frontegg/rest-api").IPreVerifyMFA>, boolean>], import("..").WithCallback<import("./LoginState/interfaces").WithDeviceId<import("@frontegg/rest-api").IPreVerifyMFA>, boolean>, string, never, never>;
|
|
487
484
|
verifyMFASMSForLogin: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<import("./LoginState/interfaces").WithDeviceId<import("@frontegg/rest-api").IVerifyMFASMS>, boolean>], import("..").WithCallback<import("./LoginState/interfaces").WithDeviceId<import("@frontegg/rest-api").IVerifyMFASMS>, boolean>, string, never, never>;
|
|
488
|
-
setEntitlementsState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[Partial<import("./EntitlementsState/interfaces").EntitlementsState>], Partial<import("./EntitlementsState/interfaces").EntitlementsState>, string, never, never>;
|
|
489
485
|
setPasskeysState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[Partial<import("./PasskeysState/interfaces").PasskeysState>], Partial<import("./PasskeysState/interfaces").PasskeysState>, string, never, never>;
|
|
490
486
|
resetPasskeysState: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
491
487
|
setProvisioningState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[Partial<import("./Provisioning/interfaces").ProvisioningState>], Partial<import("./Provisioning/interfaces").ProvisioningState>, string, never, never>;
|
package/auth/index.js
CHANGED
|
@@ -50,8 +50,6 @@ export * from './RestrictionsState';
|
|
|
50
50
|
export * from './RestrictionsState/interfaces';
|
|
51
51
|
export * from './Provisioning';
|
|
52
52
|
export * from './Provisioning/interfaces';
|
|
53
|
-
export * from './EntitlementsState';
|
|
54
|
-
export * from './EntitlementsState/interfaces';
|
|
55
53
|
export * from './PasskeysState';
|
|
56
54
|
export * from './PasskeysState/interfaces';
|
|
57
55
|
export * from './CustomLoginState';
|
package/auth/initialState.js
CHANGED
|
@@ -23,7 +23,6 @@ import { passkeysState } from './PasskeysState';
|
|
|
23
23
|
import { groupsState } from './GroupsState';
|
|
24
24
|
import { groupsDialogsState } from './GroupsState/groupsDialogsState';
|
|
25
25
|
import { customLoginState } from './CustomLoginState';
|
|
26
|
-
import { entitlementsState } from './EntitlementsState';
|
|
27
26
|
export const reinitializeState = {
|
|
28
27
|
isAuthenticated: false,
|
|
29
28
|
isLoading: true,
|
|
@@ -52,8 +51,7 @@ export const reinitializeState = {
|
|
|
52
51
|
sessionsPolicyState,
|
|
53
52
|
restrictionsState,
|
|
54
53
|
provisioningState,
|
|
55
|
-
passkeysState
|
|
56
|
-
entitlementsState
|
|
54
|
+
passkeysState
|
|
57
55
|
};
|
|
58
56
|
export const initialState = _extends({
|
|
59
57
|
routes: {
|
package/auth/interfaces.d.ts
CHANGED
|
@@ -23,7 +23,6 @@ import { ImpersonateState } from './ImpersonationState/interfaces';
|
|
|
23
23
|
import { PasskeysState } from './PasskeysState/interfaces';
|
|
24
24
|
import { GroupsDialogsState, GroupsState } from './GroupsState/interfaces';
|
|
25
25
|
import { CustomLoginState } from './CustomLoginState/interfaces';
|
|
26
|
-
import { EntitlementsState } from './EntitlementsState/interfaces';
|
|
27
26
|
interface Actor {
|
|
28
27
|
sub?: string;
|
|
29
28
|
}
|
|
@@ -80,7 +79,6 @@ export interface AuthState extends Routes, PluginOptions {
|
|
|
80
79
|
impersonateState?: ImpersonateState;
|
|
81
80
|
passkeysState?: PasskeysState;
|
|
82
81
|
customLoginState?: CustomLoginState;
|
|
83
|
-
entitlementsState?: EntitlementsState;
|
|
84
82
|
}
|
|
85
83
|
export declare type AuthPageRoutes = {
|
|
86
84
|
/**
|
package/auth/reducer.d.ts
CHANGED
|
@@ -23,7 +23,6 @@ import { PasskeysActions } from './PasskeysState';
|
|
|
23
23
|
import { GroupsActions } from './GroupsState';
|
|
24
24
|
import { GroupsDialogsActions } from './GroupsState/groupsDialogsState';
|
|
25
25
|
import { CustomLoginActions } from './CustomLoginState';
|
|
26
|
-
import { EntitlementsActions } from './EntitlementsState';
|
|
27
26
|
declare const reducer: import("redux").Reducer<AuthState, import("redux").AnyAction>;
|
|
28
27
|
declare const actions: {
|
|
29
28
|
loadWebAuthnDevices: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
@@ -33,7 +32,6 @@ declare const actions: {
|
|
|
33
32
|
deviceId: string;
|
|
34
33
|
}, boolean>, string, never, never>;
|
|
35
34
|
impersonate: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<import(".").IImpersonatePayload, boolean>], import("..").WithCallback<import(".").IImpersonatePayload, boolean>, string, never, never>;
|
|
36
|
-
loadEntitlements: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
37
35
|
loadProvisionConnections: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
38
36
|
createProvisionConnection: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<import("@frontegg/rest-api").Scim2CreateConnectionConfigRequest, import("@frontegg/rest-api").Scim2CreateConnectionConfigResponse>], import("..").WithCallback<import("@frontegg/rest-api").Scim2CreateConnectionConfigRequest, import("@frontegg/rest-api").Scim2CreateConnectionConfigResponse>, string, never, never>;
|
|
39
37
|
deleteProvisionConnection: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<{
|
|
@@ -447,7 +445,6 @@ declare const actions: {
|
|
|
447
445
|
verifyMFAWebAuthnForLogin: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import(".").IVerifyMFAWebAuthnPayload], import(".").IVerifyMFAWebAuthnPayload, string, never, never>;
|
|
448
446
|
preVerifyMFASMSForLogin: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<import(".").WithDeviceId<import("@frontegg/rest-api").IPreVerifyMFA>, boolean>], import("..").WithCallback<import(".").WithDeviceId<import("@frontegg/rest-api").IPreVerifyMFA>, boolean>, string, never, never>;
|
|
449
447
|
verifyMFASMSForLogin: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<import(".").WithDeviceId<import("@frontegg/rest-api").IVerifyMFASMS>, boolean>], import("..").WithCallback<import(".").WithDeviceId<import("@frontegg/rest-api").IVerifyMFASMS>, boolean>, string, never, never>;
|
|
450
|
-
setEntitlementsState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[Partial<import(".").EntitlementsState>], Partial<import(".").EntitlementsState>, string, never, never>;
|
|
451
448
|
setPasskeysState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[Partial<import(".").PasskeysState>], Partial<import(".").PasskeysState>, string, never, never>;
|
|
452
449
|
resetPasskeysState: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
453
450
|
setProvisioningState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[Partial<import(".").ProvisioningState>], Partial<import(".").ProvisioningState>, string, never, never>;
|
|
@@ -596,5 +593,5 @@ export declare type RootActions = {
|
|
|
596
593
|
resetState: () => void;
|
|
597
594
|
setUser: (user: User) => void;
|
|
598
595
|
};
|
|
599
|
-
export declare type AuthActions = RootActions & LoginActions & SocialLoginActions & ActivateAccountActions & ImpersonateActions & AcceptInvitationActions & ForgotPasswordActions & ResetPhoneNumberActions & SignUpActions & ProfileActions & CustomLoginActions & SSOActions & MfaActions & TeamActions & GroupsActions & GroupsDialogsActions & ApiTokensActions & SecurityPolicyActions & AccountSettingsActions & TenantsActions & RolesActions & SessionsActions & RestrictionsActions & ProvisioningActions & PasskeysActions
|
|
596
|
+
export declare type AuthActions = RootActions & LoginActions & SocialLoginActions & ActivateAccountActions & ImpersonateActions & AcceptInvitationActions & ForgotPasswordActions & ResetPhoneNumberActions & SignUpActions & ProfileActions & CustomLoginActions & SSOActions & MfaActions & TeamActions & GroupsActions & GroupsDialogsActions & ApiTokensActions & SecurityPolicyActions & AccountSettingsActions & TenantsActions & RolesActions & SessionsActions & RestrictionsActions & ProvisioningActions & PasskeysActions;
|
|
600
597
|
export { reducer, actions };
|
package/auth/reducer.js
CHANGED
|
@@ -28,7 +28,6 @@ import { passkeysActions, passkeysReducers } from './PasskeysState';
|
|
|
28
28
|
import { groupsActions, groupsReducers } from './GroupsState';
|
|
29
29
|
import { groupsDialogsActions, groupsDialogsReducers } from './GroupsState/groupsDialogsState';
|
|
30
30
|
import { customLoginActions, customLoginReducers } from './CustomLoginState';
|
|
31
|
-
import { entitlementsActions, entitlementsReducers } from './EntitlementsState';
|
|
32
31
|
const {
|
|
33
32
|
reducer,
|
|
34
33
|
actions: sliceActions
|
|
@@ -41,7 +40,7 @@ const {
|
|
|
41
40
|
payload
|
|
42
41
|
}) => _extends({}, state, payload),
|
|
43
42
|
setUser: typeReducer('user')
|
|
44
|
-
}, loginReducers, socialLoginsReducer, activateAccountReducers, impersonateReducers, acceptInvitationReducers, forgotPasswordReducers, resetPhoneNumberReducers, signUpReducers, profileReducers, customLoginReducers, ssoReducers, mfaReducers, teamReducers, groupsReducers, groupsDialogsReducers, apiTokensReducers, securityPolicyReducers, accountSettingsReducers, tenantsReducers, rolesReducers, sessionsReducers, sessionsPolicyReducers, restrictionsReducers, provisioningReducers, passkeysReducers
|
|
43
|
+
}, loginReducers, socialLoginsReducer, activateAccountReducers, impersonateReducers, acceptInvitationReducers, forgotPasswordReducers, resetPhoneNumberReducers, signUpReducers, profileReducers, customLoginReducers, ssoReducers, mfaReducers, teamReducers, groupsReducers, groupsDialogsReducers, apiTokensReducers, securityPolicyReducers, accountSettingsReducers, tenantsReducers, rolesReducers, sessionsReducers, sessionsPolicyReducers, restrictionsReducers, provisioningReducers, passkeysReducers)
|
|
45
44
|
});
|
|
46
|
-
const actions = _extends({}, sliceActions, loginActions, socialLoginsActions, activateAccountActions, acceptInvitationActions, forgotPasswordActions, resetPhoneNumberActions, signUpActions, profileActions, customLoginActions, ssoActions, mfaActions, teamActions, groupsActions, groupsDialogsActions, apiTokensActions, securityPolicyActions, accountSettingsActions, tenantsActions, rolesActions, sessionsActions, sessionsPolicyActions, restrictionsActions, provisioningActions,
|
|
45
|
+
const actions = _extends({}, sliceActions, loginActions, socialLoginsActions, activateAccountActions, acceptInvitationActions, forgotPasswordActions, resetPhoneNumberActions, signUpActions, profileActions, customLoginActions, ssoActions, mfaActions, teamActions, groupsActions, groupsDialogsActions, apiTokensActions, securityPolicyActions, accountSettingsActions, tenantsActions, rolesActions, sessionsActions, sessionsPolicyActions, restrictionsActions, provisioningActions, impersonateActions, passkeysActions);
|
|
47
46
|
export { reducer, actions };
|
package/auth/saga.js
CHANGED
|
@@ -20,13 +20,12 @@ import { sessionsSaga, sessionsSagaMock } from './SessionsState/saga';
|
|
|
20
20
|
import { sessionsPolicySaga, sessionsPolicySagaMock } from './SessionsPolicyState/saga';
|
|
21
21
|
import { restrictionsSagaMock, restrictionsSagas } from './RestrictionsState/saga';
|
|
22
22
|
import { provisionSagas } from './Provisioning/saga';
|
|
23
|
-
import { entitlementsSagas } from './EntitlementsState/saga';
|
|
24
23
|
import { impersonateSagas } from './ImpersonationState/saga';
|
|
25
24
|
import { passkeysSagas } from './PasskeysState/saga';
|
|
26
25
|
import { groupsSagas, groupsSagasMock } from './GroupsState/saga';
|
|
27
26
|
import { customLoginSagas } from './CustomLoginState/saga';
|
|
28
27
|
export function* sagas() {
|
|
29
|
-
yield all([call(loginSagas), call(activateSagas), call(acceptInvitationSagas), call(forgotPasswordSagas), call(resetPhoneNumberSagas), call(ssoSagas), call(ssoSagasV2), call(profileSagas), call(customLoginSagas), call(mfaSagas), call(teamSagas), call(groupsSagas), call(socialLoginsSaga), call(signUpSaga), call(apiTokensSaga), call(securityPolicySagas), call(accountSettingsSaga), call(tenantsSagas), call(rolesSagas), call(sessionsSaga), call(sessionsPolicySaga), call(restrictionsSagas), call(provisionSagas), call(impersonateSagas), call(passkeysSagas)
|
|
28
|
+
yield all([call(loginSagas), call(activateSagas), call(acceptInvitationSagas), call(forgotPasswordSagas), call(resetPhoneNumberSagas), call(ssoSagas), call(ssoSagasV2), call(profileSagas), call(customLoginSagas), call(mfaSagas), call(teamSagas), call(groupsSagas), call(socialLoginsSaga), call(signUpSaga), call(apiTokensSaga), call(securityPolicySagas), call(accountSettingsSaga), call(tenantsSagas), call(rolesSagas), call(sessionsSaga), call(sessionsPolicySaga), call(restrictionsSagas), call(provisionSagas), call(impersonateSagas), call(passkeysSagas)]);
|
|
30
29
|
}
|
|
31
30
|
export function* mockSagas() {
|
|
32
31
|
yield all([call(loginSagasMock),
|
package/auth/utils.d.ts
CHANGED
|
@@ -38,7 +38,6 @@ export declare const resetStateByKey: <T>(key: keyof AuthState, initialState: Pa
|
|
|
38
38
|
impersonateState?: import(".").ImpersonateState | undefined;
|
|
39
39
|
passkeysState?: import(".").PasskeysState | undefined;
|
|
40
40
|
customLoginState?: import(".").CustomLoginState | undefined;
|
|
41
|
-
entitlementsState?: import(".").EntitlementsState | undefined;
|
|
42
41
|
routes: import("./interfaces").AuthPageRoutes;
|
|
43
42
|
header?: any;
|
|
44
43
|
loaderComponent?: any;
|
|
@@ -84,7 +83,6 @@ export declare const typeReducer: <T>(key: keyof AuthState) => (state: AuthState
|
|
|
84
83
|
impersonateState?: import(".").ImpersonateState | undefined;
|
|
85
84
|
passkeysState?: import(".").PasskeysState | undefined;
|
|
86
85
|
customLoginState?: import(".").CustomLoginState | undefined;
|
|
87
|
-
entitlementsState?: import(".").EntitlementsState | undefined;
|
|
88
86
|
routes: import("./interfaces").AuthPageRoutes;
|
|
89
87
|
header?: any;
|
|
90
88
|
loaderComponent?: any;
|
|
@@ -134,7 +132,6 @@ export declare const typeReducerForKey: <T>(key: keyof AuthState) => {
|
|
|
134
132
|
impersonateState?: import(".").ImpersonateState | undefined;
|
|
135
133
|
passkeysState?: import(".").PasskeysState | undefined;
|
|
136
134
|
customLoginState?: import(".").CustomLoginState | undefined;
|
|
137
|
-
entitlementsState?: import(".").EntitlementsState | undefined;
|
|
138
135
|
routes: import("./interfaces").AuthPageRoutes;
|
|
139
136
|
header?: any;
|
|
140
137
|
loaderComponent?: any;
|
|
@@ -185,7 +182,6 @@ export declare const typeReducerNestedKey: <T, K>(key: keyof AuthState, nestedKe
|
|
|
185
182
|
impersonateState?: import(".").ImpersonateState | undefined;
|
|
186
183
|
passkeysState?: import(".").PasskeysState | undefined;
|
|
187
184
|
customLoginState?: import(".").CustomLoginState | undefined;
|
|
188
|
-
entitlementsState?: import(".").EntitlementsState | undefined;
|
|
189
185
|
routes: import("./interfaces").AuthPageRoutes;
|
|
190
186
|
header?: any;
|
|
191
187
|
loaderComponent?: any;
|
|
@@ -260,7 +256,6 @@ export declare const dialogStateForKey: <T, K>(key: keyof AuthState, dialogKey:
|
|
|
260
256
|
impersonateState?: import(".").ImpersonateState | undefined;
|
|
261
257
|
passkeysState?: import(".").PasskeysState | undefined;
|
|
262
258
|
customLoginState?: import(".").CustomLoginState | undefined;
|
|
263
|
-
entitlementsState?: import(".").EntitlementsState | undefined;
|
|
264
259
|
routes: import("./interfaces").AuthPageRoutes;
|
|
265
260
|
header?: any;
|
|
266
261
|
loaderComponent?: any;
|
|
@@ -304,7 +299,6 @@ export declare const dialogStateForKeyWithoutPayload: <T, K>(key: keyof AuthStat
|
|
|
304
299
|
impersonateState?: import(".").ImpersonateState | undefined;
|
|
305
300
|
passkeysState?: import(".").PasskeysState | undefined;
|
|
306
301
|
customLoginState?: import(".").CustomLoginState | undefined;
|
|
307
|
-
entitlementsState?: import(".").EntitlementsState | undefined;
|
|
308
302
|
routes: import("./interfaces").AuthPageRoutes;
|
|
309
303
|
header?: any;
|
|
310
304
|
loaderComponent?: any;
|
package/index.js
CHANGED
|
@@ -34,7 +34,6 @@ var _saga3 = require("../SecurityPolicyState/saga");
|
|
|
34
34
|
var _helpers2 = require("../PasskeysState/helpers");
|
|
35
35
|
var _utils2 = require("./utils");
|
|
36
36
|
var _accountSettings = require("@frontegg/rest-api/account-settings");
|
|
37
|
-
var _EntitlementsState = require("../EntitlementsState");
|
|
38
37
|
const _excluded = ["callback"],
|
|
39
38
|
_excluded2 = ["callback"],
|
|
40
39
|
_excluded3 = ["callback"],
|
|
@@ -59,7 +58,6 @@ const authStrategyLoginStepMap = {
|
|
|
59
58
|
[_restApi.AuthStrategyEnum.MagicLink]: _interfaces2.LoginStep.magicLinkPreLoginSuccess,
|
|
60
59
|
[_restApi.AuthStrategyEnum.SmsCode]: _interfaces2.LoginStep.loginWithSmsOtc
|
|
61
60
|
};
|
|
62
|
-
const ADMIN_PORTAL_ENTITLEMENTS_FF = 'admin_portal_entitlements';
|
|
63
61
|
function* afterAuthNavigation() {
|
|
64
62
|
const onRedirectTo = _restApi.ContextHolder.onRedirectTo;
|
|
65
63
|
const {
|
|
@@ -242,12 +240,6 @@ function* shouldNevigateToRegisterQuickLogin(user) {
|
|
|
242
240
|
const quickLoginToRegister = (_ref = localStorage.getItem('register-quick-login')) != null ? _ref : loginState.quickLoginToRegister;
|
|
243
241
|
return quickLoginToRegister && localStorage.getItem(`${user.id}-${quickLoginToRegister}`) !== 'true' && !window.location.pathname.endsWith(routes.logoutUrl);
|
|
244
242
|
}
|
|
245
|
-
function* handleLoadEntitlements() {
|
|
246
|
-
const [isEntitlementsFFOn] = yield (0, _effects.call)(_helpers.getFeatureFlags, [ADMIN_PORTAL_ENTITLEMENTS_FF]);
|
|
247
|
-
if (isEntitlementsFFOn) {
|
|
248
|
-
yield (0, _effects.call)(_EntitlementsState.loadEntitlements);
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
243
|
function* refreshToken() {
|
|
252
244
|
const {
|
|
253
245
|
hostedLoginBox
|
|
@@ -257,7 +249,6 @@ function* refreshToken() {
|
|
|
257
249
|
} else {
|
|
258
250
|
yield (0, _effects.call)(refreshTokenEmbedded);
|
|
259
251
|
}
|
|
260
|
-
yield handleLoadEntitlements();
|
|
261
252
|
}
|
|
262
253
|
function* refreshTokenForSocialLogins() {
|
|
263
254
|
const {
|
|
@@ -268,7 +259,6 @@ function* refreshTokenForSocialLogins() {
|
|
|
268
259
|
} else {
|
|
269
260
|
yield (0, _effects.call)(refreshTokenEmbeddedSocialLogins);
|
|
270
261
|
}
|
|
271
|
-
yield handleLoadEntitlements();
|
|
272
262
|
}
|
|
273
263
|
function* refreshTokenHosted() {
|
|
274
264
|
const {
|
package/node/auth/index.js
CHANGED
|
@@ -604,30 +604,6 @@ Object.keys(_interfaces23).forEach(function (key) {
|
|
|
604
604
|
}
|
|
605
605
|
});
|
|
606
606
|
});
|
|
607
|
-
var _EntitlementsState = require("./EntitlementsState");
|
|
608
|
-
Object.keys(_EntitlementsState).forEach(function (key) {
|
|
609
|
-
if (key === "default" || key === "__esModule") return;
|
|
610
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
611
|
-
if (key in exports && exports[key] === _EntitlementsState[key]) return;
|
|
612
|
-
Object.defineProperty(exports, key, {
|
|
613
|
-
enumerable: true,
|
|
614
|
-
get: function () {
|
|
615
|
-
return _EntitlementsState[key];
|
|
616
|
-
}
|
|
617
|
-
});
|
|
618
|
-
});
|
|
619
|
-
var _interfaces24 = require("./EntitlementsState/interfaces");
|
|
620
|
-
Object.keys(_interfaces24).forEach(function (key) {
|
|
621
|
-
if (key === "default" || key === "__esModule") return;
|
|
622
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
623
|
-
if (key in exports && exports[key] === _interfaces24[key]) return;
|
|
624
|
-
Object.defineProperty(exports, key, {
|
|
625
|
-
enumerable: true,
|
|
626
|
-
get: function () {
|
|
627
|
-
return _interfaces24[key];
|
|
628
|
-
}
|
|
629
|
-
});
|
|
630
|
-
});
|
|
631
607
|
var _PasskeysState = require("./PasskeysState");
|
|
632
608
|
Object.keys(_PasskeysState).forEach(function (key) {
|
|
633
609
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -640,15 +616,15 @@ Object.keys(_PasskeysState).forEach(function (key) {
|
|
|
640
616
|
}
|
|
641
617
|
});
|
|
642
618
|
});
|
|
643
|
-
var
|
|
644
|
-
Object.keys(
|
|
619
|
+
var _interfaces24 = require("./PasskeysState/interfaces");
|
|
620
|
+
Object.keys(_interfaces24).forEach(function (key) {
|
|
645
621
|
if (key === "default" || key === "__esModule") return;
|
|
646
622
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
647
|
-
if (key in exports && exports[key] ===
|
|
623
|
+
if (key in exports && exports[key] === _interfaces24[key]) return;
|
|
648
624
|
Object.defineProperty(exports, key, {
|
|
649
625
|
enumerable: true,
|
|
650
626
|
get: function () {
|
|
651
|
-
return
|
|
627
|
+
return _interfaces24[key];
|
|
652
628
|
}
|
|
653
629
|
});
|
|
654
630
|
});
|
|
@@ -664,15 +640,15 @@ Object.keys(_CustomLoginState).forEach(function (key) {
|
|
|
664
640
|
}
|
|
665
641
|
});
|
|
666
642
|
});
|
|
667
|
-
var
|
|
668
|
-
Object.keys(
|
|
643
|
+
var _interfaces25 = require("./CustomLoginState/interfaces");
|
|
644
|
+
Object.keys(_interfaces25).forEach(function (key) {
|
|
669
645
|
if (key === "default" || key === "__esModule") return;
|
|
670
646
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
671
|
-
if (key in exports && exports[key] ===
|
|
647
|
+
if (key in exports && exports[key] === _interfaces25[key]) return;
|
|
672
648
|
Object.defineProperty(exports, key, {
|
|
673
649
|
enumerable: true,
|
|
674
650
|
get: function () {
|
|
675
|
-
return
|
|
651
|
+
return _interfaces25[key];
|
|
676
652
|
}
|
|
677
653
|
});
|
|
678
654
|
});
|
|
@@ -30,7 +30,6 @@ var _PasskeysState = require("./PasskeysState");
|
|
|
30
30
|
var _GroupsState = require("./GroupsState");
|
|
31
31
|
var _groupsDialogsState = require("./GroupsState/groupsDialogsState");
|
|
32
32
|
var _CustomLoginState = require("./CustomLoginState");
|
|
33
|
-
var _EntitlementsState = require("./EntitlementsState");
|
|
34
33
|
const reinitializeState = {
|
|
35
34
|
isAuthenticated: false,
|
|
36
35
|
isLoading: true,
|
|
@@ -59,8 +58,7 @@ const reinitializeState = {
|
|
|
59
58
|
sessionsPolicyState: _SessionsPolicyState.sessionsPolicyState,
|
|
60
59
|
restrictionsState: _RestrictionsState.restrictionsState,
|
|
61
60
|
provisioningState: _Provisioning.provisioningState,
|
|
62
|
-
passkeysState: _PasskeysState.passkeysState
|
|
63
|
-
entitlementsState: _EntitlementsState.entitlementsState
|
|
61
|
+
passkeysState: _PasskeysState.passkeysState
|
|
64
62
|
};
|
|
65
63
|
exports.reinitializeState = reinitializeState;
|
|
66
64
|
const initialState = (0, _extends2.default)({
|
package/node/auth/reducer.js
CHANGED
|
@@ -35,7 +35,6 @@ var _PasskeysState = require("./PasskeysState");
|
|
|
35
35
|
var _GroupsState = require("./GroupsState");
|
|
36
36
|
var _groupsDialogsState = require("./GroupsState/groupsDialogsState");
|
|
37
37
|
var _CustomLoginState = require("./CustomLoginState");
|
|
38
|
-
var _EntitlementsState = require("./EntitlementsState");
|
|
39
38
|
const {
|
|
40
39
|
reducer,
|
|
41
40
|
actions: sliceActions
|
|
@@ -48,8 +47,8 @@ const {
|
|
|
48
47
|
payload
|
|
49
48
|
}) => (0, _extends2.default)({}, state, payload),
|
|
50
49
|
setUser: (0, _utils.typeReducer)('user')
|
|
51
|
-
}, _LoginState.loginReducers, _SocialLogins.socialLoginsReducer, _ActivateState.activateAccountReducers, _ImpersonationState.impersonateReducers, _AcceptInvitationState.acceptInvitationReducers, _ForgotPasswordState.forgotPasswordReducers, _ResetPhoneNumberState.resetPhoneNumberReducers, _SignUp.signUpReducers, _ProfileState.profileReducers, _CustomLoginState.customLoginReducers, _SSOState.ssoReducers, _MfaState.mfaReducers, _TeamState.teamReducers, _GroupsState.groupsReducers, _groupsDialogsState.groupsDialogsReducers, _ApiTokensState.apiTokensReducers, _SecurityPolicyState.securityPolicyReducers, _AccountSettingsState.accountSettingsReducers, _TenantsState.tenantsReducers, _RolesState.rolesReducers, _SessionsState.sessionsReducers, _SessionsPolicyState.sessionsPolicyReducers, _RestrictionsState.restrictionsReducers, _Provisioning.provisioningReducers, _PasskeysState.passkeysReducers
|
|
50
|
+
}, _LoginState.loginReducers, _SocialLogins.socialLoginsReducer, _ActivateState.activateAccountReducers, _ImpersonationState.impersonateReducers, _AcceptInvitationState.acceptInvitationReducers, _ForgotPasswordState.forgotPasswordReducers, _ResetPhoneNumberState.resetPhoneNumberReducers, _SignUp.signUpReducers, _ProfileState.profileReducers, _CustomLoginState.customLoginReducers, _SSOState.ssoReducers, _MfaState.mfaReducers, _TeamState.teamReducers, _GroupsState.groupsReducers, _groupsDialogsState.groupsDialogsReducers, _ApiTokensState.apiTokensReducers, _SecurityPolicyState.securityPolicyReducers, _AccountSettingsState.accountSettingsReducers, _TenantsState.tenantsReducers, _RolesState.rolesReducers, _SessionsState.sessionsReducers, _SessionsPolicyState.sessionsPolicyReducers, _RestrictionsState.restrictionsReducers, _Provisioning.provisioningReducers, _PasskeysState.passkeysReducers)
|
|
52
51
|
});
|
|
53
52
|
exports.reducer = reducer;
|
|
54
|
-
const actions = (0, _extends2.default)({}, sliceActions, _LoginState.loginActions, _SocialLogins.socialLoginsActions, _ActivateState.activateAccountActions, _AcceptInvitationState.acceptInvitationActions, _ForgotPasswordState.forgotPasswordActions, _ResetPhoneNumberState.resetPhoneNumberActions, _SignUp.signUpActions, _ProfileState.profileActions, _CustomLoginState.customLoginActions, _SSOState.ssoActions, _MfaState.mfaActions, _TeamState.teamActions, _GroupsState.groupsActions, _groupsDialogsState.groupsDialogsActions, _ApiTokensState.apiTokensActions, _SecurityPolicyState.securityPolicyActions, _AccountSettingsState.accountSettingsActions, _TenantsState.tenantsActions, _RolesState.rolesActions, _SessionsState.sessionsActions, _SessionsPolicyState.sessionsPolicyActions, _RestrictionsState.restrictionsActions, _Provisioning.provisioningActions,
|
|
53
|
+
const actions = (0, _extends2.default)({}, sliceActions, _LoginState.loginActions, _SocialLogins.socialLoginsActions, _ActivateState.activateAccountActions, _AcceptInvitationState.acceptInvitationActions, _ForgotPasswordState.forgotPasswordActions, _ResetPhoneNumberState.resetPhoneNumberActions, _SignUp.signUpActions, _ProfileState.profileActions, _CustomLoginState.customLoginActions, _SSOState.ssoActions, _MfaState.mfaActions, _TeamState.teamActions, _GroupsState.groupsActions, _groupsDialogsState.groupsDialogsActions, _ApiTokensState.apiTokensActions, _SecurityPolicyState.securityPolicyActions, _AccountSettingsState.accountSettingsActions, _TenantsState.tenantsActions, _RolesState.rolesActions, _SessionsState.sessionsActions, _SessionsPolicyState.sessionsPolicyActions, _RestrictionsState.restrictionsActions, _Provisioning.provisioningActions, _ImpersonationState.impersonateActions, _PasskeysState.passkeysActions);
|
|
55
54
|
exports.actions = actions;
|
package/node/auth/saga.js
CHANGED
|
@@ -27,13 +27,12 @@ var _saga18 = require("./SessionsState/saga");
|
|
|
27
27
|
var _saga19 = require("./SessionsPolicyState/saga");
|
|
28
28
|
var _saga20 = require("./RestrictionsState/saga");
|
|
29
29
|
var _saga21 = require("./Provisioning/saga");
|
|
30
|
-
var _saga22 = require("./
|
|
31
|
-
var _saga23 = require("./
|
|
32
|
-
var _saga24 = require("./
|
|
33
|
-
var _saga25 = require("./
|
|
34
|
-
var _saga26 = require("./CustomLoginState/saga");
|
|
30
|
+
var _saga22 = require("./ImpersonationState/saga");
|
|
31
|
+
var _saga23 = require("./PasskeysState/saga");
|
|
32
|
+
var _saga24 = require("./GroupsState/saga");
|
|
33
|
+
var _saga25 = require("./CustomLoginState/saga");
|
|
35
34
|
function* sagas() {
|
|
36
|
-
yield (0, _effects.all)([(0, _effects.call)(_saga8.loginSagas), (0, _effects.call)(_saga6.activateSagas), (0, _effects.call)(_saga7.acceptInvitationSagas), (0, _effects.call)(_saga5.forgotPasswordSagas), (0, _effects.call)(_saga17.resetPhoneNumberSagas), (0, _effects.call)(_saga.ssoSagas), (0, _effects.call)(_saga2.ssoSagas), (0, _effects.call)(_saga3.profileSagas), (0, _effects.call)(
|
|
35
|
+
yield (0, _effects.all)([(0, _effects.call)(_saga8.loginSagas), (0, _effects.call)(_saga6.activateSagas), (0, _effects.call)(_saga7.acceptInvitationSagas), (0, _effects.call)(_saga5.forgotPasswordSagas), (0, _effects.call)(_saga17.resetPhoneNumberSagas), (0, _effects.call)(_saga.ssoSagas), (0, _effects.call)(_saga2.ssoSagas), (0, _effects.call)(_saga3.profileSagas), (0, _effects.call)(_saga25.customLoginSagas), (0, _effects.call)(_saga4.mfaSagas), (0, _effects.call)(_saga9.teamSagas), (0, _effects.call)(_saga24.groupsSagas), (0, _effects.call)(_saga10.socialLoginsSaga), (0, _effects.call)(_saga11.signUpSaga), (0, _effects.call)(_saga12.apiTokensSaga), (0, _effects.call)(_saga13.securityPolicySagas), (0, _effects.call)(_saga14.accountSettingsSaga), (0, _effects.call)(_saga15.tenantsSagas), (0, _effects.call)(_saga16.rolesSagas), (0, _effects.call)(_saga18.sessionsSaga), (0, _effects.call)(_saga19.sessionsPolicySaga), (0, _effects.call)(_saga20.restrictionsSagas), (0, _effects.call)(_saga21.provisionSagas), (0, _effects.call)(_saga22.impersonateSagas), (0, _effects.call)(_saga23.passkeysSagas)]);
|
|
37
36
|
}
|
|
38
37
|
function* mockSagas() {
|
|
39
38
|
yield (0, _effects.all)([(0, _effects.call)(_saga8.loginSagasMock),
|
|
@@ -42,5 +41,5 @@ function* mockSagas() {
|
|
|
42
41
|
// call(forgotPasswordSagas),
|
|
43
42
|
// call(socialLoginsSaga),
|
|
44
43
|
// call(signUpSaga),
|
|
45
|
-
(0, _effects.call)(_saga.ssoSagasMock), (0, _effects.call)(_saga3.profileSagasMock), (0, _effects.call)(_saga4.mfaSagasMock), (0, _effects.call)(_saga9.teamSagasMock), (0, _effects.call)(_saga12.apiTokensSagaMock), (0, _effects.call)(_saga13.securityPolicySagasMock), (0, _effects.call)(_saga18.sessionsSagaMock), (0, _effects.call)(_saga14.accountSettingsSagaMock), (0, _effects.call)(_saga15.tenantsSagasMock), (0, _effects.call)(_saga19.sessionsPolicySagaMock), (0, _effects.call)(_saga20.restrictionsSagaMock), (0, _effects.call)(_saga16.rolesSagasMock), (0, _effects.call)(
|
|
44
|
+
(0, _effects.call)(_saga.ssoSagasMock), (0, _effects.call)(_saga3.profileSagasMock), (0, _effects.call)(_saga4.mfaSagasMock), (0, _effects.call)(_saga9.teamSagasMock), (0, _effects.call)(_saga12.apiTokensSagaMock), (0, _effects.call)(_saga13.securityPolicySagasMock), (0, _effects.call)(_saga18.sessionsSagaMock), (0, _effects.call)(_saga14.accountSettingsSagaMock), (0, _effects.call)(_saga15.tenantsSagasMock), (0, _effects.call)(_saga19.sessionsPolicySagaMock), (0, _effects.call)(_saga20.restrictionsSagaMock), (0, _effects.call)(_saga16.rolesSagasMock), (0, _effects.call)(_saga24.groupsSagasMock)]);
|
|
46
45
|
}
|
package/node/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontegg/redux-store",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.102.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
|
-
"@frontegg/rest-api": "^3.0.
|
|
9
|
+
"@frontegg/rest-api": "^3.0.109",
|
|
10
10
|
"@reduxjs/toolkit": "1.8.5",
|
|
11
11
|
"redux-saga": "^1.2.1",
|
|
12
12
|
"uuid": "^8.3.2"
|
package/toolkit/index.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export interface RootState {
|
|
|
17
17
|
previewMode?: boolean;
|
|
18
18
|
appName: string;
|
|
19
19
|
}
|
|
20
|
-
export declare const createFronteggStore: (rootInitialState: InitialState, storeHolder?: any, previewMode?: boolean, authInitialState?: (Partial<Pick<AuthState, "user" | "error" | "onRedirectTo" | "isAuthenticated" | "userIp" | "isLoading" | "keepSessionAlive" | "isSSOAuth" | "ssoACS" | "includeQueryParam" | "loginState" | "activateState" | "acceptInvitationState" | "forgotPasswordState" | "resetPhoneNumberState" | "ssoState" | "profileState" | "mfaState" | "teamState" | "groupsState" | "groupsDialogsState" | "socialLoginState" | "signUpState" | "apiTokensState" | "securityPolicyState" | "restrictionsState" | "provisioningState" | "accountSettingsState" | "tenantsState" | "rolesState" | "sessionsState" | "hostedLoginBox" | "disableSilentRefresh" | "sessionsPolicyState" | "impersonateState" | "passkeysState" | "customLoginState" | "
|
|
20
|
+
export declare const createFronteggStore: (rootInitialState: InitialState, storeHolder?: any, previewMode?: boolean, authInitialState?: (Partial<Pick<AuthState, "user" | "error" | "onRedirectTo" | "isAuthenticated" | "userIp" | "isLoading" | "keepSessionAlive" | "isSSOAuth" | "ssoACS" | "includeQueryParam" | "loginState" | "activateState" | "acceptInvitationState" | "forgotPasswordState" | "resetPhoneNumberState" | "ssoState" | "profileState" | "mfaState" | "teamState" | "groupsState" | "groupsDialogsState" | "socialLoginState" | "signUpState" | "apiTokensState" | "securityPolicyState" | "restrictionsState" | "provisioningState" | "accountSettingsState" | "tenantsState" | "rolesState" | "sessionsState" | "hostedLoginBox" | "disableSilentRefresh" | "sessionsPolicyState" | "impersonateState" | "passkeysState" | "customLoginState" | "header" | "loaderComponent">> & {
|
|
21
21
|
routes?: Partial<AuthPageRoutes> | undefined;
|
|
22
22
|
}) | undefined, overrideInitialState?: Partial<{
|
|
23
23
|
auth: Partial<Omit<AuthState, 'routes'>> & {
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { EntitlementsState } from './interfaces';
|
|
2
|
-
declare const entitlementsState: EntitlementsState;
|
|
3
|
-
declare const reducers: {
|
|
4
|
-
setEntitlementsState: {
|
|
5
|
-
prepare: (payload: Partial<EntitlementsState>) => {
|
|
6
|
-
payload: Partial<EntitlementsState>;
|
|
7
|
-
};
|
|
8
|
-
reducer: (state: import("..").AuthState, { payload }: {
|
|
9
|
-
payload: Partial<EntitlementsState>;
|
|
10
|
-
type: string;
|
|
11
|
-
}) => {
|
|
12
|
-
onRedirectTo: (path: string, opts?: import("@frontegg/rest-api").RedirectOptions | undefined) => void;
|
|
13
|
-
error?: any;
|
|
14
|
-
isAuthenticated: boolean;
|
|
15
|
-
userIp?: string | undefined;
|
|
16
|
-
isLoading: boolean;
|
|
17
|
-
keepSessionAlive?: boolean | undefined;
|
|
18
|
-
user?: import("..").User | null | undefined;
|
|
19
|
-
isSSOAuth: boolean;
|
|
20
|
-
ssoACS?: string | undefined;
|
|
21
|
-
includeQueryParam?: boolean | undefined;
|
|
22
|
-
loginState: import("..").LoginState;
|
|
23
|
-
activateState: import("..").ActivateAccountState;
|
|
24
|
-
acceptInvitationState: import("..").AcceptInvitationState;
|
|
25
|
-
forgotPasswordState: import("..").ForgotPasswordState;
|
|
26
|
-
resetPhoneNumberState: import("..").ResetPhoneNumberState;
|
|
27
|
-
ssoState: import("..").SSOState;
|
|
28
|
-
profileState: import("..").ProfileState;
|
|
29
|
-
mfaState: import("..").MFAState;
|
|
30
|
-
teamState: import("..").TeamState;
|
|
31
|
-
groupsState: import("..").GroupsState;
|
|
32
|
-
groupsDialogsState: import("..").GroupsDialogsState;
|
|
33
|
-
socialLoginState: import("..").SocialLoginState;
|
|
34
|
-
signUpState: import("..").SignUpState;
|
|
35
|
-
apiTokensState: import("..").ApiTokensState;
|
|
36
|
-
securityPolicyState: import("..").SecurityPolicyState;
|
|
37
|
-
restrictionsState: import("..").RestrictionsState;
|
|
38
|
-
provisioningState: import("..").ProvisioningState;
|
|
39
|
-
accountSettingsState: import("..").AccountSettingsState;
|
|
40
|
-
tenantsState: import("..").TenantsState;
|
|
41
|
-
rolesState: import("..").RolesState;
|
|
42
|
-
sessionsState: import("..").SessionsState;
|
|
43
|
-
hostedLoginBox?: boolean | undefined;
|
|
44
|
-
disableSilentRefresh?: boolean | undefined;
|
|
45
|
-
sessionsPolicyState: import("..").SessionsPolicyState;
|
|
46
|
-
impersonateState?: import("..").ImpersonateState | undefined;
|
|
47
|
-
passkeysState?: import("..").PasskeysState | undefined;
|
|
48
|
-
customLoginState?: import("..").CustomLoginState | undefined;
|
|
49
|
-
entitlementsState?: EntitlementsState | undefined;
|
|
50
|
-
routes: import("..").AuthPageRoutes;
|
|
51
|
-
header?: any;
|
|
52
|
-
loaderComponent?: any;
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
declare const actions: {
|
|
57
|
-
loadEntitlements: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
58
|
-
};
|
|
59
|
-
/**
|
|
60
|
-
* To be used for actions types after dispatch, and should contains
|
|
61
|
-
* the reducers and actions as standalone function
|
|
62
|
-
*/
|
|
63
|
-
declare type DispatchedActions = {
|
|
64
|
-
setEntitlementsState: (state: Partial<EntitlementsState>) => void;
|
|
65
|
-
loadEntitlements: () => void;
|
|
66
|
-
};
|
|
67
|
-
export declare type EntitlementsActions = DispatchedActions;
|
|
68
|
-
export { entitlementsState, reducers as entitlementsReducers, actions as entitlementsActions };
|
|
69
|
-
export { loadEntitlements } from './saga';
|
|
70
|
-
export * from './utils';
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { createAction } from '@reduxjs/toolkit';
|
|
2
|
-
import { typeReducerForKey } from '../utils';
|
|
3
|
-
import { authStoreName } from '../../constants';
|
|
4
|
-
const entitlementsState = {
|
|
5
|
-
entitlements: undefined,
|
|
6
|
-
loading: false,
|
|
7
|
-
error: undefined
|
|
8
|
-
};
|
|
9
|
-
const reducers = {
|
|
10
|
-
setEntitlementsState: typeReducerForKey('entitlementsState')
|
|
11
|
-
};
|
|
12
|
-
const actions = {
|
|
13
|
-
loadEntitlements: createAction(`${authStoreName}/loadEntitlements`)
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* To be used for actions types after dispatch, and should contains
|
|
18
|
-
* the reducers and actions as standalone function
|
|
19
|
-
*/
|
|
20
|
-
|
|
21
|
-
// noinspection JSUnusedLocalSymbols
|
|
22
|
-
/**
|
|
23
|
-
* if you see error in matcher that's mean the DispatchAction does not
|
|
24
|
-
* contains the same functions in reducers and actions
|
|
25
|
-
*/
|
|
26
|
-
const Matcher = {};
|
|
27
|
-
export { entitlementsState, reducers as entitlementsReducers, actions as entitlementsActions };
|
|
28
|
-
export { loadEntitlements } from './saga';
|
|
29
|
-
export * from './utils';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { WithStatus } from '../../interfaces';
|
|
2
|
-
import { EntitlementsResponse } from '@frontegg/rest-api';
|
|
3
|
-
export declare type EntitlementsState = WithStatus & {
|
|
4
|
-
entitlements: EntitlementsResponse | undefined;
|
|
5
|
-
};
|
|
6
|
-
export interface Entitlement {
|
|
7
|
-
isEntitled: boolean;
|
|
8
|
-
}
|
|
9
|
-
export declare type Entitlements = Entitlement[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { EntitlementsResponse } from '@frontegg/rest-api';
|
|
2
|
-
/**
|
|
3
|
-
Load entitlements list
|
|
4
|
-
*/
|
|
5
|
-
export declare function loadEntitlements(): Generator<import("redux-saga/effects").PutEffect<{
|
|
6
|
-
payload: Partial<import("./interfaces").EntitlementsState>;
|
|
7
|
-
type: string;
|
|
8
|
-
}> | import("redux-saga/effects").CallEffect<EntitlementsResponse>, void, EntitlementsResponse>;
|
|
9
|
-
export declare function entitlementsSagas(): Generator<import("redux-saga/effects").ForkEffect<never>, void, unknown>;
|