@timardex/cluemart-shared 2.2.0 → 2.2.2

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 (95) hide show
  1. package/dist/{ad-rrCulESo.d.ts → ad-C4L_-r-4.d.ts} +12 -3
  2. package/dist/{ad-D0xWGTAB.d.mts → ad-XtBAH4rD.d.mts} +12 -3
  3. package/dist/{affiliate-C9eTAxEj.d.ts → affiliate-CxZHVZb2.d.ts} +2 -2
  4. package/dist/{affiliate-CGe0hR-U.d.mts → affiliate-D-L_UtL8.d.mts} +2 -2
  5. package/dist/apollo/index.cjs +12 -7
  6. package/dist/apollo/index.cjs.map +1 -1
  7. package/dist/apollo/index.d.mts +11 -0
  8. package/dist/apollo/index.d.ts +11 -0
  9. package/dist/apollo/index.mjs +12 -7
  10. package/dist/apollo/index.mjs.map +1 -1
  11. package/dist/auth/index.cjs +42 -3
  12. package/dist/auth/index.cjs.map +1 -1
  13. package/dist/auth/index.d.mts +5 -4
  14. package/dist/auth/index.d.ts +5 -4
  15. package/dist/auth/index.mjs +7 -5
  16. package/dist/auth/index.mjs.map +1 -1
  17. package/dist/{chunk-OSSBKFNH.mjs → chunk-BR4XNXE7.mjs} +52 -1
  18. package/dist/chunk-BR4XNXE7.mjs.map +1 -0
  19. package/dist/{chunk-PIEXGXTD.mjs → chunk-FWKZZMQR.mjs} +1 -1
  20. package/dist/chunk-FWKZZMQR.mjs.map +1 -0
  21. package/dist/{chunk-KT65YYOB.mjs → chunk-KHC57ZNS.mjs} +16 -12
  22. package/dist/chunk-KHC57ZNS.mjs.map +1 -0
  23. package/dist/{chunk-T7A7ZG55.mjs → chunk-MTBH5LMV.mjs} +111 -22
  24. package/dist/chunk-MTBH5LMV.mjs.map +1 -0
  25. package/dist/{chunk-OK3BPZYA.mjs → chunk-PUX53EZX.mjs} +3 -3
  26. package/dist/{chunk-YPWBK4WU.mjs → chunk-Q2WLLXTA.mjs} +2 -1
  27. package/dist/chunk-Q2WLLXTA.mjs.map +1 -0
  28. package/dist/{chunk-GOWIY4NZ.mjs → chunk-TCV735VY.mjs} +10 -2
  29. package/dist/chunk-TCV735VY.mjs.map +1 -0
  30. package/dist/{chunk-BTZIWVSF.mjs → chunk-YKJAOTF7.mjs} +3 -3
  31. package/dist/chunk-YKJAOTF7.mjs.map +1 -0
  32. package/dist/{contactUs-Be0zqd9Q.d.ts → contactUs-CR-nghbk.d.ts} +1 -1
  33. package/dist/{contactUs-CQXyz40A.d.mts → contactUs-CwHKoGEt.d.mts} +1 -1
  34. package/dist/enums/index.cjs +1 -0
  35. package/dist/enums/index.cjs.map +1 -1
  36. package/dist/enums/index.d.mts +1 -0
  37. package/dist/enums/index.d.ts +1 -0
  38. package/dist/enums/index.mjs +1 -1
  39. package/dist/formFields/index.cjs +16 -7
  40. package/dist/formFields/index.cjs.map +1 -1
  41. package/dist/formFields/index.d.mts +1 -1
  42. package/dist/formFields/index.d.ts +1 -1
  43. package/dist/formFields/index.mjs +5 -5
  44. package/dist/{global-CAf04GRC.d.ts → global-B4mmQo6R.d.ts} +25 -7
  45. package/dist/{global-d8RFwoYS.d.mts → global-D1r5ZuQO.d.mts} +25 -7
  46. package/dist/graphql/index.cjs +62 -0
  47. package/dist/graphql/index.cjs.map +1 -1
  48. package/dist/graphql/index.d.mts +33 -6
  49. package/dist/graphql/index.d.ts +33 -6
  50. package/dist/graphql/index.mjs +9 -3
  51. package/dist/hooks/index.cjs +84 -37
  52. package/dist/hooks/index.cjs.map +1 -1
  53. package/dist/hooks/index.d.mts +5 -5
  54. package/dist/hooks/index.d.ts +5 -5
  55. package/dist/hooks/index.mjs +20 -20
  56. package/dist/hooks/index.mjs.map +1 -1
  57. package/dist/index.cjs +190 -32
  58. package/dist/index.cjs.map +1 -1
  59. package/dist/index.d.mts +90 -15
  60. package/dist/index.d.ts +90 -15
  61. package/dist/index.mjs +185 -32
  62. package/dist/index.mjs.map +1 -1
  63. package/dist/map/index.d.mts +1 -1
  64. package/dist/map/index.d.ts +1 -1
  65. package/dist/region/index.cjs.map +1 -1
  66. package/dist/region/index.d.mts +1 -1
  67. package/dist/region/index.d.ts +1 -1
  68. package/dist/region/index.mjs +1 -1
  69. package/dist/{resourceActivities-DO_PjmMN.d.mts → resourceActivities-DUReu_jD.d.mts} +1 -1
  70. package/dist/{resourceActivities-ByCZO0rJ.d.ts → resourceActivities-Uz9uavhK.d.ts} +1 -1
  71. package/dist/sharing/index.cjs +21 -10
  72. package/dist/sharing/index.cjs.map +1 -1
  73. package/dist/sharing/index.d.mts +1 -1
  74. package/dist/sharing/index.d.ts +1 -1
  75. package/dist/sharing/index.mjs +3 -3
  76. package/dist/types/index.cjs.map +1 -1
  77. package/dist/types/index.d.mts +7 -7
  78. package/dist/types/index.d.ts +7 -7
  79. package/dist/types/index.mjs +2 -2
  80. package/dist/{user-BHYl7drL.d.mts → user-BpR-FTW2.d.mts} +1 -1
  81. package/dist/{user-DCqDbTLd.d.ts → user-IR0bHKFb.d.ts} +1 -1
  82. package/dist/utils/index.cjs +126 -31
  83. package/dist/utils/index.cjs.map +1 -1
  84. package/dist/utils/index.d.mts +32 -12
  85. package/dist/utils/index.d.ts +32 -12
  86. package/dist/utils/index.mjs +9 -5
  87. package/package.json +1 -1
  88. package/dist/chunk-BTZIWVSF.mjs.map +0 -1
  89. package/dist/chunk-GOWIY4NZ.mjs.map +0 -1
  90. package/dist/chunk-KT65YYOB.mjs.map +0 -1
  91. package/dist/chunk-OSSBKFNH.mjs.map +0 -1
  92. package/dist/chunk-PIEXGXTD.mjs.map +0 -1
  93. package/dist/chunk-T7A7ZG55.mjs.map +0 -1
  94. package/dist/chunk-YPWBK4WU.mjs.map +0 -1
  95. /package/dist/{chunk-OK3BPZYA.mjs.map → chunk-PUX53EZX.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, c as CategoryColorType } from '../global-d8RFwoYS.mjs';
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-D1r5ZuQO.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, c as CategoryColorType } from '../global-CAf04GRC.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-B4mmQo6R.js';
2
2
  import 'react-hook-form';
