@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
|
@@ -3726,8 +3726,8 @@ var UPDATE_COUPON_MUTATION = gql37`
|
|
|
3726
3726
|
${COUPON}
|
|
3727
3727
|
`;
|
|
3728
3728
|
var DELETE_COUPON_MUTATION = gql37`
|
|
3729
|
-
mutation deleteCoupon($
|
|
3730
|
-
deleteCoupon(
|
|
3729
|
+
mutation deleteCoupon($input: ProductCouponInputType!) {
|
|
3730
|
+
deleteCoupon(input: $input) {
|
|
3731
3731
|
data
|
|
3732
3732
|
message
|
|
3733
3733
|
}
|
|
@@ -3765,7 +3765,10 @@ var useDeleteCoupon = () => {
|
|
|
3765
3765
|
return { deleteCoupon, error, loading };
|
|
3766
3766
|
};
|
|
3767
3767
|
var useScanCoupon = () => {
|
|
3768
|
-
const [scanCoupon, { loading, error }] = useMutation20(SCAN_COUPON_MUTATION
|
|
3768
|
+
const [scanCoupon, { loading, error }] = useMutation20(SCAN_COUPON_MUTATION, {
|
|
3769
|
+
awaitRefetchQueries: true,
|
|
3770
|
+
refetchQueries: [{ query: GET_COUPONS }]
|
|
3771
|
+
});
|
|
3769
3772
|
return { error, loading, scanCoupon };
|
|
3770
3773
|
};
|
|
3771
3774
|
|
|
@@ -3941,4 +3944,4 @@ export {
|
|
|
3941
3944
|
useGetCoupons,
|
|
3942
3945
|
useGetCoupon
|
|
3943
3946
|
};
|
|
3944
|
-
//# sourceMappingURL=chunk-
|
|
3947
|
+
//# sourceMappingURL=chunk-TI7EE7CT.mjs.map
|