@frontegg/redux-store 5.10.0 → 5.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/auth/ActivateState/index.d.ts +2 -2
- package/auth/ApiTokensState/interfaces.d.ts +2 -1
- package/auth/LoginState/index.d.ts +4 -4
- package/auth/LoginState/saga.d.ts +4 -17
- package/auth/SignUp/saga.d.ts +6 -1
- package/auth/index.d.ts +3 -3
- package/auth/index.js +218 -213
- package/auth/reducer.d.ts +3 -3
- package/connectivity/index.js +2 -1
- package/node/auth/index.js +217 -212
- package/node/connectivity/index.js +2 -1
- package/node/subscriptions/index.js +1 -1
- package/package.json +2 -2
- package/subscriptions/index.js +1 -1
|
@@ -105,7 +105,7 @@ declare const reducers: {
|
|
|
105
105
|
};
|
|
106
106
|
};
|
|
107
107
|
declare const actions: {
|
|
108
|
-
activateAccount: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[IActivateAccount], IActivateAccount, string, never, never>;
|
|
108
|
+
activateAccount: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<IActivateAccount, boolean>], WithCallback<IActivateAccount, boolean>, string, never, never>;
|
|
109
109
|
getActivateAccountStrategy: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<IGetActivateAccountStrategy, IGetActivateAccountStrategyResponse>], WithCallback<IGetActivateAccountStrategy, IGetActivateAccountStrategyResponse>, string, never, never>;
|
|
110
110
|
resendActivationEmail: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[IResendActivationEmail], IResendActivationEmail, string, never, never>;
|
|
111
111
|
};
|
|
@@ -117,7 +117,7 @@ declare type DispatchedActions = {
|
|
|
117
117
|
setActivateState: (state: Partial<ActivateAccountState>) => void;
|
|
118
118
|
resetActivateState: () => void;
|
|
119
119
|
setActivateStrategyState: (state: Partial<ActivateAccountStrategyState>) => void;
|
|
120
|
-
activateAccount: (payload: IActivateAccount) => void;
|
|
120
|
+
activateAccount: (payload: WithCallback<IActivateAccount>) => void;
|
|
121
121
|
resendActivationEmail: (payload: IResendActivationEmail) => void;
|
|
122
122
|
getActivateAccountStrategy: (payload: WithCallback<IGetActivateAccountStrategy, IGetActivateAccountStrategyResponse>) => void;
|
|
123
123
|
};
|
|
@@ -26,8 +26,9 @@ export declare type createdByUserIdColumn = 'show' | 'hide' | undefined;
|
|
|
26
26
|
export interface IApiTokensData {
|
|
27
27
|
clientId: string;
|
|
28
28
|
createdAt: string;
|
|
29
|
-
secret
|
|
29
|
+
secret?: string;
|
|
30
30
|
description: string;
|
|
31
|
+
metadata?: {};
|
|
31
32
|
}
|
|
32
33
|
export declare type IUserApiTokensData = IApiTokensData;
|
|
33
34
|
export interface ITenantApiTokensData extends IApiTokensData {
|
|
@@ -82,7 +82,7 @@ declare const actions: {
|
|
|
82
82
|
invitationToken?: string | undefined;
|
|
83
83
|
}, void>, string, never, never>;
|
|
84
84
|
postLogin: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[IPostLogin], IPostLogin, string, never, never>;
|
|
85
|
-
login: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[ILogin], ILogin, string, never, never>;
|
|
85
|
+
login: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<ILogin, boolean>], WithCallback<ILogin, boolean>, string, never, never>;
|
|
86
86
|
loginWithMfa: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<ILoginWithMfa, boolean>], WithCallback<ILoginWithMfa, boolean>, string, never, never>;
|
|
87
87
|
recoverMfa: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[IRecoverMFAToken], IRecoverMFAToken, string, never, never>;
|
|
88
88
|
logout: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[((() => void) | undefined)?], (() => void) | undefined, string, never, never>;
|
|
@@ -93,7 +93,7 @@ declare const actions: {
|
|
|
93
93
|
mfaToken: string;
|
|
94
94
|
}, string, never, never>;
|
|
95
95
|
passwordlessPreLogin: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<IPasswordlessPreLogin, void>], WithCallback<IPasswordlessPreLogin, void>, string, never, never>;
|
|
96
|
-
passwordlessPostLogin: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[IPasswordlessPostLogin], IPasswordlessPostLogin, string, never, never>;
|
|
96
|
+
passwordlessPostLogin: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<IPasswordlessPostLogin, boolean>], WithCallback<IPasswordlessPostLogin, boolean>, string, never, never>;
|
|
97
97
|
verifyInviteToken: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[IVerifyInviteToken], IVerifyInviteToken, string, never, never>;
|
|
98
98
|
};
|
|
99
99
|
/**
|
|
@@ -112,7 +112,7 @@ declare type DispatchedActions = {
|
|
|
112
112
|
invitationToken?: string;
|
|
113
113
|
}, void>) => void;
|
|
114
114
|
postLogin: (payload: IPostLogin) => void;
|
|
115
|
-
login: (payload: ILogin) => void;
|
|
115
|
+
login: (payload: WithCallback<ILogin>) => void;
|
|
116
116
|
loginWithMfa: (payload: WithCallback<ILoginWithMfa>) => void;
|
|
117
117
|
recoverMfa: (payload: IRecoverMFAToken) => void;
|
|
118
118
|
logout: (payload?: () => void) => void;
|
|
@@ -121,7 +121,7 @@ declare type DispatchedActions = {
|
|
|
121
121
|
mfaToken: string;
|
|
122
122
|
}) => void;
|
|
123
123
|
passwordlessPreLogin: (payload: IPasswordlessPreLogin) => void;
|
|
124
|
-
passwordlessPostLogin: (payload: IPasswordlessPostLogin) => void;
|
|
124
|
+
passwordlessPostLogin: (payload: WithCallback<IPasswordlessPostLogin>) => void;
|
|
125
125
|
verifyInviteToken: (payload: IVerifyInviteToken) => void;
|
|
126
126
|
};
|
|
127
127
|
export declare type LoginActions = DispatchedActions;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CallEffect } from 'redux-saga/effects';
|
|
2
|
-
import { IAllowedToRememberMfaDevice, ILoginResponse, ISamlMetadata } from '@frontegg/rest-api';
|
|
2
|
+
import { IAllowedToRememberMfaDevice, ILoginResponse, ILoginResponseV2, ISamlMetadata } from '@frontegg/rest-api';
|
|
3
3
|
import { AuthState } from '../interfaces';
|
|
4
4
|
import { LoginStep } from './interfaces';
|
|
5
5
|
export declare function afterAuthNavigation(): Generator<import("redux-saga/effects").SelectEffect | CallEffect<true>, void, {
|
|
@@ -70,22 +70,9 @@ export declare function refreshToken(): Generator<import("redux-saga/effects").S
|
|
|
70
70
|
}, AuthState & {
|
|
71
71
|
isAllowedToRemember: any;
|
|
72
72
|
mfaDeviceExpiration: any;
|
|
73
|
-
}> | CallEffect<
|
|
74
|
-
payload:
|
|
75
|
-
callback?: ((data: import("@frontegg/rest-api").ITenantsResponse[] | null, error?: string | undefined) => void) | undefined;
|
|
76
|
-
} | undefined;
|
|
73
|
+
}> | CallEffect<ILoginResponseV2> | import("redux-saga/effects").PutEffect<{
|
|
74
|
+
payload: Partial<import("../..").TenantsState>;
|
|
77
75
|
type: string;
|
|
78
|
-
}>, void, AuthState &
|
|
79
|
-
mfaRequired: boolean;
|
|
80
|
-
accessToken: string;
|
|
81
|
-
refreshToken: string;
|
|
82
|
-
expires: string;
|
|
83
|
-
expiresIn: number;
|
|
84
|
-
mfaToken?: string | undefined;
|
|
85
|
-
qrCode?: string | undefined;
|
|
86
|
-
recoveryCode?: string | undefined;
|
|
87
|
-
emailVerified?: boolean | undefined;
|
|
88
|
-
redirectLocation?: string | undefined;
|
|
89
|
-
} & Partial<AuthState>>;
|
|
76
|
+
}>, void, AuthState & ILoginResponseV2 & Partial<AuthState>>;
|
|
90
77
|
export declare function loginSagas(): Generator<import("redux-saga/effects").ForkEffect<never>, void, unknown>;
|
|
91
78
|
export declare function loginSagasMock(): Generator<import("redux-saga/effects").ForkEffect<never>, void, unknown>;
|
package/auth/SignUp/saga.d.ts
CHANGED
|
@@ -3,7 +3,12 @@ import { ISignUpUser, IVendorConfig } from '@frontegg/rest-api';
|
|
|
3
3
|
export declare function loadAllowSignUps(): Generator<import("redux-saga/effects").PutEffect<{
|
|
4
4
|
payload: Partial<import("./interfaces").SignUpState>;
|
|
5
5
|
type: string;
|
|
6
|
-
}> | import("redux-saga/effects").CallEffect<IVendorConfig
|
|
6
|
+
}> | import("redux-saga/effects").CallEffect<IVendorConfig> | import("redux-saga/effects").PutEffect<{
|
|
7
|
+
payload: Partial<import("../../interfaces").WithStatus & {
|
|
8
|
+
policy?: IVendorConfig | undefined;
|
|
9
|
+
}>;
|
|
10
|
+
type: string;
|
|
11
|
+
}>, void, IVendorConfig>;
|
|
7
12
|
export declare function signUpUser({ payload }: PayloadAction<ISignUpUser>): Generator<import("redux-saga/effects").PutEffect<{
|
|
8
13
|
payload: Partial<import("./interfaces").SignUpState>;
|
|
9
14
|
type: string;
|
package/auth/index.d.ts
CHANGED
|
@@ -222,7 +222,7 @@ declare const _default: {
|
|
|
222
222
|
resetPassword: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithCallback<import("@frontegg/rest-api").IResetPassword, boolean>], import("../interfaces").WithCallback<import("@frontegg/rest-api").IResetPassword, boolean>, string, never, never>;
|
|
223
223
|
loadPasswordConfig: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[(import("@frontegg/rest-api").IGetUserPasswordConfig | undefined)?], import("@frontegg/rest-api").IGetUserPasswordConfig | undefined, string, never, never>;
|
|
224
224
|
acceptInvitation: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("@frontegg/rest-api").IAcceptInvitation], import("@frontegg/rest-api").IAcceptInvitation, string, never, never>;
|
|
225
|
-
activateAccount: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("@frontegg/rest-api").IActivateAccount], import("@frontegg/rest-api").IActivateAccount, string, never, never>;
|
|
225
|
+
activateAccount: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithCallback<import("@frontegg/rest-api").IActivateAccount, boolean>], import("../interfaces").WithCallback<import("@frontegg/rest-api").IActivateAccount, boolean>, string, never, never>;
|
|
226
226
|
getActivateAccountStrategy: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithCallback<import("@frontegg/rest-api").IGetActivateAccountStrategy, import("@frontegg/rest-api").IGetActivateAccountStrategyResponse>], import("../interfaces").WithCallback<import("@frontegg/rest-api").IGetActivateAccountStrategy, import("@frontegg/rest-api").IGetActivateAccountStrategyResponse>, string, never, never>;
|
|
227
227
|
resendActivationEmail: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("@frontegg/rest-api").IResendActivationEmail], import("@frontegg/rest-api").IResendActivationEmail, string, never, never>;
|
|
228
228
|
loadSocialLoginsConfiguration: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
@@ -241,7 +241,7 @@ declare const _default: {
|
|
|
241
241
|
invitationToken?: string | undefined;
|
|
242
242
|
}, void>, string, never, never>;
|
|
243
243
|
postLogin: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("@frontegg/rest-api").IPostLogin], import("@frontegg/rest-api").IPostLogin, string, never, never>;
|
|
244
|
-
login: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("@frontegg/rest-api").ILogin], import("@frontegg/rest-api").ILogin, string, never, never>;
|
|
244
|
+
login: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithCallback<import("@frontegg/rest-api").ILogin, boolean>], import("../interfaces").WithCallback<import("@frontegg/rest-api").ILogin, boolean>, string, never, never>;
|
|
245
245
|
loginWithMfa: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithCallback<import("@frontegg/rest-api").ILoginWithMfa, boolean>], import("../interfaces").WithCallback<import("@frontegg/rest-api").ILoginWithMfa, boolean>, string, never, never>;
|
|
246
246
|
recoverMfa: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("@frontegg/rest-api").IRecoverMFAToken], import("@frontegg/rest-api").IRecoverMFAToken, string, never, never>;
|
|
247
247
|
logout: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[((() => void) | undefined)?], (() => void) | undefined, string, never, never>;
|
|
@@ -252,7 +252,7 @@ declare const _default: {
|
|
|
252
252
|
mfaToken: string;
|
|
253
253
|
}, string, never, never>;
|
|
254
254
|
passwordlessPreLogin: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithCallback<import("@frontegg/rest-api").IPasswordlessPreLogin, void>], import("../interfaces").WithCallback<import("@frontegg/rest-api").IPasswordlessPreLogin, void>, string, never, never>;
|
|
255
|
-
passwordlessPostLogin: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("@frontegg/rest-api").IPasswordlessPostLogin], import("@frontegg/rest-api").IPasswordlessPostLogin, string, never, never>;
|
|
255
|
+
passwordlessPostLogin: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithCallback<import("@frontegg/rest-api").IPasswordlessPostLogin, boolean>], import("../interfaces").WithCallback<import("@frontegg/rest-api").IPasswordlessPostLogin, boolean>, string, never, never>;
|
|
256
256
|
verifyInviteToken: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("@frontegg/rest-api").IVerifyInviteToken], import("@frontegg/rest-api").IVerifyInviteToken, string, never, never>;
|
|
257
257
|
setRolesState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[Partial<import("./RolesState/interfaces").RolesState>], Partial<import("./RolesState/interfaces").RolesState>, string, never, never>;
|
|
258
258
|
resetRolesState: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|