@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
@@ -42,13 +42,13 @@ import {
42
42
  vendorStallSize,
43
43
  vendorStartDateFields,
44
44
  vendorTable
45
- } from "../chunk-VGOXRE34.mjs";
45
+ } from "../chunk-GJO7X2Y4.mjs";
46
46
  import {
47
47
  availableCategories,
48
48
  categoryColors
49
- } from "../chunk-6633VMDB.mjs";
49
+ } from "../chunk-RITKFYRI.mjs";
50
50
  import "../chunk-YVIZ4AWF.mjs";
51
- import "../chunk-E7ZEBZ3O.mjs";
51
+ import "../chunk-4TP57ZL7.mjs";
52
52
  import "../chunk-LETM2YHF.mjs";
53
53
  export {
54
54
  availableCategories,
@@ -134,6 +134,7 @@ __export(graphql_exports, {
134
134
  useMarkAllNotificationsRead: () => useMarkAllNotificationsRead,
135
135
  useMarkChatMessagesSeen: () => useMarkChatMessagesSeen,
136
136
  useMarkNotificationRead: () => useMarkNotificationRead,
137
+ useRedeemAffiliateReward: () => useRedeemAffiliateReward,
137
138
  useRedeemReward: () => useRedeemReward,
138
139
  useRefreshToken: () => useRefreshToken,
139
140
  useRegister: () => useRegister,
@@ -5394,6 +5395,14 @@ var DELETE_AFFILIATE_MUTATION = import_client76.gql`
5394
5395
  deleteAffiliate(_id: $_id)
5395
5396
  }
5396
5397
  `;
5398
+ var REDEEM_AFFILIATE_REWARD_MUTATION = import_client76.gql`
5399
+ mutation redeemAffiliateReward($affiliateId: ID!) {
5400
+ redeemAffiliateReward(affiliateId: $affiliateId) {
5401
+ ...AffiliateFields
5402
+ }
5403
+ }
5404
+ ${AFFILIATE_FIELDS_FRAGMENT}
5405
+ `;
5397
5406
 
5398
5407
  // src/graphql/hooks/affiliate/hooksMutation.ts
5399
5408
  var useUpdateAffiliateDetails = () => {
@@ -5420,6 +5429,20 @@ var useDeleteAffiliate = () => {
5420
5429
  );
5421
5430
  return { deleteAffiliate, error, loading };
5422
5431
  };
5432
+ var useRedeemAffiliateReward = () => {
5433
+ const [redeemAffiliateReward, { loading, error }] = (0, import_client77.useMutation)(
5434
+ REDEEM_AFFILIATE_REWARD_MUTATION,
5435
+ {
5436
+ awaitRefetchQueries: true,
5437
+ refetchQueries: (mutationResult) => {
5438
+ const affiliateId = mutationResult?.data?.redeemAffiliateReward?._id;
5439
+ if (!affiliateId) return [];
5440
+ return [{ query: GET_AFFILIATE, variables: { _id: affiliateId } }];
5441
+ }
5442
+ }
5443
+ );
5444
+ return { error, loading, redeemAffiliateReward };
5445
+ };
5423
5446
  // Annotate the CommonJS export names for ESM import in node:
5424
5447
  0 && (module.exports = {
5425
5448
  GET_EVENT,
@@ -5536,6 +5559,7 @@ var useDeleteAffiliate = () => {
5536
5559
  useMarkAllNotificationsRead,
5537
5560
  useMarkChatMessagesSeen,
5538
5561
  useMarkNotificationRead,
5562
+ useRedeemAffiliateReward,
5539
5563
  useRedeemReward,
5540
5564
  useRefreshToken,
5541
5565
  useRegister,