@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/index.mjs
CHANGED
|
@@ -8132,8 +8132,8 @@ var UPDATE_COUPON_MUTATION = gql43`
|
|
|
8132
8132
|
${COUPON}
|
|
8133
8133
|
`;
|
|
8134
8134
|
var DELETE_COUPON_MUTATION = gql43`
|
|
8135
|
-
mutation deleteCoupon($
|
|
8136
|
-
deleteCoupon(
|
|
8135
|
+
mutation deleteCoupon($input: ProductCouponInputType!) {
|
|
8136
|
+
deleteCoupon(input: $input) {
|
|
8137
8137
|
data
|
|
8138
8138
|
message
|
|
8139
8139
|
}
|
|
@@ -8171,7 +8171,10 @@ var useDeleteCoupon = () => {
|
|
|
8171
8171
|
return { deleteCoupon, error, loading };
|
|
8172
8172
|
};
|
|
8173
8173
|
var useScanCoupon = () => {
|
|
8174
|
-
const [scanCoupon, { loading, error }] = useMutation21(SCAN_COUPON_MUTATION
|
|
8174
|
+
const [scanCoupon, { loading, error }] = useMutation21(SCAN_COUPON_MUTATION, {
|
|
8175
|
+
awaitRefetchQueries: true,
|
|
8176
|
+
refetchQueries: [{ query: GET_COUPONS }]
|
|
8177
|
+
});
|
|
8175
8178
|
return { error, loading, scanCoupon };
|
|
8176
8179
|
};
|
|
8177
8180
|
|