@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/{chunk-CT2SGB4K.mjs → chunk-XSLKSCCI.mjs} +6 -3
- package/dist/{chunk-CT2SGB4K.mjs.map → chunk-XSLKSCCI.mjs.map} +1 -1
- package/dist/graphql/index.cjs +5 -2
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.mjs +1 -1
- package/dist/hooks/index.cjs +1 -1
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/index.cjs +5 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +5 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -3734,7 +3734,7 @@ var DELETE_COUPON_MUTATION = gql37`
|
|
|
3734
3734
|
}
|
|
3735
3735
|
`;
|
|
3736
3736
|
var SCAN_COUPON_MUTATION = gql37`
|
|
3737
|
-
mutation scanCoupon($input:
|
|
3737
|
+
mutation scanCoupon($input: ProductCouponInputType!) {
|
|
3738
3738
|
scanCoupon(input: $input) {
|
|
3739
3739
|
data
|
|
3740
3740
|
message
|
|
@@ -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-XSLKSCCI.mjs.map
|