@timardex/cluemart-shared 1.7.43 → 1.7.45
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-ZJ5ZNUEB.mjs → chunk-CT2SGB4K.mjs} +14 -1
- package/dist/{chunk-ZJ5ZNUEB.mjs.map → chunk-CT2SGB4K.mjs.map} +1 -1
- package/dist/graphql/index.cjs +14 -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 +55 -29
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.mjs +48 -30
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +14 -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 +13 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -3733,6 +3733,14 @@ var DELETE_COUPON_MUTATION = gql37`
|
|
|
3733
3733
|
}
|
|
3734
3734
|
}
|
|
3735
3735
|
`;
|
|
3736
|
+
var SCAN_COUPON_MUTATION = gql37`
|
|
3737
|
+
mutation scanCoupon($input: ScanCouponInputType!) {
|
|
3738
|
+
scanCoupon(input: $input) {
|
|
3739
|
+
data
|
|
3740
|
+
message
|
|
3741
|
+
}
|
|
3742
|
+
}
|
|
3743
|
+
`;
|
|
3736
3744
|
|
|
3737
3745
|
// src/graphql/hooks/coupon/hooksMutation.ts
|
|
3738
3746
|
var useCreateCoupon = () => {
|
|
@@ -3756,6 +3764,10 @@ var useDeleteCoupon = () => {
|
|
|
3756
3764
|
});
|
|
3757
3765
|
return { deleteCoupon, error, loading };
|
|
3758
3766
|
};
|
|
3767
|
+
var useScanCoupon = () => {
|
|
3768
|
+
const [scanCoupon, { loading, error }] = useMutation20(SCAN_COUPON_MUTATION);
|
|
3769
|
+
return { error, loading, scanCoupon };
|
|
3770
|
+
};
|
|
3759
3771
|
|
|
3760
3772
|
// src/graphql/hooks/coupon/hooksQuery.ts
|
|
3761
3773
|
import { useQuery as useQuery15 } from "@apollo/client";
|
|
@@ -3925,7 +3937,8 @@ export {
|
|
|
3925
3937
|
useCreateCoupon,
|
|
3926
3938
|
useUpdateCoupon,
|
|
3927
3939
|
useDeleteCoupon,
|
|
3940
|
+
useScanCoupon,
|
|
3928
3941
|
useGetCoupons,
|
|
3929
3942
|
useGetCoupon
|
|
3930
3943
|
};
|
|
3931
|
-
//# sourceMappingURL=chunk-
|
|
3944
|
+
//# sourceMappingURL=chunk-CT2SGB4K.mjs.map
|