@timardex/cluemart-shared 1.7.40 → 1.7.42

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.
Files changed (52) hide show
  1. package/dist/{ad-DRpL0MyF.d.mts → ad-Bt_sGCF4.d.mts} +2 -2
  2. package/dist/{ad-B4Zu7UCi.d.ts → ad-CN-rx1Bk.d.ts} +2 -2
  3. package/dist/{affiliate-B3naQAiF.d.ts → affiliate-D8EGH7DV.d.ts} +2 -2
  4. package/dist/{affiliate-XkRVAydZ.d.mts → affiliate-DViK7wMv.d.mts} +2 -2
  5. package/dist/auth/index.d.mts +3 -3
  6. package/dist/auth/index.d.ts +3 -3
  7. package/dist/{chunk-IHNIUBCF.mjs → chunk-3HRC67D3.mjs} +9 -2
  8. package/dist/{chunk-IHNIUBCF.mjs.map → chunk-3HRC67D3.mjs.map} +1 -1
  9. package/dist/{chunk-C4WKING5.mjs → chunk-E7KKXQDI.mjs} +2 -2
  10. package/dist/{chunk-MULF4KLD.mjs → chunk-RYNABE5C.mjs} +38 -8
  11. package/dist/{chunk-MULF4KLD.mjs.map → chunk-RYNABE5C.mjs.map} +1 -1
  12. package/dist/{contactUs-Cg-GLffM.d.mts → contactUs-B6PFYhXK.d.mts} +1 -1
  13. package/dist/{contactUs-BpIEnHfp.d.ts → contactUs-CEgN7JpA.d.ts} +1 -1
  14. package/dist/formFields/index.d.mts +1 -1
  15. package/dist/formFields/index.d.ts +1 -1
  16. package/dist/formFields/index.mjs +2 -2
  17. package/dist/{global-CIybpEDM.d.mts → global-CMEGXjEc.d.mts} +20 -1
  18. package/dist/{global-CD6ZMro5.d.ts → global-D4-azlbv.d.ts} +20 -1
  19. package/dist/graphql/index.cjs +37 -7
  20. package/dist/graphql/index.cjs.map +1 -1
  21. package/dist/graphql/index.d.mts +12 -8
  22. package/dist/graphql/index.d.ts +12 -8
  23. package/dist/graphql/index.mjs +1 -1
  24. package/dist/hooks/index.cjs +18 -1
  25. package/dist/hooks/index.cjs.map +1 -1
  26. package/dist/hooks/index.d.mts +5 -5
  27. package/dist/hooks/index.d.ts +5 -5
  28. package/dist/hooks/index.mjs +3 -3
  29. package/dist/index.cjs +45 -7
  30. package/dist/index.cjs.map +1 -1
  31. package/dist/index.d.mts +27 -4
  32. package/dist/index.d.ts +27 -4
  33. package/dist/index.mjs +44 -7
  34. package/dist/index.mjs.map +1 -1
  35. package/dist/map/index.d.mts +1 -1
  36. package/dist/map/index.d.ts +1 -1
  37. package/dist/{resourceActivities-BU9CPeF_.d.mts → resourceActivities-BE17ZA4_.d.mts} +1 -1
  38. package/dist/{resourceActivities-CChsCKGe.d.ts → resourceActivities-DVhCwyJg.d.ts} +1 -1
  39. package/dist/sharing/index.d.mts +1 -1
  40. package/dist/sharing/index.d.ts +1 -1
  41. package/dist/types/index.cjs +8 -0
  42. package/dist/types/index.cjs.map +1 -1
  43. package/dist/types/index.d.mts +7 -7
  44. package/dist/types/index.d.ts +7 -7
  45. package/dist/types/index.mjs +3 -1
  46. package/dist/{user-BsmG2pSw.d.mts → user-Di2FizRz.d.mts} +1 -1
  47. package/dist/{user-Cbi9O3PZ.d.ts → user-Dmj7a7v6.d.ts} +1 -1
  48. package/dist/utils/index.d.mts +3 -3
  49. package/dist/utils/index.d.ts +3 -3
  50. package/dist/utils/index.mjs +2 -2
  51. package/package.json +1 -1
  52. /package/dist/{chunk-C4WKING5.mjs.map → chunk-E7KKXQDI.mjs.map} +0 -0
