@timardex/cluemart-shared 1.6.130 → 1.7.0

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 (168) hide show
  1. package/dist/ad-CVkVX_z5.d.ts +296 -0
  2. package/dist/ad-DA9ECAhK.d.mts +296 -0
  3. package/dist/affiliate-1RtkLnLP.d.ts +35 -0
  4. package/dist/affiliate-Cos2Syz5.d.mts +35 -0
  5. package/dist/chunk-HZMP7GXC.mjs +5330 -0
  6. package/dist/chunk-HZMP7GXC.mjs.map +1 -0
  7. package/dist/chunk-KZTOISPA.mjs +272 -0
  8. package/dist/chunk-KZTOISPA.mjs.map +1 -0
  9. package/dist/chunk-MVQ3CFQR.mjs +230 -0
  10. package/dist/chunk-MVQ3CFQR.mjs.map +1 -0
  11. package/dist/chunk-NPFJ2CN2.mjs +109 -0
  12. package/dist/chunk-NPFJ2CN2.mjs.map +1 -0
  13. package/dist/chunk-RKIRWZCH.mjs +368 -0
  14. package/dist/chunk-RKIRWZCH.mjs.map +1 -0
  15. package/dist/{chunk-OHHJ3KJJ.mjs → chunk-TAECMXM4.mjs} +267 -304
  16. package/dist/chunk-TAECMXM4.mjs.map +1 -0
  17. package/dist/chunk-VA5YN2K3.mjs +48 -0
  18. package/dist/chunk-VA5YN2K3.mjs.map +1 -0
  19. package/dist/chunk-ZZJSCYJK.mjs +958 -0
  20. package/dist/chunk-ZZJSCYJK.mjs.map +1 -0
  21. package/dist/contactUs-DGrDzJaM.d.mts +11 -0
  22. package/dist/contactUs-H7799pWe.d.ts +11 -0
  23. package/dist/enums/index.cjs +223 -2
  24. package/dist/enums/index.cjs.map +1 -1
  25. package/dist/enums/index.d.mts +164 -5
  26. package/dist/enums/index.d.ts +164 -5
  27. package/dist/enums/index.mjs +41 -1
  28. package/dist/formFields/index.cjs +168 -403
  29. package/dist/formFields/index.cjs.map +1 -1
  30. package/dist/formFields/index.d.mts +3 -6
  31. package/dist/formFields/index.d.ts +3 -6
  32. package/dist/formFields/index.mjs +47 -921
  33. package/dist/formFields/index.mjs.map +1 -1
  34. package/dist/global-BUUfmCo7.d.mts +698 -0
  35. package/dist/global-fKbMmluy.d.ts +698 -0
  36. package/dist/graphql/index.cjs +3329 -3340
  37. package/dist/graphql/index.cjs.map +1 -1
  38. package/dist/graphql/index.d.mts +487 -690
  39. package/dist/graphql/index.d.ts +487 -690
  40. package/dist/graphql/index.mjs +153 -2552
  41. package/dist/graphql/index.mjs.map +1 -1
  42. package/dist/hooks/index.cjs +3478 -773
  43. package/dist/hooks/index.cjs.map +1 -1
  44. package/dist/hooks/index.d.mts +6 -13
  45. package/dist/hooks/index.d.ts +6 -13
  46. package/dist/hooks/index.mjs +99 -193
  47. package/dist/hooks/index.mjs.map +1 -1
  48. package/dist/images/apple-maps-icon.webp.d.ts +1 -8
  49. package/dist/images/banner-horizontal.webp.d.ts +1 -8
  50. package/dist/images/banner-vertical.webp.d.ts +1 -8
  51. package/dist/images/cluiTui.webp.d.ts +1 -8
  52. package/dist/images/corporate.webp.d.ts +1 -8
  53. package/dist/images/facebook.webp.d.ts +1 -8
  54. package/dist/images/gazebo-top.webp.d.ts +1 -8
  55. package/dist/images/google-maps-icon.webp.d.ts +1 -8
  56. package/dist/images/googleMaps-logo-dark.webp.d.ts +1 -8
  57. package/dist/images/googleMaps-logo-light.webp.d.ts +1 -8
  58. package/dist/images/index.mjs +21 -86
  59. package/dist/images/index.mjs.map +1 -1
  60. package/dist/images/instagram.webp.d.ts +1 -8
  61. package/dist/images/logo-atr.webp.d.ts +1 -8
  62. package/dist/images/logo-dark.webp.d.ts +1 -8
  63. package/dist/images/logo.webp.d.ts +1 -8
  64. package/dist/images/meet.webp.d.ts +1 -8
  65. package/dist/images/mini-market1.webp.d.ts +1 -8
  66. package/dist/images/mini-market2.webp.d.ts +1 -8
  67. package/dist/images/mini-market3.webp.d.ts +1 -8
  68. package/dist/images/mini-market4.webp.d.ts +1 -8
  69. package/dist/images/mini-market5.webp.d.ts +1 -8
  70. package/dist/images/poll.webp.d.ts +1 -8
  71. package/dist/images/poster1.webp.d.ts +1 -8
  72. package/dist/images/poster2.webp.d.ts +1 -8
  73. package/dist/images/poster3.webp.d.ts +1 -8
  74. package/dist/images/poster4.webp.d.ts +1 -8
  75. package/dist/images/private.webp.d.ts +1 -8
  76. package/dist/images/qr-code.webp.d.ts +1 -8
  77. package/dist/images/school.webp.d.ts +1 -8
  78. package/dist/images/sima.webp.d.ts +1 -8
  79. package/dist/images/store-android.webp.d.ts +1 -8
  80. package/dist/images/store-ios.webp.d.ts +1 -8
  81. package/dist/images/tablas.webp.d.ts +1 -8
  82. package/dist/images/telefonos.webp.d.ts +1 -8
  83. package/dist/images/tiktok.webp.d.ts +1 -8
  84. package/dist/images/tip.webp.d.ts +1 -8
  85. package/dist/images/ugralos.webp.d.ts +1 -8
  86. package/dist/images/waze-maps-icon.webp.d.ts +1 -8
  87. package/dist/images/website.webp.d.ts +1 -8
  88. package/dist/images/youtube.webp.d.ts +1 -8
  89. package/dist/index.cjs +5883 -7079
  90. package/dist/index.cjs.map +1 -1
  91. package/dist/index.d.mts +1692 -2966
  92. package/dist/index.d.ts +1692 -2966
  93. package/dist/index.mjs +5020 -6162
  94. package/dist/index.mjs.map +1 -1
  95. package/dist/map/index.cjs +9 -14
  96. package/dist/map/index.cjs.map +1 -1
  97. package/dist/map/index.d.mts +14 -18
  98. package/dist/map/index.d.ts +14 -18
  99. package/dist/map/index.mjs +9 -14
  100. package/dist/map/index.mjs.map +1 -1
  101. package/dist/resourceActivities-BL_12IAo.d.ts +125 -0
  102. package/dist/resourceActivities-zczOntNk.d.mts +125 -0
  103. package/dist/sharing/index.cjs +1272 -63
  104. package/dist/sharing/index.cjs.map +1 -1
  105. package/dist/sharing/index.d.mts +7 -32
  106. package/dist/sharing/index.d.ts +7 -32
  107. package/dist/sharing/index.mjs +30 -188
  108. package/dist/sharing/index.mjs.map +1 -1
  109. package/dist/theme/index.mjs +5 -41
  110. package/dist/theme/index.mjs.map +1 -1
  111. package/dist/types/index.cjs +110 -868
  112. package/dist/types/index.cjs.map +1 -1
  113. package/dist/types/index.d.mts +24 -230
  114. package/dist/types/index.d.ts +24 -230
  115. package/dist/types/index.mjs +27 -61
  116. package/dist/utils/index.cjs +214 -608
  117. package/dist/utils/index.cjs.map +1 -1
  118. package/dist/utils/index.d.mts +53 -107
  119. package/dist/utils/index.d.ts +53 -107
  120. package/dist/utils/index.mjs +15 -43
  121. package/package.json +12 -40
  122. package/dist/affiliate-Bqqlffw8.d.mts +0 -36
  123. package/dist/affiliate-Btlp5XUp.d.ts +0 -36
  124. package/dist/affiliateAdapters-BW3BY7c5.d.mts +0 -118
  125. package/dist/affiliateAdapters-C51ISmuA.d.ts +0 -118
  126. package/dist/apollo/index.cjs +0 -1383
  127. package/dist/apollo/index.cjs.map +0 -1
  128. package/dist/apollo/index.d.mts +0 -323
  129. package/dist/apollo/index.d.ts +0 -323
  130. package/dist/apollo/index.mjs +0 -1295
  131. package/dist/apollo/index.mjs.map +0 -1
  132. package/dist/auth/index.cjs +0 -3322
  133. package/dist/auth/index.cjs.map +0 -1
  134. package/dist/auth/index.d.mts +0 -164
  135. package/dist/auth/index.d.ts +0 -164
  136. package/dist/auth/index.mjs +0 -379
  137. package/dist/auth/index.mjs.map +0 -1
  138. package/dist/auth-BOmAO53v.d.ts +0 -169
  139. package/dist/auth-CsITA95p.d.mts +0 -169
  140. package/dist/chunk-DATBGC2K.mjs +0 -347
  141. package/dist/chunk-DATBGC2K.mjs.map +0 -1
  142. package/dist/chunk-DDHECBJR.mjs +0 -726
  143. package/dist/chunk-DDHECBJR.mjs.map +0 -1
  144. package/dist/chunk-INQCDU24.mjs +0 -139
  145. package/dist/chunk-INQCDU24.mjs.map +0 -1
  146. package/dist/chunk-NWWKI4PJ.mjs +0 -297
  147. package/dist/chunk-NWWKI4PJ.mjs.map +0 -1
  148. package/dist/chunk-OHHJ3KJJ.mjs.map +0 -1
  149. package/dist/chunk-RAYUJODN.mjs +0 -45
  150. package/dist/chunk-RAYUJODN.mjs.map +0 -1
  151. package/dist/chunk-TOEFAEF2.mjs +0 -69
  152. package/dist/chunk-TOEFAEF2.mjs.map +0 -1
  153. package/dist/chunk-UKW7NZEQ.mjs +0 -2813
  154. package/dist/chunk-UKW7NZEQ.mjs.map +0 -1
  155. package/dist/dailyClue-C6WXY73z.d.mts +0 -105
  156. package/dist/dailyClue-C6WXY73z.d.ts +0 -105
  157. package/dist/event-C9K7CSg4.d.ts +0 -53
  158. package/dist/event-W0NhL5Cd.d.mts +0 -53
  159. package/dist/global-BbSFfYdd.d.ts +0 -181
  160. package/dist/global-C6v9tRji.d.mts +0 -181
  161. package/dist/graphql-CDOfA79A.d.ts +0 -1253
  162. package/dist/graphql-CcvzTs9k.d.mts +0 -1253
  163. package/dist/resourceActivities-CS8YRIIL.d.mts +0 -89
  164. package/dist/resourceActivities-DOdNPkhW.d.ts +0 -89
  165. package/dist/subscription-Cj_qBA7u.d.mts +0 -20
  166. package/dist/subscription-OiJ50uJb.d.ts +0 -20
  167. package/dist/vendor-DmMi2qmx.d.mts +0 -73
  168. package/dist/vendor-M9hVZlni.d.ts +0 -73
