@techstuff-dev/foundation-api-utils 2.8.0 → 2.8.1
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-l1zCzYJr.js → shared-CbwwPaK0.js} +2 -2
- package/dist/cjs/chunks/{shared-l1zCzYJr.js.map → shared-CbwwPaK0.js.map} +1 -1
- package/dist/cjs/chunks/{slice-Bu9L_cVR.js → slice-BPKtnPO0.js} +11 -1
- package/dist/cjs/chunks/{slice-Bu9L_cVR.js.map → slice-BPKtnPO0.js.map} +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/store/index.native.js +2 -2
- package/dist/cjs/store/index.web.js +2 -2
- package/dist/esm/chunks/{shared-ChUGjIwE.js → shared-CCpeK4H9.js} +2 -2
- package/dist/esm/chunks/{shared-ChUGjIwE.js.map → shared-CCpeK4H9.js.map} +1 -1
- package/dist/esm/chunks/{slice-Z8Lc9U1-.js → slice-Bbj3PGXD.js} +11 -1
- package/dist/esm/chunks/{slice-Z8Lc9U1-.js.map → slice-Bbj3PGXD.js.map} +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/store/index.native.js +2 -2
- package/dist/esm/store/index.web.js +2 -2
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var slice = require('./chunks/slice-
|
|
3
|
+
var slice = require('./chunks/slice-BPKtnPO0.js');
|
|
4
4
|
var slice$1 = require('./chunks/slice-CkWobkWw.js');
|
|
5
5
|
var useAuth = require('./chunks/useAuth-BVyDLl6H.js');
|
|
6
6
|
var jwtDecode = require('jwt-decode');
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
var toolkit = require('@reduxjs/toolkit');
|
|
4
4
|
var storage = require('@react-native-async-storage/async-storage');
|
|
5
|
-
var slice = require('../chunks/slice-
|
|
6
|
-
var shared = require('../chunks/shared-
|
|
5
|
+
var slice = require('../chunks/slice-BPKtnPO0.js');
|
|
6
|
+
var shared = require('../chunks/shared-CbwwPaK0.js');
|
|
7
7
|
require('../chunks/slice-CkWobkWw.js');
|
|
8
8
|
require('react-redux');
|
|
9
9
|
require('react');
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var toolkit = require('@reduxjs/toolkit');
|
|
4
|
-
var slice = require('../chunks/slice-
|
|
5
|
-
var shared = require('../chunks/shared-
|
|
4
|
+
var slice = require('../chunks/slice-BPKtnPO0.js');
|
|
5
|
+
var shared = require('../chunks/shared-CbwwPaK0.js');
|
|
6
6
|
require('../chunks/slice-CkWobkWw.js');
|
|
7
7
|
require('react-redux');
|
|
8
8
|
require('react');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { combineSlices } from '@reduxjs/toolkit';
|
|
2
|
-
import { P as cartSlice, a as authApi, c as contentApi, p as paymentApi, b as productsApi, o as ordersApi } from './slice-
|
|
2
|
+
import { P as cartSlice, a as authApi, c as contentApi, p as paymentApi, b as productsApi, o as ordersApi } from './slice-Bbj3PGXD.js';
|
|
3
3
|
import { a as authSlice } from './slice-ChJ8ZvmP.js';
|
|
4
4
|
|
|
5
5
|
// This file exists just so TypeScript has a module at ./store for IDEs/build.
|
|
@@ -9,4 +9,4 @@ import { a as authSlice } from './slice-ChJ8ZvmP.js';
|
|
|
9
9
|
const rootReducer = combineSlices(cartSlice, authSlice, authApi, contentApi, paymentApi, productsApi, ordersApi);
|
|
10
10
|
|
|
11
11
|
export { rootReducer as r };
|
|
12
|
-
//# sourceMappingURL=shared-
|
|
12
|
+
//# sourceMappingURL=shared-CCpeK4H9.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared-
|
|
1
|
+
{"version":3,"file":"shared-CCpeK4H9.js","sources":["../../../lib/store/shared.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAAA;AACA;AAUA;AAEA;MACa,WAAW,GAAG,aAAa,CACtC,SAAS,EACT,SAAS,EACT,OAAO,EACP,UAAU,EACV,UAAU,EACV,WAAW,EACX,SAAS;;;;"}
|
|
@@ -5804,9 +5804,19 @@ const authApi = createApi({
|
|
|
5804
5804
|
if (arg.type === 'workout_liked' || arg.type === 'workout_unliked') {
|
|
5805
5805
|
tags.push('Recommendations', 'UserData');
|
|
5806
5806
|
}
|
|
5807
|
+
if (arg.type === 'workout_favourited' || arg.type === 'workout_unfavourited') {
|
|
5808
|
+
tags.push('UserData');
|
|
5809
|
+
}
|
|
5807
5810
|
if (arg.type === 'challenge_joined') {
|
|
5808
5811
|
tags.push('UserData');
|
|
5809
5812
|
}
|
|
5813
|
+
if (arg.type === 'challenge_day_completed') {
|
|
5814
|
+
// Invalidate UserData so the Challenge screen's
|
|
5815
|
+
// `getChallengeProgress` query refetches and the day shows
|
|
5816
|
+
// a check mark. Also refresh streak / weekly progress so
|
|
5817
|
+
// the dashboard counters stay in sync.
|
|
5818
|
+
tags.push('UserData', 'Streak', 'WeeklyProgress', 'ActivityStats');
|
|
5819
|
+
}
|
|
5810
5820
|
return tags;
|
|
5811
5821
|
},
|
|
5812
5822
|
}),
|
|
@@ -6263,4 +6273,4 @@ const selectCartItemsIds = createSelector$1([selectMediaInCart], (items) => {
|
|
|
6263
6273
|
cartSlice.reducer;
|
|
6264
6274
|
|
|
6265
6275
|
export { selectCartNetTotal as $, useLazyGetWatchProgressQuery as A, useGetRecommendationsQuery as B, useLazyGetRecommendationsQuery as C, useGetActivityStatsQuery as D, useLazyGetActivityStatsQuery as E, useLogActivityMutation as F, useGetActiveChallengesQuery as G, useGetChallengeProgressQuery as H, useGetProductsQuery as I, useLazyGetProductsQuery as J, usePurchaseProductMutation as K, useFetchOrdersQuery as L, useLazyFetchOrdersQuery as M, useGetOrdersQuery as N, useGetOrderQuery as O, cartSlice as P, setTaxRate as Q, resetTaxRate as R, setPromoCode as S, removePromoCode as T, addToCart as U, updateCart as V, removeFromCart as W, emptyCart as X, toggleCart as Y, selectMediaInCart as Z, selectCartTotal as _, authApi as a, selectCartTaxRate as a0, selectCartTaxAmount as a1, selectCartCount as a2, selectCartStatus as a3, selectPromoCode as a4, selectCartItems as a5, selectCartItemsIds as a6, isWeb as a7, isReactNative as a8, getPlatform as a9, runOnPlatform as aa, onlyUnique as ab, applyCoupon as ac, applyTax as ad, createUnwrappingBaseQuery as ae, withReauth as af, productsApi as b, contentApi as c, useResetPasswordAuthMutation as d, useRegisterMutation as e, useVerifyUserQuery as f, useLazyVerifyUserQuery as g, useGetUserInfoQuery as h, useLazyGetUserInfoQuery as i, useUpdateUserInfoMutation as j, useForgottenPasswordMutation as k, useVerifyUserAttributesQuery as l, useLazyVerifyUserAttributesQuery as m, useVerifyUserResendQuery as n, ordersApi as o, paymentApi as p, useLazyVerifyUserResendQuery as q, useUpdateUserMutation as r, useGetStreakQuery as s, toCamelCaseObject as t, useResetPasswordMutation as u, useLazyGetStreakQuery as v, useGetWeeklyProgressQuery as w, useLazyGetWeeklyProgressQuery as x, useSetWeeklyGoalMutation as y, useGetWatchProgressQuery as z };
|
|
6266
|
-
//# sourceMappingURL=slice-
|
|
6276
|
+
//# sourceMappingURL=slice-Bbj3PGXD.js.map
|