@techstuff-dev/foundation-api-utils 2.1.1 → 2.3.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/{shared-DiVQNZtX.js → shared-CdwWllrh.js} +3 -3
- package/dist/cjs/chunks/shared-CdwWllrh.js.map +1 -0
- package/dist/cjs/chunks/{slice-CNrOPYxy.js → slice-Dpwqdz65.js} +726 -323
- package/dist/cjs/chunks/slice-Dpwqdz65.js.map +1 -0
- package/dist/cjs/index.js +9 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/store/index.native.js +4 -3
- package/dist/cjs/store/index.native.js.map +1 -1
- package/dist/cjs/store/index.web.js +4 -3
- package/dist/cjs/store/index.web.js.map +1 -1
- package/dist/esm/chunks/{shared-DCYTxNE2.js → shared-PYY2b9oT.js} +3 -3
- package/dist/esm/chunks/shared-PYY2b9oT.js.map +1 -0
- package/dist/esm/chunks/{slice-DpwJIX84.js → slice-BD3oWPrI.js} +719 -324
- package/dist/esm/chunks/slice-BD3oWPrI.js.map +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/store/index.native.js +4 -3
- package/dist/esm/store/index.native.js.map +1 -1
- package/dist/esm/store/index.web.js +4 -3
- package/dist/esm/store/index.web.js.map +1 -1
- package/dist/types/hooks/index.d.ts +2 -1
- package/dist/types/index-CNDW7aai.d.ts +2881 -0
- package/dist/types/index.d.ts +4 -11
- package/dist/types/store/index.d.ts +2 -1
- package/package.json +3 -3
- package/dist/cjs/chunks/shared-DiVQNZtX.js.map +0 -1
- package/dist/cjs/chunks/slice-CNrOPYxy.js.map +0 -1
- package/dist/esm/chunks/shared-DCYTxNE2.js.map +0 -1
- package/dist/esm/chunks/slice-DpwJIX84.js.map +0 -1
- package/dist/types/index-CjCZfoRJ.d.ts +0 -1351
package/dist/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { F as addToCart, an as applyCoupon, ao as applyTax, a as authApi, A as cartSlice, c as contentApi, aq as createUnwrappingBaseQuery, I as emptyCart, a7 as formatAuthSession, a5 as formatChallengeDays, a4 as formatChallenges, aa as formatConfig, Y as formatFaqs, a8 as formatFedaratedSession, a0 as formatGuests, ag as formatLongform, ah as formatMediaItem, Z as formatPages, $ as formatPress, V as formatPromos, a3 as formatSchedule, af as formatSeasons, a6 as formatSecondsToISO8601Duration, ac as formatSectionItems, ab as formatSectionPanels, a2 as formatSections, ae as formatSeries, _ as formatSettings, X as formatShortform, a9 as formatSocialAuthSession, ad as formatTaxonomies, U as formatUserPayload, a1 as formatVideos, W as formatWorkout, ak as getPlatform, aj as isReactNative, ai as isWeb, am as onlyUnique, o as ordersApi, p as paymentApi, b as productsApi, H as removeFromCart, E as removePromoCode, C as resetTaxRate, al as runOnPlatform, P as selectCartCount, S as selectCartItems, T as selectCartItemsIds, M as selectCartNetTotal, Q as selectCartStatus, O as selectCartTaxAmount, N as selectCartTaxRate, L as selectCartTotal, K as selectMediaInCart, R as selectPromoCode, D as setPromoCode, B as setTaxRate, ap as toCamelCaseObject, J as toggleCart, G as updateCart, w as useFetchOrdersQuery, k as useForgottenPasswordMutation, z as useGetOrderQuery, y as useGetOrdersQuery, s as useGetProductsQuery, h as useGetUserInfoQuery, x as useLazyFetchOrdersQuery, t as useLazyGetProductsQuery, i as useLazyGetUserInfoQuery, m as useLazyVerifyUserAttributesQuery, g as useLazyVerifyUserQuery, q as useLazyVerifyUserResendQuery, v as usePurchaseProductMutation, e as useRegisterMutation, d as useResetPasswordAuthMutation, u as useResetPasswordMutation, j as useUpdateUserInfoMutation, r as useUpdateUserMutation, l as useVerifyUserAttributesQuery, f as useVerifyUserQuery, n as useVerifyUserResendQuery } from './chunks/slice-BD3oWPrI.js';
|
|
2
2
|
export { a as authSlice, g as getUserSession, i as isAuthenticated, e as isVerifying, l as logout, r as resetCreating, b as selectAccessToken, d as selectCurrentUser, h as selectCurrentUserRefreshToken, f as selectCurrentUserSub, c as selectRefreshToken, m as selectSubscription, n as selectSubscriptionPrice, k as selectUserSubscriptionStatus, j as selectUserTokens, s as setCredentials, u as updateSubscription } from './chunks/slice-ChJ8ZvmP.js';
|
|
3
3
|
export { u as useLoggedIn } from './chunks/useAuth-8d6DlERn.js';
|
|
4
4
|
import 'aws-amplify';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { configureStore } from '@reduxjs/toolkit';
|
|
2
2
|
import storage from '@react-native-async-storage/async-storage';
|
|
3
|
-
import { p as paymentApi, a as authApi, c as contentApi, o as ordersApi } from '../chunks/slice-
|
|
4
|
-
import { r as rootReducer } from '../chunks/shared-
|
|
3
|
+
import { p as paymentApi, b as productsApi, a as authApi, c as contentApi, o as ordersApi } from '../chunks/slice-BD3oWPrI.js';
|
|
4
|
+
import { r as rootReducer } from '../chunks/shared-PYY2b9oT.js';
|
|
5
5
|
import 'aws-amplify';
|
|
6
6
|
import '../chunks/slice-ChJ8ZvmP.js';
|
|
7
7
|
import 'react-redux';
|
|
@@ -38,7 +38,7 @@ const makeStore = () => {
|
|
|
38
38
|
const PERSIST = reduxPersist.PERSIST;
|
|
39
39
|
const PURGE = reduxPersist.PURGE;
|
|
40
40
|
const REGISTER = reduxPersist.REGISTER;
|
|
41
|
-
storageBlackList.push(paymentApi.reducerPath, authApi.reducerPath, contentApi.reducerPath, ordersApi.reducerPath);
|
|
41
|
+
storageBlackList.push(paymentApi.reducerPath, productsApi.reducerPath, authApi.reducerPath, contentApi.reducerPath, ordersApi.reducerPath);
|
|
42
42
|
const persistConfig = {
|
|
43
43
|
key: 'root',
|
|
44
44
|
storage,
|
|
@@ -51,6 +51,7 @@ const makeStore = () => {
|
|
|
51
51
|
authApi.middleware,
|
|
52
52
|
contentApi.middleware,
|
|
53
53
|
paymentApi.middleware,
|
|
54
|
+
productsApi.middleware,
|
|
54
55
|
ordersApi.middleware,
|
|
55
56
|
];
|
|
56
57
|
return configureStore({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.js","sources":["../../../lib/store/index.native.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.native.js","sources":["../../../lib/store/index.native.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;AAqBA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA,MAAM,gBAAgB,GAAa,EAAE;AAErC;AACA;AACA;AACA;AACO,MAAM,SAAS,GAAG,MAAK;IAC5B,MAAM,eAAe,GAAQ,EAAE;;AAG/B,IAAA,MAAM,YAAY,GAAG,OAAO,CAAC,eAAe,CAAC;;IAE7C,MAAM,cAAc,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC,cAAc;AAC9D,IAAA,MAAM,KAAK,GAAG,YAAY,CAAC,KAAK;AAChC,IAAA,MAAM,SAAS,GAAG,YAAY,CAAC,SAAS;AACxC,IAAA,MAAM,KAAK,GAAG,YAAY,CAAC,KAAK;AAChC,IAAA,MAAM,OAAO,GAAG,YAAY,CAAC,OAAO;AACpC,IAAA,MAAM,KAAK,GAAG,YAAY,CAAC,KAAK;AAChC,IAAA,MAAM,QAAQ,GAAG,YAAY,CAAC,QAAQ;IAEtC,gBAAgB,CAAC,IAAI,CACnB,UAAU,CAAC,WAAW,EACtB,WAAW,CAAC,WAAW,EACvB,OAAO,CAAC,WAAW,EACnB,UAAU,CAAC,WAAW,EACtB,SAAS,CAAC,WAAW,CACtB;AAED,IAAA,MAAM,aAAa,GAAG;AACpB,QAAA,GAAG,EAAE,MAAM;QACX,OAAO;;AAEP,QAAA,SAAS,EAAE,gBAAgB;KAC5B;IACD,MAAM,gBAAgB,GAAG,cAAc,CAAC,aAAa,EAAE,WAAW,CAAC;IACnE,MAAM,YAAY,GAAG,gBAAgB;AAErC,IAAA,MAAM,WAAW,GAAG;AAClB,QAAA,OAAO,CAAC,UAAU;AAClB,QAAA,UAAU,CAAC,UAAU;AACrB,QAAA,UAAU,CAAC,UAAU;AACrB,QAAA,WAAW,CAAC,UAAU;AACtB,QAAA,SAAS,CAAC,UAAU;KACrB;AAED,IAAA,OAAO,cAAc,CAAC;AACpB,QAAA,OAAO,EAAE,YAAY;;;AAGrB,QAAA,UAAU,EAAE,CAAC,oBAAoB,KAAI;AACnC,YAAA,OAAO,oBAAoB,CAAC;AAC1B,gBAAA,cAAc,EAAE,EAAE,SAAS,EAAE,GAAG,EAAE;AAClC,gBAAA,iBAAiB,EAAE;AACjB,oBAAA,SAAS,EAAE,GAAG;AACd,oBAAA,cAAc,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,CAAC;AACpE,iBAAA;AACF,aAAA,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC;QACxB,CAAC;AACD,QAAA,SAAS,EAAE,CAAC,mBAAmB,KAAI;AACjC,YAAA,OAAO,mBAAmB,EAAE,CAAC,MAAM,CAAC,eAAe,CAAC;QACtD,CAAC;AACF,KAAA,CAAC;AACJ;AAEO,MAAM,KAAK,GAAG,SAAS;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { configureStore } from '@reduxjs/toolkit';
|
|
2
|
-
import { p as paymentApi, a as authApi, c as contentApi, o as ordersApi } from '../chunks/slice-
|
|
3
|
-
import { r as rootReducer } from '../chunks/shared-
|
|
2
|
+
import { p as paymentApi, b as productsApi, a as authApi, c as contentApi, o as ordersApi } from '../chunks/slice-BD3oWPrI.js';
|
|
3
|
+
import { r as rootReducer } from '../chunks/shared-PYY2b9oT.js';
|
|
4
4
|
import 'aws-amplify';
|
|
5
5
|
import '../chunks/slice-ChJ8ZvmP.js';
|
|
6
6
|
import 'react-redux';
|
|
@@ -149,7 +149,7 @@ const makeStore = () => {
|
|
|
149
149
|
const PURGE = reduxPersist.PURGE;
|
|
150
150
|
const REGISTER = reduxPersist.REGISTER;
|
|
151
151
|
const storage = createPersistStorage();
|
|
152
|
-
storageBlackList.push(paymentApi.reducerPath, authApi.reducerPath, contentApi.reducerPath, ordersApi.reducerPath);
|
|
152
|
+
storageBlackList.push(paymentApi.reducerPath, productsApi.reducerPath, authApi.reducerPath, contentApi.reducerPath, ordersApi.reducerPath);
|
|
153
153
|
const persistConfig = {
|
|
154
154
|
key: 'root',
|
|
155
155
|
storage,
|
|
@@ -160,6 +160,7 @@ const makeStore = () => {
|
|
|
160
160
|
authApi.middleware,
|
|
161
161
|
contentApi.middleware,
|
|
162
162
|
paymentApi.middleware,
|
|
163
|
+
productsApi.middleware,
|
|
163
164
|
ordersApi.middleware,
|
|
164
165
|
];
|
|
165
166
|
// `combineSlices` automatically combines the reducers using
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.web.js","sources":["../../../node_modules/redux-persist/lib/storage/getStorage.js","../../../node_modules/redux-persist/lib/storage/createWebStorage.js","../../../lib/store/storage.ts","../../../lib/store/index.web.ts"],"sourcesContent":["\"use strict\";\n\nexports.__esModule = true;\nexports.default = getStorage;\n\nfunction _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction noop() {}\n\nvar noopStorage = {\n getItem: noop,\n setItem: noop,\n removeItem: noop\n};\n\nfunction hasStorage(storageType) {\n if ((typeof self === \"undefined\" ? \"undefined\" : _typeof(self)) !== 'object' || !(storageType in self)) {\n return false;\n }\n\n try {\n var storage = self[storageType];\n var testKey = \"redux-persist \".concat(storageType, \" test\");\n storage.setItem(testKey, 'test');\n storage.getItem(testKey);\n storage.removeItem(testKey);\n } catch (e) {\n if (process.env.NODE_ENV !== 'production') console.warn(\"redux-persist \".concat(storageType, \" test failed, persistence will be disabled.\"));\n return false;\n }\n\n return true;\n}\n\nfunction getStorage(type) {\n var storageType = \"\".concat(type, \"Storage\");\n if (hasStorage(storageType)) return self[storageType];else {\n if (process.env.NODE_ENV !== 'production') {\n console.error(\"redux-persist failed to create sync storage. falling back to noop storage.\");\n }\n\n return noopStorage;\n }\n}","\"use strict\";\n\nexports.__esModule = true;\nexports.default = createWebStorage;\n\nvar _getStorage = _interopRequireDefault(require(\"./getStorage\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction createWebStorage(type) {\n var storage = (0, _getStorage.default)(type);\n return {\n getItem: function getItem(key) {\n return new Promise(function (resolve, reject) {\n resolve(storage.getItem(key));\n });\n },\n setItem: function setItem(key, item) {\n return new Promise(function (resolve, reject) {\n resolve(storage.setItem(key, item));\n });\n },\n removeItem: function removeItem(key) {\n return new Promise(function (resolve, reject) {\n resolve(storage.removeItem(key));\n });\n }\n };\n}",null,null],"names":["getStorage_1","getStorage","createWebStorage_1","require$$0"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAEA,CAAAA,UAAO,cAAc,IAAI;AACzB,CAAAA,UAAA,CAAA,OAAe,GAAGC,YAAU;;AAE5B,CAAA,SAAS,OAAO,CAAC,GAAG,EAAE,EAAE,IAAI,OAAO,MAAM,KAAK,UAAU,IAAI,OAAO,MAAM,CAAC,QAAQ,KAAK,QAAQ,EAAE,EAAE,OAAO,GAAG,SAAS,OAAO,CAAC,GAAG,EAAE,EAAE,OAAO,OAAO,GAAG,CAAC,CAAA,CAAE,CAAC,EAAE,MAAM,EAAE,OAAO,GAAG,SAAS,OAAO,CAAC,GAAG,EAAE,EAAE,OAAO,GAAG,IAAI,OAAO,MAAM,KAAK,UAAU,IAAI,GAAG,CAAC,WAAW,KAAK,MAAM,IAAI,GAAG,KAAK,MAAM,CAAC,SAAS,GAAG,QAAQ,GAAG,OAAO,GAAG,CAAC,CAAA,CAAE,CAAC,EAAE,CAAC,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,CAAA;;AAE7V,CAAA,SAAS,IAAI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AQ,EAAE;QACZ,OAAO;YACL,OAAO,GAAA;AACL,gBAAA,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC;YAC9B,CAAC;YACD,OAAO,GAAA;AACL,gBAAA,OAAO,OAAO,CAAC,OAAO,EAAE;YAC1B,CAAC;YACD,UAAU,GAAA;AACR,gBAAA,OAAO,OAAO,CAAC,OAAO,EAAE;YAC1B,CAAC;SACF;IACH;AAEA,IAAA,OAAO,gBAAgB,CAAC,OAAO,CAAC;AAClC;;
|
|
1
|
+
{"version":3,"file":"index.web.js","sources":["../../../node_modules/redux-persist/lib/storage/getStorage.js","../../../node_modules/redux-persist/lib/storage/createWebStorage.js","../../../lib/store/storage.ts","../../../lib/store/index.web.ts"],"sourcesContent":["\"use strict\";\n\nexports.__esModule = true;\nexports.default = getStorage;\n\nfunction _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction noop() {}\n\nvar noopStorage = {\n getItem: noop,\n setItem: noop,\n removeItem: noop\n};\n\nfunction hasStorage(storageType) {\n if ((typeof self === \"undefined\" ? \"undefined\" : _typeof(self)) !== 'object' || !(storageType in self)) {\n return false;\n }\n\n try {\n var storage = self[storageType];\n var testKey = \"redux-persist \".concat(storageType, \" test\");\n storage.setItem(testKey, 'test');\n storage.getItem(testKey);\n storage.removeItem(testKey);\n } catch (e) {\n if (process.env.NODE_ENV !== 'production') console.warn(\"redux-persist \".concat(storageType, \" test failed, persistence will be disabled.\"));\n return false;\n }\n\n return true;\n}\n\nfunction getStorage(type) {\n var storageType = \"\".concat(type, \"Storage\");\n if (hasStorage(storageType)) return self[storageType];else {\n if (process.env.NODE_ENV !== 'production') {\n console.error(\"redux-persist failed to create sync storage. falling back to noop storage.\");\n }\n\n return noopStorage;\n }\n}","\"use strict\";\n\nexports.__esModule = true;\nexports.default = createWebStorage;\n\nvar _getStorage = _interopRequireDefault(require(\"./getStorage\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction createWebStorage(type) {\n var storage = (0, _getStorage.default)(type);\n return {\n getItem: function getItem(key) {\n return new Promise(function (resolve, reject) {\n resolve(storage.getItem(key));\n });\n },\n setItem: function setItem(key, item) {\n return new Promise(function (resolve, reject) {\n resolve(storage.setItem(key, item));\n });\n },\n removeItem: function removeItem(key) {\n return new Promise(function (resolve, reject) {\n resolve(storage.removeItem(key));\n });\n }\n };\n}",null,null],"names":["getStorage_1","getStorage","createWebStorage_1","require$$0"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAEA,CAAAA,UAAO,cAAc,IAAI;AACzB,CAAAA,UAAA,CAAA,OAAe,GAAGC,YAAU;;AAE5B,CAAA,SAAS,OAAO,CAAC,GAAG,EAAE,EAAE,IAAI,OAAO,MAAM,KAAK,UAAU,IAAI,OAAO,MAAM,CAAC,QAAQ,KAAK,QAAQ,EAAE,EAAE,OAAO,GAAG,SAAS,OAAO,CAAC,GAAG,EAAE,EAAE,OAAO,OAAO,GAAG,CAAC,CAAA,CAAE,CAAC,EAAE,MAAM,EAAE,OAAO,GAAG,SAAS,OAAO,CAAC,GAAG,EAAE,EAAE,OAAO,GAAG,IAAI,OAAO,MAAM,KAAK,UAAU,IAAI,GAAG,CAAC,WAAW,KAAK,MAAM,IAAI,GAAG,KAAK,MAAM,CAAC,SAAS,GAAG,QAAQ,GAAG,OAAO,GAAG,CAAC,CAAA,CAAE,CAAC,EAAE,CAAC,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,CAAA;;AAE7V,CAAA,SAAS,IAAI,GAAG,CAAA;;AAEhB,CAAA,IAAI,WAAW,GAAG;GAChB,OAAO,EAAE,IAAI;GACb,OAAO,EAAE,IAAI;AACf,GAAE,UAAU,EAAE;EACb;;CAED,SAAS,U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AAG,cAAc,CAAC,aAAa,EAAE,WAAW,CAAC;IAEnE,MAAM,eAAe,GAAQ,EAAE;AAE/B,IAAA,OAAO,cAAc,CAAC;AACpB,QAAA,OAAO,EAAE,gBAAgB;;;AAGzB,QAAA,UAAU,EAAE,CAAC,oBAAoB,KAAI;AACnC,YAAA,OAAO,oBAAoB,CAAC;AAC1B,gBAAA,cAAc,EAAE,EAAE,SAAS,EAAE,GAAG,EAAE;AAClC,gBAAA,iBAAiB,EAAE;AACjB,oBAAA,SAAS,EAAE,GAAG;AACd,oBAAA,cAAc,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,CAAC;AACpE,iBAAA;AACF,aAAA,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC;QACxB,CAAC;AACD,QAAA,SAAS,EAAE,CAAC,mBAAmB,KAAI;AACjC,YAAA,OAAO,mBAAmB,EAAE,CAAC,MAAM,CAAC,eAAe,CAAC;QACtD,CAAC;AACF,KAAA,CAAC;AACJ;AAEO,MAAM,KAAK,GAAG,SAAS;;;;","x_google_ignoreList":[0,1]}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { TypedUseSelectorHook } from 'react-redux';
|
|
2
|
-
import {
|
|
2
|
+
import { aw as AppDispatch, as as RootState, av as AppStore } from '../index-CNDW7aai.js';
|
|
3
3
|
import '@reduxjs/toolkit';
|
|
4
4
|
import '@reduxjs/toolkit/query';
|
|
5
|
+
import '@reduxjs/toolkit/query/react';
|
|
5
6
|
|
|
6
7
|
declare const useLoggedIn: () => boolean;
|
|
7
8
|
|