@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
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontegg/redux-store",
|
|
3
3
|
"libName": "FronteggReduxStore",
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.24.0",
|
|
5
5
|
"author": "Frontegg LTD",
|
|
6
6
|
"main": "./node/index.js",
|
|
7
7
|
"module": "./index.js",
|
|
8
8
|
"types": "./index.d.ts",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@frontegg/rest-api": "2.10.
|
|
10
|
+
"@frontegg/rest-api": "2.10.58",
|
|
11
11
|
"@reduxjs/toolkit": "^1.5.0",
|
|
12
12
|
"redux-saga": "^1.1.0",
|
|
13
13
|
"tslib": "^2.3.1",
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ManagedSubscriptionsState } from './interfaces';
|
|
2
|
+
export declare const managedSubscriptionsInitialState: ManagedSubscriptionsState;
|
|
3
|
+
declare const reducer: import("redux").Reducer<ManagedSubscriptionsState, import("redux").AnyAction>;
|
|
4
|
+
declare const actions: {
|
|
5
|
+
setLoading: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[boolean], boolean, string, never, never>;
|
|
6
|
+
setError: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[string | null], string | null, string, never, never>;
|
|
7
|
+
setState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[Partial<ManagedSubscriptionsState>], Partial<ManagedSubscriptionsState>, string, never, never>;
|
|
8
|
+
loadManagedSubscriptions: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
9
|
+
};
|
|
10
|
+
export { reducer as managedSubscriptionsReducer, actions as managedSubscriptionsActions };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { SubscriptionCancellation, SubscriptionItem } from '../general.interfaces';
|
|
2
|
+
export declare enum ManagedSubscriptionStatus {
|
|
3
|
+
ACTIVE = "ACTIVE",
|
|
4
|
+
CANCELED = "CANCELED",
|
|
5
|
+
INCOMPLETE = "INCOMPLETE",
|
|
6
|
+
EXPIRED = "EXPIRED",
|
|
7
|
+
TRIALING = "TRIALING"
|
|
8
|
+
}
|
|
9
|
+
export interface ManagedSubscription {
|
|
10
|
+
id: string;
|
|
11
|
+
externalId: string;
|
|
12
|
+
startDate: Date;
|
|
13
|
+
currentPeriodStart: Date;
|
|
14
|
+
currentPeriodEnd: Date;
|
|
15
|
+
status: ManagedSubscriptionStatus;
|
|
16
|
+
cancellation: SubscriptionCancellation | null;
|
|
17
|
+
items: SubscriptionItem[];
|
|
18
|
+
trialEnd?: Date;
|
|
19
|
+
}
|
|
20
|
+
export interface ManagedSubscriptionsState {
|
|
21
|
+
loading: boolean;
|
|
22
|
+
error: string | null;
|
|
23
|
+
fetching: boolean;
|
|
24
|
+
managedSubscriptions: ManagedSubscription[];
|
|
25
|
+
}
|
|
26
|
+
export interface ManagedSubscriptionsActions {
|
|
27
|
+
loadManagedSubscriptions: () => void;
|
|
28
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function managedSubscriptionsSagas(): Generator<import("redux-saga/effects").ForkEffect<never>, void, unknown>;
|
package/subscriptions/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ declare const _default: {
|
|
|
12
12
|
plans: import("./interfaces").PlansState;
|
|
13
13
|
checkout: import("./interfaces").CheckoutState;
|
|
14
14
|
stripe: import("./interfaces").StripeState;
|
|
15
|
+
managedSubscriptions: import("./interfaces").ManagedSubscriptionsState;
|
|
15
16
|
}>, import("redux").AnyAction>;
|
|
16
17
|
actions: {
|
|
17
18
|
config: {
|
|
@@ -91,6 +92,12 @@ declare const _default: {
|
|
|
91
92
|
loadCustomer: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
92
93
|
createCardSetupIntentSecret: import("@reduxjs/toolkit").ActionCreatorWithPayload<string | null, string>;
|
|
93
94
|
};
|
|
95
|
+
managedSubscriptions: {
|
|
96
|
+
setLoading: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[boolean], boolean, string, never, never>;
|
|
97
|
+
setError: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[string | null], string | null, string, never, never>;
|
|
98
|
+
setState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[Partial<import("./interfaces").ManagedSubscriptionsState>], Partial<import("./interfaces").ManagedSubscriptionsState>, string, never, never>;
|
|
99
|
+
loadManagedSubscriptions: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
100
|
+
};
|
|
94
101
|
};
|
|
95
102
|
initialState: import("./interfaces").SubscriptionsState;
|
|
96
103
|
storeName: string;
|