@timardex/cluemart-shared 2.1.2 → 2.1.4

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 (45) hide show
  1. package/dist/{ad-sqc3JME-.d.mts → ad-D0xWGTAB.d.mts} +2 -2
  2. package/dist/{ad-CUckkB7I.d.ts → ad-rrCulESo.d.ts} +2 -2
  3. package/dist/{affiliate-7SDCo04C.d.mts → affiliate-C9eTAxEj.d.ts} +3 -3
  4. package/dist/{affiliate-C03r7ssL.d.ts → affiliate-CGe0hR-U.d.mts} +3 -3
  5. package/dist/auth/index.d.mts +3 -3
  6. package/dist/auth/index.d.ts +3 -3
  7. package/dist/{chunk-MX3L6DSE.mjs → chunk-GOWIY4NZ.mjs} +6 -2
  8. package/dist/chunk-GOWIY4NZ.mjs.map +1 -0
  9. package/dist/{contactUs-BG3sJ6gc.d.ts → contactUs-Be0zqd9Q.d.ts} +1 -1
  10. package/dist/{contactUs-CWFP59_0.d.mts → contactUs-CQXyz40A.d.mts} +1 -1
  11. package/dist/formFields/index.d.mts +1 -1
  12. package/dist/formFields/index.d.ts +1 -1
  13. package/dist/{global-BqeTWrvk.d.ts → global-CAf04GRC.d.ts} +7 -9
  14. package/dist/{global-CWo-hWKZ.d.mts → global-d8RFwoYS.d.mts} +7 -9
  15. package/dist/graphql/index.cjs +5 -1
  16. package/dist/graphql/index.cjs.map +1 -1
  17. package/dist/graphql/index.d.mts +5 -5
  18. package/dist/graphql/index.d.ts +5 -5
  19. package/dist/graphql/index.mjs +1 -1
  20. package/dist/hooks/index.cjs.map +1 -1
  21. package/dist/hooks/index.d.mts +5 -5
  22. package/dist/hooks/index.d.ts +5 -5
  23. package/dist/hooks/index.mjs +1 -1
  24. package/dist/index.cjs +5 -1
  25. package/dist/index.cjs.map +1 -1
  26. package/dist/index.d.mts +7 -9
  27. package/dist/index.d.ts +7 -9
  28. package/dist/index.mjs +5 -1
  29. package/dist/index.mjs.map +1 -1
  30. package/dist/map/index.d.mts +1 -1
  31. package/dist/map/index.d.ts +1 -1
  32. package/dist/region/index.d.mts +1 -1
  33. package/dist/region/index.d.ts +1 -1
  34. package/dist/{resourceActivities-BbhGFtZA.d.ts → resourceActivities-ByCZO0rJ.d.ts} +1 -1
  35. package/dist/{resourceActivities-D81u7Mu0.d.mts → resourceActivities-DO_PjmMN.d.mts} +1 -1
  36. package/dist/sharing/index.d.mts +1 -1
  37. package/dist/sharing/index.d.ts +1 -1
  38. package/dist/types/index.d.mts +7 -7
  39. package/dist/types/index.d.ts +7 -7
  40. package/dist/{user-DKcyf8gn.d.mts → user-BHYl7drL.d.mts} +1 -1
  41. package/dist/{user-2peJoOeK.d.ts → user-DCqDbTLd.d.ts} +1 -1
  42. package/dist/utils/index.d.mts +3 -3
  43. package/dist/utils/index.d.ts +3 -3
  44. package/package.json +1 -1
  45. package/dist/chunk-MX3L6DSE.mjs.map +0 -1
@@ -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, c as CategoryColorType } from '../global-BqeTWrvk.js';
1
+ import { O as OptionItem, F as FormField, a as FormDateField, R as RefundPolicy, b as Requirement, S as StallType, C as Category, c as CategoryColorType } from '../global-CAf04GRC.js';
2
2
  import 'react-hook-form';
3
3
  import '../enums/index.js';
4
4
 
