@techstuff-dev/foundation-api-utils 1.47.0 → 1.48.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/dist/cjs/chunks/index-CfrYa4U_.js +9 -0
- package/dist/cjs/chunks/index-CfrYa4U_.js.map +1 -0
- package/dist/cjs/chunks/shared-DeNXjWb4.js +18 -0
- package/dist/cjs/chunks/shared-DeNXjWb4.js.map +1 -0
- package/dist/{index.js → cjs/chunks/slice-CAWa47E3.js} +662 -800
- package/dist/cjs/chunks/slice-CAWa47E3.js.map +1 -0
- package/dist/cjs/index.js +97 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/store/index.native.js +413 -0
- package/dist/cjs/store/index.native.js.map +1 -0
- package/dist/cjs/store/index.web.js +186 -0
- package/dist/cjs/store/index.web.js.map +1 -0
- package/dist/esm/chunks/index-KjhWa1AL.js +6 -0
- package/dist/esm/chunks/index-KjhWa1AL.js.map +1 -0
- package/dist/esm/chunks/shared-CmoKpoEq.js +15 -0
- package/dist/esm/chunks/shared-CmoKpoEq.js.map +1 -0
- package/dist/{index.esm.js → esm/chunks/slice-CRuD2Hce.js} +663 -797
- package/dist/esm/chunks/slice-CRuD2Hce.js.map +1 -0
- package/dist/esm/index.js +15 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/store/index.native.js +411 -0
- package/dist/esm/store/index.native.js.map +1 -0
- package/dist/esm/store/index.web.js +184 -0
- package/dist/esm/store/index.web.js.map +1 -0
- package/dist/types/index-DQ61f1lz.d.ts +1295 -0
- package/dist/{index.d.ts → types/index.d.ts} +63 -1299
- package/dist/types/store/index.d.ts +3 -0
- package/package.json +23 -9
- package/dist/index.esm.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/lib/api/index.d.ts +0 -21
- package/dist/lib/hooks/index.d.ts +0 -4
- package/dist/lib/hooks/useAuth.d.ts +0 -1
- package/dist/lib/index.d.ts +0 -6
- package/dist/lib/services/auth/index.d.ts +0 -2027
- package/dist/lib/services/auth/slice.d.ts +0 -91
- package/dist/lib/services/cart/slice.d.ts +0 -155
- package/dist/lib/services/content/content.interfaces.d.ts +0 -801
- package/dist/lib/services/content/index.d.ts +0 -532
- package/dist/lib/services/index.d.ts +0 -7
- package/dist/lib/services/orders/index.d.ts +0 -271
- package/dist/lib/services/payment/index.d.ts +0 -1063
- package/dist/lib/store/index.d.ts +0 -2
- package/dist/lib/store/index.native.d.ts +0 -68
- package/dist/lib/store/index.web.d.ts +0 -68
- package/dist/lib/store/storage.d.ts +0 -2
- package/dist/lib/types/index.interfaces.d.ts +0 -428
- package/dist/lib/utils/dataFormat/index.d.ts +0 -86
- package/dist/lib/utils/helpers/index.d.ts +0 -14
- package/dist/node_modules/@reduxjs/toolkit/dist/uncheckedindexed.d.ts +0 -5
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { Slice } from '@reduxjs/toolkit';
|
|
2
|
-
import { AuthState, UserDetails } from '../../types/index.interfaces';
|
|
3
|
-
export declare const authSlice: Slice<AuthState, {
|
|
4
|
-
setCredentials: (state: AuthState, data: {
|
|
5
|
-
payload: any;
|
|
6
|
-
type: string;
|
|
7
|
-
}) => void;
|
|
8
|
-
resetCreating: (state: AuthState) => void;
|
|
9
|
-
updateSubscription: (state: AuthState, data: {
|
|
10
|
-
payload: any;
|
|
11
|
-
type: string;
|
|
12
|
-
}) => void;
|
|
13
|
-
logout: () => void;
|
|
14
|
-
}, 'auth', '', {
|
|
15
|
-
isAuthenticated: (state: AuthState) => boolean;
|
|
16
|
-
selectAccessToken: (state: AuthState) => string | undefined;
|
|
17
|
-
selectRefreshToken: (state: AuthState) => string | undefined;
|
|
18
|
-
selectCurrentUser: (state: AuthState) => UserDetails | undefined;
|
|
19
|
-
isVerifying: (state: AuthState) => boolean;
|
|
20
|
-
getUserSession: (state: AuthState) => string | boolean | undefined;
|
|
21
|
-
selectCurrentUserSub: (state: AuthState) => string | undefined;
|
|
22
|
-
selectCurrentUserRefreshToken: (state: AuthState) => string | undefined;
|
|
23
|
-
selectUserTokens: (state: AuthState) => {
|
|
24
|
-
accessToken: string | undefined;
|
|
25
|
-
refreshToken: string | undefined;
|
|
26
|
-
idToken: string | undefined;
|
|
27
|
-
};
|
|
28
|
-
selectUserSubscriptionStatus: (state: AuthState) => string | undefined;
|
|
29
|
-
selectSubscription: (state: AuthState) => any;
|
|
30
|
-
selectSubscriptionPrice: (state: AuthState) => number | undefined;
|
|
31
|
-
}>;
|
|
32
|
-
export declare const setCredentials: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "auth/setCredentials">, resetCreating: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"auth/resetCreating">, logout: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"auth/logout">, updateSubscription: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "auth/updateSubscription">;
|
|
33
|
-
export declare const isAuthenticated: import("reselect").Selector<{
|
|
34
|
-
"": AuthState;
|
|
35
|
-
}, boolean, []> & {
|
|
36
|
-
unwrapped: (state: AuthState) => boolean;
|
|
37
|
-
}, selectAccessToken: import("reselect").Selector<{
|
|
38
|
-
"": AuthState;
|
|
39
|
-
}, string | undefined, []> & {
|
|
40
|
-
unwrapped: (state: AuthState) => string | undefined;
|
|
41
|
-
}, selectRefreshToken: import("reselect").Selector<{
|
|
42
|
-
"": AuthState;
|
|
43
|
-
}, string | undefined, []> & {
|
|
44
|
-
unwrapped: (state: AuthState) => string | undefined;
|
|
45
|
-
}, selectCurrentUser: import("reselect").Selector<{
|
|
46
|
-
"": AuthState;
|
|
47
|
-
}, UserDetails | undefined, []> & {
|
|
48
|
-
unwrapped: (state: AuthState) => UserDetails | undefined;
|
|
49
|
-
}, isVerifying: import("reselect").Selector<{
|
|
50
|
-
"": AuthState;
|
|
51
|
-
}, boolean, []> & {
|
|
52
|
-
unwrapped: (state: AuthState) => boolean;
|
|
53
|
-
}, getUserSession: import("reselect").Selector<{
|
|
54
|
-
"": AuthState;
|
|
55
|
-
}, string | boolean | undefined, []> & {
|
|
56
|
-
unwrapped: (state: AuthState) => string | boolean | undefined;
|
|
57
|
-
}, selectCurrentUserSub: import("reselect").Selector<{
|
|
58
|
-
"": AuthState;
|
|
59
|
-
}, string | undefined, []> & {
|
|
60
|
-
unwrapped: (state: AuthState) => string | undefined;
|
|
61
|
-
}, selectCurrentUserRefreshToken: import("reselect").Selector<{
|
|
62
|
-
"": AuthState;
|
|
63
|
-
}, string | undefined, []> & {
|
|
64
|
-
unwrapped: (state: AuthState) => string | undefined;
|
|
65
|
-
}, selectUserTokens: import("reselect").Selector<{
|
|
66
|
-
"": AuthState;
|
|
67
|
-
}, {
|
|
68
|
-
accessToken: string | undefined;
|
|
69
|
-
refreshToken: string | undefined;
|
|
70
|
-
idToken: string | undefined;
|
|
71
|
-
}, []> & {
|
|
72
|
-
unwrapped: (state: AuthState) => {
|
|
73
|
-
accessToken: string | undefined;
|
|
74
|
-
refreshToken: string | undefined;
|
|
75
|
-
idToken: string | undefined;
|
|
76
|
-
};
|
|
77
|
-
}, selectUserSubscriptionStatus: import("reselect").Selector<{
|
|
78
|
-
"": AuthState;
|
|
79
|
-
}, string | undefined, []> & {
|
|
80
|
-
unwrapped: (state: AuthState) => string | undefined;
|
|
81
|
-
}, selectSubscription: import("reselect").Selector<{
|
|
82
|
-
"": AuthState;
|
|
83
|
-
}, any, []> & {
|
|
84
|
-
unwrapped: (state: AuthState) => any;
|
|
85
|
-
}, selectSubscriptionPrice: import("reselect").Selector<{
|
|
86
|
-
"": AuthState;
|
|
87
|
-
}, number | undefined, []> & {
|
|
88
|
-
unwrapped: (state: AuthState) => number | undefined;
|
|
89
|
-
};
|
|
90
|
-
declare const _default: import("redux").Reducer<AuthState>;
|
|
91
|
-
export default _default;
|
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
import type { PayloadAction, Slice } from '@reduxjs/toolkit';
|
|
2
|
-
export declare const cartSlice: Slice<CartState, {
|
|
3
|
-
setTaxRate: (state: CartState, action: PayloadAction<any>) => CartState;
|
|
4
|
-
resetTaxRate: (state: CartState, action: PayloadAction<any>) => CartState;
|
|
5
|
-
setPromoCode: (state: CartState, action: PayloadAction<any>) => CartState;
|
|
6
|
-
removePromoCode: (state: CartState, action: PayloadAction<any>) => CartState;
|
|
7
|
-
addToCart: (state: CartState, action: PayloadAction<any>) => CartState;
|
|
8
|
-
updateCart: (state: CartState, action: PayloadAction<any>) => CartState;
|
|
9
|
-
removeFromCart: (state: CartState, action: PayloadAction<any>) => CartState;
|
|
10
|
-
toggleCart: (state: CartState, action: PayloadAction<any>) => CartState;
|
|
11
|
-
emptyCart: (state: CartState) => CartState;
|
|
12
|
-
}, 'cart', '', {
|
|
13
|
-
selectMediaInCart: (state: CartState) => MediaEntity[];
|
|
14
|
-
selectCartTotal: (state: CartState) => number;
|
|
15
|
-
selectCartNetTotal: (state: CartState) => number;
|
|
16
|
-
selectCartTaxRate: (state: CartState) => {
|
|
17
|
-
country: string;
|
|
18
|
-
percentage: number;
|
|
19
|
-
};
|
|
20
|
-
selectCartTaxAmount: (state: CartState) => number;
|
|
21
|
-
selectCartCount: (state: CartState) => number;
|
|
22
|
-
selectCartStatus: (state: CartState) => boolean;
|
|
23
|
-
selectPromoCode: (state: CartState) => {
|
|
24
|
-
code: string;
|
|
25
|
-
name: string;
|
|
26
|
-
discount: string;
|
|
27
|
-
discountedAmount: number;
|
|
28
|
-
};
|
|
29
|
-
}>;
|
|
30
|
-
export declare const setTaxRate: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "cart/setTaxRate">, resetTaxRate: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "cart/resetTaxRate">, setPromoCode: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "cart/setPromoCode">, removePromoCode: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "cart/removePromoCode">, addToCart: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "cart/addToCart">, updateCart: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "cart/updateCart">, removeFromCart: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "cart/removeFromCart">, emptyCart: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"cart/emptyCart">, toggleCart: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "cart/toggleCart">;
|
|
31
|
-
export declare const selectMediaInCart: import("reselect").Selector<{
|
|
32
|
-
"": CartState;
|
|
33
|
-
}, MediaEntity[], []> & {
|
|
34
|
-
unwrapped: (state: CartState) => MediaEntity[];
|
|
35
|
-
}, selectCartTotal: import("reselect").Selector<{
|
|
36
|
-
"": CartState;
|
|
37
|
-
}, number, []> & {
|
|
38
|
-
unwrapped: (state: CartState) => number;
|
|
39
|
-
}, selectCartNetTotal: import("reselect").Selector<{
|
|
40
|
-
"": CartState;
|
|
41
|
-
}, number, []> & {
|
|
42
|
-
unwrapped: (state: CartState) => number;
|
|
43
|
-
}, selectCartTaxRate: import("reselect").Selector<{
|
|
44
|
-
"": CartState;
|
|
45
|
-
}, {
|
|
46
|
-
country: string;
|
|
47
|
-
percentage: number;
|
|
48
|
-
}, []> & {
|
|
49
|
-
unwrapped: (state: CartState) => {
|
|
50
|
-
country: string;
|
|
51
|
-
percentage: number;
|
|
52
|
-
};
|
|
53
|
-
}, selectCartTaxAmount: import("reselect").Selector<{
|
|
54
|
-
"": CartState;
|
|
55
|
-
}, number, []> & {
|
|
56
|
-
unwrapped: (state: CartState) => number;
|
|
57
|
-
}, selectCartCount: import("reselect").Selector<{
|
|
58
|
-
"": CartState;
|
|
59
|
-
}, number, []> & {
|
|
60
|
-
unwrapped: (state: CartState) => number;
|
|
61
|
-
}, selectCartStatus: import("reselect").Selector<{
|
|
62
|
-
"": CartState;
|
|
63
|
-
}, boolean, []> & {
|
|
64
|
-
unwrapped: (state: CartState) => boolean;
|
|
65
|
-
}, selectPromoCode: import("reselect").Selector<{
|
|
66
|
-
"": CartState;
|
|
67
|
-
}, {
|
|
68
|
-
code: string;
|
|
69
|
-
name: string;
|
|
70
|
-
discount: string;
|
|
71
|
-
discountedAmount: number;
|
|
72
|
-
}, []> & {
|
|
73
|
-
unwrapped: (state: CartState) => {
|
|
74
|
-
code: string;
|
|
75
|
-
name: string;
|
|
76
|
-
discount: string;
|
|
77
|
-
discountedAmount: number;
|
|
78
|
-
};
|
|
79
|
-
};
|
|
80
|
-
export declare const selectCartItems: ((state: {
|
|
81
|
-
"": CartState;
|
|
82
|
-
}) => {
|
|
83
|
-
title: string;
|
|
84
|
-
file: string;
|
|
85
|
-
options: Options;
|
|
86
|
-
script: string;
|
|
87
|
-
}[]) & {
|
|
88
|
-
clearCache: () => void;
|
|
89
|
-
resultsCount: () => number;
|
|
90
|
-
resetResultsCount: () => void;
|
|
91
|
-
} & {
|
|
92
|
-
resultFunc: (resultFuncArgs_0: MediaEntity[]) => {
|
|
93
|
-
title: string;
|
|
94
|
-
file: string;
|
|
95
|
-
options: Options;
|
|
96
|
-
script: string;
|
|
97
|
-
}[];
|
|
98
|
-
memoizedResultFunc: ((resultFuncArgs_0: MediaEntity[]) => {
|
|
99
|
-
title: string;
|
|
100
|
-
file: string;
|
|
101
|
-
options: Options;
|
|
102
|
-
script: string;
|
|
103
|
-
}[]) & {
|
|
104
|
-
clearCache: () => void;
|
|
105
|
-
resultsCount: () => number;
|
|
106
|
-
resetResultsCount: () => void;
|
|
107
|
-
};
|
|
108
|
-
lastResult: () => {
|
|
109
|
-
title: string;
|
|
110
|
-
file: string;
|
|
111
|
-
options: Options;
|
|
112
|
-
script: string;
|
|
113
|
-
}[];
|
|
114
|
-
dependencies: [import("reselect").Selector<{
|
|
115
|
-
"": CartState;
|
|
116
|
-
}, MediaEntity[], []> & {
|
|
117
|
-
unwrapped: (state: CartState) => MediaEntity[];
|
|
118
|
-
}];
|
|
119
|
-
recomputations: () => number;
|
|
120
|
-
resetRecomputations: () => void;
|
|
121
|
-
dependencyRecomputations: () => number;
|
|
122
|
-
resetDependencyRecomputations: () => void;
|
|
123
|
-
} & {
|
|
124
|
-
memoize: typeof import("reselect").weakMapMemoize;
|
|
125
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
126
|
-
};
|
|
127
|
-
export declare const selectCartItemsIds: ((state: {
|
|
128
|
-
"": CartState;
|
|
129
|
-
}) => string[]) & {
|
|
130
|
-
clearCache: () => void;
|
|
131
|
-
resultsCount: () => number;
|
|
132
|
-
resetResultsCount: () => void;
|
|
133
|
-
} & {
|
|
134
|
-
resultFunc: (resultFuncArgs_0: MediaEntity[]) => string[];
|
|
135
|
-
memoizedResultFunc: ((resultFuncArgs_0: MediaEntity[]) => string[]) & {
|
|
136
|
-
clearCache: () => void;
|
|
137
|
-
resultsCount: () => number;
|
|
138
|
-
resetResultsCount: () => void;
|
|
139
|
-
};
|
|
140
|
-
lastResult: () => string[];
|
|
141
|
-
dependencies: [import("reselect").Selector<{
|
|
142
|
-
"": CartState;
|
|
143
|
-
}, MediaEntity[], []> & {
|
|
144
|
-
unwrapped: (state: CartState) => MediaEntity[];
|
|
145
|
-
}];
|
|
146
|
-
recomputations: () => number;
|
|
147
|
-
resetRecomputations: () => void;
|
|
148
|
-
dependencyRecomputations: () => number;
|
|
149
|
-
resetDependencyRecomputations: () => void;
|
|
150
|
-
} & {
|
|
151
|
-
memoize: typeof import("reselect").weakMapMemoize;
|
|
152
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
153
|
-
};
|
|
154
|
-
declare const _default: import("redux").Reducer<CartState>;
|
|
155
|
-
export default _default;
|