@timardex/cluemart-shared 1.7.62 → 1.7.63
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-GK773FVL.mjs → chunk-63CHIBEP.mjs} +17 -1
- package/dist/{chunk-GK773FVL.mjs.map → chunk-63CHIBEP.mjs.map} +1 -1
- package/dist/{chunk-H4UY76FG.mjs → chunk-76HG44I2.mjs} +2 -2
- package/dist/{chunk-O2TNYFUH.mjs → chunk-YG7YTCX5.mjs} +1 -1
- package/dist/{chunk-O2TNYFUH.mjs.map → chunk-YG7YTCX5.mjs.map} +1 -1
- package/dist/formFields/index.mjs +2 -2
- package/dist/graphql/index.cjs +17 -0
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +10 -1
- package/dist/graphql/index.d.ts +10 -1
- package/dist/graphql/index.mjs +3 -1
- package/dist/hooks/index.cjs +8 -0
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.mjs +3 -3
- package/dist/index.cjs +17 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +10 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.mjs +16 -0
- package/dist/index.mjs.map +1 -1
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.mjs +1 -1
- package/dist/utils/index.mjs +2 -2
- package/package.json +1 -1
- /package/dist/{chunk-H4UY76FG.mjs.map → chunk-76HG44I2.mjs.map} +0 -0
|
@@ -3764,6 +3764,14 @@ var SCAN_COUPON_MUTATION = gql37`
|
|
|
3764
3764
|
}
|
|
3765
3765
|
}
|
|
3766
3766
|
`;
|
|
3767
|
+
var REWARD_COUPON_MUTATION = gql37`
|
|
3768
|
+
mutation rewardCoupon($input: ProductCouponInputType!, $userId: ID!) {
|
|
3769
|
+
rewardCoupon(input: $input, userId: $userId) {
|
|
3770
|
+
data
|
|
3771
|
+
message
|
|
3772
|
+
}
|
|
3773
|
+
}
|
|
3774
|
+
`;
|
|
3767
3775
|
|
|
3768
3776
|
// src/graphql/hooks/coupon/hooksMutation.ts
|
|
3769
3777
|
var useCreateCoupon = () => {
|
|
@@ -3794,6 +3802,13 @@ var useScanCoupon = () => {
|
|
|
3794
3802
|
});
|
|
3795
3803
|
return { error, loading, scanCoupon };
|
|
3796
3804
|
};
|
|
3805
|
+
var useRewardCoupon = () => {
|
|
3806
|
+
const [rewardCoupon, { loading, error }] = useMutation20(REWARD_COUPON_MUTATION, {
|
|
3807
|
+
awaitRefetchQueries: true,
|
|
3808
|
+
refetchQueries: [{ query: GET_COUPONS }]
|
|
3809
|
+
});
|
|
3810
|
+
return { error, loading, rewardCoupon };
|
|
3811
|
+
};
|
|
3797
3812
|
|
|
3798
3813
|
// src/graphql/hooks/coupon/hooksQuery.ts
|
|
3799
3814
|
import { useQuery as useQuery15 } from "@apollo/client";
|
|
@@ -3966,7 +3981,8 @@ export {
|
|
|
3966
3981
|
useUpdateCoupon,
|
|
3967
3982
|
useDeleteCoupon,
|
|
3968
3983
|
useScanCoupon,
|
|
3984
|
+
useRewardCoupon,
|
|
3969
3985
|
useGetCoupons,
|
|
3970
3986
|
useGetCoupon
|
|
3971
3987
|
};
|
|
3972
|
-
//# sourceMappingURL=chunk-
|
|
3988
|
+
//# sourceMappingURL=chunk-63CHIBEP.mjs.map
|