@timardex/cluemart-shared 1.5.767 → 1.5.769

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/dist/{ad-DCHTDsSt.d.mts → ad-8BNpjEcM.d.mts} +2 -1
  2. package/dist/{ad-Y0a_HMGC.d.ts → ad-DZGYiwY-.d.ts} +2 -1
  3. package/dist/{chunk-3U53KFHU.mjs → chunk-AKX2AGMA.mjs} +2 -2
  4. package/dist/{chunk-4YP54WNB.mjs → chunk-EEZUTQ3V.mjs} +40 -10
  5. package/dist/chunk-EEZUTQ3V.mjs.map +1 -0
  6. package/dist/{chunk-W5X2UU26.mjs → chunk-HASLOIIM.mjs} +1 -1
  7. package/dist/chunk-HASLOIIM.mjs.map +1 -0
  8. package/dist/{chunk-XYZO6N7X.mjs → chunk-HPPIA4EM.mjs} +2 -2
  9. package/dist/{chunk-AHL77AVZ.mjs → chunk-VQRZ4OJY.mjs} +2 -2
  10. package/dist/{contactUs-HfiiUgnp.d.mts → contactUs-DGrDzJaM.d.mts} +1 -1
  11. package/dist/{contactUs-kHUGKh4g.d.ts → contactUs-H7799pWe.d.ts} +1 -1
  12. package/dist/formFields/index.d.mts +1 -1
  13. package/dist/formFields/index.d.ts +1 -1
  14. package/dist/formFields/index.mjs +3 -3
  15. package/dist/{global-Bw5idRO_.d.mts → global-BUUfmCo7.d.mts} +15 -6
  16. package/dist/{global-CPlgw1lx.d.ts → global-fKbMmluy.d.ts} +15 -6
  17. package/dist/graphql/index.cjs +39 -9
  18. package/dist/graphql/index.cjs.map +1 -1
  19. package/dist/graphql/index.d.mts +3 -3
  20. package/dist/graphql/index.d.ts +3 -3
  21. package/dist/graphql/index.mjs +1 -1
  22. package/dist/hooks/index.cjs +36 -3
  23. package/dist/hooks/index.cjs.map +1 -1
  24. package/dist/hooks/index.d.mts +3 -3
  25. package/dist/hooks/index.d.ts +3 -3
  26. package/dist/hooks/index.mjs +5 -5
  27. package/dist/index.cjs +39 -9
  28. package/dist/index.cjs.map +1 -1
  29. package/dist/index.d.mts +16 -6
  30. package/dist/index.d.ts +16 -6
  31. package/dist/index.mjs +39 -9
  32. package/dist/index.mjs.map +1 -1
  33. package/dist/map/index.d.mts +1 -1
  34. package/dist/map/index.d.ts +1 -1
  35. package/dist/{resourceActivities-DkHxKIvs.d.ts → resourceActivities-BL_12IAo.d.ts} +1 -1
  36. package/dist/{resourceActivities-BIkkzyzp.d.mts → resourceActivities-zczOntNk.d.mts} +1 -1
  37. package/dist/sharing/index.d.mts +1 -1
  38. package/dist/sharing/index.d.ts +1 -1
  39. package/dist/sharing/index.mjs +3 -3
  40. package/dist/types/index.cjs.map +1 -1
  41. package/dist/types/index.d.mts +5 -5
  42. package/dist/types/index.d.ts +5 -5
  43. package/dist/types/index.mjs +1 -1
  44. package/dist/utils/index.d.mts +1 -1
  45. package/dist/utils/index.d.ts +1 -1
  46. package/dist/utils/index.mjs +2 -2
  47. package/package.json +1 -1
  48. package/dist/chunk-4YP54WNB.mjs.map +0 -1
  49. package/dist/chunk-W5X2UU26.mjs.map +0 -1
  50. /package/dist/{chunk-3U53KFHU.mjs.map → chunk-AKX2AGMA.mjs.map} +0 -0
  51. /package/dist/{chunk-XYZO6N7X.mjs.map → chunk-HPPIA4EM.mjs.map} +0 -0
  52. /package/dist/{chunk-AHL77AVZ.mjs.map → chunk-VQRZ4OJY.mjs.map} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/types/auth.ts","../src/types/global.ts","../src/types/ad.ts","../src/types/resourceActivities.ts","../src/types/post.ts","../src/types/game/index.ts","../src/types/game/dailyClue.ts","../src/types/game/global.ts","../src/types/subscription.ts"],"sourcesContent":["import {\n CreateFormData,\n EnumOSPlatform,\n PromoCodeType,\n TermsAgreement,\n} from \"src\";\n\nimport { SafeUserType } from \"./user\";\n\nexport enum EnumVerificationType {\n REGISTER = \"register\",\n RESET_PASSWORD = \"resetPassword\",\n}\n\nexport type LoginFormData = {\n email: string;\n isAdminPage?: boolean;\n password: string;\n platform?: EnumOSPlatform;\n};\n\nexport type CreateLoginFormData = CreateFormData<LoginFormData>;\n\nexport type RegisterFormData = {\n email: string;\n firstName: string;\n lastName: string;\n password: string;\n platform?: EnumOSPlatform;\n preferredRegion: string;\n promoCode?: PromoCodeType | null;\n termsAgreement?: TermsAgreement | null;\n};\n\nexport type CreateRegisterFormData = CreateFormData<RegisterFormData>;\n\nexport type RequestPasswordResetFormData = {\n email: string;\n};\n\nexport type CreateRequestPasswordResetFormData =\n CreateFormData<RequestPasswordResetFormData>;\n\nexport type ResetPasswordFormData = {\n confirmPassword: string;\n email: string;\n password: string;\n};\n\nexport type CreateResetPasswordFormData = CreateFormData<ResetPasswordFormData>;\n\nexport type ValidateVerificationTokenFormData = {\n email: string;\n verificationToken: string;\n verificationType?: EnumVerificationType;\n};\n\nexport type CreateValidateVerificationTokenFormData =\n CreateFormData<ValidateVerificationTokenFormData>;\n\nexport type AuthPayloadType = {\n message: string;\n token: string;\n refreshToken: string | null;\n user: SafeUserType;\n};\n\nexport type RefreshTokenPayloadType = {\n refreshToken: string;\n token: string;\n};\n","import {\n Control,\n FieldValues,\n FormState,\n UseFormGetValues,\n UseFormHandleSubmit,\n UseFormReset,\n UseFormSetValue,\n UseFormWatch,\n} from \"react-hook-form\";\n\nimport {\n EnumEventDateStatus,\n EnumEventType,\n EnumResourceType,\n EnumSocialMedia,\n EnumUserLicence,\n} from \"../enums\";\n\nimport { EventListItemType } from \"./event\";\nimport { EnumPostType } from \"./post\";\nimport { VendorType } from \"./vendor\";\n\nexport const PROMO_CODE_PREFIX = \"CM-\";\n\nexport type PromoCodeType = `${typeof PROMO_CODE_PREFIX}${string}`;\n\nexport type Nullable<T> = {\n [K in keyof T]: T[K] | null | undefined;\n};\n\nexport type DeviceInfo = {\n appBuildNumber: string;\n appId: string;\n appVersion: string;\n brand: string;\n deviceName: string;\n installationId: string;\n manufacturer: string;\n modelName: string;\n osName: string;\n osVersion: string;\n timestamp: string;\n};\n\nexport type TermsAgreement = DeviceInfo & {\n termVersion: string;\n};\n\nexport type ResourceContactDetailsType = {\n email?: string | null;\n landlinePhone?: string | null;\n mobilePhone?: string | null;\n};\n\nexport type ResourceImageType = {\n active: boolean;\n source: string;\n title: string;\n};\n\nexport type SocialMediaType = {\n name?: EnumSocialMedia;\n link?: string;\n};\n\nexport type UserLicenceType = {\n expiryDate: Date;\n issuedDate: Date;\n licenceType: EnumUserLicence;\n prevLicenceType?: EnumUserLicence | null;\n};\n\nexport type AssociateType = {\n email: string;\n resourceId: string;\n resourceType: EnumResourceType;\n licence: UserLicenceType;\n};\n\nexport type OwnerType = {\n email: string;\n userId: string;\n};\n\nexport interface BaseResourceTypeFormData {\n _id?: string;\n active: boolean;\n associates: AssociateType[] | null;\n contactDetails: ResourceContactDetailsType | null;\n cover: ResourceImageType;\n coverUpload?: ResourceImageType | null;\n description: string;\n images?: ResourceImageType[] | null;\n imagesUpload?: ResourceImageType[] | null;\n logo?: ResourceImageType | null;\n logoUpload?: ResourceImageType | null;\n name: string;\n owner?: OwnerType | null;\n promoCodes?: PromoCodeType[] | null;\n region: string;\n socialMedia: SocialMediaType[] | null;\n termsAgreement?: TermsAgreement | null;\n}\n\nexport type PosterUsageType = {\n month: string;\n count: number;\n};\n\nexport type RelatedPostType = {\n postId: string;\n postSlug: string;\n postType: EnumPostType;\n};\n\nexport type SocialShareResourceType = {\n qrCode: ResourceImageType;\n socialImage: ResourceImageType;\n};\n\nexport type BaseResourceType = Omit<\n BaseResourceTypeFormData,\n \"_id\" | \"coverUpload\" | \"imagesUpload\" | \"logoUpload\"\n> & {\n _id: string;\n adIds?: string[] | null;\n createdAt: Date;\n deletedAt: Date | null;\n posterUsage?: PosterUsageType | null;\n rating?: number | null;\n relatedPost?: RelatedPostType | null;\n reviewCount?: number | null;\n slug: string;\n updatedAt: Date | null;\n};\n\nexport type LocationGeoType = {\n coordinates: number[]; // [longitude, latitude]\n type: \"Point\"; // Mongoose GeoJSON type\n};\n\nexport type LocationType = {\n city: string;\n country: string;\n fullAddress: string;\n geo: LocationGeoType;\n latitude: number;\n longitude: number;\n region: string;\n};\n\nexport type DateTimeType = {\n dateStatus: EnumEventDateStatus;\n endDate: string;\n endTime: string;\n startDate: string;\n startTime: string;\n};\n\nexport type Region = {\n latitude: number;\n latitudeDelta: number;\n longitude: number;\n longitudeDelta: number;\n};\n\nexport type ResourceDetails = {\n dateTime: DateTimeType[] | null;\n description: string | null;\n eventStatus?: EventStatusType | null;\n location: LocationType | null;\n resourceCover: ResourceImageType | null;\n resourceId: string;\n resourceLogo: ResourceImageType | null;\n resourceName: string;\n resourceType: EnumResourceType;\n};\n\nexport type GeocodeLocation = Pick<LocationType, \"latitude\" | \"longitude\">;\n\nexport type EventStatusType = {\n claimed: boolean;\n eventType: EnumEventType;\n googlePlaceId?: string | null;\n};\n\nexport interface FormField {\n disabled?: boolean;\n helperText?: string;\n isTextArea?: boolean;\n keyboardType?:\n | \"default\"\n | \"email-address\"\n | \"number-pad\"\n | \"url\"\n | \"decimal-pad\"\n | \"phone-pad\";\n name: string;\n placeholder: string;\n required?: boolean;\n secureTextEntry?: boolean;\n}\n\nexport interface FormDateField {\n dateMode: \"date\" | \"time\";\n helperText?: string;\n name: \"endDate\" | \"endTime\" | \"startDate\" | \"startTime\";\n placeholder: string;\n}\n\nexport interface SubcategoryItems {\n id: string;\n name: string;\n description?: string | null;\n}\n\nexport interface Subcategory {\n id: string;\n name: string;\n items?: SubcategoryItems[] | null;\n}\n\nexport interface Category {\n color?: string | null;\n description?: string | null;\n id: string;\n name: string;\n subcategories: Subcategory[];\n}\n\nexport type OptionItem = {\n value: string;\n label: string;\n};\n\nexport type ImageObjectType = {\n uri: string;\n type: string;\n name: string;\n};\n\nexport interface ResourceConnectionsType {\n events: EventListItemType[] | null;\n vendors: VendorType[] | null;\n}\n\nexport interface CreateFormData<T extends FieldValues> {\n control: Control<T, any>;\n fields: T;\n formState: FormState<T>;\n handleSubmit: UseFormHandleSubmit<T, any>;\n reset: UseFormReset<T>;\n setValue: UseFormSetValue<T>;\n watch: UseFormWatch<T>;\n getValues: UseFormGetValues<T>;\n}\n\nexport interface UseGetResourcesByRegionOptions {\n onlyClaimed?: boolean;\n limit?: number;\n offset?: number;\n}\n","import { EnumResourceType } from \"src/enums\";\n\nimport { CreateFormData } from \"./global\";\n\nexport enum EnumAdShowOn {\n EVENTS_PAGE = \"Events_page\",\n FRONT_PAGE = \"Front_page\",\n PARTNERS_PAGE = \"Partners_page\",\n VENDORS_PAGE = \"Vendors_page\",\n}\n\nexport enum EnumAdStatus {\n ACTIVE = \"Active\",\n PAUSED = \"Paused\",\n EXPIRED = \"Expired\",\n}\n\nexport enum EnumAdType {\n SPONSORED = \"Sponsored\",\n FREE = \"Free\",\n}\n\nexport enum EnumAdStyle {\n BLOOM = \"Bloom\",\n RISE = \"Rise\",\n}\n\nexport type AdResource = {\n adDescription: string;\n adImage: string;\n adStyle: EnumAdStyle;\n adTitle: string;\n adType: EnumAdType;\n resourceId: string;\n resourceName: string;\n resourceRegion: string;\n resourceType: EnumResourceType;\n resourceSlug: string;\n};\n\nexport interface AdFormData {\n active: boolean;\n end: Date; // ISO date string\n resource: AdResource;\n showOn: EnumAdShowOn[];\n start?: Date; // ISO date string\n status: EnumAdStatus;\n targetRegion: string[];\n}\n\n// Form state matches the validation schema: all resource fields are present.\n// Use empty strings / explicit enum defaults in `defaultValues` for \"create\" flows.\nexport type AdFormState = AdFormData;\n\nexport type CreateAdFormData = CreateFormData<AdFormData>;\nexport type CreateAdFormState = CreateFormData<AdFormState>;\n\nexport interface AdType extends AdFormData {\n _id: string;\n clicks?: number; // How many times the ad was clicked\n createdAt: Date;\n impressions?: number; // How often the ad was seen\n start: Date; // ISO date string\n updatedAt: Date | null;\n}\n","import {\n EnumEventDateStatus,\n EnumOSPlatform,\n EnumResourceType,\n} from \"src/enums\";\n\nimport { LocationGeoType } from \"./global\";\n\nexport enum EnumActivity {\n FAVORITE = \"FAVORITE\",\n GOING = \"GOING\",\n INTERESTED = \"INTERESTED\",\n PRESENT = \"PRESENT\",\n VIEW = \"VIEW\",\n}\n\nexport type ResourceActivityEntry = {\n activityType: EnumActivity;\n location: LocationGeoType | null;\n dateStatus?: EnumEventDateStatus | null;\n startDate?: string | null;\n startTime?: string | null;\n timestamp: Date;\n userAgent: EnumOSPlatform;\n userId?: string | null;\n};\n\nexport type ResourceActivityType = {\n _id: string;\n resourceType: EnumResourceType;\n resourceId: string;\n activity: ResourceActivityEntry[];\n};\n\nexport type ResourceActivityInputType = {\n resourceId: string;\n resourceType: EnumResourceType;\n activity: Omit<ResourceActivityEntry, \"timestamp\">;\n};\n","import { EnumResourceType } from \"src/enums\";\n\nimport { BaseGameType } from \"./game\";\nimport {\n CreateFormData,\n ResourceImageType,\n SocialShareResourceType,\n} from \"./global\";\n\nexport enum EnumPostType {\n MARKET_FACES = \"market_faces\",\n CLUE_BITES = \"clue_bites\",\n PLAY_AND_WIN = \"play_and_win\",\n}\n\nexport enum EnumPostContentType {\n GAME = \"game\",\n IMAGE = \"image\",\n LIST = \"list\",\n TEXTAREA = \"textarea\",\n VIDEO = \"video\",\n}\n\nexport type PostFileInput = {\n source: File;\n title?: string;\n};\n\nexport type PostContentTextarea = {\n textarea: {\n title?: string;\n data: string;\n };\n};\n\nexport type PostContentImage = {\n images: ResourceImageType[] | null;\n imagesUpload?: PostFileInput[] | null;\n};\n\nexport type PostContentVideo = {\n video: {\n source: string;\n title?: string;\n };\n};\n\nexport type PostContentList = {\n list: {\n title?: string;\n items: {\n text: string;\n }[];\n };\n};\n\nexport type PostContentGame = {\n game: BaseGameType;\n};\n\nexport type PostContentData =\n | PostContentGame\n | PostContentTextarea\n | PostContentImage\n | PostContentVideo\n | PostContentList;\n\nexport type PostContentFormData = {\n contentData?: PostContentData | null;\n contentOrder?: number | null;\n contentType?: EnumPostContentType | null;\n};\n\nexport type PostResource = {\n resourceSlug: string;\n resourceId: string;\n resourceType: EnumResourceType;\n resourceRegion: string;\n};\n\nexport interface PostFormData {\n active: boolean;\n caption: string;\n content: PostContentFormData[];\n cover?: ResourceImageType | null;\n coverUpload?: PostFileInput | null;\n postType: EnumPostType;\n resource?: PostResource | null;\n tags?: string[] | null;\n title: string;\n notifyUsers?: boolean | null;\n}\n\nexport type CreatePostFormData = CreateFormData<PostFormData>;\n\nexport type PostContentType = Omit<PostContentFormData, \"contentData\"> & {\n contentData: Omit<PostContentData, \"imagesUpload\">;\n};\n\nexport type PostType = Omit<\n PostFormData,\n \"content\" | \"coverUpload\" | \"resource\"\n> & {\n _id: string;\n content: PostContentType[];\n createdAt: Date;\n deletedAt: Date | null;\n resource?: PostResource | null;\n slug: string;\n sharePublic?: SocialShareResourceType | null;\n updatedAt: Date | null;\n};\n","import { OwnerType } from \"../global\";\n\nimport { DailyClueBaseGame, DailyClueGameData } from \"./dailyClue\";\nimport { EnumGameType, GameDate } from \"./global\";\nimport { PuzzleBaseGame, PuzzleGameData } from \"./puzzleGame\";\n\nexport type BaseGameMap = {\n [EnumGameType.DAILY_CLUE]: DailyClueBaseGame;\n [EnumGameType.MINI_QUIZ]: PuzzleBaseGame;\n [EnumGameType.ODD_ONE_OUT]: PuzzleBaseGame;\n};\n\nexport type BaseGameType = {\n gameType: EnumGameType;\n gameTypeId: string;\n gameTitle: string;\n} & {\n [K in keyof BaseGameMap]?: BaseGameMap[K] | null;\n};\n\nexport enum EnumGameStatus {\n GAME_COMPLETED = \"GAME_COMPLETED\",\n GAME_IN_PROGRESS = \"GAME_IN_PROGRESS\",\n GAME_LEFT = \"GAME_LEFT\",\n GAME_STARTED = \"GAME_STARTED\",\n}\n\nexport type GameHistory = Pick<\n BaseGameType,\n \"gameTitle\" | \"gameType\" | \"gameTypeId\"\n> & {\n createdAt: Date;\n gameDate: GameDate;\n gameStatus: EnumGameStatus;\n /** Per-event delta. Not persisted for overallGamePoints (computed at read time). */\n pointsEarned: number;\n /** Running total for this game instance; computed at read time, not stored in Mongo. */\n overallGamePoints?: number;\n};\n\ntype GameDataMap = {\n [EnumGameType.DAILY_CLUE]: DailyClueGameData;\n [EnumGameType.MINI_QUIZ]: PuzzleGameData;\n [EnumGameType.ODD_ONE_OUT]: PuzzleGameData;\n};\ntype GameDataType = {\n [K in keyof GameDataMap]?: GameDataMap[K] | null;\n};\n\nexport type GameType = Pick<\n BaseGameType,\n \"gameTitle\" | \"gameType\" | \"gameTypeId\"\n> & {\n _id: string;\n active: boolean;\n createdAt: Date;\n gameData: GameDataType;\n gameHistory: GameHistory[] | null;\n updatedAt: Date | null;\n};\n\nexport type GameDocType = {\n _id: string;\n active: boolean;\n createdAt: Date;\n deletedAt: Date | null;\n games: GameType[] | null;\n owner: OwnerType;\n points: number;\n updatedAt: Date | null;\n};\n\nexport type GameLeaderboard = {\n gameHistory: GameHistory[] | null;\n overallPoints: number;\n owner: OwnerType;\n};\n","import { GameDate, GlobalGameData } from \"./global\";\n\nconst OBJECT_ID_PATH_SEGMENT = \"[a-f0-9]{24}\";\nconst OBJECT_ID_PATH_SEGMENT_END = `${OBJECT_ID_PATH_SEGMENT}$`;\n\nexport const gameScreenIdentifierList = [\n {\n clue: \"Where your actions turn into a timeline.\",\n id: \"activities\",\n match: \"/profile/activities\",\n },\n {\n clue: \"Where conversations happen without speaking.\",\n id: \"chat\",\n match: \"/profile/chat\",\n },\n {\n clue: \"The place to redefine who you are.\",\n id: \"edit-profile\",\n match: \"/profile/edit-profile\",\n },\n {\n clue: \"A single moment worth showing up for.\",\n id: \"single-event\",\n match: new RegExp(`^/events/${OBJECT_ID_PATH_SEGMENT_END}`),\n },\n {\n clue: \"What’s happening around you, right now.\",\n id: \"events-near-me\",\n match: \"/events/events-near-me\",\n },\n {\n clue: \"Where events appear as pins on a map.\",\n id: \"events-map\",\n match: \"/events/events-map\",\n },\n {\n clue: \"A collection of events worth attending.\",\n id: \"events\",\n match: \"/events\",\n },\n {\n clue: \"What’s happening in a wider area — not just nearby.\",\n id: \"events-region\",\n match: /^\\/events\\/region\\/[^/]+$/,\n },\n {\n clue: \"Where fun becomes a challenge.\",\n id: \"games\",\n match: \"/games\",\n },\n {\n clue: \"Your starting point for everything.\",\n id: \"home\",\n match: \"/\",\n },\n {\n clue: \"Where the app whispers what you shouldn’t miss.\",\n id: \"notifications\",\n match: \"/notifications\",\n },\n {\n clue: \"Where you fine-tune your experience.\",\n id: \"options\",\n match: \"/options\",\n },\n {\n clue: \"An organisation or creator supporting the community.\",\n id: \"single-partner\",\n match: new RegExp(`^/partners/${OBJECT_ID_PATH_SEGMENT_END}`),\n },\n {\n clue: \"Organisations and creators supporting the community.\",\n id: \"partners\",\n match: \"/partners\",\n },\n {\n clue: \"A single published post in full view.\",\n id: \"single-visitor-post\",\n match: new RegExp(`^/visitors/post/${OBJECT_ID_PATH_SEGMENT_END}`),\n },\n {\n clue: \"Your identity, on display.\",\n id: \"profile\",\n match: \"/profile\",\n },\n {\n clue: \"One stallholder offering something valuable.\",\n id: \"single-vendor\",\n match: new RegExp(`^/vendors/${OBJECT_ID_PATH_SEGMENT_END}`),\n },\n {\n clue: \"Where every stallholder waits under the right category.\",\n id: \"vendors\",\n match: \"/vendors\",\n },\n {\n clue: \"Where you browse articles and posts from around the platform.\",\n id: \"visitors\",\n match: \"/visitors\",\n },\n] as const;\n\nexport type GamePlacement = (typeof gameScreenIdentifierList)[number][\"id\"];\nexport type GamePlacementClue =\n (typeof gameScreenIdentifierList)[number][\"clue\"];\n\nexport type DailyClueBaseGame = {\n gameDate: GameDate;\n gameSolution: string;\n};\n\nexport type DailyClueGameData = GlobalGameData & {\n gameFields: DailyClueBaseGame;\n lastFoundDate: Date | null;\n letterInfo: {\n collected: string[] | null; // The letters the user has found, e.g. [\"C\", \"L\", \"U\"]\n solutionShuffled: string[]; // The letters of the solution, but shuffled, e.g. [\"L\", \"C\", \"U\"]\n todaysClue: GamePlacementClue | null; // The clue for user to find the letter, e.g. related to {todaysPlacement}\n todaysLetter: string | null; // The letter the user has to find today, e.g. \"C\"\n todaysPlacement: GamePlacement | null; // The screen where the user has to find the clue, e.g. \"HomeScreen\"\n };\n};\n","export enum EnumGameType {\n DAILY_CLUE = \"dailyClue\",\n MINI_QUIZ = \"miniQuiz\",\n ODD_ONE_OUT = \"oddOneOut\",\n}\n\nexport type GameDate = {\n startDate: Date;\n endDate: Date;\n};\n\nexport const gameTypeToDisplayName: Record<EnumGameType, string> = {\n [EnumGameType.DAILY_CLUE]: \"Daily Clue\",\n [EnumGameType.MINI_QUIZ]: \"Mini Quiz\",\n [EnumGameType.ODD_ONE_OUT]: \"Odd One Out\",\n};\n\nexport type GlobalGameData = {\n points: number;\n // User has found the clue 3 days in a row, this is incrementing if the user finds the clue and decrements if user misses a day\n streak: number;\n};\n","import { EnumUserLicence } from \"../enums\";\n\n/** Tier keys in descending priority (highest first) for licence resolution. */\nexport const TIERS_BY_PRIORITY = [\"pro_plus\", \"pro\", \"standard\"] as const;\n\n/** Canonical subscription tier keys — matches Stripe/server tier identifiers. */\nexport type Tier = (typeof TIERS_BY_PRIORITY)[number];\n\n/** User-facing tier labels (decoupled from the Tier discriminant). */\nexport const TIER_DISPLAY_LABELS: Record<Tier, string> = {\n pro: \"Pro\",\n // eslint-disable-next-line camelcase\n pro_plus: \"Pro+ Ads\",\n standard: \"Standard\",\n};\n\n/** Maps licence enums to their canonical tier key. */\nexport const TIER_FROM_LICENCE: Record<EnumUserLicence, Tier> = {\n [EnumUserLicence.PRO_EVENT]: \"pro\",\n [EnumUserLicence.PRO_PLUS_EVENT]: \"pro_plus\",\n [EnumUserLicence.PRO_PLUS_VENDOR]: \"pro_plus\",\n [EnumUserLicence.PRO_VENDOR]: \"pro\",\n [EnumUserLicence.STANDARD_EVENT]: \"standard\",\n [EnumUserLicence.STANDARD_PARTNER]: \"standard\",\n [EnumUserLicence.STANDARD_VENDOR]: \"standard\",\n};\n"],"mappings":"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","names":["EnumVerificationType","EnumAdShowOn","EnumAdStatus","EnumAdType","EnumAdStyle","EnumActivity","EnumPostType","EnumPostContentType","EnumGameStatus","EnumGameType"]}
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  CLUEMART_MAIN_DOMAIN_URL,
3
3
  formatDate
