@timardex/cluemart-shared 1.5.802 → 1.5.804

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.
Files changed (34) hide show
  1. package/dist/{chunk-E7ZEBZ3O.mjs → chunk-4TP57ZL7.mjs} +2 -2
  2. package/dist/{chunk-E7ZEBZ3O.mjs.map → chunk-4TP57ZL7.mjs.map} +1 -1
  3. package/dist/{chunk-3NDZHCTN.mjs → chunk-G76ILLVZ.mjs} +25 -2
  4. package/dist/{chunk-3NDZHCTN.mjs.map → chunk-G76ILLVZ.mjs.map} +1 -1
  5. package/dist/{chunk-VGOXRE34.mjs → chunk-GJO7X2Y4.mjs} +2 -2
  6. package/dist/{chunk-6633VMDB.mjs → chunk-RITKFYRI.mjs} +2 -2
  7. package/dist/{chunk-JD7CKX4S.mjs → chunk-VKOL5CVW.mjs} +2 -2
  8. package/dist/formFields/index.cjs.map +1 -1
  9. package/dist/formFields/index.mjs +3 -3
  10. package/dist/graphql/index.cjs +24 -0
  11. package/dist/graphql/index.cjs.map +1 -1
  12. package/dist/graphql/index.d.mts +6 -1
  13. package/dist/graphql/index.d.ts +6 -1
  14. package/dist/graphql/index.mjs +3 -1
  15. package/dist/hooks/index.cjs +8 -0
  16. package/dist/hooks/index.cjs.map +1 -1
  17. package/dist/hooks/index.mjs +5 -5
  18. package/dist/index.cjs +25 -1
  19. package/dist/index.cjs.map +1 -1
  20. package/dist/index.d.mts +7 -2
  21. package/dist/index.d.ts +7 -2
  22. package/dist/index.mjs +24 -1
  23. package/dist/index.mjs.map +1 -1
  24. package/dist/sharing/index.cjs +1 -1
  25. package/dist/sharing/index.cjs.map +1 -1
  26. package/dist/sharing/index.d.mts +1 -1
  27. package/dist/sharing/index.d.ts +1 -1
  28. package/dist/sharing/index.mjs +2 -2
  29. package/dist/utils/index.cjs.map +1 -1
  30. package/dist/utils/index.mjs +2 -2
  31. package/package.json +1 -1
  32. /package/dist/{chunk-VGOXRE34.mjs.map → chunk-GJO7X2Y4.mjs.map} +0 -0
  33. /package/dist/{chunk-6633VMDB.mjs.map → chunk-RITKFYRI.mjs.map} +0 -0
  34. /package/dist/{chunk-JD7CKX4S.mjs.map → chunk-VKOL5CVW.mjs.map} +0 -0
@@ -1,9 +1,9 @@
1
1
  import "../chunk-VA5YN2K3.mjs";
2
- import "../chunk-VGOXRE34.mjs";
2
+ import "../chunk-GJO7X2Y4.mjs";
3
3
  import {
4
4
  SCHOOL_MIN_STUDENT_COUNT,
5
5
  normalizeUrl
6
- } from "../chunk-6633VMDB.mjs";
6
+ } from "../chunk-RITKFYRI.mjs";
7
7
  import {
8
8
  EnumAdShowOn,
9
9
  EnumAdStatus,
@@ -12,13 +12,13 @@ import {
12
12
  EnumPostContentType,
13
13
  EnumPostType
14
14
  } from "../chunk-YVIZ4AWF.mjs";
15
- import "../chunk-3NDZHCTN.mjs";
15
+ import "../chunk-G76ILLVZ.mjs";
16
16
  import "../chunk-NPFJ2CN2.mjs";
17
- import "../chunk-JD7CKX4S.mjs";
17
+ import "../chunk-VKOL5CVW.mjs";
18
18
  import {
19
19
  dateFormat,
20
20
  timeFormat
21
- } from "../chunk-E7ZEBZ3O.mjs";
21
+ } from "../chunk-4TP57ZL7.mjs";
22
22
  import {
23
23
  EnumEventDateStatus,
24
24
  EnumEventType,
package/dist/index.cjs CHANGED
@@ -385,6 +385,7 @@ __export(index_exports, {
385
385
  useMarkAllNotificationsRead: () => useMarkAllNotificationsRead,
386
386
  useMarkChatMessagesSeen: () => useMarkChatMessagesSeen,
387
387
  useMarkNotificationRead: () => useMarkNotificationRead,
388
+ useRedeemAffiliateReward: () => useRedeemAffiliateReward,
388
389
  useRedeemReward: () => useRedeemReward,
389
390
  useRefreshToken: () => useRefreshToken,
390
391
  useRegister: () => useRegister,
@@ -1168,7 +1169,7 @@ function computeDailyClueState(dailyClue) {
1168
1169
  // src/sharing/relationShareTypes.ts
1169
1170
  var RELATION_SHARE_INVITATION = "invitation";
1170
1171
  var RELATION_SHARE_APPLICATION = "application";
1171
- var RELATION_OVERLAY_LAYOUT_VERSION = 36;
1172
+ var RELATION_OVERLAY_LAYOUT_VERSION = 40;
1172
1173
  var RELATION_SHARE_RESOURCE_TYPES = [
1173
1174
  RELATION_SHARE_INVITATION,
1174
1175
  RELATION_SHARE_APPLICATION
@@ -8742,6 +8743,14 @@ var DELETE_AFFILIATE_MUTATION = import_client76.gql`
8742
8743
  deleteAffiliate(_id: $_id)
8743
8744
  }
8744
8745
  `;
8746
+ var REDEEM_AFFILIATE_REWARD_MUTATION = import_client76.gql`
8747
+ mutation redeemAffiliateReward($affiliateId: ID!) {
8748
+ redeemAffiliateReward(affiliateId: $affiliateId) {
8749
+ ...AffiliateFields
8750
+ }
8751
+ }
8752
+ ${AFFILIATE_FIELDS_FRAGMENT}
8753
+ `;
8745
8754
 
8746
8755
  // src/graphql/hooks/affiliate/hooksMutation.ts
8747
8756
  var useUpdateAffiliateDetails = () => {
@@ -8768,6 +8777,20 @@ var useDeleteAffiliate = () => {
8768
8777
  );
8769
8778
  return { deleteAffiliate, error, loading };
8770
8779
  };
8780
+ var useRedeemAffiliateReward = () => {
8781
+ const [redeemAffiliateReward, { loading, error }] = (0, import_client77.useMutation)(
8782
+ REDEEM_AFFILIATE_REWARD_MUTATION,
8783
+ {
8784
+ awaitRefetchQueries: true,
8785
+ refetchQueries: (mutationResult) => {
8786
+ const affiliateId = mutationResult?.data?.redeemAffiliateReward?._id;
8787
+ if (!affiliateId) return [];
8788
+ return [{ query: GET_AFFILIATE, variables: { _id: affiliateId } }];
8789
+ }
8790
+ }
8791
+ );
8792
+ return { error, loading, redeemAffiliateReward };
8793
+ };
8771
8794
 
8772
8795
  // src/images/index.ts
8773
8796
  var PKG = "@timardex/cluemart-shared";
@@ -9418,6 +9441,7 @@ var fonts = {
9418
9441
  useMarkAllNotificationsRead,
9419
9442
  useMarkChatMessagesSeen,
9420
9443
  useMarkNotificationRead,
9444
+ useRedeemAffiliateReward,
9421
9445
  useRedeemReward,
9422
9446
  useRefreshToken,
9423
9447
  useRegister,