@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
package/dist/graphql/index.cjs
CHANGED
|
@@ -5055,7 +5055,7 @@ var DELETE_COUPON_MUTATION = import_client79.gql`
|
|
|
5055
5055
|
}
|
|
5056
5056
|
`;
|
|
5057
5057
|
var SCAN_COUPON_MUTATION = import_client79.gql`
|
|
5058
|
-
mutation scanCoupon($input:
|
|
5058
|
+
mutation scanCoupon($input: ProductCouponInputType!) {
|
|
5059
5059
|
scanCoupon(input: $input) {
|
|
5060
5060
|
data
|
|
5061
5061
|
message
|
|
@@ -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
|
|