@timardex/cluemart-shared 1.7.47 → 1.7.49

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.
@@ -3726,8 +3726,8 @@ var UPDATE_COUPON_MUTATION = gql37`
3726
3726
  ${COUPON}
3727
3727
  `;
3728
3728
  var DELETE_COUPON_MUTATION = gql37`
3729
- mutation deleteCoupon($couponDocumentId: ID!, $couponId: ID!) {
3730
- deleteCoupon(couponDocumentId: $couponDocumentId, couponId: $couponId) {
3729
+ mutation deleteCoupon($input: ProductCouponInputType!) {
3730
+ deleteCoupon(input: $input) {
3731
3731
  data
3732
3732
  message
3733
3733
  }
@@ -3765,7 +3765,10 @@ var useDeleteCoupon = () => {
3765
3765
  return { deleteCoupon, error, loading };
3766
3766
  };
3767
3767
  var useScanCoupon = () => {
3768
- const [scanCoupon, { loading, error }] = useMutation20(SCAN_COUPON_MUTATION);
3768
+ const [scanCoupon, { loading, error }] = useMutation20(SCAN_COUPON_MUTATION, {
3769
+ awaitRefetchQueries: true,
3770
+ refetchQueries: [{ query: GET_COUPONS }]
3771
+ });
3769
3772
  return { error, loading, scanCoupon };
3770
3773
  };
3771
3774
 
@@ -3941,4 +3944,4 @@ export {
3941
3944
  useGetCoupons,
3942
3945
  useGetCoupon
3943
3946
  };
3944
- //# sourceMappingURL=chunk-PDKFX6QC.mjs.map
3947
+ //# sourceMappingURL=chunk-TI7EE7CT.mjs.map