@timardex/cluemart-shared 1.6.112 → 1.6.130
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.
- package/dist/affiliate-Bqqlffw8.d.mts +36 -0
- package/dist/affiliate-Btlp5XUp.d.ts +36 -0
- package/dist/affiliateAdapters-BW3BY7c5.d.mts +118 -0
- package/dist/affiliateAdapters-C51ISmuA.d.ts +118 -0
- package/dist/apollo/index.d.mts +3 -3
- package/dist/apollo/index.d.ts +3 -3
- package/dist/auth/index.cjs +2546 -951
- package/dist/auth/index.cjs.map +1 -1
- package/dist/auth/index.d.mts +28 -30
- package/dist/auth/index.d.ts +28 -30
- package/dist/auth/index.mjs +24 -25
- package/dist/auth/index.mjs.map +1 -1
- package/dist/auth-BOmAO53v.d.ts +169 -0
- package/dist/auth-CsITA95p.d.mts +169 -0
- package/dist/{chunk-VPANTTZI.mjs → chunk-DATBGC2K.mjs} +108 -23
- package/dist/chunk-DATBGC2K.mjs.map +1 -0
- package/dist/chunk-DDHECBJR.mjs +726 -0
- package/dist/chunk-DDHECBJR.mjs.map +1 -0
- package/dist/chunk-INQCDU24.mjs +139 -0
- package/dist/chunk-INQCDU24.mjs.map +1 -0
- package/dist/{chunk-SD42WIMV.mjs → chunk-NWWKI4PJ.mjs} +5 -5
- package/dist/chunk-NWWKI4PJ.mjs.map +1 -0
- package/dist/{chunk-LBEJECG3.mjs → chunk-OHHJ3KJJ.mjs} +71 -64
- package/dist/chunk-OHHJ3KJJ.mjs.map +1 -0
- package/dist/chunk-TOEFAEF2.mjs +69 -0
- package/dist/chunk-TOEFAEF2.mjs.map +1 -0
- package/dist/chunk-UKW7NZEQ.mjs +2813 -0
- package/dist/chunk-UKW7NZEQ.mjs.map +1 -0
- package/dist/dailyClue-C6WXY73z.d.mts +105 -0
- package/dist/dailyClue-C6WXY73z.d.ts +105 -0
- package/dist/enums/index.cjs +2 -229
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.mts +5 -170
- package/dist/enums/index.d.ts +5 -170
- package/dist/enums/index.mjs +1 -41
- package/dist/event-C9K7CSg4.d.ts +53 -0
- package/dist/event-W0NhL5Cd.d.mts +53 -0
- package/dist/formFields/index.cjs +284 -112
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.d.mts +4 -2
- package/dist/formFields/index.d.ts +4 -2
- package/dist/formFields/index.mjs +919 -50
- package/dist/formFields/index.mjs.map +1 -1
- package/dist/global-BbSFfYdd.d.ts +181 -0
- package/dist/global-C6v9tRji.d.mts +181 -0
- package/dist/graphql/index.cjs +2860 -2292
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +422 -469
- package/dist/graphql/index.d.ts +422 -469
- package/dist/graphql/index.mjs +2547 -160
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/graphql-CDOfA79A.d.ts +1253 -0
- package/dist/graphql-CcvzTs9k.d.mts +1253 -0
- package/dist/hooks/index.cjs +511 -3846
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +10 -9
- package/dist/hooks/index.d.ts +10 -9
- package/dist/hooks/index.mjs +54 -72
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/images/index.mjs +86 -21
- package/dist/images/index.mjs.map +1 -1
- package/dist/index.cjs +4414 -3168
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +2439 -1579
- package/dist/index.d.ts +2439 -1579
- package/dist/index.mjs +4350 -3121
- package/dist/index.mjs.map +1 -1
- package/dist/map/index.d.mts +3 -2
- package/dist/map/index.d.ts +3 -2
- package/dist/resourceActivities-CS8YRIIL.d.mts +89 -0
- package/dist/resourceActivities-DOdNPkhW.d.ts +89 -0
- package/dist/sharing/index.cjs +23 -19
- package/dist/sharing/index.cjs.map +1 -1
- package/dist/sharing/index.d.mts +16 -3
- package/dist/sharing/index.d.ts +16 -3
- package/dist/sharing/index.mjs +183 -29
- package/dist/sharing/index.mjs.map +1 -1
- package/dist/subscription-Cj_qBA7u.d.mts +20 -0
- package/dist/subscription-OiJ50uJb.d.ts +20 -0
- package/dist/theme/index.mjs +41 -5
- package/dist/theme/index.mjs.map +1 -1
- package/dist/types/index.cjs +868 -123
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +234 -15
- package/dist/types/index.d.ts +234 -15
- package/dist/types/index.mjs +61 -31
- package/dist/utils/index.cjs +292 -117
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +25 -23
- package/dist/utils/index.d.ts +25 -23
- package/dist/utils/index.mjs +6 -5
- package/dist/vendor-DmMi2qmx.d.mts +73 -0
- package/dist/vendor-M9hVZlni.d.ts +73 -0
- package/package.json +10 -3
- package/dist/ad-BUYzE6zx.d.ts +0 -181
- package/dist/ad-BhLoEul3.d.mts +0 -181
- package/dist/affiliate-BbtjeUP4.d.mts +0 -73
- package/dist/affiliate-C51nzKsw.d.ts +0 -73
- package/dist/chunk-32MKHJTX.mjs +0 -1207
- package/dist/chunk-32MKHJTX.mjs.map +0 -1
- package/dist/chunk-AYO3E4DM.mjs +0 -224
- package/dist/chunk-AYO3E4DM.mjs.map +0 -1
- package/dist/chunk-BIJ5NDXW.mjs +0 -962
- package/dist/chunk-BIJ5NDXW.mjs.map +0 -1
- package/dist/chunk-DQ7ZHIXW.mjs +0 -26
- package/dist/chunk-DQ7ZHIXW.mjs.map +0 -1
- package/dist/chunk-ILILH7E2.mjs +0 -219
- package/dist/chunk-ILILH7E2.mjs.map +0 -1
- package/dist/chunk-LBEJECG3.mjs.map +0 -1
- package/dist/chunk-NPFJ2CN2.mjs +0 -109
- package/dist/chunk-NPFJ2CN2.mjs.map +0 -1
- package/dist/chunk-R6PCFOYO.mjs +0 -3650
- package/dist/chunk-R6PCFOYO.mjs.map +0 -1
- package/dist/chunk-SD42WIMV.mjs.map +0 -1
- package/dist/chunk-VA5YN2K3.mjs +0 -48
- package/dist/chunk-VA5YN2K3.mjs.map +0 -1
- package/dist/chunk-VPANTTZI.mjs.map +0 -1
- package/dist/chunk-X3OLM35T.mjs +0 -278
- package/dist/chunk-X3OLM35T.mjs.map +0 -1
- package/dist/contactUs--NoohZBu.d.ts +0 -11
- package/dist/contactUs-CBWzefUS.d.mts +0 -11
- package/dist/global-CUYYxpy2.d.ts +0 -699
- package/dist/global-DePDtOFt.d.mts +0 -699
- package/dist/resourceActivities-CMUcn2P7.d.ts +0 -130
- package/dist/resourceActivities-CwbJFGIp.d.mts +0 -130
- package/dist/subscription-BU8GvH2K.d.ts +0 -12
- package/dist/subscription-bmAdrnfi.d.mts +0 -12
- package/dist/user-D47MLFyH.d.ts +0 -134
- package/dist/user-DE8edl3u.d.mts +0 -134
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/sharing/index.ts","../../src/utils/date.ts","../../src/enums/index.ts","../../src/utils/mapArrayToOptions.ts","../../src/sharing/relationShareTypes.ts","../../src/sharing/constants.ts","../../src/sharing/formatCategoryLabel.ts","../../src/sharing/joinShareDescriptionSections.ts","../../src/sharing/buildRelationShareDescription.ts","../../src/sharing/buildPublicShareDescription.ts","../../src/sharing/buildShareUrl.ts","../../src/sharing/normalizeShareDescription.ts","../../src/sharing/normalizeShareRouteId.ts","../../src/sharing/shareSlugResource.ts","../../src/sharing/toShareSocialImageCacheVersion.ts"],"sourcesContent":["export * from \"./buildPublicShareDescription\";\nexport * from \"./buildRelationShareDescription\";\nexport * from \"./shareRelationTypes\";\nexport * from \"./buildShareUrl\";\nexport * from \"./constants\";\nexport * from \"./formatCategoryLabel\";\nexport * from \"./joinShareDescriptionSections\";\nexport * from \"./normalizeShareDescription\";\nexport * from \"./normalizeShareRouteId\";\nexport * from \"./relationShareTypes\";\nexport * from \"./shareSlugResource\";\nexport * from \"./toShareSocialImageCacheVersion\";\n","import dayjs from \"dayjs\";\nimport customParseFormat from \"dayjs/plugin/customParseFormat.js\";\nimport isSameOrAfter from \"dayjs/plugin/isSameOrAfter.js\";\nimport timezone from \"dayjs/plugin/timezone.js\";\nimport utc from \"dayjs/plugin/utc.js\";\n\nimport { EnumEventDateStatus } from \"src/enums\";\n\nimport { mapArrayToOptions } from \"./mapArrayToOptions\";\n\nexport const dateFormat = \"DD-MM-YYYY\";\nexport const timeFormat = \"HH:mm\";\n\n// Enable custom format parsing\ndayjs.extend(customParseFormat);\ndayjs.extend(utc);\ndayjs.extend(timezone);\ndayjs.extend(isSameOrAfter);\n\nconst NZ_TZ = \"Pacific/Auckland\";\n\nexport function toNZTime(date?: Date | string) {\n return date ? dayjs(date).tz(NZ_TZ) : dayjs().tz(NZ_TZ);\n}\n\n/** Start of the calendar day in Pacific/Auckland (daily games, streaks, etc.). */\nexport function nzStartOfDay(\n input?: Date | string | number | null,\n): dayjs.Dayjs {\n if (input == null) {\n return dayjs().tz(NZ_TZ).startOf(\"day\");\n }\n return dayjs.tz(input, NZ_TZ).startOf(\"day\");\n}\n\ntype DateFormat = \"date\" | \"time\" | \"datetime\";\n\n/**\n * Format a date string to a more readable format.\n * @param dateStr - the date string\n * @param timeStr - optional time string\n * @param display - 'date' | 'time' | 'datetime'\n * @returns formatted string based on display option\n */\nexport const formatDate = (\n dateStr: string,\n display: DateFormat = \"datetime\",\n timeStr?: string,\n) => {\n // Combine date and time into a single string if time is provided\n const dateTimeStr = timeStr ? `${dateStr} ${timeStr}` : dateStr;\n\n // Parse with formats\n const dateTime = timeStr\n ? dayjs(dateTimeStr, `${dateFormat} ${timeFormat}`)\n : dayjs(dateStr, dateFormat);\n\n // Format parts\n const formattedDate = dateTime.format(\"dddd, D MMMM, YYYY\");\n const formattedTime = dateTime.format(\"h:mm a\");\n\n // Return based on display option\n switch (display) {\n case \"date\":\n return formattedDate;\n case \"time\":\n return formattedTime;\n case \"datetime\":\n return `${formattedDate} at ${formattedTime}`;\n default:\n return formattedDate;\n }\n};\n\nexport const getCurrentAndFutureDates = <\n T extends { startDate: string; startTime: string },\n>(\n dates: T[],\n): T[] => {\n const now = dayjs(); // current date and time\n\n return dates.filter((dateObj) => {\n const dateTime = dayjs(\n `${dateObj.startDate} ${dateObj.startTime}`,\n `${dateFormat} ${timeFormat}`,\n );\n return dateTime.isSameOrAfter(now);\n });\n};\n\nexport const isFutureDatesBeforeThreshold = (\n date: {\n startDate: string;\n startTime: string;\n },\n minHoursFromNow: number,\n): boolean => {\n const threshold = minHoursFromNow\n ? dayjs().add(minHoursFromNow, \"hour\")\n : dayjs().startOf(\"day\");\n\n const dateTime = dayjs(\n `${date.startDate} ${date.startTime}`,\n `${dateFormat} ${timeFormat}`,\n );\n\n return dateTime.isSameOrAfter(threshold);\n};\n\nexport const formatTimestamp = (timestamp: string) => {\n const formattedDate = toNZTime(timestamp).format(dateFormat);\n\n return formatDate(formattedDate, \"date\");\n};\n\nexport const isIsoDateString = (value: unknown): value is string => {\n return typeof value === \"string\" && !Number.isNaN(Date.parse(value));\n};\n\n/**\n * Sort an array of date strings by their proximity to the current date.\n * @param dates - The array of date strings to sort.\n * @returns - The sorted array of date strings.\n */\nexport function sortDatesChronologically<\n T extends { startDate: string; startTime: string },\n>(dates: T[]): T[] {\n if (!dates?.length) {\n return [];\n }\n\n return [...dates].sort((a, b) => {\n const dateTimeFormat = `${dateFormat} ${timeFormat}`;\n const dateA = dayjs(`${a.startDate} ${a.startTime}`, dateTimeFormat);\n const dateB = dayjs(`${b.startDate} ${b.startTime}`, dateTimeFormat);\n return dateA.valueOf() - dateB.valueOf(); // chronological order\n });\n}\n\nexport const futureTimePeriods = mapArrayToOptions(\n Object.values(EnumEventDateStatus),\n)\n .filter(\n (period) =>\n period.value !== EnumEventDateStatus.STARTING_SOON &&\n period.value !== EnumEventDateStatus.CANCELED &&\n period.value !== EnumEventDateStatus.RE_SCHEDULED &&\n period.value !== EnumEventDateStatus.STARTED &&\n period.value !== EnumEventDateStatus.ENDED &&\n period.value !== EnumEventDateStatus.INVALID,\n )\n .map((period) => ({\n label: period.value.replaceAll(\"_\", \" \"),\n value: period.value,\n }));\n","export enum EnumInviteStatus {\n ACCEPTED = \"Accepted\",\n COMPLETED = \"Completed\",\n EXPIRED = \"Expired\",\n NO_STATUS = \"No_Status\",\n PENDING = \"Pending\",\n REJECTED = \"Rejected\",\n UNAVAILABLE = \"Unavailable\",\n}\n\nexport enum EnumChatReportReason {\n INAPPROPRIATE_CONTENT = \"Inappropriate_Content\",\n HARASSMENT_OR_BULLYING = \"Harassment_or_Bullying\",\n HATE_SPEECH = \"Hate_Speech\",\n SPAM_OR_SCAM = \"Spam_or_Scam\",\n VIOLENCE_OR_DANGEROUS_BEHAVIOR = \"Violence_or_Dangerous_Behavior\",\n OTHER = \"Other\",\n}\n\nexport enum EnumChatType {\n GROUP = \"group\",\n PRIVATE = \"private\",\n RELATION = \"relation\",\n}\n\nexport enum EnumPaymentMethod {\n CASH = \"cash\",\n EFTPOS = \"eftpos\",\n BANK_TRANSFER = \"bank_transfer\",\n PAYPAL = \"paypal\",\n STRIPE = \"stripe\",\n}\n\nexport enum EnumFoodFlavor {\n SALTY = \"Salty\",\n SAVOURY = \"Savoury\",\n SPICY = \"Spicy\",\n SWEET = \"Sweet\",\n OTHER = \"Not_Applicable\",\n}\n\nexport enum EnumFoodType {\n ADDITIVE_FREE = \"Additive_Free\",\n AIR_FRIED = \"Air_Fried\",\n ALLERGEN_FRIENDLY = \"Allergen_Friendly\",\n ATHLETE_FRIENDLY = \"Athlete_Friendly\",\n BAKED = \"Baked\",\n DAIRY_FREE = \"Dairy_Free\",\n DIABETIC_FRIENDLY = \"Diabetic_Friendly\",\n EGG_FREE = \"Egg_Free\",\n FRESH = \"Fresh\",\n GLUTEN_FREE = \"Gluten_Free\",\n GRILLED = \"Grilled\",\n HALAL = \"Halal\",\n HEART_HEALTHY = \"Heart_Healthy\",\n HIGH_FIBER = \"High_Fiber\",\n HIGH_PROTEIN = \"High_Protein\",\n KETO = \"Keto\",\n KOSHER = \"Kosher\",\n LACTOSE_FREE = \"Lactose_Free\",\n LOW_CALORIE = \"Low_Calorie\",\n LOW_CARB = \"Low_Carb\",\n LOW_FAT = \"Low_Fat\",\n LOW_SODIUM = \"Low_Sodium\",\n NO_ADDED_SUGAR = \"No_Added_Sugar\",\n NO_PRESERVATIVES = \"No_Preservatives\",\n NON_GMO = \"Non_GMO\",\n NUT_FREE = \"Nut_Free\",\n ORGANIC = \"Organic\",\n PALEO = \"Paleo\",\n PLANT_BASED = \"Plant_Based\",\n RAW = \"Raw\",\n SMOKED = \"Smoked\",\n SOY_FREE = \"Soy_Free\",\n SUGAR_FREE = \"Sugar_Free\",\n VEGAN = \"Vegan\",\n VEGETARIAN = \"Vegetarian\",\n}\n\nexport enum EnumResourceType {\n AFFILIATE = \"affiliate\",\n EVENT = \"event\",\n VENDOR = \"vendor\",\n PARTNER = \"partner\",\n SCHOOL = \"school\",\n}\n\nexport enum EnumEventType {\n MARKET = \"Market\",\n EXPO = \"Expo\",\n FAIR = \"Fair\",\n FESTIVAL = \"Festival\",\n}\n\nexport enum EnumVendorType {\n STALLHOLDER = \"Stallholder\",\n SHOP = \"Shop\",\n}\n\nexport enum EnumPartnerType {\n CHARITY_PARTNER = \"Charity_Partner\",\n MEDIA_PARTNER = \"Media_Partner\",\n SUPPORTING_PARTNER = \"Supporting_Partner\",\n}\n\nexport enum EnumOSPlatform {\n ANDROID = \"android\",\n IOS = \"ios\",\n WEB = \"web\",\n}\n\nexport enum EnumRelationResource {\n EVENT_INVITE_VENDOR = \"event_invite_vendor\",\n EVENT_UPDATE_RELATION_TO_VENDOR = \"event_update_relation_to_vendor\",\n VENDOR_UPDATE_RELATION_TO_EVENT = \"vendor_update_relation_to_event\",\n VENDOR_APPLICATION_TO_EVENT = \"vendor_application_to_event\",\n}\n\nexport enum EnumNotificationResourceType {\n APPROVED_AFFILIATE = \"approved_affiliate\",\n AFFILIATE_REWARD_RECEIVED = \"affiliate_reward_received\",\n APPROVED_EVENT = \"approved_event\",\n APPROVED_PARTNER = \"approved_partner\",\n APPROVED_SCHOOL = \"approved_school\",\n APPROVED_VENDOR = \"approved_vendor\",\n CREATED_EVENT = \"created_event\",\n CREATED_PARTNER = \"created_partner\",\n CREATED_VENDOR = \"created_vendor\",\n DAILY_CLUE_GAME = \"daily_clue_game\",\n DEACTIVATED_EVENT = \"deactivated_event\",\n DEACTIVATED_PARTNER = \"deactivated_partner\",\n DEACTIVATED_VENDOR = \"deactivated_vendor\",\n DECLINED_EVENT = \"declined_event\",\n DECLINED_PARTNER = \"declined_partner\",\n DECLINED_VENDOR = \"declined_vendor\",\n DOWNGRADED_EVENT = \"downgraded_event\",\n DOWNGRADED_PARTNER = \"downgraded_partner\",\n DOWNGRADED_VENDOR = \"downgraded_vendor\",\n EVENT_INVITE_VENDOR = EnumRelationResource.EVENT_INVITE_VENDOR,\n EVENT_STARTING_SOON = \"event_starting_soon\",\n EVENT_UPDATE_RELATION_TO_VENDOR = EnumRelationResource.EVENT_UPDATE_RELATION_TO_VENDOR,\n EXPIRATION_REMINDER_EVENT = \"expiration_reminder_event\",\n EXPIRATION_REMINDER_PARTNER = \"expiration_reminder_partner\",\n EXPIRATION_REMINDER_VENDOR = \"expiration_reminder_vendor\",\n NEW_CHAT_MESSAGE = \"new_chat_message\",\n NEW_POST_CREATED = \"new_post_created\",\n REGISTERED_USER_BY_SCHOOL_CODE = \"registered_user_by_school_code\",\n SYSTEM_ALERT = \"system_alert\",\n VENDOR_APPLICATION_TO_EVENT = EnumRelationResource.VENDOR_APPLICATION_TO_EVENT,\n VENDOR_UPDATE_RELATION_TO_EVENT = EnumRelationResource.VENDOR_UPDATE_RELATION_TO_EVENT,\n}\n\nexport enum EnumNotificationType {\n CHAT = \"chat\",\n EVENT = EnumResourceType.EVENT,\n RELATION = \"relation\",\n SYSTEM = \"system\",\n VENDOR = EnumResourceType.VENDOR,\n}\n\nexport enum EnumRegions {\n All = \"All Regions\",\n Auckland = \"Auckland\",\n BayOfPlentyGisborne = \"Bay of Plenty & Gisborne\",\n CanterburyWestCoast = \"Canterbury & West Coast\",\n HawkesBay = \"Hawke's Bay\",\n ManawatuWanganui = \"Manawatu-Wanganui\",\n MarlboroughNelsonTasman = \"Marlborough & Nelson & Tasman\",\n Northland = \"Northland\",\n Otago = \"Otago\",\n Southland = \"Southland\",\n Taranaki = \"Taranaki\",\n Waikato = \"Waikato\",\n Wellington = \"Wellington\",\n}\n\nexport enum ImageTypeEnum {\n AVATAR = \"avatar\",\n COVER = \"cover\",\n IMAGE = \"image\",\n LOGO = \"logo\",\n}\n\nexport enum EnumUserLicence {\n PRO_EVENT = \"pro_event\",\n PRO_PLUS_EVENT = \"pro_plus_event\",\n PRO_PLUS_VENDOR = \"pro_plus_vendor\",\n PRO_VENDOR = \"pro_vendor\",\n STANDARD_EVENT = \"standard_event\",\n STANDARD_VENDOR = \"standard_vendor\",\n STANDARD_PARTNER = \"standard_partner\",\n STANDARD_AFFILIATE = \"standard_affiliate\",\n STANDARD_SCHOOL = \"standard_school\",\n}\n\nexport enum EnumUserRole {\n ADMIN = \"admin\",\n AFFILIATE = \"affiliate\",\n CUSTOMER = \"customer\",\n EVENT = \"event\",\n PARTNER = \"partner\",\n SCHOOL = \"school\",\n SUPER_ADMIN = \"super_admin\",\n VENDOR = \"vendor\",\n}\n\nexport enum EnumSocialMedia {\n FACEBOOK = \"facebook\",\n INSTAGRAM = \"instagram\",\n TIKTOK = \"tiktok\",\n TWITTER = \"twitter\",\n WEBSITE = \"website\",\n YOUTUBE = \"youtube\",\n}\n\nexport enum EnumEventDateStatus {\n STARTING_SOON = \"Starting_Soon\",\n STARTED = \"Started\",\n TODAY = \"Today\",\n TOMORROW = \"Tomorrow\",\n THIS_WEEK = \"This_Week\",\n NEXT_WEEK = \"Next_Week\",\n UPCOMING = \"Upcoming\",\n ENDED = \"Ended\",\n RE_SCHEDULED = \"Rescheduled\",\n CANCELED = \"Canceled\",\n INVALID = \"Invalid\",\n}\n\nexport enum EnumSubscriptionStatus {\n ACTIVE = \"active\",\n INACTIVE = \"inactive\",\n CANCELLED = \"cancelled\",\n NO_SUBSCRIPTION = \"no_subscription\",\n PAST_DUE = \"past_due\",\n TRIALING = \"trialing\",\n}\n\nexport enum EnumBillingPeriod {\n MONTHLY_CANCEL_ANYTIME = \"monthly_cancel_anytime\",\n YEARLY_ANNUAL_BILLED = \"yearly_annual_billed\",\n YEARLY_MONTHLY_BILLED = \"yearly_monthly_billed\",\n}\n\nexport enum EnumReward {\n MYSTERY_JOY_BOX = \"mystery_joy_box\",\n MYSTERY_SQUEEZE_BOX = \"mystery_squeeze_box\",\n MYSTERY_DELUXE_BOX = \"mystery_deluxe_box\",\n}\n","import { OptionItem } from \"src/types\";\n\n/**\n * Convert an array of strings to an array of objects with label and value properties.\n */\nexport const mapArrayToOptions = (items: string[]): OptionItem[] =>\n items.map((item) => ({\n label: item,\n value: item,\n }));\n","/** Path segments for relation share URLs — must match mobile `RelationTitle` values. */\nexport const RELATION_SHARE_INVITATION = \"invitation\" as const;\nexport const RELATION_SHARE_APPLICATION = \"application\" as const;\n\n/**\n * Bump when relation overlay SVG/layout changes so og:image URLs and API ETags\n * invalidate after deploy. Facebook caches preview JPEGs by exact URL — changing\n * this value forces crawlers to fetch a fresh image after server deploy.\n */\nexport const RELATION_OVERLAY_LAYOUT_VERSION = 43;\n\nexport const RELATION_SHARE_RESOURCE_TYPES = [\n RELATION_SHARE_INVITATION,\n RELATION_SHARE_APPLICATION,\n] as const;\n\nexport type RelationShareResourceType =\n (typeof RELATION_SHARE_RESOURCE_TYPES)[number];\n\nexport function isRelationShareResourceType(\n resourceType: string,\n): resourceType is RelationShareResourceType {\n return (RELATION_SHARE_RESOURCE_TYPES as readonly string[]).includes(\n resourceType,\n );\n}\n","import {\n RELATION_SHARE_APPLICATION,\n RELATION_SHARE_INVITATION,\n type RelationShareResourceType,\n} from \"./relationShareTypes\";\n\nexport {\n RELATION_SHARE_APPLICATION,\n RELATION_SHARE_INVITATION,\n RELATION_OVERLAY_LAYOUT_VERSION,\n RELATION_SHARE_RESOURCE_TYPES,\n isRelationShareResourceType,\n type RelationShareResourceType,\n} from \"./relationShareTypes\";\n\n/** Open Graph recommended preview size (must match admin `SHARE_OG_IMAGE_*`). */\nexport const SOCIAL_IMAGE_WIDTH = 1200;\n\n/** Open Graph recommended preview size (must match admin `SHARE_OG_IMAGE_*`). */\nexport const SOCIAL_IMAGE_HEIGHT = 630;\n\n/** Keep in sync with `CLUEMART_MAIN_DOMAIN_URL` in utils (avoid utils↔sharing import cycle). */\nexport const SHARE_SITE_URL = \"https://cluemart.co.nz\";\n\n/** Calendar marker for invitation market-dates share copy (U+1F4C5 📅). */\nexport const SHARE_CALENDAR_ICON = \"\\u{1F4C5}\";\n\nexport const SHARE_MARKET_DATES_SECTION_HEADING = `${SHARE_CALENDAR_ICON} Market dates:`;\n\n/** Check mark for invitation requirements share copy (U+2705 ✅). */\nexport const SHARE_CHECKMARK_ICON = \"\\u{2705}\";\n\nexport const SHARE_REQUIREMENTS_SECTION_HEADING = `${SHARE_CHECKMARK_ICON} Requirements:`;\n\n/** Information marker for tags share copy (U+2139 ℹ️). */\nexport const SHARE_INFO_ICON = \"\\u{2139}\\u{FE0F}\";\n\nexport const SHARE_TAGS_SECTION_HEADING = `${SHARE_INFO_ICON} Tags:`;\n\n/** Standalone line when `rainOrShine` is true (invitation share + OG section parsing). */\nexport const SHARE_RAIN_OR_SHINE_LINE = \"Rain or Shine\";\n\n/** Standalone line when `foodTruck` is true (application share + OG section parsing). */\nexport const SHARE_FOOD_TRUCK_LINE = \"Food Truck\";\n\n/** Prefix for application compliance line (share text + OG section parsing). */\nexport const SHARE_COMPLIANCE_PREFIX = `${SHARE_CHECKMARK_ICON} Compliance:`;\n\n/** Label tag for application categories share copy (U+1F3F7 🏷️). */\nexport const SHARE_CATEGORY_ICON = \"\\u{1F3F7}\\u{FE0F}\";\n\nexport const SHARE_CATEGORIES_SECTION_HEADING = `${SHARE_CATEGORY_ICON} Categories:`;\n\n/** Straight ruler for application stall-size share copy (U+1F4CF 📏). */\nexport const SHARE_RULER_ICON = \"\\u{1F4CF}\";\n\n/** Prefix for application stall-size line (share text + OG section parsing). */\nexport const SHARE_STALL_SIZE_PREFIX = `${SHARE_RULER_ICON} Stall size:`;\n\n/** Dollar marker for price-range share copy (U+0024 $ — text, not emoji, so it stays black). */\nexport const SHARE_DOLLAR_ICON = \"$\";\n\n/** Prefix for application price-range line (share text + OG section parsing). */\nexport const SHARE_PRICE_RANGE_PREFIX = `${SHARE_DOLLAR_ICON} Price range:`;\n\n/** Alarm clock for invitation application-deadline share copy (U+23F0 ⏰). */\nexport const SHARE_CLOCK_ICON = \"\\u{23F0}\";\n\n/** Prefix for the invitation application-deadline sentence (share text + OG section parsing). */\nexport const SHARE_APPLICATION_DEADLINE_PREFIX = `${SHARE_CLOCK_ICON} Application deadline:`;\n\n/** First line on share sheet messages, Facebook SDK quote, and `og:description`. */\nexport const SHARE_MORE_INFO_LINE = \"Shared from ClueMart\";\n\nexport const DEFAULT_SHARE_OG_IMAGE = `${SHARE_SITE_URL}/assets/logo.webp`;\n\nexport const RESOURCE_SHARE_TYPES = [\n \"market\",\n \"stallholder\",\n \"partner\",\n \"affiliate\",\n \"school\",\n] as const;\n\nexport type ResourceShareType = (typeof RESOURCE_SHARE_TYPES)[number];\n\nexport const POST_SHARE_RESOURCE_TYPES = [\n \"market_faces\",\n \"clue_bites\",\n \"play_and_win\",\n] as const;\n\nexport type PostShareResourceType = (typeof POST_SHARE_RESOURCE_TYPES)[number];\n\nexport type ShareResourceType =\n | ResourceShareType\n | PostShareResourceType\n | RelationShareResourceType;\n\nexport const SHARE_RESOURCE_LABEL: Record<ShareResourceType, string> = {\n [RELATION_SHARE_APPLICATION]: \"Application\",\n [RELATION_SHARE_INVITATION]: \"Invitation\",\n clue_bites: \"Clue Bites\",\n market_faces: \"Market Faces\",\n play_and_win: \"Play & Win\",\n market: \"Market\",\n partner: \"Partner\",\n stallholder: \"Stallholder\",\n affiliate: \"Affiliate\",\n school: \"School\",\n};\n\nexport function isPostShareResourceType(\n resourceType: ShareResourceType,\n): resourceType is PostShareResourceType {\n return (POST_SHARE_RESOURCE_TYPES as readonly string[]).includes(\n resourceType,\n );\n}\n","import type { Category } from \"../types/global\";\n\nexport function formatCategoryLabel(category: Category): string {\n const subcategoryNames = category.subcategories\n .map((subcategory) => subcategory.name)\n .filter(Boolean);\n\n if (subcategoryNames.length === 0) {\n return category.name;\n }\n\n return `${category.name} (${subcategoryNames.join(\", \")})`;\n}\n","import { SHARE_MORE_INFO_LINE } from \"./constants\";\n\n/** Blank line between share sections — title, address, dates, URL, etc. */\nexport const SHARE_DESCRIPTION_SECTION_BREAK = \"\\n\\n\";\n\n/**\n * Line break for `og:description` meta content. Use instead of `\\n` — Next.js\n * HTML serialisation collapses literal newlines to spaces; Facebook reads ` `.\n */\nexport const OG_DESCRIPTION_LINE_BREAK = \" \";\n\n/** Joins OG description sections for Facebook link cards (and Twitter). */\nexport function joinShareOgDescriptionSections(\n sections: ReadonlyArray<string | false | null | undefined>,\n): string {\n return sections\n .map((section) => (typeof section === \"string\" ? section.trim() : \"\"))\n .filter((section): section is string => section.length > 0)\n .map((section) => section.replace(/\\n/g, OG_DESCRIPTION_LINE_BREAK))\n .join(OG_DESCRIPTION_LINE_BREAK);\n}\n\nexport function joinShareDescriptionSections(\n sections: ReadonlyArray<string | false | null | undefined>,\n): string {\n return sections\n .filter((section): section is string => Boolean(section))\n .join(SHARE_DESCRIPTION_SECTION_BREAK);\n}\n\n/** Prepends the standard share branding line when assembling display text. */\nexport function appendShareMoreInfoLine(description: string): string {\n const trimmed = description.trim();\n if (trimmed.startsWith(SHARE_MORE_INFO_LINE)) {\n return trimmed;\n }\n if (trimmed.length === 0) {\n return SHARE_MORE_INFO_LINE;\n }\n return joinShareDescriptionSections([SHARE_MORE_INFO_LINE, trimmed]);\n}\n","import type { StallType } from \"../types/event\";\nimport { formatDate } from \"../utils/date\";\n\nimport {\n SHARE_APPLICATION_DEADLINE_PREFIX,\n SHARE_CATEGORIES_SECTION_HEADING,\n SHARE_FOOD_TRUCK_LINE,\n SHARE_MARKET_DATES_SECTION_HEADING,\n SHARE_RAIN_OR_SHINE_LINE,\n SHARE_REQUIREMENTS_SECTION_HEADING,\n SHARE_COMPLIANCE_PREFIX,\n SHARE_PRICE_RANGE_PREFIX,\n SHARE_STALL_SIZE_PREFIX,\n SHARE_TAGS_SECTION_HEADING,\n} from \"./constants\";\nimport { formatCategoryLabel } from \"./formatCategoryLabel\";\nimport { joinShareDescriptionSections } from \"./joinShareDescriptionSections\";\nimport type {\n ShareEventForInvitation,\n ShareEventInfoForInvitation,\n ShareVendorForApplication,\n ShareVendorInfoForApplication,\n} from \"./shareRelationTypes\";\n\nexport type {\n ShareEventForInvitation,\n ShareEventInfoForInvitation,\n ShareVendorForApplication,\n ShareVendorInfoForApplication,\n} from \"./shareRelationTypes\";\n\n/** Formats event `startDate` (`DD-MM-YYYY`) for share copy — same as share preview UI. */\nexport function formatShareMarketDate(dateStr: string): string {\n return formatDate(dateStr, \"date\");\n}\n\nexport function formatStallCapacityLabel(stallCapacity: number): string {\n return stallCapacity > 0 ? ` (${stallCapacity} spaces available)` : \" - Full\";\n}\n\nexport function formatShareStallLine(stall: StallType): string {\n return ` - ${stall.label} — $${stall.price}${formatStallCapacityLabel(stall.stallCapacity)}`;\n}\n\n/** Nested market dates + per-date stall lines for invitation share copy. */\nexport function formatShareInvitationMarketDatesSection(\n dateTime: ShareEventInfoForInvitation[\"dateTime\"],\n): string {\n const dateBlocks = dateTime.map((date) => {\n const formattedDate = formatShareMarketDate(date.startDate);\n const stallLines = date.stallTypes.map(formatShareStallLine);\n return [`- ${formattedDate}`, ...stallLines].join(\"\\n\");\n });\n\n return `${SHARE_MARKET_DATES_SECTION_HEADING}\\n${dateBlocks.join(\"\\n\")}`;\n}\n\nexport function formatShareRainOrShineLine(\n rainOrShine: boolean,\n): string | null {\n return rainOrShine ? SHARE_RAIN_OR_SHINE_LINE : null;\n}\n\nexport function formatShareIsFoodTrueLine(foodTruck: boolean): string | null {\n return foodTruck ? SHARE_FOOD_TRUCK_LINE : null;\n}\n\n/** Bulleted requirements list for invitation share copy. */\nexport function formatShareInvitationRequirementsSection(\n requirements: ShareEventInfoForInvitation[\"requirements\"] | null,\n): string | null {\n const bullets = (requirements ?? [])\n .filter((item) => item.value)\n .map((item) => item.label.trim())\n .filter((label) => label.length > 0)\n .map((label) => `- ${label}`);\n if (bullets.length === 0) {\n return null;\n }\n return `${SHARE_REQUIREMENTS_SECTION_HEADING}\\n${bullets.join(\"\\n\")}`;\n}\n\nexport function formatShareTagsSection(tags: string[]): string | null {\n const bullets = tags\n .map((tag) => tag.trim())\n .filter((tag) => tag.length > 0)\n .map((tag) => `- ${tag}`);\n if (bullets.length === 0) {\n return null;\n }\n return `${SHARE_TAGS_SECTION_HEADING}\\n${bullets.join(\"\\n\")}`;\n}\n\n/** Bulleted categories list for application share copy. */\nexport function formatShareApplicationCategoriesSection(\n categories: ShareVendorForApplication[\"categories\"],\n): string | null {\n const bullets = categories\n .map((category) => formatCategoryLabel(category).trim())\n .filter((label) => label.length > 0)\n .map((label) => `- ${label}`);\n if (bullets.length === 0) {\n return null;\n }\n return `${SHARE_CATEGORIES_SECTION_HEADING}\\n${bullets.join(\"\\n\")}`;\n}\n\n/** Stall dimensions line for application share copy. */\nexport function formatShareApplicationStallSizeLine(size: {\n width: string;\n depth: string;\n}): string {\n return `${SHARE_STALL_SIZE_PREFIX} ${size.width}m × ${size.depth}m`;\n}\n\n/** Bulleted compliance list for application share copy. */\nexport function formatShareApplicationComplianceSection(\n compliance: ShareVendorInfoForApplication[\"compliance\"],\n): string | null {\n const bullets = [\n compliance?.liabilityInsurance && \"Liability insurance\",\n compliance?.foodBeverageLicense && \"Food & beverage licence\",\n ]\n .filter((label): label is string => Boolean(label))\n .map((label) => `- ${label}`);\n if (bullets.length === 0) {\n return null;\n }\n return `${SHARE_COMPLIANCE_PREFIX}\\n${bullets.join(\"\\n\")}`;\n}\n\n/** Price range line for application share copy. */\nexport function formatShareApplicationPriceRangeLine(priceRange: {\n min: string;\n max: string;\n}): string {\n return `${SHARE_PRICE_RANGE_PREFIX} $${priceRange.min} – $${priceRange.max}`;\n}\n\n/** Application-deadline sentence for invitation share copy. */\nexport function formatShareInvitationApplicationDeadlineLine(\n applicationDeadlineHours: number,\n): string {\n return `${SHARE_APPLICATION_DEADLINE_PREFIX} vendors must apply at least ${applicationDeadlineHours} hours before each market date.`;\n}\n\nexport function buildInvitationShareDescription(\n event: ShareEventForInvitation,\n eventInfo: ShareEventInfoForInvitation | null | undefined,\n): string {\n const stallTypes =\n eventInfo?.dateTime?.flatMap((date) => date.stallTypes) ?? [];\n\n if (!eventInfo || stallTypes.length === 0) {\n return event.description?.trim() || \"\";\n }\n\n const sections = [\n event.location.fullAddress,\n formatShareRainOrShineLine(event.rainOrShine),\n formatShareTagsSection(event.tags),\n formatShareInvitationMarketDatesSection(eventInfo.dateTime),\n formatShareInvitationApplicationDeadlineLine(\n eventInfo.applicationDeadlineHours,\n ),\n formatShareInvitationRequirementsSection(eventInfo.requirements),\n ];\n\n return joinShareDescriptionSections(sections);\n}\n\nexport function buildApplicationShareDescription(\n vendor: ShareVendorForApplication,\n vendorInfo: ShareVendorInfoForApplication | null | undefined,\n): string {\n if (!vendorInfo) {\n return vendor.description?.trim() || \"\";\n }\n\n const profileDescription = vendor.description?.trim();\n\n const sections = [\n formatShareIsFoodTrueLine(vendor.foodTruck),\n formatShareApplicationCategoriesSection(vendor.categories),\n formatShareApplicationStallSizeLine(vendorInfo.stallInfo.size),\n formatShareApplicationComplianceSection(vendorInfo.compliance),\n formatShareApplicationPriceRangeLine(vendorInfo.product.priceRange),\n profileDescription,\n ];\n\n return joinShareDescriptionSections(sections);\n}\n","import {\n formatShareIsFoodTrueLine,\n formatShareRainOrShineLine,\n formatShareTagsSection,\n} from \"./buildRelationShareDescription\";\nimport { joinShareDescriptionSections } from \"./joinShareDescriptionSections\";\n\n/** Minimal event fields for public (market) share copy — matches in-app preview. */\nexport type ShareEventForPublic = {\n description?: string | null;\n rainOrShine: boolean;\n tags: string[];\n};\n\n/** Minimal vendor fields for public (stallholder) share copy — matches in-app preview. */\nexport type ShareVendorForPublic = {\n description?: string | null;\n foodTruck: boolean;\n};\n\nexport function buildPublicEventShareDescription(\n event: ShareEventForPublic,\n): string {\n return joinShareDescriptionSections([\n formatShareRainOrShineLine(event.rainOrShine),\n formatShareTagsSection(event.tags),\n event.description?.trim(),\n ]);\n}\n\nexport function buildPublicVendorShareDescription(\n vendor: ShareVendorForPublic,\n): string {\n return joinShareDescriptionSections([\n formatShareIsFoodTrueLine(vendor.foodTruck),\n vendor.description?.trim(),\n ]);\n}\n","import {\n POST_SHARE_RESOURCE_TYPES,\n RESOURCE_SHARE_TYPES,\n SHARE_SITE_URL,\n} from \"./constants\";\nimport {\n RELATION_SHARE_APPLICATION,\n RELATION_SHARE_INVITATION,\n} from \"./relationShareTypes\";\n\n/** Path segments for public resource share URLs (markets, posts, etc.). */\nexport const PUBLIC_SHARE_PATH_TYPES = [\n ...RESOURCE_SHARE_TYPES,\n ...POST_SHARE_RESOURCE_TYPES,\n] as const;\n\nexport type PublicSharePathType = (typeof PUBLIC_SHARE_PATH_TYPES)[number];\n\nexport type RelationSharePathType =\n | typeof RELATION_SHARE_INVITATION\n | typeof RELATION_SHARE_APPLICATION;\n\nexport type ShareType = PublicSharePathType | RelationSharePathType;\n\n/** Alternation for deep-link regexes — keep in sync with {@link ShareType}. */\nexport const SHARE_TYPE_PATH_REGEX = [\n ...PUBLIC_SHARE_PATH_TYPES,\n RELATION_SHARE_APPLICATION,\n RELATION_SHARE_INVITATION,\n].join(\"|\");\n\nexport function buildShareUrl(\n type: ShareType,\n slug: string,\n utmMedium: string = \"app\",\n): string {\n return `${SHARE_SITE_URL}/${type}/${encodeURIComponent(slug)}?utm_source=share&utm_medium=${utmMedium}&utm_campaign=${type}`;\n}\n","import { SHARE_MORE_INFO_LINE, type ShareResourceType } from \"./constants\";\nimport {\n joinShareOgDescriptionSections,\n SHARE_DESCRIPTION_SECTION_BREAK,\n} from \"./joinShareDescriptionSections\";\n\nexport {\n joinShareOgDescriptionSections,\n OG_DESCRIPTION_LINE_BREAK,\n SHARE_DESCRIPTION_SECTION_BREAK,\n} from \"./joinShareDescriptionSections\";\n\n/** Trims share text and collapses spaces per line; preserves `\\n\\n` section breaks. */\nconst LEADING_WHITESPACE = /^[ \\t]*/;\n\nexport function normalizeShareText(value: string | null | undefined): string {\n if (value == null) {\n return \"\";\n }\n return value\n .trim()\n .split(\"\\n\")\n .map((line) => {\n const leading = LEADING_WHITESPACE.exec(line)?.[0] ?? \"\";\n const rest = line\n .slice(leading.length)\n .trim()\n .replace(/[ \\t]{2,}/g, \" \");\n return leading + rest;\n })\n .join(\"\\n\")\n .replace(/\\n{3,}/g, \"\\n\\n\");\n}\n\n/** Branding line placement — first so Facebook truncation does not drop it. */\nexport type ShareMessageFooterPlacement = \"before-body\";\n\nexport function shareMessageFooterPlacementForType(\n _shareType?: ShareResourceType,\n): ShareMessageFooterPlacement {\n return \"before-body\";\n}\n\n/**\n * Ordered sections for share-sheet / Facebook SDK quote text:\n * {@link SHARE_MORE_INFO_LINE} → title → description (full body or post caption).\n */\nexport function buildShareMessageSections(input: {\n title?: string | null;\n description?: string | null;\n shareType?: ShareResourceType;\n}): string[] {\n const title = normalizeShareText(input.title);\n const description = normalizeShareText(input.description);\n\n return [SHARE_MORE_INFO_LINE, title, description].filter(\n (section) => section.length > 0,\n );\n}\n\nexport function splitShareDescriptionSections(value: string): string[] {\n const trimmed = normalizeShareText(value);\n if (!trimmed) {\n return [];\n }\n\n if (/\\n\\n/.test(trimmed)) {\n return trimmed\n .split(/\\n\\n+/)\n .map((section) => normalizeShareText(section))\n .filter((section) => section.length > 0);\n }\n\n if (/\\n/.test(trimmed)) {\n return trimmed\n .split(/\\n+/)\n .map((section) => normalizeShareText(section))\n .filter((section) => section.length > 0);\n }\n\n return [trimmed];\n}\n\n/**\n * Formats share descriptions for Open Graph / Twitter meta tags.\n * Sections are joined with {@link OG_DESCRIPTION_LINE_BREAK} (` `).\n */\nexport function normalizeShareOgDescription(value: string): string {\n return joinShareOgDescriptionSections(splitShareDescriptionSections(value));\n}\n\n/**\n * Quote text for Facebook ShareDialog on iOS (`ShareLinkContent.quote`).\n *\n * Title + blank lines + body sections. URL is omitted — `contentUrl` supplies\n * the link card (OG on resource landing pages controls card title/image).\n */\nexport function buildFacebookShareQuote(\n title: string,\n description: string,\n shareType?: ShareResourceType,\n): string | undefined {\n const sections = buildShareMessageSections({ description, shareType, title });\n const quote = sections.join(SHARE_DESCRIPTION_SECTION_BREAK).trim();\n return quote.length > 0 ? quote : undefined;\n}\n\n/**\n * Open Graph / Twitter description from pre-built section strings.\n * Prefer {@link joinShareOgDescriptionSections} when sections are already known.\n */\nexport function buildShareOgDescriptionFromSections(\n sections: ReadonlyArray<string | false | null | undefined>,\n): string {\n return joinShareOgDescriptionSections(sections);\n}\n\n/** Open Graph / Twitter description — body sections only (`og:title` is separate). */\nexport function buildShareOgDescription(\n _title: string,\n description: string,\n): string {\n return joinShareOgDescriptionSections(\n splitShareDescriptionSections(description),\n );\n}\n\n/**\n * Strips emoji and symbols that do not render reliably in overlay SVG fonts.\n * Keeps letters, numbers, whitespace, and common sentence punctuation.\n */\nexport function stripOverlaySubtitleSpecialChars(text: string): string {\n const regex = /[^\\p{L}\\p{M}\\p{N}\\s.,!?'\"&\\-():;/]/gu;\n const result = text\n .replace(/\\p{Extended_Pictographic}/gu, \"\")\n .replace(regex, \"\");\n return result.trim();\n}\n","import type { ShareResourceType } from \"./constants\";\n\nexport function normalizeShareRouteId(id: string): string {\n try {\n return decodeURIComponent(id);\n } catch {\n return id;\n }\n}\n\n/** Relative path for a public share landing page (`/market/demo-market`). */\nexport function buildSharePagePath(\n resourceType: ShareResourceType,\n slug: string,\n): string {\n return `/${resourceType}/${encodeURIComponent(normalizeShareRouteId(slug))}`;\n}\n","export type ShareSlugResource = {\n _id: string;\n};\n\nexport function shareSlugResourceId(\n resource: ShareSlugResource | null | undefined,\n): string | null {\n return resource?._id ?? null;\n}\n","/**\n * Normalizes resource `updatedAt` to an epoch-ms string for Facebook/CDN cache busting\n * on social-image URLs (`?v=`). The API ignores this query param.\n */\nexport function toShareSocialImageCacheVersion(\n updatedAt: Date | string | number | null | undefined,\n): string | null {\n if (updatedAt == null || updatedAt === \"\") {\n return null;\n }\n\n let ms: number;\n if (typeof updatedAt === \"number\") {\n ms = updatedAt;\n } else if (updatedAt instanceof Date) {\n ms = updatedAt.getTime();\n } else {\n ms = Date.parse(String(updatedAt));\n }\n\n if (!Number.isFinite(ms)) {\n return null;\n }\n\n return String(Math.trunc(ms));\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;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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,mBAAkB;AAClB,+BAA8B;AAC9B,2BAA0B;AAC1B,sBAAqB;AACrB,iBAAgB;;;ACmNT,IAAK,sBAAL,kBAAKA,yBAAL;AACL,EAAAA,qBAAA,mBAAgB;AAChB,EAAAA,qBAAA,aAAU;AACV,EAAAA,qBAAA,WAAQ;AACR,EAAAA,qBAAA,cAAW;AACX,EAAAA,qBAAA,eAAY;AACZ,EAAAA,qBAAA,eAAY;AACZ,EAAAA,qBAAA,cAAW;AACX,EAAAA,qBAAA,WAAQ;AACR,EAAAA,qBAAA,kBAAe;AACf,EAAAA,qBAAA,cAAW;AACX,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ACR,SAAO,IAAI,YAAY,IAAI,mBAAmB,sBAAsB,IAAI,CAAC,CAAC;AAC5E;;;ACZO,SAAS,oBACd,UACe;AACf,SAAO,UAAU,OAAO;AAC1B;;;ACJO,SAAS,+BACd,WACe;AACf,MAAI,aAAa,QAAQ,cAAc,IAAI;AACzC,WAAO;AAAA,EACT;AAEA,MAAI;AACJ,MAAI,OAAO,cAAc,UAAU;AACjC,SAAK;AAAA,EACP,WAAW,qBAAqB,MAAM;AACpC,SAAK,UAAU,QAAQ;AAAA,EACzB,OAAO;AACL,SAAK,KAAK,MAAM,OAAO,SAAS,CAAC;AAAA,EACnC;AAEA,MAAI,CAAC,OAAO,SAAS,EAAE,GAAG;AACxB,WAAO;AAAA,EACT;AAEA,SAAO,OAAO,KAAK,MAAM,EAAE,CAAC;AAC9B;","names":["EnumEventDateStatus","dayjs","customParseFormat","utc","timezone","isSameOrAfter","dayjs"]}
|
|
1
|
+
{"version":3,"sources":["../../src/sharing/index.ts","../../src/utils/date.ts","../../src/generated/graphql.ts","../../src/utils/mapArrayToOptions.ts","../../src/sharing/relationShareTypes.ts","../../src/sharing/constants.ts","../../src/sharing/formatCategoryLabel.ts","../../src/sharing/joinShareDescriptionSections.ts","../../src/sharing/buildRelationShareDescription.ts","../../src/sharing/buildPublicShareDescription.ts","../../src/sharing/buildShareUrl.ts","../../src/sharing/normalizeShareDescription.ts","../../src/sharing/normalizeShareRouteId.ts","../../src/sharing/shareSlugResource.ts","../../src/sharing/toShareSocialImageCacheVersion.ts"],"sourcesContent":["export * from \"./buildPublicShareDescription\";\nexport * from \"./buildRelationShareDescription\";\nexport * from \"./shareRelationTypes\";\nexport * from \"./buildShareUrl\";\nexport * from \"./constants\";\nexport * from \"./formatCategoryLabel\";\nexport * from \"./joinShareDescriptionSections\";\nexport * from \"./normalizeShareDescription\";\nexport * from \"./normalizeShareRouteId\";\nexport * from \"./relationShareTypes\";\nexport * from \"./shareSlugResource\";\nexport * from \"./toShareSocialImageCacheVersion\";\n","import dayjs from \"dayjs\";\nimport customParseFormat from \"dayjs/plugin/customParseFormat.js\";\nimport isSameOrAfter from \"dayjs/plugin/isSameOrAfter.js\";\nimport timezone from \"dayjs/plugin/timezone.js\";\nimport utc from \"dayjs/plugin/utc.js\";\n\nimport { EventDateStatusEnumType } from \"../generated/graphql\";\n\nimport { mapArrayToOptions } from \"./mapArrayToOptions\";\n\nexport const dateFormat = \"DD-MM-YYYY\";\nexport const timeFormat = \"HH:mm\";\n\n// Enable custom format parsing\ndayjs.extend(customParseFormat);\ndayjs.extend(utc);\ndayjs.extend(timezone);\ndayjs.extend(isSameOrAfter);\n\nconst NZ_TZ = \"Pacific/Auckland\";\n\nexport function toNZTime(date?: Date | string) {\n return date ? dayjs(date).tz(NZ_TZ) : dayjs().tz(NZ_TZ);\n}\n\n/** Start of the calendar day in Pacific/Auckland (daily games, streaks, etc.). */\nexport function nzStartOfDay(\n input?: Date | string | number | null,\n): dayjs.Dayjs {\n if (input == null) {\n return dayjs().tz(NZ_TZ).startOf(\"day\");\n }\n return dayjs.tz(input, NZ_TZ).startOf(\"day\");\n}\n\ntype DateFormat = \"date\" | \"time\" | \"datetime\";\n\n/**\n * Format a date string to a more readable format.\n * @param dateStr - the date string\n * @param timeStr - optional time string\n * @param display - 'date' | 'time' | 'datetime'\n * @returns formatted string based on display option\n */\nexport const formatDate = (\n dateStr: string,\n display: DateFormat = \"datetime\",\n timeStr?: string,\n) => {\n // Combine date and time into a single string if time is provided\n const dateTimeStr = timeStr ? `${dateStr} ${timeStr}` : dateStr;\n\n // Parse with formats\n const dateTime = timeStr\n ? dayjs(dateTimeStr, `${dateFormat} ${timeFormat}`)\n : dayjs(dateStr, dateFormat);\n\n // Format parts\n const formattedDate = dateTime.format(\"dddd, D MMMM, YYYY\");\n const formattedTime = dateTime.format(\"h:mm a\");\n\n // Return based on display option\n switch (display) {\n case \"date\":\n return formattedDate;\n case \"time\":\n return formattedTime;\n case \"datetime\":\n return `${formattedDate} at ${formattedTime}`;\n default:\n return formattedDate;\n }\n};\n\nexport const getCurrentAndFutureDates = <\n T extends { startDate: string; startTime: string },\n>(\n dates: T[],\n): T[] => {\n const now = dayjs(); // current date and time\n\n return dates.filter((dateObj) => {\n const dateTime = dayjs(\n `${dateObj.startDate} ${dateObj.startTime}`,\n `${dateFormat} ${timeFormat}`,\n );\n return dateTime.isSameOrAfter(now);\n });\n};\n\nexport const isFutureDatesBeforeThreshold = (\n date: {\n startDate: string;\n startTime: string;\n },\n minHoursFromNow: number,\n): boolean => {\n const threshold = minHoursFromNow\n ? dayjs().add(minHoursFromNow, \"hour\")\n : dayjs().startOf(\"day\");\n\n const dateTime = dayjs(\n `${date.startDate} ${date.startTime}`,\n `${dateFormat} ${timeFormat}`,\n );\n\n return dateTime.isSameOrAfter(threshold);\n};\n\nexport const formatTimestamp = (timestamp: string) => {\n const formattedDate = toNZTime(timestamp).format(dateFormat);\n\n return formatDate(formattedDate, \"date\");\n};\n\nexport const isIsoDateString = (value: unknown): value is string => {\n return typeof value === \"string\" && !Number.isNaN(Date.parse(value));\n};\n\n/**\n * Sort an array of date strings by their proximity to the current date.\n * @param dates - The array of date strings to sort.\n * @returns - The sorted array of date strings.\n */\nexport function sortDatesChronologically<\n T extends { startDate: string; startTime: string },\n>(dates: T[]): T[] {\n if (!dates?.length) {\n return [];\n }\n\n return [...dates].sort((a, b) => {\n const dateTimeFormat = `${dateFormat} ${timeFormat}`;\n const dateA = dayjs(`${a.startDate} ${a.startTime}`, dateTimeFormat);\n const dateB = dayjs(`${b.startDate} ${b.startTime}`, dateTimeFormat);\n return dateA.valueOf() - dateB.valueOf(); // chronological order\n });\n}\n\nexport const futureTimePeriods = mapArrayToOptions(\n Object.values(EventDateStatusEnumType),\n)\n .filter(\n (period) =>\n period.value !== EventDateStatusEnumType.StartingSoon &&\n period.value !== EventDateStatusEnumType.Canceled &&\n period.value !== EventDateStatusEnumType.Rescheduled &&\n period.value !== EventDateStatusEnumType.Started &&\n period.value !== EventDateStatusEnumType.Ended &&\n period.value !== EventDateStatusEnumType.Invalid,\n )\n .map((period) => ({\n label: period.value.replaceAll(\"_\", \" \"),\n value: period.value,\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","import { OptionItem } from \"src/types\";\n\n/**\n * Convert an array of strings to an array of objects with label and value properties.\n */\nexport const mapArrayToOptions = (items: string[]): OptionItem[] =>\n items.map((item) => ({\n label: item,\n value: item,\n }));\n","/** Path segments for relation share URLs — must match mobile `RelationTitle` values. */\nexport const RELATION_SHARE_INVITATION = \"invitation\" as const;\nexport const RELATION_SHARE_APPLICATION = \"application\" as const;\n\n/**\n * Bump when relation overlay SVG/layout changes so og:image URLs and API ETags\n * invalidate after deploy. Facebook caches preview JPEGs by exact URL — changing\n * this value forces crawlers to fetch a fresh image after server deploy.\n */\nexport const RELATION_OVERLAY_LAYOUT_VERSION = 43;\n\nexport const RELATION_SHARE_RESOURCE_TYPES = [\n RELATION_SHARE_INVITATION,\n RELATION_SHARE_APPLICATION,\n] as const;\n\nexport type RelationShareResourceType =\n (typeof RELATION_SHARE_RESOURCE_TYPES)[number];\n\nexport function isRelationShareResourceType(\n resourceType: string,\n): resourceType is RelationShareResourceType {\n return (RELATION_SHARE_RESOURCE_TYPES as readonly string[]).includes(\n resourceType,\n );\n}\n","import {\n RELATION_SHARE_APPLICATION,\n RELATION_SHARE_INVITATION,\n type RelationShareResourceType,\n} from \"./relationShareTypes\";\n\nexport {\n RELATION_SHARE_APPLICATION,\n RELATION_SHARE_INVITATION,\n RELATION_OVERLAY_LAYOUT_VERSION,\n RELATION_SHARE_RESOURCE_TYPES,\n isRelationShareResourceType,\n type RelationShareResourceType,\n} from \"./relationShareTypes\";\n\n/** Open Graph recommended preview size (must match admin `SHARE_OG_IMAGE_*`). */\nexport const SOCIAL_IMAGE_WIDTH = 1200;\n\n/** Open Graph recommended preview size (must match admin `SHARE_OG_IMAGE_*`). */\nexport const SOCIAL_IMAGE_HEIGHT = 630;\n\n/** Keep in sync with `CLUEMART_MAIN_DOMAIN_URL` in utils (avoid utils↔sharing import cycle). */\nexport const SHARE_SITE_URL = \"https://cluemart.co.nz\";\n\n/** Calendar marker for invitation market-dates share copy (U+1F4C5 📅). */\nexport const SHARE_CALENDAR_ICON = \"\\u{1F4C5}\";\n\nexport const SHARE_MARKET_DATES_SECTION_HEADING = `${SHARE_CALENDAR_ICON} Market dates:`;\n\n/** Check mark for invitation requirements share copy (U+2705 ✅). */\nexport const SHARE_CHECKMARK_ICON = \"\\u{2705}\";\n\nexport const SHARE_REQUIREMENTS_SECTION_HEADING = `${SHARE_CHECKMARK_ICON} Requirements:`;\n\n/** Information marker for tags share copy (U+2139 ℹ️). */\nexport const SHARE_INFO_ICON = \"\\u{2139}\\u{FE0F}\";\n\nexport const SHARE_TAGS_SECTION_HEADING = `${SHARE_INFO_ICON} Tags:`;\n\n/** Standalone line when `rainOrShine` is true (invitation share + OG section parsing). */\nexport const SHARE_RAIN_OR_SHINE_LINE = \"Rain or Shine\";\n\n/** Standalone line when `foodTruck` is true (application share + OG section parsing). */\nexport const SHARE_FOOD_TRUCK_LINE = \"Food Truck\";\n\n/** Prefix for application compliance line (share text + OG section parsing). */\nexport const SHARE_COMPLIANCE_PREFIX = `${SHARE_CHECKMARK_ICON} Compliance:`;\n\n/** Label tag for application categories share copy (U+1F3F7 🏷️). */\nexport const SHARE_CATEGORY_ICON = \"\\u{1F3F7}\\u{FE0F}\";\n\nexport const SHARE_CATEGORIES_SECTION_HEADING = `${SHARE_CATEGORY_ICON} Categories:`;\n\n/** Straight ruler for application stall-size share copy (U+1F4CF 📏). */\nexport const SHARE_RULER_ICON = \"\\u{1F4CF}\";\n\n/** Prefix for application stall-size line (share text + OG section parsing). */\nexport const SHARE_STALL_SIZE_PREFIX = `${SHARE_RULER_ICON} Stall size:`;\n\n/** Dollar marker for price-range share copy (U+0024 $ — text, not emoji, so it stays black). */\nexport const SHARE_DOLLAR_ICON = \"$\";\n\n/** Prefix for application price-range line (share text + OG section parsing). */\nexport const SHARE_PRICE_RANGE_PREFIX = `${SHARE_DOLLAR_ICON} Price range:`;\n\n/** Alarm clock for invitation application-deadline share copy (U+23F0 ⏰). */\nexport const SHARE_CLOCK_ICON = \"\\u{23F0}\";\n\n/** Prefix for the invitation application-deadline sentence (share text + OG section parsing). */\nexport const SHARE_APPLICATION_DEADLINE_PREFIX = `${SHARE_CLOCK_ICON} Application deadline:`;\n\n/** First line on share sheet messages, Facebook SDK quote, and `og:description`. */\nexport const SHARE_MORE_INFO_LINE = \"Shared from ClueMart\";\n\nexport const DEFAULT_SHARE_OG_IMAGE = `${SHARE_SITE_URL}/assets/logo.webp`;\n\nexport const RESOURCE_SHARE_TYPES = [\n \"market\",\n \"stallholder\",\n \"partner\",\n \"affiliate\",\n \"school\",\n] as const;\n\nexport type ResourceShareType = (typeof RESOURCE_SHARE_TYPES)[number];\n\nexport const POST_SHARE_RESOURCE_TYPES = [\n \"market_faces\",\n \"clue_bites\",\n \"play_and_win\",\n] as const;\n\nexport type PostShareResourceType = (typeof POST_SHARE_RESOURCE_TYPES)[number];\n\nexport type ShareResourceType =\n | ResourceShareType\n | PostShareResourceType\n | RelationShareResourceType;\n\nexport const SHARE_RESOURCE_LABEL: Record<ShareResourceType, string> = {\n [RELATION_SHARE_APPLICATION]: \"Application\",\n [RELATION_SHARE_INVITATION]: \"Invitation\",\n clue_bites: \"Clue Bites\",\n market_faces: \"Market Faces\",\n play_and_win: \"Play & Win\",\n market: \"Market\",\n partner: \"Partner\",\n stallholder: \"Stallholder\",\n affiliate: \"Affiliate\",\n school: \"School\",\n};\n\nexport function isPostShareResourceType(\n resourceType: ShareResourceType,\n): resourceType is PostShareResourceType {\n return (POST_SHARE_RESOURCE_TYPES as readonly string[]).includes(\n resourceType,\n );\n}\n","/**\n * Formats a category for share / display copy.\n * Accepts both form Category (required subcategories) and GraphQL CategoryType\n * (optional/nullable subcategory trees).\n */\nexport function formatCategoryLabel(category: {\n name: string;\n subcategories?: ReadonlyArray<{ name?: string | null } | null> | null;\n}): string {\n const subcategoryNames = (category.subcategories ?? [])\n .filter((subcategory): subcategory is { name?: string | null } =>\n Boolean(subcategory),\n )\n .map((subcategory) => subcategory.name)\n .filter((name): name is string => Boolean(name));\n\n if (subcategoryNames.length === 0) {\n return category.name;\n }\n\n return `${category.name} (${subcategoryNames.join(\", \")})`;\n}\n","import { SHARE_MORE_INFO_LINE } from \"./constants\";\n\n/** Blank line between share sections — title, address, dates, URL, etc. */\nexport const SHARE_DESCRIPTION_SECTION_BREAK = \"\\n\\n\";\n\n/**\n * Line break for `og:description` meta content. Use instead of `\\n` — Next.js\n * HTML serialisation collapses literal newlines to spaces; Facebook reads ` `.\n */\nexport const OG_DESCRIPTION_LINE_BREAK = \" \";\n\n/** Joins OG description sections for Facebook link cards (and Twitter). */\nexport function joinShareOgDescriptionSections(\n sections: ReadonlyArray<string | false | null | undefined>,\n): string {\n return sections\n .map((section) => (typeof section === \"string\" ? section.trim() : \"\"))\n .filter((section): section is string => section.length > 0)\n .map((section) => section.replace(/\\n/g, OG_DESCRIPTION_LINE_BREAK))\n .join(OG_DESCRIPTION_LINE_BREAK);\n}\n\nexport function joinShareDescriptionSections(\n sections: ReadonlyArray<string | false | null | undefined>,\n): string {\n return sections\n .filter((section): section is string => Boolean(section))\n .join(SHARE_DESCRIPTION_SECTION_BREAK);\n}\n\n/** Prepends the standard share branding line when assembling display text. */\nexport function appendShareMoreInfoLine(description: string): string {\n const trimmed = description.trim();\n if (trimmed.startsWith(SHARE_MORE_INFO_LINE)) {\n return trimmed;\n }\n if (trimmed.length === 0) {\n return SHARE_MORE_INFO_LINE;\n }\n return joinShareDescriptionSections([SHARE_MORE_INFO_LINE, trimmed]);\n}\n","import type { StallType } from \"../types/event\";\nimport { formatDate } from \"../utils/date\";\n\nimport {\n SHARE_APPLICATION_DEADLINE_PREFIX,\n SHARE_CATEGORIES_SECTION_HEADING,\n SHARE_FOOD_TRUCK_LINE,\n SHARE_MARKET_DATES_SECTION_HEADING,\n SHARE_RAIN_OR_SHINE_LINE,\n SHARE_REQUIREMENTS_SECTION_HEADING,\n SHARE_COMPLIANCE_PREFIX,\n SHARE_PRICE_RANGE_PREFIX,\n SHARE_STALL_SIZE_PREFIX,\n SHARE_TAGS_SECTION_HEADING,\n} from \"./constants\";\nimport { formatCategoryLabel } from \"./formatCategoryLabel\";\nimport { joinShareDescriptionSections } from \"./joinShareDescriptionSections\";\nimport type {\n ShareEventForInvitation,\n ShareEventInfoForInvitation,\n ShareVendorForApplication,\n ShareVendorInfoForApplication,\n} from \"./shareRelationTypes\";\n\nexport type {\n ShareEventForInvitation,\n ShareEventInfoForInvitation,\n ShareVendorForApplication,\n ShareVendorInfoForApplication,\n} from \"./shareRelationTypes\";\n\n/** Formats event `startDate` (`DD-MM-YYYY`) for share copy — same as share preview UI. */\nexport function formatShareMarketDate(dateStr: string): string {\n return formatDate(dateStr, \"date\");\n}\n\nexport function formatStallCapacityLabel(stallCapacity: number): string {\n return stallCapacity > 0 ? ` (${stallCapacity} spaces available)` : \" - Full\";\n}\n\nexport function formatShareStallLine(stall: StallType): string {\n return ` - ${stall.label} — $${stall.price}${formatStallCapacityLabel(stall.stallCapacity)}`;\n}\n\n/** Nested market dates + per-date stall lines for invitation share copy. */\nexport function formatShareInvitationMarketDatesSection(\n dateTime: ShareEventInfoForInvitation[\"dateTime\"],\n): string {\n const dateBlocks = dateTime.map((date) => {\n const formattedDate = formatShareMarketDate(date.startDate);\n const stallLines = date.stallTypes.map(formatShareStallLine);\n return [`- ${formattedDate}`, ...stallLines].join(\"\\n\");\n });\n\n return `${SHARE_MARKET_DATES_SECTION_HEADING}\\n${dateBlocks.join(\"\\n\")}`;\n}\n\nexport function formatShareRainOrShineLine(\n rainOrShine: boolean,\n): string | null {\n return rainOrShine ? SHARE_RAIN_OR_SHINE_LINE : null;\n}\n\nexport function formatShareIsFoodTrueLine(foodTruck: boolean): string | null {\n return foodTruck ? SHARE_FOOD_TRUCK_LINE : null;\n}\n\n/** Bulleted requirements list for invitation share copy. */\nexport function formatShareInvitationRequirementsSection(\n requirements: ShareEventInfoForInvitation[\"requirements\"] | null,\n): string | null {\n const bullets = (requirements ?? [])\n .filter((item) => item.value)\n .map((item) => item.label.trim())\n .filter((label) => label.length > 0)\n .map((label) => `- ${label}`);\n if (bullets.length === 0) {\n return null;\n }\n return `${SHARE_REQUIREMENTS_SECTION_HEADING}\\n${bullets.join(\"\\n\")}`;\n}\n\nexport function formatShareTagsSection(tags: string[]): string | null {\n const bullets = tags\n .map((tag) => tag.trim())\n .filter((tag) => tag.length > 0)\n .map((tag) => `- ${tag}`);\n if (bullets.length === 0) {\n return null;\n }\n return `${SHARE_TAGS_SECTION_HEADING}\\n${bullets.join(\"\\n\")}`;\n}\n\n/** Bulleted categories list for application share copy. */\nexport function formatShareApplicationCategoriesSection(\n categories: ShareVendorForApplication[\"categories\"],\n): string | null {\n const bullets = categories\n .map((category) => formatCategoryLabel(category).trim())\n .filter((label) => label.length > 0)\n .map((label) => `- ${label}`);\n if (bullets.length === 0) {\n return null;\n }\n return `${SHARE_CATEGORIES_SECTION_HEADING}\\n${bullets.join(\"\\n\")}`;\n}\n\n/** Stall dimensions line for application share copy. */\nexport function formatShareApplicationStallSizeLine(size: {\n width: string;\n depth: string;\n}): string {\n return `${SHARE_STALL_SIZE_PREFIX} ${size.width}m × ${size.depth}m`;\n}\n\n/** Bulleted compliance list for application share copy. */\nexport function formatShareApplicationComplianceSection(\n compliance: ShareVendorInfoForApplication[\"compliance\"],\n): string | null {\n const bullets = [\n compliance?.liabilityInsurance && \"Liability insurance\",\n compliance?.foodBeverageLicense && \"Food & beverage licence\",\n ]\n .filter((label): label is string => Boolean(label))\n .map((label) => `- ${label}`);\n if (bullets.length === 0) {\n return null;\n }\n return `${SHARE_COMPLIANCE_PREFIX}\\n${bullets.join(\"\\n\")}`;\n}\n\n/** Price range line for application share copy. */\nexport function formatShareApplicationPriceRangeLine(priceRange: {\n min: string;\n max: string;\n}): string {\n return `${SHARE_PRICE_RANGE_PREFIX} $${priceRange.min} – $${priceRange.max}`;\n}\n\n/** Application-deadline sentence for invitation share copy. */\nexport function formatShareInvitationApplicationDeadlineLine(\n applicationDeadlineHours: number,\n): string {\n return `${SHARE_APPLICATION_DEADLINE_PREFIX} vendors must apply at least ${applicationDeadlineHours} hours before each market date.`;\n}\n\nexport function buildInvitationShareDescription(\n event: ShareEventForInvitation,\n eventInfo: ShareEventInfoForInvitation | null | undefined,\n): string {\n const stallTypes =\n eventInfo?.dateTime?.flatMap((date) => date.stallTypes) ?? [];\n\n if (!eventInfo || stallTypes.length === 0) {\n return event.description?.trim() || \"\";\n }\n\n const sections = [\n event.location.fullAddress,\n formatShareRainOrShineLine(event.rainOrShine),\n formatShareTagsSection(\n (event.tags ?? []).filter((tag): tag is string => tag != null && tag !== \"\"),\n ),\n formatShareInvitationMarketDatesSection(eventInfo.dateTime),\n formatShareInvitationApplicationDeadlineLine(\n eventInfo.applicationDeadlineHours,\n ),\n formatShareInvitationRequirementsSection(eventInfo.requirements),\n ];\n\n return joinShareDescriptionSections(sections);\n}\n\nexport function buildApplicationShareDescription(\n vendor: ShareVendorForApplication,\n vendorInfo: ShareVendorInfoForApplication | null | undefined,\n): string {\n if (!vendorInfo) {\n return vendor.description?.trim() || \"\";\n }\n\n const profileDescription = vendor.description?.trim();\n\n const sections = [\n formatShareIsFoodTrueLine(vendor.foodTruck),\n formatShareApplicationCategoriesSection(vendor.categories),\n formatShareApplicationStallSizeLine(vendorInfo.stallInfo.size),\n formatShareApplicationComplianceSection(vendorInfo.compliance),\n formatShareApplicationPriceRangeLine(vendorInfo.product.priceRange),\n profileDescription,\n ];\n\n return joinShareDescriptionSections(sections);\n}\n","import {\n formatShareIsFoodTrueLine,\n formatShareRainOrShineLine,\n formatShareTagsSection,\n} from \"./buildRelationShareDescription\";\nimport { joinShareDescriptionSections } from \"./joinShareDescriptionSections\";\n\n/** Minimal event fields for public (market) share copy — matches in-app preview. */\nexport type ShareEventForPublic = {\n description?: string | null;\n rainOrShine: boolean;\n tags: string[];\n};\n\n/** Minimal vendor fields for public (stallholder) share copy — matches in-app preview. */\nexport type ShareVendorForPublic = {\n description?: string | null;\n foodTruck: boolean;\n};\n\nexport function buildPublicEventShareDescription(\n event: ShareEventForPublic,\n): string {\n return joinShareDescriptionSections([\n formatShareRainOrShineLine(event.rainOrShine),\n formatShareTagsSection(event.tags),\n event.description?.trim(),\n ]);\n}\n\nexport function buildPublicVendorShareDescription(\n vendor: ShareVendorForPublic,\n): string {\n return joinShareDescriptionSections([\n formatShareIsFoodTrueLine(vendor.foodTruck),\n vendor.description?.trim(),\n ]);\n}\n","import {\n POST_SHARE_RESOURCE_TYPES,\n RESOURCE_SHARE_TYPES,\n SHARE_SITE_URL,\n} from \"./constants\";\nimport {\n RELATION_SHARE_APPLICATION,\n RELATION_SHARE_INVITATION,\n} from \"./relationShareTypes\";\n\n/** Path segments for public resource share URLs (markets, posts, etc.). */\nexport const PUBLIC_SHARE_PATH_TYPES = [\n ...RESOURCE_SHARE_TYPES,\n ...POST_SHARE_RESOURCE_TYPES,\n] as const;\n\nexport type PublicSharePathType = (typeof PUBLIC_SHARE_PATH_TYPES)[number];\n\nexport type RelationSharePathType =\n | typeof RELATION_SHARE_INVITATION\n | typeof RELATION_SHARE_APPLICATION;\n\nexport type ShareType = PublicSharePathType | RelationSharePathType;\n\n/** Alternation for deep-link regexes — keep in sync with {@link ShareType}. */\nexport const SHARE_TYPE_PATH_REGEX = [\n ...PUBLIC_SHARE_PATH_TYPES,\n RELATION_SHARE_APPLICATION,\n RELATION_SHARE_INVITATION,\n].join(\"|\");\n\nexport function buildShareUrl(\n type: ShareType,\n slug: string,\n utmMedium: string = \"app\",\n): string {\n return `${SHARE_SITE_URL}/${type}/${encodeURIComponent(slug)}?utm_source=share&utm_medium=${utmMedium}&utm_campaign=${type}`;\n}\n","import { SHARE_MORE_INFO_LINE, type ShareResourceType } from \"./constants\";\nimport {\n joinShareOgDescriptionSections,\n SHARE_DESCRIPTION_SECTION_BREAK,\n} from \"./joinShareDescriptionSections\";\n\nexport {\n joinShareOgDescriptionSections,\n OG_DESCRIPTION_LINE_BREAK,\n SHARE_DESCRIPTION_SECTION_BREAK,\n} from \"./joinShareDescriptionSections\";\n\n/** Trims share text and collapses spaces per line; preserves `\\n\\n` section breaks. */\nconst LEADING_WHITESPACE = /^[ \\t]*/;\n\nexport function normalizeShareText(value: string | null | undefined): string {\n if (value == null) {\n return \"\";\n }\n return value\n .trim()\n .split(\"\\n\")\n .map((line) => {\n const leading = LEADING_WHITESPACE.exec(line)?.[0] ?? \"\";\n const rest = line\n .slice(leading.length)\n .trim()\n .replace(/[ \\t]{2,}/g, \" \");\n return leading + rest;\n })\n .join(\"\\n\")\n .replace(/\\n{3,}/g, \"\\n\\n\");\n}\n\n/** Branding line placement — first so Facebook truncation does not drop it. */\nexport type ShareMessageFooterPlacement = \"before-body\";\n\nexport function shareMessageFooterPlacementForType(\n _shareType?: ShareResourceType,\n): ShareMessageFooterPlacement {\n return \"before-body\";\n}\n\n/**\n * Ordered sections for share-sheet / Facebook SDK quote text:\n * {@link SHARE_MORE_INFO_LINE} → title → description (full body or post caption).\n */\nexport function buildShareMessageSections(input: {\n title?: string | null;\n description?: string | null;\n shareType?: ShareResourceType;\n}): string[] {\n const title = normalizeShareText(input.title);\n const description = normalizeShareText(input.description);\n\n return [SHARE_MORE_INFO_LINE, title, description].filter(\n (section) => section.length > 0,\n );\n}\n\nexport function splitShareDescriptionSections(value: string): string[] {\n const trimmed = normalizeShareText(value);\n if (!trimmed) {\n return [];\n }\n\n if (/\\n\\n/.test(trimmed)) {\n return trimmed\n .split(/\\n\\n+/)\n .map((section) => normalizeShareText(section))\n .filter((section) => section.length > 0);\n }\n\n if (/\\n/.test(trimmed)) {\n return trimmed\n .split(/\\n+/)\n .map((section) => normalizeShareText(section))\n .filter((section) => section.length > 0);\n }\n\n return [trimmed];\n}\n\n/**\n * Formats share descriptions for Open Graph / Twitter meta tags.\n * Sections are joined with {@link OG_DESCRIPTION_LINE_BREAK} (` `).\n */\nexport function normalizeShareOgDescription(value: string): string {\n return joinShareOgDescriptionSections(splitShareDescriptionSections(value));\n}\n\n/**\n * Quote text for Facebook ShareDialog on iOS (`ShareLinkContent.quote`).\n *\n * Title + blank lines + body sections. URL is omitted — `contentUrl` supplies\n * the link card (OG on resource landing pages controls card title/image).\n */\nexport function buildFacebookShareQuote(\n title: string,\n description: string,\n shareType?: ShareResourceType,\n): string | undefined {\n const sections = buildShareMessageSections({ description, shareType, title });\n const quote = sections.join(SHARE_DESCRIPTION_SECTION_BREAK).trim();\n return quote.length > 0 ? quote : undefined;\n}\n\n/**\n * Open Graph / Twitter description from pre-built section strings.\n * Prefer {@link joinShareOgDescriptionSections} when sections are already known.\n */\nexport function buildShareOgDescriptionFromSections(\n sections: ReadonlyArray<string | false | null | undefined>,\n): string {\n return joinShareOgDescriptionSections(sections);\n}\n\n/** Open Graph / Twitter description — body sections only (`og:title` is separate). */\nexport function buildShareOgDescription(\n _title: string,\n description: string,\n): string {\n return joinShareOgDescriptionSections(\n splitShareDescriptionSections(description),\n );\n}\n\n/**\n * Strips emoji and symbols that do not render reliably in overlay SVG fonts.\n * Keeps letters, numbers, whitespace, and common sentence punctuation.\n */\nexport function stripOverlaySubtitleSpecialChars(text: string): string {\n const regex = /[^\\p{L}\\p{M}\\p{N}\\s.,!?'\"&\\-():;/]/gu;\n const result = text\n .replace(/\\p{Extended_Pictographic}/gu, \"\")\n .replace(regex, \"\");\n return result.trim();\n}\n","import type { ShareResourceType } from \"./constants\";\n\nexport function normalizeShareRouteId(id: string): string {\n try {\n return decodeURIComponent(id);\n } catch {\n return id;\n }\n}\n\n/** Relative path for a public share landing page (`/market/demo-market`). */\nexport function buildSharePagePath(\n resourceType: ShareResourceType,\n slug: string,\n): string {\n return `/${resourceType}/${encodeURIComponent(normalizeShareRouteId(slug))}`;\n}\n","export type ShareSlugResource = {\n _id: string;\n};\n\nexport function shareSlugResourceId(\n resource: ShareSlugResource | null | undefined,\n): string | null {\n return resource?._id ?? null;\n}\n","/**\n * Normalizes resource `updatedAt` to an epoch-ms string for Facebook/CDN cache busting\n * on social-image URLs (`?v=`). The API ignores this query param.\n */\nexport function toShareSocialImageCacheVersion(\n updatedAt: Date | string | number | null | undefined,\n): string | null {\n if (updatedAt == null || updatedAt === \"\") {\n return null;\n }\n\n let ms: number;\n if (typeof updatedAt === \"number\") {\n ms = updatedAt;\n } else if (updatedAt instanceof Date) {\n ms = updatedAt.getTime();\n } else {\n ms = Date.parse(String(updatedAt));\n }\n\n if (!Number.isFinite(ms)) {\n return null;\n }\n\n return String(Math.trunc(ms));\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;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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,mBAAkB;AAClB,+BAA8B;AAC9B,2BAA0B;AAC1B,sBAAqB;AACrB,iBAAgB;;;ACmrBT,IAAK,0BAAL,kBAAKA,6BAAL;AACL,EAAAA,yBAAA,cAAW;AACX,EAAAA,yBAAA,WAAQ;AACR,EAAAA,yBAAA,aAAU;AACV,EAAAA,yBAAA,cAAW;AACX,EAAAA,yBAAA,iBAAc;AACd,EAAAA,yBAAA,aAA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AiC,MAAsB;AACrE,QAAM,QAAQ;AACd,QAAM,SAAS,KACZ,QAAQ,+BAA+B,EAAE,EACzC,QAAQ,OAAO,EAAE;AACpB,SAAO,OAAO,KAAK;AACrB;;;ACvIO,SAAS,sBAAsB,IAAoB;AACxD,MAAI;AACF,WAAO,mBAAmB,EAAE;AAAA,EAC9B,QAAQ;AACN,WAAO;AAAA,EACT;AACF;AAGO,SAAS,mBACd,cACA,MACQ;AACR,SAAO,IAAI,YAAY,IAAI,mBAAmB,sBAAsB,IAAI,CAAC,CAAC;AAC5E;;;ACZO,SAAS,oBACd,UACe;AACf,SAAO,UAAU,OAAO;AAC1B;;;ACJO,SAAS,+BACd,WACe;AACf,MAAI,aAAa,QAAQ,cAAc,IAAI;AACzC,WAAO;AAAA,EACT;AAEA,MAAI;AACJ,MAAI,OAAO,cAAc,UAAU;AACjC,SAAK;AAAA,EACP,WAAW,qBAAqB,MAAM;AACpC,SAAK,UAAU,QAAQ;AAAA,EACzB,OAAO;AACL,SAAK,KAAK,MAAM,OAAO,SAAS,CAAC;AAAA,EACnC;AAEA,MAAI,CAAC,OAAO,SAAS,EAAE,GAAG;AACxB,WAAO;AAAA,EACT;AAEA,SAAO,OAAO,KAAK,MAAM,EAAE,CAAC;AAC9B;","names":["EventDateStatusEnumType","dayjs","customParseFormat","utc","timezone","isSameOrAfter","dayjs"]}
|
package/dist/sharing/index.d.mts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import { E as
|
|
1
|
+
import { E as EventInfoFormData, S as StallType } from '../event-W0NhL5Cd.mjs';
|
|
2
|
+
import { H as EventType, d as VendorType } from '../graphql-CcvzTs9k.mjs';
|
|
3
|
+
import { a as VendorInfoFormData } from '../vendor-DmMi2qmx.mjs';
|
|
4
|
+
import '../global-C6v9tRji.mjs';
|
|
2
5
|
import 'react-hook-form';
|
|
3
|
-
import '../
|
|
6
|
+
import '../images/index.mjs';
|
|
4
7
|
|
|
5
8
|
/** Minimal event fields for public (market) share copy — matches in-app preview. */
|
|
6
9
|
type ShareEventForPublic = {
|
|
@@ -124,7 +127,17 @@ type ShareResourceType = ResourceShareType | PostShareResourceType | RelationSha
|
|
|
124
127
|
declare const SHARE_RESOURCE_LABEL: Record<ShareResourceType, string>;
|
|
125
128
|
declare function isPostShareResourceType(resourceType: ShareResourceType): resourceType is PostShareResourceType;
|
|
126
129
|
|
|
127
|
-
|
|
130
|
+
/**
|
|
131
|
+
* Formats a category for share / display copy.
|
|
132
|
+
* Accepts both form Category (required subcategories) and GraphQL CategoryType
|
|
133
|
+
* (optional/nullable subcategory trees).
|
|
134
|
+
*/
|
|
135
|
+
declare function formatCategoryLabel(category: {
|
|
136
|
+
name: string;
|
|
137
|
+
subcategories?: ReadonlyArray<{
|
|
138
|
+
name?: string | null;
|
|
139
|
+
} | null> | null;
|
|
140
|
+
}): string;
|
|
128
141
|
|
|
129
142
|
/** Blank line between share sections — title, address, dates, URL, etc. */
|
|
130
143
|
declare const SHARE_DESCRIPTION_SECTION_BREAK = "\n\n";
|
package/dist/sharing/index.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import { E as
|
|
1
|
+
import { E as EventInfoFormData, S as StallType } from '../event-C9K7CSg4.js';
|
|
2
|
+
import { H as EventType, d as VendorType } from '../graphql-CDOfA79A.js';
|
|
3
|
+
import { a as VendorInfoFormData } from '../vendor-M9hVZlni.js';
|
|
4
|
+
import '../global-BbSFfYdd.js';
|
|
2
5
|
import 'react-hook-form';
|
|
3
|
-
import '../
|
|
6
|
+
import '../images/index.js';
|
|
4
7
|
|
|
5
8
|
/** Minimal event fields for public (market) share copy — matches in-app preview. */
|
|
6
9
|
type ShareEventForPublic = {
|
|
@@ -124,7 +127,17 @@ type ShareResourceType = ResourceShareType | PostShareResourceType | RelationSha
|
|
|
124
127
|
declare const SHARE_RESOURCE_LABEL: Record<ShareResourceType, string>;
|
|
125
128
|
declare function isPostShareResourceType(resourceType: ShareResourceType): resourceType is PostShareResourceType;
|
|
126
129
|
|
|
127
|
-
|
|
130
|
+
/**
|
|
131
|
+
* Formats a category for share / display copy.
|
|
132
|
+
* Accepts both form Category (required subcategories) and GraphQL CategoryType
|
|
133
|
+
* (optional/nullable subcategory trees).
|
|
134
|
+
*/
|
|
135
|
+
declare function formatCategoryLabel(category: {
|
|
136
|
+
name: string;
|
|
137
|
+
subcategories?: ReadonlyArray<{
|
|
138
|
+
name?: string | null;
|
|
139
|
+
} | null> | null;
|
|
140
|
+
}): string;
|
|
128
141
|
|
|
129
142
|
/** Blank line between share sections — title, address, dates, URL, etc. */
|
|
130
143
|
declare const SHARE_DESCRIPTION_SECTION_BREAK = "\n\n";
|