@@ -1,219 +1,27 @@
1
- export { A as AdminUpdateResourceType, C as CreateBulkNotificationInput, N as NotificationCount, a as NotificationDataType, b as NotificationType, R as RelationDate, c as RelationInputType, d as RelationType, e as ResourceActivityEntry, f as ResourceActivityInputType, g as ResourceActivityType } from '../resourceActivities-CS8YRIIL.mjs';
2
- import { U as UserFormData } from '../auth-CsITA95p.mjs';
3
- export { A as AppSettingsFormData, a as AppSettingsType, b as AuthMutationResponse, C as CreateAppSettingsFormData, c as CreateLoginFormData, d as CreateRegisterFormData, e as CreateRequestPasswordResetFormData, f as CreateResetPasswordFormData, g as CreateUserFormData, h as CreateValidateVerificationTokenFormData, L as LoginFormData, R as RedeemRewardMutationResponse, i as RedeemedReward, j as RefreshTokenMutationResponse, k as RegisterFormData, l as RequestPasswordResetFormData, m as ResetPasswordFormData, S as StripeSubscription, n as SubscriptionStatusData, o as UserActivity, p as UserActivityEvent, q as UserWriteType, V as ValidateVerificationTokenFormData } from '../auth-CsITA95p.mjs';
4
- import { P as PartnerFormData, S as SchoolFormData } from '../affiliateAdapters-BW3BY7c5.mjs';
5
- export { A as AdFormData, a as AdFormState, C as ContactUsFormData, b as CreateAdFormData, c as CreateAdFormState, d as CreateContactUsFormData, e as CreatePartnerFormData, f as CreatePostFormData, g as CreateSchoolFormData, h as PostContentFormData, i as PostContentGame, j as PostContentImage, k as PostContentInputData, l as PostContentList, m as PostContentTextarea, n as PostContentVideo, o as PostFileInput, p as PostFormData, q as affiliateToFormData, t as toAffiliateCode } from '../affiliateAdapters-BW3BY7c5.mjs';
6
- import { R as ResourceDetails, S as SocialMediaType$1, C as Category, P as PromoCodeType } from '../global-C6v9tRji.mjs';
7
- export { d as BaseResourceType, B as BaseResourceTypeFormData, a as CreateFormData, D as DeviceInfo, E as EventStatusType, F as FormDateField, e as FormField, G as GeocodeLocation, I as ImageObjectType, M as MutationResponse, N as Nullable, O as OptionItem, f as OwnerType, g as PROMO_CODE_PREFIX, h as PosterUsageType, b as Region, i as RelatedPostType, j as ResourceConnectionsType, c as ResourceContactDetailsType, k as SocialShareResourceType, l as Subcategory, m as SubcategoryItems, T as TermsAgreement, n as UseGetResourcesByRegionOptions, U as UserLicenceType } from '../global-C6v9tRji.mjs';
8
- import { R as RefundPolicy, a as Requirement, E as EventInfoFormData, b as EventFormData } from '../event-W0NhL5Cd.mjs';
9
- export { C as CreateEventFormData, c as CreateEventInfoFormData, D as DateTimeWithPriceType, P as PaymentInfoType, S as StallType } from '../event-W0NhL5Cd.mjs';
10
- import { G as EventInfoType, D as DateTimeType, c as EventListItemType, f as ResourceTypeEnum, H as EventType, J as RefundPolicyType, K as RequirementType, M as SocialMediaType, Q as CategoryType, T as VendorLocationsType, W as UnregisteredVendorType, X as VendorInfoType, d as VendorType, C as UserType, Y as PartnerType, Z as GameTypeEnumType, O as OsPlatformEnumType, _ as SchoolType } from '../graphql-CcvzTs9k.mjs';
11
- export { t as AdResource, t as AdResourceType, $ as AdType, a0 as AffiliateBankAccountDetailsType, a1 as AffiliateContactDetailsType, a2 as AffiliateDetailsType, a3 as AffiliateResourceType, a4 as AffiliateRewardType, z as AffiliateType, k as AuthPayloadType, B as BaseGameType, a5 as ChatMessageInputType, a6 as ChatMessageReactionType, a7 as ChatMessageReplyPreviewType, a8 as ChatMessageSeenType, a9 as ChatMessageType, aa as ChatParticipantType, ab as ChatType, ac as DailyClueBaseGameType, ad as DailyClueGameDataType, ae as DailyClueLetterType, af as GameDataType, ag as GameDateType, ah as GameDocType, ai as GameHistoryType, aj as GameLeaderboardType, ak as GameType, r as LocationGeoType, L as LocationType, al as MarketingMaterialRequestInputType, am as PostContentType, y as PostResource, y as PostResourceType, an as PostType, ao as PuzzleAnswerType, ap as PuzzleAnsweredQuestionType, aq as PuzzleBaseGameType, ar as PuzzleGameDataType, as as PuzzleQuestionType, at as RedeemHistoryType, au as RedeemRewardInput, au as RedeemRewardInputType, i as RedeemRewardResponseType, av as RedeemedRewardType, l as RefreshTokenPayloadType, aw as ReportChatUserType, ax as ResourceByUser, R as ResourceImageType, ay as SchoolCampaignType, az as SchoolRegisteredUserType, aA as SchoolReturnType, aB as StripeSubscriptionType, aC as SubscriptionPlanData, aC as SubscriptionPlanType, aD as SubscriptionPlansResponse, aD as SubscriptionPlansResponseType, aE as SubscriptionPricingData, aE as SubscriptionPricingType, aF as UnregisteredVendorInvitationType, aG as UserActivityType, ax as UserResource, V as VendorProductList, V as VendorProductListType } from '../graphql-CcvzTs9k.mjs';
12
- import { PosterAssetId } from '../images/index.mjs';
13
- import { V as VendorCalendarData, U as UnregisteredVendorFormData, a as VendorInfoFormData, b as VendorFormData } from '../vendor-DmMi2qmx.mjs';
14
- export { C as CreateUnregisteredVendorFormData, c as CreateVendorFormData, d as CreateVendorInfoFormData, e as VendorAttributes } from '../vendor-DmMi2qmx.mjs';
15
- import { P as Permission } from '../subscription-Cj_qBA7u.mjs';
16
- export { b as TIERS_BY_PRIORITY, c as TIER_DISPLAY_LABELS, d as TIER_FROM_LICENCE, T as Tier } from '../subscription-Cj_qBA7u.mjs';
17
- export { D as DailyClueGameData, G as GamePlacement, a as GamePlacementClue, g as gameScreenIdentifierList } from '../dailyClue-C6WXY73z.mjs';
18
- export { a as AffiliateBankAccountDetailsForm, b as AffiliateContactDetails, A as AffiliateFormData, c as AffiliateRewardWriteType, C as CreateAffiliateFormData } from '../affiliate-Bqqlffw8.mjs';
1
+ import { EnumResourceType, EnumOSPlatform, EnumUserLicence } from '../enums/index.mjs';
2
+ export { o as AdFormData, v as AdFormState, w as AdResource, c as AdType, r as AppSettingsFormData, f as AppSettingsType, A as AuthPayloadType, x as CreateAdFormData, p as CreateAdFormState, s as CreateAppSettingsFormData, i as CreateLoginFormData, q as CreatePartnerFormData, j as CreateRegisterFormData, k as CreateRequestPasswordResetFormData, m as CreateResetPasswordFormData, u as CreateSchoolFormData, C as CreateUserFormData, l as CreateValidateVerificationTokenFormData, y as EnumAdShowOn, E as EnumAdStatus, z as EnumAdStyle, B as EnumAdType, D as EnumVerificationType, L as LoginFormData, M as MarketingMaterialRequestInputType, n as PartnerFormData, P as PartnerType, F as PosterInputType, G as RedeemRewardInput, a as RedeemRewardResponse, H as RedeemedReward, R as RefreshTokenPayloadType, I as RegisterFormData, J as RequestPasswordResetFormData, K as ResetPasswordFormData, b as ResourceByUser, S as SafeUserType, N as SchoolCampaignType, t as SchoolFormData, O as SchoolRegisteredUserType, g as SchoolReturnType, h as SchoolType, Q as StripeSubscription, T as SubscriptionPlanData, d as SubscriptionPlansResponse, V as SubscriptionPricingData, e as SubscriptionStatusData, W as UserActivity, X as UserActivityEvent, U as UserFormData, Y as UserType, Z as ValidateVerificationTokenFormData } from '../ad-DA9ECAhK.mjs';
3
+ export { c as ChatMessageInput, d as ChatMessageReaction, e as ChatMessageReplyPreview, f as ChatMessageSeen, g as ChatMessageType, C as ChatType, h as CreateBulkNotificationInput, E as EnumActivity, N as NotificationCount, i as NotificationDataType, a as NotificationType, P as ParticipantType, R as ReportChatUser, j as ResourceActivityEntry, k as ResourceActivityInputType, b as ResourceActivityType } from '../resourceActivities-zczOntNk.mjs';
4
+ export { C as ContactUsFormData, a as CreateContactUsFormData } from '../contactUs-DGrDzJaM.mjs';
5
+ import { c as EventListItemType } from '../global-BUUfmCo7.mjs';
6
+ export { A as AssociateType, y as BaseGameMap, z as BaseGameType, D as BaseResourceType, B as BaseResourceTypeFormData, C as Category, s as CreateEventFormData, u as CreateEventInfoFormData, H as CreateFormData, w as CreatePostFormData, q as CreateUnregisteredVendorFormData, m as CreateVendorFormData, o as CreateVendorInfoFormData, I as DailyClueBaseGame, J as DailyClueGameData, K as DateTimeType, M as DateTimeWithPriceType, N as DeviceInfo, Q as EnumGameStatus, T as EnumGameType, W as EnumPostContentType, j as EnumPostType, r as EventFormData, t as EventInfoFormData, d as EventInfoType, X as EventStatusType, E as EventType, a as FormDateField, F as FormField, Y as GameDate, G as GameDocType, Z as GameHistory, k as GameLeaderboard, _ as GamePlacement, $ as GamePlacementClue, a0 as GameType, a1 as GeocodeLocation, a2 as GlobalGameData, a3 as ImageObjectType, a4 as LocationGeoType, L as LocationType, a5 as Nullable, O as OptionItem, a6 as OwnerType, a7 as PROMO_CODE_PREFIX, a8 as PaymentInfoType, a9 as PostContentData, aa as PostContentFormData, ab as PostContentGame, ac as PostContentImage, ad as PostContentList, ae as PostContentTextarea, af as PostContentType, ag as PostContentVideo, ah as PostFileInput, v as PostFormData, ai as PostResource, P as PostType, aj as PosterUsageType, ak as PromoCodeType, al as PuzzleAnswer, am as PuzzleAnsweredQuestion, an as PuzzleBaseGame, ao as PuzzleGameData, ap as PuzzleQuestion, R as RefundPolicy, x as Region, aq as RelatedPostType, ar as RelationDate, as as RelationInputType, e as RelationType, b as Requirement, f as ResourceConnectionsType, at as ResourceContactDetailsType, au as ResourceDetails, av as ResourceImageType, aw as SocialMediaType, ax as SocialShareResourceType, S as StallType, ay as Subcategory, az as SubcategoryItems, aA as TermsAgreement, p as UnregisteredVendorFormData, aB as UnregisteredVendorInvitationType, g as UnregisteredVendorType, U as UseGetResourcesByRegionOptions, i as UserLicenceType, aC as VendorAttributes, aD as VendorCalendarData, l as VendorFormData, n as VendorInfoFormData, h as VendorInfoType, aE as VendorProductList, V as VendorType, aF as gameScreenIdentifierList, aG as gameTypeToDisplayName } from '../global-BUUfmCo7.mjs';
7
+ export { a as AffiliateResourceType, b as AffiliateReward, A as AffiliateType, E as EnumAffiliateRewardType } from '../affiliate-Cos2Syz5.mjs';
8
+ import '../images/index.mjs';
19
9
  import 'react-hook-form';
