@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.
@@ -7,7 +7,7 @@ import {
7
7
  SCHOOL_MIN_STUDENT_COUNT,
8
8
  isValidIrdNumber,
9
9
  normalizeUrl
10
- } from "../chunk-MLZKUWXF.mjs";
10
+ } from "../chunk-7YUHKL5A.mjs";
11
11
  import {
12
12
  dateFormat,
13
13
  timeFormat
@@ -20,10 +20,10 @@ import {
20
20
  EnumAffiliateParticipantType,
21
21
  EnumPostContentType,
22
22
  EnumPostType
23
- } from "../chunk-FFVJ476E.mjs";
23
+ } from "../chunk-RIE2OS4I.mjs";
24
24
  import "../chunk-RAYUJODN.mjs";
25
25
  import "../chunk-DQ7ZHIXW.mjs";
26
- import "../chunk-DXHGP4F6.mjs";
26
+ import "../chunk-NCSJIE42.mjs";
27
27
  import "../chunk-VBQ5RF7L.mjs";
28
28
  import {
29
29
  EnumEventDateStatus,
package/dist/index.cjs CHANGED
@@ -8561,8 +8561,8 @@ var COUPON = import_client78.gql`
8561
8561
  ${COUPON_DATA_FIELDS_FRAGMENT}
8562
8562
  `;
8563
8563
  var GET_COUPONS = import_client78.gql`
8564
- query getCoupons {
8565
- coupons {
8564
+ query getCoupons($region: String, $category: String) {
8565
+ coupons(region: $region, category: $category) {
8566
8566
  active {
8567
8567
  listName
8568
8568
  data {
@@ -8674,9 +8674,10 @@ var useScanCoupon = () => {
8674
8674
 
8675
8675
  // src/graphql/hooks/coupon/hooksQuery.ts
8676
8676
  var import_client81 = require("@apollo/client");
8677
- var useGetCoupons = () => {
8677
+ var useGetCoupons = (variables) => {
8678
8678
  const { loading, error, data, refetch } = (0, import_client81.useQuery)(GET_COUPONS, {
8679
- fetchPolicy: "network-only"
8679
+ fetchPolicy: "network-only",
8680
+ variables
8680
8681
  });
8681
8682
  const coupons = data?.coupons || {
8682
8683
  active: null,