@@ -1,4 +1,4 @@
1
- import { a1 as CreateFormData } from './global-CIybpEDM.mjs';
1
+ import { a2 as CreateFormData } from './global-CMEGXjEc.mjs';
2
2
 
3
3
  type ContactUsFormData = {
4
4
  email: string;
@@ -1,4 +1,4 @@
1
- import { a1 as CreateFormData } from './global-CD6ZMro5.js';
1
+ import { a2 as CreateFormData } from './global-D4-azlbv.js';
2
2
 
3
3
  type ContactUsFormData = {
4
4
  email: string;
@@ -1,4 +1,4 @@
1
- import { O as OptionItem, F as FormField, a as FormDateField, R as RefundPolicy, b as Requirement, S as StallType, C as Category } from '../global-CIybpEDM.mjs';
1
+ import { O as OptionItem, F as FormField, a as FormDateField, R as RefundPolicy, b as Requirement, S as StallType, C as Category } from '../global-CMEGXjEc.mjs';
2
2
  import 'react-hook-form';
3
3
  import '../enums/index.mjs';
4
4
 
@@ -1,4 +1,4 @@
1
- import { O as OptionItem, F as FormField, a as FormDateField, R as RefundPolicy, b as Requirement, S as StallType, C as Category } from '../global-CD6ZMro5.js';
1
+ import { O as OptionItem, F as FormField, a as FormDateField, R as RefundPolicy, b as Requirement, S as StallType, C as Category } from '../global-D4-azlbv.js';
2
2
  import 'react-hook-form';
3
3
  import '../enums/index.js';
4
4
 
@@ -46,9 +46,9 @@ import {
46
46
  import {
47
47
  availableCategories,
48
48
  categoryColors
49
- } from "../chunk-C4WKING5.mjs";
49
+ } from "../chunk-E7KKXQDI.mjs";
50
50
  import "../chunk-SD42WIMV.mjs";
51
- import "../chunk-IHNIUBCF.mjs";
51
+ import "../chunk-3HRC67D3.mjs";
52
52
  import "../chunk-RAYUJODN.mjs";
53
53
  import "../chunk-DQ7ZHIXW.mjs";
54
54
  import "../chunk-X3OLM35T.mjs";
@@ -452,6 +452,25 @@ interface CouponType {
452
452
  owner: OwnerType;
453
453
  updatedAt: Date | null;
454
454
  }
455
+ declare enum EnumCouponListType {
456
+ ACTIVE = "active",
457
+ OWNED = "owned",
458
+ SCANNED = "scanned"
459
+ }
460
+ type CouponTypeList = {
461
+ active: {
462
+ data: CouponType[] | null;
463
+ listName: EnumCouponListType.ACTIVE;
464
+ };
465
+ owned: {
466
+ data: CouponType[] | null;
467
+ listName: EnumCouponListType.OWNED;
468
+ };
469
+ scanned: {
470
+ data: CouponType[] | null;
471
+ listName: EnumCouponListType.SCANNED;
472
+ };
473
+ };
455
474
 
456
475
  type VendorCalendarData = Omit<ResourceDetails, "dateTime" | "eventStatus"> & {
457
476
  dateTime: DateTimeType;
@@ -780,4 +799,4 @@ interface UseGetResourcesByRegionOptions {
780
799
  offset?: number;
781
800
  }
782
801
 
783
- export { type CouponReward as $, type CreatePostFormData as A, type BaseResourceTypeFormData as B, type Category as C, type CouponDefaultsFormData as D, type EventType as E, type FormField as F, type GameDocType as G, type CreateCouponFormData as H, type Region as I, type BaseGameMap as J, type BaseGameType as K, type LocationType as L, type MutationResponse as M, type BaseResourceType as N, type OptionItem as O, type PosterUsageType as P, type CouponCodeType as Q, type RefundPolicy as R, type StallType as S, type CouponDataProductsType as T, type UseGetResourcesByRegionOptions as U, type VendorClaimTokenValidation as V, type CouponDataType as W, type CouponMarketVisitOption as X, type CouponOption as Y, type CouponParticipantUserType as Z, type CouponPurchaseOption as _, type FormDateField as a, type CreateCouponDefaults as a0, type CreateFormData as a1, type DailyClueBaseGame as a2, type DailyClueGameData as a3, type DateTimeType as a4, type DateTimeWithPriceType as a5, type DeviceInfo as a6, EnumCouponQualificationType as a7, EnumGameStatus as a8, EnumGameType as a9, type PromoCodeType as aA, type PuzzleAnswer as aB, type PuzzleAnsweredQuestion as aC, type PuzzleBaseGame as aD, type PuzzleGameData as aE, type PuzzleQuestion as aF, type RelatedPostType as aG, type RelationDate as aH, type RelationInputType as aI, type ResourceContactDetailsType as aJ, type ResourceDetails as aK, type ResourceImageType as aL, type SocialMediaType as aM, type SocialShareResourceType as aN, type Subcategory as aO, type SubcategoryItems as aP, type TermsAgreement as aQ, type UnregisteredVendorInvitationType as aR, type VendorAttributes as aS, type VendorCalendarData as aT, type VendorProductList as aU, gameScreenIdentifierList as aV, gameTypeToDisplayName as aW, EnumPostContentType as aa, type EventStatusType as ab, type GameDate as ac, type GameHistory as ad, type GamePlacement as ae, type GamePlacementClue as af, type GameType as ag, type GeocodeLocation as ah, type GlobalGameData as ai, type ImageObjectType as aj, type LocationGeoType as ak, type Nullable as al, type OwnerType as am, PROMO_CODE_PREFIX as an, type PaymentInfoType as ao, type PostContentData as ap, type PostContentFormData as aq, type PostContentGame as ar, type PostContentImage as as, type PostContentList as at, type PostContentTextarea as au, type PostContentType as av, type PostContentVideo as aw, type PostFileInput as ax, type PostResource as ay, type ProductCoupon as az, type Requirement as b, type EventListItemType as c, type EventInfoType as d, type RelationType as e, type ResourceConnectionsType as f, type UnregisteredVendorType as g, type VendorType as h, type VendorInfoType as i, type MyPendingVendorClaim as j, type UserLicenceType as k, type PostType as l, EnumPostType as m, type GameLeaderboard as n, type CouponType as o, type VendorFormData as p, type CreateVendorFormData as q, type VendorInfoFormData as r, type CreateVendorInfoFormData as s, type UnregisteredVendorFormData as t, type CreateUnregisteredVendorFormData as u, type EventFormData as v, type CreateEventFormData as w, type EventInfoFormData as x, type CreateEventInfoFormData as y, type PostFormData as z };
802
+ export { type CouponPurchaseOption as $, type PostFormData as A, type BaseResourceTypeFormData as B, type Category as C, type CreatePostFormData as D, type EventType as E, type FormField as F, type GameDocType as G, type CouponDefaultsFormData as H, type CreateCouponFormData as I, type Region as J, type BaseGameMap as K, type LocationType as L, type MutationResponse as M, type BaseGameType as N, type OptionItem as O, type PosterUsageType as P, type BaseResourceType as Q, type RefundPolicy as R, type StallType as S, type CouponCodeType as T, type UseGetResourcesByRegionOptions as U, type VendorClaimTokenValidation as V, type CouponDataProductsType as W, type CouponDataType as X, type CouponMarketVisitOption as Y, type CouponOption as Z, type CouponParticipantUserType as _, type FormDateField as a, type CouponReward as a0, type CreateCouponDefaults as a1, type CreateFormData as a2, type DailyClueBaseGame as a3, type DailyClueGameData as a4, type DateTimeType as a5, type DateTimeWithPriceType as a6, type DeviceInfo as a7, EnumCouponListType as a8, EnumCouponQualificationType as a9, type PostResource as aA, type ProductCoupon as aB, type PromoCodeType as aC, type PuzzleAnswer as aD, type PuzzleAnsweredQuestion as aE, type PuzzleBaseGame as aF, type PuzzleGameData as aG, type PuzzleQuestion as aH, type RelatedPostType as aI, type RelationDate as aJ, type RelationInputType as aK, type ResourceContactDetailsType as aL, type ResourceDetails as aM, type ResourceImageType as aN, type SocialMediaType as aO, type SocialShareResourceType as aP, type Subcategory as aQ, type SubcategoryItems as aR, type TermsAgreement as aS, type UnregisteredVendorInvitationType as aT, type VendorAttributes as aU, type VendorCalendarData as aV, type VendorProductList as aW, gameScreenIdentifierList as aX, gameTypeToDisplayName as aY, EnumGameStatus as aa, EnumGameType as ab, EnumPostContentType as ac, type EventStatusType as ad, type GameDate as ae, type GameHistory as af, type GamePlacement as ag, type GamePlacementClue as ah, type GameType as ai, type GeocodeLocation as aj, type GlobalGameData as ak, type ImageObjectType as al, type LocationGeoType as am, type Nullable as an, type OwnerType as ao, PROMO_CODE_PREFIX as ap, type PaymentInfoType as aq, type PostContentData as ar, type PostContentFormData as as, type PostContentGame as at, type PostContentImage as au, type PostContentList as av, type PostContentTextarea as aw, type PostContentType as ax, type PostContentVideo as ay, type PostFileInput as az, type Requirement as b, type EventListItemType as c, type EventInfoType as d, type RelationType as e, type ResourceConnectionsType as f, type UnregisteredVendorType as g, type VendorType as h, type VendorInfoType as i, type MyPendingVendorClaim as j, type UserLicenceType as k, type PostType as l, EnumPostType as m, type GameLeaderboard as n, type CouponType as o, type CouponTypeList as p, type VendorFormData as q, type CreateVendorFormData as r, type VendorInfoFormData as s, type CreateVendorInfoFormData as t, type UnregisteredVendorFormData as u, type CreateUnregisteredVendorFormData as v, type EventFormData as w, type CreateEventFormData as x, type EventInfoFormData as y, type CreateEventInfoFormData as z };
@@ -452,6 +452,25 @@ interface CouponType {
452
452
  owner: OwnerType;
453
453
  updatedAt: Date | null;
454
454
  }
455
+ declare enum EnumCouponListType {
456
+ ACTIVE = "active",
457
+ OWNED = "owned",
458
+ SCANNED = "scanned"
459
+ }
460
+ type CouponTypeList = {
461
+ active: {
462
+ data: CouponType[] | null;
463
+ listName: EnumCouponListType.ACTIVE;
464
+ };
465
+ owned: {
466
+ data: CouponType[] | null;
467
+ listName: EnumCouponListType.OWNED;
468
+ };
469
+ scanned: {
470
+ data: CouponType[] | null;
471
+ listName: EnumCouponListType.SCANNED;
472
+ };
473
+ };
455
474
 
456
475
  type VendorCalendarData = Omit<ResourceDetails, "dateTime" | "eventStatus"> & {
457
476
  dateTime: DateTimeType;
@@ -780,4 +799,4 @@ interface UseGetResourcesByRegionOptions {
780
799
  offset?: number;
781
800
  }
782
801
 
783
- export { type CouponReward as $, type CreatePostFormData as A, type BaseResourceTypeFormData as B, type Category as C, type CouponDefaultsFormData as D, type EventType as E, type FormField as F, type GameDocType as G, type CreateCouponFormData as H, type Region as I, type BaseGameMap as J, type BaseGameType as K, type LocationType as L, type MutationResponse as M, type BaseResourceType as N, type OptionItem as O, type PosterUsageType as P, type CouponCodeType as Q, type RefundPolicy as R, type StallType as S, type CouponDataProductsType as T, type UseGetResourcesByRegionOptions as U, type VendorClaimTokenValidation as V, type CouponDataType as W, type CouponMarketVisitOption as X, type CouponOption as Y, type CouponParticipantUserType as Z, type CouponPurchaseOption as _, type FormDateField as a, type CreateCouponDefaults as a0, type CreateFormData as a1, type DailyClueBaseGame as a2, type DailyClueGameData as a3, type DateTimeType as a4, type DateTimeWithPriceType as a5, type DeviceInfo as a6, EnumCouponQualificationType as a7, EnumGameStatus as a8, EnumGameType as a9, type PromoCodeType as aA, type PuzzleAnswer as aB, type PuzzleAnsweredQuestion as aC, type PuzzleBaseGame as aD, type PuzzleGameData as aE, type PuzzleQuestion as aF, type RelatedPostType as aG, type RelationDate as aH, type RelationInputType as aI, type ResourceContactDetailsType as aJ, type ResourceDetails as aK, type ResourceImageType as aL, type SocialMediaType as aM, type SocialShareResourceType as aN, type Subcategory as aO, type SubcategoryItems as aP, type TermsAgreement as aQ, type UnregisteredVendorInvitationType as aR, type VendorAttributes as aS, type VendorCalendarData as aT, type VendorProductList as aU, gameScreenIdentifierList as aV, gameTypeToDisplayName as aW, EnumPostContentType as aa, type EventStatusType as ab, type GameDate as ac, type GameHistory as ad, type GamePlacement as ae, type GamePlacementClue as af, type GameType as ag, type GeocodeLocation as ah, type GlobalGameData as ai, type ImageObjectType as aj, type LocationGeoType as ak, type Nullable as al, type OwnerType as am, PROMO_CODE_PREFIX as an, type PaymentInfoType as ao, type PostContentData as ap, type PostContentFormData as aq, type PostContentGame as ar, type PostContentImage as as, type PostContentList as at, type PostContentTextarea as au, type PostContentType as av, type PostContentVideo as aw, type PostFileInput as ax, type PostResource as ay, type ProductCoupon as az, type Requirement as b, type EventListItemType as c, type EventInfoType as d, type RelationType as e, type ResourceConnectionsType as f, type UnregisteredVendorType as g, type VendorType as h, type VendorInfoType as i, type MyPendingVendorClaim as j, type UserLicenceType as k, type PostType as l, EnumPostType as m, type GameLeaderboard as n, type CouponType as o, type VendorFormData as p, type CreateVendorFormData as q, type VendorInfoFormData as r, type CreateVendorInfoFormData as s, type UnregisteredVendorFormData as t, type CreateUnregisteredVendorFormData as u, type EventFormData as v, type CreateEventFormData as w, type EventInfoFormData as x, type CreateEventInfoFormData as y, type PostFormData as z };
802
+ export { type CouponPurchaseOption as $, type PostFormData as A, type BaseResourceTypeFormData as B, type Category as C, type CreatePostFormData as D, type EventType as E, type FormField as F, type GameDocType as G, type CouponDefaultsFormData as H, type CreateCouponFormData as I, type Region as J, type BaseGameMap as K, type LocationType as L, type MutationResponse as M, type BaseGameType as N, type OptionItem as O, type PosterUsageType as P, type BaseResourceType as Q, type RefundPolicy as R, type StallType as S, type CouponCodeType as T, type UseGetResourcesByRegionOptions as U, type VendorClaimTokenValidation as V, type CouponDataProductsType as W, type CouponDataType as X, type CouponMarketVisitOption as Y, type CouponOption as Z, type CouponParticipantUserType as _, type FormDateField as a, type CouponReward as a0, type CreateCouponDefaults as a1, type CreateFormData as a2, type DailyClueBaseGame as a3, type DailyClueGameData as a4, type DateTimeType as a5, type DateTimeWithPriceType as a6, type DeviceInfo as a7, EnumCouponListType as a8, EnumCouponQualificationType as a9, type PostResource as aA, type ProductCoupon as aB, type PromoCodeType as aC, type PuzzleAnswer as aD, type PuzzleAnsweredQuestion as aE, type PuzzleBaseGame as aF, type PuzzleGameData as aG, type PuzzleQuestion as aH, type RelatedPostType as aI, type RelationDate as aJ, type RelationInputType as aK, type ResourceContactDetailsType as aL, type ResourceDetails as aM, type ResourceImageType as aN, type SocialMediaType as aO, type SocialShareResourceType as aP, type Subcategory as aQ, type SubcategoryItems as aR, type TermsAgreement as aS, type UnregisteredVendorInvitationType as aT, type VendorAttributes as aU, type VendorCalendarData as aV, type VendorProductList as aW, gameScreenIdentifierList as aX, gameTypeToDisplayName as aY, EnumGameStatus as aa, EnumGameType as ab, EnumPostContentType as ac, type EventStatusType as ad, type GameDate as ae, type GameHistory as af, type GamePlacement as ag, type GamePlacementClue as ah, type GameType as ai, type GeocodeLocation as aj, type GlobalGameData as ak, type ImageObjectType as al, type LocationGeoType as am, type Nullable as an, type OwnerType as ao, PROMO_CODE_PREFIX as ap, type PaymentInfoType as aq, type PostContentData as ar, type PostContentFormData as as, type PostContentGame as at, type PostContentImage as au, type PostContentList as av, type PostContentTextarea as aw, type PostContentType as ax, type PostContentVideo as ay, type PostFileInput as az, type Requirement as b, type EventListItemType as c, type EventInfoType as d, type RelationType as e, type ResourceConnectionsType as f, type UnregisteredVendorType as g, type VendorType as h, type VendorInfoType as i, type MyPendingVendorClaim as j, type UserLicenceType as k, type PostType as l, EnumPostType as m, type GameLeaderboard as n, type CouponType as o, type CouponTypeList as p, type VendorFormData as q, type CreateVendorFormData as r, type VendorInfoFormData as s, type CreateVendorInfoFormData as t, type UnregisteredVendorFormData as u, type CreateUnregisteredVendorFormData as v, type EventFormData as w, type CreateEventFormData as x, type EventInfoFormData as y, type CreateEventInfoFormData as z };
@@ -4981,7 +4981,24 @@ var COUPON = import_client78.gql`
4981
4981
  var GET_COUPONS = import_client78.gql`
4982
4982
  query getCoupons {
4983
4983
  coupons {
4984
- ...CouponFields
4984
+ active {
4985
+ listName
4986
+ data {
4987
+ ...CouponFields
4988
+ }
4989
+ }
4990
+ owned {
4991
+ listName
4992
+ data {
4993
+ ...CouponFields
4994
+ }
4995
+ }
4996
+ scanned {
4997
+ listName
4998
+ data {
4999
+ ...CouponFields
5000
+ }
5001
+ }
4985
5002
  }
4986
5003
  }
4987
5004
  ${COUPON}
@@ -5045,15 +5062,24 @@ var DELETE_COUPON_MUTATION = import_client79.gql`
5045
5062
 
5046
5063
  // src/graphql/hooks/coupon/hooksMutation.ts
5047
5064
  var useCreateCoupon = () => {
5048
- const [createCoupon, { loading, error }] = (0, import_client80.useMutation)(CREATE_COUPON_MUTATION);
5065
+ const [createCoupon, { loading, error }] = (0, import_client80.useMutation)(CREATE_COUPON_MUTATION, {
5066
+ awaitRefetchQueries: true,
5067
+ refetchQueries: [{ query: GET_COUPONS }]
5068
+ });
5049
5069
  return { createCoupon, error, loading };
5050
5070
  };
5051
5071
  var useUpdateCoupon = () => {
5052
- const [updateCoupon, { loading, error }] = (0, import_client80.useMutation)(UPDATE_COUPON_MUTATION);
5072
+ const [updateCoupon, { loading, error }] = (0, import_client80.useMutation)(UPDATE_COUPON_MUTATION, {
5073
+ awaitRefetchQueries: true,
5074
+ refetchQueries: [{ query: GET_COUPONS }]
5075
+ });
5053
5076
  return { error, loading, updateCoupon };
5054
5077
  };
5055
5078
  var useDeleteCoupon = () => {
5056
- const [deleteCoupon, { loading, error }] = (0, import_client80.useMutation)(DELETE_COUPON_MUTATION);
5079
+ const [deleteCoupon, { loading, error }] = (0, import_client80.useMutation)(DELETE_COUPON_MUTATION, {
5080
+ awaitRefetchQueries: true,
5081
+ refetchQueries: [{ query: GET_COUPONS }]
5082
+ });
5057
5083
  return { deleteCoupon, error, loading };
5058
5084
  };
5059
5085
 
@@ -5063,7 +5089,11 @@ var useGetCoupons = () => {
5063
5089
  const { loading, error, data, refetch } = (0, import_client81.useQuery)(GET_COUPONS, {
5064
5090
  fetchPolicy: "network-only"
5065
5091
  });
5066
- const coupons = data?.coupons || [];
5092
+ const coupons = data?.coupons || {
5093
+ active: null,
5094
+ owned: null,
5095
+ scanned: null
5096
+ };
5067
5097
  return { coupons, error, loading, refetch };
5068
5098
  };
5069
5099
  var useGetCoupon = (_id) => {
@@ -5078,11 +5108,11 @@ var useGetCoupon = (_id) => {
5078
5108
  var useGetResourceCoupons = (resourceId, resourceType) => {
5079
5109
  const { loading, error, data, refetch } = (0, import_client81.useQuery)(GET_RESOURCE_COUPONS, {
5080
5110
  fetchPolicy: "network-only",
5081
- skip: !resourceId,
5111
+ skip: !resourceId || resourceId === "" || !resourceType,
5082
5112
  variables: { resourceId, resourceType }
5083
5113
  });
5084
5114
  const resourceCoupons = data?.resourceCoupons || [];
5085
- return { resourceCoupons, error, loading, refetch };
5115
+ return { error, loading, refetch, resourceCoupons };
5086
5116
  };
5087
5117
  // Annotate the CommonJS export names for ESM import in node:
5088
5118
  0 && (module.exports = {