@@ -29,6 +29,10 @@ interface RelationType {
29
29
  type RelationInputType = Omit<RelationType, "_id" | "chatId" | "createdAt" | "updatedAt" | "deletedAt"> & {
30
30
  chatId?: string;
31
31
  };
32
+ type ResourceRelationField = {
33
+ relationId: string;
34
+ relationDates: RelationDate[];
35
+ };
32
36
 
33
37
  type StallType = {
34
38
  label: string;
@@ -89,10 +93,7 @@ interface EventType extends BaseResourceType {
89
93
  provider: string | null;
90
94
  rainOrShine: boolean;
91
95
  tags: string[];
92
- relations: {
93
- relationId: string | null;
94
- relationDates: RelationDate[] | null;
95
- }[] | null;
96
+ relations: ResourceRelationField[] | null;
96
97
  shareRelation?: SocialShareResourceType | null;
97
98
  }
98
99
  type EventListItemType = Omit<EventType, "adIds" | "contactDetails" | "eventInfoId" | "nzbn" | "owner" | "posterUsage" | "promoCodes" | "provider" | "relatedPost" | "socialMedia" | "socialShare" | "tags" | "termsAgreement">;
@@ -590,10 +591,7 @@ interface VendorType extends BaseResourceType {
590
591
  products: VendorFormData["products"] | null;
591
592
  vendorInfoId: string;
592
593
  vendorType: EnumVendorType;
593
- relations: {
594
- relationId: string | null;
595
- relationDates: RelationDate[] | null;
596
- }[] | null;
594
+ relations: ResourceRelationField[] | null;
597
595
  shareRelation?: SocialShareResourceType | null;
598
596
  unregisteredVendorId?: string | null;
599
597
  }
@@ -874,4 +872,4 @@ interface UseGetResourcesByRegionOptions extends PaginationOptions {
874
872
  skip?: boolean;
875
873
  }
876
874
 
877
- export { type CouponParticipantUserType 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 CouponMarketPassportOption as Y, type CouponMarketVisitOption as Z, type CouponOption as _, type FormDateField as a, type VendorAvailability as a$, type CouponPurchaseOption as a0, type CouponVendorProduct 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 PostContentTextarea as aA, type PostContentType as aB, type PostContentVideo as aC, type PostFileInput as aD, type PostListFilter as aE, type PostResource as aF, type ProductCoupon as aG, type PromoCodeType as aH, type PuzzleAnswer as aI, type PuzzleAnsweredQuestion as aJ, type PuzzleBaseGame as aK, type PuzzleGameData as aL, type PuzzleQuestion as aM, type RelatedPostType as aN, type RelationDate as aO, type RelationInputType as aP, type ResourceContactDetailsType as aQ, type ResourceDetails as aR, type ResourceImageType as aS, type SocialMediaType as aT, type SocialShareResourceType as aU, type Subcategory as aV, type SubcategoryItems as aW, type TermsAgreement as aX, type UnregisteredVendorInvitationType as aY, type UserListFilter as aZ, type VendorAttributes as a_, EnumGameStatus as aa, EnumGameType as ab, EnumPostContentType as ac, EnumPostType as ad, type EventListFilter as ae, type EventStatusType as af, type GameDate as ag, type GameHistory as ah, type GamePlacement as ai, type GamePlacementClue as aj, type GameType as ak, type GeocodeLocation as al, type GlobalGameData as am, type ImageObjectType as an, type LocationGeoType as ao, type Nullable as ap, type OwnerType as aq, PROMO_CODE_PREFIX as ar, type PaginationOptions as as, type PartnerListFilter as at, type PaymentInfoType as au, type PostContentData as av, type PostContentFormData as aw, type PostContentGame as ax, type PostContentImage as ay, type PostContentList as az, type Requirement as b, type VendorCalendarData as b0, type VendorDowngradeSnapshot as b1, type VendorListFilter as b2, type VendorProductList as b3, gameScreenIdentifierList as b4, gameTypeToDisplayName as b5, type CategoryColorType as c, type EventListItemType as d, type EventInfoType as e, type RelationType as f, type ResourceConnectionsType as g, type UnregisteredVendorType as h, type VendorType as i, type VendorInfoType as j, type MyPendingVendorClaim as k, type UserLicenceType as l, type PostType 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 };
875
+ export { type CouponParticipantUserType 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 CouponMarketPassportOption as Y, type CouponMarketVisitOption as Z, type CouponOption as _, type FormDateField as a, type VendorAttributes as a$, type CouponPurchaseOption as a0, type CouponVendorProduct 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 PostContentTextarea as aA, type PostContentType as aB, type PostContentVideo as aC, type PostFileInput as aD, type PostListFilter as aE, type PostResource as aF, type ProductCoupon as aG, type PromoCodeType as aH, type PuzzleAnswer as aI, type PuzzleAnsweredQuestion as aJ, type PuzzleBaseGame as aK, type PuzzleGameData as aL, type PuzzleQuestion as aM, type RelatedPostType as aN, type RelationDate as aO, type RelationInputType as aP, type ResourceContactDetailsType as aQ, type ResourceDetails as aR, type ResourceImageType as aS, type ResourceRelationField as aT, type SocialMediaType as aU, type SocialShareResourceType as aV, type Subcategory as aW, type SubcategoryItems as aX, type TermsAgreement as aY, type UnregisteredVendorInvitationType as aZ, type UserListFilter as a_, EnumGameStatus as aa, EnumGameType as ab, EnumPostContentType as ac, EnumPostType as ad, type EventListFilter as ae, type EventStatusType as af, type GameDate as ag, type GameHistory as ah, type GamePlacement as ai, type GamePlacementClue as aj, type GameType as ak, type GeocodeLocation as al, type GlobalGameData as am, type ImageObjectType as an, type LocationGeoType as ao, type Nullable as ap, type OwnerType as aq, PROMO_CODE_PREFIX as ar, type PaginationOptions as as, type PartnerListFilter as at, type PaymentInfoType as au, type PostContentData as av, type PostContentFormData as aw, type PostContentGame as ax, type PostContentImage as ay, type PostContentList as az, type Requirement as b, type VendorAvailability as b0, type VendorCalendarData as b1, type VendorDowngradeSnapshot as b2, type VendorListFilter as b3, type VendorProductList as b4, gameScreenIdentifierList as b5, gameTypeToDisplayName as b6, type CategoryColorType as c, type EventListItemType as d, type EventInfoType as e, type RelationType as f, type ResourceConnectionsType as g, type UnregisteredVendorType as h, type VendorType as i, type VendorInfoType as j, type MyPendingVendorClaim as k, type UserLicenceType as l, type PostType 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 };
@@ -29,6 +29,10 @@ interface RelationType {
29
29
  type RelationInputType = Omit<RelationType, "_id" | "chatId" | "createdAt" | "updatedAt" | "deletedAt"> & {
30
30
  chatId?: string;
31
31
  };
32
+ type ResourceRelationField = {
33
+ relationId: string;
34
+ relationDates: RelationDate[];
35
+ };
32
36
 
33
37
  type StallType = {
34
38
  label: string;
@@ -89,10 +93,7 @@ interface EventType extends BaseResourceType {
89
93
  provider: string | null;
90
94
  rainOrShine: boolean;
91
95
  tags: string[];
92
- relations: {
93
- relationId: string | null;
94
- relationDates: RelationDate[] | null;
95
- }[] | null;
96
+ relations: ResourceRelationField[] | null;
96
97
  shareRelation?: SocialShareResourceType | null;
97
98
  }
98
99
  type EventListItemType = Omit<EventType, "adIds" | "contactDetails" | "eventInfoId" | "nzbn" | "owner" | "posterUsage" | "promoCodes" | "provider" | "relatedPost" | "socialMedia" | "socialShare" | "tags" | "termsAgreement">;
@@ -590,10 +591,7 @@ interface VendorType extends BaseResourceType {
590
591
  products: VendorFormData["products"] | null;
591
592
  vendorInfoId: string;
592
593
  vendorType: EnumVendorType;
593
- relations: {
594
- relationId: string | null;
595
- relationDates: RelationDate[] | null;
596
- }[] | null;
594
+ relations: ResourceRelationField[] | null;
597
595
  shareRelation?: SocialShareResourceType | null;
598
596
  unregisteredVendorId?: string | null;
599
597
  }
@@ -874,4 +872,4 @@ interface UseGetResourcesByRegionOptions extends PaginationOptions {
874
872
  skip?: boolean;
875
873
  }
876
874
 
877
- export { type CouponParticipantUserType 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 CouponMarketPassportOption as Y, type CouponMarketVisitOption as Z, type CouponOption as _, type FormDateField as a, type VendorAvailability as a$, type CouponPurchaseOption as a0, type CouponVendorProduct 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 PostContentTextarea as aA, type PostContentType as aB, type PostContentVideo as aC, type PostFileInput as aD, type PostListFilter as aE, type PostResource as aF, type ProductCoupon as aG, type PromoCodeType as aH, type PuzzleAnswer as aI, type PuzzleAnsweredQuestion as aJ, type PuzzleBaseGame as aK, type PuzzleGameData as aL, type PuzzleQuestion as aM, type RelatedPostType as aN, type RelationDate as aO, type RelationInputType as aP, type ResourceContactDetailsType as aQ, type ResourceDetails as aR, type ResourceImageType as aS, type SocialMediaType as aT, type SocialShareResourceType as aU, type Subcategory as aV, type SubcategoryItems as aW, type TermsAgreement as aX, type UnregisteredVendorInvitationType as aY, type UserListFilter as aZ, type VendorAttributes as a_, EnumGameStatus as aa, EnumGameType as ab, EnumPostContentType as ac, EnumPostType as ad, type EventListFilter as ae, type EventStatusType as af, type GameDate as ag, type GameHistory as ah, type GamePlacement as ai, type GamePlacementClue as aj, type GameType as ak, type GeocodeLocation as al, type GlobalGameData as am, type ImageObjectType as an, type LocationGeoType as ao, type Nullable as ap, type OwnerType as aq, PROMO_CODE_PREFIX as ar, type PaginationOptions as as, type PartnerListFilter as at, type PaymentInfoType as au, type PostContentData as av, type PostContentFormData as aw, type PostContentGame as ax, type PostContentImage as ay, type PostContentList as az, type Requirement as b, type VendorCalendarData as b0, type VendorDowngradeSnapshot as b1, type VendorListFilter as b2, type VendorProductList as b3, gameScreenIdentifierList as b4, gameTypeToDisplayName as b5, type CategoryColorType as c, type EventListItemType as d, type EventInfoType as e, type RelationType as f, type ResourceConnectionsType as g, type UnregisteredVendorType as h, type VendorType as i, type VendorInfoType as j, type MyPendingVendorClaim as k, type UserLicenceType as l, type PostType 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 };
875
+ export { type CouponParticipantUserType 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 CouponMarketPassportOption as Y, type CouponMarketVisitOption as Z, type CouponOption as _, type FormDateField as a, type VendorAttributes as a$, type CouponPurchaseOption as a0, type CouponVendorProduct 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 PostContentTextarea as aA, type PostContentType as aB, type PostContentVideo as aC, type PostFileInput as aD, type PostListFilter as aE, type PostResource as aF, type ProductCoupon as aG, type PromoCodeType as aH, type PuzzleAnswer as aI, type PuzzleAnsweredQuestion as aJ, type PuzzleBaseGame as aK, type PuzzleGameData as aL, type PuzzleQuestion as aM, type RelatedPostType as aN, type RelationDate as aO, type RelationInputType as aP, type ResourceContactDetailsType as aQ, type ResourceDetails as aR, type ResourceImageType as aS, type ResourceRelationField as aT, type SocialMediaType as aU, type SocialShareResourceType as aV, type Subcategory as aW, type SubcategoryItems as aX, type TermsAgreement as aY, type UnregisteredVendorInvitationType as aZ, type UserListFilter as a_, EnumGameStatus as aa, EnumGameType as ab, EnumPostContentType as ac, EnumPostType as ad, type EventListFilter as ae, type EventStatusType as af, type GameDate as ag, type GameHistory as ah, type GamePlacement as ai, type GamePlacementClue as aj, type GameType as ak, type GeocodeLocation as al, type GlobalGameData as am, type ImageObjectType as an, type LocationGeoType as ao, type Nullable as ap, type OwnerType as aq, PROMO_CODE_PREFIX as ar, type PaginationOptions as as, type PartnerListFilter as at, type PaymentInfoType as au, type PostContentData as av, type PostContentFormData as aw, type PostContentGame as ax, type PostContentImage as ay, type PostContentList as az, type Requirement as b, type VendorAvailability as b0, type VendorCalendarData as b1, type VendorDowngradeSnapshot as b2, type VendorListFilter as b3, type VendorProductList as b4, gameScreenIdentifierList as b5, gameTypeToDisplayName as b6, type CategoryColorType as c, type EventListItemType as d, type EventInfoType as e, type RelationType as f, type ResourceConnectionsType as g, type UnregisteredVendorType as h, type VendorType as i, type VendorInfoType as j, type MyPendingVendorClaim as k, type UserLicenceType as l, type PostType 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 };
@@ -2396,7 +2396,11 @@ var useGetEvent = (_id) => {
2396
2396
  };
2397
2397
  var useGetOwnedEvent = (_id, options) => {
2398
2398
  const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_OWNED_EVENT, {
2399
- fetchPolicy: "network-only",
2399
+ // `ownedEvent(futureOnly)` is a projection-specific view of EventType.
2400
+ // If this writes into normalized EventType cache, other queries like
2401
+ // `getEvent` (which can include archived dates) can overwrite `dateTime`
2402
+ // for the same entity id and leak into edit screens. Keep it uncached.
2403
+ fetchPolicy: "no-cache",
2400
2404
  skip: !_id,
2401
2405
  variables: { _id, futureOnly: options?.futureOnly ?? false }
2402
2406
  });