@timardex/cluemart-shared 1.7.50 → 1.7.51

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.
@@ -10,7 +10,7 @@ import {
10
10
  import {
11
11
  PROMO_CODE_PREFIX,
12
12
  gameScreenIdentifierList
13
- } from "./chunk-FFVJ476E.mjs";
13
+ } from "./chunk-RIE2OS4I.mjs";
14
14
  import {
15
15
  isTransientNetworkError
16
16
  } from "./chunk-RAYUJODN.mjs";
@@ -1696,4 +1696,4 @@ export {
1696
1696
  toUserFacingErrorMessage,
1697
1697
  getErrorMessage
1698
1698
  };
1699
- //# sourceMappingURL=chunk-MLZKUWXF.mjs.map
1699
+ //# sourceMappingURL=chunk-7YUHKL5A.mjs.map
@@ -3662,8 +3662,8 @@ var COUPON = gql36`
3662
3662
  ${COUPON_DATA_FIELDS_FRAGMENT}
3663
3663
  `;
3664
3664
  var GET_COUPONS = gql36`
3665
- query getCoupons {
3666
- coupons {
3665
+ query getCoupons($region: String, $category: String) {
3666
+ coupons(region: $region, category: $category) {
3667
3667
  active {
3668
3668
  listName
3669
3669
  data {
@@ -3775,9 +3775,10 @@ var useScanCoupon = () => {
3775
3775
 
3776
3776
  // src/graphql/hooks/coupon/hooksQuery.ts
3777
3777
  import { useQuery as useQuery15 } from "@apollo/client";
3778
- var useGetCoupons = () => {
3778
+ var useGetCoupons = (variables) => {
3779
3779
  const { loading, error, data, refetch } = useQuery15(GET_COUPONS, {
3780
- fetchPolicy: "network-only"
3780
+ fetchPolicy: "network-only",
3781
+ variables
3781
3782
  });
3782
3783
  const coupons = data?.coupons || {
3783
3784
  active: null,
@@ -3945,4 +3946,4 @@ export {
3945
3946
  useGetCoupons,
3946
3947
  useGetCoupon
3947
3948
  };
3948
- //# sourceMappingURL=chunk-DXHGP4F6.mjs.map
3949
+ //# sourceMappingURL=chunk-NCSJIE42.mjs.map