@frontegg/redux-store 5.21.0 → 5.24.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 +2 -0
- package/auth/AccountSettingsState/index.d.ts +10 -0
- package/auth/ActivateState/index.d.ts +3 -0
- package/auth/ApiTokensState/index.d.ts +2 -0
- package/auth/ForgotPasswordState/index.d.ts +2 -0
- package/auth/LoginState/index.d.ts +2 -0
- package/auth/LoginState/interfaces.d.ts +2 -0
- package/auth/LoginState/saga.d.ts +2 -0
- package/auth/MfaState/index.d.ts +6 -6
- package/auth/ProfileState/index.d.ts +2 -0
- package/auth/ResetPhoneNumberState/index.d.ts +96 -0
- package/auth/ResetPhoneNumberState/interfaces.d.ts +18 -0
- package/auth/ResetPhoneNumberState/saga.d.ts +17 -0
- package/auth/RolesState/index.d.ts +2 -0
- package/auth/SSOState/index.d.ts +2 -0
- package/auth/SecurityPolicyState/index.d.ts +9 -0
- package/auth/SignUp/index.d.ts +2 -0
- package/auth/SocialLogins/index.d.ts +2 -8
- package/auth/TeamState/index.d.ts +2 -0
- package/auth/TenantsState/index.d.ts +2 -8
- package/auth/index.d.ts +13 -0
- package/auth/index.js +105 -15
- package/auth/interfaces.d.ts +15 -1
- package/auth/reducer.d.ts +13 -1
- package/auth/utils.d.ts +4 -0
- package/index.js +2 -2
- package/node/auth/index.js +115 -22
- package/node/index.js +15 -0
- package/node/subscriptions/index.js +187 -151
- package/package.json +2 -2
- package/subscriptions/ManagedSubscriptions/index.d.ts +10 -0
- package/subscriptions/ManagedSubscriptions/interfaces.d.ts +28 -0
- package/subscriptions/ManagedSubscriptions/saga.d.ts +1 -0
- package/subscriptions/index.d.ts +7 -0
- package/subscriptions/index.js +188 -152
- package/subscriptions/interfaces.d.ts +4 -0
- package/subscriptions/reducer.d.ts +7 -0
- package/toolkit/index.d.ts +1 -1
|
@@ -22,6 +22,7 @@ declare const reducers: {
|
|
|
22
22
|
activateState: import("..").ActivateAccountState;
|
|
23
23
|
acceptInvitationState: AcceptInvitationState;
|
|
24
24
|
forgotPasswordState: import("..").ForgotPasswordState;
|
|
25
|
+
resetPhoneNumberState: import("..").ResetPhoneNumberState;
|
|
25
26
|
ssoState: import("..").SSOState;
|
|
26
27
|
profileState: import("..").ProfileState;
|
|
27
28
|
mfaState: import("..").MFAState;
|
|
@@ -51,6 +52,7 @@ declare const reducers: {
|
|
|
51
52
|
activateState: import("..").ActivateAccountState;
|
|
52
53
|
acceptInvitationState: AcceptInvitationState;
|
|
53
54
|
forgotPasswordState: import("..").ForgotPasswordState;
|
|
55
|
+
resetPhoneNumberState: import("..").ResetPhoneNumberState;
|
|
54
56
|
ssoState: import("..").SSOState;
|
|
55
57
|
profileState: import("..").ProfileState;
|
|
56
58
|
mfaState: import("..").MFAState;
|
|
@@ -13,6 +13,10 @@ declare const reducers: {
|
|
|
13
13
|
}) => {
|
|
14
14
|
onRedirectTo: (path: string, opts?: import("@frontegg/rest-api").RedirectOptions | undefined) => void;
|
|
15
15
|
error?: any;
|
|
16
|
+
/**
|
|
17
|
+
* if you see error in matcher that's mean the DispatchAction does not
|
|
18
|
+
* contains the same functions in reducers and actions
|
|
19
|
+
*/
|
|
16
20
|
isAuthenticated: boolean;
|
|
17
21
|
isLoading: boolean;
|
|
18
22
|
keepSessionAlive?: boolean | undefined;
|
|
@@ -23,6 +27,7 @@ declare const reducers: {
|
|
|
23
27
|
activateState: import("..").ActivateAccountState;
|
|
24
28
|
acceptInvitationState: import("..").AcceptInvitationState;
|
|
25
29
|
forgotPasswordState: import("..").ForgotPasswordState;
|
|
30
|
+
resetPhoneNumberState: import("..").ResetPhoneNumberState;
|
|
26
31
|
ssoState: import("..").SSOState;
|
|
27
32
|
profileState: import("..").ProfileState;
|
|
28
33
|
mfaState: import("..").MFAState;
|
|
@@ -42,6 +47,10 @@ declare const reducers: {
|
|
|
42
47
|
resetAccountSettingsState: (state: import("..").AuthState) => {
|
|
43
48
|
onRedirectTo: (path: string, opts?: import("@frontegg/rest-api").RedirectOptions | undefined) => void;
|
|
44
49
|
error?: any;
|
|
50
|
+
/**
|
|
51
|
+
* if you see error in matcher that's mean the DispatchAction does not
|
|
52
|
+
* contains the same functions in reducers and actions
|
|
53
|
+
*/
|
|
45
54
|
isAuthenticated: boolean;
|
|
46
55
|
isLoading: boolean;
|
|
47
56
|
keepSessionAlive?: boolean | undefined;
|
|
@@ -52,6 +61,7 @@ declare const reducers: {
|
|
|
52
61
|
activateState: import("..").ActivateAccountState;
|
|
53
62
|
acceptInvitationState: import("..").AcceptInvitationState;
|
|
54
63
|
forgotPasswordState: import("..").ForgotPasswordState;
|
|
64
|
+
resetPhoneNumberState: import("..").ResetPhoneNumberState;
|
|
55
65
|
ssoState: import("..").SSOState;
|
|
56
66
|
profileState: import("..").ProfileState;
|
|
57
67
|
mfaState: import("..").MFAState;
|
|
@@ -23,6 +23,7 @@ declare const reducers: {
|
|
|
23
23
|
activateState: ActivateAccountState;
|
|
24
24
|
acceptInvitationState: import("..").AcceptInvitationState;
|
|
25
25
|
forgotPasswordState: import("..").ForgotPasswordState;
|
|
26
|
+
resetPhoneNumberState: import("..").ResetPhoneNumberState;
|
|
26
27
|
ssoState: import("..").SSOState;
|
|
27
28
|
profileState: import("..").ProfileState;
|
|
28
29
|
mfaState: import("..").MFAState;
|
|
@@ -52,6 +53,7 @@ declare const reducers: {
|
|
|
52
53
|
activateState: ActivateAccountState;
|
|
53
54
|
acceptInvitationState: import("..").AcceptInvitationState;
|
|
54
55
|
forgotPasswordState: import("..").ForgotPasswordState;
|
|
56
|
+
resetPhoneNumberState: import("..").ResetPhoneNumberState;
|
|
55
57
|
ssoState: import("..").SSOState;
|
|
56
58
|
profileState: import("..").ProfileState;
|
|
57
59
|
mfaState: import("..").MFAState;
|
|
@@ -87,6 +89,7 @@ declare const reducers: {
|
|
|
87
89
|
activateState: ActivateAccountState;
|
|
88
90
|
acceptInvitationState: import("..").AcceptInvitationState;
|
|
89
91
|
forgotPasswordState: import("..").ForgotPasswordState;
|
|
92
|
+
resetPhoneNumberState: import("..").ResetPhoneNumberState;
|
|
90
93
|
ssoState: import("..").SSOState;
|
|
91
94
|
profileState: import("..").ProfileState;
|
|
92
95
|
mfaState: import("..").MFAState;
|
|
@@ -40,6 +40,7 @@ declare const reducers: {
|
|
|
40
40
|
activateState: import("..").ActivateAccountState;
|
|
41
41
|
acceptInvitationState: import("..").AcceptInvitationState;
|
|
42
42
|
forgotPasswordState: import("..").ForgotPasswordState;
|
|
43
|
+
resetPhoneNumberState: import("..").ResetPhoneNumberState;
|
|
43
44
|
ssoState: import("..").SSOState;
|
|
44
45
|
profileState: import("..").ProfileState;
|
|
45
46
|
mfaState: import("..").MFAState;
|
|
@@ -69,6 +70,7 @@ declare const reducers: {
|
|
|
69
70
|
activateState: import("..").ActivateAccountState;
|
|
70
71
|
acceptInvitationState: import("..").AcceptInvitationState;
|
|
71
72
|
forgotPasswordState: import("..").ForgotPasswordState;
|
|
73
|
+
resetPhoneNumberState: import("..").ResetPhoneNumberState;
|
|
72
74
|
ssoState: import("..").SSOState;
|
|
73
75
|
profileState: import("..").ProfileState;
|
|
74
76
|
mfaState: import("..").MFAState;
|
|
@@ -23,6 +23,7 @@ declare const reducers: {
|
|
|
23
23
|
activateState: import("..").ActivateAccountState;
|
|
24
24
|
acceptInvitationState: import("..").AcceptInvitationState;
|
|
25
25
|
forgotPasswordState: ForgotPasswordState;
|
|
26
|
+
resetPhoneNumberState: import("..").ResetPhoneNumberState;
|
|
26
27
|
ssoState: import("..").SSOState;
|
|
27
28
|
profileState: import("..").ProfileState;
|
|
28
29
|
mfaState: import("..").MFAState;
|
|
@@ -52,6 +53,7 @@ declare const reducers: {
|
|
|
52
53
|
activateState: import("..").ActivateAccountState;
|
|
53
54
|
acceptInvitationState: import("..").AcceptInvitationState;
|
|
54
55
|
forgotPasswordState: ForgotPasswordState;
|
|
56
|
+
resetPhoneNumberState: import("..").ResetPhoneNumberState;
|
|
55
57
|
ssoState: import("..").SSOState;
|
|
56
58
|
profileState: import("..").ProfileState;
|
|
57
59
|
mfaState: import("..").MFAState;
|
|
@@ -24,6 +24,7 @@ declare const reducers: {
|
|
|
24
24
|
activateState: import("..").ActivateAccountState;
|
|
25
25
|
acceptInvitationState: import("..").AcceptInvitationState;
|
|
26
26
|
forgotPasswordState: import("..").ForgotPasswordState;
|
|
27
|
+
resetPhoneNumberState: import("..").ResetPhoneNumberState;
|
|
27
28
|
ssoState: import("..").SSOState;
|
|
28
29
|
profileState: import("..").ProfileState;
|
|
29
30
|
mfaState: import("..").MFAState;
|
|
@@ -53,6 +54,7 @@ declare const reducers: {
|
|
|
53
54
|
activateState: import("..").ActivateAccountState;
|
|
54
55
|
acceptInvitationState: import("..").AcceptInvitationState;
|
|
55
56
|
forgotPasswordState: import("..").ForgotPasswordState;
|
|
57
|
+
resetPhoneNumberState: import("..").ResetPhoneNumberState;
|
|
56
58
|
ssoState: import("..").SSOState;
|
|
57
59
|
profileState: import("..").ProfileState;
|
|
58
60
|
mfaState: import("..").MFAState;
|
|
@@ -3,6 +3,7 @@ export { AuthStrategyEnum };
|
|
|
3
3
|
export declare enum LoginStep {
|
|
4
4
|
'preLogin' = "preLogin",
|
|
5
5
|
'magicLinkPreLoginSuccess' = "magicLinkPreLoginSuccess",
|
|
6
|
+
'loginWithSmsOtc' = "loginWithSmsOtc",
|
|
6
7
|
'loginWithOtc' = "loginWithOtc",
|
|
7
8
|
'loginWithPassword' = "loginWithPassword",
|
|
8
9
|
'loginWithTwoFactor' = "loginWithTwoFactor",
|
|
@@ -27,6 +28,7 @@ export interface LoginState {
|
|
|
27
28
|
inviteTokenTenantName?: string;
|
|
28
29
|
inviteTokenError?: string;
|
|
29
30
|
isNewUser?: boolean;
|
|
31
|
+
phoneNumber?: string;
|
|
30
32
|
}
|
|
31
33
|
export interface HostedLoginCallback {
|
|
32
34
|
code: string;
|
|
@@ -35,6 +35,7 @@ export declare function getMfaRequiredState(user: any): Generator<import("redux-
|
|
|
35
35
|
inviteTokenTenantName?: string | undefined;
|
|
36
36
|
inviteTokenError?: string | undefined;
|
|
37
37
|
isNewUser?: boolean | undefined;
|
|
38
|
+
phoneNumber?: string | undefined;
|
|
38
39
|
};
|
|
39
40
|
user: undefined;
|
|
40
41
|
isAuthenticated: boolean;
|
|
@@ -64,6 +65,7 @@ export declare function refreshToken(): Generator<import("redux-saga/effects").S
|
|
|
64
65
|
inviteTokenTenantName?: string | undefined;
|
|
65
66
|
inviteTokenError?: string | undefined;
|
|
66
67
|
isNewUser?: boolean | undefined;
|
|
68
|
+
phoneNumber?: string | undefined;
|
|
67
69
|
};
|
|
68
70
|
user: undefined;
|
|
69
71
|
isAuthenticated: boolean;
|
package/auth/MfaState/index.d.ts
CHANGED
|
@@ -19,14 +19,14 @@ declare const reducers: {
|
|
|
19
19
|
user?: import("..").User | null | undefined;
|
|
20
20
|
isSSOAuth: boolean;
|
|
21
21
|
ssoACS?: string | undefined;
|
|
22
|
-
loginState: import("..").LoginState;
|
|
23
|
-
activateState: import("..").ActivateAccountState;
|
|
24
|
-
/**
|
|
22
|
+
loginState: import("..").LoginState; /**
|
|
25
23
|
* if you see error in matcher that's mean the DispatchAction does not
|
|
26
24
|
* contains the same functions in reducers and actions
|
|
27
25
|
*/
|
|
26
|
+
activateState: import("..").ActivateAccountState;
|
|
28
27
|
acceptInvitationState: import("..").AcceptInvitationState;
|
|
29
28
|
forgotPasswordState: import("..").ForgotPasswordState;
|
|
29
|
+
resetPhoneNumberState: import("..").ResetPhoneNumberState;
|
|
30
30
|
ssoState: import("..").SSOState;
|
|
31
31
|
profileState: import("..").ProfileState;
|
|
32
32
|
mfaState: MFAState;
|
|
@@ -52,14 +52,14 @@ declare const reducers: {
|
|
|
52
52
|
user?: import("..").User | null | undefined;
|
|
53
53
|
isSSOAuth: boolean;
|
|
54
54
|
ssoACS?: string | undefined;
|
|
55
|
-
loginState: import("..").LoginState;
|
|
56
|
-
activateState: import("..").ActivateAccountState;
|
|
57
|
-
/**
|
|
55
|
+
loginState: import("..").LoginState; /**
|
|
58
56
|
* if you see error in matcher that's mean the DispatchAction does not
|
|
59
57
|
* contains the same functions in reducers and actions
|
|
60
58
|
*/
|
|
59
|
+
activateState: import("..").ActivateAccountState;
|
|
61
60
|
acceptInvitationState: import("..").AcceptInvitationState;
|
|
62
61
|
forgotPasswordState: import("..").ForgotPasswordState;
|
|
62
|
+
resetPhoneNumberState: import("..").ResetPhoneNumberState;
|
|
63
63
|
ssoState: import("..").SSOState;
|
|
64
64
|
profileState: import("..").ProfileState;
|
|
65
65
|
mfaState: MFAState;
|
|
@@ -23,6 +23,7 @@ declare const reducers: {
|
|
|
23
23
|
activateState: import("..").ActivateAccountState;
|
|
24
24
|
acceptInvitationState: import("..").AcceptInvitationState;
|
|
25
25
|
forgotPasswordState: import("..").ForgotPasswordState;
|
|
26
|
+
resetPhoneNumberState: import("..").ResetPhoneNumberState;
|
|
26
27
|
ssoState: import("..").SSOState;
|
|
27
28
|
profileState: ProfileState;
|
|
28
29
|
mfaState: import("..").MFAState;
|
|
@@ -52,6 +53,7 @@ declare const reducers: {
|
|
|
52
53
|
activateState: import("..").ActivateAccountState;
|
|
53
54
|
acceptInvitationState: import("..").AcceptInvitationState;
|
|
54
55
|
forgotPasswordState: import("..").ForgotPasswordState;
|
|
56
|
+
resetPhoneNumberState: import("..").ResetPhoneNumberState;
|
|
55
57
|
ssoState: import("..").SSOState;
|
|
56
58
|
profileState: ProfileState;
|
|
57
59
|
mfaState: import("..").MFAState;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { ChangePhoneNumberPayload, ResetPhoneNumberState } from './interfaces';
|
|
2
|
+
import { WithCallback } from '../../interfaces';
|
|
3
|
+
import { IResetPhoneNumber, IVerifyResetPhoneNumber } from '@frontegg/rest-api';
|
|
4
|
+
declare const resetPhoneNumberState: ResetPhoneNumberState;
|
|
5
|
+
declare const reducers: {
|
|
6
|
+
setResetPhoneNumberState: {
|
|
7
|
+
prepare: (payload: Partial<ResetPhoneNumberState>) => {
|
|
8
|
+
payload: Partial<ResetPhoneNumberState>;
|
|
9
|
+
};
|
|
10
|
+
reducer: (state: import("..").AuthState, { payload }: {
|
|
11
|
+
payload: Partial<ResetPhoneNumberState>;
|
|
12
|
+
type: string;
|
|
13
|
+
}) => {
|
|
14
|
+
onRedirectTo: (path: string, opts?: import("@frontegg/rest-api").RedirectOptions | undefined) => void;
|
|
15
|
+
error?: any;
|
|
16
|
+
isAuthenticated: boolean;
|
|
17
|
+
isLoading: boolean;
|
|
18
|
+
keepSessionAlive?: boolean | undefined;
|
|
19
|
+
user?: import("..").User | null | undefined;
|
|
20
|
+
isSSOAuth: boolean;
|
|
21
|
+
ssoACS?: string | undefined;
|
|
22
|
+
loginState: import("..").LoginState;
|
|
23
|
+
activateState: import("..").ActivateAccountState;
|
|
24
|
+
acceptInvitationState: import("..").AcceptInvitationState;
|
|
25
|
+
forgotPasswordState: import("..").ForgotPasswordState;
|
|
26
|
+
resetPhoneNumberState: ResetPhoneNumberState;
|
|
27
|
+
ssoState: import("..").SSOState;
|
|
28
|
+
profileState: import("..").ProfileState;
|
|
29
|
+
mfaState: import("..").MFAState;
|
|
30
|
+
teamState: import("..").TeamState;
|
|
31
|
+
socialLoginState: import("..").SocialLoginState;
|
|
32
|
+
signUpState: import("..").SignUpState;
|
|
33
|
+
apiTokensState: import("..").ApiTokensState;
|
|
34
|
+
securityPolicyState: import("..").SecurityPolicyState;
|
|
35
|
+
accountSettingsState: import("..").AccountSettingsState;
|
|
36
|
+
tenantsState: import("..").TenantsState;
|
|
37
|
+
rolesState: import("..").RolesState;
|
|
38
|
+
routes: import("..").AuthPageRoutes;
|
|
39
|
+
header?: any;
|
|
40
|
+
loaderComponent?: any;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
resetResetPhoneNumberState: (state: import("..").AuthState) => {
|
|
44
|
+
onRedirectTo: (path: string, opts?: import("@frontegg/rest-api").RedirectOptions | undefined) => void;
|
|
45
|
+
error?: any;
|
|
46
|
+
isAuthenticated: boolean;
|
|
47
|
+
isLoading: boolean;
|
|
48
|
+
keepSessionAlive?: boolean | undefined;
|
|
49
|
+
user?: import("..").User | null | undefined;
|
|
50
|
+
isSSOAuth: boolean;
|
|
51
|
+
ssoACS?: string | undefined;
|
|
52
|
+
loginState: import("..").LoginState;
|
|
53
|
+
activateState: import("..").ActivateAccountState;
|
|
54
|
+
acceptInvitationState: import("..").AcceptInvitationState;
|
|
55
|
+
forgotPasswordState: import("..").ForgotPasswordState;
|
|
56
|
+
resetPhoneNumberState: ResetPhoneNumberState;
|
|
57
|
+
ssoState: import("..").SSOState;
|
|
58
|
+
profileState: import("..").ProfileState;
|
|
59
|
+
mfaState: import("..").MFAState;
|
|
60
|
+
teamState: import("..").TeamState;
|
|
61
|
+
socialLoginState: import("..").SocialLoginState;
|
|
62
|
+
signUpState: import("..").SignUpState;
|
|
63
|
+
apiTokensState: import("..").ApiTokensState;
|
|
64
|
+
securityPolicyState: import("..").SecurityPolicyState;
|
|
65
|
+
accountSettingsState: import("..").AccountSettingsState;
|
|
66
|
+
tenantsState: import("..").TenantsState;
|
|
67
|
+
rolesState: import("..").RolesState;
|
|
68
|
+
routes: import("..").AuthPageRoutes;
|
|
69
|
+
header?: any;
|
|
70
|
+
loaderComponent?: any;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
declare const actions: {
|
|
74
|
+
resetPhoneNumber: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<IResetPhoneNumber, boolean>], WithCallback<IResetPhoneNumber, boolean>, string, never, never>;
|
|
75
|
+
verifyResetPhoneNumber: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<IVerifyResetPhoneNumber, boolean>], WithCallback<IVerifyResetPhoneNumber, boolean>, string, never, never>;
|
|
76
|
+
changePhoneNumber: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<import("@frontegg/rest-api").IChangePhoneNumber & {
|
|
77
|
+
recaptchaToken: string;
|
|
78
|
+
email: string;
|
|
79
|
+
}, boolean>], WithCallback<import("@frontegg/rest-api").IChangePhoneNumber & {
|
|
80
|
+
recaptchaToken: string;
|
|
81
|
+
email: string;
|
|
82
|
+
}, boolean>, string, never, never>;
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* To be used for actions types after dispatch, and should contains
|
|
86
|
+
* the reducers and actions as standalone function
|
|
87
|
+
*/
|
|
88
|
+
declare type DispatchedActions = {
|
|
89
|
+
setResetPhoneNumberState: (state: Partial<ResetPhoneNumberState>) => void;
|
|
90
|
+
resetResetPhoneNumberState: () => void;
|
|
91
|
+
resetPhoneNumber: (payload: WithCallback<IResetPhoneNumber>) => void;
|
|
92
|
+
verifyResetPhoneNumber: (payload?: WithCallback<IVerifyResetPhoneNumber>) => void;
|
|
93
|
+
changePhoneNumber: (payload?: ChangePhoneNumberPayload) => void;
|
|
94
|
+
};
|
|
95
|
+
export declare type ResetPhoneNumberActions = DispatchedActions;
|
|
96
|
+
export { resetPhoneNumberState, reducers as resetPhoneNumberReducers, actions as resetPhoneNumberActions };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IChangePhoneNumber } from "@frontegg/rest-api";
|
|
2
|
+
import { WithCallback } from "../../interfaces";
|
|
3
|
+
export declare enum ResetPhoneNumberStep {
|
|
4
|
+
ResetPhoneNumber = "ResetPhoneNumber",
|
|
5
|
+
VerifyResetPhoneNumber = "VerifyResetPhoneNumber",
|
|
6
|
+
ChangePhoneNumber = "ChangePhoneNumber"
|
|
7
|
+
}
|
|
8
|
+
export interface ResetPhoneNumberState {
|
|
9
|
+
step: ResetPhoneNumberStep;
|
|
10
|
+
loading: boolean;
|
|
11
|
+
resetPhoneNumberToken?: string;
|
|
12
|
+
changePhoneNumberToken?: string;
|
|
13
|
+
error?: any;
|
|
14
|
+
}
|
|
15
|
+
export declare type ChangePhoneNumberPayload = WithCallback<IChangePhoneNumber & {
|
|
16
|
+
recaptchaToken: string;
|
|
17
|
+
email: string;
|
|
18
|
+
}>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
import { WithCallback } from '../../interfaces';
|
|
3
|
+
import { ChangePhoneNumberPayload } from './interfaces';
|
|
4
|
+
export declare function changePhoneNumber({ payload: { callback, ...body } }: PayloadAction<ChangePhoneNumberPayload>): Generator<import("redux-saga/effects").PutEffect<{
|
|
5
|
+
payload: Partial<import("./interfaces").ResetPhoneNumberState>;
|
|
6
|
+
type: string;
|
|
7
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
8
|
+
payload: Partial<import("../LoginState/interfaces").LoginState>;
|
|
9
|
+
type: string;
|
|
10
|
+
}> | import("redux-saga/effects").SelectEffect | import("redux-saga/effects").CallEffect<void> | import("redux-saga/effects").PutEffect<{
|
|
11
|
+
payload: WithCallback<import("@frontegg/rest-api").IPasswordlessPreLogin, void>;
|
|
12
|
+
type: string;
|
|
13
|
+
}>, void, {
|
|
14
|
+
onRedirectTo: any;
|
|
15
|
+
routes: any;
|
|
16
|
+
}>;
|
|
17
|
+
export declare function resetPhoneNumberSagas(): Generator<import("redux-saga/effects").ForkEffect<never>, void, unknown>;
|
|
@@ -23,6 +23,7 @@ declare const reducers: {
|
|
|
23
23
|
activateState: import("..").ActivateAccountState;
|
|
24
24
|
acceptInvitationState: import("..").AcceptInvitationState;
|
|
25
25
|
forgotPasswordState: import("..").ForgotPasswordState;
|
|
26
|
+
resetPhoneNumberState: import("..").ResetPhoneNumberState;
|
|
26
27
|
ssoState: import("..").SSOState;
|
|
27
28
|
profileState: import("..").ProfileState;
|
|
28
29
|
mfaState: import("..").MFAState;
|
|
@@ -52,6 +53,7 @@ declare const reducers: {
|
|
|
52
53
|
activateState: import("..").ActivateAccountState;
|
|
53
54
|
acceptInvitationState: import("..").AcceptInvitationState;
|
|
54
55
|
forgotPasswordState: import("..").ForgotPasswordState;
|
|
56
|
+
resetPhoneNumberState: import("..").ResetPhoneNumberState;
|
|
55
57
|
ssoState: import("..").SSOState;
|
|
56
58
|
profileState: import("..").ProfileState;
|
|
57
59
|
mfaState: import("..").MFAState;
|
package/auth/SSOState/index.d.ts
CHANGED
|
@@ -41,6 +41,7 @@ declare const reducers: {
|
|
|
41
41
|
activateState: import("..").ActivateAccountState;
|
|
42
42
|
acceptInvitationState: import("..").AcceptInvitationState;
|
|
43
43
|
forgotPasswordState: import("..").ForgotPasswordState;
|
|
44
|
+
resetPhoneNumberState: import("..").ResetPhoneNumberState;
|
|
44
45
|
ssoState: SSOState;
|
|
45
46
|
profileState: import("..").ProfileState;
|
|
46
47
|
mfaState: import("..").MFAState;
|
|
@@ -70,6 +71,7 @@ declare const reducers: {
|
|
|
70
71
|
activateState: import("..").ActivateAccountState;
|
|
71
72
|
acceptInvitationState: import("..").AcceptInvitationState;
|
|
72
73
|
forgotPasswordState: import("..").ForgotPasswordState;
|
|
74
|
+
resetPhoneNumberState: import("..").ResetPhoneNumberState;
|
|
73
75
|
ssoState: SSOState;
|
|
74
76
|
profileState: import("..").ProfileState;
|
|
75
77
|
mfaState: import("..").MFAState;
|
|
@@ -21,6 +21,7 @@ declare const reducers: {
|
|
|
21
21
|
activateState: import("..").ActivateAccountState;
|
|
22
22
|
acceptInvitationState: import("..").AcceptInvitationState;
|
|
23
23
|
forgotPasswordState: import("..").ForgotPasswordState;
|
|
24
|
+
resetPhoneNumberState: import("..").ResetPhoneNumberState;
|
|
24
25
|
ssoState: import("..").SSOState;
|
|
25
26
|
profileState: import("..").ProfileState;
|
|
26
27
|
mfaState: import("..").MFAState;
|
|
@@ -63,6 +64,7 @@ declare const reducers: {
|
|
|
63
64
|
activateState: import("..").ActivateAccountState;
|
|
64
65
|
acceptInvitationState: import("..").AcceptInvitationState;
|
|
65
66
|
forgotPasswordState: import("..").ForgotPasswordState;
|
|
67
|
+
resetPhoneNumberState: import("..").ResetPhoneNumberState;
|
|
66
68
|
ssoState: import("..").SSOState;
|
|
67
69
|
profileState: import("..").ProfileState;
|
|
68
70
|
mfaState: import("..").MFAState;
|
|
@@ -105,6 +107,7 @@ declare const reducers: {
|
|
|
105
107
|
activateState: import("..").ActivateAccountState;
|
|
106
108
|
acceptInvitationState: import("..").AcceptInvitationState;
|
|
107
109
|
forgotPasswordState: import("..").ForgotPasswordState;
|
|
110
|
+
resetPhoneNumberState: import("..").ResetPhoneNumberState;
|
|
108
111
|
ssoState: import("..").SSOState;
|
|
109
112
|
profileState: import("..").ProfileState;
|
|
110
113
|
mfaState: import("..").MFAState;
|
|
@@ -147,6 +150,7 @@ declare const reducers: {
|
|
|
147
150
|
activateState: import("..").ActivateAccountState;
|
|
148
151
|
acceptInvitationState: import("..").AcceptInvitationState;
|
|
149
152
|
forgotPasswordState: import("..").ForgotPasswordState;
|
|
153
|
+
resetPhoneNumberState: import("..").ResetPhoneNumberState;
|
|
150
154
|
ssoState: import("..").SSOState;
|
|
151
155
|
profileState: import("..").ProfileState;
|
|
152
156
|
mfaState: import("..").MFAState;
|
|
@@ -189,6 +193,7 @@ declare const reducers: {
|
|
|
189
193
|
activateState: import("..").ActivateAccountState;
|
|
190
194
|
acceptInvitationState: import("..").AcceptInvitationState;
|
|
191
195
|
forgotPasswordState: import("..").ForgotPasswordState;
|
|
196
|
+
resetPhoneNumberState: import("..").ResetPhoneNumberState;
|
|
192
197
|
ssoState: import("..").SSOState;
|
|
193
198
|
profileState: import("..").ProfileState;
|
|
194
199
|
mfaState: import("..").MFAState;
|
|
@@ -231,6 +236,7 @@ declare const reducers: {
|
|
|
231
236
|
activateState: import("..").ActivateAccountState;
|
|
232
237
|
acceptInvitationState: import("..").AcceptInvitationState;
|
|
233
238
|
forgotPasswordState: import("..").ForgotPasswordState;
|
|
239
|
+
resetPhoneNumberState: import("..").ResetPhoneNumberState;
|
|
234
240
|
ssoState: import("..").SSOState;
|
|
235
241
|
profileState: import("..").ProfileState;
|
|
236
242
|
mfaState: import("..").MFAState;
|
|
@@ -273,6 +279,7 @@ declare const reducers: {
|
|
|
273
279
|
activateState: import("..").ActivateAccountState;
|
|
274
280
|
acceptInvitationState: import("..").AcceptInvitationState;
|
|
275
281
|
forgotPasswordState: import("..").ForgotPasswordState;
|
|
282
|
+
resetPhoneNumberState: import("..").ResetPhoneNumberState;
|
|
276
283
|
ssoState: import("..").SSOState;
|
|
277
284
|
profileState: import("..").ProfileState;
|
|
278
285
|
mfaState: import("..").MFAState;
|
|
@@ -315,6 +322,7 @@ declare const reducers: {
|
|
|
315
322
|
activateState: import("..").ActivateAccountState;
|
|
316
323
|
acceptInvitationState: import("..").AcceptInvitationState;
|
|
317
324
|
forgotPasswordState: import("..").ForgotPasswordState;
|
|
325
|
+
resetPhoneNumberState: import("..").ResetPhoneNumberState;
|
|
318
326
|
ssoState: import("..").SSOState;
|
|
319
327
|
profileState: import("..").ProfileState;
|
|
320
328
|
mfaState: import("..").MFAState;
|
|
@@ -344,6 +352,7 @@ declare const reducers: {
|
|
|
344
352
|
activateState: import("..").ActivateAccountState;
|
|
345
353
|
acceptInvitationState: import("..").AcceptInvitationState;
|
|
346
354
|
forgotPasswordState: import("..").ForgotPasswordState;
|
|
355
|
+
resetPhoneNumberState: import("..").ResetPhoneNumberState;
|
|
347
356
|
ssoState: import("..").SSOState;
|
|
348
357
|
profileState: import("..").ProfileState;
|
|
349
358
|
mfaState: import("..").MFAState;
|
package/auth/SignUp/index.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ declare const reducers: {
|
|
|
22
22
|
activateState: import("..").ActivateAccountState;
|
|
23
23
|
acceptInvitationState: import("..").AcceptInvitationState;
|
|
24
24
|
forgotPasswordState: import("..").ForgotPasswordState;
|
|
25
|
+
resetPhoneNumberState: import("..").ResetPhoneNumberState;
|
|
25
26
|
ssoState: import("..").SSOState;
|
|
26
27
|
profileState: import("..").ProfileState;
|
|
27
28
|
mfaState: import("..").MFAState;
|
|
@@ -51,6 +52,7 @@ declare const reducers: {
|
|
|
51
52
|
activateState: import("..").ActivateAccountState;
|
|
52
53
|
acceptInvitationState: import("..").AcceptInvitationState;
|
|
53
54
|
forgotPasswordState: import("..").ForgotPasswordState;
|
|
55
|
+
resetPhoneNumberState: import("..").ResetPhoneNumberState;
|
|
54
56
|
ssoState: import("..").SSOState;
|
|
55
57
|
profileState: import("..").ProfileState;
|
|
56
58
|
mfaState: import("..").MFAState;
|
|
@@ -22,6 +22,7 @@ declare const reducers: {
|
|
|
22
22
|
activateState: import("..").ActivateAccountState;
|
|
23
23
|
acceptInvitationState: import("..").AcceptInvitationState;
|
|
24
24
|
forgotPasswordState: import("..").ForgotPasswordState;
|
|
25
|
+
resetPhoneNumberState: import("..").ResetPhoneNumberState;
|
|
25
26
|
ssoState: import("..").SSOState;
|
|
26
27
|
profileState: import("..").ProfileState;
|
|
27
28
|
mfaState: import("..").MFAState;
|
|
@@ -33,10 +34,6 @@ declare const reducers: {
|
|
|
33
34
|
accountSettingsState: import("..").AccountSettingsState;
|
|
34
35
|
tenantsState: import("..").TenantsState;
|
|
35
36
|
rolesState: import("..").RolesState;
|
|
36
|
-
/**
|
|
37
|
-
* To be used for actions types after dispatch, and should contains
|
|
38
|
-
* the reducers and actions as standalone function
|
|
39
|
-
*/
|
|
40
37
|
routes: import("..").AuthPageRoutes;
|
|
41
38
|
header?: any;
|
|
42
39
|
loaderComponent?: any;
|
|
@@ -55,6 +52,7 @@ declare const reducers: {
|
|
|
55
52
|
activateState: import("..").ActivateAccountState;
|
|
56
53
|
acceptInvitationState: import("..").AcceptInvitationState;
|
|
57
54
|
forgotPasswordState: import("..").ForgotPasswordState;
|
|
55
|
+
resetPhoneNumberState: import("..").ResetPhoneNumberState;
|
|
58
56
|
ssoState: import("..").SSOState;
|
|
59
57
|
profileState: import("..").ProfileState;
|
|
60
58
|
mfaState: import("..").MFAState;
|
|
@@ -66,10 +64,6 @@ declare const reducers: {
|
|
|
66
64
|
accountSettingsState: import("..").AccountSettingsState;
|
|
67
65
|
tenantsState: import("..").TenantsState;
|
|
68
66
|
rolesState: import("..").RolesState;
|
|
69
|
-
/**
|
|
70
|
-
* To be used for actions types after dispatch, and should contains
|
|
71
|
-
* the reducers and actions as standalone function
|
|
72
|
-
*/
|
|
73
67
|
routes: import("..").AuthPageRoutes;
|
|
74
68
|
header?: any;
|
|
75
69
|
loaderComponent?: any;
|
|
@@ -41,6 +41,7 @@ declare const reducers: {
|
|
|
41
41
|
activateState: import("..").ActivateAccountState;
|
|
42
42
|
acceptInvitationState: import("..").AcceptInvitationState;
|
|
43
43
|
forgotPasswordState: import("..").ForgotPasswordState;
|
|
44
|
+
resetPhoneNumberState: import("..").ResetPhoneNumberState;
|
|
44
45
|
ssoState: import("..").SSOState;
|
|
45
46
|
profileState: import("..").ProfileState;
|
|
46
47
|
mfaState: import("..").MFAState;
|
|
@@ -70,6 +71,7 @@ declare const reducers: {
|
|
|
70
71
|
activateState: import("..").ActivateAccountState;
|
|
71
72
|
acceptInvitationState: import("..").AcceptInvitationState;
|
|
72
73
|
forgotPasswordState: import("..").ForgotPasswordState;
|
|
74
|
+
resetPhoneNumberState: import("..").ResetPhoneNumberState;
|
|
73
75
|
ssoState: import("..").SSOState;
|
|
74
76
|
profileState: import("..").ProfileState;
|
|
75
77
|
mfaState: import("..").MFAState;
|
|
@@ -16,10 +16,6 @@ declare const reducers: {
|
|
|
16
16
|
isAuthenticated: boolean;
|
|
17
17
|
isLoading: boolean;
|
|
18
18
|
keepSessionAlive?: boolean | undefined;
|
|
19
|
-
/**
|
|
20
|
-
* if you see error in matcher that's mean the DispatchAction does not
|
|
21
|
-
* contains the same functions in reducers and actions
|
|
22
|
-
*/
|
|
23
19
|
user?: import("..").User | null | undefined;
|
|
24
20
|
isSSOAuth: boolean;
|
|
25
21
|
ssoACS?: string | undefined;
|
|
@@ -27,6 +23,7 @@ declare const reducers: {
|
|
|
27
23
|
activateState: import("..").ActivateAccountState;
|
|
28
24
|
acceptInvitationState: import("..").AcceptInvitationState;
|
|
29
25
|
forgotPasswordState: import("..").ForgotPasswordState;
|
|
26
|
+
resetPhoneNumberState: import("..").ResetPhoneNumberState;
|
|
30
27
|
ssoState: import("..").SSOState;
|
|
31
28
|
profileState: import("..").ProfileState;
|
|
32
29
|
mfaState: import("..").MFAState;
|
|
@@ -49,10 +46,6 @@ declare const reducers: {
|
|
|
49
46
|
isAuthenticated: boolean;
|
|
50
47
|
isLoading: boolean;
|
|
51
48
|
keepSessionAlive?: boolean | undefined;
|
|
52
|
-
/**
|
|
53
|
-
* if you see error in matcher that's mean the DispatchAction does not
|
|
54
|
-
* contains the same functions in reducers and actions
|
|
55
|
-
*/
|
|
56
49
|
user?: import("..").User | null | undefined;
|
|
57
50
|
isSSOAuth: boolean;
|
|
58
51
|
ssoACS?: string | undefined;
|
|
@@ -60,6 +53,7 @@ declare const reducers: {
|
|
|
60
53
|
activateState: import("..").ActivateAccountState;
|
|
61
54
|
acceptInvitationState: import("..").AcceptInvitationState;
|
|
62
55
|
forgotPasswordState: import("..").ForgotPasswordState;
|
|
56
|
+
resetPhoneNumberState: import("..").ResetPhoneNumberState;
|
|
63
57
|
ssoState: import("..").SSOState;
|
|
64
58
|
profileState: import("..").ProfileState;
|
|
65
59
|
mfaState: import("..").MFAState;
|
package/auth/index.d.ts
CHANGED
|
@@ -11,6 +11,8 @@ export * from './AcceptInvitationState/interfaces';
|
|
|
11
11
|
export * from './AcceptInvitationState';
|
|
12
12
|
export * from './ForgotPasswordState/interfaces';
|
|
13
13
|
export * from './ForgotPasswordState';
|
|
14
|
+
export * from './ResetPhoneNumberState/interfaces';
|
|
15
|
+
export * from './ResetPhoneNumberState';
|
|
14
16
|
export * from './SSOState/interfaces';
|
|
15
17
|
export * from './SSOState';
|
|
16
18
|
export * from './MfaState/interfaces';
|
|
@@ -218,6 +220,15 @@ declare const _default: {
|
|
|
218
220
|
changePassword: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithCallback<import("@frontegg/rest-api").IChangePassword, boolean>], import("../interfaces").WithCallback<import("@frontegg/rest-api").IChangePassword, boolean>, string, never, never>;
|
|
219
221
|
signUpUser: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("@frontegg/rest-api").ISignUpUser], import("@frontegg/rest-api").ISignUpUser, string, never, never>;
|
|
220
222
|
resetSignUpStateSoft: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
223
|
+
resetPhoneNumber: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithCallback<import("@frontegg/rest-api").IResetPhoneNumber, boolean>], import("../interfaces").WithCallback<import("@frontegg/rest-api").IResetPhoneNumber, boolean>, string, never, never>;
|
|
224
|
+
verifyResetPhoneNumber: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithCallback<import("@frontegg/rest-api").IVerifyResetPhoneNumber, boolean>], import("../interfaces").WithCallback<import("@frontegg/rest-api").IVerifyResetPhoneNumber, boolean>, string, never, never>;
|
|
225
|
+
changePhoneNumber: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithCallback<import("@frontegg/rest-api").IChangePhoneNumber & {
|
|
226
|
+
recaptchaToken: string;
|
|
227
|
+
email: string;
|
|
228
|
+
}, boolean>], import("../interfaces").WithCallback<import("@frontegg/rest-api").IChangePhoneNumber & {
|
|
229
|
+
recaptchaToken: string;
|
|
230
|
+
email: string;
|
|
231
|
+
}, boolean>, string, never, never>;
|
|
221
232
|
forgotPassword: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("@frontegg/rest-api").IForgotPassword], import("@frontegg/rest-api").IForgotPassword, string, never, never>;
|
|
222
233
|
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
234
|
loadPasswordConfig: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[(import("@frontegg/rest-api").IGetUserPasswordConfig | undefined)?], import("@frontegg/rest-api").IGetUserPasswordConfig | undefined, string, never, never>;
|
|
@@ -316,6 +327,8 @@ declare const _default: {
|
|
|
316
327
|
resetProfileState: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
317
328
|
setSignUpState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[Partial<import("./SignUp/interfaces").SignUpState>], Partial<import("./SignUp/interfaces").SignUpState>, string, never, never>;
|
|
318
329
|
resetSignUpState: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
330
|
+
setResetPhoneNumberState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[Partial<import("./ResetPhoneNumberState/interfaces").ResetPhoneNumberState>], Partial<import("./ResetPhoneNumberState/interfaces").ResetPhoneNumberState>, string, never, never>;
|
|
331
|
+
resetResetPhoneNumberState: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
319
332
|
setForgotPasswordState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[Partial<import("./ForgotPasswordState/interfaces").ForgotPasswordState>], Partial<import("./ForgotPasswordState/interfaces").ForgotPasswordState>, string, never, never>;
|
|
320
333
|
resetForgotPasswordState: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
321
334
|
setAcceptInvitationState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[Partial<import("./AcceptInvitationState/interfaces").AcceptInvitationState>], Partial<import("./AcceptInvitationState/interfaces").AcceptInvitationState>, string, never, never>;
|