@timardex/cluemart-shared 1.7.28 → 1.7.30
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-C8XVY1Ig.d.mts → ad-BDx9eYoO.d.mts} +2 -2
- package/dist/{ad-B9tX1jAF.d.ts → ad-BYbSba4V.d.ts} +2 -2
- package/dist/{coupon-BDEw47eR.d.ts → affiliate-Cxdq9Q2k.d.ts} +3 -47
- package/dist/{coupon-C6CyYA96.d.mts → affiliate-kBWfF_ZN.d.mts} +3 -47
- package/dist/auth/index.cjs +139 -27
- package/dist/auth/index.cjs.map +1 -1
- package/dist/auth/index.d.mts +3 -3
- package/dist/auth/index.d.ts +3 -3
- package/dist/auth/index.mjs +1 -1
- package/dist/{chunk-2G4J6K5K.mjs → chunk-24JSCOFX.mjs} +9 -85
- package/dist/chunk-24JSCOFX.mjs.map +1 -0
- package/dist/{chunk-4G4OFSBZ.mjs → chunk-3UYXNSNB.mjs} +12 -7
- package/dist/{chunk-4G4OFSBZ.mjs.map → chunk-3UYXNSNB.mjs.map} +1 -1
- package/dist/{chunk-LS3KB634.mjs → chunk-GZYTDNBQ.mjs} +141 -27
- package/dist/chunk-GZYTDNBQ.mjs.map +1 -0
- package/dist/{chunk-7TL4ZSUO.mjs → chunk-UV5GH6NI.mjs} +10 -2
- package/dist/chunk-UV5GH6NI.mjs.map +1 -0
- package/dist/{contactUs-C-pVJyZB.d.mts → contactUs-BXjzZEI1.d.mts} +1 -1
- package/dist/{contactUs-BZf4DfMe.d.ts → contactUs-Dk8zBwW9.d.ts} +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-BC6YWupC.d.mts → global-D1ZvBNbG.d.mts} +67 -2
- package/dist/{global-Ch0I5X41.d.ts → global-Dot3RjVJ.d.ts} +67 -2
- package/dist/graphql/index.cjs +520 -486
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +5 -5
- package/dist/graphql/index.d.ts +5 -5
- package/dist/graphql/index.mjs +2 -2
- package/dist/hooks/index.cjs +402 -352
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +8 -8
- package/dist/hooks/index.d.ts +8 -8
- package/dist/hooks/index.mjs +33 -17
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +540 -492
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +69 -47
- package/dist/index.d.ts +69 -47
- package/dist/index.mjs +355 -308
- 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-C6EjqEG7.d.ts → resourceActivities-E-7429jp.d.ts} +1 -1
- package/dist/{resourceActivities-Vh5zcV02.d.mts → resourceActivities-kGzOHndG.d.mts} +1 -1
- package/dist/sharing/index.d.mts +1 -1
- package/dist/sharing/index.d.ts +1 -1
- package/dist/types/index.cjs +9 -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-DrA0HITt.d.ts → user-Ca0QNirI.d.ts} +2 -1
- package/dist/{user-DWNmVv-L.d.mts → user-JCkXYAQS.d.mts} +2 -1
- package/dist/utils/index.cjs +11 -6
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +5 -5
- package/dist/utils/index.d.ts +5 -5
- package/dist/utils/index.mjs +4 -4
- package/package.json +1 -1
- package/dist/chunk-2G4J6K5K.mjs.map +0 -1
- package/dist/chunk-7TL4ZSUO.mjs.map +0 -1
- package/dist/chunk-LS3KB634.mjs.map +0 -1
|
@@ -383,14 +383,79 @@ type PostType = Omit<PostFormData, "content" | "coverUpload" | "resource"> & {
|
|
|
383
383
|
updatedAt: Date | null;
|
|
384
384
|
};
|
|
385
385
|
|
|
386
|
+
type ProductCoupon = {
|
|
387
|
+
couponDocumentId: string;
|
|
388
|
+
couponId: string;
|
|
389
|
+
};
|
|
390
|
+
declare enum EnumCouponQualificationType {
|
|
391
|
+
PURCHASE = "PURCHASE",
|
|
392
|
+
MARKET_VISIT = "MARKET_VISIT"
|
|
393
|
+
}
|
|
394
|
+
type CouponPurchaseOption = {
|
|
395
|
+
buy: number;
|
|
396
|
+
get: number;
|
|
397
|
+
type: EnumCouponQualificationType.PURCHASE;
|
|
398
|
+
unit: string;
|
|
399
|
+
};
|
|
400
|
+
type CouponMarketVisitOption = {
|
|
401
|
+
type: EnumCouponQualificationType.MARKET_VISIT;
|
|
402
|
+
visits: number;
|
|
403
|
+
};
|
|
404
|
+
type CouponOption = CouponPurchaseOption | CouponMarketVisitOption;
|
|
405
|
+
type CouponReward = {
|
|
406
|
+
productId: string;
|
|
407
|
+
quantity: number;
|
|
408
|
+
unit: string;
|
|
409
|
+
vendorId: string;
|
|
410
|
+
};
|
|
411
|
+
type CouponDefaultsFormData = {
|
|
412
|
+
couponDescription: string;
|
|
413
|
+
couponOption: CouponOption;
|
|
414
|
+
couponRewards?: CouponReward[];
|
|
415
|
+
endDate: Date;
|
|
416
|
+
startDate: Date;
|
|
417
|
+
};
|
|
418
|
+
type CreateCouponFormData = CreateFormData<CouponDefaultsFormData>;
|
|
419
|
+
type CouponParticipantUserType = {
|
|
420
|
+
couponCollectedCount: number;
|
|
421
|
+
couponRedeemedAt: Date | null;
|
|
422
|
+
createdAt: Date;
|
|
423
|
+
updatedAt: Date | null;
|
|
424
|
+
userId: string;
|
|
425
|
+
};
|
|
426
|
+
type CouponCodeType = {
|
|
427
|
+
code: string;
|
|
428
|
+
qrCode: ResourceImageType;
|
|
429
|
+
};
|
|
430
|
+
type CouponDataType = CouponDefaultsFormData & {
|
|
431
|
+
_id: string;
|
|
432
|
+
active: boolean;
|
|
433
|
+
couponCode: CouponCodeType;
|
|
434
|
+
createdAt: Date;
|
|
435
|
+
participantUsers: CouponParticipantUserType[] | null;
|
|
436
|
+
resourceId: string;
|
|
437
|
+
resourceType: EnumResourceType;
|
|
438
|
+
updatedAt: Date | null;
|
|
439
|
+
};
|
|
440
|
+
type CreateCouponDefaults = Omit<CouponDataType, "_id">;
|
|
441
|
+
interface CouponType {
|
|
442
|
+
_id: string;
|
|
443
|
+
active: boolean;
|
|
444
|
+
couponData: CouponDataType[] | null;
|
|
445
|
+
createdAt: Date;
|
|
446
|
+
deletedAt: Date | null;
|
|
447
|
+
owner: OwnerType;
|
|
448
|
+
updatedAt: Date | null;
|
|
449
|
+
}
|
|
450
|
+
|
|
386
451
|
type VendorCalendarData = Omit<ResourceDetails, "dateTime" | "eventStatus"> & {
|
|
387
452
|
dateTime: DateTimeType;
|
|
388
453
|
};
|
|
389
454
|
type VendorProductList = {
|
|
390
455
|
_id?: string;
|
|
456
|
+
coupon?: ProductCoupon | null;
|
|
391
457
|
createdAt?: Date | null;
|
|
392
458
|
description?: string | null;
|
|
393
|
-
hasCoupon?: boolean | null;
|
|
394
459
|
name: string;
|
|
395
460
|
price: number;
|
|
396
461
|
priceUnit: string;
|
|
@@ -709,4 +774,4 @@ interface UseGetResourcesByRegionOptions {
|
|
|
709
774
|
offset?: number;
|
|
710
775
|
}
|
|
711
776
|
|
|
712
|
-
export { type
|
|
777
|
+
export { type CreateCouponDefaults 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 CouponDataType as T, type UseGetResourcesByRegionOptions as U, type VendorClaimTokenValidation as V, type CouponMarketVisitOption as W, type CouponOption as X, type CouponParticipantUserType as Y, type CouponPurchaseOption as Z, type CouponReward as _, type FormDateField as a, type CreateFormData as a0, type DailyClueBaseGame as a1, type DailyClueGameData as a2, type DateTimeType as a3, type DateTimeWithPriceType as a4, type DeviceInfo as a5, EnumCouponQualificationType as a6, EnumGameStatus as a7, EnumGameType as a8, EnumPostContentType as a9, type PuzzleAnswer as aA, type PuzzleAnsweredQuestion as aB, type PuzzleBaseGame as aC, type PuzzleGameData as aD, type PuzzleQuestion as aE, type RelatedPostType as aF, type RelationDate as aG, type RelationInputType as aH, type ResourceContactDetailsType as aI, type ResourceDetails as aJ, type ResourceImageType as aK, type SocialMediaType as aL, type SocialShareResourceType as aM, type Subcategory as aN, type SubcategoryItems as aO, type TermsAgreement as aP, type UnregisteredVendorInvitationType as aQ, type VendorAttributes as aR, type VendorCalendarData as aS, type VendorProductList as aT, gameScreenIdentifierList as aU, gameTypeToDisplayName as aV, type EventStatusType as aa, type GameDate as ab, type GameHistory as ac, type GamePlacement as ad, type GamePlacementClue as ae, type GameType as af, type GeocodeLocation as ag, type GlobalGameData as ah, type ImageObjectType as ai, type LocationGeoType as aj, type Nullable as ak, type OwnerType as al, PROMO_CODE_PREFIX as am, type PaymentInfoType as an, type PostContentData as ao, type PostContentFormData as ap, type PostContentGame as aq, type PostContentImage as ar, type PostContentList as as, type PostContentTextarea as at, type PostContentType as au, type PostContentVideo as av, type PostFileInput as aw, type PostResource as ax, type ProductCoupon as ay, type PromoCodeType 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 };
|
|
@@ -383,14 +383,79 @@ type PostType = Omit<PostFormData, "content" | "coverUpload" | "resource"> & {
|
|
|
383
383
|
updatedAt: Date | null;
|
|
384
384
|
};
|
|
385
385
|
|
|
386
|
+
type ProductCoupon = {
|
|
387
|
+
couponDocumentId: string;
|
|
388
|
+
couponId: string;
|
|
389
|
+
};
|
|
390
|
+
declare enum EnumCouponQualificationType {
|
|
391
|
+
PURCHASE = "PURCHASE",
|
|
392
|
+
MARKET_VISIT = "MARKET_VISIT"
|
|
393
|
+
}
|
|
394
|
+
type CouponPurchaseOption = {
|
|
395
|
+
buy: number;
|
|
396
|
+
get: number;
|
|
397
|
+
type: EnumCouponQualificationType.PURCHASE;
|
|
398
|
+
unit: string;
|
|
399
|
+
};
|
|
400
|
+
type CouponMarketVisitOption = {
|
|
401
|
+
type: EnumCouponQualificationType.MARKET_VISIT;
|
|
402
|
+
visits: number;
|
|
403
|
+
};
|
|
404
|
+
type CouponOption = CouponPurchaseOption | CouponMarketVisitOption;
|
|
405
|
+
type CouponReward = {
|
|
406
|
+
productId: string;
|
|
407
|
+
quantity: number;
|
|
408
|
+
unit: string;
|
|
409
|
+
vendorId: string;
|
|
410
|
+
};
|
|
411
|
+
type CouponDefaultsFormData = {
|
|
412
|
+
couponDescription: string;
|
|
413
|
+
couponOption: CouponOption;
|
|
414
|
+
couponRewards?: CouponReward[];
|
|
415
|
+
endDate: Date;
|
|
416
|
+
startDate: Date;
|
|
417
|
+
};
|
|
418
|
+
type CreateCouponFormData = CreateFormData<CouponDefaultsFormData>;
|
|
419
|
+
type CouponParticipantUserType = {
|
|
420
|
+
couponCollectedCount: number;
|
|
421
|
+
couponRedeemedAt: Date | null;
|
|
422
|
+
createdAt: Date;
|
|
423
|
+
updatedAt: Date | null;
|
|
424
|
+
userId: string;
|
|
425
|
+
};
|
|
426
|
+
type CouponCodeType = {
|
|
427
|
+
code: string;
|
|
428
|
+
qrCode: ResourceImageType;
|
|
429
|
+
};
|
|
430
|
+
type CouponDataType = CouponDefaultsFormData & {
|
|
431
|
+
_id: string;
|
|
432
|
+
active: boolean;
|
|
433
|
+
couponCode: CouponCodeType;
|
|
434
|
+
createdAt: Date;
|
|
435
|
+
participantUsers: CouponParticipantUserType[] | null;
|
|
436
|
+
resourceId: string;
|
|
437
|
+
resourceType: EnumResourceType;
|
|
438
|
+
updatedAt: Date | null;
|
|
439
|
+
};
|
|
440
|
+
type CreateCouponDefaults = Omit<CouponDataType, "_id">;
|
|
441
|
+
interface CouponType {
|
|
442
|
+
_id: string;
|
|
443
|
+
active: boolean;
|
|
444
|
+
couponData: CouponDataType[] | null;
|
|
445
|
+
createdAt: Date;
|
|
446
|
+
deletedAt: Date | null;
|
|
447
|
+
owner: OwnerType;
|
|
448
|
+
updatedAt: Date | null;
|
|
449
|
+
}
|
|
450
|
+
|
|
386
451
|
type VendorCalendarData = Omit<ResourceDetails, "dateTime" | "eventStatus"> & {
|
|
387
452
|
dateTime: DateTimeType;
|
|
388
453
|
};
|
|
389
454
|
type VendorProductList = {
|
|
390
455
|
_id?: string;
|
|
456
|
+
coupon?: ProductCoupon | null;
|
|
391
457
|
createdAt?: Date | null;
|
|
392
458
|
description?: string | null;
|
|
393
|
-
hasCoupon?: boolean | null;
|
|
394
459
|
name: string;
|
|
395
460
|
price: number;
|
|
396
461
|
priceUnit: string;
|
|
@@ -709,4 +774,4 @@ interface UseGetResourcesByRegionOptions {
|
|
|
709
774
|
offset?: number;
|
|
710
775
|
}
|
|
711
776
|
|
|
712
|
-
export { type
|
|
777
|
+
export { type CreateCouponDefaults 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 CouponDataType as T, type UseGetResourcesByRegionOptions as U, type VendorClaimTokenValidation as V, type CouponMarketVisitOption as W, type CouponOption as X, type CouponParticipantUserType as Y, type CouponPurchaseOption as Z, type CouponReward as _, type FormDateField as a, type CreateFormData as a0, type DailyClueBaseGame as a1, type DailyClueGameData as a2, type DateTimeType as a3, type DateTimeWithPriceType as a4, type DeviceInfo as a5, EnumCouponQualificationType as a6, EnumGameStatus as a7, EnumGameType as a8, EnumPostContentType as a9, type PuzzleAnswer as aA, type PuzzleAnsweredQuestion as aB, type PuzzleBaseGame as aC, type PuzzleGameData as aD, type PuzzleQuestion as aE, type RelatedPostType as aF, type RelationDate as aG, type RelationInputType as aH, type ResourceContactDetailsType as aI, type ResourceDetails as aJ, type ResourceImageType as aK, type SocialMediaType as aL, type SocialShareResourceType as aM, type Subcategory as aN, type SubcategoryItems as aO, type TermsAgreement as aP, type UnregisteredVendorInvitationType as aQ, type VendorAttributes as aR, type VendorCalendarData as aS, type VendorProductList as aT, gameScreenIdentifierList as aU, gameTypeToDisplayName as aV, type EventStatusType as aa, type GameDate as ab, type GameHistory as ac, type GamePlacement as ad, type GamePlacementClue as ae, type GameType as af, type GeocodeLocation as ag, type GlobalGameData as ah, type ImageObjectType as ai, type LocationGeoType as aj, type Nullable as ak, type OwnerType as al, PROMO_CODE_PREFIX as am, type PaymentInfoType as an, type PostContentData as ao, type PostContentFormData as ap, type PostContentGame as aq, type PostContentImage as ar, type PostContentList as as, type PostContentTextarea as at, type PostContentType as au, type PostContentVideo as av, type PostFileInput as aw, type PostResource as ax, type ProductCoupon as ay, type PromoCodeType 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 };
|