4
- } from "./chunk-AHL77AVZ.mjs";
4
+ } from "./chunk-VQRZ4OJY.mjs";
5
5
 
6
6
  // src/sharing/relationShareTypes.ts
7
7
  var RELATION_SHARE_INVITATION = "invitation";
@@ -365,4 +365,4 @@ export {
365
365
  buildSharePagePath,
366
366
  shareSlugResourceId
367
367
  };
368
- //# sourceMappingURL=chunk-XYZO6N7X.mjs.map
368
+ //# sourceMappingURL=chunk-HPPIA4EM.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  gameScreenIdentifierList
3
- } from "./chunk-W5X2UU26.mjs";
3
+ } from "./chunk-HASLOIIM.mjs";
4
4
  import {
5
5
  EnumEventDateStatus,
6
6
  EnumInviteStatus,
@@ -1631,4 +1631,4 @@ export {
1631
1631
  getVendorEventRelationDateOptions,
1632
1632
  getVendorEventsEmptyMessage
1633
1633
  };
1634
- //# sourceMappingURL=chunk-AHL77AVZ.mjs.map
1634
+ //# sourceMappingURL=chunk-VQRZ4OJY.mjs.map
@@ -1,4 +1,4 @@
1
- import { H as CreateFormData } from './global-Bw5idRO_.mjs';
1
+ import { H as CreateFormData } from './global-BUUfmCo7.mjs';
2
2
 
3
3
  type ContactUsFormData = {
4
4
  email: string;
@@ -1,4 +1,4 @@
1
- import { H as CreateFormData } from './global-CPlgw1lx.js';
1
+ import { H as CreateFormData } from './global-fKbMmluy.js';
2
2
 
3
3
  type ContactUsFormData = {
4
4
  email: string;
@@ -1,4 +1,4 @@
1
- import { O as OptionItem, F as FormField, a as FormDateField, R as RefundPolicy, b as Requirement, S as StallType, C as Category } from '../global-Bw5idRO_.mjs';
1
+ import { O as OptionItem, F as FormField, a as FormDateField, R as RefundPolicy, b as Requirement, S as StallType, C as Category } from '../global-BUUfmCo7.mjs';
2
2
  import 'react-hook-form';
3
3
  import '../enums/index.mjs';
4
4
 
@@ -1,4 +1,4 @@
1
- import { O as OptionItem, F as FormField, a as FormDateField, R as RefundPolicy, b as Requirement, S as StallType, C as Category } from '../global-CPlgw1lx.js';
1
+ import { O as OptionItem, F as FormField, a as FormDateField, R as RefundPolicy, b as Requirement, S as StallType, C as Category } from '../global-fKbMmluy.js';
2
2
  import 'react-hook-form';
3
3
  import '../enums/index.js';
4
4
 
@@ -41,12 +41,12 @@ import {
41
41
  vendorStallSize,
42
42
  vendorStartDateFields,
43
43
  vendorTable
44
- } from "../chunk-3U53KFHU.mjs";
44
+ } from "../chunk-AKX2AGMA.mjs";
45
45
  import {
46
46
  availableCategories,
47
47
  categoryColors
48
- } from "../chunk-AHL77AVZ.mjs";
49
- import "../chunk-W5X2UU26.mjs";
48
+ } from "../chunk-VQRZ4OJY.mjs";
49
+ import "../chunk-HASLOIIM.mjs";
50
50
  import "../chunk-4SNW63TJ.mjs";
51
51
  export {
52
52
  availableCategories,
@@ -93,8 +93,10 @@ interface EventType extends BaseResourceType {
93
93
  relationId: string | null;
94
94
  relationDates: RelationDate[] | null;
95
95
  }[] | null;
96
+ sharePublic?: SocialShareResourceType | null;
97
+ shareRelation?: SocialShareResourceType | null;
96
98
  }
97
- type EventListItemType = Pick<EventType, "_id" | "active" | "claimed" | "cover" | "createdAt" | "dateTime" | "deletedAt" | "description" | "eventType" | "googlePlaceId" | "slug" | "images" | "location" | "logo" | "name" | "rainOrShine" | "rating" | "region" | "relations" | "reviewCount" | "updatedAt">;
99
+ type EventListItemType = Omit<EventType, "adIds" | "associates" | "contactDetails" | "eventInfoId" | "nzbn" | "owner" | "posterUsage" | "promoCodes" | "provider" | "relatedPost" | "socialMedia" | "socialShare" | "tags" | "termsAgreement">;
98
100
  type EventInfoType = Omit<EventInfoFormData, "_id"> & {
99
101
  _id: string;
100
102
  active?: boolean;
@@ -372,10 +374,11 @@ type PostContentType = Omit<PostContentFormData, "contentData"> & {
372
374
  type PostType = Omit<PostFormData, "content" | "coverUpload" | "resource"> & {
373
375
  _id: string;
374
376
  content: PostContentType[];
375
- slug: string;
376
- resource?: PostResource | null;
377
377
  createdAt: Date;
378
378
  deletedAt: Date | null;
379
+ resource?: PostResource | null;
380
+ slug: string;
381
+ sharePublic?: SocialShareResourceType | null;
379
382
  updatedAt: Date | null;
380
383
  };
381
384
 
@@ -462,6 +465,8 @@ interface VendorType extends BaseResourceType {
462
465
  relationId: string | null;
463
466
  relationDates: RelationDate[] | null;
464
467
  }[] | null;
468
+ sharePublic?: SocialShareResourceType | null;
469
+ shareRelation?: SocialShareResourceType | null;
465
470
  unregisteredVendorId?: string | null;
466
471
  }
467
472
  type VendorInfoType = Omit<VendorInfoFormData, "_id" | "documentsUpload"> & {
@@ -569,6 +574,10 @@ type RelatedPostType = {
569
574
  postSlug: string;
570
575
  postType: EnumPostType;
571
576
  };
577
+ type SocialShareResourceType = {
578
+ qrCode: ResourceImageType;
579
+ socialImage: ResourceImageType;
580
+ };
572
581
  type BaseResourceType = Omit<BaseResourceTypeFormData, "_id" | "coverUpload" | "imagesUpload" | "logoUpload"> & {
573
582
  _id: string;
574
583
  adIds?: string[] | null;
@@ -576,10 +585,10 @@ type BaseResourceType = Omit<BaseResourceTypeFormData, "_id" | "coverUpload" | "
576
585
  deletedAt: Date | null;
577
586
  posterUsage?: PosterUsageType | null;
578
587
  rating?: number | null;
579
- reviewCount?: number | null;
580
- updatedAt: Date | null;
581
588
  relatedPost?: RelatedPostType | null;
589
+ reviewCount?: number | null;
582
590
  slug: string;
591
+ updatedAt: Date | null;
583
592
  };
584
593
  type LocationGeoType = {
585
594
  coordinates: number[];
@@ -686,4 +695,4 @@ interface UseGetResourcesByRegionOptions {
686
695
  offset?: number;
687
696
  }
688
697
 
689
- export { type GamePlacementClue as $, type AssociateType as A, type BaseResourceTypeFormData as B, type Category as C, type BaseResourceType as D, type EventType as E, type FormField as F, type GameDocType as G, type CreateFormData as H, type DailyClueBaseGame as I, type DailyClueGameData as J, type DateTimeType as K, type LocationType as L, type DateTimeWithPriceType as M, type DeviceInfo as N, type OptionItem as O, type PostType as P, EnumGameStatus as Q, type RefundPolicy as R, type StallType as S, EnumGameType as T, type UseGetResourcesByRegionOptions as U, type VendorType as V, EnumPostContentType as W, type EventStatusType as X, type GameDate as Y, type GameHistory as Z, type GamePlacement as _, type FormDateField as a, type GameType as a0, type GeocodeLocation as a1, type GlobalGameData as a2, type ImageObjectType as a3, type LocationGeoType as a4, type Nullable as a5, type OwnerType as a6, PROMO_CODE_PREFIX as a7, type PaymentInfoType as a8, type PostContentData as a9, type UnregisteredVendorInvitationType as aA, type VendorAttributes as aB, type VendorCalendarData as aC, type VendorProductList as aD, gameScreenIdentifierList as aE, gameTypeToDisplayName as aF, type PostContentFormData as aa, type PostContentGame as ab, type PostContentImage as ac, type PostContentList as ad, type PostContentTextarea as ae, type PostContentType as af, type PostContentVideo as ag, type PostFileInput as ah, type PostResource as ai, type PosterUsageType as aj, type PromoCodeType as ak, type PuzzleAnswer as al, type PuzzleAnsweredQuestion as am, type PuzzleBaseGame as an, type PuzzleGameData as ao, type PuzzleQuestion as ap, type RelatedPostType as aq, type RelationDate as ar, type RelationInputType as as, type ResourceContactDetailsType as at, type ResourceDetails as au, type ResourceImageType as av, type SocialMediaType as aw, type Subcategory as ax, type SubcategoryItems as ay, type TermsAgreement as az, type Requirement as b, type EventListItemType as c, type EventInfoType as d, type RelationType as e, type ResourceConnectionsType as f, type UnregisteredVendorType as g, type VendorInfoType as h, type UserLicenceType as i, EnumPostType as j, type GameLeaderboard as k, type VendorFormData as l, type CreateVendorFormData as m, type VendorInfoFormData as n, type CreateVendorInfoFormData as o, type UnregisteredVendorFormData as p, type CreateUnregisteredVendorFormData as q, type EventFormData as r, type CreateEventFormData as s, type EventInfoFormData as t, type CreateEventInfoFormData as u, type PostFormData as v, type CreatePostFormData as w, type Region as x, type BaseGameMap as y, type BaseGameType as z };
698
+ export { type GamePlacementClue as $, type AssociateType as A, type BaseResourceTypeFormData as B, type Category as C, type BaseResourceType as D, type EventType as E, type FormField as F, type GameDocType as G, type CreateFormData as H, type DailyClueBaseGame as I, type DailyClueGameData as J, type DateTimeType as K, type LocationType as L, type DateTimeWithPriceType as M, type DeviceInfo as N, type OptionItem as O, type PostType as P, EnumGameStatus as Q, type RefundPolicy as R, type StallType as S, EnumGameType as T, type UseGetResourcesByRegionOptions as U, type VendorType as V, EnumPostContentType as W, type EventStatusType as X, type GameDate as Y, type GameHistory as Z, type GamePlacement as _, type FormDateField as a, type GameType as a0, type GeocodeLocation as a1, type GlobalGameData as a2, type ImageObjectType as a3, type LocationGeoType as a4, type Nullable as a5, type OwnerType as a6, PROMO_CODE_PREFIX as a7, type PaymentInfoType as a8, type PostContentData as a9, type TermsAgreement as aA, type UnregisteredVendorInvitationType as aB, type VendorAttributes as aC, type VendorCalendarData as aD, type VendorProductList as aE, gameScreenIdentifierList as aF, gameTypeToDisplayName as aG, type PostContentFormData as aa, type PostContentGame as ab, type PostContentImage as ac, type PostContentList as ad, type PostContentTextarea as ae, type PostContentType as af, type PostContentVideo as ag, type PostFileInput as ah, type PostResource as ai, type PosterUsageType as aj, type PromoCodeType as ak, type PuzzleAnswer as al, type PuzzleAnsweredQuestion as am, type PuzzleBaseGame as an, type PuzzleGameData as ao, type PuzzleQuestion as ap, type RelatedPostType as aq, type RelationDate as ar, type RelationInputType as as, type ResourceContactDetailsType as at, type ResourceDetails as au, type ResourceImageType as av, type SocialMediaType as aw, type SocialShareResourceType as ax, type Subcategory as ay, type SubcategoryItems as az, type Requirement as b, type EventListItemType as c, type EventInfoType as d, type RelationType as e, type ResourceConnectionsType as f, type UnregisteredVendorType as g, type VendorInfoType as h, type UserLicenceType as i, EnumPostType as j, type GameLeaderboard as k, type VendorFormData as l, type CreateVendorFormData as m, type VendorInfoFormData as n, type CreateVendorInfoFormData as o, type UnregisteredVendorFormData as p, type CreateUnregisteredVendorFormData as q, type EventFormData as r, type CreateEventFormData as s, type EventInfoFormData as t, type CreateEventInfoFormData as u, type PostFormData as v, type CreatePostFormData as w, type Region as x, type BaseGameMap as y, type BaseGameType as z };
@@ -93,8 +93,10 @@ interface EventType extends BaseResourceType {
93
93
  relationId: string | null;
94
94
  relationDates: RelationDate[] | null;
95
95
  }[] | null;
96
+ sharePublic?: SocialShareResourceType | null;
97
+ shareRelation?: SocialShareResourceType | null;
96
98
  }
97
- type EventListItemType = Pick<EventType, "_id" | "active" | "claimed" | "cover" | "createdAt" | "dateTime" | "deletedAt" | "description" | "eventType" | "googlePlaceId" | "slug" | "images" | "location" | "logo" | "name" | "rainOrShine" | "rating" | "region" | "relations" | "reviewCount" | "updatedAt">;
99
+ type EventListItemType = Omit<EventType, "adIds" | "associates" | "contactDetails" | "eventInfoId" | "nzbn" | "owner" | "posterUsage" | "promoCodes" | "provider" | "relatedPost" | "socialMedia" | "socialShare" | "tags" | "termsAgreement">;
98
100
  type EventInfoType = Omit<EventInfoFormData, "_id"> & {
99
101
  _id: string;
100
102
  active?: boolean;
@@ -372,10 +374,11 @@ type PostContentType = Omit<PostContentFormData, "contentData"> & {
372
374
  type PostType = Omit<PostFormData, "content" | "coverUpload" | "resource"> & {
373
375
  _id: string;
374
376
  content: PostContentType[];
375
- slug: string;
376
- resource?: PostResource | null;
377
377
  createdAt: Date;
378
378
  deletedAt: Date | null;
379
+ resource?: PostResource | null;
380
+ slug: string;
381
+ sharePublic?: SocialShareResourceType | null;
379
382
  updatedAt: Date | null;
380
383
  };
381
384
 
@@ -462,6 +465,8 @@ interface VendorType extends BaseResourceType {
462
465
  relationId: string | null;
463
466
  relationDates: RelationDate[] | null;
464
467
  }[] | null;
468
+ sharePublic?: SocialShareResourceType | null;
469
+ shareRelation?: SocialShareResourceType | null;
465
470
  unregisteredVendorId?: string | null;
466
471
  }
467
472
  type VendorInfoType = Omit<VendorInfoFormData, "_id" | "documentsUpload"> & {
@@ -569,6 +574,10 @@ type RelatedPostType = {
569
574
  postSlug: string;
570
575
  postType: EnumPostType;
571
576
  };
577
+ type SocialShareResourceType = {
578
+ qrCode: ResourceImageType;
579
+ socialImage: ResourceImageType;
580
+ };
572
581
  type BaseResourceType = Omit<BaseResourceTypeFormData, "_id" | "coverUpload" | "imagesUpload" | "logoUpload"> & {
573
582
  _id: string;
574
583
  adIds?: string[] | null;
@@ -576,10 +585,10 @@ type BaseResourceType = Omit<BaseResourceTypeFormData, "_id" | "coverUpload" | "
576
585
  deletedAt: Date | null;
577
586
  posterUsage?: PosterUsageType | null;
578
587
  rating?: number | null;
579
- reviewCount?: number | null;
580
- updatedAt: Date | null;
581
588
  relatedPost?: RelatedPostType | null;
589
+ reviewCount?: number | null;
582
590
  slug: string;
591
+ updatedAt: Date | null;
583
592
  };
584
593
  type LocationGeoType = {
585
594
  coordinates: number[];
@@ -686,4 +695,4 @@ interface UseGetResourcesByRegionOptions {
686
695
  offset?: number;
687
696
  }
688
697
 
689
- export { type GamePlacementClue as $, type AssociateType as A, type BaseResourceTypeFormData as B, type Category as C, type BaseResourceType as D, type EventType as E, type FormField as F, type GameDocType as G, type CreateFormData as H, type DailyClueBaseGame as I, type DailyClueGameData as J, type DateTimeType as K, type LocationType as L, type DateTimeWithPriceType as M, type DeviceInfo as N, type OptionItem as O, type PostType as P, EnumGameStatus as Q, type RefundPolicy as R, type StallType as S, EnumGameType as T, type UseGetResourcesByRegionOptions as U, type VendorType as V, EnumPostContentType as W, type EventStatusType as X, type GameDate as Y, type GameHistory as Z, type GamePlacement as _, type FormDateField as a, type GameType as a0, type GeocodeLocation as a1, type GlobalGameData as a2, type ImageObjectType as a3, type LocationGeoType as a4, type Nullable as a5, type OwnerType as a6, PROMO_CODE_PREFIX as a7, type PaymentInfoType as a8, type PostContentData as a9, type UnregisteredVendorInvitationType as aA, type VendorAttributes as aB, type VendorCalendarData as aC, type VendorProductList as aD, gameScreenIdentifierList as aE, gameTypeToDisplayName as aF, type PostContentFormData as aa, type PostContentGame as ab, type PostContentImage as ac, type PostContentList as ad, type PostContentTextarea as ae, type PostContentType as af, type PostContentVideo as ag, type PostFileInput as ah, type PostResource as ai, type PosterUsageType as aj, type PromoCodeType as ak, type PuzzleAnswer as al, type PuzzleAnsweredQuestion as am, type PuzzleBaseGame as an, type PuzzleGameData as ao, type PuzzleQuestion as ap, type RelatedPostType as aq, type RelationDate as ar, type RelationInputType as as, type ResourceContactDetailsType as at, type ResourceDetails as au, type ResourceImageType as av, type SocialMediaType as aw, type Subcategory as ax, type SubcategoryItems as ay, type TermsAgreement as az, type Requirement as b, type EventListItemType as c, type EventInfoType as d, type RelationType as e, type ResourceConnectionsType as f, type UnregisteredVendorType as g, type VendorInfoType as h, type UserLicenceType as i, EnumPostType as j, type GameLeaderboard as k, type VendorFormData as l, type CreateVendorFormData as m, type VendorInfoFormData as n, type CreateVendorInfoFormData as o, type UnregisteredVendorFormData as p, type CreateUnregisteredVendorFormData as q, type EventFormData as r, type CreateEventFormData as s, type EventInfoFormData as t, type CreateEventInfoFormData as u, type PostFormData as v, type CreatePostFormData as w, type Region as x, type BaseGameMap as y, type BaseGameType as z };
698
+ export { type GamePlacementClue as $, type AssociateType as A, type BaseResourceTypeFormData as B, type Category as C, type BaseResourceType as D, type EventType as E, type FormField as F, type GameDocType as G, type CreateFormData as H, type DailyClueBaseGame as I, type DailyClueGameData as J, type DateTimeType as K, type LocationType as L, type DateTimeWithPriceType as M, type DeviceInfo as N, type OptionItem as O, type PostType as P, EnumGameStatus as Q, type RefundPolicy as R, type StallType as S, EnumGameType as T, type UseGetResourcesByRegionOptions as U, type VendorType as V, EnumPostContentType as W, type EventStatusType as X, type GameDate as Y, type GameHistory as Z, type GamePlacement as _, type FormDateField as a, type GameType as a0, type GeocodeLocation as a1, type GlobalGameData as a2, type ImageObjectType as a3, type LocationGeoType as a4, type Nullable as a5, type OwnerType as a6, PROMO_CODE_PREFIX as a7, type PaymentInfoType as a8, type PostContentData as a9, type TermsAgreement as aA, type UnregisteredVendorInvitationType as aB, type VendorAttributes as aC, type VendorCalendarData as aD, type VendorProductList as aE, gameScreenIdentifierList as aF, gameTypeToDisplayName as aG, type PostContentFormData as aa, type PostContentGame as ab, type PostContentImage as ac, type PostContentList as ad, type PostContentTextarea as ae, type PostContentType as af, type PostContentVideo as ag, type PostFileInput as ah, type PostResource as ai, type PosterUsageType as aj, type PromoCodeType as ak, type PuzzleAnswer as al, type PuzzleAnsweredQuestion as am, type PuzzleBaseGame as an, type PuzzleGameData as ao, type PuzzleQuestion as ap, type RelatedPostType as aq, type RelationDate as ar, type RelationInputType as as, type ResourceContactDetailsType as at, type ResourceDetails as au, type ResourceImageType as av, type SocialMediaType as aw, type SocialShareResourceType as ax, type Subcategory as ay, type SubcategoryItems as az, type Requirement as b, type EventListItemType as c, type EventInfoType as d, type RelationType as e, type ResourceConnectionsType as f, type UnregisteredVendorType as g, type VendorInfoType as h, type UserLicenceType as i, EnumPostType as j, type GameLeaderboard as k, type VendorFormData as l, type CreateVendorFormData as m, type VendorInfoFormData as n, type CreateVendorInfoFormData as o, type UnregisteredVendorFormData as p, type CreateUnregisteredVendorFormData as q, type EventFormData as r, type CreateEventFormData as s, type EventInfoFormData as t, type CreateEventInfoFormData as u, type PostFormData as v, type CreatePostFormData as w, type Region as x, type BaseGameMap as y, type BaseGameType as z };
@@ -458,6 +458,17 @@ var RELATED_POST_FIELDS_FRAGMENT = import_client.gql`
458
458
  postType
459
459
  }
460
460
  `;
461
+ var SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT = import_client.gql`
462
+ fragment SocialShareResourceFields on SocialShareResourceType {
463
+ qrCode {
464
+ ...ResourceImageFields
465
+ }
466
+ socialImage {
467
+ ...ResourceImageFields
468
+ }
469
+ }
470
+ ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
471
+ `;
461
472
 
462
473
  // src/graphql/queries/event.ts
463
474
  var EVENT_INFO = import_client2.gql`
@@ -555,6 +566,12 @@ var EVENT = import_client2.gql`
555
566
  socialMedia {
556
567
  ...SocialMediaFields
557
568
  }
569
+ sharePublic {
570
+ ...SocialShareResourceFields
571
+ }
572
+ shareRelation {
573
+ ...SocialShareResourceFields
574
+ }
558
575
  slug
559
576
  tags
560
577
  termsAgreement {
@@ -573,6 +590,7 @@ var EVENT = import_client2.gql`
573
590
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
574
591
  ${RELATION_DATES_FRAGMENT}
575
592
  ${RELATED_POST_FIELDS_FRAGMENT}
593
+ ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
576
594
  `;
577
595
  var GET_EVENTS = import_client2.gql`
578
596
  query getEvents($dateStatus: EventDateStatusEnumType) {
@@ -616,7 +634,7 @@ var GET_EVENTS_BY_REGION = import_client2.gql`
616
634
  `;
617
635
  var SEARCH_EVENTS = import_client2.gql`
618
636
  query searchEvents(
619
- $region: String
637
+ $region: String!
620
638
  $search: String
621
639
  $tags: [String]
622
640
  $dateStatus: EventDateStatusEnumType
@@ -755,6 +773,12 @@ var VENDOR = import_client3.gql`
755
773
  socialMedia {
756
774
  ...SocialMediaFields
757
775
  }
776
+ sharePublic {
777
+ ...SocialShareResourceFields
778
+ }
779
+ shareRelation {
780
+ ...SocialShareResourceFields
781
+ }
758
782
  termsAgreement {
759
783
  ...TermsAgreementFields
760
784
  }
@@ -775,6 +799,7 @@ var VENDOR = import_client3.gql`
775
799
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
776
800
  ${RELATION_DATES_FRAGMENT}
777
801
  ${RELATED_POST_FIELDS_FRAGMENT}
802
+ ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
778
803
  `;
779
804
  var VENDOR_ATTRIBUTES_FRAGMENT = import_client3.gql`
780
805
  fragment VendorAttributesFields on VendorAttributesType {
@@ -878,7 +903,7 @@ var GET_VENDORS_BY_REGION = import_client3.gql`
878
903
  ${VENDOR}
879
904
  `;
880
905
  var SEARCH_VENDORS = import_client3.gql`
881
- query searchVendors($search: String!, $region: String) {
906
+ query searchVendors($search: String!, $region: String!) {
882
907
  vendorSearch(search: $search, region: $region) {
883
908
  ...VendorFields
884
909
  }
@@ -965,6 +990,9 @@ var PARTNER = import_client4.gql`
965
990
  ...SocialMediaFields
966
991
  }
967
992
  slug
993
+ sharePublic {
994
+ ...SocialShareResourceFields
995
+ }
968
996
  termsAgreement {
969
997
  ...TermsAgreementFields
970
998
  }
@@ -979,6 +1007,7 @@ var PARTNER = import_client4.gql`
979
1007
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
980
1008
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
981
1009
  ${RELATED_POST_FIELDS_FRAGMENT}
1010
+ ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
982
1011
  `;
983
1012
  var GET_PARTNERS = import_client4.gql`
984
1013
  query getPartners {
@@ -1008,7 +1037,7 @@ var GET_PARTNERS_BY_REGION = import_client4.gql`
1008
1037
  ${PARTNER}
1009
1038
  `;
1010
1039
  var SEARCH_PARTNERS = import_client4.gql`
1011
- query searchPartners($search: String!, $region: String) {
1040
+ query searchPartners($search: String!, $region: String!) {
1012
1041
  partnersSearch(search: $search, region: $region) {
1013
1042
  ...PartnerFields
1014
1043
  }
@@ -1186,11 +1215,15 @@ var POST_FIELDS_FRAGMENT = import_client7.gql`
1186
1215
  tags
1187
1216
  title
1188
1217
  slug
1218
+ sharePublic {
1219
+ ...SocialShareResourceFields
1220
+ }
1189
1221
  updatedAt
1190
1222
  }
1191
1223
  ${POST_CONTENT_FIELDS_FRAGMENT}
1192
1224
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
1193
1225
  ${POST_RESOURCE_FIELDS_FRAGMENT}
1226
+ ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
1194
1227
  `;
1195
1228
  var GET_POSTS = import_client7.gql`
1196
1229
  query getPosts {
@@ -2666,7 +2699,6 @@ var useGetChatSubscription = () => {
2666
2699
  var useGetChatsByRegion = (region) => {
2667
2700
  const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_CHATS_BY_REGION, {
2668
2701
  fetchPolicy: "network-only",
2669
- skip: !region || region === "",
2670
2702
  variables: { region }
2671
2703
  });
2672
2704
  const chatsByRegion = data?.chatsByRegion || [];
@@ -2969,7 +3001,7 @@ var useGetEventsByRegion = (region, options, dateStatus) => {
2969
3001
  var useSearchEvents = (region, searchQuery, tags, dateStatus) => {
2970
3002
  const normalizedSearch = searchQuery?.trim() ?? "";
2971
3003
  const normalizedTags = (tags ?? []).filter(Boolean);
2972
- const shouldRunQuery = Boolean(region?.trim()) && (normalizedSearch.length > 3 || normalizedTags.length > 0);
3004
+ const shouldRunQuery = normalizedSearch.length > 3 || normalizedTags.length > 0;
2973
3005
  const { loading, error, data, refetch } = (0, import_client24.useQuery)(SEARCH_EVENTS, {
2974
3006
  fetchPolicy: "network-only",
2975
3007
  skip: !shouldRunQuery,
@@ -3692,7 +3724,6 @@ var useGetVendorsByRegion = (region, options) => {
3692
3724
  };
3693
3725
  const { loading, error, data, refetch, fetchMore } = (0, import_client40.useQuery)(GET_VENDORS_BY_REGION, {
3694
3726
  fetchPolicy: "network-only",
3695
- skip: !region || region === "",
3696
3727
  variables
3697
3728
  });
3698
3729
  const vendorsByRegion = data?.vendorsByRegion || [];
@@ -3707,7 +3738,7 @@ var useGetVendorsByRegion = (region, options) => {
3707
3738
  var useSearchVendors = (search, region) => {
3708
3739
  const { loading, error, data, refetch } = (0, import_client40.useQuery)(SEARCH_VENDORS, {
3709
3740
  fetchPolicy: "network-only",
3710
- skip: search.length < 3 || !region || region === "",
3741
+ skip: search.length < 3,
3711
3742
  variables: { region, search }
3712
3743
  });
3713
3744
  const vendorSearch = data?.vendorSearch || [];
@@ -4584,7 +4615,6 @@ var useGetPartnersByRegion = (region, options) => {
4584
4615
  };
4585
4616
  const { loading, error, data, refetch, fetchMore } = (0, import_client58.useQuery)(GET_PARTNERS_BY_REGION, {
4586
4617
  fetchPolicy: "network-only",
4587
- skip: !region || region === "",
4588
4618
  variables
4589
4619
  });
4590
4620
  const partnersByRegion = data?.partnersByRegion || [];
@@ -4599,7 +4629,7 @@ var useGetPartnersByRegion = (region, options) => {
4599
4629
  var useSearchPartners = (search, region) => {
4600
4630
  const { loading, error, data, refetch } = (0, import_client58.useQuery)(SEARCH_PARTNERS, {
4601
4631
  fetchPolicy: "network-only",
4602
- skip: search.length < 3 || !region || region === "",
4632
+ skip: search.length < 3,
4603
4633
  variables: { region, search }
4604
4634
  });
4605
4635
  const partnersSearch = data?.partnersSearch || [];