@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.
Files changed (63) hide show
  1. package/dist/{ad-C8XVY1Ig.d.mts → ad-BDx9eYoO.d.mts} +2 -2
  2. package/dist/{ad-B9tX1jAF.d.ts → ad-BYbSba4V.d.ts} +2 -2
  3. package/dist/{coupon-BDEw47eR.d.ts → affiliate-Cxdq9Q2k.d.ts} +3 -47
  4. package/dist/{coupon-C6CyYA96.d.mts → affiliate-kBWfF_ZN.d.mts} +3 -47
  5. package/dist/auth/index.cjs +139 -27
  6. package/dist/auth/index.cjs.map +1 -1
  7. package/dist/auth/index.d.mts +3 -3
  8. package/dist/auth/index.d.ts +3 -3
  9. package/dist/auth/index.mjs +1 -1
  10. package/dist/{chunk-2G4J6K5K.mjs → chunk-24JSCOFX.mjs} +9 -85
  11. package/dist/chunk-24JSCOFX.mjs.map +1 -0
  12. package/dist/{chunk-4G4OFSBZ.mjs → chunk-3UYXNSNB.mjs} +12 -7
  13. package/dist/{chunk-4G4OFSBZ.mjs.map → chunk-3UYXNSNB.mjs.map} +1 -1
  14. package/dist/{chunk-LS3KB634.mjs → chunk-GZYTDNBQ.mjs} +141 -27
  15. package/dist/chunk-GZYTDNBQ.mjs.map +1 -0
  16. package/dist/{chunk-7TL4ZSUO.mjs → chunk-UV5GH6NI.mjs} +10 -2
  17. package/dist/chunk-UV5GH6NI.mjs.map +1 -0
  18. package/dist/{contactUs-C-pVJyZB.d.mts → contactUs-BXjzZEI1.d.mts} +1 -1
  19. package/dist/{contactUs-BZf4DfMe.d.ts → contactUs-Dk8zBwW9.d.ts} +1 -1
  20. package/dist/formFields/index.d.mts +1 -1
  21. package/dist/formFields/index.d.ts +1 -1
  22. package/dist/formFields/index.mjs +2 -2
  23. package/dist/{global-BC6YWupC.d.mts → global-D1ZvBNbG.d.mts} +67 -2
  24. package/dist/{global-Ch0I5X41.d.ts → global-Dot3RjVJ.d.ts} +67 -2
  25. package/dist/graphql/index.cjs +520 -486
  26. package/dist/graphql/index.cjs.map +1 -1
  27. package/dist/graphql/index.d.mts +5 -5
  28. package/dist/graphql/index.d.ts +5 -5
  29. package/dist/graphql/index.mjs +2 -2
  30. package/dist/hooks/index.cjs +402 -352
  31. package/dist/hooks/index.cjs.map +1 -1
  32. package/dist/hooks/index.d.mts +8 -8
  33. package/dist/hooks/index.d.ts +8 -8
  34. package/dist/hooks/index.mjs +33 -17
  35. package/dist/hooks/index.mjs.map +1 -1
  36. package/dist/index.cjs +540 -492
  37. package/dist/index.cjs.map +1 -1
  38. package/dist/index.d.mts +69 -47
  39. package/dist/index.d.ts +69 -47
  40. package/dist/index.mjs +355 -308
  41. package/dist/index.mjs.map +1 -1
  42. package/dist/map/index.d.mts +1 -1
  43. package/dist/map/index.d.ts +1 -1
  44. package/dist/{resourceActivities-C6EjqEG7.d.ts → resourceActivities-E-7429jp.d.ts} +1 -1
  45. package/dist/{resourceActivities-Vh5zcV02.d.mts → resourceActivities-kGzOHndG.d.mts} +1 -1
  46. package/dist/sharing/index.d.mts +1 -1
  47. package/dist/sharing/index.d.ts +1 -1
  48. package/dist/types/index.cjs +9 -0
  49. package/dist/types/index.cjs.map +1 -1
  50. package/dist/types/index.d.mts +7 -7
  51. package/dist/types/index.d.ts +7 -7
  52. package/dist/types/index.mjs +3 -1
  53. package/dist/{user-DrA0HITt.d.ts → user-Ca0QNirI.d.ts} +2 -1
  54. package/dist/{user-DWNmVv-L.d.mts → user-JCkXYAQS.d.mts} +2 -1
  55. package/dist/utils/index.cjs +11 -6
  56. package/dist/utils/index.cjs.map +1 -1
  57. package/dist/utils/index.d.mts +5 -5
  58. package/dist/utils/index.d.ts +5 -5
  59. package/dist/utils/index.mjs +4 -4
  60. package/package.json +1 -1
  61. package/dist/chunk-2G4J6K5K.mjs.map +0 -1
  62. package/dist/chunk-7TL4ZSUO.mjs.map +0 -1
  63. 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 GameDate as $, type Region as A, type BaseResourceTypeFormData as B, type Category as C, type BaseGameMap as D, type EventType as E, type FormField as F, type GameDocType as G, type BaseGameType as H, type BaseResourceType as I, type CreateFormData as J, type DailyClueBaseGame as K, type LocationType as L, type MutationResponse as M, type DailyClueGameData as N, type OptionItem as O, type PosterUsageType as P, type DateTimeType as Q, type RefundPolicy as R, type StallType as S, type DateTimeWithPriceType as T, type UseGetResourcesByRegionOptions as U, type VendorClaimTokenValidation as V, type DeviceInfo as W, EnumGameStatus as X, EnumGameType as Y, EnumPostContentType as Z, type EventStatusType as _, type FormDateField as a, type GameHistory as a0, type GamePlacement as a1, type GamePlacementClue as a2, type GameType as a3, type GeocodeLocation as a4, type GlobalGameData as a5, type ImageObjectType as a6, type LocationGeoType as a7, type Nullable as a8, type OwnerType as a9, type Subcategory as aA, type SubcategoryItems as aB, type TermsAgreement as aC, type UnregisteredVendorInvitationType as aD, type VendorAttributes as aE, type VendorCalendarData as aF, type VendorProductList as aG, gameScreenIdentifierList as aH, gameTypeToDisplayName as aI, PROMO_CODE_PREFIX as aa, type PaymentInfoType as ab, type PostContentData as ac, type PostContentFormData as ad, type PostContentGame as ae, type PostContentImage as af, type PostContentList as ag, type PostContentTextarea as ah, type PostContentType as ai, type PostContentVideo as aj, type PostFileInput as ak, type PostResource as al, type PromoCodeType as am, type PuzzleAnswer as an, type PuzzleAnsweredQuestion as ao, type PuzzleBaseGame as ap, type PuzzleGameData as aq, type PuzzleQuestion as ar, type RelatedPostType as as, type RelationDate as at, type RelationInputType as au, type ResourceContactDetailsType as av, type ResourceDetails as aw, type ResourceImageType as ax, type SocialMediaType as ay, type SocialShareResourceType 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 VendorFormData as o, type CreateVendorFormData as p, type VendorInfoFormData as q, type CreateVendorInfoFormData as r, type UnregisteredVendorFormData as s, type CreateUnregisteredVendorFormData as t, type EventFormData as u, type CreateEventFormData as v, type EventInfoFormData as w, type CreateEventInfoFormData as x, type PostFormData as y, type CreatePostFormData as z };
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 GameDate as $, type Region as A, type BaseResourceTypeFormData as B, type Category as C, type BaseGameMap as D, type EventType as E, type FormField as F, type GameDocType as G, type BaseGameType as H, type BaseResourceType as I, type CreateFormData as J, type DailyClueBaseGame as K, type LocationType as L, type MutationResponse as M, type DailyClueGameData as N, type OptionItem as O, type PosterUsageType as P, type DateTimeType as Q, type RefundPolicy as R, type StallType as S, type DateTimeWithPriceType as T, type UseGetResourcesByRegionOptions as U, type VendorClaimTokenValidation as V, type DeviceInfo as W, EnumGameStatus as X, EnumGameType as Y, EnumPostContentType as Z, type EventStatusType as _, type FormDateField as a, type GameHistory as a0, type GamePlacement as a1, type GamePlacementClue as a2, type GameType as a3, type GeocodeLocation as a4, type GlobalGameData as a5, type ImageObjectType as a6, type LocationGeoType as a7, type Nullable as a8, type OwnerType as a9, type Subcategory as aA, type SubcategoryItems as aB, type TermsAgreement as aC, type UnregisteredVendorInvitationType as aD, type VendorAttributes as aE, type VendorCalendarData as aF, type VendorProductList as aG, gameScreenIdentifierList as aH, gameTypeToDisplayName as aI, PROMO_CODE_PREFIX as aa, type PaymentInfoType as ab, type PostContentData as ac, type PostContentFormData as ad, type PostContentGame as ae, type PostContentImage as af, type PostContentList as ag, type PostContentTextarea as ah, type PostContentType as ai, type PostContentVideo as aj, type PostFileInput as ak, type PostResource as al, type PromoCodeType as am, type PuzzleAnswer as an, type PuzzleAnsweredQuestion as ao, type PuzzleBaseGame as ap, type PuzzleGameData as aq, type PuzzleQuestion as ar, type RelatedPostType as as, type RelationDate as at, type RelationInputType as au, type ResourceContactDetailsType as av, type ResourceDetails as aw, type ResourceImageType as ax, type SocialMediaType as ay, type SocialShareResourceType 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 VendorFormData as o, type CreateVendorFormData as p, type VendorInfoFormData as q, type CreateVendorInfoFormData as r, type UnregisteredVendorFormData as s, type CreateUnregisteredVendorFormData as t, type EventFormData as u, type CreateEventFormData as v, type EventInfoFormData as w, type CreateEventInfoFormData as x, type PostFormData as y, type CreatePostFormData as z };
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 };