@frontegg/redux-store 5.21.0 → 5.22.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 +167 -127
- 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 +168 -128
- package/subscriptions/interfaces.d.ts +4 -0
- package/subscriptions/reducer.d.ts +7 -0
- package/toolkit/index.d.ts +1 -1
|
@@ -3,12 +3,14 @@ import { BillingActions, BillingState } from './Billing/interfaces';
|
|
|
3
3
|
import { PlansActions, PlansState } from './Plans/interfaces';
|
|
4
4
|
import { PaymentProviderConfigActions, PaymentProviderConfigState } from './Config/interfaces';
|
|
5
5
|
import { StripeActions, StripeState } from './Stripe/interfaces';
|
|
6
|
+
import { ManagedSubscriptionsState, ManagedSubscriptionsActions } from './ManagedSubscriptions/interfaces';
|
|
6
7
|
export interface SubscriptionsState {
|
|
7
8
|
config: PaymentProviderConfigState;
|
|
8
9
|
billing: BillingState;
|
|
9
10
|
plans: PlansState;
|
|
10
11
|
checkout: CheckoutState;
|
|
11
12
|
stripe: StripeState;
|
|
13
|
+
managedSubscriptions: ManagedSubscriptionsState;
|
|
12
14
|
}
|
|
13
15
|
export declare type SubscriptionsActions = {
|
|
14
16
|
config: PaymentProviderConfigActions;
|
|
@@ -16,6 +18,7 @@ export declare type SubscriptionsActions = {
|
|
|
16
18
|
plans: PlansActions;
|
|
17
19
|
checkout: CheckoutActions;
|
|
18
20
|
stripe: StripeActions;
|
|
21
|
+
managedSubscriptions: ManagedSubscriptionsActions;
|
|
19
22
|
};
|
|
20
23
|
export * from './general.interfaces';
|
|
21
24
|
export * from './Checkout/interfaces';
|
|
@@ -23,3 +26,4 @@ export * from './Billing/interfaces';
|
|
|
23
26
|
export * from './Plans/interfaces';
|
|
24
27
|
export * from './Config/interfaces';
|
|
25
28
|
export * from './Stripe/interfaces';
|
|
29
|
+
export * from './ManagedSubscriptions/interfaces';
|
|
@@ -79,6 +79,12 @@ declare const actions: {
|
|
|
79
79
|
loadCustomer: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
80
80
|
createCardSetupIntentSecret: import("@reduxjs/toolkit").ActionCreatorWithPayload<string | null, string>;
|
|
81
81
|
};
|
|
82
|
+
managedSubscriptions: {
|
|
83
|
+
setLoading: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[boolean], boolean, string, never, never>;
|
|
84
|
+
setError: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[string | null], string | null, string, never, never>;
|
|
85
|
+
setState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[Partial<import("./interfaces").ManagedSubscriptionsState>], Partial<import("./interfaces").ManagedSubscriptionsState>, string, never, never>;
|
|
86
|
+
loadManagedSubscriptions: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
87
|
+
};
|
|
82
88
|
};
|
|
83
89
|
declare const reducer: import("redux").Reducer<import("redux").CombinedState<{
|
|
84
90
|
config: import("./interfaces").PaymentProviderConfigState;
|
|
@@ -86,5 +92,6 @@ declare const reducer: import("redux").Reducer<import("redux").CombinedState<{
|
|
|
86
92
|
plans: import("./interfaces").PlansState;
|
|
87
93
|
checkout: import("./interfaces").CheckoutState;
|
|
88
94
|
stripe: import("./interfaces").StripeState;
|
|
95
|
+
managedSubscriptions: import("./interfaces").ManagedSubscriptionsState;
|
|
89
96
|
}>, import("redux").AnyAction>;
|
|
90
97
|
export { subscriptionsStoreName as name, reducer, actions };
|
package/toolkit/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export { bindActionCreators, CaseReducerActions, SliceCaseReducers } from '@redu
|
|
|
12
12
|
export interface RootState {
|
|
13
13
|
context?: ContextOptions;
|
|
14
14
|
}
|
|
15
|
-
export declare const createFronteggStore: (rootInitialState: InitialState, storeHolder?: any, previewMode?: boolean, authInitialState?: (Partial<Pick<AuthState, "error" | "onRedirectTo" | "isAuthenticated" | "isLoading" | "keepSessionAlive" | "user" | "isSSOAuth" | "ssoACS" | "loginState" | "activateState" | "acceptInvitationState" | "forgotPasswordState" | "ssoState" | "profileState" | "mfaState" | "teamState" | "socialLoginState" | "signUpState" | "apiTokensState" | "securityPolicyState" | "accountSettingsState" | "tenantsState" | "rolesState" | "header" | "loaderComponent">> & {
|
|
15
|
+
export declare const createFronteggStore: (rootInitialState: InitialState, storeHolder?: any, previewMode?: boolean, authInitialState?: (Partial<Pick<AuthState, "error" | "onRedirectTo" | "isAuthenticated" | "isLoading" | "keepSessionAlive" | "user" | "isSSOAuth" | "ssoACS" | "loginState" | "activateState" | "acceptInvitationState" | "forgotPasswordState" | "resetPhoneNumberState" | "ssoState" | "profileState" | "mfaState" | "teamState" | "socialLoginState" | "signUpState" | "apiTokensState" | "securityPolicyState" | "accountSettingsState" | "tenantsState" | "rolesState" | "header" | "loaderComponent">> & {
|
|
16
16
|
routes?: Partial<AuthPageRoutes> | undefined;
|
|
17
17
|
}) | undefined, overrideInitialState?: Partial<{
|
|
18
18
|
auth: Partial<Omit<AuthState, 'routes'>> & {
|