@timardex/cluemart-shared 1.7.62 → 1.7.63

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.
@@ -3764,6 +3764,14 @@ var SCAN_COUPON_MUTATION = gql37`
3764
3764
  }
3765
3765
  }
3766
3766
  `;
3767
+ var REWARD_COUPON_MUTATION = gql37`
3768
+ mutation rewardCoupon($input: ProductCouponInputType!, $userId: ID!) {
3769
+ rewardCoupon(input: $input, userId: $userId) {
3770
+ data
3771
+ message
3772
+ }
3773
+ }
3774
+ `;
3767
3775
 
3768
3776
  // src/graphql/hooks/coupon/hooksMutation.ts
3769
3777
  var useCreateCoupon = () => {
@@ -3794,6 +3802,13 @@ var useScanCoupon = () => {
3794
3802
  });
3795
3803
  return { error, loading, scanCoupon };
3796
3804
  };
3805
+ var useRewardCoupon = () => {
3806
+ const [rewardCoupon, { loading, error }] = useMutation20(REWARD_COUPON_MUTATION, {
3807
+ awaitRefetchQueries: true,
3808
+ refetchQueries: [{ query: GET_COUPONS }]
3809
+ });
3810
+ return { error, loading, rewardCoupon };
3811
+ };
3797
3812
 
3798
3813
  // src/graphql/hooks/coupon/hooksQuery.ts
3799
3814
  import { useQuery as useQuery15 } from "@apollo/client";
@@ -3966,7 +3981,8 @@ export {
3966
3981
  useUpdateCoupon,
3967
3982
  useDeleteCoupon,
3968
3983
  useScanCoupon,
3984
+ useRewardCoupon,
3969
3985
  useGetCoupons,
3970
3986
  useGetCoupon
3971
3987
  };
3972
- //# sourceMappingURL=chunk-GK773FVL.mjs.map
3988
+ //# sourceMappingURL=chunk-63CHIBEP.mjs.map