@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.
@@ -5047,8 +5047,8 @@ var UPDATE_COUPON_MUTATION = import_client79.gql`
5047
5047
  ${COUPON}
5048
5048
  `;
5049
5049
  var DELETE_COUPON_MUTATION = import_client79.gql`
5050
- mutation deleteCoupon($couponDocumentId: ID!, $couponId: ID!) {
5051
- deleteCoupon(couponDocumentId: $couponDocumentId, couponId: $couponId) {
5050
+ mutation deleteCoupon($input: ProductCouponInputType!) {
5051
+ deleteCoupon(input: $input) {
5052
5052
  data
5053
5053
  message
5054
5054
  }
@@ -5086,7 +5086,10 @@ var useDeleteCoupon = () => {
5086
5086
  return { deleteCoupon, error, loading };
5087
5087
  };
5088
5088
  var useScanCoupon = () => {
5089
- const [scanCoupon, { loading, error }] = (0, import_client80.useMutation)(SCAN_COUPON_MUTATION);
5089
+ const [scanCoupon, { loading, error }] = (0, import_client80.useMutation)(SCAN_COUPON_MUTATION, {
5090
+ awaitRefetchQueries: true,
5091
+ refetchQueries: [{ query: GET_COUPONS }]
5092
+ });
5090
5093
  return { error, loading, scanCoupon };
5091
5094
  };
5092
5095