@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.
@@ -23,7 +23,7 @@ import {
23
23
  } from "../chunk-NCMKTUWS.mjs";
24
24
  import "../chunk-RAYUJODN.mjs";
25
25
  import "../chunk-DQ7ZHIXW.mjs";
26
- import "../chunk-CT2SGB4K.mjs";
26
+ import "../chunk-XSLKSCCI.mjs";
27
27
  import "../chunk-VBQ5RF7L.mjs";
28
28
  import {
29
29
  EnumEventDateStatus,
package/dist/index.cjs CHANGED
@@ -8633,7 +8633,7 @@ var DELETE_COUPON_MUTATION = import_client79.gql`
8633
8633
  }
8634
8634
  `;
8635
8635
  var SCAN_COUPON_MUTATION = import_client79.gql`
8636
- mutation scanCoupon($input: ScanCouponInputType!) {
8636
+ mutation scanCoupon($input: ProductCouponInputType!) {
8637
8637
  scanCoupon(input: $input) {
8638
8638
  data
8639
8639
  message
@@ -8664,7 +8664,10 @@ var useDeleteCoupon = () => {
8664
8664
  return { deleteCoupon, error, loading };
8665
8665
  };
8666
8666
  var useScanCoupon = () => {
8667
- const [scanCoupon, { loading, error }] = (0, import_client80.useMutation)(SCAN_COUPON_MUTATION);
8667
+ const [scanCoupon, { loading, error }] = (0, import_client80.useMutation)(SCAN_COUPON_MUTATION, {
8668
+ awaitRefetchQueries: true,
8669
+ refetchQueries: [{ query: GET_COUPONS }]
8670
+ });
8668
8671
  return { error, loading, scanCoupon };
8669
8672
  };
8670
8673