@timardex/cluemart-shared 1.7.41 → 1.7.43
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/{ad-C7ydabC3.d.mts → ad-CfOLvXyB.d.mts} +2 -3
- package/dist/{ad-BDH4V_kC.d.ts → ad-CxABR6sX.d.ts} +2 -3
- package/dist/{affiliate-CXyxbJeB.d.ts → affiliate-CJMP_HcA.d.ts} +2 -2
- package/dist/{affiliate-cR8Bt-Fe.d.mts → affiliate-MosCEdnO.d.mts} +2 -2
- package/dist/auth/index.d.mts +3 -3
- package/dist/auth/index.d.ts +3 -3
- package/dist/{chunk-V3GCKBWG.mjs → chunk-Q3X2EHHF.mjs} +9 -2
- package/dist/chunk-Q3X2EHHF.mjs.map +1 -0
- package/dist/{chunk-NBKSLJIH.mjs → chunk-UGWEWOUM.mjs} +2 -2
- package/dist/{chunk-IVFFSG4S.mjs → chunk-ZJ5ZNUEB.mjs} +17 -23
- package/dist/{chunk-IVFFSG4S.mjs.map → chunk-ZJ5ZNUEB.mjs.map} +1 -1
- package/dist/{contactUs-CWoOKyLs.d.ts → contactUs-B5ivc7fv.d.ts} +1 -1
- package/dist/{contactUs-BA437E5t.d.mts → contactUs-xtO8TiMI.d.mts} +1 -1
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.d.mts +1 -1
- package/dist/formFields/index.d.ts +1 -1
- package/dist/formFields/index.mjs +2 -2
- package/dist/{global-dGP5dUVJ.d.mts → global-B9wsUE0s.d.mts} +20 -6
- package/dist/{global-DmVf-gD-.d.ts → global-BnYAMxH5.d.ts} +20 -6
- package/dist/graphql/index.cjs +15 -22
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +11 -15
- package/dist/graphql/index.d.ts +11 -15
- package/dist/graphql/index.mjs +1 -3
- package/dist/hooks/index.cjs +15 -11
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +5 -5
- package/dist/hooks/index.d.ts +5 -5
- package/dist/hooks/index.mjs +3 -3
- package/dist/index.cjs +23 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +25 -16
- package/dist/index.d.ts +25 -16
- package/dist/index.mjs +22 -21
- package/dist/index.mjs.map +1 -1
- package/dist/map/index.d.mts +1 -1
- package/dist/map/index.d.ts +1 -1
- package/dist/{resourceActivities-Rb8Mvla1.d.mts → resourceActivities-C7CUBA6k.d.mts} +1 -1
- package/dist/{resourceActivities-D-ql8Sy7.d.ts → resourceActivities-D7fXh5KQ.d.ts} +1 -1
- package/dist/sharing/index.d.mts +1 -1
- package/dist/sharing/index.d.ts +1 -1
- package/dist/types/index.cjs +8 -0
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +7 -7
- package/dist/types/index.d.ts +7 -7
- package/dist/types/index.mjs +3 -1
- package/dist/{user-Ds0XnW3x.d.ts → user-B7SZZ3EF.d.ts} +1 -1
- package/dist/{user-DHIUOHzN.d.mts → user-n3xcmWry.d.mts} +1 -1
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +3 -3
- package/dist/utils/index.d.ts +3 -3
- package/dist/utils/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-V3GCKBWG.mjs.map +0 -1
- /package/dist/{chunk-NBKSLJIH.mjs.map → chunk-UGWEWOUM.mjs.map} +0 -0
|
@@ -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-
|
|
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-B9wsUE0s.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-
|
|
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-BnYAMxH5.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-
|
|
49
|
+
} from "../chunk-UGWEWOUM.mjs";
|
|
50
50
|
import "../chunk-SD42WIMV.mjs";
|
|
51
|
-
import "../chunk-
|
|
51
|
+
import "../chunk-Q3X2EHHF.mjs";
|
|
52
52
|
import "../chunk-RAYUJODN.mjs";
|
|
53
53
|
import "../chunk-DQ7ZHIXW.mjs";
|
|
54
54
|
import "../chunk-X3OLM35T.mjs";
|
|
@@ -93,7 +93,6 @@ interface EventType extends BaseResourceType {
|
|
|
93
93
|
relationId: string | null;
|
|
94
94
|
relationDates: RelationDate[] | null;
|
|
95
95
|
}[] | null;
|
|
96
|
-
sharePublic?: SocialShareResourceType | null;
|
|
97
96
|
shareRelation?: SocialShareResourceType | null;
|
|
98
97
|
}
|
|
99
98
|
type EventListItemType = Omit<EventType, "adIds" | "contactDetails" | "eventInfoId" | "nzbn" | "owner" | "posterUsage" | "promoCodes" | "provider" | "relatedPost" | "socialMedia" | "socialShare" | "tags" | "termsAgreement">;
|
|
@@ -428,6 +427,7 @@ type CouponParticipantUserType = {
|
|
|
428
427
|
type CouponCodeType = {
|
|
429
428
|
code: string;
|
|
430
429
|
qrCode: ResourceImageType;
|
|
430
|
+
shareableQrCode: ResourceImageType;
|
|
431
431
|
};
|
|
432
432
|
type CouponDataProductsType = VendorType["products"] & {
|
|
433
433
|
vendorLogo: ResourceImageType | null;
|
|
@@ -452,10 +452,24 @@ 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
|
+
}
|
|
455
460
|
type CouponTypeList = {
|
|
456
|
-
active:
|
|
457
|
-
|
|
458
|
-
|
|
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
|
+
};
|
|
459
473
|
};
|
|
460
474
|
|
|
461
475
|
type VendorCalendarData = Omit<ResourceDetails, "dateTime" | "eventStatus"> & {
|
|
@@ -546,7 +560,6 @@ interface VendorType extends BaseResourceType {
|
|
|
546
560
|
relationId: string | null;
|
|
547
561
|
relationDates: RelationDate[] | null;
|
|
548
562
|
}[] | null;
|
|
549
|
-
sharePublic?: SocialShareResourceType | null;
|
|
550
563
|
shareRelation?: SocialShareResourceType | null;
|
|
551
564
|
unregisteredVendorId?: string | null;
|
|
552
565
|
}
|
|
@@ -677,6 +690,7 @@ type BaseResourceType = Omit<BaseResourceTypeFormData, "_id" | "coverUpload" | "
|
|
|
677
690
|
rating?: number | null;
|
|
678
691
|
relatedPost?: RelatedPostType | null;
|
|
679
692
|
reviewCount?: number | null;
|
|
693
|
+
sharePublic?: SocialShareResourceType | null;
|
|
680
694
|
slug: string;
|
|
681
695
|
updatedAt: Date | null;
|
|
682
696
|
};
|
|
@@ -785,4 +799,4 @@ interface UseGetResourcesByRegionOptions {
|
|
|
785
799
|
offset?: number;
|
|
786
800
|
}
|
|
787
801
|
|
|
788
|
-
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,
|
|
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 };
|
|
@@ -93,7 +93,6 @@ interface EventType extends BaseResourceType {
|
|
|
93
93
|
relationId: string | null;
|
|
94
94
|
relationDates: RelationDate[] | null;
|
|
95
95
|
}[] | null;
|
|
96
|
-
sharePublic?: SocialShareResourceType | null;
|
|
97
96
|
shareRelation?: SocialShareResourceType | null;
|
|
98
97
|
}
|
|
99
98
|
type EventListItemType = Omit<EventType, "adIds" | "contactDetails" | "eventInfoId" | "nzbn" | "owner" | "posterUsage" | "promoCodes" | "provider" | "relatedPost" | "socialMedia" | "socialShare" | "tags" | "termsAgreement">;
|
|
@@ -428,6 +427,7 @@ type CouponParticipantUserType = {
|
|
|
428
427
|
type CouponCodeType = {
|
|
429
428
|
code: string;
|
|
430
429
|
qrCode: ResourceImageType;
|
|
430
|
+
shareableQrCode: ResourceImageType;
|
|
431
431
|
};
|
|
432
432
|
type CouponDataProductsType = VendorType["products"] & {
|
|
433
433
|
vendorLogo: ResourceImageType | null;
|
|
@@ -452,10 +452,24 @@ 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
|
+
}
|
|
455
460
|
type CouponTypeList = {
|
|
456
|
-
active:
|
|
457
|
-
|
|
458
|
-
|
|
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
|
+
};
|
|
459
473
|
};
|
|
460
474
|
|
|
461
475
|
type VendorCalendarData = Omit<ResourceDetails, "dateTime" | "eventStatus"> & {
|
|
@@ -546,7 +560,6 @@ interface VendorType extends BaseResourceType {
|
|
|
546
560
|
relationId: string | null;
|
|
547
561
|
relationDates: RelationDate[] | null;
|
|
548
562
|
}[] | null;
|
|
549
|
-
sharePublic?: SocialShareResourceType | null;
|
|
550
563
|
shareRelation?: SocialShareResourceType | null;
|
|
551
564
|
unregisteredVendorId?: string | null;
|
|
552
565
|
}
|
|
@@ -677,6 +690,7 @@ type BaseResourceType = Omit<BaseResourceTypeFormData, "_id" | "coverUpload" | "
|
|
|
677
690
|
rating?: number | null;
|
|
678
691
|
relatedPost?: RelatedPostType | null;
|
|
679
692
|
reviewCount?: number | null;
|
|
693
|
+
sharePublic?: SocialShareResourceType | null;
|
|
680
694
|
slug: string;
|
|
681
695
|
updatedAt: Date | null;
|
|
682
696
|
};
|
|
@@ -785,4 +799,4 @@ interface UseGetResourcesByRegionOptions {
|
|
|
785
799
|
offset?: number;
|
|
786
800
|
}
|
|
787
801
|
|
|
788
|
-
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,
|
|
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 };
|
package/dist/graphql/index.cjs
CHANGED
|
@@ -117,7 +117,6 @@ __export(graphql_exports, {
|
|
|
117
117
|
useGetReportedChatUsers: () => useGetReportedChatUsers,
|
|
118
118
|
useGetResourceActivity: () => useGetResourceActivity,
|
|
119
119
|
useGetResourceConnections: () => useGetResourceConnections,
|
|
120
|
-
useGetResourceCoupons: () => useGetResourceCoupons,
|
|
121
120
|
useGetSchool: () => useGetSchool,
|
|
122
121
|
useGetSchools: () => useGetSchools,
|
|
123
122
|
useGetSubscriptionPlans: () => useGetSubscriptionPlans,
|
|
@@ -4885,6 +4884,9 @@ var COUPON_CODE_FIELDS_FRAGMENT = import_client78.gql`
|
|
|
4885
4884
|
qrCode {
|
|
4886
4885
|
...ResourceImageFields
|
|
4887
4886
|
}
|
|
4887
|
+
shareableQrCode {
|
|
4888
|
+
...ResourceImageFields
|
|
4889
|
+
}
|
|
4888
4890
|
}
|
|
4889
4891
|
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
4890
4892
|
`;
|
|
@@ -4982,13 +4984,22 @@ var GET_COUPONS = import_client78.gql`
|
|
|
4982
4984
|
query getCoupons {
|
|
4983
4985
|
coupons {
|
|
4984
4986
|
active {
|
|
4985
|
-
|
|
4987
|
+
listName
|
|
4988
|
+
data {
|
|
4989
|
+
...CouponFields
|
|
4990
|
+
}
|
|
4986
4991
|
}
|
|
4987
4992
|
owned {
|
|
4988
|
-
|
|
4993
|
+
listName
|
|
4994
|
+
data {
|
|
4995
|
+
...CouponFields
|
|
4996
|
+
}
|
|
4989
4997
|
}
|
|
4990
4998
|
scanned {
|
|
4991
|
-
|
|
4999
|
+
listName
|
|
5000
|
+
data {
|
|
5001
|
+
...CouponFields
|
|
5002
|
+
}
|
|
4992
5003
|
}
|
|
4993
5004
|
}
|
|
4994
5005
|
}
|
|
@@ -5002,14 +5013,6 @@ var GET_COUPON = import_client78.gql`
|
|
|
5002
5013
|
}
|
|
5003
5014
|
${COUPON}
|
|
5004
5015
|
`;
|
|
5005
|
-
var GET_RESOURCE_COUPONS = import_client78.gql`
|
|
5006
|
-
query getResourceCoupons($resourceId: ID!, $resourceType: ResourceTypeEnum!) {
|
|
5007
|
-
resourceCoupons(resourceId: $resourceId, resourceType: $resourceType) {
|
|
5008
|
-
...CouponFields
|
|
5009
|
-
}
|
|
5010
|
-
}
|
|
5011
|
-
${COUPON}
|
|
5012
|
-
`;
|
|
5013
5016
|
|
|
5014
5017
|
// src/graphql/mutations/coupon.ts
|
|
5015
5018
|
var CREATE_COUPON_MUTATION = import_client79.gql`
|
|
@@ -5096,15 +5099,6 @@ var useGetCoupon = (_id) => {
|
|
|
5096
5099
|
const coupon = data?.coupon || null;
|
|
5097
5100
|
return { coupon, error, loading, refetch };
|
|
5098
5101
|
};
|
|
5099
|
-
var useGetResourceCoupons = (resourceId, resourceType) => {
|
|
5100
|
-
const { loading, error, data, refetch } = (0, import_client81.useQuery)(GET_RESOURCE_COUPONS, {
|
|
5101
|
-
fetchPolicy: "network-only",
|
|
5102
|
-
skip: !resourceId || resourceId === "" || !resourceType,
|
|
5103
|
-
variables: { resourceId, resourceType }
|
|
5104
|
-
});
|
|
5105
|
-
const resourceCoupons = data?.resourceCoupons || [];
|
|
5106
|
-
return { error, loading, refetch, resourceCoupons };
|
|
5107
|
-
};
|
|
5108
5102
|
// Annotate the CommonJS export names for ESM import in node:
|
|
5109
5103
|
0 && (module.exports = {
|
|
5110
5104
|
ACTIVATE_VENDOR_CLAIM_MUTATION,
|
|
@@ -5204,7 +5198,6 @@ var useGetResourceCoupons = (resourceId, resourceType) => {
|
|
|
5204
5198
|
useGetReportedChatUsers,
|
|
5205
5199
|
useGetResourceActivity,
|
|
5206
5200
|
useGetResourceConnections,
|
|
5207
|
-
useGetResourceCoupons,
|
|
5208
5201
|
useGetSchool,
|
|
5209
5202
|
useGetSchools,
|
|
5210
5203
|
useGetSubscriptionPlans,
|