@timardex/cluemart-shared 1.7.46 → 1.7.48

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.
@@ -5055,7 +5055,7 @@ var DELETE_COUPON_MUTATION = import_client79.gql`
5055
5055
  }
5056
5056
  `;
5057
5057
  var SCAN_COUPON_MUTATION = import_client79.gql`
5058
- mutation scanCoupon($input: ScanCouponInputType!) {
5058
+ mutation scanCoupon($input: ProductCouponInputType!) {
5059
5059
  scanCoupon(input: $input) {
5060
5060
  data
5061
5061
  message
@@ -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