20
10
 
21
- /**
22
- * Adapters between generated GraphQL Event entity types and form/UI shapes.
23
- *
24
- * GraphQL entities are not form state — these converters make the differences
25
- * explicit (null vs undefined, required vs draft-optional social fields,
26
- * string categories vs form unions, EventType vs EventListItemType).
27
- */
28
-
29
- /**
30
- * GraphQL SocialMediaType requires name+link once stored.
31
- * Form SocialMediaType keeps both optional so drafts can leave rows blank.
32
- */
33
- declare function toFormSocialMedia(socialMedia: ReadonlyArray<SocialMediaType> | null | undefined): SocialMediaType$1[] | null;
34
- declare function toFormRequirement(item: RequirementType): Requirement;
35
- declare function toFormRefundPolicy(item: RefundPolicyType): RefundPolicy;
36
- /**
37
- * Project a full EventType onto EventListItemType fields.
38
- * Needed because the two GraphQL object types are distinct (__typename) even
39
- * when the list-item fields are a subset of the full event.
40
- */
41
- declare function eventToEventListItem(event: EventType): EventListItemType;
42
- /**
43
- * Convert a stored Event entity into EventFormData for create/edit forms.
44
- * Maps GraphQL nullability (undefined / Maybe) onto form null defaults and
45
- * converts GraphQL social media into draft-optional form rows.
46
- */
47
- declare function eventToFormData(event: EventType): EventFormData;
48
- type EventInfoToFormDataOptions = {
49
- /** Default checkbox rows merged in when editing so unchecked options remain visible. */
50
- defaultRefundPolicy?: RefundPolicy[];
51
- defaultRequirements?: Requirement[];
52
- };
53
- /**
54
- * Convert EventInfoType into EventInfoFormData, optionally merging default
55
- * requirement/refund checkbox options that are not yet saved on the server.
56
- */
57
- declare function eventInfoToFormData(eventInfo: EventInfoType, options?: EventInfoToFormDataOptions): EventInfoFormData;
58
- /**
59
- * Build EventInfoFormData when no EventInfo exists yet, seeding date rows
60
- * from the parent Event's dateTime (empty stallTypes).
61
- */
62
- declare function eventToNewEventInfoFormData(event: EventType, options: {
63
- defaultRefundPolicy: RefundPolicy[];
64
- defaultRequirements: Requirement[];
65
- }): EventInfoFormData;
66
- /**
67
- * Ad picker needs a non-null description string even when EventListItemType
68
- * omits description (list query field is optional in the schema).
69
- */
70
- declare function eventListItemToAdSelectableResource(event: EventListItemType): {
71
- _id: string;
72
- cover: NonNullable<EventListItemType["cover"]>;
73
- description: string;
74
- images?: EventListItemType["images"];
75
- logo?: EventListItemType["logo"];
76
- name: string;
77
- region: string;
78
- slug: string;
79
- };
80
- /**
81
- * Map a list-item event into ResourceDetails for mobile action sheets.
82
- * Coerces GraphQL `description?: string | null` to `string | null`.
83
- */
84
- declare function eventListItemToResourceDetails(item: EventListItemType, resourceType: ResourceTypeEnum): ResourceDetails;
85
- /**
86
- * Seed create-event form fields from a Google-place EventListItem match.
87
- * Merges onto caller-supplied defaults (does not invent missing form fields).
88
- */
89
- declare function eventListItemToCreateEventFormSeed(item: EventListItemType, defaults: EventFormData): EventFormData;
90
- /**
91
- * Narrow EventDateTimeWithPriceType rows to DateTimeType for consumers that
92
- * only need schedule fields (e.g. JSON-LD enrichment).
93
- */
94
- declare function eventInfoDateTimeToDateTime(rows: EventInfoType["dateTime"]): DateTimeType[];
95
-
96
- interface PosterInputType {
97
- description: string;
98
- posterName: PosterAssetId;
11
+ interface AdminUpdateResourceType {
12
+ active: boolean;
99
13
  resourceId: string;
100
- resourceType: ResourceTypeEnum;
14
+ resourceType: EnumResourceType;
101
15
  }
102
16
 
103
- /**
104
- * GraphQL CategoryType omits form-only color/description and has optional
105
- * subcategory trees; form Category requires a subcategories array.
106
- */
107
- declare function toFormCategory(category: CategoryType): Category;
108
- /**
109
- * GraphQL VendorLocationsType is a thin calendar row (date/location/description).
110
- * Form VendorCalendarData extends ResourceDetails-like fields used by the
111
- * calendar UI — fill resource* fields with empty defaults when hydrating.
112
- */
113
- declare function toFormVendorCalendarData(row: VendorLocationsType): VendorCalendarData;
114
- /**
115
- * Convert a stored Vendor entity into VendorFormData for create/edit forms.
116
- */
117
- declare function vendorToFormData(vendor: VendorType): VendorFormData;
118
- /**
119
- * Convert VendorInfoType into VendorInfoFormData.
120
- * Documents/product arrays are normalized; requirements are optional on GraphQL.
121
- */
122
- declare function vendorInfoToFormData(vendorInfo: VendorInfoType): VendorInfoFormData;
123
- /**
124
- * UnregisteredVendor is not a BaseResourceType subset — independent adapter.
125
- * Form create/edit uses top-level dateTime + inviterId; entity stores invitations[].
126
- * When hydrating an existing entity for a single-invitation edit flow, prefer
127
- * the first invitation (call sites that need a specific inviter should filter).
128
- */
129
- declare function unregisteredVendorToFormData(vendor: UnregisteredVendorType, options?: {
130
- inviterId?: string;
131
- }): UnregisteredVendorFormData;
132
- /**
133
- * Ad picker selectable resource projection for Vendor.
134
- */
135
- declare function vendorToAdSelectableResource(vendor: VendorType): {
17
+ type PushTokenType = {
136
18
  _id: string;
137
- cover: VendorType["cover"];
138
- description: string;
139
- images?: VendorType["images"];
140
- logo?: VendorType["logo"];
141
- name: string;
142
- region: string;
143
- slug: string;
144
- };
145
-
146
- /**
147
- * Adapters between generated GraphQL User/Auth entity types and form/UI shapes.
148
- *
149
- * GraphQL UserType is already the redacted client shape (no password /
150
- * refreshToken). These converters make remaining differences explicit:
151
- * branded promo codes, draft-optional terms, permission string → Permission,
152
- * and entity-to-form bridging (password fields stay empty — never round-trip).
153
- */
154
-
155
- declare function toUserPermissions(permissions: ReadonlyArray<string>): Permission[];
156
- declare function toUserPromoCodes(codes: ReadonlyArray<string> | null | undefined): PromoCodeType[] | null;
157
- /**
158
- * Convert a stored GraphQL UserType into UserFormData for profile edit forms.
159
- *
160
- * Password / confirmPassword are never populated from the entity (GraphQL
161
- * UserType does not include them). avatarUpload is a local draft field.
162
- * termsAgreement is copied field-by-field (form TermsAgreement vs GraphQL
163
- * TermsAgreementType — same fields, kept explicit like other resources).
164
- */
165
- declare function userToFormData(user: UserType): UserFormData;
166
-
167
- /**
168
- * Adapters between generated GraphQL Partner entity types and form/UI shapes.
169
- *
170
- * GraphQL entities are not form state — these converters make the differences
171
- * explicit (null vs undefined, required vs draft-optional social fields,
172
- * promo-code branding).
173
- */
174
-
175
- /**
176
- * Convert a stored Partner entity into PartnerFormData for create/edit forms.
177
- * Maps GraphQL nullability onto form null defaults and converts GraphQL
178
- * social media into draft-optional form rows (same dual-shape as Event).
179
- */
180
- declare function partnerToFormData(partner: PartnerType): PartnerFormData;
181
- /**
182
- * Ad picker needs the same selectable shape Event uses. Partner already has
183
- * required description + cover in the schema; this still normalizes optional
184
- * images/logo for the shared ad form builder.
185
- */
186
- declare function partnerToAdSelectableResource(partner: PartnerType): {
187
- _id: string;
188
- cover: PartnerType["cover"];
189
- description: string;
190
- images?: PartnerType["images"];
191
- logo?: PartnerType["logo"];
192
- name: string;
193
- region: string;
194
- slug: string;
195
- };
196
-
197
- declare const gameTypeToDisplayName: Record<GameTypeEnumType, string>;
198
-
199
- /**
200
- * Client-side push-token *document* shape (local/DB modelling).
201
- *
202
- * Not the GraphQL schema type: schema `PushTokenType` is the createPushToken
203
- * mutation payload `{ success: boolean }` (see src/generated/graphql.ts).
204
- * Renamed to avoid that collision.
205
- */
206
-
207
- type PushTokenDocument = {
208
- _id: string;
209
- createdAt: string;
210
- platform: OsPlatformEnumType;
19
+ createdAt: Date;
20
+ platform: EnumOSPlatform;
211
21
  token: string;
212
- updatedAt: string;
22
+ updatedAt: Date;
213
23
  userId: string;
214
24
  };
215
- /** @deprecated Use PushTokenDocument — name collided with GraphQL PushTokenType. */
216
- type PushTokenType = PushTokenDocument;
217
25
 
218
26
  type GoogleAddressComponent = {
219
27
  longName?: string;
@@ -234,27 +42,13 @@ interface GoogleImportedMarket extends EventListItemType {
234
42
  website?: string;
235
43
  }
236
44
 
237
- /**
238
- * Adapters between generated GraphQL School entity types and form/UI shapes.
239
- *
240
- * GraphQL entities are not form state — these converters make differences
241
- * explicit (null vs undefined, required vs draft-optional social fields).
242
- */
243
-
244
- declare function toSchoolCode(code: string): PromoCodeType;
245
- /**
246
- * GraphQL SchoolCampaignType dates are ISO strings (Date scalar serialize).
247
- * Countdown UI / period helpers historically used JS Date — convert explicitly.
248
- */
249
- declare function schoolCampaignDatesToJsDates(campaign: {
250
- endDate: string;
251
- name: string;
252
- startDate: string;
253
- }): {
254
- endDate: Date;
255
- name: string;
256
- startDate: Date;
257
- };
258
- declare function schoolToFormData(school: SchoolType): SchoolFormData;
45
+ /** Tier keys in descending priority (highest first) for licence resolution. */
46
+ declare const TIERS_BY_PRIORITY: readonly ["pro_plus", "pro", "standard"];
47
+ /** Canonical subscription tier keys — matches Stripe/server tier identifiers. */
48
+ type Tier = (typeof TIERS_BY_PRIORITY)[number];
49
+ /** User-facing tier labels (decoupled from the Tier discriminant). */
50
+ declare const TIER_DISPLAY_LABELS: Record<Tier, string>;
51
+ /** Maps licence enums to their canonical tier key. */
52
+ declare const TIER_FROM_LICENCE: Record<EnumUserLicence, Tier>;
259
53
 
260
- export { Category, DateTimeType, EventFormData, EventInfoFormData, type EventInfoToFormDataOptions, EventInfoType, EventListItemType, EventType, type GoogleAddressComponent, type GoogleImportedMarket, PartnerFormData, PartnerType, type PosterInputType, PromoCodeType, type PushTokenDocument, type PushTokenType, RefundPolicy, Requirement, ResourceDetails, UserType as SafeUserType, SchoolFormData, SchoolType, SocialMediaType$1 as SocialMediaType, UnregisteredVendorFormData, UnregisteredVendorType, UserFormData, UserType, VendorCalendarData, VendorFormData, VendorInfoFormData, VendorInfoType, VendorType, eventInfoDateTimeToDateTime, eventInfoToFormData, eventListItemToAdSelectableResource, eventListItemToCreateEventFormSeed, eventListItemToResourceDetails, eventToEventListItem, eventToFormData, eventToNewEventInfoFormData, gameTypeToDisplayName, partnerToAdSelectableResource, partnerToFormData, schoolCampaignDatesToJsDates, schoolToFormData, toFormCategory, toFormRefundPolicy, toFormRequirement, toFormSocialMedia, toFormVendorCalendarData, toSchoolCode, toUserPermissions, toUserPromoCodes, unregisteredVendorToFormData, userToFormData, vendorInfoToFormData, vendorToAdSelectableResource, vendorToFormData };
54
+ export { type AdminUpdateResourceType, EventListItemType, type GoogleAddressComponent, type GoogleImportedMarket, type PushTokenType, TIERS_BY_PRIORITY, TIER_DISPLAY_LABELS, TIER_FROM_LICENCE, type Tier };
@@ -1,219 +1,27 @@
1
- export { A as AdminUpdateResourceType, C as CreateBulkNotificationInput, N as NotificationCount, a as NotificationDataType, b as NotificationType, R as RelationDate, c as RelationInputType, d as RelationType, e as ResourceActivityEntry, f as ResourceActivityInputType, g as ResourceActivityType } from '../resourceActivities-DOdNPkhW.js';
2
- import { U as UserFormData } from '../auth-BOmAO53v.js';
3
- export { A as AppSettingsFormData, a as AppSettingsType, b as AuthMutationResponse, C as CreateAppSettingsFormData, c as CreateLoginFormData, d as CreateRegisterFormData, e as CreateRequestPasswordResetFormData, f as CreateResetPasswordFormData, g as CreateUserFormData, h as CreateValidateVerificationTokenFormData, L as LoginFormData, R as RedeemRewardMutationResponse, i as RedeemedReward, j as RefreshTokenMutationResponse, k as RegisterFormData, l as RequestPasswordResetFormData, m as ResetPasswordFormData, S as StripeSubscription, n as SubscriptionStatusData, o as UserActivity, p as UserActivityEvent, q as UserWriteType, V as ValidateVerificationTokenFormData } from '../auth-BOmAO53v.js';
4
- import { P as PartnerFormData, S as SchoolFormData } from '../affiliateAdapters-C51ISmuA.js';
5
- export { A as AdFormData, a as AdFormState, C as ContactUsFormData, b as CreateAdFormData, c as CreateAdFormState, d as CreateContactUsFormData, e as CreatePartnerFormData, f as CreatePostFormData, g as CreateSchoolFormData, h as PostContentFormData, i as PostContentGame, j as PostContentImage, k as PostContentInputData, l as PostContentList, m as PostContentTextarea, n as PostContentVideo, o as PostFileInput, p as PostFormData, q as affiliateToFormData, t as toAffiliateCode } from '../affiliateAdapters-C51ISmuA.js';
6
- import { R as ResourceDetails, S as SocialMediaType$1, C as Category, P as PromoCodeType } from '../global-BbSFfYdd.js';
7
- export { d as BaseResourceType, B as BaseResourceTypeFormData, a as CreateFormData, D as DeviceInfo, E as EventStatusType, F as FormDateField, e as FormField, G as GeocodeLocation, I as ImageObjectType, M as MutationResponse, N as Nullable, O as OptionItem, f as OwnerType, g as PROMO_CODE_PREFIX, h as PosterUsageType, b as Region, i as RelatedPostType, j as ResourceConnectionsType, c as ResourceContactDetailsType, k as SocialShareResourceType, l as Subcategory, m as SubcategoryItems, T as TermsAgreement, n as UseGetResourcesByRegionOptions, U as UserLicenceType } from '../global-BbSFfYdd.js';
8
- import { R as RefundPolicy, a as Requirement, E as EventInfoFormData, b as EventFormData } from '../event-C9K7CSg4.js';
9
- export { C as CreateEventFormData, c as CreateEventInfoFormData, D as DateTimeWithPriceType, P as PaymentInfoType, S as StallType } from '../event-C9K7CSg4.js';
10
- import { G as EventInfoType, D as DateTimeType, c as EventListItemType, f as ResourceTypeEnum, H as EventType, J as RefundPolicyType, K as RequirementType, M as SocialMediaType, Q as CategoryType, T as VendorLocationsType, W as UnregisteredVendorType, X as VendorInfoType, d as VendorType, C as UserType, Y as PartnerType, Z as GameTypeEnumType, O as OsPlatformEnumType, _ as SchoolType } from '../graphql-CDOfA79A.js';
11
- export { t as AdResource, t as AdResourceType, $ as AdType, a0 as AffiliateBankAccountDetailsType, a1 as AffiliateContactDetailsType, a2 as AffiliateDetailsType, a3 as AffiliateResourceType, a4 as AffiliateRewardType, z as AffiliateType, k as AuthPayloadType, B as BaseGameType, a5 as ChatMessageInputType, a6 as ChatMessageReactionType, a7 as ChatMessageReplyPreviewType, a8 as ChatMessageSeenType, a9 as ChatMessageType, aa as ChatParticipantType, ab as ChatType, ac as DailyClueBaseGameType, ad as DailyClueGameDataType, ae as DailyClueLetterType, af as GameDataType, ag as GameDateType, ah as GameDocType, ai as GameHistoryType, aj as GameLeaderboardType, ak as GameType, r as LocationGeoType, L as LocationType, al as MarketingMaterialRequestInputType, am as PostContentType, y as PostResource, y as PostResourceType, an as PostType, ao as PuzzleAnswerType, ap as PuzzleAnsweredQuestionType, aq as PuzzleBaseGameType, ar as PuzzleGameDataType, as as PuzzleQuestionType, at as RedeemHistoryType, au as RedeemRewardInput, au as RedeemRewardInputType, i as RedeemRewardResponseType, av as RedeemedRewardType, l as RefreshTokenPayloadType, aw as ReportChatUserType, ax as ResourceByUser, R as ResourceImageType, ay as SchoolCampaignType, az as SchoolRegisteredUserType, aA as SchoolReturnType, aB as StripeSubscriptionType, aC as SubscriptionPlanData, aC as SubscriptionPlanType, aD as SubscriptionPlansResponse, aD as SubscriptionPlansResponseType, aE as SubscriptionPricingData, aE as SubscriptionPricingType, aF as UnregisteredVendorInvitationType, aG as UserActivityType, ax as UserResource, V as VendorProductList, V as VendorProductListType } from '../graphql-CDOfA79A.js';
12
- import { PosterAssetId } from '../images/index.js';
13
- import { V as VendorCalendarData, U as UnregisteredVendorFormData, a as VendorInfoFormData, b as VendorFormData } from '../vendor-M9hVZlni.js';
14
- export { C as CreateUnregisteredVendorFormData, c as CreateVendorFormData, d as CreateVendorInfoFormData, e as VendorAttributes } from '../vendor-M9hVZlni.js';
15
- import { P as Permission } from '../subscription-OiJ50uJb.js';
16
- export { b as TIERS_BY_PRIORITY, c as TIER_DISPLAY_LABELS, d as TIER_FROM_LICENCE, T as Tier } from '../subscription-OiJ50uJb.js';
17
- export { D as DailyClueGameData, G as GamePlacement, a as GamePlacementClue, g as gameScreenIdentifierList } from '../dailyClue-C6WXY73z.js';
18
- export { a as AffiliateBankAccountDetailsForm, b as AffiliateContactDetails, A as AffiliateFormData, c as AffiliateRewardWriteType, C as CreateAffiliateFormData } from '../affiliate-Btlp5XUp.js';
1
+ import { EnumResourceType, EnumOSPlatform, EnumUserLicence } from '../enums/index.js';
2
+ export { o as AdFormData, v as AdFormState, w as AdResource, c as AdType, r as AppSettingsFormData, f as AppSettingsType, A as AuthPayloadType, x as CreateAdFormData, p as CreateAdFormState, s as CreateAppSettingsFormData, i as CreateLoginFormData, q as CreatePartnerFormData, j as CreateRegisterFormData, k as CreateRequestPasswordResetFormData, m as CreateResetPasswordFormData, u as CreateSchoolFormData, C as CreateUserFormData, l as CreateValidateVerificationTokenFormData, y as EnumAdShowOn, E as EnumAdStatus, z as EnumAdStyle, B as EnumAdType, D as EnumVerificationType, L as LoginFormData, M as MarketingMaterialRequestInputType, n as PartnerFormData, P as PartnerType, F as PosterInputType, G as RedeemRewardInput, a as RedeemRewardResponse, H as RedeemedReward, R as RefreshTokenPayloadType, I as RegisterFormData, J as RequestPasswordResetFormData, K as ResetPasswordFormData, b as ResourceByUser, S as SafeUserType, N as SchoolCampaignType, t as SchoolFormData, O as SchoolRegisteredUserType, g as SchoolReturnType, h as SchoolType, Q as StripeSubscription, T as SubscriptionPlanData, d as SubscriptionPlansResponse, V as SubscriptionPricingData, e as SubscriptionStatusData, W as UserActivity, X as UserActivityEvent, U as UserFormData, Y as UserType, Z as ValidateVerificationTokenFormData } from '../ad-CVkVX_z5.js';
3
+ export { c as ChatMessageInput, d as ChatMessageReaction, e as ChatMessageReplyPreview, f as ChatMessageSeen, g as ChatMessageType, C as ChatType, h as CreateBulkNotificationInput, E as EnumActivity, N as NotificationCount, i as NotificationDataType, a as NotificationType, P as ParticipantType, R as ReportChatUser, j as ResourceActivityEntry, k as ResourceActivityInputType, b as ResourceActivityType } from '../resourceActivities-BL_12IAo.js';
4
+ export { C as ContactUsFormData, a as CreateContactUsFormData } from '../contactUs-H7799pWe.js';
5
+ import { c as EventListItemType } from '../global-fKbMmluy.js';
6
+ export { A as AssociateType, y as BaseGameMap, z as BaseGameType, D as BaseResourceType, B as BaseResourceTypeFormData, C as Category, s as CreateEventFormData, u as CreateEventInfoFormData, H as CreateFormData, w as CreatePostFormData, q as CreateUnregisteredVendorFormData, m as CreateVendorFormData, o as CreateVendorInfoFormData, I as DailyClueBaseGame, J as DailyClueGameData, K as DateTimeType, M as DateTimeWithPriceType, N as DeviceInfo, Q as EnumGameStatus, T as EnumGameType, W as EnumPostContentType, j as EnumPostType, r as EventFormData, t as EventInfoFormData, d as EventInfoType, X as EventStatusType, E as EventType, a as FormDateField, F as FormField, Y as GameDate, G as GameDocType, Z as GameHistory, k as GameLeaderboard, _ as GamePlacement, $ as GamePlacementClue, a0 as GameType, a1 as GeocodeLocation, a2 as GlobalGameData, a3 as ImageObjectType, a4 as LocationGeoType, L as LocationType, a5 as Nullable, O as OptionItem, a6 as OwnerType, a7 as PROMO_CODE_PREFIX, a8 as PaymentInfoType, a9 as PostContentData, aa as PostContentFormData, ab as PostContentGame, ac as PostContentImage, ad as PostContentList, ae as PostContentTextarea, af as PostContentType, ag as PostContentVideo, ah as PostFileInput, v as PostFormData, ai as PostResource, P as PostType, aj as PosterUsageType, ak as PromoCodeType, al as PuzzleAnswer, am as PuzzleAnsweredQuestion, an as PuzzleBaseGame, ao as PuzzleGameData, ap as PuzzleQuestion, R as RefundPolicy, x as Region, aq as RelatedPostType, ar as RelationDate, as as RelationInputType, e as RelationType, b as Requirement, f as ResourceConnectionsType, at as ResourceContactDetailsType, au as ResourceDetails, av as ResourceImageType, aw as SocialMediaType, ax as SocialShareResourceType, S as StallType, ay as Subcategory, az as SubcategoryItems, aA as TermsAgreement, p as UnregisteredVendorFormData, aB as UnregisteredVendorInvitationType, g as UnregisteredVendorType, U as UseGetResourcesByRegionOptions, i as UserLicenceType, aC as VendorAttributes, aD as VendorCalendarData, l as VendorFormData, n as VendorInfoFormData, h as VendorInfoType, aE as VendorProductList, V as VendorType, aF as gameScreenIdentifierList, aG as gameTypeToDisplayName } from '../global-fKbMmluy.js';
7
+ export { a as AffiliateResourceType, b as AffiliateReward, A as AffiliateType, E as EnumAffiliateRewardType } from '../affiliate-1RtkLnLP.js';
8
+ import '../images/index.js';
19
9
  import 'react-hook-form';
20
10
 
21
- /**
22
- * Adapters between generated GraphQL Event entity types and form/UI shapes.
23
- *
24
- * GraphQL entities are not form state — these converters make the differences
25
- * explicit (null vs undefined, required vs draft-optional social fields,
26
- * string categories vs form unions, EventType vs EventListItemType).
27
- */
28
-
29
- /**
30
- * GraphQL SocialMediaType requires name+link once stored.
31
- * Form SocialMediaType keeps both optional so drafts can leave rows blank.
32
- */
33
- declare function toFormSocialMedia(socialMedia: ReadonlyArray<SocialMediaType> | null | undefined): SocialMediaType$1[] | null;
34
- declare function toFormRequirement(item: RequirementType): Requirement;
35
- declare function toFormRefundPolicy(item: RefundPolicyType): RefundPolicy;
36
- /**
37
- * Project a full EventType onto EventListItemType fields.
38
- * Needed because the two GraphQL object types are distinct (__typename) even
39
- * when the list-item fields are a subset of the full event.
40
- */
41
- declare function eventToEventListItem(event: EventType): EventListItemType;
42
- /**
43
- * Convert a stored Event entity into EventFormData for create/edit forms.
44
- * Maps GraphQL nullability (undefined / Maybe) onto form null defaults and
45
- * converts GraphQL social media into draft-optional form rows.
46
- */
47
- declare function eventToFormData(event: EventType): EventFormData;
48
- type EventInfoToFormDataOptions = {
49
- /** Default checkbox rows merged in when editing so unchecked options remain visible. */
50
- defaultRefundPolicy?: RefundPolicy[];
51
- defaultRequirements?: Requirement[];
52
- };
53
- /**
54
- * Convert EventInfoType into EventInfoFormData, optionally merging default
55
- * requirement/refund checkbox options that are not yet saved on the server.
56
- */
57
- declare function eventInfoToFormData(eventInfo: EventInfoType, options?: EventInfoToFormDataOptions): EventInfoFormData;
58
- /**
59
- * Build EventInfoFormData when no EventInfo exists yet, seeding date rows
60
- * from the parent Event's dateTime (empty stallTypes).
61
- */
62
- declare function eventToNewEventInfoFormData(event: EventType, options: {
63
- defaultRefundPolicy: RefundPolicy[];
64
- defaultRequirements: Requirement[];
65
- }): EventInfoFormData;
66
- /**
67
- * Ad picker needs a non-null description string even when EventListItemType
68
- * omits description (list query field is optional in the schema).
69
- */
70
- declare function eventListItemToAdSelectableResource(event: EventListItemType): {
71
- _id: string;
72
- cover: NonNullable<EventListItemType["cover"]>;
73
- description: string;
74
- images?: EventListItemType["images"];
75
- logo?: EventListItemType["logo"];
76
- name: string;
77
- region: string;
78
- slug: string;
79
- };
80
- /**
81
- * Map a list-item event into ResourceDetails for mobile action sheets.
82
- * Coerces GraphQL `description?: string | null` to `string | null`.
83
- */
84
- declare function eventListItemToResourceDetails(item: EventListItemType, resourceType: ResourceTypeEnum): ResourceDetails;
85
- /**
86
- * Seed create-event form fields from a Google-place EventListItem match.
87
- * Merges onto caller-supplied defaults (does not invent missing form fields).
88
- */
89
- declare function eventListItemToCreateEventFormSeed(item: EventListItemType, defaults: EventFormData): EventFormData;
90
- /**
91
- * Narrow EventDateTimeWithPriceType rows to DateTimeType for consumers that
92
- * only need schedule fields (e.g. JSON-LD enrichment).
93
- */
94
- declare function eventInfoDateTimeToDateTime(rows: EventInfoType["dateTime"]): DateTimeType[];
95
-
96
- interface PosterInputType {
97
- description: string;
98
- posterName: PosterAssetId;
11
+ interface AdminUpdateResourceType {
12
+ active: boolean;
99
13
  resourceId: string;
100
- resourceType: ResourceTypeEnum;
14
+ resourceType: EnumResourceType;
101
15
  }
102
16
 
103
- /**
104
- * GraphQL CategoryType omits form-only color/description and has optional
105
- * subcategory trees; form Category requires a subcategories array.
106
- */
107
- declare function toFormCategory(category: CategoryType): Category;
108
- /**
109
- * GraphQL VendorLocationsType is a thin calendar row (date/location/description).
110
- * Form VendorCalendarData extends ResourceDetails-like fields used by the
111
- * calendar UI — fill resource* fields with empty defaults when hydrating.
112
- */
113
- declare function toFormVendorCalendarData(row: VendorLocationsType): VendorCalendarData;
114
- /**
115
- * Convert a stored Vendor entity into VendorFormData for create/edit forms.
116
- */
117
- declare function vendorToFormData(vendor: VendorType): VendorFormData;
118
- /**
119
- * Convert VendorInfoType into VendorInfoFormData.
120
- * Documents/product arrays are normalized; requirements are optional on GraphQL.
121
- */
122
- declare function vendorInfoToFormData(vendorInfo: VendorInfoType): VendorInfoFormData;
123
- /**
124
- * UnregisteredVendor is not a BaseResourceType subset — independent adapter.
125
- * Form create/edit uses top-level dateTime + inviterId; entity stores invitations[].
126
- * When hydrating an existing entity for a single-invitation edit flow, prefer
127
- * the first invitation (call sites that need a specific inviter should filter).
128
- */
129
- declare function unregisteredVendorToFormData(vendor: UnregisteredVendorType, options?: {
130
- inviterId?: string;
131
- }): UnregisteredVendorFormData;
132
- /**
133
- * Ad picker selectable resource projection for Vendor.
134
- */
135
- declare function vendorToAdSelectableResource(vendor: VendorType): {
17
+ type PushTokenType = {
136
18
  _id: string;
137
- cover: VendorType["cover"];
138
- description: string;
139
- images?: VendorType["images"];
140
- logo?: VendorType["logo"];
141
- name: string;
142
- region: string;
143
- slug: string;
144
- };
145
-
146
- /**
147
- * Adapters between generated GraphQL User/Auth entity types and form/UI shapes.
148
- *
149
- * GraphQL UserType is already the redacted client shape (no password /
150
- * refreshToken). These converters make remaining differences explicit:
151
- * branded promo codes, draft-optional terms, permission string → Permission,
152
- * and entity-to-form bridging (password fields stay empty — never round-trip).
153
- */
154
-
155
- declare function toUserPermissions(permissions: ReadonlyArray<string>): Permission[];
156
- declare function toUserPromoCodes(codes: ReadonlyArray<string> | null | undefined): PromoCodeType[] | null;
157
- /**
158
- * Convert a stored GraphQL UserType into UserFormData for profile edit forms.
159
- *
160
- * Password / confirmPassword are never populated from the entity (GraphQL
161
- * UserType does not include them). avatarUpload is a local draft field.
162
- * termsAgreement is copied field-by-field (form TermsAgreement vs GraphQL
163
- * TermsAgreementType — same fields, kept explicit like other resources).
164
- */
165
- declare function userToFormData(user: UserType): UserFormData;
166
-
167
- /**
168
- * Adapters between generated GraphQL Partner entity types and form/UI shapes.
169
- *
170
- * GraphQL entities are not form state — these converters make the differences
171
- * explicit (null vs undefined, required vs draft-optional social fields,
172
- * promo-code branding).
173
- */
174
-
175
- /**
176
- * Convert a stored Partner entity into PartnerFormData for create/edit forms.
177
- * Maps GraphQL nullability onto form null defaults and converts GraphQL
178
- * social media into draft-optional form rows (same dual-shape as Event).
179
- */
180
- declare function partnerToFormData(partner: PartnerType): PartnerFormData;
181
- /**
182
- * Ad picker needs the same selectable shape Event uses. Partner already has
183
- * required description + cover in the schema; this still normalizes optional
184
- * images/logo for the shared ad form builder.
185
- */
186
- declare function partnerToAdSelectableResource(partner: PartnerType): {
187
- _id: string;
188
- cover: PartnerType["cover"];
189
- description: string;
190
- images?: PartnerType["images"];
191
- logo?: PartnerType["logo"];
192
- name: string;
193
- region: string;
194
- slug: string;
195
- };
196
-
197
- declare const gameTypeToDisplayName: Record<GameTypeEnumType, string>;
198
-
199
- /**
200
- * Client-side push-token *document* shape (local/DB modelling).
201
- *
202
- * Not the GraphQL schema type: schema `PushTokenType` is the createPushToken
203
- * mutation payload `{ success: boolean }` (see src/generated/graphql.ts).
204
- * Renamed to avoid that collision.
205
- */
206
-
207
- type PushTokenDocument = {
208
- _id: string;
209
- createdAt: string;
210
- platform: OsPlatformEnumType;
19
+ createdAt: Date;
20
+ platform: EnumOSPlatform;
211
21
  token: string;
212
- updatedAt: string;
22
+ updatedAt: Date;
213
23
  userId: string;
214
24
  };
215
- /** @deprecated Use PushTokenDocument — name collided with GraphQL PushTokenType. */
216
- type PushTokenType = PushTokenDocument;
217
25
 
218
26
  type GoogleAddressComponent = {
219
27
  longName?: string;
@@ -234,27 +42,13 @@ interface GoogleImportedMarket extends EventListItemType {
234
42
  website?: string;
235
43
  }
236
44
 
237
- /**
238
- * Adapters between generated GraphQL School entity types and form/UI shapes.
239
- *
240
- * GraphQL entities are not form state — these converters make differences
241
- * explicit (null vs undefined, required vs draft-optional social fields).
242
- */
243
-
244
- declare function toSchoolCode(code: string): PromoCodeType;
245
- /**
246
- * GraphQL SchoolCampaignType dates are ISO strings (Date scalar serialize).
247
- * Countdown UI / period helpers historically used JS Date — convert explicitly.
248
- */
249
- declare function schoolCampaignDatesToJsDates(campaign: {
250
- endDate: string;
251
- name: string;
252
- startDate: string;
253
- }): {
254
- endDate: Date;
255
- name: string;
256
- startDate: Date;
257
- };
258
- declare function schoolToFormData(school: SchoolType): SchoolFormData;
45
+ /** Tier keys in descending priority (highest first) for licence resolution. */
46
+ declare const TIERS_BY_PRIORITY: readonly ["pro_plus", "pro", "standard"];
47
+ /** Canonical subscription tier keys — matches Stripe/server tier identifiers. */
48
+ type Tier = (typeof TIERS_BY_PRIORITY)[number];
49
+ /** User-facing tier labels (decoupled from the Tier discriminant). */
50
+ declare const TIER_DISPLAY_LABELS: Record<Tier, string>;
51
+ /** Maps licence enums to their canonical tier key. */
52
+ declare const TIER_FROM_LICENCE: Record<EnumUserLicence, Tier>;
259
53
 
260
- export { Category, DateTimeType, EventFormData, EventInfoFormData, type EventInfoToFormDataOptions, EventInfoType, EventListItemType, EventType, type GoogleAddressComponent, type GoogleImportedMarket, PartnerFormData, PartnerType, type PosterInputType, PromoCodeType, type PushTokenDocument, type PushTokenType, RefundPolicy, Requirement, ResourceDetails, UserType as SafeUserType, SchoolFormData, SchoolType, SocialMediaType$1 as SocialMediaType, UnregisteredVendorFormData, UnregisteredVendorType, UserFormData, UserType, VendorCalendarData, VendorFormData, VendorInfoFormData, VendorInfoType, VendorType, eventInfoDateTimeToDateTime, eventInfoToFormData, eventListItemToAdSelectableResource, eventListItemToCreateEventFormSeed, eventListItemToResourceDetails, eventToEventListItem, eventToFormData, eventToNewEventInfoFormData, gameTypeToDisplayName, partnerToAdSelectableResource, partnerToFormData, schoolCampaignDatesToJsDates, schoolToFormData, toFormCategory, toFormRefundPolicy, toFormRequirement, toFormSocialMedia, toFormVendorCalendarData, toSchoolCode, toUserPermissions, toUserPromoCodes, unregisteredVendorToFormData, userToFormData, vendorInfoToFormData, vendorToAdSelectableResource, vendorToFormData };
54
+ export { type AdminUpdateResourceType, EventListItemType, type GoogleAddressComponent, type GoogleImportedMarket, type PushTokenType, TIERS_BY_PRIORITY, TIER_DISPLAY_LABELS, TIER_FROM_LICENCE, type Tier };