@timardex/cluemart-shared 1.5.811 → 1.5.813

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 (51) hide show
  1. package/dist/{ad-D-_ZkOMn.d.ts → ad-0muFV6oH.d.ts} +3 -1
  2. package/dist/{ad-D3gPYInl.d.mts → ad-Dlk9SFLw.d.mts} +3 -1
  3. package/dist/{chunk-XBUBH7OF.mjs → chunk-4ICKZHQA.mjs} +8 -1
  4. package/dist/chunk-4ICKZHQA.mjs.map +1 -0
  5. package/dist/{chunk-KKLZDCVX.mjs → chunk-DLPDX4EH.mjs} +89 -3
  6. package/dist/chunk-DLPDX4EH.mjs.map +1 -0
  7. package/dist/{chunk-2PM6254K.mjs → chunk-POXARN2X.mjs} +1 -1
  8. package/dist/chunk-POXARN2X.mjs.map +1 -0
  9. package/dist/{contactUs-RKkIL-nI.d.ts → contactUs-CiXFYse5.d.ts} +1 -1
  10. package/dist/{contactUs-Dr-IbmG5.d.mts → contactUs-HPydW6BR.d.mts} +1 -1
  11. package/dist/formFields/index.cjs.map +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 +2 -2
  15. package/dist/{global-BeBuHWbg.d.ts → global-B2jacmZB.d.ts} +2 -0
  16. package/dist/{global-C8npu_7P.d.mts → global-Dq6A7pNV.d.mts} +2 -0
  17. package/dist/graphql/index.cjs +7 -0
  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 +7 -0
  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 +3 -3
  27. package/dist/index.cjs +99 -0
  28. package/dist/index.cjs.map +1 -1
  29. package/dist/index.d.mts +19 -1
  30. package/dist/index.d.ts +19 -1
  31. package/dist/index.mjs +93 -0
  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-lFB7B-Y9.d.mts → resourceActivities-BCZ6HU7U.d.mts} +1 -1
  36. package/dist/{resourceActivities-CJrM2qDC.d.ts → resourceActivities-DUR5JaaB.d.ts} +1 -1
  37. package/dist/sharing/index.d.mts +1 -1
  38. package/dist/sharing/index.d.ts +1 -1
  39. package/dist/types/index.cjs.map +1 -1
  40. package/dist/types/index.d.mts +5 -5
  41. package/dist/types/index.d.ts +5 -5
  42. package/dist/types/index.mjs +1 -1
  43. package/dist/utils/index.cjs +92 -0
  44. package/dist/utils/index.cjs.map +1 -1
  45. package/dist/utils/index.d.mts +16 -2
  46. package/dist/utils/index.d.ts +16 -2
  47. package/dist/utils/index.mjs +14 -2
  48. package/package.json +1 -1
  49. package/dist/chunk-2PM6254K.mjs.map +0 -1
  50. package/dist/chunk-KKLZDCVX.mjs.map +0 -1
  51. package/dist/chunk-XBUBH7OF.mjs.map +0 -1
@@ -1,4 +1,4 @@
1
- import { x as Region } from '../global-C8npu_7P.mjs';
1
+ import { x as Region } from '../global-Dq6A7pNV.mjs';
2
2
  import 'react-hook-form';
3
3
  import '../enums/index.mjs';
4
4
 
@@ -1,4 +1,4 @@
1
- import { x as Region } from '../global-BeBuHWbg.js';
1
+ import { x as Region } from '../global-B2jacmZB.js';
2
2
  import 'react-hook-form';
3
3
  import '../enums/index.js';
4
4
 
@@ -1,5 +1,5 @@
1
1
  import { EnumChatType, EnumChatReportReason, EnumNotificationType, EnumNotificationResourceType, EnumResourceType, EnumEventDateStatus, EnumOSPlatform } from './enums/index.mjs';
2
- import { a4 as LocationGeoType } from './global-C8npu_7P.mjs';
2
+ import { a4 as LocationGeoType } from './global-Dq6A7pNV.mjs';
3
3
 
