@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.
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var toolkit = require('@reduxjs/toolkit');
4
- var slice = require('./slice-Bu9L_cVR.js');
4
+ var slice = require('./slice-BPKtnPO0.js');
5
5
  var slice$1 = require('./slice-CkWobkWw.js');
6
6
 
7
7
  // This file exists just so TypeScript has a module at ./store for IDEs/build.
@@ -11,4 +11,4 @@ var slice$1 = require('./slice-CkWobkWw.js');
11
11
  const rootReducer = toolkit.combineSlices(slice.cartSlice, slice$1.authSlice, slice.authApi, slice.contentApi, slice.paymentApi, slice.productsApi, slice.ordersApi);
12
12
 
13
13
  exports.rootReducer = rootReducer;
14
- //# sourceMappingURL=shared-l1zCzYJr.js.map
14
+ //# sourceMappingURL=shared-CbwwPaK0.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"shared-l1zCzYJr.js","sources":["../../../lib/store/shared.ts"],"sourcesContent":[null],"names":["combineSlices","cartSlice","authSlice","authApi","contentApi","paymentApi","productsApi","ordersApi"],"mappings":";;;;;;AAAA;AACA;AAUA;AAEA;MACa,WAAW,GAAGA,qBAAa,CACtCC,eAAS,EACTC,iBAAS,EACTC,aAAO,EACPC,gBAAU,EACVC,gBAAU,EACVC,iBAAW,EACXC,eAAS;;;;"}
1
+ {"version":3,"file":"shared-CbwwPaK0.js","sources":["../../../lib/store/shared.ts"],"sourcesContent":[null],"names":["combineSlices","cartSlice","authSlice","authApi","contentApi","paymentApi","productsApi","ordersApi"],"mappings":";;;;;;AAAA;AACA;AAUA;AAEA;MACa,WAAW,GAAGA,qBAAa,CACtCC,eAAS,EACTC,iBAAS,EACTC,aAAO,EACPC,gBAAU,EACVC,gBAAU,EACVC,iBAAW,EACXC,eAAS;;;;"}
@@ -5806,9 +5806,19 @@ const authApi = createApi({
5806
5806
  if (arg.type === 'workout_liked' || arg.type === 'workout_unliked') {
5807
5807
  tags.push('Recommendations', 'UserData');
5808
5808
  }
5809
+ if (arg.type === 'workout_favourited' || arg.type === 'workout_unfavourited') {
5810
+ tags.push('UserData');
5811
+ }
5809
5812
  if (arg.type === 'challenge_joined') {
5810
5813
  tags.push('UserData');
5811
5814
  }
5815
+ if (arg.type === 'challenge_day_completed') {
5816
+ // Invalidate UserData so the Challenge screen's
5817
+ // `getChallengeProgress` query refetches and the day shows
5818
+ // a check mark. Also refresh streak / weekly progress so
5819
+ // the dashboard counters stay in sync.
5820
+ tags.push('UserData', 'Streak', 'WeeklyProgress', 'ActivityStats');
5821
+ }
5812
5822
  return tags;
5813
5823
  },
5814
5824
  }),
@@ -6334,4 +6344,4 @@ exports.useVerifyUserAttributesQuery = useVerifyUserAttributesQuery;
6334
6344
  exports.useVerifyUserQuery = useVerifyUserQuery;
6335
6345
  exports.useVerifyUserResendQuery = useVerifyUserResendQuery;
6336
6346
  exports.withReauth = withReauth;
6337
- //# sourceMappingURL=slice-Bu9L_cVR.js.map
6347
+ //# sourceMappingURL=slice-BPKtnPO0.js.map