@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.
package/dist/index.mjs CHANGED
@@ -8140,7 +8140,7 @@ var DELETE_COUPON_MUTATION = gql43`
8140
8140
  }
8141
8141
  `;
8142
8142
  var SCAN_COUPON_MUTATION = gql43`
8143
- mutation scanCoupon($input: ScanCouponInputType!) {
8143
+ mutation scanCoupon($input: ProductCouponInputType!) {
8144
8144
  scanCoupon(input: $input) {
8145
8145
  data
8146
8146
  message
@@ -8171,7 +8171,10 @@ var useDeleteCoupon = () => {
8171
8171
  return { deleteCoupon, error, loading };
8172
8172
  };
8173
8173
  var useScanCoupon = () => {
8174
- const [scanCoupon, { loading, error }] = useMutation21(SCAN_COUPON_MUTATION);
8174
+ const [scanCoupon, { loading, error }] = useMutation21(SCAN_COUPON_MUTATION, {
8175
+ awaitRefetchQueries: true,
8176
+ refetchQueries: [{ query: GET_COUPONS }]
8177
+ });
8175
8178
  return { error, loading, scanCoupon };
8176
8179
  };
8177
8180