@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.
- package/dist/{chunk-PDKFX6QC.mjs → chunk-TI7EE7CT.mjs} +7 -4
- package/dist/{chunk-PDKFX6QC.mjs.map → chunk-TI7EE7CT.mjs.map} +1 -1
- package/dist/graphql/index.cjs +6 -3
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.mjs +1 -1
- package/dist/hooks/index.cjs +2 -2
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/index.cjs +6 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +6 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/hooks/index.mjs
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -8625,8 +8625,8 @@ var UPDATE_COUPON_MUTATION = import_client79.gql`
|
|
|
8625
8625
|
${COUPON}
|
|
8626
8626
|
`;
|
|
8627
8627
|
var DELETE_COUPON_MUTATION = import_client79.gql`
|
|
8628
|
-
mutation deleteCoupon($
|
|
8629
|
-
deleteCoupon(
|
|
8628
|
+
mutation deleteCoupon($input: ProductCouponInputType!) {
|
|
8629
|
+
deleteCoupon(input: $input) {
|
|
8630
8630
|
data
|
|
8631
8631
|
message
|
|
8632
8632
|
}
|
|
@@ -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
|
|