@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/graphql/index.cjs
CHANGED
|
@@ -5047,8 +5047,8 @@ var UPDATE_COUPON_MUTATION = import_client79.gql`
|
|
|
5047
5047
|
${COUPON}
|
|
5048
5048
|
`;
|
|
5049
5049
|
var DELETE_COUPON_MUTATION = import_client79.gql`
|
|
5050
|
-
mutation deleteCoupon($
|
|
5051
|
-
deleteCoupon(
|
|
5050
|
+
mutation deleteCoupon($input: ProductCouponInputType!) {
|
|
5051
|
+
deleteCoupon(input: $input) {
|
|
5052
5052
|
data
|
|
5053
5053
|
message
|
|
5054
5054
|
}
|
|
@@ -5086,7 +5086,10 @@ var useDeleteCoupon = () => {
|
|
|
5086
5086
|
return { deleteCoupon, error, loading };
|
|
5087
5087
|
};
|
|
5088
5088
|
var useScanCoupon = () => {
|
|
5089
|
-
const [scanCoupon, { loading, error }] = (0, import_client80.useMutation)(SCAN_COUPON_MUTATION
|
|
5089
|
+
const [scanCoupon, { loading, error }] = (0, import_client80.useMutation)(SCAN_COUPON_MUTATION, {
|
|
5090
|
+
awaitRefetchQueries: true,
|
|
5091
|
+
refetchQueries: [{ query: GET_COUPONS }]
|
|
5092
|
+
});
|
|
5090
5093
|
return { error, loading, scanCoupon };
|
|
5091
5094
|
};
|
|
5092
5095
|
|