@frontegg/redux-store 4.16.1 → 4.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/auth/LoginState/index.d.ts +3 -0
- package/auth/LoginState/interfaces.d.ts +1 -0
- package/auth/LoginState/saga.d.ts +1 -0
- package/auth/index.d.ts +1 -0
- package/auth/index.js +51 -12
- package/auth/index.js.map +1 -1
- package/auth/reducer.d.ts +1 -0
- package/connectivity/ConnectivityState/index.d.ts +80 -1
- package/connectivity/index.d.ts +2 -0
- package/connectivity/index.js +51 -2
- package/connectivity/index.js.map +1 -1
- package/connectivity/interfaces.d.ts +7 -0
- package/connectivity/reducer.d.ts +2 -0
- package/package.json +2 -2
- package/subscriptions/Billing/Information/index.d.ts +1 -0
- package/subscriptions/Billing/Invoices/index.d.ts +8 -0
- package/subscriptions/Billing/Invoices/interfaces.d.ts +4 -0
- package/subscriptions/Billing/PaymentMethod/index.d.ts +5 -2
- package/subscriptions/Billing/PaymentMethod/interfaces.d.ts +6 -4
- package/subscriptions/Billing/index.d.ts +13 -1
- package/subscriptions/Checkout/index.d.ts +2 -3
- package/subscriptions/Checkout/interfaces.d.ts +1 -3
- package/subscriptions/Config/index.d.ts +1 -0
- package/subscriptions/Plans/index.d.ts +1 -0
- package/subscriptions/Stripe/index.d.ts +2 -0
- package/subscriptions/Stripe/interfaces.d.ts +3 -0
- package/subscriptions/index.d.ts +26 -4
- package/subscriptions/index.js +279 -186
- package/subscriptions/index.js.map +1 -1
- package/subscriptions/interfaces.d.ts +4 -0
- package/subscriptions/reducer.d.ts +26 -4
- package/subscriptions/utils.d.ts +6 -0
|
@@ -4,13 +4,12 @@ declare const reducer: import("redux").Reducer<CheckoutState, import("redux").An
|
|
|
4
4
|
declare const actions: {
|
|
5
5
|
setStatus: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[CheckoutStatus], CheckoutStatus, string, never, never>;
|
|
6
6
|
selectPlan: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[string | null], string | null, string, never, never>;
|
|
7
|
-
setStripeClientSecret: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[string | null], string | null, string, never, never>;
|
|
8
7
|
setLoading: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[boolean], boolean, string, never, never>;
|
|
9
8
|
setError: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[string | null], string | null, string, never, never>;
|
|
10
|
-
|
|
9
|
+
setState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[Partial<CheckoutState>], Partial<CheckoutState>, string, never, never>;
|
|
11
10
|
checkoutPlan: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[string], string, string, never, never>;
|
|
12
11
|
resetCheckout: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
13
|
-
confirmCheckout: import("@reduxjs/toolkit").
|
|
12
|
+
confirmCheckout: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[string], string, string, never, never>;
|
|
14
13
|
cancelCheckout: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
15
14
|
submitCheckout: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
16
15
|
errorCheckout: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[string], string, string, never, never>;
|
|
@@ -10,7 +10,6 @@ export interface CheckoutState {
|
|
|
10
10
|
error: string | null;
|
|
11
11
|
status: CheckoutStatus;
|
|
12
12
|
checkoutPlanId: string | null;
|
|
13
|
-
checkoutClientSecret: string | null;
|
|
14
13
|
}
|
|
15
14
|
export declare enum CheckoutEvent {
|
|
16
15
|
SUBMITTED = "SUBMITTED",
|
|
@@ -20,10 +19,9 @@ export declare enum CheckoutEvent {
|
|
|
20
19
|
CONFIRMED = "CONFIRMED"
|
|
21
20
|
}
|
|
22
21
|
export interface CheckoutActions {
|
|
23
|
-
loadCheckoutSecret: () => void;
|
|
24
22
|
checkoutPlan: (planId: string) => void;
|
|
25
23
|
resetCheckout: () => void;
|
|
26
|
-
confirmCheckout: () => void;
|
|
24
|
+
confirmCheckout: (paymentMethodId: string) => void;
|
|
27
25
|
cancelCheckout: () => void;
|
|
28
26
|
submitCheckout: () => void;
|
|
29
27
|
errorCheckout: (error: string) => void;
|
|
@@ -5,6 +5,7 @@ declare const actions: {
|
|
|
5
5
|
setStripePaymentProvider: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[string], string, string, never, never>;
|
|
6
6
|
setLoading: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[boolean], boolean, string, never, never>;
|
|
7
7
|
setError: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[string | null], string | null, string, never, never>;
|
|
8
|
+
setState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[Partial<PaymentProviderConfigState>], Partial<PaymentProviderConfigState>, string, never, never>;
|
|
8
9
|
loadPaymentConfiguration: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
9
10
|
};
|
|
10
11
|
export { reducer as configReducer, actions as configActions };
|
|
@@ -6,6 +6,7 @@ declare const actions: {
|
|
|
6
6
|
setPlans: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[Plan[]], Plan[], string, never, never>;
|
|
7
7
|
setLoading: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[boolean], boolean, string, never, never>;
|
|
8
8
|
setError: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[string | null], string | null, string, never, never>;
|
|
9
|
+
setState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[Partial<PlansState>], Partial<PlansState>, string, never, never>;
|
|
9
10
|
loadPlans: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
10
11
|
};
|
|
11
12
|
export { actions as plansActions, reducer as plansReducer };
|
|
@@ -5,6 +5,8 @@ declare const actions: {
|
|
|
5
5
|
setStripeState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[Partial<StripeState>], Partial<StripeState>, string, never, never>;
|
|
6
6
|
setLoading: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[boolean], boolean, string, never, never>;
|
|
7
7
|
setError: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[string | null], string | null, string, never, never>;
|
|
8
|
+
setState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[Partial<StripeState>], Partial<StripeState>, string, never, never>;
|
|
8
9
|
loadCustomer: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
10
|
+
createCardSetupIntentSecret: import("@reduxjs/toolkit").ActionCreatorWithPayload<string | null, string>;
|
|
9
11
|
};
|
|
10
12
|
export { reducer as stripeReducer, actions as stripeActions };
|
|
@@ -2,7 +2,10 @@ export interface StripeState {
|
|
|
2
2
|
loading: boolean;
|
|
3
3
|
error: string | null;
|
|
4
4
|
customerId?: string;
|
|
5
|
+
cardSetupIntentSecret: string | null;
|
|
5
6
|
}
|
|
6
7
|
export interface StripeActions {
|
|
7
8
|
loadCustomer: () => void;
|
|
9
|
+
createCardSetupIntentSecret: (paymentMethodId: PaymentMethodId) => void;
|
|
8
10
|
}
|
|
11
|
+
export declare type PaymentMethodId = string | null;
|
package/subscriptions/index.d.ts
CHANGED
|
@@ -10,19 +10,29 @@ declare const _default: {
|
|
|
10
10
|
billing: import("redux").CombinedState<import("./interfaces").BillingState>;
|
|
11
11
|
plans: import("./interfaces").PlansState;
|
|
12
12
|
checkout: import("./interfaces").CheckoutState;
|
|
13
|
+
stripe: import("./interfaces").StripeState;
|
|
13
14
|
}>, import("redux").AnyAction>;
|
|
14
15
|
actions: {
|
|
15
16
|
config: {
|
|
16
17
|
setStripePaymentProvider: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[string], string, string, never, never>;
|
|
17
18
|
setLoading: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[boolean], boolean, string, never, never>;
|
|
18
19
|
setError: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[string | null], string | null, string, never, never>;
|
|
20
|
+
setState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[Partial<import("./interfaces").PaymentProviderConfigState>], Partial<import("./interfaces").PaymentProviderConfigState>, string, never, never>;
|
|
19
21
|
loadPaymentConfiguration: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
20
22
|
};
|
|
21
23
|
billing: {
|
|
22
24
|
invoices: {
|
|
23
25
|
setInvoices: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("./general.interfaces").Invoice[]], import("./general.interfaces").Invoice[], string, never, never>;
|
|
26
|
+
setInvoiceDownloadState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[{
|
|
27
|
+
loading: boolean;
|
|
28
|
+
error: string | null;
|
|
29
|
+
}], {
|
|
30
|
+
loading: boolean;
|
|
31
|
+
error: string | null;
|
|
32
|
+
}, string, never, never>;
|
|
24
33
|
setLoading: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[boolean], boolean, string, never, never>;
|
|
25
34
|
setError: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[string | null], string | null, string, never, never>;
|
|
35
|
+
setState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[Partial<import("./interfaces").InvoicesState>], Partial<import("./interfaces").InvoicesState>, string, never, never>;
|
|
26
36
|
loadInvoices: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
27
37
|
downloadInvoice: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("./interfaces").DownloadInvoiceActionPayload], import("./interfaces").DownloadInvoiceActionPayload, string, never, never>;
|
|
28
38
|
};
|
|
@@ -34,15 +44,19 @@ declare const _default: {
|
|
|
34
44
|
setRenewalError: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[string | null], string | null, string, never, never>;
|
|
35
45
|
setLoading: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[boolean], boolean, string, never, never>;
|
|
36
46
|
setError: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[string | null], string | null, string, never, never>;
|
|
47
|
+
setState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[Partial<import("./interfaces").BillingInformationState>], Partial<import("./interfaces").BillingInformationState>, string, never, never>;
|
|
37
48
|
loadBillingInformation: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
38
49
|
cancelSubscription: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
39
50
|
renewSubscription: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
40
51
|
};
|
|
41
52
|
paymentMethod: {
|
|
42
|
-
|
|
53
|
+
setState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[Partial<import("./interfaces").PaymentMethodState>], Partial<import("./interfaces").PaymentMethodState>, string, never, never>;
|
|
43
54
|
setLoading: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[boolean], boolean, string, never, never>;
|
|
44
55
|
setError: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[string | null], string | null, string, never, never>;
|
|
45
56
|
loadPaymentMethod: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
57
|
+
submitPaymentMethod: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
58
|
+
submitPaymentMethodError: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, string>;
|
|
59
|
+
submitPaymentMethodSuccess: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
46
60
|
updatePaymentMethodBillingDetails: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithCallback<import("@frontegg/rest-api").ISubscriptionUpdatePaymentMethodBillingDetails & {
|
|
47
61
|
id: string;
|
|
48
62
|
}, boolean>], import("../interfaces").WithCallback<import("@frontegg/rest-api").ISubscriptionUpdatePaymentMethodBillingDetails & {
|
|
@@ -54,23 +68,31 @@ declare const _default: {
|
|
|
54
68
|
setPlans: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("./general.interfaces").Plan[]], import("./general.interfaces").Plan[], string, never, never>;
|
|
55
69
|
setLoading: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[boolean], boolean, string, never, never>;
|
|
56
70
|
setError: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[string | null], string | null, string, never, never>;
|
|
71
|
+
setState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[Partial<import("./interfaces").PlansState>], Partial<import("./interfaces").PlansState>, string, never, never>;
|
|
57
72
|
loadPlans: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
58
73
|
};
|
|
59
74
|
checkout: {
|
|
60
75
|
setStatus: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("./interfaces").CheckoutStatus], import("./interfaces").CheckoutStatus, string, never, never>;
|
|
61
76
|
selectPlan: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[string | null], string | null, string, never, never>;
|
|
62
|
-
setStripeClientSecret: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[string | null], string | null, string, never, never>;
|
|
63
77
|
setLoading: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[boolean], boolean, string, never, never>;
|
|
64
78
|
setError: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[string | null], string | null, string, never, never>;
|
|
65
|
-
|
|
79
|
+
setState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[Partial<import("./interfaces").CheckoutState>], Partial<import("./interfaces").CheckoutState>, string, never, never>;
|
|
66
80
|
checkoutPlan: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[string], string, string, never, never>;
|
|
67
81
|
resetCheckout: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
68
|
-
confirmCheckout: import("@reduxjs/toolkit").
|
|
82
|
+
confirmCheckout: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[string], string, string, never, never>;
|
|
69
83
|
cancelCheckout: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
70
84
|
submitCheckout: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
71
85
|
errorCheckout: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[string], string, string, never, never>;
|
|
72
86
|
checkoutEvent: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("./interfaces").CheckoutEvent], import("./interfaces").CheckoutEvent, string, never, never>;
|
|
73
87
|
};
|
|
88
|
+
stripe: {
|
|
89
|
+
setStripeState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[Partial<import("./interfaces").StripeState>], Partial<import("./interfaces").StripeState>, string, never, never>;
|
|
90
|
+
setLoading: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[boolean], boolean, string, never, never>;
|
|
91
|
+
setError: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[string | null], string | null, string, never, never>;
|
|
92
|
+
setState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[Partial<import("./interfaces").StripeState>], Partial<import("./interfaces").StripeState>, string, never, never>;
|
|
93
|
+
loadCustomer: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
94
|
+
createCardSetupIntentSecret: import("@reduxjs/toolkit").ActionCreatorWithPayload<string | null, string>;
|
|
95
|
+
};
|
|
74
96
|
};
|
|
75
97
|
initialState: import("./interfaces").SubscriptionsState;
|
|
76
98
|
storeName: string;
|