4
4
  type ParticipantType = {
5
5
  active: boolean;
@@ -1,5 +1,5 @@
1
1
  import { EnumChatType, EnumChatReportReason, EnumNotificationType, EnumNotificationResourceType, EnumResourceType, EnumEventDateStatus, EnumOSPlatform } from './enums/index.js';
2
- import { a4 as LocationGeoType } from './global-BeBuHWbg.js';
2
+ import { a4 as LocationGeoType } from './global-B2jacmZB.js';
3
3
 
4
4
  type ParticipantType = {
5
5
  active: boolean;
@@ -1,4 +1,4 @@
1
- import { E as EventType, t as EventInfoFormData, V as VendorType, n as VendorInfoFormData, S as StallType, C as Category } from '../global-C8npu_7P.mjs';
1
+ import { E as EventType, t as EventInfoFormData, V as VendorType, n as VendorInfoFormData, S as StallType, C as Category } from '../global-Dq6A7pNV.mjs';
2
2
  import 'react-hook-form';
3
3
  import '../enums/index.mjs';
4
4
 
@@ -1,4 +1,4 @@
1
- import { E as EventType, t as EventInfoFormData, V as VendorType, n as VendorInfoFormData, S as StallType, C as Category } from '../global-BeBuHWbg.js';
1
+ import { E as EventType, t as EventInfoFormData, V as VendorType, n as VendorInfoFormData, S as StallType, C as Category } from '../global-B2jacmZB.js';
2
2
  import 'react-hook-form';
3
3
  import '../enums/index.js';
4
4
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/types/index.ts","../../src/types/auth.ts","../../src/types/global.ts","../../src/types/ad.ts","../../src/types/resourceActivities.ts","../../src/types/post.ts","../../src/types/game/index.ts","../../src/types/game/dailyClue.ts","../../src/types/game/global.ts","../../src/types/subscription.ts","../../src/types/affiliate.ts"],"sourcesContent":["export * from \"./admin\";\nexport * from \"./auth\";\nexport * from \"./chat\";\nexport * from \"./contactUs\";\nexport * from \"./global\";\nexport * from \"./event\";\nexport * from \"./notification\";\nexport * from \"./poster\";\nexport * from \"./relation\";\nexport * from \"./vendor\";\nexport * from \"./user\";\nexport * from \"./ad\";\nexport * from \"./resourceActivities\";\nexport * from \"./partner\";\nexport * from \"./post\";\nexport * from \"./pushToken\";\nexport * from \"./appSettings\";\nexport * from \"./googleImportedMarket\";\nexport * from \"./game\";\nexport * from \"./game/dailyClue\";\nexport * from \"./game/global\";\nexport * from \"./game/puzzleGame\";\nexport * from \"./school\";\nexport * from \"./subscription\";\nexport * from \"./affiliate\";\n","import {\n CreateFormData,\n EnumOSPlatform,\n PromoCodeType,\n TermsAgreement,\n} from \"src\";\n\nimport { SafeUserType } from \"./user\";\n\nexport enum EnumVerificationType {\n REGISTER = \"register\",\n RESET_PASSWORD = \"resetPassword\",\n}\n\nexport type LoginFormData = {\n email: string;\n isAdminPage?: boolean;\n password: string;\n platform?: EnumOSPlatform;\n};\n\nexport type CreateLoginFormData = CreateFormData<LoginFormData>;\n\nexport type RegisterFormData = {\n email: string;\n firstName: string;\n lastName: string;\n password: string;\n platform?: EnumOSPlatform;\n preferredRegion: string;\n promoCode?: PromoCodeType | null;\n termsAgreement?: TermsAgreement | null;\n};\n\nexport type CreateRegisterFormData = CreateFormData<RegisterFormData>;\n\nexport type RequestPasswordResetFormData = {\n email: string;\n};\n\nexport type CreateRequestPasswordResetFormData =\n CreateFormData<RequestPasswordResetFormData>;\n\nexport type ResetPasswordFormData = {\n confirmPassword: string;\n email: string;\n password: string;\n};\n\nexport type CreateResetPasswordFormData = CreateFormData<ResetPasswordFormData>;\n\nexport type ValidateVerificationTokenFormData = {\n email: string;\n verificationToken: string;\n verificationType?: EnumVerificationType;\n};\n\nexport type CreateValidateVerificationTokenFormData =\n CreateFormData<ValidateVerificationTokenFormData>;\n\nexport type AuthPayloadType = {\n message: string;\n token: string;\n refreshToken: string | null;\n user: SafeUserType;\n};\n\nexport type RefreshTokenPayloadType = {\n refreshToken: string;\n token: string;\n};\n","import {\n Control,\n FieldValues,\n FormState,\n UseFormGetValues,\n UseFormHandleSubmit,\n UseFormReset,\n UseFormSetValue,\n UseFormWatch,\n} from \"react-hook-form\";\n\nimport {\n EnumEventDateStatus,\n EnumEventType,\n EnumResourceType,\n EnumSocialMedia,\n EnumUserLicence,\n} from \"../enums\";\n\nimport { EventListItemType } from \"./event\";\nimport { EnumPostType } from \"./post\";\nimport { VendorType } from \"./vendor\";\n\nexport const PROMO_CODE_PREFIX = \"CM-\";\n\nexport type PromoCodeType = `${typeof PROMO_CODE_PREFIX}${string}`;\n\nexport type Nullable<T> = {\n [K in keyof T]: T[K] | null | undefined;\n};\n\nexport type DeviceInfo = {\n appBuildNumber: string;\n appId: string;\n appVersion: string;\n brand: string;\n deviceName: string;\n installationId: string;\n manufacturer: string;\n modelName: string;\n osName: string;\n osVersion: string;\n timestamp: string;\n};\n\nexport type TermsAgreement = DeviceInfo & {\n termVersion: string;\n};\n\nexport type ResourceContactDetailsType = {\n email?: string | null;\n landlinePhone?: string | null;\n mobilePhone?: string | null;\n};\n\nexport type ResourceImageType = {\n active: boolean;\n source: string;\n title: string;\n};\n\nexport type SocialMediaType = {\n name?: EnumSocialMedia;\n link?: string;\n};\n\nexport type UserLicenceType = {\n expiryDate: Date;\n issuedDate: Date;\n licenceType: EnumUserLicence;\n prevLicenceType?: EnumUserLicence | null;\n};\n\nexport type AssociateType = {\n email: string;\n resourceId: string;\n resourceType: EnumResourceType;\n licence: UserLicenceType;\n};\n\nexport type OwnerType = {\n email: string;\n userId: string;\n};\n\nexport interface BaseResourceTypeFormData {\n _id?: string;\n active: boolean;\n associates: AssociateType[] | null;\n contactDetails: ResourceContactDetailsType | null;\n cover: ResourceImageType;\n coverUpload?: ResourceImageType | null;\n description: string;\n images?: ResourceImageType[] | null;\n imagesUpload?: ResourceImageType[] | null;\n logo?: ResourceImageType | null;\n logoUpload?: ResourceImageType | null;\n name: string;\n owner?: OwnerType | null;\n promoCodes?: PromoCodeType[] | null;\n region: string;\n socialMedia: SocialMediaType[] | null;\n termsAgreement?: TermsAgreement | null;\n}\n\nexport type PosterUsageType = {\n month: string;\n count: number;\n};\n\nexport type RelatedPostType = {\n postActive: boolean;\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 [EnumUserLicence.STANDARD_AFFILIATE]: \"standard\",\n [EnumUserLicence.STANDARD_SCHOOL]: \"standard\",\n};\n","import { EnumResourceType } from \"src/enums\";\n\nimport {\n CreateFormData,\n LocationType,\n OwnerType,\n PromoCodeType,\n SocialMediaType,\n} from \"./global\";\nimport { UserFormData } from \"./user\";\n\nexport enum EnumAffiliateParticipantType {\n INDIVIDUAL = \"INDIVIDUAL\",\n SOLE_TRADER = \"SOLE_TRADER\",\n COMPANY = \"COMPANY\",\n}\n\nexport type AffiliateContactDetails = {\n mobilePhone: string;\n};\n\nexport type AffiliateBankAccountDetailsType = {\n accountHolderName: string;\n accountNumber: string;\n};\n\nexport type AffiliateUserDefaultFields = Pick<\n UserFormData,\n \"email\" | \"firstName\" | \"lastName\" | \"termsAgreement\"\n>;\n\nexport type AffiliateDetailsType = AffiliateUserDefaultFields & {\n bankAccountDetails: AffiliateBankAccountDetailsType;\n contactDetails: AffiliateContactDetails;\n irdNumber: string;\n location: LocationType;\n participantType: EnumAffiliateParticipantType;\n region: string;\n socialMedia: SocialMediaType[] | null;\n};\n\nexport enum EnumAffiliateRewardType {\n ACTIVE_EVENT_WITH_VENDOR_REGISTRATIONS = \"ACTIVE_EVENT_WITH_VENDOR_REGISTRATIONS\",\n ACTIVE_VENDOR_BONUS_REWARD = \"ACTIVE_VENDOR_BONUS_REWARD\",\n ACTIVE_VENDOR_PRO_SUBSCRIPTION = \"ACTIVE_VENDOR_PRO_SUBSCRIPTION\",\n ACTIVE_VENDOR_STANDARD_SUBSCRIPTION = \"ACTIVE_VENDOR_STANDARD_SUBSCRIPTION\",\n NEW_EVENT_REGISTRATION = \"NEW_EVENT_REGISTRATION\",\n NEW_VENDOR_REGISTRATION = \"NEW_VENDOR_REGISTRATION\",\n}\n\nexport type AffiliateRewardType = {\n createdAt: Date;\n redeemedAt: Date | null;\n rewardDescription: string;\n rewardType: EnumAffiliateRewardType;\n rewardValue: number;\n};\n\nexport type AffiliateResourceType = {\n resourceActive: boolean;\n resourceDeletedAt: Date | null;\n resourceId: string;\n resourceName: string;\n resourceType: EnumResourceType;\n rewards: AffiliateRewardType[];\n};\n\nexport type RedeemHistoryType = {\n redeemedAt: Date;\n rewardValue: number;\n};\n\nexport interface AffiliateType {\n _id: string;\n active: boolean;\n affiliateBonusRewards?: AffiliateRewardType[] | null;\n affiliateCode: PromoCodeType | null;\n affiliateDetails: AffiliateDetailsType | null;\n affiliateResources: AffiliateResourceType[];\n createdAt: Date;\n deletedAt: Date | null;\n overallPoints: number;\n owner: OwnerType;\n redeemHistory?: RedeemHistoryType[] | null;\n updatedAt: Date | null;\n}\n\nexport type AffiliateFormData = AffiliateDetailsType &\n Pick<AffiliateType, \"_id\">;\n\nexport type CreateAffiliateFormData = CreateFormData<AffiliateFormData>;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACSO,IAAK,uBAAL,kBAAKA,0BAAL;AACL,EAAAA,sBAAA,cAAW;AACX,EAAAA,sBAAA,oBAAiB;AAFP,SAAAA;AAAA,GAAA;;;ACcL,IAAM,oBAAoB;;;ACnB1B,IAAK,eAAL,kBAAKC,kBAAL;AACL,EAAAA,cAAA,iBAAc;AACd,EAAAA,cAAA,gBAAa;AACb,EAAAA,cAAA,mBAAgB;AAChB,EAAAA,cAAA,kBAAe;AAJL,SAAAA;AAAA,GAAA;AAOL,IAAK,eAAL,kBAAKC,kBAAL;AACL,EAAAA,cAAA,YAAS;AACT,EAAAA,cAAA,YAAS;AACT,EAAAA,cAA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AA,EACT;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,IAAI;AAAA,IACJ,OAAO;AAAA,EACT;AACF;;;ACrGO,IAAK,eAAL,kBAAKC,kBAAL;AACL,EAAAA,cAAA,gBAAa;AACb,EAAAA,cAAA,eAAY;AACZ,EAAAA,cAAA,iBAAc;AAHJ,SAAAA;AAAA,GAAA;AAWL,IAAM,wBAAsD;AAAA,EACjE,CAAC,4BAAuB,GAAG;AAAA,EAC3B,CAAC,0BAAsB,GAAG;AAAA,EAC1B,CAAC,6BAAwB,GAAG;AAC9B;;;ACZO,IAAM,oBAAoB,CAAC,YAAY,OAAO,UAAU;AAMxD,IAAM,sBAA4C;AAAA,EACvD,KAAK;AAAA;AAAA,EAEL,UAAU;AAAA,EACV,UAAU;AACZ;AAGO,IAAM,oBAAmD;AAAA,EAC9D,4BAA0B,GAAG;AAAA,EAC7B,sCAA+B,GAAG;AAAA,EAClC,wCAAgC,GAAG;AAAA,EACnC,8BAA2B,GAAG;AAAA,EAC9B,sCAA+B,GAAG;AAAA,EAClC,0CAAiC,GAAG;AAAA,EACpC,wCAAgC,GAAG;AAAA,EACnC,8CAAmC,GAAG;AAAA,EACtC,wCAAgC,GAAG;AACrC;;;AChBO,IAAK,+BAAL,kBAAKC,kCAAL;AACL,EAAAA,8BAAA,gBAAa;AACb,EAAAA,8BAAA,iBAAc;AACd,EAAAA,8BAAA,aAAU;AAHA,SAAAA;AAAA,GAAA;AA8BL,IAAK,0BAAL,kBAAKC,6BAAL;AACL,EAAAA,yBAAA,4CAAyC;AACzC,EAAAA,yBAAA,gCAA6B;AAC7B,EAAAA,yBAAA,oCAAiC;AACjC,EAAAA,yBAAA,yCAAsC;AACtC,EAAAA,yBAAA,4BAAyB;AACzB,EAAAA,yBAAA,6BAA0B;AANhB,SAAAA;AAAA,GAAA;","names":["EnumVerificationType","EnumAdShowOn","EnumAdStatus","EnumAdType","EnumAdStyle","EnumActivity","EnumPostType","EnumPostContentType","EnumGameStatus","EnumGameType","EnumAffiliateParticipantType","EnumAffiliateRewardType"]}
1
+ {"version":3,"sources":["../../src/types/index.ts","../../src/types/auth.ts","../../src/types/global.ts","../../src/types/ad.ts","../../src/types/resourceActivities.ts","../../src/types/post.ts","../../src/types/game/index.ts","../../src/types/game/dailyClue.ts","../../src/types/game/global.ts","../../src/types/subscription.ts","../../src/types/affiliate.ts"],"sourcesContent":["export * from \"./admin\";\nexport * from \"./auth\";\nexport * from \"./chat\";\nexport * from \"./contactUs\";\nexport * from \"./global\";\nexport * from \"./event\";\nexport * from \"./notification\";\nexport * from \"./poster\";\nexport * from \"./relation\";\nexport * from \"./vendor\";\nexport * from \"./user\";\nexport * from \"./ad\";\nexport * from \"./resourceActivities\";\nexport * from \"./partner\";\nexport * from \"./post\";\nexport * from \"./pushToken\";\nexport * from \"./appSettings\";\nexport * from \"./googleImportedMarket\";\nexport * from \"./game\";\nexport * from \"./game/dailyClue\";\nexport * from \"./game/global\";\nexport * from \"./game/puzzleGame\";\nexport * from \"./school\";\nexport * from \"./subscription\";\nexport * from \"./affiliate\";\n","import {\n CreateFormData,\n EnumOSPlatform,\n PromoCodeType,\n TermsAgreement,\n} from \"src\";\n\nimport { SafeUserType } from \"./user\";\n\nexport enum EnumVerificationType {\n REGISTER = \"register\",\n RESET_PASSWORD = \"resetPassword\",\n}\n\nexport type LoginFormData = {\n email: string;\n isAdminPage?: boolean;\n password: string;\n platform?: EnumOSPlatform;\n};\n\nexport type CreateLoginFormData = CreateFormData<LoginFormData>;\n\nexport type RegisterFormData = {\n email: string;\n firstName: string;\n lastName: string;\n password: string;\n platform?: EnumOSPlatform;\n preferredRegion: string;\n promoCode?: PromoCodeType | null;\n termsAgreement?: TermsAgreement | null;\n};\n\nexport type CreateRegisterFormData = CreateFormData<RegisterFormData>;\n\nexport type RequestPasswordResetFormData = {\n email: string;\n};\n\nexport type CreateRequestPasswordResetFormData =\n CreateFormData<RequestPasswordResetFormData>;\n\nexport type ResetPasswordFormData = {\n confirmPassword: string;\n email: string;\n password: string;\n};\n\nexport type CreateResetPasswordFormData = CreateFormData<ResetPasswordFormData>;\n\nexport type ValidateVerificationTokenFormData = {\n email: string;\n verificationToken: string;\n verificationType?: EnumVerificationType;\n};\n\nexport type CreateValidateVerificationTokenFormData =\n CreateFormData<ValidateVerificationTokenFormData>;\n\nexport type AuthPayloadType = {\n message: string;\n token: string;\n refreshToken: string | null;\n user: SafeUserType;\n};\n\nexport type RefreshTokenPayloadType = {\n refreshToken: string;\n token: string;\n};\n","import {\n Control,\n FieldValues,\n FormState,\n UseFormGetValues,\n UseFormHandleSubmit,\n UseFormReset,\n UseFormSetValue,\n UseFormWatch,\n} from \"react-hook-form\";\n\nimport {\n EnumEventDateStatus,\n EnumEventType,\n EnumResourceType,\n EnumSocialMedia,\n EnumUserLicence,\n} from \"../enums\";\n\nimport { EventListItemType } from \"./event\";\nimport { EnumPostType } from \"./post\";\nimport { VendorType } from \"./vendor\";\n\nexport const PROMO_CODE_PREFIX = \"CM-\";\n\nexport type PromoCodeType = `${typeof PROMO_CODE_PREFIX}${string}`;\n\nexport type Nullable<T> = {\n [K in keyof T]: T[K] | null | undefined;\n};\n\nexport type DeviceInfo = {\n appBuildNumber: string;\n appId: string;\n appVersion: string;\n brand: string;\n deviceName: string;\n installationId: string;\n manufacturer: string;\n modelName: string;\n osName: string;\n osVersion: string;\n timestamp: string;\n};\n\nexport type TermsAgreement = DeviceInfo & {\n termVersion: string;\n};\n\nexport type ResourceContactDetailsType = {\n email?: string | null;\n landlinePhone?: string | null;\n mobilePhone?: string | null;\n};\n\nexport type ResourceImageType = {\n active: boolean;\n source: string;\n title: string;\n};\n\nexport type SocialMediaType = {\n name?: EnumSocialMedia;\n link?: string;\n};\n\nexport type UserLicenceType = {\n expiryDate: Date;\n issuedDate: Date;\n licenceType: EnumUserLicence;\n prevLicenceType?: EnumUserLicence | null;\n};\n\nexport type AssociateType = {\n email: string;\n resourceId: string;\n resourceType: EnumResourceType;\n licence: UserLicenceType;\n};\n\nexport type OwnerType = {\n email: string;\n userId: string;\n};\n\nexport interface BaseResourceTypeFormData {\n _id?: string;\n active: boolean;\n associates: AssociateType[] | null;\n contactDetails: ResourceContactDetailsType | null;\n cover: ResourceImageType;\n coverUpload?: ResourceImageType | null;\n description: string;\n images?: ResourceImageType[] | null;\n imagesUpload?: ResourceImageType[] | null;\n logo?: ResourceImageType | null;\n logoUpload?: ResourceImageType | null;\n name: string;\n owner?: OwnerType | null;\n promoCodes?: PromoCodeType[] | null;\n region: string;\n socialMedia: SocialMediaType[] | null;\n termsAgreement?: TermsAgreement | null;\n}\n\nexport type PosterUsageType = {\n month: string;\n count: number;\n};\n\nexport type RelatedPostType = {\n postActive: boolean;\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 approvedAt?: Date | 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 approvedAt?: Date | null;\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 [EnumUserLicence.STANDARD_AFFILIATE]: \"standard\",\n [EnumUserLicence.STANDARD_SCHOOL]: \"standard\",\n};\n","import { EnumResourceType } from \"src/enums\";\n\nimport {\n CreateFormData,\n LocationType,\n OwnerType,\n PromoCodeType,\n SocialMediaType,\n} from \"./global\";\nimport { UserFormData } from \"./user\";\n\nexport enum EnumAffiliateParticipantType {\n INDIVIDUAL = \"INDIVIDUAL\",\n SOLE_TRADER = \"SOLE_TRADER\",\n COMPANY = \"COMPANY\",\n}\n\nexport type AffiliateContactDetails = {\n mobilePhone: string;\n};\n\nexport type AffiliateBankAccountDetailsType = {\n accountHolderName: string;\n accountNumber: string;\n};\n\nexport type AffiliateUserDefaultFields = Pick<\n UserFormData,\n \"email\" | \"firstName\" | \"lastName\" | \"termsAgreement\"\n>;\n\nexport type AffiliateDetailsType = AffiliateUserDefaultFields & {\n bankAccountDetails: AffiliateBankAccountDetailsType;\n contactDetails: AffiliateContactDetails;\n irdNumber: string;\n location: LocationType;\n participantType: EnumAffiliateParticipantType;\n region: string;\n socialMedia: SocialMediaType[] | null;\n};\n\nexport enum EnumAffiliateRewardType {\n ACTIVE_EVENT_WITH_VENDOR_REGISTRATIONS = \"ACTIVE_EVENT_WITH_VENDOR_REGISTRATIONS\",\n ACTIVE_VENDOR_BONUS_REWARD = \"ACTIVE_VENDOR_BONUS_REWARD\",\n ACTIVE_VENDOR_PRO_SUBSCRIPTION = \"ACTIVE_VENDOR_PRO_SUBSCRIPTION\",\n ACTIVE_VENDOR_STANDARD_SUBSCRIPTION = \"ACTIVE_VENDOR_STANDARD_SUBSCRIPTION\",\n NEW_EVENT_REGISTRATION = \"NEW_EVENT_REGISTRATION\",\n NEW_VENDOR_REGISTRATION = \"NEW_VENDOR_REGISTRATION\",\n}\n\nexport type AffiliateRewardType = {\n createdAt: Date;\n redeemedAt: Date | null;\n rewardDescription: string;\n rewardType: EnumAffiliateRewardType;\n rewardValue: number;\n};\n\nexport type AffiliateResourceType = {\n resourceActive: boolean;\n resourceDeletedAt: Date | null;\n resourceId: string;\n resourceName: string;\n resourceType: EnumResourceType;\n rewards: AffiliateRewardType[];\n};\n\nexport type RedeemHistoryType = {\n redeemedAt: Date;\n rewardValue: number;\n};\n\nexport interface AffiliateType {\n _id: string;\n active: boolean;\n approvedAt?: Date | null;\n affiliateBonusRewards?: AffiliateRewardType[] | null;\n affiliateCode: PromoCodeType | null;\n affiliateDetails: AffiliateDetailsType | null;\n affiliateResources: AffiliateResourceType[];\n createdAt: Date;\n deletedAt: Date | null;\n overallPoints: number;\n owner: OwnerType;\n redeemHistory?: RedeemHistoryType[] | null;\n updatedAt: Date | null;\n}\n\nexport type AffiliateFormData = AffiliateDetailsType &\n Pick<AffiliateType, \"_id\">;\n\nex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C9B,sCAA+B,GAAG;AAAA,EAClC,0CAAiC,GAAG;AAAA,EACpC,wCAAgC,GAAG;AAAA,EACnC,8CAAmC,GAAG;AAAA,EACtC,wCAAgC,GAAG;AACrC;;;AChBO,IAAK,+BAAL,kBAAKC,kCAAL;AACL,EAAAA,8BAAA,gBAAa;AACb,EAAAA,8BAAA,iBAAc;AACd,EAAAA,8BAAA,aAAU;AAHA,SAAAA;AAAA,GAAA;AA8BL,IAAK,0BAAL,kBAAKC,6BAAL;AACL,EAAAA,yBAAA,4CAAyC;AACzC,EAAAA,yBAAA,gCAA6B;AAC7B,EAAAA,yBAAA,oCAAiC;AACjC,EAAAA,yBAAA,yCAAsC;AACtC,EAAAA,yBAAA,4BAAyB;AACzB,EAAAA,yBAAA,6BAA0B;AANhB,SAAAA;AAAA,GAAA;","names":["EnumVerificationType","EnumAdShowOn","EnumAdStatus","EnumAdType","EnumAdStyle","EnumActivity","EnumPostType","EnumPostContentType","EnumGameStatus","EnumGameType","EnumAffiliateParticipantType","EnumAffiliateRewardType"]}
@@ -1,9 +1,9 @@
1
1
  import { EnumResourceType, EnumOSPlatform, EnumUserLicence } from '../enums/index.mjs';
2
- export { q as AdFormData, y as AdFormState, z as AdResource, c as AdType, B as AffiliateBankAccountDetailsType, D as AffiliateContactDetails, F as AffiliateDetailsType, o as AffiliateFormData, G as AffiliateResourceType, H as AffiliateRewardType, i as AffiliateType, I as AffiliateUserDefaultFields, t as AppSettingsFormData, f as AppSettingsType, A as AuthPayloadType, J as CreateAdFormData, r as CreateAdFormState, x as CreateAffiliateFormData, u as CreateAppSettingsFormData, j as CreateLoginFormData, s as CreatePartnerFormData, k as CreateRegisterFormData, l as CreateRequestPasswordResetFormData, n as CreateResetPasswordFormData, w as CreateSchoolFormData, C as CreateUserFormData, m as CreateValidateVerificationTokenFormData, K as EnumAdShowOn, E as EnumAdStatus, L as EnumAdStyle, M as EnumAdType, N as EnumAffiliateParticipantType, O as EnumAffiliateRewardType, Q as EnumVerificationType, T as LoginFormData, V as MarketingMaterialRequestInputType, p as PartnerFormData, P as PartnerType, W as PosterInputType, X as RedeemHistoryType, Y as RedeemRewardInput, a as RedeemRewardResponse, Z as RedeemedReward, R as RefreshTokenPayloadType, _ as RegisterFormData, $ as RequestPasswordResetFormData, a0 as ResetPasswordFormData, b as ResourceByUser, S as SafeUserType, a1 as SchoolCampaignType, v as SchoolFormData, a2 as SchoolRegisteredUserType, g as SchoolReturnType, h as SchoolType, a3 as StripeSubscription, a4 as SubscriptionPlanData, d as SubscriptionPlansResponse, a5 as SubscriptionPricingData, e as SubscriptionStatusData, a6 as UserActivity, a7 as UserActivityEvent, U as UserFormData, a8 as UserType, a9 as ValidateVerificationTokenFormData } from '../ad-D3gPYInl.mjs';
3
- export { c as ChatMessageInput, d as ChatMessageReaction, e as ChatMessageReplyPreview, f as ChatMessageSeen, g as ChatMessageType, C as ChatType, h as CreateBulkNotificationInput, E as EnumActivity, N as NotificationCount, i as NotificationDataType, a as NotificationType, P as ParticipantType, R as ReportChatUser, j as ResourceActivityEntry, k as ResourceActivityInputType, b as ResourceActivityType } from '../resourceActivities-lFB7B-Y9.mjs';
4
- export { C as ContactUsFormData, a as CreateContactUsFormData } from '../contactUs-Dr-IbmG5.mjs';
5
- import { c as EventListItemType } from '../global-C8npu_7P.mjs';
6
- export { A as AssociateType, y as BaseGameMap, z as BaseGameType, D as BaseResourceType, B as BaseResourceTypeFormData, C as Category, s as CreateEventFormData, u as CreateEventInfoFormData, H as CreateFormData, w as CreatePostFormData, q as CreateUnregisteredVendorFormData, m as CreateVendorFormData, o as CreateVendorInfoFormData, I as DailyClueBaseGame, J as DailyClueGameData, K as DateTimeType, M as DateTimeWithPriceType, N as DeviceInfo, Q as EnumGameStatus, T as EnumGameType, W as EnumPostContentType, j as EnumPostType, r as EventFormData, t as EventInfoFormData, d as EventInfoType, X as EventStatusType, E as EventType, a as FormDateField, F as FormField, Y as GameDate, G as GameDocType, Z as GameHistory, k as GameLeaderboard, _ as GamePlacement, $ as GamePlacementClue, a0 as GameType, a1 as GeocodeLocation, a2 as GlobalGameData, a3 as ImageObjectType, a4 as LocationGeoType, L as LocationType, a5 as Nullable, O as OptionItem, a6 as OwnerType, a7 as PROMO_CODE_PREFIX, a8 as PaymentInfoType, a9 as PostContentData, aa as PostContentFormData, ab as PostContentGame, ac as PostContentImage, ad as PostContentList, ae as PostContentTextarea, af as PostContentType, ag as PostContentVideo, ah as PostFileInput, v as PostFormData, ai as PostResource, P as PostType, aj as PosterUsageType, ak as PromoCodeType, al as PuzzleAnswer, am as PuzzleAnsweredQuestion, an as PuzzleBaseGame, ao as PuzzleGameData, ap as PuzzleQuestion, R as RefundPolicy, x as Region, aq as RelatedPostType, ar as RelationDate, as as RelationInputType, e as RelationType, b as Requirement, f as ResourceConnectionsType, at as ResourceContactDetailsType, au as ResourceDetails, av as ResourceImageType, aw as SocialMediaType, ax as SocialShareResourceType, S as StallType, ay as Subcategory, az as SubcategoryItems, aA as TermsAgreement, p as UnregisteredVendorFormData, aB as UnregisteredVendorInvitationType, g as UnregisteredVendorType, U as UseGetResourcesByRegionOptions, i as UserLicenceType, aC as VendorAttributes, aD as VendorCalendarData, l as VendorFormData, n as VendorInfoFormData, h as VendorInfoType, aE as VendorProductList, V as VendorType, aF as gameScreenIdentifierList, aG as gameTypeToDisplayName } from '../global-C8npu_7P.mjs';
2
+ export { q as AdFormData, y as AdFormState, z as AdResource, c as AdType, B as AffiliateBankAccountDetailsType, D as AffiliateContactDetails, F as AffiliateDetailsType, o as AffiliateFormData, G as AffiliateResourceType, H as AffiliateRewardType, i as AffiliateType, I as AffiliateUserDefaultFields, t as AppSettingsFormData, f as AppSettingsType, A as AuthPayloadType, J as CreateAdFormData, r as CreateAdFormState, x as CreateAffiliateFormData, u as CreateAppSettingsFormData, j as CreateLoginFormData, s as CreatePartnerFormData, k as CreateRegisterFormData, l as CreateRequestPasswordResetFormData, n as CreateResetPasswordFormData, w as CreateSchoolFormData, C as CreateUserFormData, m as CreateValidateVerificationTokenFormData, K as EnumAdShowOn, E as EnumAdStatus, L as EnumAdStyle, M as EnumAdType, N as EnumAffiliateParticipantType, O as EnumAffiliateRewardType, Q as EnumVerificationType, T as LoginFormData, V as MarketingMaterialRequestInputType, p as PartnerFormData, P as PartnerType, W as PosterInputType, X as RedeemHistoryType, Y as RedeemRewardInput, a as RedeemRewardResponse, Z as RedeemedReward, R as RefreshTokenPayloadType, _ as RegisterFormData, $ as RequestPasswordResetFormData, a0 as ResetPasswordFormData, b as ResourceByUser, S as SafeUserType, a1 as SchoolCampaignType, v as SchoolFormData, a2 as SchoolRegisteredUserType, g as SchoolReturnType, h as SchoolType, a3 as StripeSubscription, a4 as SubscriptionPlanData, d as SubscriptionPlansResponse, a5 as SubscriptionPricingData, e as SubscriptionStatusData, a6 as UserActivity, a7 as UserActivityEvent, U as UserFormData, a8 as UserType, a9 as ValidateVerificationTokenFormData } from '../ad-Dlk9SFLw.mjs';
3
+ export { c as ChatMessageInput, d as ChatMessageReaction, e as ChatMessageReplyPreview, f as ChatMessageSeen, g as ChatMessageType, C as ChatType, h as CreateBulkNotificationInput, E as EnumActivity, N as NotificationCount, i as NotificationDataType, a as NotificationType, P as ParticipantType, R as ReportChatUser, j as ResourceActivityEntry, k as ResourceActivityInputType, b as ResourceActivityType } from '../resourceActivities-BCZ6HU7U.mjs';
4
+ export { C as ContactUsFormData, a as CreateContactUsFormData } from '../contactUs-HPydW6BR.mjs';
5
+ import { c as EventListItemType } from '../global-Dq6A7pNV.mjs';
6
+ export { A as AssociateType, y as BaseGameMap, z as BaseGameType, D as BaseResourceType, B as BaseResourceTypeFormData, C as Category, s as CreateEventFormData, u as CreateEventInfoFormData, H as CreateFormData, w as CreatePostFormData, q as CreateUnregisteredVendorFormData, m as CreateVendorFormData, o as CreateVendorInfoFormData, I as DailyClueBaseGame, J as DailyClueGameData, K as DateTimeType, M as DateTimeWithPriceType, N as DeviceInfo, Q as EnumGameStatus, T as EnumGameType, W as EnumPostContentType, j as EnumPostType, r as EventFormData, t as EventInfoFormData, d as EventInfoType, X as EventStatusType, E as EventType, a as FormDateField, F as FormField, Y as GameDate, G as GameDocType, Z as GameHistory, k as GameLeaderboard, _ as GamePlacement, $ as GamePlacementClue, a0 as GameType, a1 as GeocodeLocation, a2 as GlobalGameData, a3 as ImageObjectType, a4 as LocationGeoType, L as LocationType, a5 as Nullable, O as OptionItem, a6 as OwnerType, a7 as PROMO_CODE_PREFIX, a8 as PaymentInfoType, a9 as PostContentData, aa as PostContentFormData, ab as PostContentGame, ac as PostContentImage, ad as PostContentList, ae as PostContentTextarea, af as PostContentType, ag as PostContentVideo, ah as PostFileInput, v as PostFormData, ai as PostResource, P as PostType, aj as PosterUsageType, ak as PromoCodeType, al as PuzzleAnswer, am as PuzzleAnsweredQuestion, an as PuzzleBaseGame, ao as PuzzleGameData, ap as PuzzleQuestion, R as RefundPolicy, x as Region, aq as RelatedPostType, ar as RelationDate, as as RelationInputType, e as RelationType, b as Requirement, f as ResourceConnectionsType, at as ResourceContactDetailsType, au as ResourceDetails, av as ResourceImageType, aw as SocialMediaType, ax as SocialShareResourceType, S as StallType, ay as Subcategory, az as SubcategoryItems, aA as TermsAgreement, p as UnregisteredVendorFormData, aB as UnregisteredVendorInvitationType, g as UnregisteredVendorType, U as UseGetResourcesByRegionOptions, i as UserLicenceType, aC as VendorAttributes, aD as VendorCalendarData, l as VendorFormData, n as VendorInfoFormData, h as VendorInfoType, aE as VendorProductList, V as VendorType, aF as gameScreenIdentifierList, aG as gameTypeToDisplayName } from '../global-Dq6A7pNV.mjs';
7
7
  import '../images/index.mjs';
8
8
  import 'react-hook-form';
9
9
 
@@ -1,9 +1,9 @@
1
1
  import { EnumResourceType, EnumOSPlatform, EnumUserLicence } from '../enums/index.js';
2
- export { q as AdFormData, y as AdFormState, z as AdResource, c as AdType, B as AffiliateBankAccountDetailsType, D as AffiliateContactDetails, F as AffiliateDetailsType, o as AffiliateFormData, G as AffiliateResourceType, H as AffiliateRewardType, i as AffiliateType, I as AffiliateUserDefaultFields, t as AppSettingsFormData, f as AppSettingsType, A as AuthPayloadType, J as CreateAdFormData, r as CreateAdFormState, x as CreateAffiliateFormData, u as CreateAppSettingsFormData, j as CreateLoginFormData, s as CreatePartnerFormData, k as CreateRegisterFormData, l as CreateRequestPasswordResetFormData, n as CreateResetPasswordFormData, w as CreateSchoolFormData, C as CreateUserFormData, m as CreateValidateVerificationTokenFormData, K as EnumAdShowOn, E as EnumAdStatus, L as EnumAdStyle, M as EnumAdType, N as EnumAffiliateParticipantType, O as EnumAffiliateRewardType, Q as EnumVerificationType, T as LoginFormData, V as MarketingMaterialRequestInputType, p as PartnerFormData, P as PartnerType, W as PosterInputType, X as RedeemHistoryType, Y as RedeemRewardInput, a as RedeemRewardResponse, Z as RedeemedReward, R as RefreshTokenPayloadType, _ as RegisterFormData, $ as RequestPasswordResetFormData, a0 as ResetPasswordFormData, b as ResourceByUser, S as SafeUserType, a1 as SchoolCampaignType, v as SchoolFormData, a2 as SchoolRegisteredUserType, g as SchoolReturnType, h as SchoolType, a3 as StripeSubscription, a4 as SubscriptionPlanData, d as SubscriptionPlansResponse, a5 as SubscriptionPricingData, e as SubscriptionStatusData, a6 as UserActivity, a7 as UserActivityEvent, U as UserFormData, a8 as UserType, a9 as ValidateVerificationTokenFormData } from '../ad-D-_ZkOMn.js';
3
- export { c as ChatMessageInput, d as ChatMessageReaction, e as ChatMessageReplyPreview, f as ChatMessageSeen, g as ChatMessageType, C as ChatType, h as CreateBulkNotificationInput, E as EnumActivity, N as NotificationCount, i as NotificationDataType, a as NotificationType, P as ParticipantType, R as ReportChatUser, j as ResourceActivityEntry, k as ResourceActivityInputType, b as ResourceActivityType } from '../resourceActivities-CJrM2qDC.js';
4
- export { C as ContactUsFormData, a as CreateContactUsFormData } from '../contactUs-RKkIL-nI.js';
5
- import { c as EventListItemType } from '../global-BeBuHWbg.js';
6
- export { A as AssociateType, y as BaseGameMap, z as BaseGameType, D as BaseResourceType, B as BaseResourceTypeFormData, C as Category, s as CreateEventFormData, u as CreateEventInfoFormData, H as CreateFormData, w as CreatePostFormData, q as CreateUnregisteredVendorFormData, m as CreateVendorFormData, o as CreateVendorInfoFormData, I as DailyClueBaseGame, J as DailyClueGameData, K as DateTimeType, M as DateTimeWithPriceType, N as DeviceInfo, Q as EnumGameStatus, T as EnumGameType, W as EnumPostContentType, j as EnumPostType, r as EventFormData, t as EventInfoFormData, d as EventInfoType, X as EventStatusType, E as EventType, a as FormDateField, F as FormField, Y as GameDate, G as GameDocType, Z as GameHistory, k as GameLeaderboard, _ as GamePlacement, $ as GamePlacementClue, a0 as GameType, a1 as GeocodeLocation, a2 as GlobalGameData, a3 as ImageObjectType, a4 as LocationGeoType, L as LocationType, a5 as Nullable, O as OptionItem, a6 as OwnerType, a7 as PROMO_CODE_PREFIX, a8 as PaymentInfoType, a9 as PostContentData, aa as PostContentFormData, ab as PostContentGame, ac as PostContentImage, ad as PostContentList, ae as PostContentTextarea, af as PostContentType, ag as PostContentVideo, ah as PostFileInput, v as PostFormData, ai as PostResource, P as PostType, aj as PosterUsageType, ak as PromoCodeType, al as PuzzleAnswer, am as PuzzleAnsweredQuestion, an as PuzzleBaseGame, ao as PuzzleGameData, ap as PuzzleQuestion, R as RefundPolicy, x as Region, aq as RelatedPostType, ar as RelationDate, as as RelationInputType, e as RelationType, b as Requirement, f as ResourceConnectionsType, at as ResourceContactDetailsType, au as ResourceDetails, av as ResourceImageType, aw as SocialMediaType, ax as SocialShareResourceType, S as StallType, ay as Subcategory, az as SubcategoryItems, aA as TermsAgreement, p as UnregisteredVendorFormData, aB as UnregisteredVendorInvitationType, g as UnregisteredVendorType, U as UseGetResourcesByRegionOptions, i as UserLicenceType, aC as VendorAttributes, aD as VendorCalendarData, l as VendorFormData, n as VendorInfoFormData, h as VendorInfoType, aE as VendorProductList, V as VendorType, aF as gameScreenIdentifierList, aG as gameTypeToDisplayName } from '../global-BeBuHWbg.js';
2
+ export { q as AdFormData, y as AdFormState, z as AdResource, c as AdType, B as AffiliateBankAccountDetailsType, D as AffiliateContactDetails, F as AffiliateDetailsType, o as AffiliateFormData, G as AffiliateResourceType, H as AffiliateRewardType, i as AffiliateType, I as AffiliateUserDefaultFields, t as AppSettingsFormData, f as AppSettingsType, A as AuthPayloadType, J as CreateAdFormData, r as CreateAdFormState, x as CreateAffiliateFormData, u as CreateAppSettingsFormData, j as CreateLoginFormData, s as CreatePartnerFormData, k as CreateRegisterFormData, l as CreateRequestPasswordResetFormData, n as CreateResetPasswordFormData, w as CreateSchoolFormData, C as CreateUserFormData, m as CreateValidateVerificationTokenFormData, K as EnumAdShowOn, E as EnumAdStatus, L as EnumAdStyle, M as EnumAdType, N as EnumAffiliateParticipantType, O as EnumAffiliateRewardType, Q as EnumVerificationType, T as LoginFormData, V as MarketingMaterialRequestInputType, p as PartnerFormData, P as PartnerType, W as PosterInputType, X as RedeemHistoryType, Y as RedeemRewardInput, a as RedeemRewardResponse, Z as RedeemedReward, R as RefreshTokenPayloadType, _ as RegisterFormData, $ as RequestPasswordResetFormData, a0 as ResetPasswordFormData, b as ResourceByUser, S as SafeUserType, a1 as SchoolCampaignType, v as SchoolFormData, a2 as SchoolRegisteredUserType, g as SchoolReturnType, h as SchoolType, a3 as StripeSubscription, a4 as SubscriptionPlanData, d as SubscriptionPlansResponse, a5 as SubscriptionPricingData, e as SubscriptionStatusData, a6 as UserActivity, a7 as UserActivityEvent, U as UserFormData, a8 as UserType, a9 as ValidateVerificationTokenFormData } from '../ad-0muFV6oH.js';
3
+ export { c as ChatMessageInput, d as ChatMessageReaction, e as ChatMessageReplyPreview, f as ChatMessageSeen, g as ChatMessageType, C as ChatType, h as CreateBulkNotificationInput, E as EnumActivity, N as NotificationCount, i as NotificationDataType, a as NotificationType, P as ParticipantType, R as ReportChatUser, j as ResourceActivityEntry, k as ResourceActivityInputType, b as ResourceActivityType } from '../resourceActivities-DUR5JaaB.js';
4
+ export { C as ContactUsFormData, a as CreateContactUsFormData } from '../contactUs-CiXFYse5.js';
5
+ import { c as EventListItemType } from '../global-B2jacmZB.js';
6
+ export { A as AssociateType, y as BaseGameMap, z as BaseGameType, D as BaseResourceType, B as BaseResourceTypeFormData, C as Category, s as CreateEventFormData, u as CreateEventInfoFormData, H as CreateFormData, w as CreatePostFormData, q as CreateUnregisteredVendorFormData, m as CreateVendorFormData, o as CreateVendorInfoFormData, I as DailyClueBaseGame, J as DailyClueGameData, K as DateTimeType, M as DateTimeWithPriceType, N as DeviceInfo, Q as EnumGameStatus, T as EnumGameType, W as EnumPostContentType, j as EnumPostType, r as EventFormData, t as EventInfoFormData, d as EventInfoType, X as EventStatusType, E as EventType, a as FormDateField, F as FormField, Y as GameDate, G as GameDocType, Z as GameHistory, k as GameLeaderboard, _ as GamePlacement, $ as GamePlacementClue, a0 as GameType, a1 as GeocodeLocation, a2 as GlobalGameData, a3 as ImageObjectType, a4 as LocationGeoType, L as LocationType, a5 as Nullable, O as OptionItem, a6 as OwnerType, a7 as PROMO_CODE_PREFIX, a8 as PaymentInfoType, a9 as PostContentData, aa as PostContentFormData, ab as PostContentGame, ac as PostContentImage, ad as PostContentList, ae as PostContentTextarea, af as PostContentType, ag as PostContentVideo, ah as PostFileInput, v as PostFormData, ai as PostResource, P as PostType, aj as PosterUsageType, ak as PromoCodeType, al as PuzzleAnswer, am as PuzzleAnsweredQuestion, an as PuzzleBaseGame, ao as PuzzleGameData, ap as PuzzleQuestion, R as RefundPolicy, x as Region, aq as RelatedPostType, ar as RelationDate, as as RelationInputType, e as RelationType, b as Requirement, f as ResourceConnectionsType, at as ResourceContactDetailsType, au as ResourceDetails, av as ResourceImageType, aw as SocialMediaType, ax as SocialShareResourceType, S as StallType, ay as Subcategory, az as SubcategoryItems, aA as TermsAgreement, p as UnregisteredVendorFormData, aB as UnregisteredVendorInvitationType, g as UnregisteredVendorType, U as UseGetResourcesByRegionOptions, i as UserLicenceType, aC as VendorAttributes, aD as VendorCalendarData, l as VendorFormData, n as VendorInfoFormData, h as VendorInfoType, aE as VendorProductList, V as VendorType, aF as gameScreenIdentifierList, aG as gameTypeToDisplayName } from '../global-B2jacmZB.js';
7
7
  import '../images/index.js';
8
8
  import 'react-hook-form';
9
9
 
@@ -17,7 +17,7 @@ import {
17
17
  TIER_FROM_LICENCE,
18
18
  gameScreenIdentifierList,
19
19
  gameTypeToDisplayName
20
- } from "../chunk-2PM6254K.mjs";
20
+ } from "../chunk-POXARN2X.mjs";
21
21
  import "../chunk-LETM2YHF.mjs";
22
22
  export {
23
23
  EnumActivity,
@@ -37,9 +37,11 @@ __export(utils_exports, {
37
37
  CM_SCHOOL_PROMO_CODE: () => CM_SCHOOL_PROMO_CODE,
38
38
  DEFAULT_RESOURCES_RETURN_LIMIT: () => DEFAULT_RESOURCES_RETURN_LIMIT,
39
39
  DEFAULT_RESOURCES_RETURN_OFFSET: () => DEFAULT_RESOURCES_RETURN_OFFSET,
40
+ DEFAULT_USER_FACING_ERROR: () => DEFAULT_USER_FACING_ERROR,
40
41
  EVENT_DATE_STATUS_PERIOD_MAP: () => EVENT_DATE_STATUS_PERIOD_MAP,
41
42
  IOS_URL: () => IOS_URL,
42
43
  KNOWN_EVENT_SCHEDULE_STATUSES: () => KNOWN_EVENT_SCHEDULE_STATUSES,
44
+ NETWORK_USER_FACING_ERROR: () => NETWORK_USER_FACING_ERROR,
43
45
  PostTypeLabels: () => PostTypeLabels,
44
46
  SCHOOL_MAX_STUDENT_COUNT: () => SCHOOL_MAX_STUDENT_COUNT,
45
47
  SCHOOL_MIN_STUDENT_COUNT: () => SCHOOL_MIN_STUDENT_COUNT,
@@ -70,6 +72,7 @@ __export(utils_exports, {
70
72
  futureTimePeriods: () => futureTimePeriods,
71
73
  getAllowedEventDateStatuses: () => getAllowedEventDateStatuses,
72
74
  getCurrentAndFutureDates: () => getCurrentAndFutureDates,
75
+ getErrorMessage: () => getErrorMessage,
73
76
  getEventCalendarIsoDates: () => getEventCalendarIsoDates,
74
77
  getEventDatesWithStallholders: () => getEventDatesWithStallholders,
75
78
  getEventScheduleStatusLabel: () => getEventScheduleStatusLabel,
@@ -87,8 +90,10 @@ __export(utils_exports, {
87
90
  getVendorEventsEmptyMessage: () => getVendorEventsEmptyMessage,
88
91
  hasMatchingEventDate: () => hasMatchingEventDate,
89
92
  isFutureDatesBeforeThreshold: () => isFutureDatesBeforeThreshold,
93
+ isInternalErrorMessage: () => isInternalErrorMessage,
90
94
  isIsoDateString: () => isIsoDateString,
91
95
  isResourceImageActive: () => isResourceImageActive,
96
+ isTransientNetworkError: () => isTransientNetworkError,
92
97
  isValidIrdNumber: () => isValidIrdNumber,
93
98
  licenseNiceNames: () => licenseNiceNames,
94
99
  mapArrayToOptions: () => mapArrayToOptions,
@@ -110,6 +115,7 @@ __export(utils_exports, {
110
115
  timeFormat: () => timeFormat,
111
116
  toCalendarIsoDate: () => toCalendarIsoDate,
112
117
  toNZTime: () => toNZTime,
118
+ toUserFacingErrorMessage: () => toUserFacingErrorMessage,
113
119
  truncateText: () => truncateText
114
120
  });
115
121
  module.exports = __toCommonJS(utils_exports);
@@ -1934,6 +1940,86 @@ function isValidIrdNumber(value) {
1934
1940
  }
1935
1941
  return calculated === checkDigit;
1936
1942
  }
1943
+
1944
+ // src/utils/isTransientNetworkError.ts
1945
+ var TRANSIENT_NETWORK_PATTERNS = [
1946
+ /network connection was lost/i,
1947
+ /network request failed/i,
1948
+ /fetch failed/i,
1949
+ /failed to fetch/i,
1950
+ /internet connection appears to be offline/i,
1951
+ // Transport-layer timeouts only — avoid generic "timeout" (backend/query timeouts).
1952
+ /\b(request|connection|network)\s+timed\s+out\b/i,
1953
+ /\b(connect|read|write|socket)\s+timeout\b/i,
1954
+ /\bsocket\s+timed\s+out\b/i,
1955
+ /\betimedout\b/i,
1956
+ /\benotfound\b/i,
1957
+ /\beconnreset\b/i,
1958
+ /\beconnrefused\b/i
1959
+ ];
1960
+ function extractErrorMessage(err) {
1961
+ if (err instanceof Error) return err.message;
1962
+ if (typeof err === "string") return err;
1963
+ if (err && typeof err === "object") {
1964
+ const obj = err;
1965
+ if (typeof obj.message === "string") return obj.message;
1966
+ if (obj.networkError) return extractErrorMessage(obj.networkError);
1967
+ try {
1968
+ return JSON.stringify(err);
1969
+ } catch {
1970
+ return "[object]";
1971
+ }
1972
+ }
1973
+ if (err == null) return "";
1974
+ if (typeof err === "number" || typeof err === "boolean" || typeof err === "bigint") {
1975
+ return String(err);
1976
+ }
1977
+ if (typeof err === "symbol") return err.toString();
1978
+ return "";
1979
+ }
1980
+ function isTransientNetworkError(err) {
1981
+ const message = extractErrorMessage(err);
1982
+ return TRANSIENT_NETWORK_PATTERNS.some((pattern) => pattern.test(message));
1983
+ }
1984
+
1985
+ // src/utils/toUserFacingErrorMessage.ts
1986
+ var DEFAULT_USER_FACING_ERROR = "Something went wrong. Please try again.";
1987
+ var NETWORK_USER_FACING_ERROR = "Unable to connect. Please check your internet connection and try again.";
1988
+ var INTERNAL_ERROR_PATTERNS = [
1989
+ /connection\s*<monitor>/i,
1990
+ /\bmongo/i,
1991
+ /\b\d{1,3}(?:\.\d{1,3}){3}(?::\d+)?\b/,
1992
+ /\beconn(?:refused|reset|aborted)\b/i,
1993
+ /\betimedout\b/i,
1994
+ /\benotfound\b/i,
1995
+ /\bsocket hang up\b/i,
1996
+ /\binternal server error\b/i,
1997
+ /received status code 5\d\d/i,
1998
+ /\bat\s+\S+\s+\([^)]+:\d+:\d+\)/
1999
+ ];
2000
+ function isInternalErrorMessage(message) {
2001
+ return INTERNAL_ERROR_PATTERNS.some((pattern) => pattern.test(message));
2002
+ }
2003
+ function toUserFacingErrorMessage(error, fallback = DEFAULT_USER_FACING_ERROR) {
2004
+ const message = (error ?? "").trim();
2005
+ if (!message) return fallback;
2006
+ if (isTransientNetworkError(message)) {
2007
+ return NETWORK_USER_FACING_ERROR;
2008
+ }
2009
+ if (isInternalErrorMessage(message)) {
2010
+ return fallback;
2011
+ }
2012
+ return message;
2013
+ }
2014
+ function getErrorMessage(error, fallback = DEFAULT_USER_FACING_ERROR) {
2015
+ let raw;
2016
+ if (error instanceof Error) {
2017
+ raw = error.message;
2018
+ } else if (typeof error === "string") {
2019
+ raw = error;
2020
+ }
2021
+ return toUserFacingErrorMessage(raw, fallback);
2022
+ }
1937
2023
  // Annotate the CommonJS export names for ESM import in node:
1938
2024
  0 && (module.exports = {
1939
2025
  AFFILIATE_PARTICIPANT_TYPE_LABELS,
@@ -1943,9 +2029,11 @@ function isValidIrdNumber(value) {
1943
2029
  CM_SCHOOL_PROMO_CODE,
1944
2030
  DEFAULT_RESOURCES_RETURN_LIMIT,
1945
2031
  DEFAULT_RESOURCES_RETURN_OFFSET,
2032
+ DEFAULT_USER_FACING_ERROR,
1946
2033
  EVENT_DATE_STATUS_PERIOD_MAP,
1947
2034
  IOS_URL,
1948
2035
  KNOWN_EVENT_SCHEDULE_STATUSES,
2036
+ NETWORK_USER_FACING_ERROR,
1949
2037
  PostTypeLabels,
1950
2038
  SCHOOL_MAX_STUDENT_COUNT,
1951
2039
  SCHOOL_MIN_STUDENT_COUNT,
@@ -1976,6 +2064,7 @@ function isValidIrdNumber(value) {
1976
2064
  futureTimePeriods,
1977
2065
  getAllowedEventDateStatuses,
1978
2066
  getCurrentAndFutureDates,
2067
+ getErrorMessage,
1979
2068
  getEventCalendarIsoDates,
1980
2069
  getEventDatesWithStallholders,
1981
2070
  getEventScheduleStatusLabel,
@@ -1993,8 +2082,10 @@ function isValidIrdNumber(value) {
1993
2082
  getVendorEventsEmptyMessage,
1994
2083
  hasMatchingEventDate,
1995
2084
  isFutureDatesBeforeThreshold,
2085
+ isInternalErrorMessage,
1996
2086
  isIsoDateString,
1997
2087
  isResourceImageActive,
2088
+ isTransientNetworkError,
1998
2089
  isValidIrdNumber,
1999
2090
  licenseNiceNames,
2000
2091
  mapArrayToOptions,
@@ -2016,6 +2107,7 @@ function isValidIrdNumber(value) {
2016
2107
  timeFormat,
2017
2108
  toCalendarIsoDate,
2018
2109
  toNZTime,
2110
+ toUserFacingErrorMessage,
2019
2111
  truncateText
2020
2112
  });
2021
2113
  //# sourceMappingURL=index.cjs.map