3
3
  import '../enums/index.js';
4
4
 
@@ -42,18 +42,18 @@ import {
42
42
  vendorStallSize,
43
43
  vendorStartDateFields,
44
44
  vendorTable
45
- } from "../chunk-OK3BPZYA.mjs";
45
+ } from "../chunk-PUX53EZX.mjs";
46
46
  import {
47
47
  availableCategories,
48
48
  categoryColors
49
- } from "../chunk-KT65YYOB.mjs";
49
+ } from "../chunk-KHC57ZNS.mjs";
50
50
  import "../chunk-RE4NZPYY.mjs";
51
- import "../chunk-T7A7ZG55.mjs";
52
- import "../chunk-PIEXGXTD.mjs";
51
+ import "../chunk-MTBH5LMV.mjs";
52
+ import "../chunk-FWKZZMQR.mjs";
53
53
  import "../chunk-RAYUJODN.mjs";
54
54
  import "../chunk-DQ7ZHIXW.mjs";
55
55
  import "../chunk-7DQBUZXY.mjs";
56
- import "../chunk-YPWBK4WU.mjs";
56
+ import "../chunk-Q2WLLXTA.mjs";
57
57
  export {
58
58
  availableCategories,
59
59
  availableTagTypes,
@@ -39,9 +39,12 @@ type StallType = {
39
39
  price: number;
40
40
  stallCapacity: number;
41
41
  };
42
- interface DateTimeWithPriceType extends DateTimeType {
42
+ type DateTimeWithPriceType = DateTimeType & {
43
43
  stallTypes: StallType[];
44
- }
44
+ };
45
+ type DateTimeWithPriceFormValue = DateTimeFormValue & {
46
+ stallTypes: StallType[];
47
+ };
45
48
  type PaymentInfoType = {
46
49
  accountHolderName?: string;
47
50
  accountNumber?: string;
@@ -61,7 +64,7 @@ type RefundPolicy = {
61
64
  interface EventInfoFormData {
62
65
  _id?: string;
63
66
  applicationDeadlineHours: number;
64
- dateTime: DateTimeWithPriceType[];
67
+ dateTime: DateTimeWithPriceFormValue[];
65
68
  eventId: string;
66
69
  packInTime: number;
67
70
  paymentDueHours: number;
@@ -71,7 +74,7 @@ interface EventInfoFormData {
71
74
  }
72
75
  interface EventFormData extends BaseResourceTypeFormData {
73
76
  claimed?: boolean;
74
- dateTime: DateTimeType[];
77
+ dateTime: DateTimeFormValue[];
75
78
  eventType: EnumEventType;
76
79
  googlePlaceId?: string | null;
77
80
  location: LocationType;
@@ -97,9 +100,17 @@ interface EventType extends BaseResourceType {
97
100
  shareRelation?: SocialShareResourceType | null;
98
101
  }
99
102
  type EventListItemType = Omit<EventType, "adIds" | "contactDetails" | "eventInfoId" | "nzbn" | "owner" | "posterUsage" | "promoCodes" | "provider" | "relatedPost" | "socialMedia" | "socialShare" | "tags" | "termsAgreement">;
100
- type EventInfoType = Omit<EventInfoFormData, "_id"> & {
103
+ type EventInfoType = {
101
104
  _id: string;
102
105
  active?: boolean;
106
+ applicationDeadlineHours: number;
107
+ dateTime: DateTimeWithPriceType[];
108
+ eventId: string;
109
+ packInTime: number;
110
+ paymentDueHours: number;
111
+ paymentInfo: PaymentInfoType[];
112
+ refundPolicy: RefundPolicy[];
113
+ requirements?: Requirement[];
103
114
  };
104
115
 
105
116
  declare enum EnumGameType {
@@ -601,7 +612,7 @@ type VendorInfoType = Omit<VendorInfoFormData, "_id" | "documentsUpload"> & {
601
612
  };
602
613
  interface UnregisteredVendorFormData {
603
614
  categoryIds: string[];
604
- dateTime: DateTimeType[];
615
+ dateTime: DateTimeFormValue[];
605
616
  email: string;
606
617
  inviterId: string;
607
618
  name: string;
@@ -746,6 +757,13 @@ type DateTimeType = {
746
757
  startDate: string;
747
758
  startTime: string;
748
759
  };
760
+ type DateTimeFormValue = {
761
+ dateStatus: EnumEventDateStatus;
762
+ endDate?: string;
763
+ endTime?: string;
764
+ startDate?: string;
765
+ startTime?: string;
766
+ };
749
767
  type Region = {
750
768
  latitude: number;
751
769
  latitudeDelta: number;
@@ -872,4 +890,4 @@ interface UseGetResourcesByRegionOptions extends PaginationOptions {
872
890
  skip?: boolean;
873
891
  }
874
892
 
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 };
893
+ 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 UnregisteredVendorInvitationType as a$, type CouponPurchaseOption as a0, type CouponVendorProduct as a1, type CreateFormData as a2, type DailyClueBaseGame as a3, type DailyClueGameData as a4, type DateTimeFormValue as a5, type DateTimeType as a6, type DateTimeWithPriceFormValue as a7, type DateTimeWithPriceType as a8, type DeviceInfo as a9, type PostContentImage as aA, type PostContentList as aB, type PostContentTextarea as aC, type PostContentType as aD, type PostContentVideo as aE, type PostFileInput as aF, type PostListFilter as aG, type PostResource as aH, type ProductCoupon as aI, type PromoCodeType as aJ, type PuzzleAnswer as aK, type PuzzleAnsweredQuestion as aL, type PuzzleBaseGame as aM, type PuzzleGameData as aN, type PuzzleQuestion as aO, type RelatedPostType as aP, type RelationDate as aQ, type RelationInputType as aR, type ResourceContactDetailsType as aS, type ResourceDetails as aT, type ResourceImageType as aU, type ResourceRelationField as aV, type SocialMediaType as aW, type SocialShareResourceType as aX, type Subcategory as aY, type SubcategoryItems as aZ, type TermsAgreement as a_, EnumCouponListType as aa, EnumCouponQualificationType as ab, EnumGameStatus as ac, EnumGameType as ad, EnumPostContentType as ae, EnumPostType as af, type EventListFilter as ag, type EventStatusType as ah, type GameDate as ai, type GameHistory as aj, type GamePlacement as ak, type GamePlacementClue as al, type GameType as am, type GeocodeLocation as an, type GlobalGameData as ao, type ImageObjectType as ap, type LocationGeoType as aq, type Nullable as ar, type OwnerType as as, PROMO_CODE_PREFIX as at, type PaginationOptions as au, type PartnerListFilter as av, type PaymentInfoType as aw, type PostContentData as ax, type PostContentFormData as ay, type PostContentGame as az, type Requirement as b, type UserListFilter as b0, type VendorAttributes as b1, type VendorAvailability as b2, type VendorCalendarData as b3, type VendorDowngradeSnapshot as b4, type VendorListFilter as b5, type VendorProductList as b6, gameScreenIdentifierList as b7, gameTypeToDisplayName as b8, 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 };
@@ -39,9 +39,12 @@ type StallType = {
39
39
  price: number;
40
40
  stallCapacity: number;
41
41
  };
42
- interface DateTimeWithPriceType extends DateTimeType {
42
+ type DateTimeWithPriceType = DateTimeType & {
43
43
  stallTypes: StallType[];
44
- }
44
+ };
45
+ type DateTimeWithPriceFormValue = DateTimeFormValue & {
46
+ stallTypes: StallType[];
47
+ };
45
48
  type PaymentInfoType = {
46
49
  accountHolderName?: string;
47
50
  accountNumber?: string;
@@ -61,7 +64,7 @@ type RefundPolicy = {
61
64
  interface EventInfoFormData {
62
65
  _id?: string;
63
66
  applicationDeadlineHours: number;
64
- dateTime: DateTimeWithPriceType[];
67
+ dateTime: DateTimeWithPriceFormValue[];
65
68
  eventId: string;
66
69
  packInTime: number;
67
70
  paymentDueHours: number;
@@ -71,7 +74,7 @@ interface EventInfoFormData {
71
74
  }
72
75
  interface EventFormData extends BaseResourceTypeFormData {
73
76
  claimed?: boolean;
74
- dateTime: DateTimeType[];
77
+ dateTime: DateTimeFormValue[];
75
78
  eventType: EnumEventType;
76
79
  googlePlaceId?: string | null;
77
80
  location: LocationType;
@@ -97,9 +100,17 @@ interface EventType extends BaseResourceType {
97
100
  shareRelation?: SocialShareResourceType | null;
98
101
  }
99
102
  type EventListItemType = Omit<EventType, "adIds" | "contactDetails" | "eventInfoId" | "nzbn" | "owner" | "posterUsage" | "promoCodes" | "provider" | "relatedPost" | "socialMedia" | "socialShare" | "tags" | "termsAgreement">;
100
- type EventInfoType = Omit<EventInfoFormData, "_id"> & {
103
+ type EventInfoType = {
101
104
  _id: string;
102
105
  active?: boolean;
106
+ applicationDeadlineHours: number;
107
+ dateTime: DateTimeWithPriceType[];
108
+ eventId: string;
109
+ packInTime: number;
110
+ paymentDueHours: number;
111
+ paymentInfo: PaymentInfoType[];
112
+ refundPolicy: RefundPolicy[];
113
+ requirements?: Requirement[];
103
114
  };
104
115
 
105
116
  declare enum EnumGameType {
@@ -601,7 +612,7 @@ type VendorInfoType = Omit<VendorInfoFormData, "_id" | "documentsUpload"> & {
601
612
  };
602
613
  interface UnregisteredVendorFormData {
603
614
  categoryIds: string[];
604
- dateTime: DateTimeType[];
615
+ dateTime: DateTimeFormValue[];
605
616
  email: string;
606
617
  inviterId: string;
607
618
  name: string;
@@ -746,6 +757,13 @@ type DateTimeType = {
746
757
  startDate: string;
747
758
  startTime: string;
748
759
  };
760
+ type DateTimeFormValue = {
761
+ dateStatus: EnumEventDateStatus;
762
+ endDate?: string;
763
+ endTime?: string;
764
+ startDate?: string;
765
+ startTime?: string;
766
+ };
749
767
  type Region = {
750
768
  latitude: number;
751
769
  latitudeDelta: number;
@@ -872,4 +890,4 @@ interface UseGetResourcesByRegionOptions extends PaginationOptions {
872
890
  skip?: boolean;
873
891
  }
874
892
 
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 };
893
+ 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 UnregisteredVendorInvitationType as a$, type CouponPurchaseOption as a0, type CouponVendorProduct as a1, type CreateFormData as a2, type DailyClueBaseGame as a3, type DailyClueGameData as a4, type DateTimeFormValue as a5, type DateTimeType as a6, type DateTimeWithPriceFormValue as a7, type DateTimeWithPriceType as a8, type DeviceInfo as a9, type PostContentImage as aA, type PostContentList as aB, type PostContentTextarea as aC, type PostContentType as aD, type PostContentVideo as aE, type PostFileInput as aF, type PostListFilter as aG, type PostResource as aH, type ProductCoupon as aI, type PromoCodeType as aJ, type PuzzleAnswer as aK, type PuzzleAnsweredQuestion as aL, type PuzzleBaseGame as aM, type PuzzleGameData as aN, type PuzzleQuestion as aO, type RelatedPostType as aP, type RelationDate as aQ, type RelationInputType as aR, type ResourceContactDetailsType as aS, type ResourceDetails as aT, type ResourceImageType as aU, type ResourceRelationField as aV, type SocialMediaType as aW, type SocialShareResourceType as aX, type Subcategory as aY, type SubcategoryItems as aZ, type TermsAgreement as a_, EnumCouponListType as aa, EnumCouponQualificationType as ab, EnumGameStatus as ac, EnumGameType as ad, EnumPostContentType as ae, EnumPostType as af, type EventListFilter as ag, type EventStatusType as ah, type GameDate as ai, type GameHistory as aj, type GamePlacement as ak, type GamePlacementClue as al, type GameType as am, type GeocodeLocation as an, type GlobalGameData as ao, type ImageObjectType as ap, type LocationGeoType as aq, type Nullable as ar, type OwnerType as as, PROMO_CODE_PREFIX as at, type PaginationOptions as au, type PartnerListFilter as av, type PaymentInfoType as aw, type PostContentData as ax, type PostContentFormData as ay, type PostContentGame as az, type Requirement as b, type UserListFilter as b0, type VendorAttributes as b1, type VendorAvailability as b2, type VendorCalendarData as b3, type VendorDowngradeSnapshot as b4, type VendorListFilter as b5, type VendorProductList as b6, gameScreenIdentifierList as b7, gameTypeToDisplayName as b8, 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 };
@@ -103,6 +103,7 @@ __export(graphql_exports, {
103
103
  useDeleteUnregisteredVendor: () => useDeleteUnregisteredVendor,
104
104
  useDeleteUser: () => useDeleteUser,
105
105
  useDeleteVendor: () => useDeleteVendor,
106
+ useEndImpersonation: () => useEndImpersonation,
106
107
  useGetAd: () => useGetAd,
107
108
  useGetAds: () => useGetAds,
108
109
  useGetAdsByRegion: () => useGetAdsByRegion,
@@ -166,6 +167,7 @@ __export(graphql_exports, {
166
167
  usePaginatedList: () => usePaginatedList,
167
168
  useRedeemAffiliateReward: () => useRedeemAffiliateReward,
168
169
  useRedeemReward: () => useRedeemReward,
170
+ useRefreshImpersonation: () => useRefreshImpersonation,
169
171
  useRefreshToken: () => useRefreshToken,
170
172
  useRegister: () => useRegister,
171
173
  useRemoveParticipantFromChat: () => useRemoveParticipantFromChat,
@@ -185,6 +187,7 @@ __export(graphql_exports, {
185
187
  useSelectStandardPackage: () => useSelectStandardPackage,
186
188
  useSendChatMessage: () => useSendChatMessage,
187
189
  useStartGame: () => useStartGame,
190
+ useStartImpersonation: () => useStartImpersonation,
188
191
  useSyncBillingCatalogPrice: () => useSyncBillingCatalogPrice,
189
192
  useToggleChatMessageLike: () => useToggleChatMessageLike,
190
193
  useUnlinkUnregisteredVendorByInviterId: () => useUnlinkUnregisteredVendorByInviterId,
@@ -1812,6 +1815,42 @@ var REFRESH_TOKEN_MUTATION = import_client14.gql`
1812
1815
  }
1813
1816
  }
1814
1817
  `;
1818
+ var START_IMPERSONATION_MUTATION = import_client14.gql`
1819
+ mutation startImpersonation($input: StartImpersonationInputType!) {
1820
+ startImpersonation(input: $input) {
1821
+ data {
1822
+ expiresAt
1823
+ refreshToken
1824
+ sessionId
1825
+ token
1826
+ user {
1827
+ ...UserFields
1828
+ }
1829
+ }
1830
+ message
1831
+ }
1832
+ }
1833
+ ${USER_FIELDS_FRAGMENT}
1834
+ `;
1835
+ var REFRESH_IMPERSONATION_MUTATION = import_client14.gql`
1836
+ mutation refreshImpersonation($input: RefreshImpersonationInputType!) {
1837
+ refreshImpersonation(input: $input) {
1838
+ data {
1839
+ refreshToken
1840
+ token
1841
+ }
1842
+ message
1843
+ }
1844
+ }
1845
+ `;
1846
+ var END_IMPERSONATION_MUTATION = import_client14.gql`
1847
+ mutation endImpersonation {
1848
+ endImpersonation {
1849
+ data
1850
+ message
1851
+ }
1852
+ }
1853
+ `;
1815
1854
  var RESET_PASSWORD_MUTATION = import_client14.gql`
1816
1855
  mutation resetPassword($input: ResetPasswordInputType!) {
1817
1856
  resetPassword(input: $input) {
@@ -1856,6 +1895,18 @@ var useRefreshToken = () => {
1856
1895
  const [refreshToken, { loading, error }] = (0, import_client15.useMutation)(REFRESH_TOKEN_MUTATION);
1857
1896
  return { error, loading, refreshToken };
1858
1897
  };
1898
+ var useStartImpersonation = () => {
1899
+ const [startImpersonation, { loading, error }] = (0, import_client15.useMutation)(START_IMPERSONATION_MUTATION);
1900
+ return { error, loading, startImpersonation };
1901
+ };
1902
+ var useRefreshImpersonation = () => {
1903
+ const [refreshImpersonation, { loading, error }] = (0, import_client15.useMutation)(REFRESH_IMPERSONATION_MUTATION);
1904
+ return { error, loading, refreshImpersonation };
1905
+ };
1906
+ var useEndImpersonation = () => {
1907
+ const [endImpersonation, { loading, error }] = (0, import_client15.useMutation)(END_IMPERSONATION_MUTATION);
1908
+ return { endImpersonation, error, loading };
1909
+ };
1859
1910
  var useRequestPasswordReset = () => {
1860
1911
  const [requestPasswordReset, { loading, error }] = (0, import_client15.useMutation)(REQUEST_PASSWORD_RESET_MUTATION);
1861
1912
  return { error, loading, requestPasswordReset };
@@ -2300,14 +2351,22 @@ var UPDATE_EVENT_INFO_MUTATION = import_client23.gql`
2300
2351
  // src/graphql/hooks/event/hooksMutation.ts
2301
2352
  var useCreateEvent = () => {
2302
2353
  const [createEvent, { loading, error }] = (0, import_client24.useMutation)(CREATE_EVENT_MUTATION, {
2354
+ // The mutation response is a live-only view of EventType. Don't write it
2355
+ // into the normalized EventType cache, where it would overwrite the full
2356
+ // (live + archived) `dateTime` that `getEvent` fetches for the detail page.
2303
2357
  awaitRefetchQueries: true,
2358
+ fetchPolicy: "no-cache",
2304
2359
  refetchQueries: [{ query: GET_USER_EVENTS }]
2305
2360
  });
2306
2361
  return { createEvent, error, loading };
2307
2362
  };
2308
2363
  var useUpdateEvent = () => {
2309
2364
  const [updateEvent, { loading, error }] = (0, import_client24.useMutation)(UPDATE_EVENT_MUTATION, {
2365
+ // See useCreateEvent: the update response only carries the live schedule,
2366
+ // so keep it out of the normalized EventType cache to avoid clobbering the
2367
+ // archived dates merged by `getEvent`.
2310
2368
  awaitRefetchQueries: true,
2369
+ fetchPolicy: "no-cache",
2311
2370
  refetchQueries: (mutationResult) => {
2312
2371
  const eventId = mutationResult?.data?.updateEvent?.data?._id;
2313
2372
  if (!eventId) return [];
@@ -5678,6 +5737,7 @@ function usePaginatedList({
5678
5737
  useDeleteUnregisteredVendor,
5679
5738
  useDeleteUser,
5680
5739
  useDeleteVendor,
5740
+ useEndImpersonation,
5681
5741
  useGetAd,
5682
5742
  useGetAds,
5683
5743
  useGetAdsByRegion,
@@ -5741,6 +5801,7 @@ function usePaginatedList({
5741
5801
  usePaginatedList,
5742
5802
  useRedeemAffiliateReward,
5743
5803
  useRedeemReward,
5804
+ useRefreshImpersonation,
5744
5805
  useRefreshToken,
5745
5806
  useRegister,
5746
5807
  useRemoveParticipantFromChat,
@@ -5760,6 +5821,7 @@ function usePaginatedList({
5760
5821
  useSelectStandardPackage,
5761
5822
  useSendChatMessage,
5762
5823
  useStartGame,
5824
+ useStartImpersonation,
5763
5825
  useSyncBillingCatalogPrice,
5764
5826
  useToggleChatMessageLike,
5765
5827
  useUnlinkUnregisteredVendorByInviterId,