@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 +1 @@
1
- {"version":3,"sources":["../../src/types/index.ts","../../src/types/global.ts","../../src/generated/graphql.ts","../../src/types/eventAdapters.ts","../../src/types/vendorAdapters.ts","../../src/auth/permissions/permissions.ts","../../src/auth/permissions/rolePermissions.ts","../../src/auth/permissions/adminAppAccess.ts","../../src/types/userAdapters.ts","../../src/types/partnerAdapters.ts","../../src/types/game/dailyClue.ts","../../src/types/game/global.ts","../../src/types/schoolAdapters.ts","../../src/types/subscription.ts","../../src/types/affiliateAdapters.ts"],"sourcesContent":["export * from \"./admin\";\nexport * from \"./auth\";\nexport * from \"./contactUs\";\nexport * from \"./global\";\nexport * from \"./event\";\nexport * from \"./eventAdapters\";\nexport * from \"./notification\";\nexport * from \"./poster\";\nexport * from \"./relation\";\nexport * from \"./vendor\";\nexport * from \"./vendorAdapters\";\nexport * from \"./user\";\nexport * from \"./userAdapters\";\nexport * from \"./ad\";\nexport * from \"./resourceActivities\";\nexport * from \"./partner\";\nexport * from \"./partnerAdapters\";\nexport * from \"./post\";\nexport * from \"./pushToken\";\nexport * from \"./appSettings\";\nexport * from \"./googleImportedMarket\";\nexport * from \"./game\";\nexport * from \"./game/dailyClue\";\nexport * from \"./game/global\";\nexport * from \"./game/puzzleGame\";\nexport * from \"./school\";\nexport * from \"./schoolAdapters\";\nexport * from \"./subscription\";\nexport * from \"./affiliate\";\nexport * from \"./affiliateAdapters\";\n\n/** Event GraphQL entities (from codegen) — also on package root. */\nexport type {\n EventInfoType,\n EventListItemType,\n EventType,\n} from \"../generated/graphql\";\n\n/** Partner GraphQL entity (from codegen) — also on package root. */\nexport type { PartnerType } from \"../generated/graphql\";\n\n/** Vendor-family GraphQL entities (from codegen) — also on package root. */\nexport type {\n UnregisteredVendorInvitationType,\n UnregisteredVendorType,\n VendorInfoType,\n VendorProductListType,\n VendorType,\n} from \"../generated/graphql\";\nexport type { VendorProductListType as VendorProductList } from \"../generated/graphql\";\n\n/** School-family GraphQL entities (from codegen) — also on package root. */\nexport type {\n MarketingMaterialRequestInputType,\n SchoolCampaignType,\n SchoolRegisteredUserType,\n SchoolReturnType,\n SchoolType,\n} from \"../generated/graphql\";\n\n/** Affiliate-family GraphQL entities (from codegen) — also on package root. */\nexport type {\n AffiliateBankAccountDetailsType,\n AffiliateContactDetailsType,\n AffiliateDetailsType,\n AffiliateResourceType,\n AffiliateRewardType,\n AffiliateType,\n RedeemHistoryType,\n} from \"../generated/graphql\";\n\n/**\n * User/Auth GraphQL entities (from codegen) — also on package root.\n *\n * Schema UserType already omits password/refreshToken (mongoose-only fields).\n * SafeUserType is a compatibility alias for that same generated UserType.\n * ResourceByUser is the generated UserResource object (userResources query).\n */\nexport type {\n AuthPayloadType,\n RedeemedRewardType,\n RedeemRewardInputType,\n RedeemRewardResponseType,\n RefreshTokenPayloadType,\n StripeSubscriptionType,\n SubscriptionPlanType,\n SubscriptionPlansResponseType,\n SubscriptionPricingType,\n UserActivityType,\n UserResource,\n UserType,\n} from \"../generated/graphql\";\nexport type { UserType as SafeUserType } from \"../generated/graphql\";\nexport type { UserResource as ResourceByUser } from \"../generated/graphql\";\nexport type { RedeemRewardInputType as RedeemRewardInput } from \"../generated/graphql\";\n\n/** Backward-compat aliases for deleted hand-written subscription types. */\nexport type { SubscriptionPricingType as SubscriptionPricingData } from \"../generated/graphql\";\nexport type { SubscriptionPlanType as SubscriptionPlanData } from \"../generated/graphql\";\nexport type { SubscriptionPlansResponseType as SubscriptionPlansResponse } from \"../generated/graphql\";\n\nexport type { AdType, AdResourceType } from \"../generated/graphql\";\n\nexport type {\n PostType,\n PostContentType,\n PostResourceType,\n} from \"../generated/graphql\";\nexport type { PostResourceType as PostResource } from \"../generated/graphql\";\n\nexport type {\n ChatType,\n ChatMessageType,\n ChatParticipantType,\n ChatMessageReactionType,\n ChatMessageReplyPreviewType,\n ChatMessageSeenType,\n ReportChatUserType,\n ChatMessageInputType,\n} from \"../generated/graphql\";\n\nexport type {\n GameDocType,\n GameType,\n GameDataType,\n GameHistoryType,\n GameLeaderboardType,\n BaseGameType,\n DailyClueBaseGameType,\n DailyClueGameDataType,\n DailyClueLetterType,\n GameDateType,\n PuzzleAnswerType,\n PuzzleQuestionType,\n PuzzleAnsweredQuestionType,\n PuzzleBaseGameType,\n PuzzleGameDataType,\n} from \"../generated/graphql\";\n","import {\n Control,\n FieldValues,\n FormState,\n UseFormGetValues,\n UseFormHandleSubmit,\n UseFormReset,\n UseFormSetValue,\n UseFormWatch,\n} from \"react-hook-form\";\n\nimport {\n EventEnumType,\n PostTypeEnum,\n ResourceTypeEnum,\n SocialMediaEnumType,\n LicencesEnumType,\n} from \"../generated/graphql\";\nimport type {\n DateTimeType,\n EventListItemType,\n LocationType,\n ResourceImageType,\n VendorType,\n} from \"../generated/graphql\";\n\nexport type {\n DateTimeType,\n LocationGeoType,\n LocationType,\n ResourceImageType,\n} from \"../generated/graphql\";\nexport const PROMO_CODE_PREFIX = \"CM-\";\n\nexport type PromoCodeType = `${typeof PROMO_CODE_PREFIX}${string}`;\n\nexport type Nullable<T> = {\n [K in keyof T]: T[K] | null | undefined;\n};\n\n/** Uniform mutation response envelope used across GraphQL mutations. */\nexport type MutationResponse<T> = {\n data: T | null;\n message: string | null;\n};\n\nexport type DeviceInfo = {\n appBuildNumber: string;\n appId: string;\n appVersion: string;\n brand: string;\n deviceName: string;\n installationId: string;\n manufacturer: string;\n modelName: string;\n osName: string;\n osVersion: string;\n timestamp: string;\n};\n\nexport type TermsAgreement = DeviceInfo & {\n termVersion: string;\n};\n\nexport type ResourceContactDetailsType = {\n email?: string | null;\n landlinePhone?: string | null;\n mobilePhone?: string | null;\n};\n\n/** Form/UI social links — optional fields. GraphQL `SocialMediaType` requires name+link. */\nexport type SocialMediaType = {\n name?: SocialMediaEnumType;\n link?: string;\n};\n\nexport type UserLicenceType = {\n expiryDate: Date;\n issuedDate: Date;\n licenceType: LicencesEnumType;\n prevLicenceType?: LicencesEnumType | null;\n};\n\nexport type OwnerType = {\n email: string;\n userId: string;\n};\n\nexport interface BaseResourceTypeFormData {\n _id?: string;\n active: boolean;\n contactDetails: ResourceContactDetailsType | null;\n cover: ResourceImageType;\n coverUpload?: ResourceImageType | null;\n description: string;\n images?: ResourceImageType[] | null;\n imagesUpload?: ResourceImageType[] | null;\n logo?: ResourceImageType | null;\n logoUpload?: ResourceImageType | null;\n name: string;\n promoCodes?: PromoCodeType[] | null;\n region: string;\n socialMedia: SocialMediaType[] | null;\n termsAgreement?: TermsAgreement | null;\n}\n\nexport type PosterUsageType = {\n month: string;\n count: number;\n};\n\nexport type RelatedPostType = {\n postActive: boolean;\n postId: string;\n postSlug: string;\n postType: PostTypeEnum;\n};\n\nexport type SocialShareResourceType = {\n qrCode: ResourceImageType;\n socialImage: ResourceImageType;\n};\n\nexport type BaseResourceType = Omit<\n BaseResourceTypeFormData,\n \"_id\" | \"coverUpload\" | \"imagesUpload\" | \"logoUpload\"\n> & {\n _id: string;\n adIds?: string[] | null;\n /** ISO 8601 UTC string — GraphQL Date scalar serializes to string, not JS Date. */\n approvedAt?: string | null;\n createdAt: string;\n deletedAt: string | null;\n owner: OwnerType;\n posterUsage?: PosterUsageType | null;\n rating?: number | null;\n relatedPost?: RelatedPostType | null;\n reviewCount?: number | null;\n slug: string;\n updatedAt: string | null;\n};\n\nexport type Region = {\n latitude: number;\n latitudeDelta: number;\n longitude: number;\n longitudeDelta: number;\n};\n\nexport type ResourceDetails = {\n dateTime: DateTimeType[] | null;\n description: string | null;\n eventStatus?: EventStatusType | null;\n location: LocationType | null;\n resourceCover: ResourceImageType | null;\n resourceId: string;\n resourceLogo: ResourceImageType | null;\n resourceName: string;\n resourceType: ResourceTypeEnum;\n};\n\nexport type GeocodeLocation = Pick<LocationType, \"latitude\" | \"longitude\">;\n\nexport type EventStatusType = {\n claimed: boolean;\n eventType: EventEnumType;\n googlePlaceId?: string | null;\n};\n\nexport interface FormField {\n disabled?: boolean;\n helperText?: string;\n isTextArea?: boolean;\n keyboardType?:\n | \"default\"\n | \"email-address\"\n | \"number-pad\"\n | \"url\"\n | \"decimal-pad\"\n | \"phone-pad\";\n name: string;\n placeholder: string;\n required?: boolean;\n secureTextEntry?: boolean;\n}\n\nexport interface FormDateField {\n dateMode: \"date\" | \"time\";\n helperText?: string;\n name: \"endDate\" | \"endTime\" | \"startDate\" | \"startTime\";\n placeholder: string;\n}\n\nexport interface SubcategoryItems {\n id: string;\n name: string;\n description?: string | null;\n}\n\nexport interface Subcategory {\n id: string;\n name: string;\n items?: SubcategoryItems[] | null;\n}\n\nexport interface Category {\n color?: string | null;\n description?: string | null;\n id: string;\n name: string;\n subcategories: Subcategory[];\n}\n\nexport type OptionItem = {\n value: string;\n label: string;\n};\n\nexport type ImageObjectType = {\n uri: string;\n type: string;\n name: string;\n};\n\nexport interface ResourceConnectionsType {\n events: EventListItemType[] | null;\n vendors: VendorType[] | null;\n}\n\nexport interface CreateFormData<T extends FieldValues> {\n control: Control<T, any>;\n fields: T;\n formState: FormState<T>;\n handleSubmit: UseFormHandleSubmit<T, any>;\n reset: UseFormReset<T>;\n setValue: UseFormSetValue<T>;\n watch: UseFormWatch<T>;\n getValues: UseFormGetValues<T>;\n}\n\nexport interface UseGetResourcesByRegionOptions {\n onlyClaimed?: boolean;\n limit?: number;\n offset?: number;\n}\n","import { PosterAssetId } from '../images';\nexport type Maybe<T> = T | null;\nexport type InputMaybe<T> = Maybe<T>;\n/** All built-in and custom scalars, mapped to their actual values */\nexport type Scalars = {\n ID: { input: string; output: string; }\n String: { input: string; output: string; }\n Boolean: { input: boolean; output: boolean; }\n Int: { input: number; output: number; }\n Float: { input: number; output: number; }\n Date: { input: string; output: string; }\n PosterAssetId: { input: PosterAssetId; output: PosterAssetId; }\n Upload: { input: any; output: any; }\n};\n\n/** Activity enum type */\nexport enum ActivityEnumType {\n Favorite = 'FAVORITE',\n Going = 'GOING',\n Interested = 'INTERESTED',\n Present = 'PRESENT',\n View = 'VIEW'\n}\n\n/** Ad input type */\nexport type AdInputType = {\n active: Scalars['Boolean']['input'];\n end: Scalars['Date']['input'];\n resource: AdResourceInputType;\n showOn: Array<InputMaybe<AdShowOnEnum>>;\n start: Scalars['Date']['input'];\n status: AdStatusTypeEnum;\n targetRegion: Array<InputMaybe<Scalars['String']['input']>>;\n};\n\n/** Ad resource input type */\nexport type AdResourceInputType = {\n adDescription: Scalars['String']['input'];\n adImage: Scalars['String']['input'];\n adStyle: AdStyleEnum;\n adTitle: Scalars['String']['input'];\n adType: AdTypeEnum;\n resourceId: Scalars['String']['input'];\n resourceName: Scalars['String']['input'];\n resourceRegion: Scalars['String']['input'];\n resourceSlug: Scalars['String']['input'];\n resourceType: ResourceTypeEnum;\n};\n\n/** Ad resource type */\nexport type AdResourceType = {\n adDescription: Scalars['String']['output'];\n adImage: Scalars['String']['output'];\n adStyle: AdStyleEnum;\n adTitle: Scalars['String']['output'];\n adType: AdTypeEnum;\n resourceId: Scalars['String']['output'];\n resourceName: Scalars['String']['output'];\n resourceRegion: Scalars['String']['output'];\n resourceSlug: Scalars['String']['output'];\n resourceType: ResourceTypeEnum;\n};\n\n/** Ad show on enum */\nexport enum AdShowOnEnum {\n EventsPage = 'Events_page',\n FrontPage = 'Front_page',\n PartnersPage = 'Partners_page',\n VendorsPage = 'Vendors_page'\n}\n\n/** Ad status type enum */\nexport enum AdStatusTypeEnum {\n Active = 'Active',\n Expired = 'Expired',\n Paused = 'Paused'\n}\n\n/** Ad style enum */\nexport enum AdStyleEnum {\n Bloom = 'Bloom',\n Rise = 'Rise'\n}\n\n/** Ad type */\nexport type AdType = {\n _id: Scalars['ID']['output'];\n active: Scalars['Boolean']['output'];\n clicks?: Maybe<Scalars['Int']['output']>;\n createdAt: Scalars['Date']['output'];\n end: Scalars['Date']['output'];\n impressions?: Maybe<Scalars['Int']['output']>;\n resource: AdResourceType;\n showOn: Array<Maybe<AdShowOnEnum>>;\n start: Scalars['Date']['output'];\n status: AdStatusTypeEnum;\n targetRegion: Array<Maybe<Scalars['String']['output']>>;\n updatedAt: Scalars['Date']['output'];\n};\n\n/** Ad type enum */\nexport enum AdTypeEnum {\n Free = 'Free',\n Sponsored = 'Sponsored'\n}\n\nexport type AddParticipantToChatResponse = {\n data?: Maybe<ChatType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type AddUserFavouriteResourceResponse = {\n data?: Maybe<UserType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type AddUserGoingResourceResponse = {\n data?: Maybe<UserType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type AddUserInterestResourceResponse = {\n data?: Maybe<UserType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type AddUserPresentResourceResponse = {\n data?: Maybe<UserType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type AdminPermanentlyDeleteResourceResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type AdminResendUserVerificationEmailResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type AdminUpdateResourceInputType = {\n active: Scalars['Boolean']['input'];\n resourceId: Scalars['ID']['input'];\n resourceType: ResourceTypeEnum;\n};\n\n/** Admin update resource type */\nexport type AdminUpdateResourceType = {\n active: Scalars['Boolean']['output'];\n resourceId: Scalars['ID']['output'];\n resourceType: ResourceTypeEnum;\n};\n\nexport type AdminUpdateResourceTypeResponse = {\n data?: Maybe<AdminUpdateResourceType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type AffiliateBankAccountDetailsInputType = {\n accountHolderName: Scalars['String']['input'];\n accountNumber: Scalars['String']['input'];\n};\n\n/** Affiliate bank account details type */\nexport type AffiliateBankAccountDetailsType = {\n accountHolderName: Scalars['String']['output'];\n accountNumber: Scalars['String']['output'];\n};\n\nexport type AffiliateContactDetailsInputType = {\n mobilePhone: Scalars['String']['input'];\n};\n\n/** Affiliate contact details type */\nexport type AffiliateContactDetailsType = {\n mobilePhone: Scalars['String']['output'];\n};\n\nexport type AffiliateDetailsInputType = {\n bankAccountDetails: AffiliateBankAccountDetailsInputType;\n contactDetails: AffiliateContactDetailsInputType;\n irdNumber: Scalars['String']['input'];\n location: LocationInputType;\n participantType: AffiliateParticipantTypeEnum;\n socialMedia?: InputMaybe<Array<InputMaybe<SocialMediaInputType>>>;\n termsAgreement: TermsAgreementInputType;\n};\n\n/** Affiliate details type */\nexport type AffiliateDetailsType = {\n bankAccountDetails: AffiliateBankAccountDetailsType;\n contactDetails: AffiliateContactDetailsType;\n email: Scalars['String']['output'];\n firstName: Scalars['String']['output'];\n irdNumber: Scalars['String']['output'];\n lastName: Scalars['String']['output'];\n location: LocationType;\n participantType: AffiliateParticipantTypeEnum;\n socialMedia?: Maybe<Array<SocialMediaType>>;\n termsAgreement: TermsAgreementType;\n};\n\n/** Affiliate participant type enum */\nexport enum AffiliateParticipantTypeEnum {\n Company = 'COMPANY',\n Individual = 'INDIVIDUAL',\n SoleTrader = 'SOLE_TRADER'\n}\n\n/** Affiliate resource type */\nexport type AffiliateResourceType = {\n resourceActive: Scalars['Boolean']['output'];\n resourceDeletedAt?: Maybe<Scalars['Date']['output']>;\n resourceId: Scalars['ID']['output'];\n resourceName: Scalars['String']['output'];\n resourceOwner: OwnerType;\n resourceType: ResourceTypeEnum;\n rewards: Array<AffiliateRewardType>;\n};\n\n/** Affiliate reward type enum */\nexport enum AffiliateRewardEnumType {\n ActiveEventWithVendorRegistrations = 'ACTIVE_EVENT_WITH_VENDOR_REGISTRATIONS',\n ActiveVendorBonusReward = 'ACTIVE_VENDOR_BONUS_REWARD',\n ActiveVendorProSubscription = 'ACTIVE_VENDOR_PRO_SUBSCRIPTION',\n ActiveVendorStandardSubscription = 'ACTIVE_VENDOR_STANDARD_SUBSCRIPTION',\n NewEventRegistration = 'NEW_EVENT_REGISTRATION',\n NewVendorRegistration = 'NEW_VENDOR_REGISTRATION'\n}\n\n/** Affiliate reward type */\nexport type AffiliateRewardType = {\n createdAt: Scalars['Date']['output'];\n redeemedAt?: Maybe<Scalars['Date']['output']>;\n rewardDescription: Scalars['String']['output'];\n rewardType: AffiliateRewardEnumType;\n rewardValue: Scalars['Int']['output'];\n};\n\n/** Affiliate type */\nexport type AffiliateType = {\n _id: Scalars['ID']['output'];\n active: Scalars['Boolean']['output'];\n affiliateBonusRewards: Array<AffiliateRewardType>;\n affiliateCode?: Maybe<Scalars['String']['output']>;\n affiliateDetails?: Maybe<AffiliateDetailsType>;\n affiliateResources: Array<AffiliateResourceType>;\n approvedAt?: Maybe<Scalars['Date']['output']>;\n createdAt: Scalars['Date']['output'];\n deletedAt?: Maybe<Scalars['Date']['output']>;\n overallPoints: Scalars['Int']['output'];\n owner: OwnerType;\n redeemHistory: Array<RedeemHistoryType>;\n updatedAt?: Maybe<Scalars['Date']['output']>;\n};\n\nexport type AppSettingsInputType = {\n appVersion: Scalars['String']['input'];\n isOfflineMode: Scalars['Boolean']['input'];\n minimumRedeemableAffiliatePoints: Scalars['Int']['input'];\n};\n\n/** App settings type */\nexport type AppSettingsType = {\n _id: Scalars['String']['output'];\n appVersion: Scalars['String']['output'];\n createdAt: Scalars['Date']['output'];\n isOfflineMode: Scalars['Boolean']['output'];\n key: Scalars['String']['output'];\n minimumRedeemableAffiliatePoints: Scalars['Int']['output'];\n updatedAt: Scalars['Date']['output'];\n};\n\nexport type AssignAffiliateBonusRewardResponse = {\n data?: Maybe<AffiliateType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type AssignAffiliateResourceRewardResponse = {\n data?: Maybe<AffiliateType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\n/** Auth Payload Type */\nexport type AuthPayloadType = {\n refreshToken?: Maybe<Scalars['String']['output']>;\n token: Scalars['String']['output'];\n user: UserType;\n};\n\n/** Base game input type */\nexport type BaseGameInputType = {\n dailyClue?: InputMaybe<DailyClueBaseGameInputType>;\n gameTitle: Scalars['String']['input'];\n gameType: GameTypeEnumType;\n gameTypeId: Scalars['ID']['input'];\n miniQuiz?: InputMaybe<PuzzleBaseGameInputType>;\n oddOneOut?: InputMaybe<PuzzleBaseGameInputType>;\n};\n\n/** Base game type */\nexport type BaseGameType = {\n dailyClue?: Maybe<DailyClueBaseGameType>;\n gameTitle: Scalars['String']['output'];\n gameType: GameTypeEnumType;\n gameTypeId: Scalars['ID']['output'];\n miniQuiz?: Maybe<PuzzleBaseGameType>;\n oddOneOut?: Maybe<PuzzleBaseGameType>;\n};\n\n/** Billing period enum type */\nexport enum BillingPeriodEnumType {\n MonthlyCancelAnytime = 'monthly_cancel_anytime',\n YearlyAnnualBilled = 'yearly_annual_billed',\n YearlyMonthlyBilled = 'yearly_monthly_billed'\n}\n\nexport type CancelSubscriptionResponse = {\n data?: Maybe<Scalars['String']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\n/** Category input type */\nexport type CategoryInputType = {\n id: Scalars['String']['input'];\n name: Scalars['String']['input'];\n subcategories: Array<InputMaybe<SubcategoryInputType>>;\n};\n\n/** Category type */\nexport type CategoryType = {\n id: Scalars['String']['output'];\n name: Scalars['String']['output'];\n subcategories?: Maybe<Array<SubcategoryType>>;\n};\n\n/** Message input type */\nexport type ChatMessageInputType = {\n content: Scalars['String']['input'];\n replyToMessageId?: InputMaybe<Scalars['String']['input']>;\n senderId: Scalars['String']['input'];\n};\n\n/** Chat message reaction */\nexport type ChatMessageReactionType = {\n createdAt: Scalars['Date']['output'];\n userId: Scalars['String']['output'];\n};\n\n/** Chat message reply preview */\nexport type ChatMessageReplyPreviewType = {\n contentPreview: Scalars['String']['output'];\n senderId: Scalars['String']['output'];\n senderName: Scalars['String']['output'];\n};\n\n/** Chat message seen status */\nexport type ChatMessageSeenType = {\n seenAt: Scalars['Date']['output'];\n userId: Scalars['String']['output'];\n};\n\n/** Chat message type */\nexport type ChatMessageType = {\n _id: Scalars['ID']['output'];\n content: Scalars['String']['output'];\n createdAt: Scalars['Date']['output'];\n likedBy?: Maybe<Array<Maybe<ChatMessageReactionType>>>;\n replyPreview?: Maybe<ChatMessageReplyPreviewType>;\n replyToMessageId?: Maybe<Scalars['ID']['output']>;\n seenBy?: Maybe<Array<Maybe<ChatMessageSeenType>>>;\n senderId: Scalars['String']['output'];\n updatedAt: Scalars['Date']['output'];\n};\n\n/** Participant type */\nexport type ChatParticipantType = {\n active: Scalars['Boolean']['output'];\n userAvatar?: Maybe<Scalars['String']['output']>;\n userEmail: Scalars['String']['output'];\n userId: Scalars['String']['output'];\n userName: Scalars['String']['output'];\n};\n\n/** Chat report reason enum */\nexport enum ChatReportReasonEnum {\n HarassmentOrBullying = 'Harassment_or_Bullying',\n HateSpeech = 'Hate_Speech',\n InappropriateContent = 'Inappropriate_Content',\n Other = 'Other',\n SpamOrScam = 'Spam_or_Scam',\n ViolenceOrDangerousBehavior = 'Violence_or_Dangerous_Behavior'\n}\n\n/** Chat type */\nexport type ChatType = {\n _id: Scalars['ID']['output'];\n active: Scalars['Boolean']['output'];\n chatDescription?: Maybe<Scalars['String']['output']>;\n chatName: Scalars['String']['output'];\n chatType: ChatTypeEnum;\n createdAt: Scalars['Date']['output'];\n deletedAt?: Maybe<Scalars['Date']['output']>;\n /** List of messages in the chat */\n messages?: Maybe<Array<Maybe<ChatMessageType>>>;\n /** List of participants in the chat */\n participants: Array<Maybe<ChatParticipantType>>;\n region?: Maybe<Scalars['String']['output']>;\n updatedAt: Scalars['Date']['output'];\n};\n\n/** Chat type enum */\nexport enum ChatTypeEnum {\n Group = 'group',\n Private = 'private',\n Relation = 'relation'\n}\n\n/** Stripe Checkout Session result */\nexport type CheckoutSessionResultType = {\n checkoutUrl: Scalars['String']['output'];\n sessionId: Scalars['ID']['output'];\n};\n\n/** Contact details input type */\nexport type ContactDetailsInputType = {\n email?: InputMaybe<Scalars['String']['input']>;\n landlinePhone?: InputMaybe<Scalars['String']['input']>;\n mobilePhone?: InputMaybe<Scalars['String']['input']>;\n};\n\n/** Contact details type */\nexport type ContactDetailsType = {\n email?: Maybe<Scalars['String']['output']>;\n landlinePhone?: Maybe<Scalars['String']['output']>;\n mobilePhone?: Maybe<Scalars['String']['output']>;\n};\n\n/** Contact us input type */\nexport type ContactUsInputType = {\n email: Scalars['String']['input'];\n firstName: Scalars['String']['input'];\n lastName: Scalars['String']['input'];\n message: Scalars['String']['input'];\n};\n\nexport type ContactUsResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\n/** Content data input type */\nexport type ContentDataInputType = {\n game?: InputMaybe<BaseGameInputType>;\n images?: InputMaybe<Array<InputMaybe<ResourceImageInputType>>>;\n imagesUpload?: InputMaybe<Array<InputMaybe<ResourceImageUploadInputType>>>;\n list?: InputMaybe<ListContentDataInputType>;\n textarea?: InputMaybe<TextareaContentDataInputType>;\n video?: InputMaybe<VideoContentDataInputType>;\n};\n\nexport type CrawlGoogleMarketsResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type CreateAdResponse = {\n data?: Maybe<AdType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\n/** Input for creating multiple notifications for multiple users */\nexport type CreateBulkNotificationInput = {\n data?: InputMaybe<NotificationDataTypeInput>;\n message: Scalars['String']['input'];\n title: Scalars['String']['input'];\n type?: InputMaybe<NotificationEnumType>;\n userIds: Array<Scalars['ID']['input']>;\n};\n\nexport type CreateBulkNotificationsResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type CreateCheckoutSessionResponse = {\n data?: Maybe<CheckoutSessionResultType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type CreateCustomerPortalResponse = {\n data?: Maybe<CustomerPortalResultType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type CreateEventInfoResponse = {\n data?: Maybe<EventInfoType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type CreateEventResponse = {\n data?: Maybe<EventType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type CreatePartnerResponse = {\n data?: Maybe<PartnerType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type CreatePostResponse = {\n data?: Maybe<PostType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type CreatePosterResponse = {\n data?: Maybe<PosterType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type CreatePrivateChatResponse = {\n data?: Maybe<ChatType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type CreatePushTokenResponse = {\n data?: Maybe<PushTokenType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type CreateRelationResponse = {\n data?: Maybe<RelationType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type CreateResourceActivityResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type CreateSchoolResponse = {\n data?: Maybe<SchoolType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type CreateUnregisteredVendorResponse = {\n data?: Maybe<UnregisteredVendorType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type CreateVendorInfoResponse = {\n data?: Maybe<VendorInfoType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type CreateVendorResponse = {\n data?: Maybe<VendorType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\n/** Stripe Customer Portal result */\nexport type CustomerPortalResultType = {\n portalUrl: Scalars['String']['output'];\n};\n\n/** Daily clue base game input type */\nexport type DailyClueBaseGameInputType = {\n gameDate: GameDateInputType;\n gameSolution: Scalars['String']['input'];\n};\n\nexport type DailyClueBaseGameType = {\n gameDate: GameDateType;\n gameSolution: Scalars['String']['output'];\n};\n\n/** Daily clue game data type */\nexport type DailyClueGameDataType = {\n gameFields?: Maybe<DailyClueBaseGameType>;\n lastFoundDate?: Maybe<Scalars['Date']['output']>;\n letterInfo: DailyClueLetterType;\n points: Scalars['Int']['output'];\n streak: Scalars['Int']['output'];\n};\n\n/** Daily clue letter type */\nexport type DailyClueLetterType = {\n collected?: Maybe<Array<Maybe<Scalars['String']['output']>>>;\n solutionShuffled: Array<Maybe<Scalars['String']['output']>>;\n todaysClue?: Maybe<Scalars['String']['output']>;\n todaysLetter?: Maybe<Scalars['String']['output']>;\n todaysPlacement?: Maybe<Scalars['String']['output']>;\n};\n\n/** Date time input type */\nexport type DateTimeInputType = {\n dateStatus: EventDateStatusEnumType;\n endDate: Scalars['String']['input'];\n endTime: Scalars['String']['input'];\n startDate: Scalars['String']['input'];\n startTime: Scalars['String']['input'];\n};\n\n/** Date time type */\nexport type DateTimeType = {\n dateStatus: EventDateStatusEnumType;\n endDate: Scalars['String']['output'];\n endTime: Scalars['String']['output'];\n startDate: Scalars['String']['output'];\n startTime: Scalars['String']['output'];\n};\n\n/** Date time with price input type */\nexport type DateTimeWithPriceInputType = {\n dateStatus: EventDateStatusEnumType;\n endDate: Scalars['String']['input'];\n endTime: Scalars['String']['input'];\n stallTypes?: InputMaybe<Array<InputMaybe<StallTypeInputType>>>;\n startDate: Scalars['String']['input'];\n startTime: Scalars['String']['input'];\n};\n\nexport type DeleteAdResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type DeleteAffiliateResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type DeleteAllNotificationsResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type DeleteChatResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type DeleteEventResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type DeleteNotificationResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type DeletePartnerResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type DeletePostResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type DeleteRelationResponse = {\n data?: Maybe<RelationType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type DeleteSchoolResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type DeleteUnregisteredVendorResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type DeleteUserResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type DeleteVendorResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\n/** Depth width type */\nexport type DepthWidthType = {\n depth: Scalars['String']['output'];\n width: Scalars['String']['output'];\n};\n\n/** Event date status enum type */\nexport enum EventDateStatusEnumType {\n Canceled = 'Canceled',\n Ended = 'Ended',\n Invalid = 'Invalid',\n NextWeek = 'Next_Week',\n Rescheduled = 'Rescheduled',\n Started = 'Started',\n StartingSoon = 'Starting_Soon',\n ThisWeek = 'This_Week',\n Today = 'Today',\n Tomorrow = 'Tomorrow',\n Upcoming = 'Upcoming'\n}\n\n/** Event Date time with price type */\nexport type EventDateTimeWithPriceType = {\n dateStatus: EventDateStatusEnumType;\n endDate: Scalars['String']['output'];\n endTime: Scalars['String']['output'];\n stallTypes: Array<StallTypeType>;\n startDate: Scalars['String']['output'];\n startTime: Scalars['String']['output'];\n};\n\n/** Event type enum */\nexport enum EventEnumType {\n Expo = 'Expo',\n Fair = 'Fair',\n Festival = 'Festival',\n Market = 'Market'\n}\n\n/** Event info input type */\nexport type EventInfoInputType = {\n applicationDeadlineHours: Scalars['Float']['input'];\n dateTime: Array<InputMaybe<DateTimeWithPriceInputType>>;\n eventId: Scalars['ID']['input'];\n packInTime: Scalars['Float']['input'];\n paymentDueHours: Scalars['Float']['input'];\n paymentInfo: Array<InputMaybe<PaymentInfoInputType>>;\n refundPolicy: Array<InputMaybe<RefundPolicyInputType>>;\n requirements?: InputMaybe<Array<InputMaybe<RequirementInputType>>>;\n};\n\n/** Event info type */\nexport type EventInfoType = {\n _id: Scalars['ID']['output'];\n active: Scalars['Boolean']['output'];\n applicationDeadlineHours: Scalars['Float']['output'];\n dateTime: Array<EventDateTimeWithPriceType>;\n eventId: Scalars['ID']['output'];\n packInTime: Scalars['Float']['output'];\n paymentDueHours: Scalars['Float']['output'];\n paymentInfo: Array<PaymentInfoType>;\n refundPolicy: Array<RefundPolicyType>;\n requirements?: Maybe<Array<RequirementType>>;\n};\n\n/** Event input type */\nexport type EventInputType = {\n active: Scalars['Boolean']['input'];\n claimed?: InputMaybe<Scalars['Boolean']['input']>;\n contactDetails?: InputMaybe<ContactDetailsInputType>;\n cover: ResourceImageInputType;\n coverUpload?: InputMaybe<ResourceImageUploadInputType>;\n dateTime: Array<InputMaybe<DateTimeInputType>>;\n description: Scalars['String']['input'];\n eventType: EventEnumType;\n googlePlaceId?: InputMaybe<Scalars['String']['input']>;\n images?: InputMaybe<Array<InputMaybe<ResourceImageInputType>>>;\n imagesUpload?: InputMaybe<Array<InputMaybe<ResourceImageUploadInputType>>>;\n location: LocationInputType;\n logo?: InputMaybe<ResourceImageInputType>;\n logoUpload?: InputMaybe<ResourceImageUploadInputType>;\n name: Scalars['String']['input'];\n nzbn: Scalars['String']['input'];\n promoCodes?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;\n provider?: InputMaybe<Scalars['String']['input']>;\n rainOrShine: Scalars['Boolean']['input'];\n region: Scalars['String']['input'];\n socialMedia?: InputMaybe<Array<InputMaybe<SocialMediaInputType>>>;\n tags: Array<InputMaybe<Scalars['String']['input']>>;\n termsAgreement: TermsAgreementInputType;\n};\n\n/** Event list item type */\nexport type EventListItemType = {\n _id: Scalars['ID']['output'];\n active: Scalars['Boolean']['output'];\n approvedAt?: Maybe<Scalars['Date']['output']>;\n claimed: Scalars['Boolean']['output'];\n cover?: Maybe<ResourceImageType>;\n createdAt: Scalars['Date']['output'];\n dateTime: Array<DateTimeType>;\n deletedAt?: Maybe<Scalars['Date']['output']>;\n description?: Maybe<Scalars['String']['output']>;\n eventType: EventEnumType;\n googlePlaceId?: Maybe<Scalars['String']['output']>;\n images?: Maybe<Array<ResourceImageType>>;\n location: LocationType;\n logo?: Maybe<ResourceImageType>;\n name: Scalars['String']['output'];\n rainOrShine: Scalars['Boolean']['output'];\n rating?: Maybe<Scalars['Float']['output']>;\n region: Scalars['String']['output'];\n relations?: Maybe<Array<ResourceRelationType>>;\n reviewCount?: Maybe<Scalars['Int']['output']>;\n slug: Scalars['String']['output'];\n updatedAt: Scalars['Date']['output'];\n};\n\n/** Reference to an event with ID and start date */\nexport type EventReferenceType = {\n dateTime: DateTimeType;\n resourceId: Scalars['ID']['output'];\n};\n\n/** Event type */\nexport type EventType = {\n _id: Scalars['ID']['output'];\n active: Scalars['Boolean']['output'];\n adIds?: Maybe<Array<Maybe<Scalars['ID']['output']>>>;\n approvedAt?: Maybe<Scalars['Date']['output']>;\n claimed: Scalars['Boolean']['output'];\n contactDetails?: Maybe<ContactDetailsType>;\n cover: ResourceImageType;\n createdAt: Scalars['Date']['output'];\n dateTime: Array<DateTimeType>;\n deletedAt?: Maybe<Scalars['Date']['output']>;\n description: Scalars['String']['output'];\n eventInfoId?: Maybe<Scalars['ID']['output']>;\n eventType: EventEnumType;\n googlePlaceId?: Maybe<Scalars['String']['output']>;\n images?: Maybe<Array<ResourceImageType>>;\n location: LocationType;\n logo?: Maybe<ResourceImageType>;\n name: Scalars['String']['output'];\n nzbn: Scalars['String']['output'];\n owner: OwnerType;\n posterUsage?: Maybe<PosterUsageType>;\n promoCodes?: Maybe<Array<Scalars['String']['output']>>;\n provider?: Maybe<Scalars['String']['output']>;\n rainOrShine: Scalars['Boolean']['output'];\n rating?: Maybe<Scalars['Float']['output']>;\n region: Scalars['String']['output'];\n relatedPost?: Maybe<RelatedPostType>;\n relations?: Maybe<Array<ResourceRelationType>>;\n reviewCount?: Maybe<Scalars['Int']['output']>;\n sharePublic?: Maybe<SocialShareResourceType>;\n shareRelation?: Maybe<SocialShareResourceType>;\n slug: Scalars['String']['output'];\n socialMedia?: Maybe<Array<SocialMediaType>>;\n tags: Array<Scalars['String']['output']>;\n termsAgreement?: Maybe<TermsAgreementType>;\n updatedAt: Scalars['Date']['output'];\n};\n\n/** Food flavor enum */\nexport enum FoodFlavorEnumType {\n NotApplicable = 'Not_Applicable',\n Salty = 'Salty',\n Savoury = 'Savoury',\n Spicy = 'Spicy',\n Sweet = 'Sweet'\n}\n\n/** Game data type */\nexport type GameDataType = {\n dailyClue?: Maybe<DailyClueGameDataType>;\n miniQuiz?: Maybe<PuzzleGameDataType>;\n oddOneOut?: Maybe<PuzzleGameDataType>;\n};\n\nexport type GameDateInputType = {\n endDate: Scalars['Date']['input'];\n startDate: Scalars['Date']['input'];\n};\n\nexport type GameDateType = {\n endDate: Scalars['Date']['output'];\n startDate: Scalars['Date']['output'];\n};\n\n/** Game document type */\nexport type GameDocType = {\n _id: Scalars['ID']['output'];\n active: Scalars['Boolean']['output'];\n createdAt: Scalars['Date']['output'];\n deletedAt?: Maybe<Scalars['Date']['output']>;\n games?: Maybe<Array<Maybe<GameType>>>;\n owner: OwnerType;\n points: Scalars['Int']['output'];\n updatedAt: Scalars['Date']['output'];\n};\n\n/** Game history type */\nexport type GameHistoryType = {\n createdAt: Scalars['Date']['output'];\n gameDate: GameDateType;\n gameStatus: GameStatusEnumType;\n gameTitle: Scalars['String']['output'];\n gameType: GameTypeEnumType;\n gameTypeId: Scalars['String']['output'];\n overallGamePoints: Scalars['Int']['output'];\n pointsEarned: Scalars['Int']['output'];\n};\n\n/** Game leaderboard type */\nexport type GameLeaderboardType = {\n gameHistory?: Maybe<Array<Maybe<GameHistoryType>>>;\n overallPoints: Scalars['Int']['output'];\n owner: OwnerType;\n};\n\n/** Game status enum */\nexport enum GameStatusEnumType {\n GameCompleted = 'GAME_COMPLETED',\n GameInProgress = 'GAME_IN_PROGRESS',\n GameLeft = 'GAME_LEFT',\n GameStarted = 'GAME_STARTED'\n}\n\n/** Game entry type */\nexport type GameType = {\n _id: Scalars['ID']['output'];\n active: Scalars['Boolean']['output'];\n createdAt: Scalars['Date']['output'];\n gameData?: Maybe<GameDataType>;\n gameHistory?: Maybe<Array<Maybe<GameHistoryType>>>;\n gameTitle: Scalars['String']['output'];\n gameType: GameTypeEnumType;\n gameTypeId: Scalars['ID']['output'];\n updatedAt: Scalars['Date']['output'];\n};\n\n/** Game type enum */\nexport enum GameTypeEnumType {\n DailyClue = 'dailyClue',\n MiniQuiz = 'miniQuiz',\n OddOneOut = 'oddOneOut'\n}\n\n/** Invite enum */\nexport enum InviteEnumType {\n Accepted = 'Accepted',\n Completed = 'Completed',\n Expired = 'Expired',\n NoStatus = 'No_Status',\n Pending = 'Pending',\n Rejected = 'Rejected',\n Unavailable = 'Unavailable'\n}\n\nexport type LastUpdateByInputType = {\n resourceId: Scalars['String']['input'];\n userEmail: Scalars['String']['input'];\n};\n\nexport type LastUpdateByType = {\n resourceId?: Maybe<Scalars['String']['output']>;\n userEmail?: Maybe<Scalars['String']['output']>;\n};\n\nexport type LeaveGameResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\n/** Licences enum */\nexport enum LicencesEnumType {\n ProEvent = 'pro_event',\n ProPlusEvent = 'pro_plus_event',\n ProPlusVendor = 'pro_plus_vendor',\n ProVendor = 'pro_vendor',\n StandardAffiliate = 'standard_affiliate',\n StandardEvent = 'standard_event',\n StandardPartner = 'standard_partner',\n StandardSchool = 'standard_school',\n StandardVendor = 'standard_vendor'\n}\n\n/** List content data input type */\nexport type ListContentDataInputType = {\n items: Array<InputMaybe<ListItemInputType>>;\n title?: InputMaybe<Scalars['String']['input']>;\n};\n\n/** List content data type */\nexport type ListContentDataType = {\n items: Array<Maybe<ListItemType>>;\n title?: Maybe<Scalars['String']['output']>;\n};\n\n/** List item input type */\nexport type ListItemInputType = {\n text: Scalars['String']['input'];\n};\n\n/** List item type */\nexport type ListItemType = {\n text: Scalars['String']['output'];\n};\n\n/** Location geo input type */\nexport type LocationGeoInputType = {\n coordinates: Array<Scalars['Float']['input']>;\n type?: Scalars['String']['input'];\n};\n\n/** Location geo type */\nexport type LocationGeoType = {\n coordinates: Array<Scalars['Float']['output']>;\n type: Scalars['String']['output'];\n};\n\n/** Location input type */\nexport type LocationInputType = {\n city: Scalars['String']['input'];\n country: Scalars['String']['input'];\n fullAddress: Scalars['String']['input'];\n geo: LocationGeoInputType;\n latitude: Scalars['Float']['input'];\n longitude: Scalars['Float']['input'];\n region: Scalars['String']['input'];\n};\n\n/** Location type */\nexport type LocationType = {\n city: Scalars['String']['output'];\n country: Scalars['String']['output'];\n fullAddress: Scalars['String']['output'];\n geo: LocationGeoType;\n latitude: Scalars['Float']['output'];\n longitude: Scalars['Float']['output'];\n region: Scalars['String']['output'];\n};\n\n/** Login input type */\nexport type LoginInputType = {\n email: Scalars['String']['input'];\n isAdminPage?: InputMaybe<Scalars['Boolean']['input']>;\n password: Scalars['String']['input'];\n platform?: InputMaybe<OsPlatformEnumType>;\n};\n\nexport type LoginResponse = {\n data?: Maybe<AuthPayloadType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type LogoutResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type MarkAllNotificationsReadResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type MarkChatMessagesSeenResponse = {\n data?: Maybe<ChatType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type MarkNotificationReadResponse = {\n data?: Maybe<Notification>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\n/** Marketing material request input type */\nexport type MarketingMaterialRequestInputType = {\n posterName: Scalars['PosterAssetId']['input'];\n resourceId: Scalars['String']['input'];\n};\n\nexport type MarketingMaterialRequestResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\n/** Max min type */\nexport type MaxMinType = {\n max: Scalars['String']['output'];\n min: Scalars['String']['output'];\n};\n\nexport type Mutation = {\n /** Add participant to an existing chat */\n addParticipantToChat?: Maybe<AddParticipantToChatResponse>;\n /** Add a user favourite resource */\n addUserFavouriteResource?: Maybe<AddUserFavouriteResourceResponse>;\n /** Add a user going resource */\n addUserGoingResource?: Maybe<AddUserGoingResourceResponse>;\n /** Add a user interest resource */\n addUserInterestResource?: Maybe<AddUserInterestResourceResponse>;\n /** Add a user present resource */\n addUserPresentResource?: Maybe<AddUserPresentResourceResponse>;\n /** Permanently delete a resource */\n adminPermanentlyDeleteResource?: Maybe<AdminPermanentlyDeleteResourceResponse>;\n /** Resend user verification email */\n adminResendUserVerificationEmail?: Maybe<AdminResendUserVerificationEmailResponse>;\n /** Admin update resource type */\n adminUpdateResourceType?: Maybe<AdminUpdateResourceTypeResponse>;\n /** Assign a bonus reward to an affiliate (super admin) */\n assignAffiliateBonusReward?: Maybe<AssignAffiliateBonusRewardResponse>;\n /** Assign a reward to an existing affiliate resource (super admin) */\n assignAffiliateResourceReward?: Maybe<AssignAffiliateResourceRewardResponse>;\n /** Cancel the current user's subscription */\n cancelSubscription?: Maybe<CancelSubscriptionResponse>;\n /** Send a message through the contact us form */\n contactUs?: Maybe<ContactUsResponse>;\n /** Crawl Markets from Google */\n crawlGoogleMarkets?: Maybe<CrawlGoogleMarketsResponse>;\n /** Create a new ad */\n createAd?: Maybe<CreateAdResponse>;\n /** Creates multiple notifications */\n createBulkNotifications?: Maybe<CreateBulkNotificationsResponse>;\n /** Create a Stripe checkout session for subscription. Monthly available for Standard/Pro only. Yearly available for Standard/Pro/ProPlus. Defaults to monthly cancel-anytime if not specified. */\n createCheckoutSession?: Maybe<CreateCheckoutSessionResponse>;\n /** Create a Stripe Customer Portal session. Allows customers to manage their subscription, payment methods, and billing history. */\n createCustomerPortal?: Maybe<CreateCustomerPortalResponse>;\n /** Create a new event */\n createEvent?: Maybe<CreateEventResponse>;\n /** Create a new event info */\n createEventInfo?: Maybe<CreateEventInfoResponse>;\n /** Create a new partner */\n createPartner?: Maybe<CreatePartnerResponse>;\n /** Create a new post */\n createPost?: Maybe<CreatePostResponse>;\n /** Create a poster for a event or vendor */\n createPoster?: Maybe<CreatePosterResponse>;\n /** Create a private chat with another user */\n createPrivateChat?: Maybe<CreatePrivateChatResponse>;\n /** Create a push token for push notifications */\n createPushToken?: Maybe<CreatePushTokenResponse>;\n /** Create relation */\n createRelation?: Maybe<CreateRelationResponse>;\n /** Create or update resource activity */\n createResourceActivity?: Maybe<CreateResourceActivityResponse>;\n /** Create a new school */\n createSchool?: Maybe<CreateSchoolResponse>;\n /** Create a new unregistered vendor */\n createUnregisteredVendor?: Maybe<CreateUnregisteredVendorResponse>;\n /** Create a new vendor */\n createVendor?: Maybe<CreateVendorResponse>;\n /** Create a new vendor info */\n createVendorInfo?: Maybe<CreateVendorInfoResponse>;\n /** Delete an ad */\n deleteAd?: Maybe<DeleteAdResponse>;\n /** Delete an affiliate */\n deleteAffiliate?: Maybe<DeleteAffiliateResponse>;\n /** Deletes all notifications */\n deleteAllNotifications?: Maybe<DeleteAllNotificationsResponse>;\n /** Delete a chat by ID */\n deleteChat?: Maybe<DeleteChatResponse>;\n /** Delete an event */\n deleteEvent?: Maybe<DeleteEventResponse>;\n /** Deletes a notification */\n deleteNotification?: Maybe<DeleteNotificationResponse>;\n /** Delete a partner */\n deletePartner?: Maybe<DeletePartnerResponse>;\n /** Delete a post */\n deletePost?: Maybe<DeletePostResponse>;\n /** Delete relation */\n deleteRelation?: Maybe<DeleteRelationResponse>;\n /** Delete a school */\n deleteSchool?: Maybe<DeleteSchoolResponse>;\n /** Delete an unregistered vendor */\n deleteUnregisteredVendor?: Maybe<DeleteUnregisteredVendorResponse>;\n /** Delete a user */\n deleteUser?: Maybe<DeleteUserResponse>;\n /** Delete a vendor */\n deleteVendor?: Maybe<DeleteVendorResponse>;\n /** Leave an active game */\n leaveGame?: Maybe<LeaveGameResponse>;\n /** Login mutation */\n login?: Maybe<LoginResponse>;\n /** Logout mutation */\n logout?: Maybe<LogoutResponse>;\n /** Marks all notifications as read */\n markAllNotificationsRead?: Maybe<MarkAllNotificationsReadResponse>;\n /** Mark messages as seen */\n markChatMessagesSeen?: Maybe<MarkChatMessagesSeenResponse>;\n /** Marks a notification as read */\n markNotificationRead?: Maybe<MarkNotificationReadResponse>;\n /** Redeem available affiliate reward points */\n redeemAffiliateReward?: Maybe<RedeemAffiliateRewardResponse>;\n /** Redeem a reward */\n redeemReward?: Maybe<RedeemRewardResponse>;\n /** Refresh token mutation */\n refreshToken?: Maybe<RefreshTokenResponse>;\n /** Register mutation */\n register?: Maybe<RegisterResponse>;\n /** Remove a participant from a chat */\n removeParticipantFromChat?: Maybe<RemoveParticipantFromChatResponse>;\n /** Remove a user favourite resource */\n removeUserFavouriteResource?: Maybe<RemoveUserFavouriteResourceResponse>;\n /** Remove a user going resource */\n removeUserGoingResource?: Maybe<RemoveUserGoingResourceResponse>;\n /** Remove a user interest resource */\n removeUserInterestResource?: Maybe<RemoveUserInterestResourceResponse>;\n /** Remove a user present resource */\n removeUserPresentResource?: Maybe<RemoveUserPresentResourceResponse>;\n /** Report a user in a chat */\n reportChatUser?: Maybe<ReportChatUserResponse>;\n /** Request marketing material for a school */\n requestMarketingMaterial?: Maybe<MarketingMaterialRequestResponse>;\n /** Request password reset mutation */\n requestPasswordReset?: Maybe<RequestPasswordResetResponse>;\n /** Reset password mutation */\n resetPassword?: Maybe<ResetPasswordResponse>;\n /** Select a standard package for a user (local licence) */\n selectStandardPackage?: Maybe<SelectStandardPackageResponse>;\n /** Send a message in a chat */\n sendChatMessage?: Maybe<SendChatMessageResponse>;\n /** Start a new game */\n startGame?: Maybe<StartGameResponse>;\n /** Toggle a message like */\n toggleChatMessageLike?: Maybe<ToggleChatMessageLikeResponse>;\n /** Unlink an unregistered vendor from an inviter by removing the corresponding invitation */\n unlinkUnregisteredVendorByInviterId?: Maybe<UnlinkUnregisteredVendorByInviterIdResponse>;\n /** Update an ad */\n updateAd?: Maybe<UpdateAdResponse>;\n /** Update affiliate profile details */\n updateAffiliateDetails?: Maybe<UpdateAffiliateDetailsResponse>;\n /** Update application settings */\n updateAppSettings?: Maybe<UpdateAppSettingsResponse>;\n /** Update the daily clue game with a found letter */\n updateDailyClueGame?: Maybe<UpdateDailyClueGameResponse>;\n /** Update an event */\n updateEvent?: Maybe<UpdateEventResponse>;\n /** Update event info */\n updateEventInfo?: Maybe<UpdateEventInfoResponse>;\n /** Update Google imported markets */\n updateGoogleImportedMarkets?: Maybe<UpdateGoogleImportedMarketsResponse>;\n /** Update a partner */\n updatePartner?: Maybe<UpdatePartnerResponse>;\n /** Update a post */\n updatePost?: Maybe<UpdatePostResponse>;\n /** Update the puzzle game with answered questions */\n updatePuzzleGame?: Maybe<UpdatePuzzleGameResponse>;\n /** Update status for relation */\n updateRelation?: Maybe<UpdateRelationResponse>;\n /** Update a school */\n updateSchool?: Maybe<UpdateSchoolResponse>;\n /** Update user subscription to a different plan and/or billing period. Monthly available for Standard/Pro only. Yearly available for Standard/Pro/ProPlus. Defaults to monthly cancel-anytime if not specified. */\n updateSubscriptionPlan?: Maybe<UpdateSubscriptionPlanResponse>;\n /** Update an unregistered vendor */\n updateUnregisteredVendor?: Maybe<UpdateUnregisteredVendorResponse>;\n /** Update a user */\n updateUser?: Maybe<UpdateUserResponse>;\n /** Update a vendor */\n updateVendor?: Maybe<UpdateVendorResponse>;\n /** Update a vendor info */\n updateVendorInfo?: Maybe<UpdateVendorInfoResponse>;\n /** Validate verification token mutation */\n validateVerificationToken?: Maybe<ValidateVerificationTokenResponse>;\n};\n\n\nexport type MutationAddParticipantToChatArgs = {\n chatId: Scalars['ID']['input'];\n userId: Scalars['ID']['input'];\n};\n\n\nexport type MutationAddUserFavouriteResourceArgs = {\n resourceId: Scalars['ID']['input'];\n resourceType: ResourceTypeEnum;\n};\n\n\nexport type MutationAddUserGoingResourceArgs = {\n input: UserActivityInputType;\n};\n\n\nexport type MutationAddUserInterestResourceArgs = {\n input: UserActivityInputType;\n};\n\n\nexport type MutationAddUserPresentResourceArgs = {\n input: UserActivityInputType;\n};\n\n\nexport type MutationAdminPermanentlyDeleteResourceArgs = {\n resourceId: Scalars['ID']['input'];\n resourceType: ResourceTypeEnum;\n};\n\n\nexport type MutationAdminResendUserVerificationEmailArgs = {\n userId: Scalars['ID']['input'];\n};\n\n\nexport type MutationAdminUpdateResourceTypeArgs = {\n input: AdminUpdateResourceInputType;\n};\n\n\nexport type MutationAssignAffiliateBonusRewardArgs = {\n affiliateId: Scalars['ID']['input'];\n rewardType: AffiliateRewardEnumType;\n};\n\n\nexport type MutationAssignAffiliateResourceRewardArgs = {\n affiliateId: Scalars['ID']['input'];\n resourceId: Scalars['ID']['input'];\n resourceType: ResourceTypeEnum;\n rewardType: AffiliateRewardEnumType;\n};\n\n\nexport type MutationContactUsArgs = {\n input: ContactUsInputType;\n};\n\n\nexport type MutationCreateAdArgs = {\n input: AdInputType;\n};\n\n\nexport type MutationCreateBulkNotificationsArgs = {\n input: CreateBulkNotificationInput;\n};\n\n\nexport type MutationCreateCheckoutSessionArgs = {\n billingPeriod?: InputMaybe<BillingPeriodEnumType>;\n planId: LicencesEnumType;\n};\n\n\nexport type MutationCreateCustomerPortalArgs = {\n returnUrl?: InputMaybe<Scalars['String']['input']>;\n};\n\n\nexport type MutationCreateEventArgs = {\n input: EventInputType;\n};\n\n\nexport type MutationCreateEventInfoArgs = {\n input: EventInfoInputType;\n};\n\n\nexport type MutationCreatePartnerArgs = {\n input: PartnerInputType;\n};\n\n\nexport type MutationCreatePostArgs = {\n input: PostInputType;\n};\n\n\nexport type MutationCreatePosterArgs = {\n input: PosterInputType;\n};\n\n\nexport type MutationCreatePrivateChatArgs = {\n userId: Scalars['ID']['input'];\n};\n\n\nexport type MutationCreatePushTokenArgs = {\n input: PushTokenInput;\n};\n\n\nexport type MutationCreateRelationArgs = {\n input: RelationInputType;\n};\n\n\nexport type MutationCreateResourceActivityArgs = {\n input: ResourceActivityInputType;\n};\n\n\nexport type MutationCreateSchoolArgs = {\n input: SchoolInputType;\n};\n\n\nexport type MutationCreateUnregisteredVendorArgs = {\n input: UnregisteredVendorInputType;\n};\n\n\nexport type MutationCreateVendorArgs = {\n input: VendorInputType;\n};\n\n\nexport type MutationCreateVendorInfoArgs = {\n input: VendorInfoInputType;\n};\n\n\nexport type MutationDeleteAdArgs = {\n _id: Scalars['ID']['input'];\n};\n\n\nexport type MutationDeleteAffiliateArgs = {\n _id: Scalars['ID']['input'];\n};\n\n\nexport type MutationDeleteChatArgs = {\n _id: Scalars['ID']['input'];\n};\n\n\nexport type MutationDeleteEventArgs = {\n _id: Scalars['ID']['input'];\n};\n\n\nexport type MutationDeleteNotificationArgs = {\n _id: Scalars['ID']['input'];\n};\n\n\nexport type MutationDeletePartnerArgs = {\n _id: Scalars['ID']['input'];\n};\n\n\nexport type MutationDeletePostArgs = {\n _id: Scalars['ID']['input'];\n};\n\n\nexport type MutationDeleteRelationArgs = {\n _id: Scalars['ID']['input'];\n};\n\n\nexport type MutationDeleteSchoolArgs = {\n _id: Scalars['ID']['input'];\n};\n\n\nexport type MutationDeleteUnregisteredVendorArgs = {\n _id: Scalars['ID']['input'];\n};\n\n\nexport type MutationDeleteUserArgs = {\n email: Scalars['String']['input'];\n};\n\n\nexport type MutationDeleteVendorArgs = {\n _id: Scalars['ID']['input'];\n};\n\n\nexport type MutationLeaveGameArgs = {\n _id: Scalars['ID']['input'];\n gameType: GameTypeEnumType;\n gameTypeId: Scalars['String']['input'];\n};\n\n\nexport type MutationLoginArgs = {\n input: LoginInputType;\n};\n\n\nexport type MutationMarkChatMessagesSeenArgs = {\n chatId: Scalars['ID']['input'];\n messageIds: Array<InputMaybe<Scalars['ID']['input']>>;\n};\n\n\nexport type MutationMarkNotificationReadArgs = {\n _id: Scalars['ID']['input'];\n};\n\n\nexport type MutationRedeemAffiliateRewardArgs = {\n affiliateId: Scalars['ID']['input'];\n};\n\n\nexport type MutationRedeemRewardArgs = {\n input: RedeemRewardInputType;\n};\n\n\nexport type MutationRefreshTokenArgs = {\n input: RefreshTokenInputType;\n};\n\n\nexport type MutationRegisterArgs = {\n input: RegisterInputType;\n};\n\n\nexport type MutationRemoveParticipantFromChatArgs = {\n chatId: Scalars['ID']['input'];\n userId: Scalars['ID']['input'];\n};\n\n\nexport type MutationRemoveUserFavouriteResourceArgs = {\n resourceId: Scalars['ID']['input'];\n resourceType: ResourceTypeEnum;\n};\n\n\nexport type MutationRemoveUserGoingResourceArgs = {\n input: UserActivityInputType;\n};\n\n\nexport type MutationRemoveUserInterestResourceArgs = {\n input: UserActivityInputType;\n};\n\n\nexport type MutationRemoveUserPresentResourceArgs = {\n input: UserActivityInputType;\n};\n\n\nexport type MutationReportChatUserArgs = {\n input: ReportChatUserInputType;\n};\n\n\nexport type MutationRequestMarketingMaterialArgs = {\n input: MarketingMaterialRequestInputType;\n};\n\n\nexport type MutationRequestPasswordResetArgs = {\n input: RequestPasswordResetInputType;\n};\n\n\nexport type MutationResetPasswordArgs = {\n input: ResetPasswordInputType;\n};\n\n\nexport type MutationSelectStandardPackageArgs = {\n selectedLicence: LicencesEnumType;\n};\n\n\nexport type MutationSendChatMessageArgs = {\n _id: Scalars['ID']['input'];\n input: ChatMessageInputType;\n};\n\n\nexport type MutationStartGameArgs = {\n input: BaseGameInputType;\n};\n\n\nexport type MutationToggleChatMessageLikeArgs = {\n chatId: Scalars['ID']['input'];\n messageId: Scalars['ID']['input'];\n};\n\n\nexport type MutationUnlinkUnregisteredVendorByInviterIdArgs = {\n _id: Scalars['ID']['input'];\n inviterId: Scalars['ID']['input'];\n};\n\n\nexport type MutationUpdateAdArgs = {\n _id: Scalars['ID']['input'];\n input: AdInputType;\n};\n\n\nexport type MutationUpdateAffiliateDetailsArgs = {\n affiliateId: Scalars['ID']['input'];\n input: AffiliateDetailsInputType;\n};\n\n\nexport type MutationUpdateAppSettingsArgs = {\n input: AppSettingsInputType;\n};\n\n\nexport type MutationUpdateDailyClueGameArgs = {\n _id: Scalars['ID']['input'];\n foundLetter: Scalars['String']['input'];\n gameType: GameTypeEnumType;\n gameTypeId: Scalars['String']['input'];\n};\n\n\nexport type MutationUpdateEventArgs = {\n _id: Scalars['ID']['input'];\n input: EventInputType;\n};\n\n\nexport type MutationUpdateEventInfoArgs = {\n _id: Scalars['ID']['input'];\n input: EventInfoInputType;\n};\n\n\nexport type MutationUpdatePartnerArgs = {\n _id: Scalars['ID']['input'];\n input: PartnerInputType;\n};\n\n\nexport type MutationUpdatePostArgs = {\n _id: Scalars['ID']['input'];\n input: PostInputType;\n};\n\n\nexport type MutationUpdatePuzzleGameArgs = {\n _id: Scalars['ID']['input'];\n answeredQuestions: Array<PuzzleAnsweredQuestionInputType>;\n gameType: GameTypeEnumType;\n gameTypeId: Scalars['String']['input'];\n};\n\n\nexport type MutationUpdateRelationArgs = {\n _id: Scalars['ID']['input'];\n input: RelationInputType;\n};\n\n\nexport type MutationUpdateSchoolArgs = {\n _id: Scalars['ID']['input'];\n input: SchoolInputType;\n};\n\n\nexport type MutationUpdateSubscriptionPlanArgs = {\n billingPeriod?: InputMaybe<BillingPeriodEnumType>;\n newPlanId: LicencesEnumType;\n};\n\n\nexport type MutationUpdateUnregisteredVendorArgs = {\n _id: Scalars['ID']['input'];\n input: UnregisteredVendorInputType;\n};\n\n\nexport type MutationUpdateUserArgs = {\n _id: Scalars['ID']['input'];\n input: UserInputType;\n};\n\n\nexport type MutationUpdateVendorArgs = {\n _id: Scalars['ID']['input'];\n input: VendorInputType;\n};\n\n\nexport type MutationUpdateVendorInfoArgs = {\n _id: Scalars['ID']['input'];\n input: VendorInfoInputType;\n};\n\n\nexport type MutationValidateVerificationTokenArgs = {\n input: ValidateVerificationTokenInputType;\n};\n\n/** A notification object */\nexport type Notification = {\n _id: Scalars['ID']['output'];\n createdAt?: Maybe<Scalars['Date']['output']>;\n data?: Maybe<NotificationDataType>;\n isRead?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n title?: Maybe<Scalars['String']['output']>;\n type?: Maybe<NotificationEnumType>;\n updatedAt?: Maybe<Scalars['Date']['output']>;\n userId: Scalars['ID']['output'];\n};\n\n/** Notification count information */\nexport type NotificationCount = {\n total?: Maybe<Scalars['Int']['output']>;\n unread?: Maybe<Scalars['Int']['output']>;\n};\n\n/** Data related to the notification */\nexport type NotificationDataType = {\n resourceId?: Maybe<Scalars['String']['output']>;\n resourceName?: Maybe<Scalars['String']['output']>;\n resourceType?: Maybe<NotificationResourceEnumType>;\n};\n\n/** Input for notification data */\nexport type NotificationDataTypeInput = {\n resourceId?: InputMaybe<Scalars['String']['input']>;\n resourceName?: InputMaybe<Scalars['String']['input']>;\n resourceType?: InputMaybe<NotificationResourceEnumType>;\n};\n\n/** Notification enum type */\nexport enum NotificationEnumType {\n Chat = 'chat',\n Event = 'event',\n Relation = 'relation',\n System = 'system',\n Vendor = 'vendor'\n}\n\n/** Notification resource enum type */\nexport enum NotificationResourceEnumType {\n AffiliateRewardReceived = 'affiliate_reward_received',\n ApprovedAffiliate = 'approved_affiliate',\n ApprovedEvent = 'approved_event',\n ApprovedPartner = 'approved_partner',\n ApprovedSchool = 'approved_school',\n ApprovedVendor = 'approved_vendor',\n CreatedEvent = 'created_event',\n CreatedPartner = 'created_partner',\n CreatedVendor = 'created_vendor',\n DailyClueGame = 'daily_clue_game',\n DeactivatedEvent = 'deactivated_event',\n DeactivatedPartner = 'deactivated_partner',\n DeactivatedVendor = 'deactivated_vendor',\n DeclinedEvent = 'declined_event',\n DeclinedPartner = 'declined_partner',\n DeclinedVendor = 'declined_vendor',\n DowngradedEvent = 'downgraded_event',\n DowngradedPartner = 'downgraded_partner',\n DowngradedVendor = 'downgraded_vendor',\n EventInviteVendor = 'event_invite_vendor',\n EventStartingSoon = 'event_starting_soon',\n EventUpdateRelationToVendor = 'event_update_relation_to_vendor',\n ExpirationReminderEvent = 'expiration_reminder_event',\n ExpirationReminderPartner = 'expiration_reminder_partner',\n ExpirationReminderVendor = 'expiration_reminder_vendor',\n NewChatMessage = 'new_chat_message',\n NewPostCreated = 'new_post_created',\n RegisteredUserBySchoolCode = 'registered_user_by_school_code',\n SystemAlert = 'system_alert',\n VendorApplicationToEvent = 'vendor_application_to_event',\n VendorUpdateRelationToEvent = 'vendor_update_relation_to_event'\n}\n\n/** Operating system enum */\nexport enum OsPlatformEnumType {\n Android = 'android',\n Ios = 'ios',\n Web = 'web'\n}\n\n/** Owner type */\nexport type OwnerType = {\n email: Scalars['String']['output'];\n userId: Scalars['ID']['output'];\n};\n\n/** Partner type enum */\nexport enum PartnerEnumType {\n CharityPartner = 'Charity_Partner',\n MediaPartner = 'Media_Partner',\n SupportingPartner = 'Supporting_Partner'\n}\n\n/** Partner input type */\nexport type PartnerInputType = {\n active: Scalars['Boolean']['input'];\n contactDetails?: InputMaybe<ContactDetailsInputType>;\n cover: ResourceImageInputType;\n coverUpload?: InputMaybe<ResourceImageUploadInputType>;\n description: Scalars['String']['input'];\n images?: InputMaybe<Array<InputMaybe<ResourceImageInputType>>>;\n imagesUpload?: InputMaybe<Array<InputMaybe<ResourceImageUploadInputType>>>;\n location: LocationInputType;\n logo?: InputMaybe<ResourceImageInputType>;\n logoUpload?: InputMaybe<ResourceImageUploadInputType>;\n name: Scalars['String']['input'];\n nzbn: Scalars['String']['input'];\n partnerType: PartnerEnumType;\n promoCodes?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;\n region: Scalars['String']['input'];\n socialMedia?: InputMaybe<Array<InputMaybe<SocialMediaInputType>>>;\n termsAgreement: TermsAgreementInputType;\n};\n\n/** Partner type */\nexport type PartnerType = {\n _id: Scalars['ID']['output'];\n active: Scalars['Boolean']['output'];\n adIds?: Maybe<Array<Maybe<Scalars['ID']['output']>>>;\n approvedAt?: Maybe<Scalars['Date']['output']>;\n contactDetails?: Maybe<ContactDetailsType>;\n cover: ResourceImageType;\n createdAt: Scalars['Date']['output'];\n deletedAt?: Maybe<Scalars['Date']['output']>;\n description: Scalars['String']['output'];\n images?: Maybe<Array<ResourceImageType>>;\n location: LocationType;\n logo?: Maybe<ResourceImageType>;\n name: Scalars['String']['output'];\n nzbn: Scalars['String']['output'];\n owner: OwnerType;\n partnerType: PartnerEnumType;\n posterUsage?: Maybe<PosterUsageType>;\n promoCodes?: Maybe<Array<Scalars['String']['output']>>;\n rating?: Maybe<Scalars['Float']['output']>;\n region: Scalars['String']['output'];\n relatedPost?: Maybe<RelatedPostType>;\n reviewCount?: Maybe<Scalars['Int']['output']>;\n sharePublic?: Maybe<SocialShareResourceType>;\n slug: Scalars['String']['output'];\n socialMedia?: Maybe<Array<SocialMediaType>>;\n termsAgreement?: Maybe<TermsAgreementType>;\n updatedAt: Scalars['Date']['output'];\n};\n\nexport type PaymentInfoInputType = {\n accountHolderName?: InputMaybe<Scalars['String']['input']>;\n accountNumber?: InputMaybe<Scalars['String']['input']>;\n link?: InputMaybe<Scalars['String']['input']>;\n paymentMethod: PaymentMethodEnumType;\n};\n\nexport type PaymentInfoType = {\n accountHolderName?: Maybe<Scalars['String']['output']>;\n accountNumber?: Maybe<Scalars['String']['output']>;\n link?: Maybe<Scalars['String']['output']>;\n paymentMethod: PaymentMethodEnumType;\n};\n\n/** Payment method enum type */\nexport enum PaymentMethodEnumType {\n BankTransfer = 'bank_transfer',\n Cash = 'cash',\n Eftpos = 'eftpos',\n Paypal = 'paypal',\n Stripe = 'stripe'\n}\n\n/** Content data type */\nexport type PostContentData = {\n game?: Maybe<BaseGameType>;\n images?: Maybe<Array<Maybe<ResourceImageType>>>;\n list?: Maybe<ListContentDataType>;\n textarea?: Maybe<TextareaContentDataType>;\n video?: Maybe<VideoContentDataType>;\n};\n\n/** Post content enum */\nexport enum PostContentEnum {\n Game = 'game',\n Image = 'image',\n List = 'list',\n Textarea = 'textarea',\n Video = 'video'\n}\n\n/** Post content input type */\nexport type PostContentInputType = {\n contentData?: InputMaybe<ContentDataInputType>;\n contentOrder: Scalars['Float']['input'];\n contentType: PostContentEnum;\n};\n\n/** Post content type */\nexport type PostContentType = {\n contentData?: Maybe<PostContentData>;\n contentOrder: Scalars['Float']['output'];\n contentType: PostContentEnum;\n};\n\n/** Post input type */\nexport type PostInputType = {\n active: Scalars['Boolean']['input'];\n caption: Scalars['String']['input'];\n content: Array<InputMaybe<PostContentInputType>>;\n cover?: InputMaybe<ResourceImageInputType>;\n coverUpload?: InputMaybe<ResourceImageUploadInputType>;\n notifyUsers?: InputMaybe<Scalars['Boolean']['input']>;\n postType: PostTypeEnum;\n resource?: InputMaybe<PostResourceInputType>;\n tags?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;\n title: Scalars['String']['input'];\n};\n\n/** Post resource input type */\nexport type PostResourceInputType = {\n resourceId: Scalars['String']['input'];\n resourceRegion: Scalars['String']['input'];\n resourceSlug: Scalars['String']['input'];\n resourceType: ResourceTypeEnum;\n};\n\n/** Post resource type */\nexport type PostResourceType = {\n resourceId: Scalars['String']['output'];\n resourceRegion: Scalars['String']['output'];\n resourceSlug: Scalars['String']['output'];\n resourceType: ResourceTypeEnum;\n};\n\n/** Post type */\nexport type PostType = {\n _id: Scalars['ID']['output'];\n active: Scalars['Boolean']['output'];\n approvedAt?: Maybe<Scalars['Date']['output']>;\n caption: Scalars['String']['output'];\n content: Array<Maybe<PostContentType>>;\n cover?: Maybe<ResourceImageType>;\n createdAt: Scalars['Date']['output'];\n deletedAt?: Maybe<Scalars['Date']['output']>;\n postType: PostTypeEnum;\n resource?: Maybe<PostResourceType>;\n sharePublic?: Maybe<SocialShareResourceType>;\n slug: Scalars['String']['output'];\n tags?: Maybe<Array<Maybe<Scalars['String']['output']>>>;\n title: Scalars['String']['output'];\n updatedAt: Scalars['Date']['output'];\n};\n\n/** Post type enum */\nexport enum PostTypeEnum {\n ClueBites = 'clue_bites',\n MarketFaces = 'market_faces',\n PlayAndWin = 'play_and_win'\n}\n\n/** Poster input type */\nexport type PosterInputType = {\n description: Scalars['String']['input'];\n posterName: Scalars['PosterAssetId']['input'];\n resourceId: Scalars['String']['input'];\n resourceType: ResourceTypeEnum;\n};\n\n/** Poster type */\nexport type PosterType = {\n posterUsage?: Maybe<PosterUsageType>;\n};\n\n/** Poster usage type */\nexport type PosterUsageType = {\n count: Scalars['Int']['output'];\n month: Scalars['String']['output'];\n};\n\n/** Input type for push token */\nexport type PushTokenInput = {\n platform: OsPlatformEnumType;\n token?: InputMaybe<Scalars['String']['input']>;\n};\n\n/** Push token response type */\nexport type PushTokenType = {\n success: Scalars['Boolean']['output'];\n};\n\n/** Puzzle answer input type */\nexport type PuzzleAnswerInputType = {\n answer: Scalars['String']['input'];\n answerId: Scalars['ID']['input'];\n correct: Scalars['Boolean']['input'];\n};\n\n/** Puzzle question answer type */\nexport type PuzzleAnswerType = {\n answer: Scalars['String']['output'];\n answerId: Scalars['ID']['output'];\n correct: Scalars['Boolean']['output'];\n};\n\n/** Puzzle answered question input type */\nexport type PuzzleAnsweredQuestionInputType = {\n questionId: Scalars['ID']['input'];\n selectedAnswerId: Scalars['ID']['input'];\n};\n\n/** Puzzle answered question type */\nexport type PuzzleAnsweredQuestionType = {\n questionId: Scalars['ID']['output'];\n selectedAnswerId: Scalars['ID']['output'];\n};\n\n/** Puzzle base game input type */\nexport type PuzzleBaseGameInputType = {\n questions: Array<PuzzleQuestionInputType>;\n};\n\n/** Puzzle base game type */\nexport type PuzzleBaseGameType = {\n questions: Array<PuzzleQuestionType>;\n};\n\n/** Puzzle game data type */\nexport type PuzzleGameDataType = {\n answeredQuestions: Array<PuzzleAnsweredQuestionType>;\n gameFields?: Maybe<PuzzleBaseGameType>;\n points: Scalars['Int']['output'];\n streak: Scalars['Int']['output'];\n};\n\n/** Puzzle question input type */\nexport type PuzzleQuestionInputType = {\n answers: Array<PuzzleAnswerInputType>;\n question: Scalars['String']['input'];\n questionId: Scalars['ID']['input'];\n};\n\n/** Puzzle question type */\nexport type PuzzleQuestionType = {\n answers: Array<PuzzleAnswerType>;\n question: Scalars['String']['output'];\n questionId: Scalars['ID']['output'];\n};\n\nexport type Query = {\n /** Get a single ad by ID */\n ad?: Maybe<AdType>;\n /** Get all ads */\n ads?: Maybe<Array<Maybe<AdType>>>;\n /** Get ads by region */\n adsByRegion?: Maybe<Array<Maybe<AdType>>>;\n /** Get an affiliate by ID */\n affiliate?: Maybe<AffiliateType>;\n /** Get all affiliates */\n affiliates?: Maybe<Array<AffiliateType>>;\n /** Get application settings */\n appSettings: AppSettingsType;\n /** Get a chat by ID */\n chat?: Maybe<ChatType>;\n /** Get all group chats for a region */\n chatsByRegion?: Maybe<Array<ChatType>>;\n /** Get a event by ID */\n event?: Maybe<EventType>;\n /** Get event by Google Place ID */\n eventByPlaceId?: Maybe<EventListItemType>;\n /** Get a shareable event by public URL slug */\n eventBySlug?: Maybe<EventListItemType>;\n /** Get event info by event ID */\n eventInfo?: Maybe<EventInfoType>;\n /** Get all relations for a specific event */\n eventRelations?: Maybe<Array<Maybe<RelationType>>>;\n /** Get all events */\n events?: Maybe<Array<EventListItemType>>;\n /** Get events by region */\n eventsByRegion?: Maybe<Array<EventListItemType>>;\n /** Get events near a specific location */\n eventsNearMe?: Maybe<Array<EventListItemType>>;\n /** Search events */\n eventsSearch?: Maybe<Array<EventListItemType>>;\n /** Get a game by ID */\n game?: Maybe<GameDocType>;\n /** Get the game leaderboard */\n gameLeaderboard?: Maybe<Array<Maybe<GameLeaderboardType>>>;\n /** Get all games */\n games?: Maybe<Array<GameDocType>>;\n /** Get all available subscription plans with pricing. Applies discounts for new users (25% off annual) and testers (50% off annual). Discounts exclude cancel-anytime plans and are valid for one year only. */\n getSubscriptionPlans: SubscriptionPlansResponseType;\n /** Get the current user's subscription status */\n getSubscriptionStatus: SubscriptionStatusType;\n /** Get notification count for a user */\n notificationCount?: Maybe<NotificationCount>;\n /** Get a partner by ID */\n partner?: Maybe<PartnerType>;\n /** Get a shareable partner by public URL slug */\n partnerBySlug?: Maybe<PartnerType>;\n /** Get all partners */\n partners?: Maybe<Array<PartnerType>>;\n /** Get partners by region */\n partnersByRegion?: Maybe<Array<PartnerType>>;\n /** Search partners */\n partnersSearch?: Maybe<Array<PartnerType>>;\n /** Get a post by ID */\n post?: Maybe<PostType>;\n /** Get a shareable post by public URL slug and post type */\n postBySlug?: Maybe<PostType>;\n /** Get all posts */\n posts?: Maybe<Array<PostType>>;\n /** Get posts by type */\n postsByType?: Maybe<Array<PostType>>;\n /** Get a relation by ID */\n relation?: Maybe<RelationType>;\n /** Get relation for a specific vendor and event combination */\n relationByEventAndVendor?: Maybe<RelationType>;\n /** Get resource activities by resource ID and type */\n resourceActivity?: Maybe<ResourceActivityType>;\n /** Get all connections for a specific resource */\n resourceConnections?: Maybe<ResourceConnections>;\n /** Get a school by ID */\n school?: Maybe<SchoolReturnType>;\n /** Get all schools */\n schools?: Maybe<Array<SchoolType>>;\n /** Get an unregistered vendor by ID */\n unregisteredVendor?: Maybe<UnregisteredVendorType>;\n /** Get all unregistered vendors */\n unregisteredVendors?: Maybe<Array<UnregisteredVendorType>>;\n /** Get unregistered vendors by inviter ID (only includes invitations from that inviter) */\n unregisteredVendorsByInviterId?: Maybe<Array<UnregisteredVendorType>>;\n /** Get a user by ID */\n user?: Maybe<UserType>;\n /** Get all activities of the user */\n userActivities?: Maybe<UserActivities>;\n /** Get all chats for a user */\n userChats?: Maybe<Array<ChatType>>;\n /** Get all events owned by the user */\n userEvents: Array<Maybe<EventType>>;\n /** Get user notifications with pagination */\n userNotifications?: Maybe<Array<Maybe<Notification>>>;\n /** Get the partners of the user */\n userPartners: Array<Maybe<PartnerType>>;\n /** Get all resources owned by the user */\n userResources?: Maybe<UserResources>;\n /** Get the vendors of the user */\n userVendors: Array<Maybe<VendorType>>;\n /** Get all users */\n users?: Maybe<Array<UserType>>;\n /** Get a vendor by ID */\n vendor?: Maybe<VendorType>;\n /** Get a shareable vendor by public URL slug */\n vendorBySlug?: Maybe<VendorType>;\n /** Get a vendor info by vendor ID */\n vendorInfo?: Maybe<VendorInfoType>;\n /** Get all relations for a specific vendor */\n vendorRelations?: Maybe<Array<Maybe<RelationType>>>;\n /** Search vendors */\n vendorSearch?: Maybe<Array<VendorType>>;\n /** Get all vendors */\n vendors?: Maybe<Array<VendorType>>;\n /** Get vendors by Region */\n vendorsByRegion?: Maybe<Array<VendorType>>;\n};\n\n\nexport type QueryAdArgs = {\n _id: Scalars['ID']['input'];\n};\n\n\nexport type QueryAdsByRegionArgs = {\n region: Scalars['String']['input'];\n status?: InputMaybe<AdStatusTypeEnum>;\n};\n\n\nexport type QueryAffiliateArgs = {\n _id: Scalars['ID']['input'];\n};\n\n\nexport type QueryChatArgs = {\n _id: Scalars['ID']['input'];\n};\n\n\nexport type QueryChatsByRegionArgs = {\n region: Scalars['String']['input'];\n};\n\n\nexport type QueryEventArgs = {\n _id: Scalars['ID']['input'];\n};\n\n\nexport type QueryEventByPlaceIdArgs = {\n googlePlaceId: Scalars['String']['input'];\n};\n\n\nexport type QueryEventBySlugArgs = {\n slug: Scalars['String']['input'];\n};\n\n\nexport type QueryEventInfoArgs = {\n eventId: Scalars['ID']['input'];\n};\n\n\nexport type QueryEventRelationsArgs = {\n eventId: Scalars['ID']['input'];\n};\n\n\nexport type QueryEventsArgs = {\n dateStatus?: InputMaybe<EventDateStatusEnumType>;\n};\n\n\nexport type QueryEventsByRegionArgs = {\n dateStatus?: InputMaybe<EventDateStatusEnumType>;\n options?: InputMaybe<ResourcesByRegionOptions>;\n region: Scalars['String']['input'];\n};\n\n\nexport type QueryEventsNearMeArgs = {\n dateStatus?: InputMaybe<EventDateStatusEnumType>;\n latitude: Scalars['Float']['input'];\n longitude: Scalars['Float']['input'];\n radius?: InputMaybe<Scalars['Int']['input']>;\n};\n\n\nexport type QueryEventsSearchArgs = {\n dateStatus?: InputMaybe<EventDateStatusEnumType>;\n region: Scalars['String']['input'];\n search?: InputMaybe<Scalars['String']['input']>;\n tags?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;\n};\n\n\nexport type QueryGameArgs = {\n _id?: InputMaybe<Scalars['ID']['input']>;\n};\n\n\nexport type QueryPartnerArgs = {\n _id: Scalars['ID']['input'];\n};\n\n\nexport type QueryPartnerBySlugArgs = {\n slug: Scalars['String']['input'];\n};\n\n\nexport type QueryPartnersByRegionArgs = {\n options?: InputMaybe<ResourcesByRegionOptions>;\n region: Scalars['String']['input'];\n};\n\n\nexport type QueryPartnersSearchArgs = {\n region: Scalars['String']['input'];\n search: Scalars['String']['input'];\n};\n\n\nexport type QueryPostArgs = {\n _id: Scalars['ID']['input'];\n};\n\n\nexport type QueryPostBySlugArgs = {\n postType: PostTypeEnum;\n slug: Scalars['String']['input'];\n};\n\n\nexport type QueryPostsByTypeArgs = {\n postType: PostTypeEnum;\n};\n\n\nexport type QueryRelationArgs = {\n _id: Scalars['ID']['input'];\n};\n\n\nexport type QueryRelationByEventAndVendorArgs = {\n eventId: Scalars['ID']['input'];\n vendorId: Scalars['ID']['input'];\n};\n\n\nexport type QueryResourceActivityArgs = {\n resourceId: Scalars['ID']['input'];\n resourceType: ResourceTypeEnum;\n};\n\n\nexport type QueryResourceConnectionsArgs = {\n resourceId: Scalars['ID']['input'];\n resourceType: ResourceTypeEnum;\n};\n\n\nexport type QuerySchoolArgs = {\n _id: Scalars['ID']['input'];\n};\n\n\nexport type QueryUnregisteredVendorArgs = {\n _id: Scalars['ID']['input'];\n};\n\n\nexport type QueryUnregisteredVendorsByInviterIdArgs = {\n inviterId: Scalars['ID']['input'];\n};\n\n\nexport type QueryUserArgs = {\n _id: Scalars['ID']['input'];\n};\n\n\nexport type QueryUserNotificationsArgs = {\n limit?: InputMaybe<Scalars['Int']['input']>;\n offset?: InputMaybe<Scalars['Int']['input']>;\n};\n\n\nexport type QueryUserResourcesArgs = {\n userId: Scalars['ID']['input'];\n};\n\n\nexport type QueryVendorArgs = {\n _id: Scalars['ID']['input'];\n};\n\n\nexport type QueryVendorBySlugArgs = {\n slug: Scalars['String']['input'];\n};\n\n\nexport type QueryVendorInfoArgs = {\n vendorId: Scalars['ID']['input'];\n};\n\n\nexport type QueryVendorRelationsArgs = {\n vendorId: Scalars['ID']['input'];\n};\n\n\nexport type QueryVendorSearchArgs = {\n region: Scalars['String']['input'];\n search: Scalars['String']['input'];\n};\n\n\nexport type QueryVendorsByRegionArgs = {\n options?: InputMaybe<ResourcesByRegionOptions>;\n region: Scalars['String']['input'];\n};\n\nexport type RedeemAffiliateRewardResponse = {\n data?: Maybe<AffiliateType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\n/** Redeem history type */\nexport type RedeemHistoryType = {\n paidAt?: Maybe<Scalars['Date']['output']>;\n redeemedAt: Scalars['Date']['output'];\n rewardValue: Scalars['Int']['output'];\n};\n\n/** Redeem reward input type */\nexport type RedeemRewardInputType = {\n reward: RewardEnumType;\n};\n\nexport type RedeemRewardResponse = {\n data?: Maybe<RedeemRewardResponseType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\n/** Redeem reward response data */\nexport type RedeemRewardResponseType = {\n userId: Scalars['ID']['output'];\n};\n\n/** Redeemed reward type */\nexport type RedeemedRewardType = {\n name: RewardEnumType;\n pointsUsed: Scalars['Int']['output'];\n redeemedAt: Scalars['Date']['output'];\n};\n\n/** Refresh token input type */\nexport type RefreshTokenInputType = {\n refreshToken: Scalars['String']['input'];\n};\n\n/** Refresh token payload type */\nexport type RefreshTokenPayloadType = {\n refreshToken: Scalars['String']['output'];\n token: Scalars['String']['output'];\n};\n\nexport type RefreshTokenResponse = {\n data?: Maybe<RefreshTokenPayloadType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type RefundPolicyInputType = {\n category: Scalars['String']['input'];\n label: Scalars['String']['input'];\n value: Scalars['Boolean']['input'];\n};\n\nexport type RefundPolicyType = {\n category: Scalars['String']['output'];\n label: Scalars['String']['output'];\n value: Scalars['Boolean']['output'];\n};\n\n/** Register input type */\nexport type RegisterInputType = {\n email: Scalars['String']['input'];\n firstName: Scalars['String']['input'];\n lastName: Scalars['String']['input'];\n password: Scalars['String']['input'];\n platform?: InputMaybe<OsPlatformEnumType>;\n preferredRegion: Scalars['String']['input'];\n promoCode?: InputMaybe<Scalars['String']['input']>;\n termsAgreement: TermsAgreementInputType;\n};\n\nexport type RegisterResponse = {\n data?: Maybe<AuthPayloadType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\n/** Related post type */\nexport type RelatedPostType = {\n postActive: Scalars['Boolean']['output'];\n postId: Scalars['ID']['output'];\n postSlug: Scalars['String']['output'];\n postType: PostTypeEnum;\n};\n\n/** Relation date input type */\nexport type RelationDateInputType = {\n dateTime: RelationDateTimeInputType;\n lastUpdateBy: LastUpdateByInputType;\n paymentReference?: InputMaybe<Scalars['String']['input']>;\n status: InviteEnumType;\n};\n\n/** Relation date time input type */\nexport type RelationDateTimeInputType = {\n dateStatus: EventDateStatusEnumType;\n endDate: Scalars['String']['input'];\n endTime: Scalars['String']['input'];\n stallType: StallTypeInputType;\n startDate: Scalars['String']['input'];\n startTime: Scalars['String']['input'];\n};\n\n/** Relation date time type */\nexport type RelationDateTimeType = {\n dateStatus: EventDateStatusEnumType;\n endDate: Scalars['String']['output'];\n endTime: Scalars['String']['output'];\n stallType?: Maybe<StallTypeType>;\n startDate: Scalars['String']['output'];\n startTime: Scalars['String']['output'];\n};\n\n/** Relation date type */\nexport type RelationDateType = {\n dateTime: RelationDateTimeType;\n lastUpdateBy?: Maybe<LastUpdateByType>;\n paymentReference?: Maybe<Scalars['String']['output']>;\n status: InviteEnumType;\n};\n\n/** Relation input type */\nexport type RelationInputType = {\n active: Scalars['Boolean']['input'];\n chatId?: InputMaybe<Scalars['ID']['input']>;\n eventId: Scalars['ID']['input'];\n lastUpdateBy: ResourceTypeEnum;\n relationDates: Array<InputMaybe<RelationDateInputType>>;\n relationType: RelationTypeEnum;\n vendorId: Scalars['ID']['input'];\n};\n\n/** Relation type */\nexport type RelationType = {\n _id: Scalars['ID']['output'];\n active: Scalars['Boolean']['output'];\n chatId: Scalars['ID']['output'];\n createdAt?: Maybe<Scalars['Date']['output']>;\n deletedAt?: Maybe<Scalars['Date']['output']>;\n eventId: Scalars['ID']['output'];\n lastUpdateBy: ResourceTypeEnum;\n relationDates: Array<RelationDateType>;\n relationType: RelationTypeEnum;\n updatedAt?: Maybe<Scalars['Date']['output']>;\n vendorId: Scalars['ID']['output'];\n};\n\n/** Resource relation type enum */\nexport enum RelationTypeEnum {\n EventInviteVendor = 'event_invite_vendor',\n EventUpdateRelationToVendor = 'event_update_relation_to_vendor',\n VendorApplicationToEvent = 'vendor_application_to_event',\n VendorUpdateRelationToEvent = 'vendor_update_relation_to_event'\n}\n\nexport type RemoveParticipantFromChatPayload = {\n region?: Maybe<Scalars['String']['output']>;\n success: Scalars['Boolean']['output'];\n};\n\nexport type RemoveParticipantFromChatResponse = {\n data?: Maybe<RemoveParticipantFromChatPayload>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type RemoveUserFavouriteResourceResponse = {\n data?: Maybe<UserType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type RemoveUserGoingResourceResponse = {\n data?: Maybe<UserType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type RemoveUserInterestResourceResponse = {\n data?: Maybe<UserType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type RemoveUserPresentResourceResponse = {\n data?: Maybe<UserType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\n/** Report chat reason input type */\nexport type ReportChatReasonInputType = {\n details?: InputMaybe<Scalars['String']['input']>;\n reasonType: ChatReportReasonEnum;\n};\n\n/** Report chat reason type */\nexport type ReportChatReasonType = {\n details?: Maybe<Scalars['String']['output']>;\n reasonType: ChatReportReasonEnum;\n};\n\n/** Report chat user input type */\nexport type ReportChatUserInputType = {\n chatId: Scalars['ID']['input'];\n reason: ReportChatReasonInputType;\n reportedUserId: Scalars['ID']['input'];\n};\n\nexport type ReportChatUserResponse = {\n data?: Maybe<ReportChatUserType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\n/** Report chat user type */\nexport type ReportChatUserType = {\n _id: Scalars['ID']['output'];\n chatId: Scalars['ID']['output'];\n createdAt: Scalars['Date']['output'];\n reason: ReportChatReasonType;\n reportedUserId: Scalars['ID']['output'];\n reporterUserId: Scalars['ID']['output'];\n resolved: Scalars['Boolean']['output'];\n updatedAt?: Maybe<Scalars['Date']['output']>;\n};\n\n/** Request password reset input type */\nexport type RequestPasswordResetInputType = {\n email: Scalars['String']['input'];\n};\n\nexport type RequestPasswordResetResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type RequirementInputType = {\n category: Scalars['String']['input'];\n label: Scalars['String']['input'];\n value: Scalars['Boolean']['input'];\n};\n\nexport type RequirementType = {\n category: Scalars['String']['output'];\n label: Scalars['String']['output'];\n value: Scalars['Boolean']['output'];\n};\n\n/** Reset password input type */\nexport type ResetPasswordInputType = {\n confirmPassword: Scalars['String']['input'];\n email: Scalars['String']['input'];\n password: Scalars['String']['input'];\n};\n\nexport type ResetPasswordResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\n/** Resource view entry type */\nexport type ResourceActivityEntryType = {\n activityType: ActivityEnumType;\n dateStatus?: Maybe<EventDateStatusEnumType>;\n location?: Maybe<LocationGeoType>;\n startDate?: Maybe<Scalars['String']['output']>;\n startTime?: Maybe<Scalars['String']['output']>;\n timestamp?: Maybe<Scalars['Date']['output']>;\n userAgent?: Maybe<OsPlatformEnumType>;\n userId?: Maybe<Scalars['String']['output']>;\n};\n\n/** Resource activity input type */\nexport type ResourceActivityInputType = {\n activity: ResourceViewEntryInputType;\n resourceId: Scalars['ID']['input'];\n resourceType: ResourceTypeEnum;\n};\n\n/** Resource activities type */\nexport type ResourceActivityType = {\n _id: Scalars['ID']['output'];\n activity?: Maybe<Array<Maybe<ResourceActivityEntryType>>>;\n resourceId: Scalars['ID']['output'];\n resourceType: ResourceTypeEnum;\n};\n\nexport type ResourceConnections = {\n /** List of events connected to the resource */\n events?: Maybe<Array<Maybe<EventListItemType>>>;\n /** List of vendors connected to the resource */\n vendors?: Maybe<Array<Maybe<VendorType>>>;\n};\n\n/** Resource image input type */\nexport type ResourceImageInputType = {\n active?: InputMaybe<Scalars['Boolean']['input']>;\n source?: InputMaybe<Scalars['String']['input']>;\n title?: InputMaybe<Scalars['String']['input']>;\n};\n\n/** Resource image type */\nexport type ResourceImageType = {\n active: Scalars['Boolean']['output'];\n fullUrl?: Maybe<Scalars['String']['output']>;\n source: Scalars['String']['output'];\n title: Scalars['String']['output'];\n};\n\n/** Resource image upload input type */\nexport type ResourceImageUploadInputType = {\n source?: InputMaybe<Scalars['Upload']['input']>;\n title?: InputMaybe<Scalars['String']['input']>;\n};\n\nexport type ResourceRelationType = {\n relationDates: Array<RelationDateType>;\n relationId: Scalars['ID']['output'];\n};\n\n/** Resource type enum */\nexport enum ResourceTypeEnum {\n Affiliate = 'affiliate',\n Event = 'event',\n Partner = 'partner',\n School = 'school',\n Vendor = 'vendor'\n}\n\n/** Resource view entry input type */\nexport type ResourceViewEntryInputType = {\n activityType: ActivityEnumType;\n location?: InputMaybe<LocationGeoInputType>;\n startDate?: InputMaybe<Scalars['String']['input']>;\n startTime?: InputMaybe<Scalars['String']['input']>;\n userAgent?: InputMaybe<OsPlatformEnumType>;\n userId?: InputMaybe<Scalars['String']['input']>;\n};\n\n/** Resources by region options */\nexport type ResourcesByRegionOptions = {\n limit?: InputMaybe<Scalars['Int']['input']>;\n offset?: InputMaybe<Scalars['Int']['input']>;\n onlyClaimed?: InputMaybe<Scalars['Boolean']['input']>;\n};\n\n/** Reward enum */\nexport enum RewardEnumType {\n MysteryDeluxeBox = 'mystery_deluxe_box',\n MysteryJoyBox = 'mystery_joy_box',\n MysterySqueezeBox = 'mystery_squeeze_box'\n}\n\n/** School campaign type */\nexport type SchoolCampaignType = {\n endDate: Scalars['Date']['output'];\n name: Scalars['String']['output'];\n startDate: Scalars['Date']['output'];\n};\n\n/** School input type */\nexport type SchoolInputType = {\n active: Scalars['Boolean']['input'];\n contactDetails: ContactDetailsInputType;\n location: LocationInputType;\n logo?: InputMaybe<ResourceImageInputType>;\n logoUpload?: InputMaybe<ResourceImageUploadInputType>;\n name: Scalars['String']['input'];\n region: Scalars['String']['input'];\n socialMedia?: InputMaybe<Array<InputMaybe<SocialMediaInputType>>>;\n studentCount: Scalars['Int']['input'];\n termsAgreement: TermsAgreementInputType;\n};\n\n/** School registered user type */\nexport type SchoolRegisteredUserType = {\n _id: Scalars['ID']['output'];\n active: Scalars['Boolean']['output'];\n avatar?: Maybe<ResourceImageType>;\n email: Scalars['String']['output'];\n firstName: Scalars['String']['output'];\n lastName: Scalars['String']['output'];\n};\n\n/** School return type */\nexport type SchoolReturnType = {\n school: SchoolType;\n users?: Maybe<Array<SchoolRegisteredUserType>>;\n};\n\n/** School type */\nexport type SchoolType = {\n _id: Scalars['ID']['output'];\n active: Scalars['Boolean']['output'];\n approvedAt?: Maybe<Scalars['Date']['output']>;\n campaigns?: Maybe<Array<SchoolCampaignType>>;\n contactDetails: ContactDetailsType;\n createdAt: Scalars['Date']['output'];\n deletedAt?: Maybe<Scalars['Date']['output']>;\n location: LocationType;\n logo?: Maybe<ResourceImageType>;\n name: Scalars['String']['output'];\n overallPoints?: Maybe<Scalars['Int']['output']>;\n owner: OwnerType;\n ranking?: Maybe<Scalars['Int']['output']>;\n region: Scalars['String']['output'];\n schoolCode: Scalars['String']['output'];\n socialMedia?: Maybe<Array<SocialMediaType>>;\n studentCount: Scalars['Int']['output'];\n termsAgreement: TermsAgreementType;\n updatedAt: Scalars['Date']['output'];\n};\n\n/** Select standard package result data */\nexport type SelectStandardPackageDataType = {\n licences?: Maybe<Array<UserLicenceType>>;\n userId: Scalars['ID']['output'];\n};\n\nexport type SelectStandardPackageResponse = {\n data?: Maybe<SelectStandardPackageDataType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type SendChatMessageResponse = {\n data?: Maybe<ChatType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\n/** Social media enum type */\nexport enum SocialMediaEnumType {\n Facebook = 'facebook',\n Instagram = 'instagram',\n Tiktok = 'tiktok',\n Twitter = 'twitter',\n Website = 'website',\n Youtube = 'youtube'\n}\n\n/** Social media input type */\nexport type SocialMediaInputType = {\n link: Scalars['String']['input'];\n name: SocialMediaEnumType;\n};\n\n/** Social media type */\nexport type SocialMediaType = {\n link: Scalars['String']['output'];\n name: SocialMediaEnumType;\n};\n\n/** Social share resource type */\nexport type SocialShareResourceType = {\n qrCode: ResourceImageType;\n socialImage: ResourceImageType;\n};\n\n/** Stall type input type */\nexport type StallTypeInputType = {\n label: Scalars['String']['input'];\n price: Scalars['Float']['input'];\n stallCapacity: Scalars['Float']['input'];\n};\n\n/** Stall type object */\nexport type StallTypeType = {\n label: Scalars['String']['output'];\n price: Scalars['Float']['output'];\n stallCapacity: Scalars['Float']['output'];\n};\n\nexport type StartGameResponse = {\n data?: Maybe<GameDocType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\n/** Stripe subscription type */\nexport type StripeSubscriptionType = {\n currentPlan?: Maybe<LicencesEnumType>;\n customerId?: Maybe<Scalars['String']['output']>;\n endDate?: Maybe<Scalars['Date']['output']>;\n startDate?: Maybe<Scalars['Date']['output']>;\n status?: Maybe<SubscriptionStatusEnumType>;\n subscriptionId?: Maybe<Scalars['String']['output']>;\n};\n\n/** Subcategory input type */\nexport type SubcategoryInputType = {\n id: Scalars['String']['input'];\n items?: InputMaybe<Array<InputMaybe<SubcategoryItemInputType>>>;\n name?: InputMaybe<Scalars['String']['input']>;\n};\n\n/** Subcategory item input type */\nexport type SubcategoryItemInputType = {\n id?: InputMaybe<Scalars['String']['input']>;\n name?: InputMaybe<Scalars['String']['input']>;\n};\n\n/** Subcategory item type */\nexport type SubcategoryItemType = {\n id?: Maybe<Scalars['String']['output']>;\n name?: Maybe<Scalars['String']['output']>;\n};\n\n/** Subcategory type */\nexport type SubcategoryType = {\n id: Scalars['String']['output'];\n items?: Maybe<Array<SubcategoryItemType>>;\n name?: Maybe<Scalars['String']['output']>;\n};\n\n/** The root subscription type */\nexport type Subscription = {\n /** Subscribe to chat messages */\n getChatMessage?: Maybe<ChatType>;\n /** Subscribe to notification count updates */\n getNotificationCount?: Maybe<NotificationCount>;\n /** Subscribe to user notifications */\n getUserNotifications?: Maybe<Array<Maybe<Notification>>>;\n};\n\n/** Subscription plan with pricing, discounts, and Stripe metadata */\nexport type SubscriptionPlanType = {\n /** Billing period (monthly, yearly_annual_billed, yearly_monthly_billed) */\n billingPeriod: BillingPeriodEnumType;\n /** Plan description */\n description?: Maybe<Scalars['String']['output']>;\n /** Whether this plan is eligible for discount (annual plans only) */\n isEligibleForDiscount: Scalars['Boolean']['output'];\n /** Licence type (standard_vendor, pro_event, etc.) */\n licenceType: LicencesEnumType;\n /** Plan name (e.g., 'Standard Vendor') */\n name: Scalars['String']['output'];\n /** Pricing details with discounts applied */\n pricing: SubscriptionPricingType;\n /** Stripe price ID */\n stripePriceId: Scalars['String']['output'];\n /** Stripe product ID */\n stripeProductId: Scalars['String']['output'];\n};\n\n/** Response containing subscription plans with pricing */\nexport type SubscriptionPlansResponseType = {\n /** Type of discount applied: 'none', 'new_user', or 'tester' */\n appliedDiscountType: Scalars['String']['output'];\n /** Whether the user is a new user (no previous subscriptions) */\n isNewUser: Scalars['Boolean']['output'];\n /** Whether the user is a tester */\n isTester: Scalars['Boolean']['output'];\n /** List of available subscription plans */\n plans: Array<SubscriptionPlanType>;\n};\n\n/** Pricing details for a subscription plan */\nexport type SubscriptionPricingType = {\n /** Base price in cents */\n basePrice: Scalars['Int']['output'];\n /** Currency code (e.g., 'nzd', 'usd') */\n currency: Scalars['String']['output'];\n /** Discount amount in cents (if applicable) */\n discountAmount?: Maybe<Scalars['Int']['output']>;\n /** Discount percentage (if applicable) */\n discountPercent?: Maybe<Scalars['Float']['output']>;\n /** Final price after discount in cents (if applicable) */\n discountedPrice?: Maybe<Scalars['Int']['output']>;\n /** Formatted base price (e.g., '$99.00') */\n formattedBasePrice: Scalars['String']['output'];\n /** Formatted discounted price (e.g., '$74.25') */\n formattedDiscountedPrice?: Maybe<Scalars['String']['output']>;\n /** Whether a discount is applied */\n hasDiscount: Scalars['Boolean']['output'];\n};\n\n/** Subscription status enum type */\nexport enum SubscriptionStatusEnumType {\n Active = 'active',\n Cancelled = 'cancelled',\n Inactive = 'inactive',\n NoSubscription = 'no_subscription',\n PastDue = 'past_due',\n Trialing = 'trialing'\n}\n\n/** Subscription status information */\nexport type SubscriptionStatusType = {\n currentPlan?: Maybe<LicencesEnumType>;\n priceId?: Maybe<Scalars['String']['output']>;\n status?: Maybe<SubscriptionStatusEnumType>;\n subscriptionId?: Maybe<Scalars['String']['output']>;\n};\n\n/** Terms agreement input type */\nexport type TermsAgreementInputType = {\n appBuildNumber: Scalars['String']['input'];\n appId: Scalars['String']['input'];\n appVersion: Scalars['String']['input'];\n brand: Scalars['String']['input'];\n deviceName: Scalars['String']['input'];\n installationId: Scalars['String']['input'];\n manufacturer: Scalars['String']['input'];\n modelName: Scalars['String']['input'];\n osName: Scalars['String']['input'];\n osVersion: Scalars['String']['input'];\n termVersion: Scalars['String']['input'];\n timestamp: Scalars['String']['input'];\n};\n\n/** Terms agreement type */\nexport type TermsAgreementType = {\n appBuildNumber: Scalars['String']['output'];\n appId: Scalars['String']['output'];\n appVersion: Scalars['String']['output'];\n brand: Scalars['String']['output'];\n deviceName: Scalars['String']['output'];\n installationId: Scalars['String']['output'];\n manufacturer: Scalars['String']['output'];\n modelName: Scalars['String']['output'];\n osName: Scalars['String']['output'];\n osVersion: Scalars['String']['output'];\n termVersion: Scalars['String']['output'];\n timestamp: Scalars['String']['output'];\n};\n\n/** Textarea content data input type */\nexport type TextareaContentDataInputType = {\n data: Scalars['String']['input'];\n title?: InputMaybe<Scalars['String']['input']>;\n};\n\n/** Textarea content data type */\nexport type TextareaContentDataType = {\n data: Scalars['String']['output'];\n title?: Maybe<Scalars['String']['output']>;\n};\n\nexport type ToggleChatMessageLikeResponse = {\n data?: Maybe<ChatType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type UnlinkUnregisteredVendorByInviterIdResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\n/** Unregistered vendor input type */\nexport type UnregisteredVendorInputType = {\n categoryIds: Array<InputMaybe<Scalars['String']['input']>>;\n dateTime: Array<InputMaybe<DateTimeInputType>>;\n email?: InputMaybe<Scalars['String']['input']>;\n inviterId: Scalars['ID']['input'];\n name: Scalars['String']['input'];\n region: Scalars['String']['input'];\n};\n\n/** Unregistered vendor invitation type */\nexport type UnregisteredVendorInvitationType = {\n dateTime: Array<DateTimeType>;\n inviterId: Scalars['ID']['output'];\n};\n\n/** Unregistered vendor type */\nexport type UnregisteredVendorType = {\n _id: Scalars['ID']['output'];\n active: Scalars['Boolean']['output'];\n categoryIds: Array<Scalars['String']['output']>;\n claimed: Scalars['Boolean']['output'];\n claimedAt?: Maybe<Scalars['Date']['output']>;\n claimedByUserId?: Maybe<Scalars['ID']['output']>;\n createdAt: Scalars['Date']['output'];\n deletedAt?: Maybe<Scalars['Date']['output']>;\n email?: Maybe<Scalars['String']['output']>;\n invitations: Array<UnregisteredVendorInvitationType>;\n name: Scalars['String']['output'];\n region: Scalars['String']['output'];\n updatedAt: Scalars['Date']['output'];\n};\n\nexport type UpdateAdResponse = {\n data?: Maybe<AdType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type UpdateAffiliateDetailsResponse = {\n data?: Maybe<AffiliateType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type UpdateAppSettingsResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type UpdateDailyClueGameResponse = {\n data?: Maybe<GameDocType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type UpdateEventInfoResponse = {\n data?: Maybe<EventInfoType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type UpdateEventResponse = {\n data?: Maybe<EventType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type UpdateGoogleImportedMarketsResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type UpdatePartnerResponse = {\n data?: Maybe<PartnerType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type UpdatePostResponse = {\n data?: Maybe<PostType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type UpdatePuzzleGameResponse = {\n data?: Maybe<GameDocType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type UpdateRelationResponse = {\n data?: Maybe<RelationType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type UpdateSchoolResponse = {\n data?: Maybe<SchoolType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type UpdateSubscriptionPlanResponse = {\n data?: Maybe<SubscriptionStatusType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type UpdateUnregisteredVendorResponse = {\n data?: Maybe<UnregisteredVendorType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type UpdateUserResponse = {\n data?: Maybe<UserType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type UpdateVendorInfoResponse = {\n data?: Maybe<VendorInfoType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type UpdateVendorResponse = {\n data?: Maybe<VendorType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type UserActivities = {\n /** Favourites of the user */\n favourites?: Maybe<UserFavourites>;\n /** Going events of the user */\n going?: Maybe<UserGoingEvents>;\n /** Interested events of the user */\n interested?: Maybe<UserInterestedEvents>;\n /** Present events of the user */\n present?: Maybe<UserPresentEvents>;\n};\n\n/** User activity input type */\nexport type UserActivityInputType = {\n dateTime: DateTimeInputType;\n resourceId: Scalars['ID']['input'];\n};\n\n/** User activity type */\nexport type UserActivityType = {\n favourites?: Maybe<UserFavouritesType>;\n going?: Maybe<UserGoingType>;\n interested?: Maybe<UserInterestedType>;\n present?: Maybe<UserPresentType>;\n};\n\nexport type UserFavourites = {\n /** List of favourite events */\n events?: Maybe<Array<Maybe<EventListItemType>>>;\n /** List of favourite partners */\n partners?: Maybe<Array<Maybe<PartnerType>>>;\n /** List of favourite vendors */\n vendors?: Maybe<Array<Maybe<VendorType>>>;\n};\n\n/** User favourites type */\nexport type UserFavouritesType = {\n /** List of favourite events */\n events?: Maybe<Array<Scalars['ID']['output']>>;\n /** List of favourite partners */\n partners?: Maybe<Array<Scalars['ID']['output']>>;\n /** List of favourite vendors */\n vendors?: Maybe<Array<Scalars['ID']['output']>>;\n};\n\nexport type UserGoingEvents = {\n /** List of going events */\n events?: Maybe<Array<Maybe<EventListItemType>>>;\n};\n\n/** User going events */\nexport type UserGoingType = {\n events?: Maybe<Array<EventReferenceType>>;\n};\n\n/** User input type */\nexport type UserInputType = {\n active: Scalars['Boolean']['input'];\n avatar?: InputMaybe<ResourceImageInputType>;\n avatarUpload?: InputMaybe<ResourceImageUploadInputType>;\n email: Scalars['String']['input'];\n firstName: Scalars['String']['input'];\n isTester: Scalars['Boolean']['input'];\n lastName: Scalars['String']['input'];\n location?: InputMaybe<LocationInputType>;\n password?: InputMaybe<Scalars['String']['input']>;\n platform?: InputMaybe<OsPlatformEnumType>;\n preferredRegion: Scalars['String']['input'];\n termsAgreement?: InputMaybe<TermsAgreementInputType>;\n};\n\nexport type UserInterestedEvents = {\n /** List of interested events */\n events?: Maybe<Array<Maybe<EventListItemType>>>;\n};\n\n/** User interested events */\nexport type UserInterestedType = {\n events?: Maybe<Array<EventReferenceType>>;\n};\n\n/** User licence type */\nexport type UserLicenceType = {\n expiryDate: Scalars['Date']['output'];\n issuedDate: Scalars['Date']['output'];\n licenceType: LicencesEnumType;\n prevLicenceType?: Maybe<LicencesEnumType>;\n};\n\nexport type UserPresentEvents = {\n /** List of present events */\n events?: Maybe<Array<Maybe<EventListItemType>>>;\n};\n\n/** User present events */\nexport type UserPresentType = {\n events?: Maybe<Array<EventReferenceType>>;\n};\n\nexport type UserResource = {\n _id: Scalars['ID']['output'];\n active: Scalars['Boolean']['output'];\n logo: Scalars['String']['output'];\n name: Scalars['String']['output'];\n resourceType: ResourceTypeEnum;\n};\n\nexport type UserResources = {\n /** List of resources owned by the user */\n resources?: Maybe<Array<UserResource>>;\n};\n\n/** User role enum type */\nexport enum UserRoleEnumType {\n Admin = 'admin',\n Affiliate = 'affiliate',\n Customer = 'customer',\n Event = 'event',\n Partner = 'partner',\n School = 'school',\n SuperAdmin = 'super_admin',\n Vendor = 'vendor'\n}\n\n/** User type */\nexport type UserType = {\n _id: Scalars['ID']['output'];\n active: Scalars['Boolean']['output'];\n affiliate?: Maybe<Scalars['ID']['output']>;\n avatar?: Maybe<ResourceImageType>;\n createdAt: Scalars['Date']['output'];\n deletedAt?: Maybe<Scalars['Date']['output']>;\n email: Scalars['String']['output'];\n events?: Maybe<Array<Scalars['ID']['output']>>;\n firstName: Scalars['String']['output'];\n game?: Maybe<Scalars['ID']['output']>;\n isTester: Scalars['Boolean']['output'];\n lastName: Scalars['String']['output'];\n licences?: Maybe<Array<UserLicenceType>>;\n location?: Maybe<LocationType>;\n overallPoints?: Maybe<Scalars['Int']['output']>;\n partner?: Maybe<Scalars['ID']['output']>;\n permissions: Array<Scalars['String']['output']>;\n platform?: Maybe<OsPlatformEnumType>;\n preferredRegion: Scalars['String']['output'];\n promoCodes?: Maybe<Array<Scalars['String']['output']>>;\n redeemedRewards?: Maybe<Array<RedeemedRewardType>>;\n roles: Array<UserRoleEnumType>;\n school?: Maybe<Scalars['ID']['output']>;\n stripe?: Maybe<StripeSubscriptionType>;\n termsAgreement?: Maybe<TermsAgreementType>;\n updatedAt: Scalars['Date']['output'];\n userActivity?: Maybe<UserActivityType>;\n vendor?: Maybe<Scalars['ID']['output']>;\n};\n\n/** Verify password reset token input type */\nexport type ValidateVerificationTokenInputType = {\n email: Scalars['String']['input'];\n verificationToken: Scalars['String']['input'];\n verificationType?: InputMaybe<VerificationEnumType>;\n};\n\nexport type ValidateVerificationTokenResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\n/** Vendor apply form price range input type */\nexport type VendorApplyFormPriceRangeInputType = {\n max: Scalars['String']['input'];\n min: Scalars['String']['input'];\n};\n\n/** Vendor apply form stall size input type */\nexport type VendorApplyFormStallSizeInputType = {\n depth: Scalars['String']['input'];\n width: Scalars['String']['input'];\n};\n\n/** Vendor attributes input type */\nexport type VendorAttributesInputType = {\n details?: InputMaybe<Scalars['String']['input']>;\n isRequired: Scalars['Boolean']['input'];\n};\n\n/** Vendor attributes type */\nexport type VendorAttributesType = {\n details?: Maybe<Scalars['String']['output']>;\n isRequired: Scalars['Boolean']['output'];\n};\n\n/** Vendor availability input type */\nexport type VendorAvailabilityInputType = {\n corporate?: InputMaybe<Scalars['Boolean']['input']>;\n private?: InputMaybe<Scalars['Boolean']['input']>;\n school?: InputMaybe<Scalars['Boolean']['input']>;\n};\n\n/** Vendor availability type */\nexport type VendorAvailabilityType = {\n corporate: Scalars['Boolean']['output'];\n private: Scalars['Boolean']['output'];\n school: Scalars['Boolean']['output'];\n};\n\n/** Vendor calendar input type */\nexport type VendorCalendarInputType = {\n active?: InputMaybe<Scalars['Boolean']['input']>;\n calendarData?: InputMaybe<Array<InputMaybe<VendorLocationsInputType>>>;\n};\n\n/** Vendor calendar type */\nexport type VendorCalendarType = {\n active?: Maybe<Scalars['Boolean']['output']>;\n calendarData?: Maybe<Array<VendorLocationsType>>;\n};\n\n/** Vendor compliance input type */\nexport type VendorComplianceInputType = {\n foodBeverageLicense?: InputMaybe<Scalars['Boolean']['input']>;\n liabilityInsurance?: InputMaybe<Scalars['Boolean']['input']>;\n};\n\n/** Vendor compliance type */\nexport type VendorComplianceType = {\n foodBeverageLicense: Scalars['Boolean']['output'];\n liabilityInsurance: Scalars['Boolean']['output'];\n};\n\n/** Vendor Date time type */\nexport type VendorDateTimeType = {\n dateStatus?: Maybe<EventDateStatusEnumType>;\n endDate?: Maybe<Scalars['String']['output']>;\n endTime?: Maybe<Scalars['String']['output']>;\n startDate?: Maybe<Scalars['String']['output']>;\n startTime?: Maybe<Scalars['String']['output']>;\n};\n\n/** Vendor type enum */\nexport enum VendorEnumType {\n Shop = 'Shop',\n Stallholder = 'Stallholder'\n}\n\n/** Vendor info input type */\nexport type VendorInfoInputType = {\n compliance?: InputMaybe<VendorComplianceInputType>;\n documents?: InputMaybe<Array<InputMaybe<ResourceImageInputType>>>;\n documentsUpload?: InputMaybe<Array<InputMaybe<ResourceImageUploadInputType>>>;\n product: VendorProductInputType;\n requirements?: InputMaybe<VendorRequirementsInputType>;\n stallInfo: VendorStallInfoInputType;\n vendorId: Scalars['String']['input'];\n};\n\n/** Vendor info type */\nexport type VendorInfoType = {\n _id: Scalars['ID']['output'];\n active: Scalars['Boolean']['output'];\n compliance?: Maybe<VendorComplianceType>;\n documents?: Maybe<Array<ResourceImageType>>;\n product: VendorProductType;\n requirements?: Maybe<VendorRequirementsType>;\n stallInfo: VendorStallInfoType;\n vendorId: Scalars['ID']['output'];\n};\n\n/** Vendor input type */\nexport type VendorInputType = {\n active: Scalars['Boolean']['input'];\n availability?: InputMaybe<VendorAvailabilityInputType>;\n calendar?: InputMaybe<VendorCalendarInputType>;\n categories: Array<InputMaybe<CategoryInputType>>;\n claimed?: InputMaybe<Scalars['Boolean']['input']>;\n contactDetails?: InputMaybe<ContactDetailsInputType>;\n cover: ResourceImageInputType;\n coverUpload?: InputMaybe<ResourceImageUploadInputType>;\n description: Scalars['String']['input'];\n foodTruck: Scalars['Boolean']['input'];\n images?: InputMaybe<Array<InputMaybe<ResourceImageInputType>>>;\n imagesUpload?: InputMaybe<Array<InputMaybe<ResourceImageUploadInputType>>>;\n logo?: InputMaybe<ResourceImageInputType>;\n logoUpload?: InputMaybe<ResourceImageUploadInputType>;\n name: Scalars['String']['input'];\n products?: InputMaybe<VendorProductsInputType>;\n promoCodes?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;\n region: Scalars['String']['input'];\n socialMedia?: InputMaybe<Array<InputMaybe<SocialMediaInputType>>>;\n termsAgreement: TermsAgreementInputType;\n unregisteredVendorId?: InputMaybe<Scalars['ID']['input']>;\n vendorType: VendorEnumType;\n};\n\n/** Vendor location date time input type */\nexport type VendorLocationDateTimeInputType = {\n dateStatus?: InputMaybe<EventDateStatusEnumType>;\n endDate?: InputMaybe<Scalars['String']['input']>;\n endTime?: InputMaybe<Scalars['String']['input']>;\n startDate?: InputMaybe<Scalars['String']['input']>;\n startTime?: InputMaybe<Scalars['String']['input']>;\n};\n\n/** Vendor locations input type */\nexport type VendorLocationsInputType = {\n dateTime?: InputMaybe<VendorLocationDateTimeInputType>;\n description?: InputMaybe<Scalars['String']['input']>;\n location?: InputMaybe<LocationInputType>;\n resourceCover?: InputMaybe<Scalars['String']['input']>;\n resourceId?: InputMaybe<Scalars['String']['input']>;\n resourceLogo?: InputMaybe<Scalars['String']['input']>;\n resourceName?: InputMaybe<Scalars['String']['input']>;\n resourceType?: InputMaybe<ResourceTypeEnum>;\n};\n\n/** Vendor locations type */\nexport type VendorLocationsType = {\n dateTime?: Maybe<VendorDateTimeType>;\n description?: Maybe<Scalars['String']['output']>;\n location?: Maybe<LocationType>;\n};\n\n/** Vendor product input type */\nexport type VendorProductInputType = {\n foodFlavors: Array<InputMaybe<FoodFlavorEnumType>>;\n packaging: Array<InputMaybe<Scalars['String']['input']>>;\n priceRange: VendorApplyFormPriceRangeInputType;\n producedIn?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;\n};\n\n/** Vendor product list input type */\nexport type VendorProductListInputType = {\n description?: InputMaybe<Scalars['String']['input']>;\n name: Scalars['String']['input'];\n price: Scalars['Float']['input'];\n priceUnit: Scalars['String']['input'];\n productGroups?: InputMaybe<Array<Scalars['String']['input']>>;\n};\n\n/** Vendor product list type */\nexport type VendorProductListType = {\n description?: Maybe<Scalars['String']['output']>;\n name: Scalars['String']['output'];\n price: Scalars['Float']['output'];\n priceUnit: Scalars['String']['output'];\n productGroups?: Maybe<Array<Scalars['String']['output']>>;\n};\n\n/** Vendor product type */\nexport type VendorProductType = {\n foodFlavors: Array<FoodFlavorEnumType>;\n packaging?: Maybe<Array<Scalars['String']['output']>>;\n priceRange: MaxMinType;\n producedIn?: Maybe<Array<Scalars['String']['output']>>;\n};\n\n/** Vendor products input type */\nexport type VendorProductsInputType = {\n active?: InputMaybe<Scalars['Boolean']['input']>;\n productsList?: InputMaybe<Array<InputMaybe<VendorProductListInputType>>>;\n};\n\n/** Vendor products type */\nexport type VendorProductsType = {\n active?: Maybe<Scalars['Boolean']['output']>;\n productsList?: Maybe<Array<VendorProductListType>>;\n};\n\n/** Vendor requirements input type */\nexport type VendorRequirementsInputType = {\n electricity: VendorAttributesInputType;\n gazebo: VendorAttributesInputType;\n table: VendorAttributesInputType;\n};\n\n/** Vendor requirements type */\nexport type VendorRequirementsType = {\n electricity: VendorAttributesType;\n gazebo: VendorAttributesType;\n table: VendorAttributesType;\n};\n\n/** Vendor stall info input type */\nexport type VendorStallInfoInputType = {\n size: VendorApplyFormStallSizeInputType;\n};\n\n/** Vendor stall info type */\nexport type VendorStallInfoType = {\n size: DepthWidthType;\n};\n\n/** Vendor type */\nexport type VendorType = {\n _id: Scalars['ID']['output'];\n active: Scalars['Boolean']['output'];\n adIds?: Maybe<Array<Maybe<Scalars['ID']['output']>>>;\n approvedAt?: Maybe<Scalars['Date']['output']>;\n availability?: Maybe<VendorAvailabilityType>;\n calendar?: Maybe<VendorCalendarType>;\n categories: Array<CategoryType>;\n claimed: Scalars['Boolean']['output'];\n contactDetails?: Maybe<ContactDetailsType>;\n cover: ResourceImageType;\n createdAt: Scalars['Date']['output'];\n deletedAt?: Maybe<Scalars['Date']['output']>;\n description: Scalars['String']['output'];\n foodTruck: Scalars['Boolean']['output'];\n images?: Maybe<Array<ResourceImageType>>;\n logo?: Maybe<ResourceImageType>;\n name: Scalars['String']['output'];\n owner: OwnerType;\n posterUsage?: Maybe<PosterUsageType>;\n products?: Maybe<VendorProductsType>;\n promoCodes?: Maybe<Array<Scalars['String']['output']>>;\n rating?: Maybe<Scalars['Float']['output']>;\n region: Scalars['String']['output'];\n relatedPost?: Maybe<RelatedPostType>;\n relations?: Maybe<Array<ResourceRelationType>>;\n reviewCount?: Maybe<Scalars['Int']['output']>;\n sharePublic?: Maybe<SocialShareResourceType>;\n shareRelation?: Maybe<SocialShareResourceType>;\n slug: Scalars['String']['output'];\n socialMedia?: Maybe<Array<SocialMediaType>>;\n termsAgreement?: Maybe<TermsAgreementType>;\n unregisteredVendorId?: Maybe<Scalars['ID']['output']>;\n updatedAt: Scalars['Date']['output'];\n vendorInfoId?: Maybe<Scalars['ID']['output']>;\n vendorType: VendorEnumType;\n};\n\n/** Verification type enum */\nexport enum VerificationEnumType {\n Register = 'register',\n ResetPassword = 'resetPassword'\n}\n\n/** Video content data input type */\nexport type VideoContentDataInputType = {\n source: Scalars['String']['input'];\n title?: InputMaybe<Scalars['String']['input']>;\n};\n\n/** Video content data type */\nexport type VideoContentDataType = {\n source: Scalars['String']['output'];\n title?: Maybe<Scalars['String']['output']>;\n};\n","/**\n * Adapters between generated GraphQL Event entity types and form/UI shapes.\n *\n * GraphQL entities are not form state — these converters make the differences\n * explicit (null vs undefined, required vs draft-optional social fields,\n * string categories vs form unions, EventType vs EventListItemType).\n */\nimport { ResourceTypeEnum, SocialMediaEnumType } from \"../generated/graphql\";\nimport type {\n DateTimeType,\n EventInfoType,\n EventListItemType,\n EventType,\n RefundPolicyType,\n RequirementType,\n SocialMediaType as GraphqlSocialMediaType,\n} from \"../generated/graphql\";\n\nimport type {\n DateTimeWithPriceType,\n EventFormData,\n EventInfoFormData,\n PaymentInfoType,\n RefundPolicy,\n Requirement,\n StallType,\n} from \"./event\";\nimport type { PromoCodeType, ResourceDetails, SocialMediaType } from \"./global\";\nimport { PROMO_CODE_PREFIX } from \"./global\";\n\nfunction toPromoCodeType(code: string): PromoCodeType {\n if (!code.startsWith(PROMO_CODE_PREFIX)) {\n throw new Error(`Invalid promo code from GraphQL: ${JSON.stringify(code)}`);\n }\n return code as PromoCodeType;\n}\n\nconst REQUIREMENT_CATEGORIES = [\n \"Food Safety\",\n \"Environment\",\n \"Operations\",\n \"Legal & Safety\",\n] as const satisfies readonly Requirement[\"category\"][];\n\nconst REFUND_CATEGORIES = [\n \"Cancelled by Organiser\",\n \"Cancelled by Vendor\",\n] as const satisfies readonly RefundPolicy[\"category\"][];\n\nfunction isRequirementCategory(\n value: string,\n): value is Requirement[\"category\"] {\n return (REQUIREMENT_CATEGORIES as readonly string[]).includes(value);\n}\n\nfunction isRefundCategory(value: string): value is RefundPolicy[\"category\"] {\n return (REFUND_CATEGORIES as readonly string[]).includes(value);\n}\n\nfunction isSocialMediaName(value: string): value is SocialMediaEnumType {\n return (Object.values(SocialMediaEnumType) as string[]).includes(value);\n}\n\n/**\n * GraphQL SocialMediaType requires name+link once stored.\n * Form SocialMediaType keeps both optional so drafts can leave rows blank.\n */\nexport function toFormSocialMedia(\n socialMedia: ReadonlyArray<GraphqlSocialMediaType> | null | undefined,\n): SocialMediaType[] | null {\n if (socialMedia == null) {\n return null;\n }\n return socialMedia.map((item) => ({\n link: item.link,\n name: isSocialMediaName(item.name) ? item.name : undefined,\n }));\n}\n\nexport function toFormRequirement(item: RequirementType): Requirement {\n if (!isRequirementCategory(item.category)) {\n throw new Error(\n `Invalid requirement category from GraphQL: ${JSON.stringify(item.category)}`,\n );\n }\n return {\n category: item.category,\n label: item.label,\n value: item.value,\n };\n}\n\nexport function toFormRefundPolicy(item: RefundPolicyType): RefundPolicy {\n if (!isRefundCategory(item.category)) {\n throw new Error(\n `Invalid refund-policy category from GraphQL: ${JSON.stringify(item.category)}`,\n );\n }\n return {\n category: item.category,\n label: item.label,\n value: item.value,\n };\n}\n\nfunction toFormStallType(stall: {\n label: string;\n price: number;\n stallCapacity: number;\n}): StallType {\n return {\n label: stall.label,\n price: stall.price,\n stallCapacity: stall.stallCapacity,\n };\n}\n\nfunction toFormDateTimeWithPrice(\n row: EventInfoType[\"dateTime\"][number],\n): DateTimeWithPriceType {\n return {\n dateStatus: row.dateStatus,\n endDate: row.endDate,\n endTime: row.endTime,\n stallTypes: row.stallTypes.map(toFormStallType),\n startDate: row.startDate,\n startTime: row.startTime,\n };\n}\n\nfunction toFormPaymentInfo(\n item: EventInfoType[\"paymentInfo\"][number],\n): PaymentInfoType {\n return {\n accountHolderName: item.accountHolderName ?? undefined,\n accountNumber: item.accountNumber ?? undefined,\n link: item.link ?? undefined,\n paymentMethod: item.paymentMethod,\n };\n}\n\n/**\n * Project a full EventType onto EventListItemType fields.\n * Needed because the two GraphQL object types are distinct (__typename) even\n * when the list-item fields are a subset of the full event.\n */\nexport function eventToEventListItem(event: EventType): EventListItemType {\n return {\n _id: event._id,\n active: event.active,\n approvedAt: event.approvedAt,\n claimed: event.claimed,\n cover: event.cover,\n createdAt: event.createdAt,\n dateTime: event.dateTime,\n deletedAt: event.deletedAt,\n description: event.description,\n eventType: event.eventType,\n googlePlaceId: event.googlePlaceId,\n images: event.images ?? undefined,\n location: event.location,\n logo: event.logo,\n name: event.name,\n rainOrShine: event.rainOrShine,\n rating: event.rating,\n region: event.region,\n relations: event.relations ?? undefined,\n reviewCount: event.reviewCount,\n slug: event.slug,\n updatedAt: event.updatedAt,\n };\n}\n\n/**\n * Convert a stored Event entity into EventFormData for create/edit forms.\n * Maps GraphQL nullability (undefined / Maybe) onto form null defaults and\n * converts GraphQL social media into draft-optional form rows.\n */\nexport function eventToFormData(event: EventType): EventFormData {\n return {\n _id: event._id,\n active: event.active,\n claimed: event.claimed,\n contactDetails: event.contactDetails ?? null,\n cover: event.cover,\n coverUpload: null,\n dateTime: event.dateTime,\n description: event.description,\n eventType: event.eventType,\n googlePlaceId: event.googlePlaceId ?? null,\n images: event.images ?? null,\n imagesUpload: null,\n location: event.location,\n logo: event.logo ?? null,\n logoUpload: null,\n name: event.name,\n nzbn: event.nzbn,\n promoCodes: (event.promoCodes ?? [])\n .filter((code): code is string => code != null)\n .map(toPromoCodeType),\n provider: event.provider ?? null,\n rainOrShine: event.rainOrShine,\n region: event.region,\n socialMedia: toFormSocialMedia(event.socialMedia),\n tags: event.tags,\n termsAgreement: event.termsAgreement\n ? {\n appBuildNumber: event.termsAgreement.appBuildNumber,\n appId: event.termsAgreement.appId,\n appVersion: event.termsAgreement.appVersion,\n brand: event.termsAgreement.brand,\n deviceName: event.termsAgreement.deviceName,\n installationId: event.termsAgreement.installationId,\n manufacturer: event.termsAgreement.manufacturer,\n modelName: event.termsAgreement.modelName,\n osName: event.termsAgreement.osName,\n osVersion: event.termsAgreement.osVersion,\n termVersion: event.termsAgreement.termVersion,\n timestamp: event.termsAgreement.timestamp,\n }\n : null,\n };\n}\n\nexport type EventInfoToFormDataOptions = {\n /** Default checkbox rows merged in when editing so unchecked options remain visible. */\n defaultRefundPolicy?: RefundPolicy[];\n defaultRequirements?: Requirement[];\n};\n\n/**\n * Convert EventInfoType into EventInfoFormData, optionally merging default\n * requirement/refund checkbox options that are not yet saved on the server.\n */\nexport function eventInfoToFormData(\n eventInfo: EventInfoType,\n options: EventInfoToFormDataOptions = {},\n): EventInfoFormData {\n const savedRefund = eventInfo.refundPolicy.map(toFormRefundPolicy);\n const savedRequirements = (eventInfo.requirements ?? []).map(\n toFormRequirement,\n );\n\n const refundPolicy = [\n ...savedRefund,\n ...(options.defaultRefundPolicy ?? []).filter(\n (option) => !savedRefund.some((saved) => saved.label === option.label),\n ),\n ];\n\n const requirements = [\n ...savedRequirements,\n ...(options.defaultRequirements ?? []).filter(\n (option) =>\n !savedRequirements.some((saved) => saved.label === option.label),\n ),\n ];\n\n return {\n _id: eventInfo._id,\n applicationDeadlineHours: eventInfo.applicationDeadlineHours,\n dateTime: eventInfo.dateTime.map(toFormDateTimeWithPrice),\n eventId: eventInfo.eventId,\n packInTime: eventInfo.packInTime,\n paymentDueHours: eventInfo.paymentDueHours,\n paymentInfo: eventInfo.paymentInfo.map(toFormPaymentInfo),\n refundPolicy,\n requirements,\n };\n}\n\n/**\n * Build EventInfoFormData when no EventInfo exists yet, seeding date rows\n * from the parent Event's dateTime (empty stallTypes).\n */\nexport function eventToNewEventInfoFormData(\n event: EventType,\n options: {\n defaultRefundPolicy: RefundPolicy[];\n defaultRequirements: Requirement[];\n },\n): EventInfoFormData {\n return {\n applicationDeadlineHours: 48,\n dateTime: event.dateTime.map((date) => ({\n dateStatus: date.dateStatus,\n endDate: date.endDate,\n endTime: date.endTime,\n stallTypes: [],\n startDate: date.startDate,\n startTime: date.startTime,\n })),\n eventId: event._id,\n packInTime: 2,\n paymentDueHours: 24,\n paymentInfo: [],\n refundPolicy: options.defaultRefundPolicy,\n requirements: options.defaultRequirements,\n };\n}\n\n/**\n * Ad picker needs a non-null description string even when EventListItemType\n * omits description (list query field is optional in the schema).\n */\nexport function eventListItemToAdSelectableResource(event: EventListItemType): {\n _id: string;\n cover: NonNullable<EventListItemType[\"cover\"]>;\n description: string;\n images?: EventListItemType[\"images\"];\n logo?: EventListItemType[\"logo\"];\n name: string;\n region: string;\n slug: string;\n} {\n if (event.cover == null) {\n throw new Error(\n `EventListItem ${event._id} is missing cover; cannot build ad resource.`,\n );\n }\n return {\n _id: event._id,\n cover: event.cover,\n description: event.description ?? \"\",\n images: event.images,\n logo: event.logo,\n name: event.name,\n region: event.region,\n slug: event.slug,\n };\n}\n\n/**\n * Map a list-item event into ResourceDetails for mobile action sheets.\n * Coerces GraphQL `description?: string | null` to `string | null`.\n */\nexport function eventListItemToResourceDetails(\n item: EventListItemType,\n resourceType: ResourceTypeEnum,\n): ResourceDetails {\n return {\n dateTime: item.dateTime,\n description: item.description ?? null,\n eventStatus: {\n claimed: item.claimed,\n eventType: item.eventType,\n googlePlaceId: item.googlePlaceId ?? null,\n },\n location: item.location,\n resourceCover: item.cover ?? null,\n resourceId: item._id,\n resourceLogo: item.logo ?? null,\n resourceName: item.name,\n resourceType,\n };\n}\n\n/**\n * Seed create-event form fields from a Google-place EventListItem match.\n * Merges onto caller-supplied defaults (does not invent missing form fields).\n */\nexport function eventListItemToCreateEventFormSeed(\n item: EventListItemType,\n defaults: EventFormData,\n): EventFormData {\n return {\n ...defaults,\n active: item.active,\n claimed: item.claimed,\n dateTime: item.dateTime,\n description: item.description ?? \"\",\n eventType: item.eventType,\n googlePlaceId: item.googlePlaceId,\n location: { ...item.location },\n name: item.name,\n rainOrShine: item.rainOrShine,\n region: item.region,\n };\n}\n\n/**\n * Narrow EventDateTimeWithPriceType rows to DateTimeType for consumers that\n * only need schedule fields (e.g. JSON-LD enrichment).\n */\nexport function eventInfoDateTimeToDateTime(\n rows: EventInfoType[\"dateTime\"],\n): DateTimeType[] {\n return rows.map((row) => ({\n dateStatus: row.dateStatus,\n endDate: row.endDate,\n endTime: row.endTime,\n startDate: row.startDate,\n startTime: row.startTime,\n }));\n}\n","/**\n * Adapters between generated GraphQL Vendor-family entity types and form/UI shapes.\n *\n * GraphQL entities are not form state — these converters make differences\n * explicit (null vs undefined, CategoryType vs form Category, calendar\n * locations vs VendorCalendarData, social dual-shape).\n */\nimport {\n EventDateStatusEnumType,\n ResourceTypeEnum,\n} from \"../generated/graphql\";\nimport type {\n CategoryType,\n SubcategoryType,\n UnregisteredVendorType,\n VendorInfoType,\n VendorLocationsType,\n VendorType,\n} from \"../generated/graphql\";\n\nimport { toFormSocialMedia } from \"./eventAdapters\";\nimport type {\n Category,\n PromoCodeType,\n Subcategory,\n SubcategoryItems,\n} from \"./global\";\nimport { PROMO_CODE_PREFIX } from \"./global\";\nimport type {\n UnregisteredVendorFormData,\n VendorAttributes,\n VendorCalendarData,\n VendorFormData,\n VendorInfoFormData,\n} from \"./vendor\";\n\nfunction toPromoCodeType(code: string): PromoCodeType {\n if (!code.startsWith(PROMO_CODE_PREFIX)) {\n throw new Error(`Invalid promo code from GraphQL: ${JSON.stringify(code)}`);\n }\n return code as PromoCodeType;\n}\n\nfunction toFormSubcategoryItem(item: {\n id?: string | null;\n name?: string | null;\n}): SubcategoryItems {\n return {\n id: item.id ?? \"\",\n name: item.name ?? \"\",\n };\n}\n\nfunction toFormSubcategory(sub: SubcategoryType): Subcategory {\n return {\n id: sub.id,\n items: (sub.items ?? []).map(toFormSubcategoryItem),\n name: sub.name ?? \"\",\n };\n}\n\n/**\n * GraphQL CategoryType omits form-only color/description and has optional\n * subcategory trees; form Category requires a subcategories array.\n */\nexport function toFormCategory(category: CategoryType): Category {\n return {\n id: category.id,\n name: category.name,\n subcategories: (category.subcategories ?? []).map(toFormSubcategory),\n };\n}\n\n/**\n * GraphQL VendorLocationsType is a thin calendar row (date/location/description).\n * Form VendorCalendarData extends ResourceDetails-like fields used by the\n * calendar UI — fill resource* fields with empty defaults when hydrating.\n */\nexport function toFormVendorCalendarData(\n row: VendorLocationsType,\n): VendorCalendarData {\n const dateTime = row.dateTime;\n if (dateTime == null) {\n throw new Error(\n \"Vendor calendar row is missing dateTime; cannot build form calendar entry.\",\n );\n }\n\n return {\n dateTime: {\n dateStatus: dateTime.dateStatus ?? EventDateStatusEnumType.Upcoming,\n endDate: dateTime.endDate ?? \"\",\n endTime: dateTime.endTime ?? \"\",\n startDate: dateTime.startDate ?? \"\",\n startTime: dateTime.startTime ?? \"\",\n },\n description: row.description ?? null,\n location: row.location ?? null,\n resourceCover: null,\n resourceId: \"\",\n resourceLogo: null,\n resourceName: \"\",\n resourceType: ResourceTypeEnum.Vendor,\n };\n}\n\nfunction toFormVendorAttributes(item: {\n details?: string | null;\n isRequired: boolean;\n}): VendorAttributes {\n return {\n details: item.details ?? null,\n isRequired: item.isRequired,\n };\n}\n\n/**\n * Convert a stored Vendor entity into VendorFormData for create/edit forms.\n */\nexport function vendorToFormData(vendor: VendorType): VendorFormData {\n return {\n _id: vendor._id,\n active: vendor.active,\n availability: vendor.availability\n ? {\n corporate: vendor.availability.corporate,\n private: vendor.availability.private,\n school: vendor.availability.school,\n }\n : undefined,\n calendar: vendor.calendar\n ? {\n active: vendor.calendar.active ?? null,\n calendarData: (vendor.calendar.calendarData ?? []).map(\n toFormVendorCalendarData,\n ),\n }\n : null,\n categories: vendor.categories.map(toFormCategory),\n claimed: vendor.claimed,\n contactDetails: vendor.contactDetails ?? null,\n cover: vendor.cover,\n coverUpload: null,\n description: vendor.description,\n foodTruck: vendor.foodTruck,\n images: vendor.images ?? null,\n imagesUpload: null,\n logo: vendor.logo ?? null,\n logoUpload: null,\n name: vendor.name,\n products: vendor.products\n ? {\n active: vendor.products.active ?? null,\n productsList: vendor.products.productsList ?? [],\n }\n : null,\n promoCodes: (vendor.promoCodes ?? [])\n .filter((code): code is string => code != null)\n .map(toPromoCodeType),\n region: vendor.region,\n socialMedia: toFormSocialMedia(vendor.socialMedia),\n termsAgreement: vendor.termsAgreement\n ? {\n appBuildNumber: vendor.termsAgreement.appBuildNumber,\n appId: vendor.termsAgreement.appId,\n appVersion: vendor.termsAgreement.appVersion,\n brand: vendor.termsAgreement.brand,\n deviceName: vendor.termsAgreement.deviceName,\n installationId: vendor.termsAgreement.installationId,\n manufacturer: vendor.termsAgreement.manufacturer,\n modelName: vendor.termsAgreement.modelName,\n osName: vendor.termsAgreement.osName,\n osVersion: vendor.termsAgreement.osVersion,\n termVersion: vendor.termsAgreement.termVersion,\n timestamp: vendor.termsAgreement.timestamp,\n }\n : null,\n unregisteredVendorId: vendor.unregisteredVendorId ?? null,\n vendorType: vendor.vendorType,\n };\n}\n\n/**\n * Convert VendorInfoType into VendorInfoFormData.\n * Documents/product arrays are normalized; requirements are optional on GraphQL.\n */\nexport function vendorInfoToFormData(\n vendorInfo: VendorInfoType,\n): VendorInfoFormData {\n return {\n _id: vendorInfo._id,\n compliance: vendorInfo.compliance\n ? {\n foodBeverageLicense: vendorInfo.compliance.foodBeverageLicense,\n liabilityInsurance: vendorInfo.compliance.liabilityInsurance,\n }\n : undefined,\n documents: vendorInfo.documents ?? null,\n documentsUpload: null,\n product: {\n foodFlavors: vendorInfo.product.foodFlavors,\n packaging: vendorInfo.product.packaging ?? [],\n priceRange: {\n max: vendorInfo.product.priceRange.max,\n min: vendorInfo.product.priceRange.min,\n },\n producedIn: vendorInfo.product.producedIn ?? [],\n },\n requirements: vendorInfo.requirements\n ? {\n electricity: toFormVendorAttributes(\n vendorInfo.requirements.electricity,\n ),\n gazebo: toFormVendorAttributes(vendorInfo.requirements.gazebo),\n table: toFormVendorAttributes(vendorInfo.requirements.table),\n }\n : undefined,\n stallInfo: {\n size: {\n depth: vendorInfo.stallInfo.size.depth,\n width: vendorInfo.stallInfo.size.width,\n },\n },\n vendorId: vendorInfo.vendorId,\n };\n}\n\n/**\n * UnregisteredVendor is not a BaseResourceType subset — independent adapter.\n * Form create/edit uses top-level dateTime + inviterId; entity stores invitations[].\n * When hydrating an existing entity for a single-invitation edit flow, prefer\n * the first invitation (call sites that need a specific inviter should filter).\n */\nexport function unregisteredVendorToFormData(\n vendor: UnregisteredVendorType,\n options?: { inviterId?: string },\n): UnregisteredVendorFormData {\n const invitation =\n options?.inviterId != null\n ? vendor.invitations.find((row) => row.inviterId === options.inviterId)\n : vendor.invitations[0];\n\n if (invitation == null) {\n throw new Error(\n `UnregisteredVendor ${vendor._id} has no invitation to hydrate form dateTime/inviterId.`,\n );\n }\n\n return {\n categoryIds: vendor.categoryIds,\n dateTime: invitation.dateTime,\n email: vendor.email ?? null,\n inviterId: invitation.inviterId,\n name: vendor.name,\n region: vendor.region,\n };\n}\n\n/**\n * Ad picker selectable resource projection for Vendor.\n */\nexport function vendorToAdSelectableResource(vendor: VendorType): {\n _id: string;\n cover: VendorType[\"cover\"];\n description: string;\n images?: VendorType[\"images\"];\n logo?: VendorType[\"logo\"];\n name: string;\n region: string;\n slug: string;\n} {\n return {\n _id: vendor._id,\n cover: vendor.cover,\n description: vendor.description,\n images: vendor.images,\n logo: vendor.logo,\n name: vendor.name,\n region: vendor.region,\n slug: vendor.slug,\n };\n}\n","/**\n * Canonical permission IDs. Add new permissions here first, then map them in\n * ROLE_PERMISSIONS. Prefer resource.action names (e.g. users.read).\n */\nexport const PERMISSIONS = [\n \"*\",\n // Dashboards\n \"dashboard.admin\",\n \"dashboard.affiliate\",\n \"dashboard.customer\",\n \"dashboard.event\",\n \"dashboard.partner\",\n \"dashboard.school\",\n \"dashboard.vendor\",\n // Admin: users\n \"users.delete\",\n \"users.read\",\n \"users.update\",\n // Admin: events\n \"events.create\",\n \"events.delete\",\n \"events.read\",\n \"events.update\",\n // Admin: vendors\n \"vendors.create\",\n \"vendors.delete\",\n \"vendors.read\",\n \"vendors.update\",\n // Admin: partners\n \"partners.create\",\n \"partners.delete\",\n \"partners.read\",\n \"partners.update\",\n // Admin: schools\n \"schools.create\",\n \"schools.delete\",\n \"schools.read\",\n \"schools.update\",\n // Admin: affiliates\n \"affiliates.create\",\n \"affiliates.delete\",\n \"affiliates.read\",\n \"affiliates.update\",\n // Admin: ads / posts / settings\n \"ads.create\",\n \"ads.delete\",\n \"ads.read\",\n \"ads.update\",\n \"posts.create\",\n \"posts.delete\",\n \"posts.read\",\n \"posts.update\",\n \"settings.read\",\n \"settings.update\",\n // Product: own-resource management\n \"affiliates.manage_own\",\n \"events.manage_own\",\n \"partners.manage_own\",\n \"schools.manage_own\",\n \"vendors.manage_own\",\n] as const;\n\nexport type Permission = (typeof PERMISSIONS)[number];\n\nexport const WILDCARD_PERMISSION: Permission = \"*\";\n","import { UserRoleEnumType } from \"../../generated/graphql\";\n\nimport type { Permission } from \"./permissions\";\n\nconst ADMIN_PERMISSIONS: readonly Permission[] = [\n \"dashboard.admin\",\n \"events.read\",\n \"events.create\",\n \"events.update\",\n \"events.delete\",\n \"vendors.read\",\n \"vendors.create\",\n \"vendors.update\",\n \"vendors.delete\",\n \"partners.read\",\n \"partners.create\",\n \"partners.update\",\n \"partners.delete\",\n \"schools.read\",\n \"schools.create\",\n \"schools.update\",\n \"schools.delete\",\n \"affiliates.read\",\n \"affiliates.create\",\n \"affiliates.update\",\n \"affiliates.delete\",\n \"ads.read\",\n \"ads.create\",\n \"ads.update\",\n \"ads.delete\",\n \"posts.read\",\n \"posts.create\",\n \"posts.update\",\n \"posts.delete\",\n];\n\n/**\n * Static role → permissions map. Source of truth for access.\n * Permissions for a user = union of all their roles' lists.\n */\nexport const ROLE_PERMISSIONS: Record<UserRoleEnumType, readonly Permission[]> =\n {\n [UserRoleEnumType.SuperAdmin]: [\"*\"],\n [UserRoleEnumType.Admin]: ADMIN_PERMISSIONS,\n [UserRoleEnumType.Customer]: [\"dashboard.customer\"],\n [UserRoleEnumType.Event]: [\"dashboard.event\", \"events.manage_own\"],\n [UserRoleEnumType.Vendor]: [\"dashboard.vendor\", \"vendors.manage_own\"],\n [UserRoleEnumType.Partner]: [\"dashboard.partner\", \"partners.manage_own\"],\n [UserRoleEnumType.School]: [\"dashboard.school\", \"schools.manage_own\"],\n [UserRoleEnumType.Affiliate]: [\n \"dashboard.affiliate\",\n \"affiliates.manage_own\",\n ],\n };\n","import { UserRoleEnumType } from \"../../generated/graphql\";\n\nimport { hasAnyRole } from \"./helpers\";\n\n/** Roles allowed to sign into the admin web app (CUSTOMER-only is denied). */\nexport const ADMIN_APP_ROLES = [\n UserRoleEnumType.SuperAdmin,\n UserRoleEnumType.Admin,\n UserRoleEnumType.Event,\n UserRoleEnumType.Vendor,\n UserRoleEnumType.Partner,\n UserRoleEnumType.School,\n UserRoleEnumType.Affiliate,\n] as const;\n\nexport type AdminAppRole = (typeof ADMIN_APP_ROLES)[number];\n\nexport type AdminDashboardContext =\n | \"staff\"\n | \"event\"\n | \"vendor\"\n | \"partner\"\n | \"school\"\n | \"affiliate\";\n\nexport type AdminDashboardContextInfo = {\n context: AdminDashboardContext;\n home: string;\n label: string;\n /** Path prefixes that belong to this context (including home). */\n pathPrefixes: readonly string[];\n roles: readonly UserRoleEnumType[];\n};\n\n/**\n * Priority order for default home + role switcher.\n * Staff first, then product roles.\n */\nexport const ADMIN_DASHBOARD_CONTEXTS: readonly AdminDashboardContextInfo[] = [\n {\n context: \"staff\",\n home: \"/dashboard\",\n label: \"Staff\",\n pathPrefixes: [\"/dashboard\"],\n roles: [UserRoleEnumType.SuperAdmin, UserRoleEnumType.Admin],\n },\n {\n context: \"event\",\n home: \"/event/dashboard\",\n label: \"Events\",\n pathPrefixes: [\"/event\"],\n roles: [UserRoleEnumType.Event],\n },\n {\n context: \"vendor\",\n home: \"/vendor/dashboard\",\n label: \"Stallholders\",\n pathPrefixes: [\"/vendor\"],\n roles: [UserRoleEnumType.Vendor],\n },\n {\n context: \"partner\",\n home: \"/partner/dashboard\",\n label: \"Partners\",\n pathPrefixes: [\"/partner\"],\n roles: [UserRoleEnumType.Partner],\n },\n {\n context: \"school\",\n home: \"/school/dashboard\",\n label: \"Schools\",\n pathPrefixes: [\"/school\"],\n roles: [UserRoleEnumType.School],\n },\n {\n context: \"affiliate\",\n home: \"/affiliate/dashboard\",\n label: \"Affiliate\",\n pathPrefixes: [\"/affiliate\"],\n roles: [UserRoleEnumType.Affiliate],\n },\n] as const;\n\nexport function canAccessAdminApp(\n roles: UserRoleEnumType[] | null | undefined,\n): boolean {\n return hasAnyRole(roles, ADMIN_APP_ROLES);\n}\n\nexport function getUsableAdminContexts(\n roles: UserRoleEnumType[] | null | undefined,\n): AdminDashboardContextInfo[] {\n return ADMIN_DASHBOARD_CONTEXTS.filter((ctx) => hasAnyRole(roles, ctx.roles));\n}\n\nexport function getDefaultAdminHome(\n roles: UserRoleEnumType[] | null | undefined,\n preferredContext?: AdminDashboardContext | null,\n): string {\n const usable = getUsableAdminContexts(roles);\n if (usable.length === 0) {\n return \"/login\";\n }\n\n if (preferredContext) {\n const preferred = usable.find((ctx) => ctx.context === preferredContext);\n if (preferred) return preferred.home;\n }\n\n return usable[0].home;\n}\n\nexport function resolveAdminContextFromPath(\n pathname: string,\n): AdminDashboardContext | null {\n for (const ctx of ADMIN_DASHBOARD_CONTEXTS) {\n if (\n ctx.pathPrefixes.some(\n (prefix) => pathname === prefix || pathname.startsWith(`${prefix}/`),\n )\n ) {\n return ctx.context;\n }\n }\n return null;\n}\n\nexport function canAccessAdminPath(\n roles: UserRoleEnumType[] | null | undefined,\n pathname: string,\n): boolean {\n if (!canAccessAdminApp(roles)) return false;\n\n const context = resolveAdminContextFromPath(pathname);\n if (!context) {\n // Authenticated admin-app users may hit non-dashboard admin routes later;\n // unknown paths are allowed only if they have any admin-app role.\n return true;\n }\n\n const info = ADMIN_DASHBOARD_CONTEXTS.find((ctx) => ctx.context === context);\n if (!info) return false;\n return hasAnyRole(roles, info.roles);\n}\n","/**\n * Adapters between generated GraphQL User/Auth entity types and form/UI shapes.\n *\n * GraphQL UserType is already the redacted client shape (no password /\n * refreshToken). These converters make remaining differences explicit:\n * branded promo codes, draft-optional terms, permission string → Permission,\n * and entity-to-form bridging (password fields stay empty — never round-trip).\n */\nimport type { Permission } from \"../auth/permissions\";\nimport { PERMISSIONS } from \"../auth/permissions\";\nimport type { UserType } from \"../generated/graphql\";\n\nimport type { PromoCodeType } from \"./global\";\nimport { PROMO_CODE_PREFIX } from \"./global\";\nimport type { UserFormData } from \"./user\";\n\nconst PERMISSION_SET = new Set<string>(PERMISSIONS);\n\nexport function toUserPermissions(\n permissions: ReadonlyArray<string>,\n): Permission[] {\n return permissions.filter((permission): permission is Permission =>\n PERMISSION_SET.has(permission),\n );\n}\n\nexport function toUserPromoCodes(\n codes: ReadonlyArray<string> | null | undefined,\n): PromoCodeType[] | null {\n if (codes == null) {\n return null;\n }\n return codes.map((code) => {\n if (!code.startsWith(PROMO_CODE_PREFIX)) {\n throw new Error(\n `Invalid promo code from GraphQL: ${JSON.stringify(code)}`,\n );\n }\n return code as PromoCodeType;\n });\n}\n\n/**\n * Convert a stored GraphQL UserType into UserFormData for profile edit forms.\n *\n * Password / confirmPassword are never populated from the entity (GraphQL\n * UserType does not include them). avatarUpload is a local draft field.\n * termsAgreement is copied field-by-field (form TermsAgreement vs GraphQL\n * TermsAgreementType — same fields, kept explicit like other resources).\n */\nexport function userToFormData(user: UserType): UserFormData {\n return {\n _id: user._id,\n active: user.active,\n avatar: user.avatar ?? null,\n avatarUpload: null,\n confirmPassword: null,\n email: user.email,\n firstName: user.firstName,\n isTester: user.isTester,\n lastName: user.lastName,\n location: user.location ?? null,\n password: null,\n platform: user.platform ?? undefined,\n preferredRegion: user.preferredRegion,\n termsAgreement: user.termsAgreement\n ? {\n appBuildNumber: user.termsAgreement.appBuildNumber,\n appId: user.termsAgreement.appId,\n appVersion: user.termsAgreement.appVersion,\n brand: user.termsAgreement.brand,\n deviceName: user.termsAgreement.deviceName,\n installationId: user.termsAgreement.installationId,\n manufacturer: user.termsAgreement.manufacturer,\n modelName: user.termsAgreement.modelName,\n osName: user.termsAgreement.osName,\n osVersion: user.termsAgreement.osVersion,\n termVersion: user.termsAgreement.termVersion,\n timestamp: user.termsAgreement.timestamp,\n }\n : null,\n };\n}\n","/**\n * Adapters between generated GraphQL Partner entity types and form/UI shapes.\n *\n * GraphQL entities are not form state — these converters make the differences\n * explicit (null vs undefined, required vs draft-optional social fields,\n * promo-code branding).\n */\nimport type { PartnerType } from \"../generated/graphql\";\n\nimport { toFormSocialMedia } from \"./eventAdapters\";\nimport type { PromoCodeType } from \"./global\";\nimport { PROMO_CODE_PREFIX } from \"./global\";\nimport type { PartnerFormData } from \"./partner\";\n\nfunction toPromoCodeType(code: string): PromoCodeType {\n if (!code.startsWith(PROMO_CODE_PREFIX)) {\n throw new Error(`Invalid promo code from GraphQL: ${JSON.stringify(code)}`);\n }\n return code as PromoCodeType;\n}\n\n/**\n * Convert a stored Partner entity into PartnerFormData for create/edit forms.\n * Maps GraphQL nullability onto form null defaults and converts GraphQL\n * social media into draft-optional form rows (same dual-shape as Event).\n */\nexport function partnerToFormData(partner: PartnerType): PartnerFormData {\n return {\n _id: partner._id,\n active: partner.active,\n contactDetails: partner.contactDetails ?? null,\n cover: partner.cover,\n coverUpload: null,\n description: partner.description,\n images: partner.images ?? null,\n imagesUpload: null,\n location: partner.location,\n logo: partner.logo ?? null,\n logoUpload: null,\n name: partner.name,\n nzbn: partner.nzbn,\n partnerType: partner.partnerType,\n promoCodes: (partner.promoCodes ?? [])\n .filter((code): code is string => code != null)\n .map(toPromoCodeType),\n region: partner.region,\n socialMedia: toFormSocialMedia(partner.socialMedia),\n termsAgreement: partner.termsAgreement\n ? {\n appBuildNumber: partner.termsAgreement.appBuildNumber,\n appId: partner.termsAgreement.appId,\n appVersion: partner.termsAgreement.appVersion,\n brand: partner.termsAgreement.brand,\n deviceName: partner.termsAgreement.deviceName,\n installationId: partner.termsAgreement.installationId,\n manufacturer: partner.termsAgreement.manufacturer,\n modelName: partner.termsAgreement.modelName,\n osName: partner.termsAgreement.osName,\n osVersion: partner.termsAgreement.osVersion,\n termVersion: partner.termsAgreement.termVersion,\n timestamp: partner.termsAgreement.timestamp,\n }\n : null,\n };\n}\n\n/**\n * Ad picker needs the same selectable shape Event uses. Partner already has\n * required description + cover in the schema; this still normalizes optional\n * images/logo for the shared ad form builder.\n */\nexport function partnerToAdSelectableResource(partner: PartnerType): {\n _id: string;\n cover: PartnerType[\"cover\"];\n description: string;\n images?: PartnerType[\"images\"];\n logo?: PartnerType[\"logo\"];\n name: string;\n region: string;\n slug: string;\n} {\n return {\n _id: partner._id,\n cover: partner.cover,\n description: partner.description,\n images: partner.images,\n logo: partner.logo,\n name: partner.name,\n region: partner.region,\n slug: partner.slug,\n };\n}\n","const OBJECT_ID_PATH_SEGMENT = \"[a-f0-9]{24}\";\nconst OBJECT_ID_PATH_SEGMENT_END = `${OBJECT_ID_PATH_SEGMENT}$`;\n\nexport const gameScreenIdentifierList = [\n {\n clue: \"Where your actions turn into a timeline.\",\n id: \"activities\",\n match: \"/profile/activities\",\n },\n {\n clue: \"Where conversations happen without speaking.\",\n id: \"chat\",\n match: \"/profile/chat\",\n },\n {\n clue: \"The place to redefine who you are.\",\n id: \"edit-profile\",\n match: \"/profile/edit-profile\",\n },\n {\n clue: \"A single moment worth showing up for.\",\n id: \"single-event\",\n match: new RegExp(`^/events/${OBJECT_ID_PATH_SEGMENT_END}`),\n },\n {\n clue: \"What’s happening around you, right now.\",\n id: \"events-near-me\",\n match: \"/events/events-near-me\",\n },\n {\n clue: \"Where events appear as pins on a map.\",\n id: \"events-map\",\n match: \"/events/events-map\",\n },\n {\n clue: \"A collection of events worth attending.\",\n id: \"events\",\n match: \"/events\",\n },\n {\n clue: \"What’s happening in a wider area — not just nearby.\",\n id: \"events-region\",\n match: /^\\/events\\/region\\/[^/]+$/,\n },\n {\n clue: \"Where fun becomes a challenge.\",\n id: \"games\",\n match: \"/games\",\n },\n {\n clue: \"Your starting point for everything.\",\n id: \"home\",\n match: \"/\",\n },\n {\n clue: \"Where the app whispers what you shouldn’t miss.\",\n id: \"notifications\",\n match: \"/notifications\",\n },\n {\n clue: \"Where you fine-tune your experience.\",\n id: \"options\",\n match: \"/options\",\n },\n {\n clue: \"An organisation or creator supporting the community.\",\n id: \"single-partner\",\n match: new RegExp(`^/partners/${OBJECT_ID_PATH_SEGMENT_END}`),\n },\n {\n clue: \"Organisations and creators supporting the community.\",\n id: \"partners\",\n match: \"/partners\",\n },\n {\n clue: \"A single published post in full view.\",\n id: \"single-visitor-post\",\n match: new RegExp(`^/visitors/post/${OBJECT_ID_PATH_SEGMENT_END}`),\n },\n {\n clue: \"Your identity, on display.\",\n id: \"profile\",\n match: \"/profile\",\n },\n {\n clue: \"One stallholder offering something valuable.\",\n id: \"single-vendor\",\n match: new RegExp(`^/vendors/${OBJECT_ID_PATH_SEGMENT_END}`),\n },\n {\n clue: \"Where every stallholder waits under the right category.\",\n id: \"vendors\",\n match: \"/vendors\",\n },\n {\n clue: \"Where you browse articles and posts from around the platform.\",\n id: \"visitors\",\n match: \"/visitors\",\n },\n] as const;\n\nexport type GamePlacement = (typeof gameScreenIdentifierList)[number][\"id\"];\nexport type GamePlacementClue = (typeof gameScreenIdentifierList)[number][\"clue\"];\n\n/**\n * Runtime shape used by dailyClueGame.ts utilities.\n * Uses JS Date (not ISO string) because it's constructed at runtime.\n * Distinct from the generated DailyClueGameDataType which uses string dates.\n */\nexport type DailyClueGameData = {\n points: number;\n streak: number;\n gameFields: {\n gameDate: { startDate: Date; endDate: Date };\n gameSolution: string;\n };\n lastFoundDate: Date | null;\n letterInfo: {\n collected: string[] | null;\n solutionShuffled: string[];\n todaysClue: GamePlacementClue | null;\n todaysLetter: string | null;\n todaysPlacement: GamePlacement | null;\n };\n};\n","import { GameTypeEnumType } from \"../../generated/graphql\";\n\nexport const gameTypeToDisplayName: Record<GameTypeEnumType, string> = {\n [GameTypeEnumType.DailyClue]: \"Daily Clue\",\n [GameTypeEnumType.MiniQuiz]: \"Mini Quiz\",\n [GameTypeEnumType.OddOneOut]: \"Odd One Out\",\n};\n","/**\n * Adapters between generated GraphQL School entity types and form/UI shapes.\n *\n * GraphQL entities are not form state — these converters make differences\n * explicit (null vs undefined, required vs draft-optional social fields).\n */\nimport type { SchoolType } from \"../generated/graphql\";\n\nimport { toFormSocialMedia } from \"./eventAdapters\";\nimport type { PromoCodeType } from \"./global\";\nimport { PROMO_CODE_PREFIX } from \"./global\";\nimport type { SchoolFormData } from \"./school\";\n\nexport function toSchoolCode(code: string): PromoCodeType {\n if (!code.startsWith(PROMO_CODE_PREFIX)) {\n throw new Error(\n `Invalid school code from GraphQL: ${JSON.stringify(code)}`,\n );\n }\n return code as PromoCodeType;\n}\n\n/**\n * GraphQL SchoolCampaignType dates are ISO strings (Date scalar serialize).\n * Countdown UI / period helpers historically used JS Date — convert explicitly.\n */\nexport function schoolCampaignDatesToJsDates(campaign: {\n endDate: string;\n name: string;\n startDate: string;\n}): { endDate: Date; name: string; startDate: Date } {\n return {\n endDate: new Date(campaign.endDate),\n name: campaign.name,\n startDate: new Date(campaign.startDate),\n };\n}\n\nexport function schoolToFormData(school: SchoolType): SchoolFormData {\n return {\n _id: school._id,\n active: school.active,\n contactDetails: school.contactDetails ?? null,\n location: school.location,\n logo: school.logo ?? null,\n logoUpload: null,\n name: school.name,\n region: school.region,\n socialMedia: toFormSocialMedia(school.socialMedia),\n studentCount: school.studentCount,\n termsAgreement: school.termsAgreement\n ? {\n appBuildNumber: school.termsAgreement.appBuildNumber,\n appId: school.termsAgreement.appId,\n appVersion: school.termsAgreement.appVersion,\n brand: school.termsAgreement.brand,\n deviceName: school.termsAgreement.deviceName,\n installationId: school.termsAgreement.installationId,\n manufacturer: school.termsAgreement.manufacturer,\n modelName: school.termsAgreement.modelName,\n osName: school.termsAgreement.osName,\n osVersion: school.termsAgreement.osVersion,\n termVersion: school.termsAgreement.termVersion,\n timestamp: school.termsAgreement.timestamp,\n }\n : null,\n };\n}\n","import { LicencesEnumType } from \"../generated/graphql\";\n\n/** Tier keys in descending priority (highest first) for licence resolution. */\nexport const TIERS_BY_PRIORITY = [\"pro_plus\", \"pro\", \"standard\"] as const;\n\n/** Canonical subscription tier keys — matches Stripe/server tier identifiers. */\nexport type Tier = (typeof TIERS_BY_PRIORITY)[number];\n\n/** User-facing tier labels (decoupled from the Tier discriminant). */\nexport const TIER_DISPLAY_LABELS: Record<Tier, string> = {\n pro: \"Pro\",\n // eslint-disable-next-line camelcase\n pro_plus: \"Pro+ Ads\",\n standard: \"Standard\",\n};\n\n/** Maps licence enums to their canonical tier key. */\nexport const TIER_FROM_LICENCE: Record<LicencesEnumType, Tier> = {\n [LicencesEnumType.ProEvent]: \"pro\",\n [LicencesEnumType.ProPlusEvent]: \"pro_plus\",\n [LicencesEnumType.ProPlusVendor]: \"pro_plus\",\n [LicencesEnumType.ProVendor]: \"pro\",\n [LicencesEnumType.StandardEvent]: \"standard\",\n [LicencesEnumType.StandardPartner]: \"standard\",\n [LicencesEnumType.StandardVendor]: \"standard\",\n [LicencesEnumType.StandardAffiliate]: \"standard\",\n [LicencesEnumType.StandardSchool]: \"standard\",\n};\n","/**\n * Adapters between generated GraphQL Affiliate entity types and form/UI shapes.\n *\n * GraphQL entities are not form state — these converters make differences\n * explicit (null vs undefined, required vs draft-optional social fields,\n * branded affiliate codes, ISO Date strings vs JS Date).\n */\nimport { AffiliateParticipantTypeEnum } from \"../generated/graphql\";\nimport type { AffiliateType, LocationType } from \"../generated/graphql\";\n\nimport type { AffiliateFormData } from \"./affiliate\";\nimport { toFormSocialMedia } from \"./eventAdapters\";\nimport type { PromoCodeType } from \"./global\";\nimport { PROMO_CODE_PREFIX } from \"./global\";\n\nconst emptyLocation: LocationType = {\n city: \"\",\n country: \"\",\n fullAddress: \"\",\n geo: {\n coordinates: [0, 0],\n type: \"Point\",\n },\n latitude: 0,\n longitude: 0,\n region: \"\",\n};\n\nexport function toAffiliateCode(code: string): PromoCodeType {\n if (!code.startsWith(PROMO_CODE_PREFIX)) {\n throw new Error(\n `Invalid affiliate code from GraphQL: ${JSON.stringify(code)}`,\n );\n }\n return code as PromoCodeType;\n}\n\n/**\n * Convert a stored Affiliate entity into AffiliateFormData for create/edit forms.\n *\n * GraphQL AffiliateDetailsType requires bank/contact/IRD/location/participant\n * once stored; form drafts allow empty strings. Social media is draft-optional\n * (same dual-shape as Event/Partner). GraphQL termsAgreement is NonNull once\n * stored; form keeps it optional until agreed.\n *\n * Bank account fields are copied as-is (same exposure as the GraphQL query —\n * no extra fields, no masking added or removed).\n */\nexport function affiliateToFormData(\n affiliate: Pick<AffiliateType, \"affiliateDetails\">,\n): AffiliateFormData {\n const details = affiliate.affiliateDetails;\n\n return {\n bankAccountDetails: details?.bankAccountDetails ?? {\n accountHolderName: \"\",\n accountNumber: \"\",\n },\n contactDetails: details?.contactDetails ?? {\n mobilePhone: \"\",\n },\n irdNumber: details?.irdNumber ?? \"\",\n location: details?.location ?? emptyLocation,\n participantType:\n details?.participantType ?? (\"\" as AffiliateParticipantTypeEnum),\n socialMedia: toFormSocialMedia(details?.socialMedia),\n termsAgreement: details?.termsAgreement\n ? {\n appBuildNumber: details.termsAgreement.appBuildNumber,\n appId: details.termsAgreement.appId,\n appVersion: details.termsAgreement.appVersion,\n brand: details.termsAgreement.brand,\n deviceName: details.termsAgreement.deviceName,\n installationId: details.termsAgreement.installationId,\n manufacturer: details.termsAgreement.manufacturer,\n modelName: details.termsAgreement.modelName,\n osName: details.termsAgreement.osName,\n osVersion: details.termsAgreement.osVersion,\n termVersion: details.termsAgreement.termVersion,\n timestamp: details.termsAgreement.timestamp,\n }\n : null,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA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,EACb,KAAK;AAAA,IACH,aAAa,CAAC,GAAG,CAAC;AAAA,IAClB,MAAM;AAAA,EACR;AAAA,EACA,UAAU;AAAA,EACV,WAAW;AAAA,EACX,QAAQ;AACV;AAEO,SAAS,gBAAgB,MAA6B;AAC3D,MAAI,CAAC,KAAK,WAAW,iBAAiB,GAAG;AACvC,UAAM,IAAI;AAAA,MACR,wCAAwC,KAAK,UAAU,IAAI,CAAC;AAAA,IAC9D;AAAA,EACF;AACA,SAAO;AACT;AAaO,SAAS,oBACd,WACmB;AACnB,QAAM,UAAU,UAAU;AAE1B,SAAO;AAAA,IACL,oBAAoB,SAAS,sBAAsB;AAAA,MACjD,mBAAmB;AAAA,MACnB,eAAe;AAAA,IACjB;AAAA,IACA,gBAAgB,SAAS,kBAAkB;AAAA,MACzC,aAAa;AAAA,IACf;AAAA,IACA,WAAW,SAAS,aAAa;AAAA,IACjC,UAAU,SAAS,YAAY;AAAA,IAC/B,iBACE,SAAS,mBAAoB;AAAA,IAC/B,aAAa,kBAAkB,SAAS,WAAW;AAAA,IACnD,gBAAgB,SAAS,iBACrB;AAAA,MACE,gBAAgB,QAAQ,eAAe;AAAA,MACvC,OAAO,QAAQ,eAAe;AAAA,MAC9B,YAAY,QAAQ,eAAe;AAAA,MACnC,OAAO,QAAQ,eAAe;AAAA,MAC9B,YAAY,QAAQ,eAAe;AAAA,MACnC,gBAAgB,QAAQ,eAAe;AAAA,MACvC,cAAc,QAAQ,eAAe;AAAA,MACrC,WAAW,QAAQ,eAAe;AAAA,MAClC,QAAQ,QAAQ,eAAe;AAAA,MAC/B,WAAW,QAAQ,eAAe;AAAA,MAClC,aAAa,QAAQ,eAAe;AAAA,MACpC,WAAW,QAAQ,eAAe;AAAA,IACpC,IACA;AAAA,EACN;AACF;","names":["SocialMediaEnumType","toPromoCodeType","toPromoCodeType"]}
1
+ {"version":3,"sources":["../../src/types/index.ts","../../src/types/auth.ts","../../src/types/global.ts","../../src/types/ad.ts","../../src/types/resourceActivities.ts","../../src/types/post.ts","../../src/types/game/index.ts","../../src/types/game/dailyClue.ts","../../src/types/game/global.ts","../../src/types/subscription.ts","../../src/types/affiliate.ts"],"sourcesContent":["export * from \"./admin\";\nexport * from \"./auth\";\nexport * from \"./chat\";\nexport * from \"./contactUs\";\nexport * from \"./global\";\nexport * from \"./event\";\nexport * from \"./notification\";\nexport * from \"./poster\";\nexport * from \"./relation\";\nexport * from \"./vendor\";\nexport * from \"./user\";\nexport * from \"./ad\";\nexport * from \"./resourceActivities\";\nexport * from \"./partner\";\nexport * from \"./post\";\nexport * from \"./pushToken\";\nexport * from \"./appSettings\";\nexport * from \"./googleImportedMarket\";\nexport * from \"./game\";\nexport * from \"./game/dailyClue\";\nexport * from \"./game/global\";\nexport * from \"./game/puzzleGame\";\nexport * from \"./school\";\nexport * from \"./subscription\";\nexport * from \"./affiliate\";\n","import {\n CreateFormData,\n EnumOSPlatform,\n PromoCodeType,\n TermsAgreement,\n} from \"src\";\n\nimport { SafeUserType } from \"./user\";\n\nexport enum EnumVerificationType {\n REGISTER = \"register\",\n RESET_PASSWORD = \"resetPassword\",\n}\n\nexport type LoginFormData = {\n email: string;\n isAdminPage?: boolean;\n password: string;\n platform?: EnumOSPlatform;\n};\n\nexport type CreateLoginFormData = CreateFormData<LoginFormData>;\n\nexport type RegisterFormData = {\n email: string;\n firstName: string;\n lastName: string;\n password: string;\n platform?: EnumOSPlatform;\n preferredRegion: string;\n promoCode?: PromoCodeType | null;\n termsAgreement?: TermsAgreement | null;\n};\n\nexport type CreateRegisterFormData = CreateFormData<RegisterFormData>;\n\nexport type RequestPasswordResetFormData = {\n email: string;\n};\n\nexport type CreateRequestPasswordResetFormData =\n CreateFormData<RequestPasswordResetFormData>;\n\nexport type ResetPasswordFormData = {\n confirmPassword: string;\n email: string;\n password: string;\n};\n\nexport type CreateResetPasswordFormData = CreateFormData<ResetPasswordFormData>;\n\nexport type ValidateVerificationTokenFormData = {\n email: string;\n verificationToken: string;\n verificationType?: EnumVerificationType;\n};\n\nexport type CreateValidateVerificationTokenFormData =\n CreateFormData<ValidateVerificationTokenFormData>;\n\nexport type AuthPayloadType = {\n message: string;\n token: string;\n refreshToken: string | null;\n user: SafeUserType;\n};\n\nexport type RefreshTokenPayloadType = {\n refreshToken: string;\n token: string;\n};\n","import {\n Control,\n FieldValues,\n FormState,\n UseFormGetValues,\n UseFormHandleSubmit,\n UseFormReset,\n UseFormSetValue,\n UseFormWatch,\n} from \"react-hook-form\";\n\nimport {\n EnumEventDateStatus,\n EnumEventType,\n EnumResourceType,\n EnumSocialMedia,\n EnumUserLicence,\n} from \"../enums\";\n\nimport { EventListItemType } from \"./event\";\nimport { EnumPostType } from \"./post\";\nimport { VendorType } from \"./vendor\";\n\nexport const PROMO_CODE_PREFIX = \"CM-\";\n\nexport type PromoCodeType = `${typeof PROMO_CODE_PREFIX}${string}`;\n\nexport type Nullable<T> = {\n [K in keyof T]: T[K] | null | undefined;\n};\n\nexport type DeviceInfo = {\n appBuildNumber: string;\n appId: string;\n appVersion: string;\n brand: string;\n deviceName: string;\n installationId: string;\n manufacturer: string;\n modelName: string;\n osName: string;\n osVersion: string;\n timestamp: string;\n};\n\nexport type TermsAgreement = DeviceInfo & {\n termVersion: string;\n};\n\nexport type ResourceContactDetailsType = {\n email?: string | null;\n landlinePhone?: string | null;\n mobilePhone?: string | null;\n};\n\nexport type ResourceImageType = {\n active: boolean;\n source: string;\n title: string;\n};\n\nexport type SocialMediaType = {\n name?: EnumSocialMedia;\n link?: string;\n};\n\nexport type UserLicenceType = {\n expiryDate: Date;\n issuedDate: Date;\n licenceType: EnumUserLicence;\n prevLicenceType?: EnumUserLicence | null;\n};\n\nexport type AssociateType = {\n email: string;\n resourceId: string;\n resourceType: EnumResourceType;\n licence: UserLicenceType;\n};\n\nexport type OwnerType = {\n email: string;\n userId: string;\n};\n\nexport interface BaseResourceTypeFormData {\n _id?: string;\n active: boolean;\n associates: AssociateType[] | null;\n contactDetails: ResourceContactDetailsType | null;\n cover: ResourceImageType;\n coverUpload?: ResourceImageType | null;\n description: string;\n images?: ResourceImageType[] | null;\n imagesUpload?: ResourceImageType[] | null;\n logo?: ResourceImageType | null;\n logoUpload?: ResourceImageType | null;\n name: string;\n owner?: OwnerType | null;\n promoCodes?: PromoCodeType[] | null;\n region: string;\n socialMedia: SocialMediaType[] | null;\n termsAgreement?: TermsAgreement | null;\n}\n\nexport type PosterUsageType = {\n month: string;\n count: number;\n};\n\nexport type RelatedPostType = {\n postId: string;\n postSlug: string;\n postType: EnumPostType;\n};\n\nexport type SocialShareResourceType = {\n qrCode: ResourceImageType;\n socialImage: ResourceImageType;\n};\n\nexport type BaseResourceType = Omit<\n BaseResourceTypeFormData,\n \"_id\" | \"coverUpload\" | \"imagesUpload\" | \"logoUpload\"\n> & {\n _id: string;\n adIds?: string[] | null;\n createdAt: Date;\n deletedAt: Date | null;\n posterUsage?: PosterUsageType | null;\n rating?: number | null;\n relatedPost?: RelatedPostType | null;\n reviewCount?: number | null;\n slug: string;\n updatedAt: Date | null;\n};\n\nexport type LocationGeoType = {\n coordinates: number[]; // [longitude, latitude]\n type: \"Point\"; // Mongoose GeoJSON type\n};\n\nexport type LocationType = {\n city: string;\n country: string;\n fullAddress: string;\n geo: LocationGeoType;\n latitude: number;\n longitude: number;\n region: string;\n};\n\nexport type DateTimeType = {\n dateStatus: EnumEventDateStatus;\n endDate: string;\n endTime: string;\n startDate: string;\n startTime: string;\n};\n\nexport type Region = {\n latitude: number;\n latitudeDelta: number;\n longitude: number;\n longitudeDelta: number;\n};\n\nexport type ResourceDetails = {\n dateTime: DateTimeType[] | null;\n description: string | null;\n eventStatus?: EventStatusType | null;\n location: LocationType | null;\n resourceCover: ResourceImageType | null;\n resourceId: string;\n resourceLogo: ResourceImageType | null;\n resourceName: string;\n resourceType: EnumResourceType;\n};\n\nexport type GeocodeLocation = Pick<LocationType, \"latitude\" | \"longitude\">;\n\nexport type EventStatusType = {\n claimed: boolean;\n eventType: EnumEventType;\n googlePlaceId?: string | null;\n};\n\nexport interface FormField {\n disabled?: boolean;\n helperText?: string;\n isTextArea?: boolean;\n keyboardType?:\n | \"default\"\n | \"email-address\"\n | \"number-pad\"\n | \"url\"\n | \"decimal-pad\"\n | \"phone-pad\";\n name: string;\n placeholder: string;\n required?: boolean;\n secureTextEntry?: boolean;\n}\n\nexport interface FormDateField {\n dateMode: \"date\" | \"time\";\n helperText?: string;\n name: \"endDate\" | \"endTime\" | \"startDate\" | \"startTime\";\n placeholder: string;\n}\n\nexport interface SubcategoryItems {\n id: string;\n name: string;\n description?: string | null;\n}\n\nexport interface Subcategory {\n id: string;\n name: string;\n items?: SubcategoryItems[] | null;\n}\n\nexport interface Category {\n color?: string | null;\n description?: string | null;\n id: string;\n name: string;\n subcategories: Subcategory[];\n}\n\nexport type OptionItem = {\n value: string;\n label: string;\n};\n\nexport type ImageObjectType = {\n uri: string;\n type: string;\n name: string;\n};\n\nexport interface ResourceConnectionsType {\n events: EventListItemType[] | null;\n vendors: VendorType[] | null;\n}\n\nexport interface CreateFormData<T extends FieldValues> {\n control: Control<T, any>;\n fields: T;\n formState: FormState<T>;\n handleSubmit: UseFormHandleSubmit<T, any>;\n reset: UseFormReset<T>;\n setValue: UseFormSetValue<T>;\n watch: UseFormWatch<T>;\n getValues: UseFormGetValues<T>;\n}\n\nexport interface UseGetResourcesByRegionOptions {\n onlyClaimed?: boolean;\n limit?: number;\n offset?: number;\n}\n","import { EnumResourceType } from \"src/enums\";\n\nimport { CreateFormData } from \"./global\";\n\nexport enum EnumAdShowOn {\n EVENTS_PAGE = \"Events_page\",\n FRONT_PAGE = \"Front_page\",\n PARTNERS_PAGE = \"Partners_page\",\n VENDORS_PAGE = \"Vendors_page\",\n}\n\nexport enum EnumAdStatus {\n ACTIVE = \"Active\",\n PAUSED = \"Paused\",\n EXPIRED = \"Expired\",\n}\n\nexport enum EnumAdType {\n SPONSORED = \"Sponsored\",\n FREE = \"Free\",\n}\n\nexport enum EnumAdStyle {\n BLOOM = \"Bloom\",\n RISE = \"Rise\",\n}\n\nexport type AdResource = {\n adDescription: string;\n adImage: string;\n adStyle: EnumAdStyle;\n adTitle: string;\n adType: EnumAdType;\n resourceId: string;\n resourceName: string;\n resourceRegion: string;\n resourceType: EnumResourceType;\n resourceSlug: string;\n};\n\nexport interface AdFormData {\n active: boolean;\n end: Date; // ISO date string\n resource: AdResource;\n showOn: EnumAdShowOn[];\n start?: Date; // ISO date string\n status: EnumAdStatus;\n targetRegion: string[];\n}\n\n// Form state matches the validation schema: all resource fields are present.\n// Use empty strings / explicit enum defaults in `defaultValues` for \"create\" flows.\nexport type AdFormState = AdFormData;\n\nexport type CreateAdFormData = CreateFormData<AdFormData>;\nexport type CreateAdFormState = CreateFormData<AdFormState>;\n\nexport interface AdType extends AdFormData {\n _id: string;\n clicks?: number; // How many times the ad was clicked\n createdAt: Date;\n impressions?: number; // How often the ad was seen\n start: Date; // ISO date string\n updatedAt: Date | null;\n}\n","import {\n EnumEventDateStatus,\n EnumOSPlatform,\n EnumResourceType,\n} from \"src/enums\";\n\nimport { LocationGeoType } from \"./global\";\n\nexport enum EnumActivity {\n FAVORITE = \"FAVORITE\",\n GOING = \"GOING\",\n INTERESTED = \"INTERESTED\",\n PRESENT = \"PRESENT\",\n VIEW = \"VIEW\",\n}\n\nexport type ResourceActivityEntry = {\n activityType: EnumActivity;\n location: LocationGeoType | null;\n dateStatus?: EnumEventDateStatus | null;\n startDate?: string | null;\n startTime?: string | null;\n timestamp: Date;\n userAgent: EnumOSPlatform;\n userId?: string | null;\n};\n\nexport type ResourceActivityType = {\n _id: string;\n resourceType: EnumResourceType;\n resourceId: string;\n activity: ResourceActivityEntry[];\n};\n\nexport type ResourceActivityInputType = {\n resourceId: string;\n resourceType: EnumResourceType;\n activity: Omit<ResourceActivityEntry, \"timestamp\">;\n};\n","import { EnumResourceType } from \"src/enums\";\n\nimport { BaseGameType } from \"./game\";\nimport {\n CreateFormData,\n ResourceImageType,\n SocialShareResourceType,\n} from \"./global\";\n\nexport enum EnumPostType {\n MARKET_FACES = \"market_faces\",\n CLUE_BITES = \"clue_bites\",\n PLAY_AND_WIN = \"play_and_win\",\n}\n\nexport enum EnumPostContentType {\n GAME = \"game\",\n IMAGE = \"image\",\n LIST = \"list\",\n TEXTAREA = \"textarea\",\n VIDEO = \"video\",\n}\n\nexport type PostFileInput = {\n source: File;\n title?: string;\n};\n\nexport type PostContentTextarea = {\n textarea: {\n title?: string;\n data: string;\n };\n};\n\nexport type PostContentImage = {\n images: ResourceImageType[] | null;\n imagesUpload?: PostFileInput[] | null;\n};\n\nexport type PostContentVideo = {\n video: {\n source: string;\n title?: string;\n };\n};\n\nexport type PostContentList = {\n list: {\n title?: string;\n items: {\n text: string;\n }[];\n };\n};\n\nexport type PostContentGame = {\n game: BaseGameType;\n};\n\nexport type PostContentData =\n | PostContentGame\n | PostContentTextarea\n | PostContentImage\n | PostContentVideo\n | PostContentList;\n\nexport type PostContentFormData = {\n contentData?: PostContentData | null;\n contentOrder?: number | null;\n contentType?: EnumPostContentType | null;\n};\n\nexport type PostResource = {\n resourceSlug: string;\n resourceId: string;\n resourceType: EnumResourceType;\n resourceRegion: string;\n};\n\nexport interface PostFormData {\n active: boolean;\n caption: string;\n content: PostContentFormData[];\n cover?: ResourceImageType | null;\n coverUpload?: PostFileInput | null;\n postType: EnumPostType;\n resource?: PostResource | null;\n tags?: string[] | null;\n title: string;\n notifyUsers?: boolean | null;\n}\n\nexport type CreatePostFormData = CreateFormData<PostFormData>;\n\nexport type PostContentType = Omit<PostContentFormData, \"contentData\"> & {\n contentData: Omit<PostContentData, \"imagesUpload\">;\n};\n\nexport type PostType = Omit<\n PostFormData,\n \"content\" | \"coverUpload\" | \"resource\"\n> & {\n _id: string;\n content: PostContentType[];\n createdAt: Date;\n deletedAt: Date | null;\n resource?: PostResource | null;\n slug: string;\n sharePublic?: SocialShareResourceType | null;\n updatedAt: Date | null;\n};\n","import { OwnerType } from \"../global\";\n\nimport { DailyClueBaseGame, DailyClueGameData } from \"./dailyClue\";\nimport { EnumGameType, GameDate } from \"./global\";\nimport { PuzzleBaseGame, PuzzleGameData } from \"./puzzleGame\";\n\nexport type BaseGameMap = {\n [EnumGameType.DAILY_CLUE]: DailyClueBaseGame;\n [EnumGameType.MINI_QUIZ]: PuzzleBaseGame;\n [EnumGameType.ODD_ONE_OUT]: PuzzleBaseGame;\n};\n\nexport type BaseGameType = {\n gameType: EnumGameType;\n gameTypeId: string;\n gameTitle: string;\n} & {\n [K in keyof BaseGameMap]?: BaseGameMap[K] | null;\n};\n\nexport enum EnumGameStatus {\n GAME_COMPLETED = \"GAME_COMPLETED\",\n GAME_IN_PROGRESS = \"GAME_IN_PROGRESS\",\n GAME_LEFT = \"GAME_LEFT\",\n GAME_STARTED = \"GAME_STARTED\",\n}\n\nexport type GameHistory = Pick<\n BaseGameType,\n \"gameTitle\" | \"gameType\" | \"gameTypeId\"\n> & {\n createdAt: Date;\n gameDate: GameDate;\n gameStatus: EnumGameStatus;\n /** Per-event delta. Not persisted for overallGamePoints (computed at read time). */\n pointsEarned: number;\n /** Running total for this game instance; computed at read time, not stored in Mongo. */\n overallGamePoints?: number;\n};\n\ntype GameDataMap = {\n [EnumGameType.DAILY_CLUE]: DailyClueGameData;\n [EnumGameType.MINI_QUIZ]: PuzzleGameData;\n [EnumGameType.ODD_ONE_OUT]: PuzzleGameData;\n};\ntype GameDataType = {\n [K in keyof GameDataMap]?: GameDataMap[K] | null;\n};\n\nexport type GameType = Pick<\n BaseGameType,\n \"gameTitle\" | \"gameType\" | \"gameTypeId\"\n> & {\n _id: string;\n active: boolean;\n createdAt: Date;\n gameData: GameDataType;\n gameHistory: GameHistory[] | null;\n updatedAt: Date | null;\n};\n\nexport type GameDocType = {\n _id: string;\n active: boolean;\n createdAt: Date;\n deletedAt: Date | null;\n games: GameType[] | null;\n owner: OwnerType;\n points: number;\n updatedAt: Date | null;\n};\n\nexport type GameLeaderboard = {\n gameHistory: GameHistory[] | null;\n overallPoints: number;\n owner: OwnerType;\n};\n","import { GameDate, GlobalGameData } from \"./global\";\n\nconst OBJECT_ID_PATH_SEGMENT = \"[a-f0-9]{24}\";\nconst OBJECT_ID_PATH_SEGMENT_END = `${OBJECT_ID_PATH_SEGMENT}$`;\n\nexport const gameScreenIdentifierList = [\n {\n clue: \"Where your actions turn into a timeline.\",\n id: \"activities\",\n match: \"/profile/activities\",\n },\n {\n clue: \"Where conversations happen without speaking.\",\n id: \"chat\",\n match: \"/profile/chat\",\n },\n {\n clue: \"The place to redefine who you are.\",\n id: \"edit-profile\",\n match: \"/profile/edit-profile\",\n },\n {\n clue: \"A single moment worth showing up for.\",\n id: \"single-event\",\n match: new RegExp(`^/events/${OBJECT_ID_PATH_SEGMENT_END}`),\n },\n {\n clue: \"What’s happening around you, right now.\",\n id: \"events-near-me\",\n match: \"/events/events-near-me\",\n },\n {\n clue: \"Where events appear as pins on a map.\",\n id: \"events-map\",\n match: \"/events/events-map\",\n },\n {\n clue: \"A collection of events worth attending.\",\n id: \"events\",\n match: \"/events\",\n },\n {\n clue: \"What’s happening in a wider area — not just nearby.\",\n id: \"events-region\",\n match: /^\\/events\\/region\\/[^/]+$/,\n },\n {\n clue: \"Where fun becomes a challenge.\",\n id: \"games\",\n match: \"/games\",\n },\n {\n clue: \"Your starting point for everything.\",\n id: \"home\",\n match: \"/\",\n },\n {\n clue: \"Where the app whispers what you shouldn’t miss.\",\n id: \"notifications\",\n match: \"/notifications\",\n },\n {\n clue: \"Where you fine-tune your experience.\",\n id: \"options\",\n match: \"/options\",\n },\n {\n clue: \"An organisation or creator supporting the community.\",\n id: \"single-partner\",\n match: new RegExp(`^/partners/${OBJECT_ID_PATH_SEGMENT_END}`),\n },\n {\n clue: \"Organisations and creators supporting the community.\",\n id: \"partners\",\n match: \"/partners\",\n },\n {\n clue: \"A single published post in full view.\",\n id: \"single-visitor-post\",\n match: new RegExp(`^/visitors/post/${OBJECT_ID_PATH_SEGMENT_END}`),\n },\n {\n clue: \"Your identity, on display.\",\n id: \"profile\",\n match: \"/profile\",\n },\n {\n clue: \"One stallholder offering something valuable.\",\n id: \"single-vendor\",\n match: new RegExp(`^/vendors/${OBJECT_ID_PATH_SEGMENT_END}`),\n },\n {\n clue: \"Where every stallholder waits under the right category.\",\n id: \"vendors\",\n match: \"/vendors\",\n },\n {\n clue: \"Where you browse articles and posts from around the platform.\",\n id: \"visitors\",\n match: \"/visitors\",\n },\n] as const;\n\nexport type GamePlacement = (typeof gameScreenIdentifierList)[number][\"id\"];\nexport type GamePlacementClue =\n (typeof gameScreenIdentifierList)[number][\"clue\"];\n\nexport type DailyClueBaseGame = {\n gameDate: GameDate;\n gameSolution: string;\n};\n\nexport type DailyClueGameData = GlobalGameData & {\n gameFields: DailyClueBaseGame;\n lastFoundDate: Date | null;\n letterInfo: {\n collected: string[] | null; // The letters the user has found, e.g. [\"C\", \"L\", \"U\"]\n solutionShuffled: string[]; // The letters of the solution, but shuffled, e.g. [\"L\", \"C\", \"U\"]\n todaysClue: GamePlacementClue | null; // The clue for user to find the letter, e.g. related to {todaysPlacement}\n todaysLetter: string | null; // The letter the user has to find today, e.g. \"C\"\n todaysPlacement: GamePlacement | null; // The screen where the user has to find the clue, e.g. \"HomeScreen\"\n };\n};\n","export enum EnumGameType {\n DAILY_CLUE = \"dailyClue\",\n MINI_QUIZ = \"miniQuiz\",\n ODD_ONE_OUT = \"oddOneOut\",\n}\n\nexport type GameDate = {\n startDate: Date;\n endDate: Date;\n};\n\nexport const gameTypeToDisplayName: Record<EnumGameType, string> = {\n [EnumGameType.DAILY_CLUE]: \"Daily Clue\",\n [EnumGameType.MINI_QUIZ]: \"Mini Quiz\",\n [EnumGameType.ODD_ONE_OUT]: \"Odd One Out\",\n};\n\nexport type GlobalGameData = {\n points: number;\n // User has found the clue 3 days in a row, this is incrementing if the user finds the clue and decrements if user misses a day\n streak: number;\n};\n","import { EnumUserLicence } from \"../enums\";\n\n/** Tier keys in descending priority (highest first) for licence resolution. */\nexport const TIERS_BY_PRIORITY = [\"pro_plus\", \"pro\", \"standard\"] as const;\n\n/** Canonical subscription tier keys — matches Stripe/server tier identifiers. */\nexport type Tier = (typeof TIERS_BY_PRIORITY)[number];\n\n/** User-facing tier labels (decoupled from the Tier discriminant). */\nexport const TIER_DISPLAY_LABELS: Record<Tier, string> = {\n pro: \"Pro\",\n // eslint-disable-next-line camelcase\n pro_plus: \"Pro+ Ads\",\n standard: \"Standard\",\n};\n\n/** Maps licence enums to their canonical tier key. */\nexport const TIER_FROM_LICENCE: Record<EnumUserLicence, Tier> = {\n [EnumUserLicence.PRO_EVENT]: \"pro\",\n [EnumUserLicence.PRO_PLUS_EVENT]: \"pro_plus\",\n [EnumUserLicence.PRO_PLUS_VENDOR]: \"pro_plus\",\n [EnumUserLicence.PRO_VENDOR]: \"pro\",\n [EnumUserLicence.STANDARD_EVENT]: \"standard\",\n [EnumUserLicence.STANDARD_PARTNER]: \"standard\",\n [EnumUserLicence.STANDARD_VENDOR]: \"standard\",\n};\n","import { EnumResourceType } from \"src/enums\";\n\nimport { OwnerType, PromoCodeType } from \"./global\";\n\nexport enum EnumAffiliateRewardType {\n NEW_EVENT_REGISTRATION = \"NEW_EVENT_REGISTRATION\",\n NEW_VENDOR_REGISTRATION = \"NEW_VENDOR_REGISTRATION\",\n NEW_PARTNER_REGISTRATION = \"NEW_PARTNER_REGISTRATION\",\n}\n\nexport type AffiliateReward = {\n createdAt: Date;\n deletedAt: Date | null;\n redeemedAt: Date | null;\n rewardDescription: string;\n rewardType: EnumAffiliateRewardType;\n rewardValue: number;\n updatedAt: Date | null;\n};\n\nexport type AffiliateResourceType = {\n resourceActive: boolean;\n resourceId: string;\n resourceType: EnumResourceType;\n rewards: AffiliateReward[];\n};\n\nexport type AffiliateType = {\n _id: string;\n affiliateCode: PromoCodeType;\n affiliateResources: AffiliateResourceType[];\n createdAt: Date;\n deletedAt: Date | null;\n overallPoints: number;\n owner: OwnerType;\n updatedAt: Date | null;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA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rBO,IAAK,0BAAL,kBAAKC,6BAAL;AACL,EAAAA,yBAAA,4BAAyB;AACzB,EAAAA,yBAAA,6BAA0B;AAC1B,EAAAA,yBAAA,8BAA2B;AAHjB,SAAAA;AAAA,GAAA;","names":["EnumVerificationType","EnumAdShowOn","EnumAdStatus","EnumAdType","EnumAdStyle","EnumActivity","EnumPostType","EnumPostContentType","EnumGameStatus","EnumGameType","EnumAffiliateRewardType"]}