@timardex/cluemart-shared 1.6.130 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ad-CVkVX_z5.d.ts +296 -0
- package/dist/ad-DA9ECAhK.d.mts +296 -0
- package/dist/affiliate-1RtkLnLP.d.ts +35 -0
- package/dist/affiliate-Cos2Syz5.d.mts +35 -0
- package/dist/chunk-HZMP7GXC.mjs +5330 -0
- package/dist/chunk-HZMP7GXC.mjs.map +1 -0
- package/dist/chunk-KZTOISPA.mjs +272 -0
- package/dist/chunk-KZTOISPA.mjs.map +1 -0
- package/dist/chunk-MVQ3CFQR.mjs +230 -0
- package/dist/chunk-MVQ3CFQR.mjs.map +1 -0
- package/dist/chunk-NPFJ2CN2.mjs +109 -0
- package/dist/chunk-NPFJ2CN2.mjs.map +1 -0
- package/dist/chunk-RKIRWZCH.mjs +368 -0
- package/dist/chunk-RKIRWZCH.mjs.map +1 -0
- package/dist/{chunk-OHHJ3KJJ.mjs → chunk-TAECMXM4.mjs} +267 -304
- package/dist/chunk-TAECMXM4.mjs.map +1 -0
- package/dist/chunk-VA5YN2K3.mjs +48 -0
- package/dist/chunk-VA5YN2K3.mjs.map +1 -0
- package/dist/chunk-ZZJSCYJK.mjs +958 -0
- package/dist/chunk-ZZJSCYJK.mjs.map +1 -0
- package/dist/contactUs-DGrDzJaM.d.mts +11 -0
- package/dist/contactUs-H7799pWe.d.ts +11 -0
- package/dist/enums/index.cjs +223 -2
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.mts +164 -5
- package/dist/enums/index.d.ts +164 -5
- package/dist/enums/index.mjs +41 -1
- package/dist/formFields/index.cjs +168 -403
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.d.mts +3 -6
- package/dist/formFields/index.d.ts +3 -6
- package/dist/formFields/index.mjs +47 -921
- package/dist/formFields/index.mjs.map +1 -1
- package/dist/global-BUUfmCo7.d.mts +698 -0
- package/dist/global-fKbMmluy.d.ts +698 -0
- package/dist/graphql/index.cjs +3329 -3340
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +487 -690
- package/dist/graphql/index.d.ts +487 -690
- package/dist/graphql/index.mjs +153 -2552
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +3478 -773
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +6 -13
- package/dist/hooks/index.d.ts +6 -13
- package/dist/hooks/index.mjs +99 -193
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/images/apple-maps-icon.webp.d.ts +1 -8
- package/dist/images/banner-horizontal.webp.d.ts +1 -8
- package/dist/images/banner-vertical.webp.d.ts +1 -8
- package/dist/images/cluiTui.webp.d.ts +1 -8
- package/dist/images/corporate.webp.d.ts +1 -8
- package/dist/images/facebook.webp.d.ts +1 -8
- package/dist/images/gazebo-top.webp.d.ts +1 -8
- package/dist/images/google-maps-icon.webp.d.ts +1 -8
- package/dist/images/googleMaps-logo-dark.webp.d.ts +1 -8
- package/dist/images/googleMaps-logo-light.webp.d.ts +1 -8
- package/dist/images/index.mjs +21 -86
- package/dist/images/index.mjs.map +1 -1
- package/dist/images/instagram.webp.d.ts +1 -8
- package/dist/images/logo-atr.webp.d.ts +1 -8
- package/dist/images/logo-dark.webp.d.ts +1 -8
- package/dist/images/logo.webp.d.ts +1 -8
- package/dist/images/meet.webp.d.ts +1 -8
- package/dist/images/mini-market1.webp.d.ts +1 -8
- package/dist/images/mini-market2.webp.d.ts +1 -8
- package/dist/images/mini-market3.webp.d.ts +1 -8
- package/dist/images/mini-market4.webp.d.ts +1 -8
- package/dist/images/mini-market5.webp.d.ts +1 -8
- package/dist/images/poll.webp.d.ts +1 -8
- package/dist/images/poster1.webp.d.ts +1 -8
- package/dist/images/poster2.webp.d.ts +1 -8
- package/dist/images/poster3.webp.d.ts +1 -8
- package/dist/images/poster4.webp.d.ts +1 -8
- package/dist/images/private.webp.d.ts +1 -8
- package/dist/images/qr-code.webp.d.ts +1 -8
- package/dist/images/school.webp.d.ts +1 -8
- package/dist/images/sima.webp.d.ts +1 -8
- package/dist/images/store-android.webp.d.ts +1 -8
- package/dist/images/store-ios.webp.d.ts +1 -8
- package/dist/images/tablas.webp.d.ts +1 -8
- package/dist/images/telefonos.webp.d.ts +1 -8
- package/dist/images/tiktok.webp.d.ts +1 -8
- package/dist/images/tip.webp.d.ts +1 -8
- package/dist/images/ugralos.webp.d.ts +1 -8
- package/dist/images/waze-maps-icon.webp.d.ts +1 -8
- package/dist/images/website.webp.d.ts +1 -8
- package/dist/images/youtube.webp.d.ts +1 -8
- package/dist/index.cjs +5883 -7079
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +1692 -2966
- package/dist/index.d.ts +1692 -2966
- package/dist/index.mjs +5020 -6162
- package/dist/index.mjs.map +1 -1
- package/dist/map/index.cjs +9 -14
- package/dist/map/index.cjs.map +1 -1
- package/dist/map/index.d.mts +14 -18
- package/dist/map/index.d.ts +14 -18
- package/dist/map/index.mjs +9 -14
- package/dist/map/index.mjs.map +1 -1
- package/dist/resourceActivities-BL_12IAo.d.ts +125 -0
- package/dist/resourceActivities-zczOntNk.d.mts +125 -0
- package/dist/sharing/index.cjs +1272 -63
- package/dist/sharing/index.cjs.map +1 -1
- package/dist/sharing/index.d.mts +7 -32
- package/dist/sharing/index.d.ts +7 -32
- package/dist/sharing/index.mjs +30 -188
- package/dist/sharing/index.mjs.map +1 -1
- package/dist/theme/index.mjs +5 -41
- package/dist/theme/index.mjs.map +1 -1
- package/dist/types/index.cjs +110 -868
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +24 -230
- package/dist/types/index.d.ts +24 -230
- package/dist/types/index.mjs +27 -61
- package/dist/utils/index.cjs +214 -608
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +53 -107
- package/dist/utils/index.d.ts +53 -107
- package/dist/utils/index.mjs +15 -43
- package/package.json +12 -40
- package/dist/affiliate-Bqqlffw8.d.mts +0 -36
- package/dist/affiliate-Btlp5XUp.d.ts +0 -36
- package/dist/affiliateAdapters-BW3BY7c5.d.mts +0 -118
- package/dist/affiliateAdapters-C51ISmuA.d.ts +0 -118
- package/dist/apollo/index.cjs +0 -1383
- package/dist/apollo/index.cjs.map +0 -1
- package/dist/apollo/index.d.mts +0 -323
- package/dist/apollo/index.d.ts +0 -323
- package/dist/apollo/index.mjs +0 -1295
- package/dist/apollo/index.mjs.map +0 -1
- package/dist/auth/index.cjs +0 -3322
- package/dist/auth/index.cjs.map +0 -1
- package/dist/auth/index.d.mts +0 -164
- package/dist/auth/index.d.ts +0 -164
- package/dist/auth/index.mjs +0 -379
- package/dist/auth/index.mjs.map +0 -1
- package/dist/auth-BOmAO53v.d.ts +0 -169
- package/dist/auth-CsITA95p.d.mts +0 -169
- package/dist/chunk-DATBGC2K.mjs +0 -347
- package/dist/chunk-DATBGC2K.mjs.map +0 -1
- package/dist/chunk-DDHECBJR.mjs +0 -726
- package/dist/chunk-DDHECBJR.mjs.map +0 -1
- package/dist/chunk-INQCDU24.mjs +0 -139
- package/dist/chunk-INQCDU24.mjs.map +0 -1
- package/dist/chunk-NWWKI4PJ.mjs +0 -297
- package/dist/chunk-NWWKI4PJ.mjs.map +0 -1
- package/dist/chunk-OHHJ3KJJ.mjs.map +0 -1
- package/dist/chunk-RAYUJODN.mjs +0 -45
- package/dist/chunk-RAYUJODN.mjs.map +0 -1
- package/dist/chunk-TOEFAEF2.mjs +0 -69
- package/dist/chunk-TOEFAEF2.mjs.map +0 -1
- package/dist/chunk-UKW7NZEQ.mjs +0 -2813
- package/dist/chunk-UKW7NZEQ.mjs.map +0 -1
- package/dist/dailyClue-C6WXY73z.d.mts +0 -105
- package/dist/dailyClue-C6WXY73z.d.ts +0 -105
- package/dist/event-C9K7CSg4.d.ts +0 -53
- package/dist/event-W0NhL5Cd.d.mts +0 -53
- package/dist/global-BbSFfYdd.d.ts +0 -181
- package/dist/global-C6v9tRji.d.mts +0 -181
- package/dist/graphql-CDOfA79A.d.ts +0 -1253
- package/dist/graphql-CcvzTs9k.d.mts +0 -1253
- package/dist/resourceActivities-CS8YRIIL.d.mts +0 -89
- package/dist/resourceActivities-DOdNPkhW.d.ts +0 -89
- package/dist/subscription-Cj_qBA7u.d.mts +0 -20
- package/dist/subscription-OiJ50uJb.d.ts +0 -20
- package/dist/vendor-DmMi2qmx.d.mts +0 -73
- package/dist/vendor-M9hVZlni.d.ts +0 -73
package/dist/hooks/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/hooks/index.ts","../../src/hooks/useLocationSearch.ts","../../src/hooks/vendor/useVendorForm.ts","../../src/yupSchema/global.ts","../../src/generated/graphql.ts","../../src/types/game/dailyClue.ts","../../src/utils/date.ts","../../src/utils/mapArrayToOptions.ts","../../src/sharing/relationShareTypes.ts","../../src/sharing/constants.ts","../../src/types/global.ts","../../src/types/eventAdapters.ts","../../src/auth/permissions/permissions.ts","../../src/auth/permissions/rolePermissions.ts","../../src/auth/permissions/adminAppAccess.ts","../../src/types/userAdapters.ts","../../src/types/game/global.ts","../../src/types/subscription.ts","../../src/types/affiliateAdapters.ts","../../src/enums/clientEnums.ts","../../src/utils/utils.ts","../../src/utils/school.ts","../../src/utils/eventDateStatus.ts","../../src/calendar/eventCalendar.ts","../../src/formFields/categories/clothingAndFashion.ts","../../src/formFields/categories/electronicsAndTechnology.ts","../../src/formFields/categories/foodAndBeverages.ts","../../src/formFields/categories/handmadeAndLocalProducts.ts","../../src/formFields/categories/healthAndWellness.ts","../../src/formFields/categories/homeGardenHousehold.ts","../../src/formFields/categories/petProductsAndAnimalGoods.ts","../../src/formFields/categories/serviceAndExperience.ts","../../src/formFields/categories/toysChildren.ts","../../src/formFields/categories/vintageAndAntique.ts","../../src/formFields/categories/index.ts","../../src/utils/affiliate.ts","../../src/utils/irdNumber.ts","../../src/yupSchema/event.ts","../../src/yupSchema/vendor.ts","../../src/yupSchema/user.ts","../../src/yupSchema/auth.ts","../../src/yupSchema/ad.ts","../../src/yupSchema/partner.ts","../../src/yupSchema/post.ts","../../src/yupSchema/appSettings.ts","../../src/hooks/utils.ts","../../src/hooks/vendor/useVendorInfoForm.ts","../../src/hooks/vendor/useUnregisteredVendorForm.ts","../../src/hooks/event/useEventForm.ts","../../src/hooks/event/useEventInfoForm.ts","../../src/hooks/useUserForm.ts","../../src/hooks/auth/useLoginForm.ts","../../src/hooks/auth/useRegisterForm.ts","../../src/hooks/auth/useRequestPasswordResetForm.ts","../../src/hooks/auth/useValidateVerificationTokenForm.ts","../../src/hooks/auth/useResetPasswordForm.ts","../../src/hooks/useContactUsForm.ts","../../src/yupSchema/contactUs.ts","../../src/hooks/useAdForm.ts","../../src/hooks/partner/usePartnerForm.ts","../../src/hooks/usePostForm.ts","../../src/hooks/useAppSettingsForm.ts","../../src/hooks/useSchoolForm.ts","../../src/yupSchema/school.ts","../../src/hooks/useAffiliateForm.ts","../../src/yupSchema/affiliate.ts"],"sourcesContent":["export * from \"./useLocationSearch\";\nexport * from \"./vendor\";\nexport * from \"./event\";\nexport * from \"./useUserForm\";\nexport * from \"./auth\";\nexport * from \"./utils\";\nexport * from \"./useContactUsForm\";\nexport * from \"./useAdForm\";\nexport * from \"./partner\";\nexport * from \"./usePostForm\";\nexport * from \"./useAppSettingsForm\";\nexport * from \"./useSchoolForm\";\nexport * from \"./useAffiliateForm\";\n","/* eslint-disable camelcase */\nimport { LocationType } from \"../types/global\";\n\nexport interface PlacePrediction {\n place_id: string;\n description: string;\n}\n\ninterface PlaceDetails {\n addressComponents: {\n longText: string;\n shortText: string;\n types: string[];\n }[];\n formattedAddress: string;\n location: {\n latitude: number;\n longitude: number;\n };\n}\n\ninterface AutocompleteResponse {\n suggestions?: Array<{\n placePrediction?: {\n placeId?: string;\n text?: {\n text?: string;\n };\n };\n }>;\n}\n\ninterface UseLocation {\n getPredictions: (text: string) => Promise<PlacePrediction[] | undefined>;\n getPlaceDetails: (placeId: string) => Promise<LocationType | undefined>;\n}\n\n/** Handles API request errors */\nconst handleApiError = (error: unknown, message: string) => {\n console.error(message, error);\n};\n\n/**\n * Custom hook to manage location search functionality.\n *\n * @returns {UseLocation} - The functions to get predictions and place details.\n */\nexport const useLocationSearch = (googleApi: string): UseLocation => {\n const getPredictions = async (\n text: string,\n ): Promise<PlacePrediction[] | undefined> => {\n try {\n const response = await fetch(\n \"https://places.googleapis.com/v1/places:autocomplete\",\n {\n body: JSON.stringify({\n input: `${text} New Zealand`,\n languageCode: \"en\",\n regionCode: \"nz\",\n }),\n headers: {\n \"Content-Type\": \"application/json\",\n \"X-Goog-Api-Key\": googleApi,\n \"X-Goog-FieldMask\":\n \"suggestions.placePrediction.placeId,suggestions.placePrediction.text.text\",\n },\n method: \"POST\",\n },\n );\n\n if (!response.ok) {\n throw new Error(`HTTP error! Status: ${response.status}`);\n }\n\n const data = (await response.json()) as AutocompleteResponse;\n const suggestions = data.suggestions ?? [];\n const predictions = suggestions\n .map((suggestion) => suggestion.placePrediction)\n .filter(Boolean)\n .map((prediction) => ({\n description: prediction?.text?.text || \"\",\n place_id: prediction?.placeId || \"\",\n }))\n .filter((prediction) => prediction.place_id && prediction.description);\n\n return predictions;\n } catch (error) {\n console.error(\"Error fetching predictions:\", error);\n handleApiError(error, \"Failed to fetch address predictions.\");\n }\n };\n\n const getPlaceDetails = async (\n placeId: string,\n ): Promise<LocationType | undefined> => {\n try {\n const response = await fetch(\n `https://places.googleapis.com/v1/places/${placeId}`,\n {\n headers: {\n \"X-Goog-Api-Key\": googleApi,\n \"X-Goog-FieldMask\": \"addressComponents,formattedAddress,location\",\n },\n },\n );\n\n if (!response.ok) {\n throw new Error(`HTTP error! Status: ${response.status}`);\n }\n\n const result = (await response.json()) as PlaceDetails;\n\n const { latitude, longitude } = result.location;\n const { addressComponents, formattedAddress } = result;\n\n const address = addressComponents.reduce((acc, item) => {\n if (!Array.isArray(item.types)) return acc;\n\n if (item.types.includes(\"street_number\")) {\n return { ...acc, streetNumber: item.longText };\n }\n if (item.types.includes(\"route\")) {\n return { ...acc, streetName: item.longText };\n }\n if (item.types.includes(\"locality\")) {\n return { ...acc, city: item.longText };\n }\n if (item.types.includes(\"administrative_area_level_1\")) {\n return { ...acc, region: item.longText };\n }\n if (item.types.includes(\"country\")) {\n return { ...acc, country: item.longText };\n }\n return acc;\n }, {} as LocationType);\n\n const newLocation = {\n city: address.city ? address.city.toLowerCase() : \"\",\n country: address.country,\n fullAddress: formattedAddress,\n geo: {\n coordinates: [longitude, latitude], // [longitude, latitude]\n type: \"Point\" as const, // Mongoose GeoJSON type\n },\n latitude,\n longitude,\n region: address.region ? address.region.replace(/ Region$/, \"\") : \"\", // Remove \" Region\" suffix\n };\n\n return newLocation;\n } catch (error) {\n handleApiError(error, \"Failed to fetch place details.\");\n }\n };\n\n return {\n getPlaceDetails,\n getPredictions,\n };\n};\n","import { yupResolver } from \"@hookform/resolvers/yup\";\nimport * as React from \"react\";\nimport { useForm } from \"react-hook-form\";\n\nimport { CreateVendorFormData, VendorFormData } from \"../../types/vendor\";\nimport { vendorSchema } from \"../../yupSchema\";\nimport {\n defaultVendorFormValues,\n mapBaseResourceTypeToFormData,\n} from \"../utils\";\n\n/**\n * Custom hook to manage the vendor form state and validation.\n *\n * @param {VendorFormData} data - The initial form data.\n * @returns {CreateVendorFormData} - The form methods and state.\n */\nexport function useVendorForm(data?: VendorFormData): CreateVendorFormData {\n const {\n control,\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n } = useForm<VendorFormData>({\n defaultValues: defaultVendorFormValues,\n resolver: yupResolver(vendorSchema),\n });\n\n React.useEffect(() => {\n if (data) {\n reset({\n ...mapBaseResourceTypeToFormData(data),\n availability: data.availability,\n calendar: data.calendar,\n categories: data.categories,\n claimed: data.claimed ?? false,\n foodTruck: data.foodTruck,\n products: data.products,\n unregisteredVendorId: data.unregisteredVendorId,\n vendorType: data.vendorType,\n });\n } else {\n reset(defaultVendorFormValues);\n }\n }, [data]);\n\n const {\n _id,\n active,\n availability,\n calendar,\n categories,\n claimed,\n contactDetails,\n cover,\n coverUpload,\n description,\n foodTruck,\n images,\n imagesUpload,\n logo,\n logoUpload,\n name,\n products,\n promoCodes,\n region,\n socialMedia,\n termsAgreement,\n unregisteredVendorId,\n vendorType,\n } = getValues();\n\n return {\n control,\n fields: {\n _id,\n active,\n availability,\n calendar,\n categories,\n claimed,\n contactDetails,\n cover,\n coverUpload,\n description,\n foodTruck,\n images,\n imagesUpload,\n logo,\n logoUpload,\n name,\n products,\n promoCodes,\n region,\n socialMedia,\n termsAgreement,\n unregisteredVendorId,\n vendorType,\n },\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n };\n}\n","/* eslint-disable sort-keys */\nimport dayjs from \"dayjs\";\nimport customParseFormat from \"dayjs/plugin/customParseFormat.js\";\nimport isSameOrAfter from \"dayjs/plugin/isSameOrAfter.js\";\nimport * as yup from \"yup\";\nimport { TestFunction } from \"yup\";\n\nimport {\n EventDateStatusEnumType,\n SocialMediaEnumType,\n} from \"../generated/graphql\";\nimport { dateFormat, normalizeUrl, timeFormat } from \"../utils\";\n\ntype NoLeadingZerosOptions = {\n allowDecimal?: boolean;\n};\n\nexport const nzBankAccountRegex = /^\\d{2}-\\d{4}-\\d{7}-\\d{2}$/;\n\n/** Formatted IRD: `XXX-XXX-XX` (8 digits) or `XXX-XXX-XXX` (9 digits). */\nexport const nzIrdNumberRegex = /^\\d{3}-\\d{3}-\\d{2,3}$/;\n\nexport const nzbnRegex = /^94\\d{11}$/;\n\nexport const normalizedUrlTransform = () =>\n yup\n .string()\n .trim()\n .transform((value) =>\n typeof value === \"string\" ? normalizeUrl(value) : value,\n );\n\nexport const noLeadingZeros = (\n fieldName: string,\n options: NoLeadingZerosOptions = {},\n): TestFunction<number | undefined> => {\n return function (value, context) {\n const original = context.originalValue;\n\n // Only validate string input (what the user actually typed)\n if (typeof original !== \"string\") {\n return true;\n }\n\n // Allow empty (handled by required / min)\n if (original === \"\") {\n return true;\n }\n\n const regex = options.allowDecimal\n ? /^0\\d+(\\.\\d+)?$/ // \"03\", \"003\", \"01.5\"\n : /^0\\d+$/; // \"03\", \"003\"\n\n if (regex.test(original)) {\n return context.createError({\n message: `${fieldName} must not have leading zeros`,\n });\n }\n\n return true;\n };\n};\n\nexport const toOptionalNumber = (originalValue: unknown) => {\n if (\n originalValue === \"\" ||\n originalValue === null ||\n originalValue === undefined\n ) {\n return undefined;\n }\n let parsed: number | undefined;\n\n if (typeof originalValue === \"number\") {\n parsed = originalValue;\n } else if (typeof originalValue === \"string\") {\n parsed = Number(originalValue.replace(\",\", \".\"));\n } else {\n parsed = undefined;\n }\n\n return Number.isNaN(parsed) ? undefined : parsed;\n};\n\ndayjs.extend(isSameOrAfter);\ndayjs.extend(customParseFormat);\n\n// ✅ Reusable Required Email Schema\nexport const emailRequiredSchema = yup\n .string()\n .email(\"Invalid email address\")\n .required(\"Email is required\")\n .label(\"Email\")\n .transform((value) =>\n typeof value === \"string\" ? value.trim().toLowerCase() : value,\n );\n\nexport const emailOptionalSchema = yup\n .string()\n .nullable()\n .notRequired()\n .transform((value) =>\n typeof value === \"string\" ? value.trim().toLowerCase() : value,\n )\n .test(\n \"is-valid-email\",\n \"Invalid email address\",\n (value) => !value || yup.string().email().isValidSync(value),\n )\n .label(\"Email\");\n\n// Mobile: starts with 02, 9-11 digits\nexport const mobileRegex = /^02\\d{7,9}$/;\n// Landline: starts with 03, 04, 06, 07, 09 (but not 090), 7 digits after area code\nconst landlineRegex = /^0[34679]\\d{7}$/;\n\nexport const mobilePhoneSchema = yup\n .string()\n .label(\"Mobile Phone\")\n .nullable()\n .notRequired()\n .test(\n \"mobile-phone\",\n \"Mobile must start with 02 and be 9–11 digits\",\n (value) => !value || mobileRegex.test(value), // skip empty values\n );\n\nconst landlinePhoneSchema = yup\n .string()\n .label(\"Landline Phone\")\n .nullable()\n .notRequired()\n .test(\n \"landline-phone\",\n \"Landline must start with 03, 04, 06, 07, or 09 (not 090) and have 7 digits after area code\",\n (value) => !value || landlineRegex.test(value), // skip empty values\n );\n\nexport const contactDetailsSchema = yup\n .object({\n email: emailOptionalSchema,\n mobilePhone: mobilePhoneSchema,\n landlinePhone: landlinePhoneSchema,\n })\n .nullable()\n .default(undefined);\n\n// DATE AND TIME SCHEMA\nexport const endDateNotInPastTest = yup\n .string()\n .test(\"not-in-past\", \"End date cannot be in the past\", (value) => {\n const now = dayjs(); // Current date and time\n return value\n ? dayjs(value, dateFormat, true).isSameOrAfter(now, \"day\")\n : false;\n });\n\nexport const startDateNotInPastTest = yup\n .string()\n .test(\"not-in-past\", \"Start date cannot be in the past\", (value) => {\n const now = dayjs(); // Current date and time\n return value\n ? dayjs(value, dateFormat, true).isSameOrAfter(now, \"day\")\n : false;\n });\n\nexport const endDateAfterStartDateTest = yup\n .string()\n .test(\n \"end-after-start\",\n \"End date cannot be before start date\",\n function (value) {\n const { startDate } = this.parent;\n if (!startDate || !value) return false;\n return dayjs(value, dateFormat, true).isSameOrAfter(\n dayjs(startDate, dateFormat, true),\n \"day\",\n );\n },\n );\n\nexport const endTimeMustBeAfterStartTimeTest = yup\n .string()\n .test(\n \"valid-end-time\",\n \"End time must be after start time\",\n function (value) {\n const { startDate, endDate, startTime } = this.parent;\n if (!startDate || !endDate || !startTime || !value) return false;\n\n const startDateTime = dayjs(\n `${startDate} ${startTime}`,\n `${dateFormat} ${timeFormat}`,\n true,\n );\n const endDateTime = dayjs(\n `${endDate} ${value}`,\n `${dateFormat} ${timeFormat}`,\n true,\n );\n\n return endDateTime.isAfter(startDateTime);\n },\n );\n\nexport const startTimeCannotBeInPastTest = yup\n .string()\n .test(\n \"valid-start-time\",\n \"Start time cannot be in the past\",\n function (value) {\n const now = dayjs(); // Current date and time\n const { startDate } = this.parent;\n if (!startDate || !value) return false;\n const startDateTime = dayjs(\n `${startDate} ${value}`,\n `${dateFormat} ${timeFormat}`,\n true,\n );\n return startDateTime.isSameOrAfter(now);\n },\n );\n\nexport const dateTimeSchema = yup.object().shape({\n dateStatus: yup\n .mixed<EventDateStatusEnumType>()\n .oneOf(Object.values(EventDateStatusEnumType))\n .required(\"Date status is required\"),\n endDate: yup\n .string()\n .label(\"End Date\")\n .concat(endDateNotInPastTest)\n .concat(endDateAfterStartDateTest)\n .required(\"End date is required\"),\n endTime: yup\n .string()\n .label(\"End Time\")\n .concat(endTimeMustBeAfterStartTimeTest)\n .required(\"End time is required\"),\n startDate: yup\n .string()\n .label(\"Start Date\")\n .concat(startDateNotInPastTest)\n .required(\"Start date is required\"),\n startTime: yup\n .string()\n .label(\"Start Time\")\n .concat(startTimeCannotBeInPastTest)\n .required(\"Start time is required\"),\n});\n\nconst stallTypesSchema = yup.object({\n label: yup\n .string()\n .trim()\n .label(\"Stall Type\")\n .required(\"Stall type is required\"),\n price: yup\n .number()\n .transform((_, originalValue) => toOptionalNumber(originalValue))\n .label(\"Stall Price\")\n .min(0.1, \"Stall price must be at least 0.1\")\n .required(\"Stall price is required\")\n .test(\n \"no-leading-zeros\",\n \"\",\n noLeadingZeros(\"Stall price\", { allowDecimal: true }),\n ),\n stallCapacity: yup\n .number()\n .transform((_, originalValue) => toOptionalNumber(originalValue))\n .label(\"Stall Capacity\")\n .typeError(\"Stall capacity must be a number\")\n .min(0, \"Stall capacity cannot be negative\")\n .integer(\"Stall capacity must be a whole number\")\n .required(\"Stall capacity is required\")\n .test(\"no-leading-zeros\", \"\", noLeadingZeros(\"Stall capacity\")),\n});\n\nexport const dateTimeWithPriceSchema = dateTimeSchema.shape({\n stallTypes: yup\n .array()\n .of(stallTypesSchema)\n .min(1, \"At least one stall type is required\")\n .required(\"Stall types are required\"),\n});\n\nexport const locationSchema = yup.object().shape({\n city: yup.string().label(\"City\").required(\"City is required\"),\n country: yup.string().label(\"Country\").required(\"Country is required\"),\n fullAddress: yup.string().label(\"Address\").required(\"Address is required\"),\n geo: yup.object().shape({\n coordinates: yup\n .array()\n .of(yup.number().required(\"Coordinates must be numbers\"))\n .length(\n 2,\n \"Coordinates must contain exactly two numbers (longitude, latitude)\",\n )\n .required(\"Coordinates are required\"),\n type: yup\n .string()\n .test(\n \"is-point\",\n \"Type must be 'Point'\",\n (value) => value == null || value === \"Point\",\n )\n .default(\"Point\")\n .required(\"Type is required\"),\n }),\n latitude: yup.number().label(\"Latitude\").required(\"Latitude is required\"),\n longitude: yup.number().label(\"Longitude\").required(\"Longitude is required\"),\n region: yup.string().label(\"Region\").required(\"Region is required\"),\n});\n\n// ✅ Reusable Password Schema\nexport const passwordSchema = yup\n .string()\n .trim()\n .label(\"Password\")\n .min(8, \"Password must be at least 8 characters long\")\n .required(\"Password is required\");\n\nexport const socialMediaSchema = yup.object({\n name: yup\n .mixed<SocialMediaEnumType>()\n .oneOf(Object.values(SocialMediaEnumType))\n .label(\"Social Media Name\")\n .optional(),\n link: yup.string().when(\"name\", {\n is: (name: SocialMediaEnumType | undefined) => !!name, // If name has a value\n then: () =>\n normalizedUrlTransform()\n .required(\"Link is required when name is set\")\n .url(\"Link must be a valid URL\")\n .label(\"Social Media Link\"),\n otherwise: (schema) => schema.notRequired(),\n }),\n});\n\nexport const globalResourceSchema = yup.object().shape({\n active: yup.boolean().required(\"Active is required\"),\n cover: yup.object({\n active: yup.boolean().default(true),\n source: yup.string().label(\"Cover\").required(\"Cover Image is required\"),\n title: yup\n .string()\n .label(\"Cover Title\")\n .required(\"Cover Title is required\"),\n }),\n contactDetails: contactDetailsSchema,\n description: yup\n .string()\n .label(\"Description\")\n .trim()\n .min(50)\n .required(\"Description is required\"),\n name: yup.string().label(\"Name\").trim().min(3).required(\"Name is required\"),\n region: yup.string().label(\"Region\").required(\"Region is required\"),\n socialMedia: yup.array().of(socialMediaSchema).nullable().default(null),\n});\n\nexport const categorySchema = yup.array().of(\n yup.object().shape({\n id: yup.string().required(\"Category id is required\"),\n name: yup.string().required(\"Category name is required\"),\n subcategories: yup\n .array()\n .of(\n yup.object().shape({\n id: yup.string().defined(),\n items: yup\n .array()\n .of(\n yup.object().shape({\n id: yup.string().defined(),\n name: yup.string().defined(),\n }),\n )\n .nullable(),\n name: yup.string().defined(),\n }),\n )\n .min(1, \"At least one subcategory is required\")\n .required(\"Subcategories are required\"),\n }),\n);\n","import { PosterAssetId } from '../images';\nexport type Maybe<T> = T | null;\nexport type InputMaybe<T> = Maybe<T>;\n/** All built-in and custom scalars, mapped to their actual values */\nexport type Scalars = {\n ID: { input: string; output: string; }\n String: { input: string; output: string; }\n Boolean: { input: boolean; output: boolean; }\n Int: { input: number; output: number; }\n Float: { input: number; output: number; }\n Date: { input: string; output: string; }\n PosterAssetId: { input: PosterAssetId; output: PosterAssetId; }\n Upload: { input: any; output: any; }\n};\n\n/** Activity enum type */\nexport enum ActivityEnumType {\n Favorite = 'FAVORITE',\n Going = 'GOING',\n Interested = 'INTERESTED',\n Present = 'PRESENT',\n View = 'VIEW'\n}\n\n/** Ad input type */\nexport type AdInputType = {\n active: Scalars['Boolean']['input'];\n end: Scalars['Date']['input'];\n resource: AdResourceInputType;\n showOn: Array<InputMaybe<AdShowOnEnum>>;\n start: Scalars['Date']['input'];\n status: AdStatusTypeEnum;\n targetRegion: Array<InputMaybe<Scalars['String']['input']>>;\n};\n\n/** Ad resource input type */\nexport type AdResourceInputType = {\n adDescription: Scalars['String']['input'];\n adImage: Scalars['String']['input'];\n adStyle: AdStyleEnum;\n adTitle: Scalars['String']['input'];\n adType: AdTypeEnum;\n resourceId: Scalars['String']['input'];\n resourceName: Scalars['String']['input'];\n resourceRegion: Scalars['String']['input'];\n resourceSlug: Scalars['String']['input'];\n resourceType: ResourceTypeEnum;\n};\n\n/** Ad resource type */\nexport type AdResourceType = {\n adDescription: Scalars['String']['output'];\n adImage: Scalars['String']['output'];\n adStyle: AdStyleEnum;\n adTitle: Scalars['String']['output'];\n adType: AdTypeEnum;\n resourceId: Scalars['String']['output'];\n resourceName: Scalars['String']['output'];\n resourceRegion: Scalars['String']['output'];\n resourceSlug: Scalars['String']['output'];\n resourceType: ResourceTypeEnum;\n};\n\n/** Ad show on enum */\nexport enum AdShowOnEnum {\n EventsPage = 'Events_page',\n FrontPage = 'Front_page',\n PartnersPage = 'Partners_page',\n VendorsPage = 'Vendors_page'\n}\n\n/** Ad status type enum */\nexport enum AdStatusTypeEnum {\n Active = 'Active',\n Expired = 'Expired',\n Paused = 'Paused'\n}\n\n/** Ad style enum */\nexport enum AdStyleEnum {\n Bloom = 'Bloom',\n Rise = 'Rise'\n}\n\n/** Ad type */\nexport type AdType = {\n _id: Scalars['ID']['output'];\n active: Scalars['Boolean']['output'];\n clicks?: Maybe<Scalars['Int']['output']>;\n createdAt: Scalars['Date']['output'];\n end: Scalars['Date']['output'];\n impressions?: Maybe<Scalars['Int']['output']>;\n resource: AdResourceType;\n showOn: Array<Maybe<AdShowOnEnum>>;\n start: Scalars['Date']['output'];\n status: AdStatusTypeEnum;\n targetRegion: Array<Maybe<Scalars['String']['output']>>;\n updatedAt: Scalars['Date']['output'];\n};\n\n/** Ad type enum */\nexport enum AdTypeEnum {\n Free = 'Free',\n Sponsored = 'Sponsored'\n}\n\nexport type AddParticipantToChatResponse = {\n data?: Maybe<ChatType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type AddUserFavouriteResourceResponse = {\n data?: Maybe<UserType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type AddUserGoingResourceResponse = {\n data?: Maybe<UserType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type AddUserInterestResourceResponse = {\n data?: Maybe<UserType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type AddUserPresentResourceResponse = {\n data?: Maybe<UserType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type AdminPermanentlyDeleteResourceResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type AdminResendUserVerificationEmailResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type AdminUpdateResourceInputType = {\n active: Scalars['Boolean']['input'];\n resourceId: Scalars['ID']['input'];\n resourceType: ResourceTypeEnum;\n};\n\n/** Admin update resource type */\nexport type AdminUpdateResourceType = {\n active: Scalars['Boolean']['output'];\n resourceId: Scalars['ID']['output'];\n resourceType: ResourceTypeEnum;\n};\n\nexport type AdminUpdateResourceTypeResponse = {\n data?: Maybe<AdminUpdateResourceType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type AffiliateBankAccountDetailsInputType = {\n accountHolderName: Scalars['String']['input'];\n accountNumber: Scalars['String']['input'];\n};\n\n/** Affiliate bank account details type */\nexport type AffiliateBankAccountDetailsType = {\n accountHolderName: Scalars['String']['output'];\n accountNumber: Scalars['String']['output'];\n};\n\nexport type AffiliateContactDetailsInputType = {\n mobilePhone: Scalars['String']['input'];\n};\n\n/** Affiliate contact details type */\nexport type AffiliateContactDetailsType = {\n mobilePhone: Scalars['String']['output'];\n};\n\nexport type AffiliateDetailsInputType = {\n bankAccountDetails: AffiliateBankAccountDetailsInputType;\n contactDetails: AffiliateContactDetailsInputType;\n irdNumber: Scalars['String']['input'];\n location: LocationInputType;\n participantType: AffiliateParticipantTypeEnum;\n socialMedia?: InputMaybe<Array<InputMaybe<SocialMediaInputType>>>;\n termsAgreement: TermsAgreementInputType;\n};\n\n/** Affiliate details type */\nexport type AffiliateDetailsType = {\n bankAccountDetails: AffiliateBankAccountDetailsType;\n contactDetails: AffiliateContactDetailsType;\n email: Scalars['String']['output'];\n firstName: Scalars['String']['output'];\n irdNumber: Scalars['String']['output'];\n lastName: Scalars['String']['output'];\n location: LocationType;\n participantType: AffiliateParticipantTypeEnum;\n socialMedia?: Maybe<Array<SocialMediaType>>;\n termsAgreement: TermsAgreementType;\n};\n\n/** Affiliate participant type enum */\nexport enum AffiliateParticipantTypeEnum {\n Company = 'COMPANY',\n Individual = 'INDIVIDUAL',\n SoleTrader = 'SOLE_TRADER'\n}\n\n/** Affiliate resource type */\nexport type AffiliateResourceType = {\n resourceActive: Scalars['Boolean']['output'];\n resourceDeletedAt?: Maybe<Scalars['Date']['output']>;\n resourceId: Scalars['ID']['output'];\n resourceName: Scalars['String']['output'];\n resourceOwner: OwnerType;\n resourceType: ResourceTypeEnum;\n rewards: Array<AffiliateRewardType>;\n};\n\n/** Affiliate reward type enum */\nexport enum AffiliateRewardEnumType {\n ActiveEventWithVendorRegistrations = 'ACTIVE_EVENT_WITH_VENDOR_REGISTRATIONS',\n ActiveVendorBonusReward = 'ACTIVE_VENDOR_BONUS_REWARD',\n ActiveVendorProSubscription = 'ACTIVE_VENDOR_PRO_SUBSCRIPTION',\n ActiveVendorStandardSubscription = 'ACTIVE_VENDOR_STANDARD_SUBSCRIPTION',\n NewEventRegistration = 'NEW_EVENT_REGISTRATION',\n NewVendorRegistration = 'NEW_VENDOR_REGISTRATION'\n}\n\n/** Affiliate reward type */\nexport type AffiliateRewardType = {\n createdAt: Scalars['Date']['output'];\n redeemedAt?: Maybe<Scalars['Date']['output']>;\n rewardDescription: Scalars['String']['output'];\n rewardType: AffiliateRewardEnumType;\n rewardValue: Scalars['Int']['output'];\n};\n\n/** Affiliate type */\nexport type AffiliateType = {\n _id: Scalars['ID']['output'];\n active: Scalars['Boolean']['output'];\n affiliateBonusRewards: Array<AffiliateRewardType>;\n affiliateCode?: Maybe<Scalars['String']['output']>;\n affiliateDetails?: Maybe<AffiliateDetailsType>;\n affiliateResources: Array<AffiliateResourceType>;\n approvedAt?: Maybe<Scalars['Date']['output']>;\n createdAt: Scalars['Date']['output'];\n deletedAt?: Maybe<Scalars['Date']['output']>;\n overallPoints: Scalars['Int']['output'];\n owner: OwnerType;\n redeemHistory: Array<RedeemHistoryType>;\n updatedAt?: Maybe<Scalars['Date']['output']>;\n};\n\nexport type AppSettingsInputType = {\n appVersion: Scalars['String']['input'];\n isOfflineMode: Scalars['Boolean']['input'];\n minimumRedeemableAffiliatePoints: Scalars['Int']['input'];\n};\n\n/** App settings type */\nexport type AppSettingsType = {\n _id: Scalars['String']['output'];\n appVersion: Scalars['String']['output'];\n createdAt: Scalars['Date']['output'];\n isOfflineMode: Scalars['Boolean']['output'];\n key: Scalars['String']['output'];\n minimumRedeemableAffiliatePoints: Scalars['Int']['output'];\n updatedAt: Scalars['Date']['output'];\n};\n\nexport type AssignAffiliateBonusRewardResponse = {\n data?: Maybe<AffiliateType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type AssignAffiliateResourceRewardResponse = {\n data?: Maybe<AffiliateType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\n/** Auth Payload Type */\nexport type AuthPayloadType = {\n refreshToken?: Maybe<Scalars['String']['output']>;\n token: Scalars['String']['output'];\n user: UserType;\n};\n\n/** Base game input type */\nexport type BaseGameInputType = {\n dailyClue?: InputMaybe<DailyClueBaseGameInputType>;\n gameTitle: Scalars['String']['input'];\n gameType: GameTypeEnumType;\n gameTypeId: Scalars['ID']['input'];\n miniQuiz?: InputMaybe<PuzzleBaseGameInputType>;\n oddOneOut?: InputMaybe<PuzzleBaseGameInputType>;\n};\n\n/** Base game type */\nexport type BaseGameType = {\n dailyClue?: Maybe<DailyClueBaseGameType>;\n gameTitle: Scalars['String']['output'];\n gameType: GameTypeEnumType;\n gameTypeId: Scalars['ID']['output'];\n miniQuiz?: Maybe<PuzzleBaseGameType>;\n oddOneOut?: Maybe<PuzzleBaseGameType>;\n};\n\n/** Billing period enum type */\nexport enum BillingPeriodEnumType {\n MonthlyCancelAnytime = 'monthly_cancel_anytime',\n YearlyAnnualBilled = 'yearly_annual_billed',\n YearlyMonthlyBilled = 'yearly_monthly_billed'\n}\n\nexport type CancelSubscriptionResponse = {\n data?: Maybe<Scalars['String']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\n/** Category input type */\nexport type CategoryInputType = {\n id: Scalars['String']['input'];\n name: Scalars['String']['input'];\n subcategories: Array<InputMaybe<SubcategoryInputType>>;\n};\n\n/** Category type */\nexport type CategoryType = {\n id: Scalars['String']['output'];\n name: Scalars['String']['output'];\n subcategories?: Maybe<Array<SubcategoryType>>;\n};\n\n/** Message input type */\nexport type ChatMessageInputType = {\n content: Scalars['String']['input'];\n replyToMessageId?: InputMaybe<Scalars['String']['input']>;\n senderId: Scalars['String']['input'];\n};\n\n/** Chat message reaction */\nexport type ChatMessageReactionType = {\n createdAt: Scalars['Date']['output'];\n userId: Scalars['String']['output'];\n};\n\n/** Chat message reply preview */\nexport type ChatMessageReplyPreviewType = {\n contentPreview: Scalars['String']['output'];\n senderId: Scalars['String']['output'];\n senderName: Scalars['String']['output'];\n};\n\n/** Chat message seen status */\nexport type ChatMessageSeenType = {\n seenAt: Scalars['Date']['output'];\n userId: Scalars['String']['output'];\n};\n\n/** Chat message type */\nexport type ChatMessageType = {\n _id: Scalars['ID']['output'];\n content: Scalars['String']['output'];\n createdAt: Scalars['Date']['output'];\n likedBy?: Maybe<Array<Maybe<ChatMessageReactionType>>>;\n replyPreview?: Maybe<ChatMessageReplyPreviewType>;\n replyToMessageId?: Maybe<Scalars['ID']['output']>;\n seenBy?: Maybe<Array<Maybe<ChatMessageSeenType>>>;\n senderId: Scalars['String']['output'];\n updatedAt: Scalars['Date']['output'];\n};\n\n/** Participant type */\nexport type ChatParticipantType = {\n active: Scalars['Boolean']['output'];\n userAvatar?: Maybe<Scalars['String']['output']>;\n userEmail: Scalars['String']['output'];\n userId: Scalars['String']['output'];\n userName: Scalars['String']['output'];\n};\n\n/** Chat report reason enum */\nexport enum ChatReportReasonEnum {\n HarassmentOrBullying = 'Harassment_or_Bullying',\n HateSpeech = 'Hate_Speech',\n InappropriateContent = 'Inappropriate_Content',\n Other = 'Other',\n SpamOrScam = 'Spam_or_Scam',\n ViolenceOrDangerousBehavior = 'Violence_or_Dangerous_Behavior'\n}\n\n/** Chat type */\nexport type ChatType = {\n _id: Scalars['ID']['output'];\n active: Scalars['Boolean']['output'];\n chatDescription?: Maybe<Scalars['String']['output']>;\n chatName: Scalars['String']['output'];\n chatType: ChatTypeEnum;\n createdAt: Scalars['Date']['output'];\n deletedAt?: Maybe<Scalars['Date']['output']>;\n /** List of messages in the chat */\n messages?: Maybe<Array<Maybe<ChatMessageType>>>;\n /** List of participants in the chat */\n participants: Array<Maybe<ChatParticipantType>>;\n region?: Maybe<Scalars['String']['output']>;\n updatedAt: Scalars['Date']['output'];\n};\n\n/** Chat type enum */\nexport enum ChatTypeEnum {\n Group = 'group',\n Private = 'private',\n Relation = 'relation'\n}\n\n/** Stripe Checkout Session result */\nexport type CheckoutSessionResultType = {\n checkoutUrl: Scalars['String']['output'];\n sessionId: Scalars['ID']['output'];\n};\n\n/** Contact details input type */\nexport type ContactDetailsInputType = {\n email?: InputMaybe<Scalars['String']['input']>;\n landlinePhone?: InputMaybe<Scalars['String']['input']>;\n mobilePhone?: InputMaybe<Scalars['String']['input']>;\n};\n\n/** Contact details type */\nexport type ContactDetailsType = {\n email?: Maybe<Scalars['String']['output']>;\n landlinePhone?: Maybe<Scalars['String']['output']>;\n mobilePhone?: Maybe<Scalars['String']['output']>;\n};\n\n/** Contact us input type */\nexport type ContactUsInputType = {\n email: Scalars['String']['input'];\n firstName: Scalars['String']['input'];\n lastName: Scalars['String']['input'];\n message: Scalars['String']['input'];\n};\n\nexport type ContactUsResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\n/** Content data input type */\nexport type ContentDataInputType = {\n game?: InputMaybe<BaseGameInputType>;\n images?: InputMaybe<Array<InputMaybe<ResourceImageInputType>>>;\n imagesUpload?: InputMaybe<Array<InputMaybe<ResourceImageUploadInputType>>>;\n list?: InputMaybe<ListContentDataInputType>;\n textarea?: InputMaybe<TextareaContentDataInputType>;\n video?: InputMaybe<VideoContentDataInputType>;\n};\n\nexport type CrawlGoogleMarketsResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type CreateAdResponse = {\n data?: Maybe<AdType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\n/** Input for creating multiple notifications for multiple users */\nexport type CreateBulkNotificationInput = {\n data?: InputMaybe<NotificationDataTypeInput>;\n message: Scalars['String']['input'];\n title: Scalars['String']['input'];\n type?: InputMaybe<NotificationEnumType>;\n userIds: Array<Scalars['ID']['input']>;\n};\n\nexport type CreateBulkNotificationsResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type CreateCheckoutSessionResponse = {\n data?: Maybe<CheckoutSessionResultType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type CreateCustomerPortalResponse = {\n data?: Maybe<CustomerPortalResultType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type CreateEventInfoResponse = {\n data?: Maybe<EventInfoType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type CreateEventResponse = {\n data?: Maybe<EventType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type CreatePartnerResponse = {\n data?: Maybe<PartnerType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type CreatePostResponse = {\n data?: Maybe<PostType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type CreatePosterResponse = {\n data?: Maybe<PosterType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type CreatePrivateChatResponse = {\n data?: Maybe<ChatType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type CreatePushTokenResponse = {\n data?: Maybe<PushTokenType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type CreateRelationResponse = {\n data?: Maybe<RelationType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type CreateResourceActivityResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type CreateSchoolResponse = {\n data?: Maybe<SchoolType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type CreateUnregisteredVendorResponse = {\n data?: Maybe<UnregisteredVendorType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type CreateVendorInfoResponse = {\n data?: Maybe<VendorInfoType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type CreateVendorResponse = {\n data?: Maybe<VendorType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\n/** Stripe Customer Portal result */\nexport type CustomerPortalResultType = {\n portalUrl: Scalars['String']['output'];\n};\n\n/** Daily clue base game input type */\nexport type DailyClueBaseGameInputType = {\n gameDate: GameDateInputType;\n gameSolution: Scalars['String']['input'];\n};\n\nexport type DailyClueBaseGameType = {\n gameDate: GameDateType;\n gameSolution: Scalars['String']['output'];\n};\n\n/** Daily clue game data type */\nexport type DailyClueGameDataType = {\n gameFields?: Maybe<DailyClueBaseGameType>;\n lastFoundDate?: Maybe<Scalars['Date']['output']>;\n letterInfo: DailyClueLetterType;\n points: Scalars['Int']['output'];\n streak: Scalars['Int']['output'];\n};\n\n/** Daily clue letter type */\nexport type DailyClueLetterType = {\n collected?: Maybe<Array<Maybe<Scalars['String']['output']>>>;\n solutionShuffled: Array<Maybe<Scalars['String']['output']>>;\n todaysClue?: Maybe<Scalars['String']['output']>;\n todaysLetter?: Maybe<Scalars['String']['output']>;\n todaysPlacement?: Maybe<Scalars['String']['output']>;\n};\n\n/** Date time input type */\nexport type DateTimeInputType = {\n dateStatus: EventDateStatusEnumType;\n endDate: Scalars['String']['input'];\n endTime: Scalars['String']['input'];\n startDate: Scalars['String']['input'];\n startTime: Scalars['String']['input'];\n};\n\n/** Date time type */\nexport type DateTimeType = {\n dateStatus: EventDateStatusEnumType;\n endDate: Scalars['String']['output'];\n endTime: Scalars['String']['output'];\n startDate: Scalars['String']['output'];\n startTime: Scalars['String']['output'];\n};\n\n/** Date time with price input type */\nexport type DateTimeWithPriceInputType = {\n dateStatus: EventDateStatusEnumType;\n endDate: Scalars['String']['input'];\n endTime: Scalars['String']['input'];\n stallTypes?: InputMaybe<Array<InputMaybe<StallTypeInputType>>>;\n startDate: Scalars['String']['input'];\n startTime: Scalars['String']['input'];\n};\n\nexport type DeleteAdResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type DeleteAffiliateResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type DeleteAllNotificationsResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type DeleteChatResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type DeleteEventResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type DeleteNotificationResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type DeletePartnerResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type DeletePostResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type DeleteRelationResponse = {\n data?: Maybe<RelationType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type DeleteSchoolResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type DeleteUnregisteredVendorResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type DeleteUserResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type DeleteVendorResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\n/** Depth width type */\nexport type DepthWidthType = {\n depth: Scalars['String']['output'];\n width: Scalars['String']['output'];\n};\n\n/** Event date status enum type */\nexport enum EventDateStatusEnumType {\n Canceled = 'Canceled',\n Ended = 'Ended',\n Invalid = 'Invalid',\n NextWeek = 'Next_Week',\n Rescheduled = 'Rescheduled',\n Started = 'Started',\n StartingSoon = 'Starting_Soon',\n ThisWeek = 'This_Week',\n Today = 'Today',\n Tomorrow = 'Tomorrow',\n Upcoming = 'Upcoming'\n}\n\n/** Event Date time with price type */\nexport type EventDateTimeWithPriceType = {\n dateStatus: EventDateStatusEnumType;\n endDate: Scalars['String']['output'];\n endTime: Scalars['String']['output'];\n stallTypes: Array<StallTypeType>;\n startDate: Scalars['String']['output'];\n startTime: Scalars['String']['output'];\n};\n\n/** Event type enum */\nexport enum EventEnumType {\n Expo = 'Expo',\n Fair = 'Fair',\n Festival = 'Festival',\n Market = 'Market'\n}\n\n/** Event info input type */\nexport type EventInfoInputType = {\n applicationDeadlineHours: Scalars['Float']['input'];\n dateTime: Array<InputMaybe<DateTimeWithPriceInputType>>;\n eventId: Scalars['ID']['input'];\n packInTime: Scalars['Float']['input'];\n paymentDueHours: Scalars['Float']['input'];\n paymentInfo: Array<InputMaybe<PaymentInfoInputType>>;\n refundPolicy: Array<InputMaybe<RefundPolicyInputType>>;\n requirements?: InputMaybe<Array<InputMaybe<RequirementInputType>>>;\n};\n\n/** Event info type */\nexport type EventInfoType = {\n _id: Scalars['ID']['output'];\n active: Scalars['Boolean']['output'];\n applicationDeadlineHours: Scalars['Float']['output'];\n dateTime: Array<EventDateTimeWithPriceType>;\n eventId: Scalars['ID']['output'];\n packInTime: Scalars['Float']['output'];\n paymentDueHours: Scalars['Float']['output'];\n paymentInfo: Array<PaymentInfoType>;\n refundPolicy: Array<RefundPolicyType>;\n requirements?: Maybe<Array<RequirementType>>;\n};\n\n/** Event input type */\nexport type EventInputType = {\n active: Scalars['Boolean']['input'];\n claimed?: InputMaybe<Scalars['Boolean']['input']>;\n contactDetails?: InputMaybe<ContactDetailsInputType>;\n cover: ResourceImageInputType;\n coverUpload?: InputMaybe<ResourceImageUploadInputType>;\n dateTime: Array<InputMaybe<DateTimeInputType>>;\n description: Scalars['String']['input'];\n eventType: EventEnumType;\n googlePlaceId?: InputMaybe<Scalars['String']['input']>;\n images?: InputMaybe<Array<InputMaybe<ResourceImageInputType>>>;\n imagesUpload?: InputMaybe<Array<InputMaybe<ResourceImageUploadInputType>>>;\n location: LocationInputType;\n logo?: InputMaybe<ResourceImageInputType>;\n logoUpload?: InputMaybe<ResourceImageUploadInputType>;\n name: Scalars['String']['input'];\n nzbn: Scalars['String']['input'];\n promoCodes?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;\n provider?: InputMaybe<Scalars['String']['input']>;\n rainOrShine: Scalars['Boolean']['input'];\n region: Scalars['String']['input'];\n socialMedia?: InputMaybe<Array<InputMaybe<SocialMediaInputType>>>;\n tags: Array<InputMaybe<Scalars['String']['input']>>;\n termsAgreement: TermsAgreementInputType;\n};\n\n/** Event list item type */\nexport type EventListItemType = {\n _id: Scalars['ID']['output'];\n active: Scalars['Boolean']['output'];\n approvedAt?: Maybe<Scalars['Date']['output']>;\n claimed: Scalars['Boolean']['output'];\n cover?: Maybe<ResourceImageType>;\n createdAt: Scalars['Date']['output'];\n dateTime: Array<DateTimeType>;\n deletedAt?: Maybe<Scalars['Date']['output']>;\n description?: Maybe<Scalars['String']['output']>;\n eventType: EventEnumType;\n googlePlaceId?: Maybe<Scalars['String']['output']>;\n images?: Maybe<Array<ResourceImageType>>;\n location: LocationType;\n logo?: Maybe<ResourceImageType>;\n name: Scalars['String']['output'];\n rainOrShine: Scalars['Boolean']['output'];\n rating?: Maybe<Scalars['Float']['output']>;\n region: Scalars['String']['output'];\n relations?: Maybe<Array<ResourceRelationType>>;\n reviewCount?: Maybe<Scalars['Int']['output']>;\n slug: Scalars['String']['output'];\n updatedAt: Scalars['Date']['output'];\n};\n\n/** Reference to an event with ID and start date */\nexport type EventReferenceType = {\n dateTime: DateTimeType;\n resourceId: Scalars['ID']['output'];\n};\n\n/** Event type */\nexport type EventType = {\n _id: Scalars['ID']['output'];\n active: Scalars['Boolean']['output'];\n adIds?: Maybe<Array<Maybe<Scalars['ID']['output']>>>;\n approvedAt?: Maybe<Scalars['Date']['output']>;\n claimed: Scalars['Boolean']['output'];\n contactDetails?: Maybe<ContactDetailsType>;\n cover: ResourceImageType;\n createdAt: Scalars['Date']['output'];\n dateTime: Array<DateTimeType>;\n deletedAt?: Maybe<Scalars['Date']['output']>;\n description: Scalars['String']['output'];\n eventInfoId?: Maybe<Scalars['ID']['output']>;\n eventType: EventEnumType;\n googlePlaceId?: Maybe<Scalars['String']['output']>;\n images?: Maybe<Array<ResourceImageType>>;\n location: LocationType;\n logo?: Maybe<ResourceImageType>;\n name: Scalars['String']['output'];\n nzbn: Scalars['String']['output'];\n owner: OwnerType;\n posterUsage?: Maybe<PosterUsageType>;\n promoCodes?: Maybe<Array<Scalars['String']['output']>>;\n provider?: Maybe<Scalars['String']['output']>;\n rainOrShine: Scalars['Boolean']['output'];\n rating?: Maybe<Scalars['Float']['output']>;\n region: Scalars['String']['output'];\n relatedPost?: Maybe<RelatedPostType>;\n relations?: Maybe<Array<ResourceRelationType>>;\n reviewCount?: Maybe<Scalars['Int']['output']>;\n sharePublic?: Maybe<SocialShareResourceType>;\n shareRelation?: Maybe<SocialShareResourceType>;\n slug: Scalars['String']['output'];\n socialMedia?: Maybe<Array<SocialMediaType>>;\n tags: Array<Scalars['String']['output']>;\n termsAgreement?: Maybe<TermsAgreementType>;\n updatedAt: Scalars['Date']['output'];\n};\n\n/** Food flavor enum */\nexport enum FoodFlavorEnumType {\n NotApplicable = 'Not_Applicable',\n Salty = 'Salty',\n Savoury = 'Savoury',\n Spicy = 'Spicy',\n Sweet = 'Sweet'\n}\n\n/** Game data type */\nexport type GameDataType = {\n dailyClue?: Maybe<DailyClueGameDataType>;\n miniQuiz?: Maybe<PuzzleGameDataType>;\n oddOneOut?: Maybe<PuzzleGameDataType>;\n};\n\nexport type GameDateInputType = {\n endDate: Scalars['Date']['input'];\n startDate: Scalars['Date']['input'];\n};\n\nexport type GameDateType = {\n endDate: Scalars['Date']['output'];\n startDate: Scalars['Date']['output'];\n};\n\n/** Game document type */\nexport type GameDocType = {\n _id: Scalars['ID']['output'];\n active: Scalars['Boolean']['output'];\n createdAt: Scalars['Date']['output'];\n deletedAt?: Maybe<Scalars['Date']['output']>;\n games?: Maybe<Array<Maybe<GameType>>>;\n owner: OwnerType;\n points: Scalars['Int']['output'];\n updatedAt: Scalars['Date']['output'];\n};\n\n/** Game history type */\nexport type GameHistoryType = {\n createdAt: Scalars['Date']['output'];\n gameDate: GameDateType;\n gameStatus: GameStatusEnumType;\n gameTitle: Scalars['String']['output'];\n gameType: GameTypeEnumType;\n gameTypeId: Scalars['String']['output'];\n overallGamePoints: Scalars['Int']['output'];\n pointsEarned: Scalars['Int']['output'];\n};\n\n/** Game leaderboard type */\nexport type GameLeaderboardType = {\n gameHistory?: Maybe<Array<Maybe<GameHistoryType>>>;\n overallPoints: Scalars['Int']['output'];\n owner: OwnerType;\n};\n\n/** Game status enum */\nexport enum GameStatusEnumType {\n GameCompleted = 'GAME_COMPLETED',\n GameInProgress = 'GAME_IN_PROGRESS',\n GameLeft = 'GAME_LEFT',\n GameStarted = 'GAME_STARTED'\n}\n\n/** Game entry type */\nexport type GameType = {\n _id: Scalars['ID']['output'];\n active: Scalars['Boolean']['output'];\n createdAt: Scalars['Date']['output'];\n gameData?: Maybe<GameDataType>;\n gameHistory?: Maybe<Array<Maybe<GameHistoryType>>>;\n gameTitle: Scalars['String']['output'];\n gameType: GameTypeEnumType;\n gameTypeId: Scalars['ID']['output'];\n updatedAt: Scalars['Date']['output'];\n};\n\n/** Game type enum */\nexport enum GameTypeEnumType {\n DailyClue = 'dailyClue',\n MiniQuiz = 'miniQuiz',\n OddOneOut = 'oddOneOut'\n}\n\n/** Invite enum */\nexport enum InviteEnumType {\n Accepted = 'Accepted',\n Completed = 'Completed',\n Expired = 'Expired',\n NoStatus = 'No_Status',\n Pending = 'Pending',\n Rejected = 'Rejected',\n Unavailable = 'Unavailable'\n}\n\nexport type LastUpdateByInputType = {\n resourceId: Scalars['String']['input'];\n userEmail: Scalars['String']['input'];\n};\n\nexport type LastUpdateByType = {\n resourceId?: Maybe<Scalars['String']['output']>;\n userEmail?: Maybe<Scalars['String']['output']>;\n};\n\nexport type LeaveGameResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\n/** Licences enum */\nexport enum LicencesEnumType {\n ProEvent = 'pro_event',\n ProPlusEvent = 'pro_plus_event',\n ProPlusVendor = 'pro_plus_vendor',\n ProVendor = 'pro_vendor',\n StandardAffiliate = 'standard_affiliate',\n StandardEvent = 'standard_event',\n StandardPartner = 'standard_partner',\n StandardSchool = 'standard_school',\n StandardVendor = 'standard_vendor'\n}\n\n/** List content data input type */\nexport type ListContentDataInputType = {\n items: Array<InputMaybe<ListItemInputType>>;\n title?: InputMaybe<Scalars['String']['input']>;\n};\n\n/** List content data type */\nexport type ListContentDataType = {\n items: Array<Maybe<ListItemType>>;\n title?: Maybe<Scalars['String']['output']>;\n};\n\n/** List item input type */\nexport type ListItemInputType = {\n text: Scalars['String']['input'];\n};\n\n/** List item type */\nexport type ListItemType = {\n text: Scalars['String']['output'];\n};\n\n/** Location geo input type */\nexport type LocationGeoInputType = {\n coordinates: Array<Scalars['Float']['input']>;\n type?: Scalars['String']['input'];\n};\n\n/** Location geo type */\nexport type LocationGeoType = {\n coordinates: Array<Scalars['Float']['output']>;\n type: Scalars['String']['output'];\n};\n\n/** Location input type */\nexport type LocationInputType = {\n city: Scalars['String']['input'];\n country: Scalars['String']['input'];\n fullAddress: Scalars['String']['input'];\n geo: LocationGeoInputType;\n latitude: Scalars['Float']['input'];\n longitude: Scalars['Float']['input'];\n region: Scalars['String']['input'];\n};\n\n/** Location type */\nexport type LocationType = {\n city: Scalars['String']['output'];\n country: Scalars['String']['output'];\n fullAddress: Scalars['String']['output'];\n geo: LocationGeoType;\n latitude: Scalars['Float']['output'];\n longitude: Scalars['Float']['output'];\n region: Scalars['String']['output'];\n};\n\n/** Login input type */\nexport type LoginInputType = {\n email: Scalars['String']['input'];\n isAdminPage?: InputMaybe<Scalars['Boolean']['input']>;\n password: Scalars['String']['input'];\n platform?: InputMaybe<OsPlatformEnumType>;\n};\n\nexport type LoginResponse = {\n data?: Maybe<AuthPayloadType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type LogoutResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type MarkAllNotificationsReadResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type MarkChatMessagesSeenResponse = {\n data?: Maybe<ChatType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type MarkNotificationReadResponse = {\n data?: Maybe<Notification>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\n/** Marketing material request input type */\nexport type MarketingMaterialRequestInputType = {\n posterName: Scalars['PosterAssetId']['input'];\n resourceId: Scalars['String']['input'];\n};\n\nexport type MarketingMaterialRequestResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\n/** Max min type */\nexport type MaxMinType = {\n max: Scalars['String']['output'];\n min: Scalars['String']['output'];\n};\n\nexport type Mutation = {\n /** Add participant to an existing chat */\n addParticipantToChat?: Maybe<AddParticipantToChatResponse>;\n /** Add a user favourite resource */\n addUserFavouriteResource?: Maybe<AddUserFavouriteResourceResponse>;\n /** Add a user going resource */\n addUserGoingResource?: Maybe<AddUserGoingResourceResponse>;\n /** Add a user interest resource */\n addUserInterestResource?: Maybe<AddUserInterestResourceResponse>;\n /** Add a user present resource */\n addUserPresentResource?: Maybe<AddUserPresentResourceResponse>;\n /** Permanently delete a resource */\n adminPermanentlyDeleteResource?: Maybe<AdminPermanentlyDeleteResourceResponse>;\n /** Resend user verification email */\n adminResendUserVerificationEmail?: Maybe<AdminResendUserVerificationEmailResponse>;\n /** Admin update resource type */\n adminUpdateResourceType?: Maybe<AdminUpdateResourceTypeResponse>;\n /** Assign a bonus reward to an affiliate (super admin) */\n assignAffiliateBonusReward?: Maybe<AssignAffiliateBonusRewardResponse>;\n /** Assign a reward to an existing affiliate resource (super admin) */\n assignAffiliateResourceReward?: Maybe<AssignAffiliateResourceRewardResponse>;\n /** Cancel the current user's subscription */\n cancelSubscription?: Maybe<CancelSubscriptionResponse>;\n /** Send a message through the contact us form */\n contactUs?: Maybe<ContactUsResponse>;\n /** Crawl Markets from Google */\n crawlGoogleMarkets?: Maybe<CrawlGoogleMarketsResponse>;\n /** Create a new ad */\n createAd?: Maybe<CreateAdResponse>;\n /** Creates multiple notifications */\n createBulkNotifications?: Maybe<CreateBulkNotificationsResponse>;\n /** Create a Stripe checkout session for subscription. Monthly available for Standard/Pro only. Yearly available for Standard/Pro/ProPlus. Defaults to monthly cancel-anytime if not specified. */\n createCheckoutSession?: Maybe<CreateCheckoutSessionResponse>;\n /** Create a Stripe Customer Portal session. Allows customers to manage their subscription, payment methods, and billing history. */\n createCustomerPortal?: Maybe<CreateCustomerPortalResponse>;\n /** Create a new event */\n createEvent?: Maybe<CreateEventResponse>;\n /** Create a new event info */\n createEventInfo?: Maybe<CreateEventInfoResponse>;\n /** Create a new partner */\n createPartner?: Maybe<CreatePartnerResponse>;\n /** Create a new post */\n createPost?: Maybe<CreatePostResponse>;\n /** Create a poster for a event or vendor */\n createPoster?: Maybe<CreatePosterResponse>;\n /** Create a private chat with another user */\n createPrivateChat?: Maybe<CreatePrivateChatResponse>;\n /** Create a push token for push notifications */\n createPushToken?: Maybe<CreatePushTokenResponse>;\n /** Create relation */\n createRelation?: Maybe<CreateRelationResponse>;\n /** Create or update resource activity */\n createResourceActivity?: Maybe<CreateResourceActivityResponse>;\n /** Create a new school */\n createSchool?: Maybe<CreateSchoolResponse>;\n /** Create a new unregistered vendor */\n createUnregisteredVendor?: Maybe<CreateUnregisteredVendorResponse>;\n /** Create a new vendor */\n createVendor?: Maybe<CreateVendorResponse>;\n /** Create a new vendor info */\n createVendorInfo?: Maybe<CreateVendorInfoResponse>;\n /** Delete an ad */\n deleteAd?: Maybe<DeleteAdResponse>;\n /** Delete an affiliate */\n deleteAffiliate?: Maybe<DeleteAffiliateResponse>;\n /** Deletes all notifications */\n deleteAllNotifications?: Maybe<DeleteAllNotificationsResponse>;\n /** Delete a chat by ID */\n deleteChat?: Maybe<DeleteChatResponse>;\n /** Delete an event */\n deleteEvent?: Maybe<DeleteEventResponse>;\n /** Deletes a notification */\n deleteNotification?: Maybe<DeleteNotificationResponse>;\n /** Delete a partner */\n deletePartner?: Maybe<DeletePartnerResponse>;\n /** Delete a post */\n deletePost?: Maybe<DeletePostResponse>;\n /** Delete relation */\n deleteRelation?: Maybe<DeleteRelationResponse>;\n /** Delete a school */\n deleteSchool?: Maybe<DeleteSchoolResponse>;\n /** Delete an unregistered vendor */\n deleteUnregisteredVendor?: Maybe<DeleteUnregisteredVendorResponse>;\n /** Delete a user */\n deleteUser?: Maybe<DeleteUserResponse>;\n /** Delete a vendor */\n deleteVendor?: Maybe<DeleteVendorResponse>;\n /** Leave an active game */\n leaveGame?: Maybe<LeaveGameResponse>;\n /** Login mutation */\n login?: Maybe<LoginResponse>;\n /** Logout mutation */\n logout?: Maybe<LogoutResponse>;\n /** Marks all notifications as read */\n markAllNotificationsRead?: Maybe<MarkAllNotificationsReadResponse>;\n /** Mark messages as seen */\n markChatMessagesSeen?: Maybe<MarkChatMessagesSeenResponse>;\n /** Marks a notification as read */\n markNotificationRead?: Maybe<MarkNotificationReadResponse>;\n /** Redeem available affiliate reward points */\n redeemAffiliateReward?: Maybe<RedeemAffiliateRewardResponse>;\n /** Redeem a reward */\n redeemReward?: Maybe<RedeemRewardResponse>;\n /** Refresh token mutation */\n refreshToken?: Maybe<RefreshTokenResponse>;\n /** Register mutation */\n register?: Maybe<RegisterResponse>;\n /** Remove a participant from a chat */\n removeParticipantFromChat?: Maybe<RemoveParticipantFromChatResponse>;\n /** Remove a user favourite resource */\n removeUserFavouriteResource?: Maybe<RemoveUserFavouriteResourceResponse>;\n /** Remove a user going resource */\n removeUserGoingResource?: Maybe<RemoveUserGoingResourceResponse>;\n /** Remove a user interest resource */\n removeUserInterestResource?: Maybe<RemoveUserInterestResourceResponse>;\n /** Remove a user present resource */\n removeUserPresentResource?: Maybe<RemoveUserPresentResourceResponse>;\n /** Report a user in a chat */\n reportChatUser?: Maybe<ReportChatUserResponse>;\n /** Request marketing material for a school */\n requestMarketingMaterial?: Maybe<MarketingMaterialRequestResponse>;\n /** Request password reset mutation */\n requestPasswordReset?: Maybe<RequestPasswordResetResponse>;\n /** Reset password mutation */\n resetPassword?: Maybe<ResetPasswordResponse>;\n /** Select a standard package for a user (local licence) */\n selectStandardPackage?: Maybe<SelectStandardPackageResponse>;\n /** Send a message in a chat */\n sendChatMessage?: Maybe<SendChatMessageResponse>;\n /** Start a new game */\n startGame?: Maybe<StartGameResponse>;\n /** Toggle a message like */\n toggleChatMessageLike?: Maybe<ToggleChatMessageLikeResponse>;\n /** Unlink an unregistered vendor from an inviter by removing the corresponding invitation */\n unlinkUnregisteredVendorByInviterId?: Maybe<UnlinkUnregisteredVendorByInviterIdResponse>;\n /** Update an ad */\n updateAd?: Maybe<UpdateAdResponse>;\n /** Update affiliate profile details */\n updateAffiliateDetails?: Maybe<UpdateAffiliateDetailsResponse>;\n /** Update application settings */\n updateAppSettings?: Maybe<UpdateAppSettingsResponse>;\n /** Update the daily clue game with a found letter */\n updateDailyClueGame?: Maybe<UpdateDailyClueGameResponse>;\n /** Update an event */\n updateEvent?: Maybe<UpdateEventResponse>;\n /** Update event info */\n updateEventInfo?: Maybe<UpdateEventInfoResponse>;\n /** Update Google imported markets */\n updateGoogleImportedMarkets?: Maybe<UpdateGoogleImportedMarketsResponse>;\n /** Update a partner */\n updatePartner?: Maybe<UpdatePartnerResponse>;\n /** Update a post */\n updatePost?: Maybe<UpdatePostResponse>;\n /** Update the puzzle game with answered questions */\n updatePuzzleGame?: Maybe<UpdatePuzzleGameResponse>;\n /** Update status for relation */\n updateRelation?: Maybe<UpdateRelationResponse>;\n /** Update a school */\n updateSchool?: Maybe<UpdateSchoolResponse>;\n /** Update user subscription to a different plan and/or billing period. Monthly available for Standard/Pro only. Yearly available for Standard/Pro/ProPlus. Defaults to monthly cancel-anytime if not specified. */\n updateSubscriptionPlan?: Maybe<UpdateSubscriptionPlanResponse>;\n /** Update an unregistered vendor */\n updateUnregisteredVendor?: Maybe<UpdateUnregisteredVendorResponse>;\n /** Update a user */\n updateUser?: Maybe<UpdateUserResponse>;\n /** Update a vendor */\n updateVendor?: Maybe<UpdateVendorResponse>;\n /** Update a vendor info */\n updateVendorInfo?: Maybe<UpdateVendorInfoResponse>;\n /** Validate verification token mutation */\n validateVerificationToken?: Maybe<ValidateVerificationTokenResponse>;\n};\n\n\nexport type MutationAddParticipantToChatArgs = {\n chatId: Scalars['ID']['input'];\n userId: Scalars['ID']['input'];\n};\n\n\nexport type MutationAddUserFavouriteResourceArgs = {\n resourceId: Scalars['ID']['input'];\n resourceType: ResourceTypeEnum;\n};\n\n\nexport type MutationAddUserGoingResourceArgs = {\n input: UserActivityInputType;\n};\n\n\nexport type MutationAddUserInterestResourceArgs = {\n input: UserActivityInputType;\n};\n\n\nexport type MutationAddUserPresentResourceArgs = {\n input: UserActivityInputType;\n};\n\n\nexport type MutationAdminPermanentlyDeleteResourceArgs = {\n resourceId: Scalars['ID']['input'];\n resourceType: ResourceTypeEnum;\n};\n\n\nexport type MutationAdminResendUserVerificationEmailArgs = {\n userId: Scalars['ID']['input'];\n};\n\n\nexport type MutationAdminUpdateResourceTypeArgs = {\n input: AdminUpdateResourceInputType;\n};\n\n\nexport type MutationAssignAffiliateBonusRewardArgs = {\n affiliateId: Scalars['ID']['input'];\n rewardType: AffiliateRewardEnumType;\n};\n\n\nexport type MutationAssignAffiliateResourceRewardArgs = {\n affiliateId: Scalars['ID']['input'];\n resourceId: Scalars['ID']['input'];\n resourceType: ResourceTypeEnum;\n rewardType: AffiliateRewardEnumType;\n};\n\n\nexport type MutationContactUsArgs = {\n input: ContactUsInputType;\n};\n\n\nexport type MutationCreateAdArgs = {\n input: AdInputType;\n};\n\n\nexport type MutationCreateBulkNotificationsArgs = {\n input: CreateBulkNotificationInput;\n};\n\n\nexport type MutationCreateCheckoutSessionArgs = {\n billingPeriod?: InputMaybe<BillingPeriodEnumType>;\n planId: LicencesEnumType;\n};\n\n\nexport type MutationCreateCustomerPortalArgs = {\n returnUrl?: InputMaybe<Scalars['String']['input']>;\n};\n\n\nexport type MutationCreateEventArgs = {\n input: EventInputType;\n};\n\n\nexport type MutationCreateEventInfoArgs = {\n input: EventInfoInputType;\n};\n\n\nexport type MutationCreatePartnerArgs = {\n input: PartnerInputType;\n};\n\n\nexport type MutationCreatePostArgs = {\n input: PostInputType;\n};\n\n\nexport type MutationCreatePosterArgs = {\n input: PosterInputType;\n};\n\n\nexport type MutationCreatePrivateChatArgs = {\n userId: Scalars['ID']['input'];\n};\n\n\nexport type MutationCreatePushTokenArgs = {\n input: PushTokenInput;\n};\n\n\nexport type MutationCreateRelationArgs = {\n input: RelationInputType;\n};\n\n\nexport type MutationCreateResourceActivityArgs = {\n input: ResourceActivityInputType;\n};\n\n\nexport type MutationCreateSchoolArgs = {\n input: SchoolInputType;\n};\n\n\nexport type MutationCreateUnregisteredVendorArgs = {\n input: UnregisteredVendorInputType;\n};\n\n\nexport type MutationCreateVendorArgs = {\n input: VendorInputType;\n};\n\n\nexport type MutationCreateVendorInfoArgs = {\n input: VendorInfoInputType;\n};\n\n\nexport type MutationDeleteAdArgs = {\n _id: Scalars['ID']['input'];\n};\n\n\nexport type MutationDeleteAffiliateArgs = {\n _id: Scalars['ID']['input'];\n};\n\n\nexport type MutationDeleteChatArgs = {\n _id: Scalars['ID']['input'];\n};\n\n\nexport type MutationDeleteEventArgs = {\n _id: Scalars['ID']['input'];\n};\n\n\nexport type MutationDeleteNotificationArgs = {\n _id: Scalars['ID']['input'];\n};\n\n\nexport type MutationDeletePartnerArgs = {\n _id: Scalars['ID']['input'];\n};\n\n\nexport type MutationDeletePostArgs = {\n _id: Scalars['ID']['input'];\n};\n\n\nexport type MutationDeleteRelationArgs = {\n _id: Scalars['ID']['input'];\n};\n\n\nexport type MutationDeleteSchoolArgs = {\n _id: Scalars['ID']['input'];\n};\n\n\nexport type MutationDeleteUnregisteredVendorArgs = {\n _id: Scalars['ID']['input'];\n};\n\n\nexport type MutationDeleteUserArgs = {\n email: Scalars['String']['input'];\n};\n\n\nexport type MutationDeleteVendorArgs = {\n _id: Scalars['ID']['input'];\n};\n\n\nexport type MutationLeaveGameArgs = {\n _id: Scalars['ID']['input'];\n gameType: GameTypeEnumType;\n gameTypeId: Scalars['String']['input'];\n};\n\n\nexport type MutationLoginArgs = {\n input: LoginInputType;\n};\n\n\nexport type MutationMarkChatMessagesSeenArgs = {\n chatId: Scalars['ID']['input'];\n messageIds: Array<InputMaybe<Scalars['ID']['input']>>;\n};\n\n\nexport type MutationMarkNotificationReadArgs = {\n _id: Scalars['ID']['input'];\n};\n\n\nexport type MutationRedeemAffiliateRewardArgs = {\n affiliateId: Scalars['ID']['input'];\n};\n\n\nexport type MutationRedeemRewardArgs = {\n input: RedeemRewardInputType;\n};\n\n\nexport type MutationRefreshTokenArgs = {\n input: RefreshTokenInputType;\n};\n\n\nexport type MutationRegisterArgs = {\n input: RegisterInputType;\n};\n\n\nexport type MutationRemoveParticipantFromChatArgs = {\n chatId: Scalars['ID']['input'];\n userId: Scalars['ID']['input'];\n};\n\n\nexport type MutationRemoveUserFavouriteResourceArgs = {\n resourceId: Scalars['ID']['input'];\n resourceType: ResourceTypeEnum;\n};\n\n\nexport type MutationRemoveUserGoingResourceArgs = {\n input: UserActivityInputType;\n};\n\n\nexport type MutationRemoveUserInterestResourceArgs = {\n input: UserActivityInputType;\n};\n\n\nexport type MutationRemoveUserPresentResourceArgs = {\n input: UserActivityInputType;\n};\n\n\nexport type MutationReportChatUserArgs = {\n input: ReportChatUserInputType;\n};\n\n\nexport type MutationRequestMarketingMaterialArgs = {\n input: MarketingMaterialRequestInputType;\n};\n\n\nexport type MutationRequestPasswordResetArgs = {\n input: RequestPasswordResetInputType;\n};\n\n\nexport type MutationResetPasswordArgs = {\n input: ResetPasswordInputType;\n};\n\n\nexport type MutationSelectStandardPackageArgs = {\n selectedLicence: LicencesEnumType;\n};\n\n\nexport type MutationSendChatMessageArgs = {\n _id: Scalars['ID']['input'];\n input: ChatMessageInputType;\n};\n\n\nexport type MutationStartGameArgs = {\n input: BaseGameInputType;\n};\n\n\nexport type MutationToggleChatMessageLikeArgs = {\n chatId: Scalars['ID']['input'];\n messageId: Scalars['ID']['input'];\n};\n\n\nexport type MutationUnlinkUnregisteredVendorByInviterIdArgs = {\n _id: Scalars['ID']['input'];\n inviterId: Scalars['ID']['input'];\n};\n\n\nexport type MutationUpdateAdArgs = {\n _id: Scalars['ID']['input'];\n input: AdInputType;\n};\n\n\nexport type MutationUpdateAffiliateDetailsArgs = {\n affiliateId: Scalars['ID']['input'];\n input: AffiliateDetailsInputType;\n};\n\n\nexport type MutationUpdateAppSettingsArgs = {\n input: AppSettingsInputType;\n};\n\n\nexport type MutationUpdateDailyClueGameArgs = {\n _id: Scalars['ID']['input'];\n foundLetter: Scalars['String']['input'];\n gameType: GameTypeEnumType;\n gameTypeId: Scalars['String']['input'];\n};\n\n\nexport type MutationUpdateEventArgs = {\n _id: Scalars['ID']['input'];\n input: EventInputType;\n};\n\n\nexport type MutationUpdateEventInfoArgs = {\n _id: Scalars['ID']['input'];\n input: EventInfoInputType;\n};\n\n\nexport type MutationUpdatePartnerArgs = {\n _id: Scalars['ID']['input'];\n input: PartnerInputType;\n};\n\n\nexport type MutationUpdatePostArgs = {\n _id: Scalars['ID']['input'];\n input: PostInputType;\n};\n\n\nexport type MutationUpdatePuzzleGameArgs = {\n _id: Scalars['ID']['input'];\n answeredQuestions: Array<PuzzleAnsweredQuestionInputType>;\n gameType: GameTypeEnumType;\n gameTypeId: Scalars['String']['input'];\n};\n\n\nexport type MutationUpdateRelationArgs = {\n _id: Scalars['ID']['input'];\n input: RelationInputType;\n};\n\n\nexport type MutationUpdateSchoolArgs = {\n _id: Scalars['ID']['input'];\n input: SchoolInputType;\n};\n\n\nexport type MutationUpdateSubscriptionPlanArgs = {\n billingPeriod?: InputMaybe<BillingPeriodEnumType>;\n newPlanId: LicencesEnumType;\n};\n\n\nexport type MutationUpdateUnregisteredVendorArgs = {\n _id: Scalars['ID']['input'];\n input: UnregisteredVendorInputType;\n};\n\n\nexport type MutationUpdateUserArgs = {\n _id: Scalars['ID']['input'];\n input: UserInputType;\n};\n\n\nexport type MutationUpdateVendorArgs = {\n _id: Scalars['ID']['input'];\n input: VendorInputType;\n};\n\n\nexport type MutationUpdateVendorInfoArgs = {\n _id: Scalars['ID']['input'];\n input: VendorInfoInputType;\n};\n\n\nexport type MutationValidateVerificationTokenArgs = {\n input: ValidateVerificationTokenInputType;\n};\n\n/** A notification object */\nexport type Notification = {\n _id: Scalars['ID']['output'];\n createdAt?: Maybe<Scalars['Date']['output']>;\n data?: Maybe<NotificationDataType>;\n isRead?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n title?: Maybe<Scalars['String']['output']>;\n type?: Maybe<NotificationEnumType>;\n updatedAt?: Maybe<Scalars['Date']['output']>;\n userId: Scalars['ID']['output'];\n};\n\n/** Notification count information */\nexport type NotificationCount = {\n total?: Maybe<Scalars['Int']['output']>;\n unread?: Maybe<Scalars['Int']['output']>;\n};\n\n/** Data related to the notification */\nexport type NotificationDataType = {\n resourceId?: Maybe<Scalars['String']['output']>;\n resourceName?: Maybe<Scalars['String']['output']>;\n resourceType?: Maybe<NotificationResourceEnumType>;\n};\n\n/** Input for notification data */\nexport type NotificationDataTypeInput = {\n resourceId?: InputMaybe<Scalars['String']['input']>;\n resourceName?: InputMaybe<Scalars['String']['input']>;\n resourceType?: InputMaybe<NotificationResourceEnumType>;\n};\n\n/** Notification enum type */\nexport enum NotificationEnumType {\n Chat = 'chat',\n Event = 'event',\n Relation = 'relation',\n System = 'system',\n Vendor = 'vendor'\n}\n\n/** Notification resource enum type */\nexport enum NotificationResourceEnumType {\n AffiliateRewardReceived = 'affiliate_reward_received',\n ApprovedAffiliate = 'approved_affiliate',\n ApprovedEvent = 'approved_event',\n ApprovedPartner = 'approved_partner',\n ApprovedSchool = 'approved_school',\n ApprovedVendor = 'approved_vendor',\n CreatedEvent = 'created_event',\n CreatedPartner = 'created_partner',\n CreatedVendor = 'created_vendor',\n DailyClueGame = 'daily_clue_game',\n DeactivatedEvent = 'deactivated_event',\n DeactivatedPartner = 'deactivated_partner',\n DeactivatedVendor = 'deactivated_vendor',\n DeclinedEvent = 'declined_event',\n DeclinedPartner = 'declined_partner',\n DeclinedVendor = 'declined_vendor',\n DowngradedEvent = 'downgraded_event',\n DowngradedPartner = 'downgraded_partner',\n DowngradedVendor = 'downgraded_vendor',\n EventInviteVendor = 'event_invite_vendor',\n EventStartingSoon = 'event_starting_soon',\n EventUpdateRelationToVendor = 'event_update_relation_to_vendor',\n ExpirationReminderEvent = 'expiration_reminder_event',\n ExpirationReminderPartner = 'expiration_reminder_partner',\n ExpirationReminderVendor = 'expiration_reminder_vendor',\n NewChatMessage = 'new_chat_message',\n NewPostCreated = 'new_post_created',\n RegisteredUserBySchoolCode = 'registered_user_by_school_code',\n SystemAlert = 'system_alert',\n VendorApplicationToEvent = 'vendor_application_to_event',\n VendorUpdateRelationToEvent = 'vendor_update_relation_to_event'\n}\n\n/** Operating system enum */\nexport enum OsPlatformEnumType {\n Android = 'android',\n Ios = 'ios',\n Web = 'web'\n}\n\n/** Owner type */\nexport type OwnerType = {\n email: Scalars['String']['output'];\n userId: Scalars['ID']['output'];\n};\n\n/** Partner type enum */\nexport enum PartnerEnumType {\n CharityPartner = 'Charity_Partner',\n MediaPartner = 'Media_Partner',\n SupportingPartner = 'Supporting_Partner'\n}\n\n/** Partner input type */\nexport type PartnerInputType = {\n active: Scalars['Boolean']['input'];\n contactDetails?: InputMaybe<ContactDetailsInputType>;\n cover: ResourceImageInputType;\n coverUpload?: InputMaybe<ResourceImageUploadInputType>;\n description: Scalars['String']['input'];\n images?: InputMaybe<Array<InputMaybe<ResourceImageInputType>>>;\n imagesUpload?: InputMaybe<Array<InputMaybe<ResourceImageUploadInputType>>>;\n location: LocationInputType;\n logo?: InputMaybe<ResourceImageInputType>;\n logoUpload?: InputMaybe<ResourceImageUploadInputType>;\n name: Scalars['String']['input'];\n nzbn: Scalars['String']['input'];\n partnerType: PartnerEnumType;\n promoCodes?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;\n region: Scalars['String']['input'];\n socialMedia?: InputMaybe<Array<InputMaybe<SocialMediaInputType>>>;\n termsAgreement: TermsAgreementInputType;\n};\n\n/** Partner type */\nexport type PartnerType = {\n _id: Scalars['ID']['output'];\n active: Scalars['Boolean']['output'];\n adIds?: Maybe<Array<Maybe<Scalars['ID']['output']>>>;\n approvedAt?: Maybe<Scalars['Date']['output']>;\n contactDetails?: Maybe<ContactDetailsType>;\n cover: ResourceImageType;\n createdAt: Scalars['Date']['output'];\n deletedAt?: Maybe<Scalars['Date']['output']>;\n description: Scalars['String']['output'];\n images?: Maybe<Array<ResourceImageType>>;\n location: LocationType;\n logo?: Maybe<ResourceImageType>;\n name: Scalars['String']['output'];\n nzbn: Scalars['String']['output'];\n owner: OwnerType;\n partnerType: PartnerEnumType;\n posterUsage?: Maybe<PosterUsageType>;\n promoCodes?: Maybe<Array<Scalars['String']['output']>>;\n rating?: Maybe<Scalars['Float']['output']>;\n region: Scalars['String']['output'];\n relatedPost?: Maybe<RelatedPostType>;\n reviewCount?: Maybe<Scalars['Int']['output']>;\n sharePublic?: Maybe<SocialShareResourceType>;\n slug: Scalars['String']['output'];\n socialMedia?: Maybe<Array<SocialMediaType>>;\n termsAgreement?: Maybe<TermsAgreementType>;\n updatedAt: Scalars['Date']['output'];\n};\n\nexport type PaymentInfoInputType = {\n accountHolderName?: InputMaybe<Scalars['String']['input']>;\n accountNumber?: InputMaybe<Scalars['String']['input']>;\n link?: InputMaybe<Scalars['String']['input']>;\n paymentMethod: PaymentMethodEnumType;\n};\n\nexport type PaymentInfoType = {\n accountHolderName?: Maybe<Scalars['String']['output']>;\n accountNumber?: Maybe<Scalars['String']['output']>;\n link?: Maybe<Scalars['String']['output']>;\n paymentMethod: PaymentMethodEnumType;\n};\n\n/** Payment method enum type */\nexport enum PaymentMethodEnumType {\n BankTransfer = 'bank_transfer',\n Cash = 'cash',\n Eftpos = 'eftpos',\n Paypal = 'paypal',\n Stripe = 'stripe'\n}\n\n/** Content data type */\nexport type PostContentData = {\n game?: Maybe<BaseGameType>;\n images?: Maybe<Array<Maybe<ResourceImageType>>>;\n list?: Maybe<ListContentDataType>;\n textarea?: Maybe<TextareaContentDataType>;\n video?: Maybe<VideoContentDataType>;\n};\n\n/** Post content enum */\nexport enum PostContentEnum {\n Game = 'game',\n Image = 'image',\n List = 'list',\n Textarea = 'textarea',\n Video = 'video'\n}\n\n/** Post content input type */\nexport type PostContentInputType = {\n contentData?: InputMaybe<ContentDataInputType>;\n contentOrder: Scalars['Float']['input'];\n contentType: PostContentEnum;\n};\n\n/** Post content type */\nexport type PostContentType = {\n contentData?: Maybe<PostContentData>;\n contentOrder: Scalars['Float']['output'];\n contentType: PostContentEnum;\n};\n\n/** Post input type */\nexport type PostInputType = {\n active: Scalars['Boolean']['input'];\n caption: Scalars['String']['input'];\n content: Array<InputMaybe<PostContentInputType>>;\n cover?: InputMaybe<ResourceImageInputType>;\n coverUpload?: InputMaybe<ResourceImageUploadInputType>;\n notifyUsers?: InputMaybe<Scalars['Boolean']['input']>;\n postType: PostTypeEnum;\n resource?: InputMaybe<PostResourceInputType>;\n tags?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;\n title: Scalars['String']['input'];\n};\n\n/** Post resource input type */\nexport type PostResourceInputType = {\n resourceId: Scalars['String']['input'];\n resourceRegion: Scalars['String']['input'];\n resourceSlug: Scalars['String']['input'];\n resourceType: ResourceTypeEnum;\n};\n\n/** Post resource type */\nexport type PostResourceType = {\n resourceId: Scalars['String']['output'];\n resourceRegion: Scalars['String']['output'];\n resourceSlug: Scalars['String']['output'];\n resourceType: ResourceTypeEnum;\n};\n\n/** Post type */\nexport type PostType = {\n _id: Scalars['ID']['output'];\n active: Scalars['Boolean']['output'];\n approvedAt?: Maybe<Scalars['Date']['output']>;\n caption: Scalars['String']['output'];\n content: Array<Maybe<PostContentType>>;\n cover?: Maybe<ResourceImageType>;\n createdAt: Scalars['Date']['output'];\n deletedAt?: Maybe<Scalars['Date']['output']>;\n postType: PostTypeEnum;\n resource?: Maybe<PostResourceType>;\n sharePublic?: Maybe<SocialShareResourceType>;\n slug: Scalars['String']['output'];\n tags?: Maybe<Array<Maybe<Scalars['String']['output']>>>;\n title: Scalars['String']['output'];\n updatedAt: Scalars['Date']['output'];\n};\n\n/** Post type enum */\nexport enum PostTypeEnum {\n ClueBites = 'clue_bites',\n MarketFaces = 'market_faces',\n PlayAndWin = 'play_and_win'\n}\n\n/** Poster input type */\nexport type PosterInputType = {\n description: Scalars['String']['input'];\n posterName: Scalars['PosterAssetId']['input'];\n resourceId: Scalars['String']['input'];\n resourceType: ResourceTypeEnum;\n};\n\n/** Poster type */\nexport type PosterType = {\n posterUsage?: Maybe<PosterUsageType>;\n};\n\n/** Poster usage type */\nexport type PosterUsageType = {\n count: Scalars['Int']['output'];\n month: Scalars['String']['output'];\n};\n\n/** Input type for push token */\nexport type PushTokenInput = {\n platform: OsPlatformEnumType;\n token?: InputMaybe<Scalars['String']['input']>;\n};\n\n/** Push token response type */\nexport type PushTokenType = {\n success: Scalars['Boolean']['output'];\n};\n\n/** Puzzle answer input type */\nexport type PuzzleAnswerInputType = {\n answer: Scalars['String']['input'];\n answerId: Scalars['ID']['input'];\n correct: Scalars['Boolean']['input'];\n};\n\n/** Puzzle question answer type */\nexport type PuzzleAnswerType = {\n answer: Scalars['String']['output'];\n answerId: Scalars['ID']['output'];\n correct: Scalars['Boolean']['output'];\n};\n\n/** Puzzle answered question input type */\nexport type PuzzleAnsweredQuestionInputType = {\n questionId: Scalars['ID']['input'];\n selectedAnswerId: Scalars['ID']['input'];\n};\n\n/** Puzzle answered question type */\nexport type PuzzleAnsweredQuestionType = {\n questionId: Scalars['ID']['output'];\n selectedAnswerId: Scalars['ID']['output'];\n};\n\n/** Puzzle base game input type */\nexport type PuzzleBaseGameInputType = {\n questions: Array<PuzzleQuestionInputType>;\n};\n\n/** Puzzle base game type */\nexport type PuzzleBaseGameType = {\n questions: Array<PuzzleQuestionType>;\n};\n\n/** Puzzle game data type */\nexport type PuzzleGameDataType = {\n answeredQuestions: Array<PuzzleAnsweredQuestionType>;\n gameFields?: Maybe<PuzzleBaseGameType>;\n points: Scalars['Int']['output'];\n streak: Scalars['Int']['output'];\n};\n\n/** Puzzle question input type */\nexport type PuzzleQuestionInputType = {\n answers: Array<PuzzleAnswerInputType>;\n question: Scalars['String']['input'];\n questionId: Scalars['ID']['input'];\n};\n\n/** Puzzle question type */\nexport type PuzzleQuestionType = {\n answers: Array<PuzzleAnswerType>;\n question: Scalars['String']['output'];\n questionId: Scalars['ID']['output'];\n};\n\nexport type Query = {\n /** Get a single ad by ID */\n ad?: Maybe<AdType>;\n /** Get all ads */\n ads?: Maybe<Array<Maybe<AdType>>>;\n /** Get ads by region */\n adsByRegion?: Maybe<Array<Maybe<AdType>>>;\n /** Get an affiliate by ID */\n affiliate?: Maybe<AffiliateType>;\n /** Get all affiliates */\n affiliates?: Maybe<Array<AffiliateType>>;\n /** Get application settings */\n appSettings: AppSettingsType;\n /** Get a chat by ID */\n chat?: Maybe<ChatType>;\n /** Get all group chats for a region */\n chatsByRegion?: Maybe<Array<ChatType>>;\n /** Get a event by ID */\n event?: Maybe<EventType>;\n /** Get event by Google Place ID */\n eventByPlaceId?: Maybe<EventListItemType>;\n /** Get a shareable event by public URL slug */\n eventBySlug?: Maybe<EventListItemType>;\n /** Get event info by event ID */\n eventInfo?: Maybe<EventInfoType>;\n /** Get all relations for a specific event */\n eventRelations?: Maybe<Array<Maybe<RelationType>>>;\n /** Get all events */\n events?: Maybe<Array<EventListItemType>>;\n /** Get events by region */\n eventsByRegion?: Maybe<Array<EventListItemType>>;\n /** Get events near a specific location */\n eventsNearMe?: Maybe<Array<EventListItemType>>;\n /** Search events */\n eventsSearch?: Maybe<Array<EventListItemType>>;\n /** Get a game by ID */\n game?: Maybe<GameDocType>;\n /** Get the game leaderboard */\n gameLeaderboard?: Maybe<Array<Maybe<GameLeaderboardType>>>;\n /** Get all games */\n games?: Maybe<Array<GameDocType>>;\n /** Get all available subscription plans with pricing. Applies discounts for new users (25% off annual) and testers (50% off annual). Discounts exclude cancel-anytime plans and are valid for one year only. */\n getSubscriptionPlans: SubscriptionPlansResponseType;\n /** Get the current user's subscription status */\n getSubscriptionStatus: SubscriptionStatusType;\n /** Get notification count for a user */\n notificationCount?: Maybe<NotificationCount>;\n /** Get a partner by ID */\n partner?: Maybe<PartnerType>;\n /** Get a shareable partner by public URL slug */\n partnerBySlug?: Maybe<PartnerType>;\n /** Get all partners */\n partners?: Maybe<Array<PartnerType>>;\n /** Get partners by region */\n partnersByRegion?: Maybe<Array<PartnerType>>;\n /** Search partners */\n partnersSearch?: Maybe<Array<PartnerType>>;\n /** Get a post by ID */\n post?: Maybe<PostType>;\n /** Get a shareable post by public URL slug and post type */\n postBySlug?: Maybe<PostType>;\n /** Get all posts */\n posts?: Maybe<Array<PostType>>;\n /** Get posts by type */\n postsByType?: Maybe<Array<PostType>>;\n /** Get a relation by ID */\n relation?: Maybe<RelationType>;\n /** Get relation for a specific vendor and event combination */\n relationByEventAndVendor?: Maybe<RelationType>;\n /** Get resource activities by resource ID and type */\n resourceActivity?: Maybe<ResourceActivityType>;\n /** Get all connections for a specific resource */\n resourceConnections?: Maybe<ResourceConnections>;\n /** Get a school by ID */\n school?: Maybe<SchoolReturnType>;\n /** Get all schools */\n schools?: Maybe<Array<SchoolType>>;\n /** Get an unregistered vendor by ID */\n unregisteredVendor?: Maybe<UnregisteredVendorType>;\n /** Get all unregistered vendors */\n unregisteredVendors?: Maybe<Array<UnregisteredVendorType>>;\n /** Get unregistered vendors by inviter ID (only includes invitations from that inviter) */\n unregisteredVendorsByInviterId?: Maybe<Array<UnregisteredVendorType>>;\n /** Get a user by ID */\n user?: Maybe<UserType>;\n /** Get all activities of the user */\n userActivities?: Maybe<UserActivities>;\n /** Get all chats for a user */\n userChats?: Maybe<Array<ChatType>>;\n /** Get all events owned by the user */\n userEvents: Array<Maybe<EventType>>;\n /** Get user notifications with pagination */\n userNotifications?: Maybe<Array<Maybe<Notification>>>;\n /** Get the partners of the user */\n userPartners: Array<Maybe<PartnerType>>;\n /** Get all resources owned by the user */\n userResources?: Maybe<UserResources>;\n /** Get the vendors of the user */\n userVendors: Array<Maybe<VendorType>>;\n /** Get all users */\n users?: Maybe<Array<UserType>>;\n /** Get a vendor by ID */\n vendor?: Maybe<VendorType>;\n /** Get a shareable vendor by public URL slug */\n vendorBySlug?: Maybe<VendorType>;\n /** Get a vendor info by vendor ID */\n vendorInfo?: Maybe<VendorInfoType>;\n /** Get all relations for a specific vendor */\n vendorRelations?: Maybe<Array<Maybe<RelationType>>>;\n /** Search vendors */\n vendorSearch?: Maybe<Array<VendorType>>;\n /** Get all vendors */\n vendors?: Maybe<Array<VendorType>>;\n /** Get vendors by Region */\n vendorsByRegion?: Maybe<Array<VendorType>>;\n};\n\n\nexport type QueryAdArgs = {\n _id: Scalars['ID']['input'];\n};\n\n\nexport type QueryAdsByRegionArgs = {\n region: Scalars['String']['input'];\n status?: InputMaybe<AdStatusTypeEnum>;\n};\n\n\nexport type QueryAffiliateArgs = {\n _id: Scalars['ID']['input'];\n};\n\n\nexport type QueryChatArgs = {\n _id: Scalars['ID']['input'];\n};\n\n\nexport type QueryChatsByRegionArgs = {\n region: Scalars['String']['input'];\n};\n\n\nexport type QueryEventArgs = {\n _id: Scalars['ID']['input'];\n};\n\n\nexport type QueryEventByPlaceIdArgs = {\n googlePlaceId: Scalars['String']['input'];\n};\n\n\nexport type QueryEventBySlugArgs = {\n slug: Scalars['String']['input'];\n};\n\n\nexport type QueryEventInfoArgs = {\n eventId: Scalars['ID']['input'];\n};\n\n\nexport type QueryEventRelationsArgs = {\n eventId: Scalars['ID']['input'];\n};\n\n\nexport type QueryEventsArgs = {\n dateStatus?: InputMaybe<EventDateStatusEnumType>;\n};\n\n\nexport type QueryEventsByRegionArgs = {\n dateStatus?: InputMaybe<EventDateStatusEnumType>;\n options?: InputMaybe<ResourcesByRegionOptions>;\n region: Scalars['String']['input'];\n};\n\n\nexport type QueryEventsNearMeArgs = {\n dateStatus?: InputMaybe<EventDateStatusEnumType>;\n latitude: Scalars['Float']['input'];\n longitude: Scalars['Float']['input'];\n radius?: InputMaybe<Scalars['Int']['input']>;\n};\n\n\nexport type QueryEventsSearchArgs = {\n dateStatus?: InputMaybe<EventDateStatusEnumType>;\n region: Scalars['String']['input'];\n search?: InputMaybe<Scalars['String']['input']>;\n tags?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;\n};\n\n\nexport type QueryGameArgs = {\n _id?: InputMaybe<Scalars['ID']['input']>;\n};\n\n\nexport type QueryPartnerArgs = {\n _id: Scalars['ID']['input'];\n};\n\n\nexport type QueryPartnerBySlugArgs = {\n slug: Scalars['String']['input'];\n};\n\n\nexport type QueryPartnersByRegionArgs = {\n options?: InputMaybe<ResourcesByRegionOptions>;\n region: Scalars['String']['input'];\n};\n\n\nexport type QueryPartnersSearchArgs = {\n region: Scalars['String']['input'];\n search: Scalars['String']['input'];\n};\n\n\nexport type QueryPostArgs = {\n _id: Scalars['ID']['input'];\n};\n\n\nexport type QueryPostBySlugArgs = {\n postType: PostTypeEnum;\n slug: Scalars['String']['input'];\n};\n\n\nexport type QueryPostsByTypeArgs = {\n postType: PostTypeEnum;\n};\n\n\nexport type QueryRelationArgs = {\n _id: Scalars['ID']['input'];\n};\n\n\nexport type QueryRelationByEventAndVendorArgs = {\n eventId: Scalars['ID']['input'];\n vendorId: Scalars['ID']['input'];\n};\n\n\nexport type QueryResourceActivityArgs = {\n resourceId: Scalars['ID']['input'];\n resourceType: ResourceTypeEnum;\n};\n\n\nexport type QueryResourceConnectionsArgs = {\n resourceId: Scalars['ID']['input'];\n resourceType: ResourceTypeEnum;\n};\n\n\nexport type QuerySchoolArgs = {\n _id: Scalars['ID']['input'];\n};\n\n\nexport type QueryUnregisteredVendorArgs = {\n _id: Scalars['ID']['input'];\n};\n\n\nexport type QueryUnregisteredVendorsByInviterIdArgs = {\n inviterId: Scalars['ID']['input'];\n};\n\n\nexport type QueryUserArgs = {\n _id: Scalars['ID']['input'];\n};\n\n\nexport type QueryUserNotificationsArgs = {\n limit?: InputMaybe<Scalars['Int']['input']>;\n offset?: InputMaybe<Scalars['Int']['input']>;\n};\n\n\nexport type QueryUserResourcesArgs = {\n userId: Scalars['ID']['input'];\n};\n\n\nexport type QueryVendorArgs = {\n _id: Scalars['ID']['input'];\n};\n\n\nexport type QueryVendorBySlugArgs = {\n slug: Scalars['String']['input'];\n};\n\n\nexport type QueryVendorInfoArgs = {\n vendorId: Scalars['ID']['input'];\n};\n\n\nexport type QueryVendorRelationsArgs = {\n vendorId: Scalars['ID']['input'];\n};\n\n\nexport type QueryVendorSearchArgs = {\n region: Scalars['String']['input'];\n search: Scalars['String']['input'];\n};\n\n\nexport type QueryVendorsByRegionArgs = {\n options?: InputMaybe<ResourcesByRegionOptions>;\n region: Scalars['String']['input'];\n};\n\nexport type RedeemAffiliateRewardResponse = {\n data?: Maybe<AffiliateType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\n/** Redeem history type */\nexport type RedeemHistoryType = {\n paidAt?: Maybe<Scalars['Date']['output']>;\n redeemedAt: Scalars['Date']['output'];\n rewardValue: Scalars['Int']['output'];\n};\n\n/** Redeem reward input type */\nexport type RedeemRewardInputType = {\n reward: RewardEnumType;\n};\n\nexport type RedeemRewardResponse = {\n data?: Maybe<RedeemRewardResponseType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\n/** Redeem reward response data */\nexport type RedeemRewardResponseType = {\n userId: Scalars['ID']['output'];\n};\n\n/** Redeemed reward type */\nexport type RedeemedRewardType = {\n name: RewardEnumType;\n pointsUsed: Scalars['Int']['output'];\n redeemedAt: Scalars['Date']['output'];\n};\n\n/** Refresh token input type */\nexport type RefreshTokenInputType = {\n refreshToken: Scalars['String']['input'];\n};\n\n/** Refresh token payload type */\nexport type RefreshTokenPayloadType = {\n refreshToken: Scalars['String']['output'];\n token: Scalars['String']['output'];\n};\n\nexport type RefreshTokenResponse = {\n data?: Maybe<RefreshTokenPayloadType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type RefundPolicyInputType = {\n category: Scalars['String']['input'];\n label: Scalars['String']['input'];\n value: Scalars['Boolean']['input'];\n};\n\nexport type RefundPolicyType = {\n category: Scalars['String']['output'];\n label: Scalars['String']['output'];\n value: Scalars['Boolean']['output'];\n};\n\n/** Register input type */\nexport type RegisterInputType = {\n email: Scalars['String']['input'];\n firstName: Scalars['String']['input'];\n lastName: Scalars['String']['input'];\n password: Scalars['String']['input'];\n platform?: InputMaybe<OsPlatformEnumType>;\n preferredRegion: Scalars['String']['input'];\n promoCode?: InputMaybe<Scalars['String']['input']>;\n termsAgreement: TermsAgreementInputType;\n};\n\nexport type RegisterResponse = {\n data?: Maybe<AuthPayloadType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\n/** Related post type */\nexport type RelatedPostType = {\n postActive: Scalars['Boolean']['output'];\n postId: Scalars['ID']['output'];\n postSlug: Scalars['String']['output'];\n postType: PostTypeEnum;\n};\n\n/** Relation date input type */\nexport type RelationDateInputType = {\n dateTime: RelationDateTimeInputType;\n lastUpdateBy: LastUpdateByInputType;\n paymentReference?: InputMaybe<Scalars['String']['input']>;\n status: InviteEnumType;\n};\n\n/** Relation date time input type */\nexport type RelationDateTimeInputType = {\n dateStatus: EventDateStatusEnumType;\n endDate: Scalars['String']['input'];\n endTime: Scalars['String']['input'];\n stallType: StallTypeInputType;\n startDate: Scalars['String']['input'];\n startTime: Scalars['String']['input'];\n};\n\n/** Relation date time type */\nexport type RelationDateTimeType = {\n dateStatus: EventDateStatusEnumType;\n endDate: Scalars['String']['output'];\n endTime: Scalars['String']['output'];\n stallType?: Maybe<StallTypeType>;\n startDate: Scalars['String']['output'];\n startTime: Scalars['String']['output'];\n};\n\n/** Relation date type */\nexport type RelationDateType = {\n dateTime: RelationDateTimeType;\n lastUpdateBy?: Maybe<LastUpdateByType>;\n paymentReference?: Maybe<Scalars['String']['output']>;\n status: InviteEnumType;\n};\n\n/** Relation input type */\nexport type RelationInputType = {\n active: Scalars['Boolean']['input'];\n chatId?: InputMaybe<Scalars['ID']['input']>;\n eventId: Scalars['ID']['input'];\n lastUpdateBy: ResourceTypeEnum;\n relationDates: Array<InputMaybe<RelationDateInputType>>;\n relationType: RelationTypeEnum;\n vendorId: Scalars['ID']['input'];\n};\n\n/** Relation type */\nexport type RelationType = {\n _id: Scalars['ID']['output'];\n active: Scalars['Boolean']['output'];\n chatId: Scalars['ID']['output'];\n createdAt?: Maybe<Scalars['Date']['output']>;\n deletedAt?: Maybe<Scalars['Date']['output']>;\n eventId: Scalars['ID']['output'];\n lastUpdateBy: ResourceTypeEnum;\n relationDates: Array<RelationDateType>;\n relationType: RelationTypeEnum;\n updatedAt?: Maybe<Scalars['Date']['output']>;\n vendorId: Scalars['ID']['output'];\n};\n\n/** Resource relation type enum */\nexport enum RelationTypeEnum {\n EventInviteVendor = 'event_invite_vendor',\n EventUpdateRelationToVendor = 'event_update_relation_to_vendor',\n VendorApplicationToEvent = 'vendor_application_to_event',\n VendorUpdateRelationToEvent = 'vendor_update_relation_to_event'\n}\n\nexport type RemoveParticipantFromChatPayload = {\n region?: Maybe<Scalars['String']['output']>;\n success: Scalars['Boolean']['output'];\n};\n\nexport type RemoveParticipantFromChatResponse = {\n data?: Maybe<RemoveParticipantFromChatPayload>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type RemoveUserFavouriteResourceResponse = {\n data?: Maybe<UserType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type RemoveUserGoingResourceResponse = {\n data?: Maybe<UserType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type RemoveUserInterestResourceResponse = {\n data?: Maybe<UserType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type RemoveUserPresentResourceResponse = {\n data?: Maybe<UserType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\n/** Report chat reason input type */\nexport type ReportChatReasonInputType = {\n details?: InputMaybe<Scalars['String']['input']>;\n reasonType: ChatReportReasonEnum;\n};\n\n/** Report chat reason type */\nexport type ReportChatReasonType = {\n details?: Maybe<Scalars['String']['output']>;\n reasonType: ChatReportReasonEnum;\n};\n\n/** Report chat user input type */\nexport type ReportChatUserInputType = {\n chatId: Scalars['ID']['input'];\n reason: ReportChatReasonInputType;\n reportedUserId: Scalars['ID']['input'];\n};\n\nexport type ReportChatUserResponse = {\n data?: Maybe<ReportChatUserType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\n/** Report chat user type */\nexport type ReportChatUserType = {\n _id: Scalars['ID']['output'];\n chatId: Scalars['ID']['output'];\n createdAt: Scalars['Date']['output'];\n reason: ReportChatReasonType;\n reportedUserId: Scalars['ID']['output'];\n reporterUserId: Scalars['ID']['output'];\n resolved: Scalars['Boolean']['output'];\n updatedAt?: Maybe<Scalars['Date']['output']>;\n};\n\n/** Request password reset input type */\nexport type RequestPasswordResetInputType = {\n email: Scalars['String']['input'];\n};\n\nexport type RequestPasswordResetResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type RequirementInputType = {\n category: Scalars['String']['input'];\n label: Scalars['String']['input'];\n value: Scalars['Boolean']['input'];\n};\n\nexport type RequirementType = {\n category: Scalars['String']['output'];\n label: Scalars['String']['output'];\n value: Scalars['Boolean']['output'];\n};\n\n/** Reset password input type */\nexport type ResetPasswordInputType = {\n confirmPassword: Scalars['String']['input'];\n email: Scalars['String']['input'];\n password: Scalars['String']['input'];\n};\n\nexport type ResetPasswordResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\n/** Resource view entry type */\nexport type ResourceActivityEntryType = {\n activityType: ActivityEnumType;\n dateStatus?: Maybe<EventDateStatusEnumType>;\n location?: Maybe<LocationGeoType>;\n startDate?: Maybe<Scalars['String']['output']>;\n startTime?: Maybe<Scalars['String']['output']>;\n timestamp?: Maybe<Scalars['Date']['output']>;\n userAgent?: Maybe<OsPlatformEnumType>;\n userId?: Maybe<Scalars['String']['output']>;\n};\n\n/** Resource activity input type */\nexport type ResourceActivityInputType = {\n activity: ResourceViewEntryInputType;\n resourceId: Scalars['ID']['input'];\n resourceType: ResourceTypeEnum;\n};\n\n/** Resource activities type */\nexport type ResourceActivityType = {\n _id: Scalars['ID']['output'];\n activity?: Maybe<Array<Maybe<ResourceActivityEntryType>>>;\n resourceId: Scalars['ID']['output'];\n resourceType: ResourceTypeEnum;\n};\n\nexport type ResourceConnections = {\n /** List of events connected to the resource */\n events?: Maybe<Array<Maybe<EventListItemType>>>;\n /** List of vendors connected to the resource */\n vendors?: Maybe<Array<Maybe<VendorType>>>;\n};\n\n/** Resource image input type */\nexport type ResourceImageInputType = {\n active?: InputMaybe<Scalars['Boolean']['input']>;\n source?: InputMaybe<Scalars['String']['input']>;\n title?: InputMaybe<Scalars['String']['input']>;\n};\n\n/** Resource image type */\nexport type ResourceImageType = {\n active: Scalars['Boolean']['output'];\n fullUrl?: Maybe<Scalars['String']['output']>;\n source: Scalars['String']['output'];\n title: Scalars['String']['output'];\n};\n\n/** Resource image upload input type */\nexport type ResourceImageUploadInputType = {\n source?: InputMaybe<Scalars['Upload']['input']>;\n title?: InputMaybe<Scalars['String']['input']>;\n};\n\nexport type ResourceRelationType = {\n relationDates: Array<RelationDateType>;\n relationId: Scalars['ID']['output'];\n};\n\n/** Resource type enum */\nexport enum ResourceTypeEnum {\n Affiliate = 'affiliate',\n Event = 'event',\n Partner = 'partner',\n School = 'school',\n Vendor = 'vendor'\n}\n\n/** Resource view entry input type */\nexport type ResourceViewEntryInputType = {\n activityType: ActivityEnumType;\n location?: InputMaybe<LocationGeoInputType>;\n startDate?: InputMaybe<Scalars['String']['input']>;\n startTime?: InputMaybe<Scalars['String']['input']>;\n userAgent?: InputMaybe<OsPlatformEnumType>;\n userId?: InputMaybe<Scalars['String']['input']>;\n};\n\n/** Resources by region options */\nexport type ResourcesByRegionOptions = {\n limit?: InputMaybe<Scalars['Int']['input']>;\n offset?: InputMaybe<Scalars['Int']['input']>;\n onlyClaimed?: InputMaybe<Scalars['Boolean']['input']>;\n};\n\n/** Reward enum */\nexport enum RewardEnumType {\n MysteryDeluxeBox = 'mystery_deluxe_box',\n MysteryJoyBox = 'mystery_joy_box',\n MysterySqueezeBox = 'mystery_squeeze_box'\n}\n\n/** School campaign type */\nexport type SchoolCampaignType = {\n endDate: Scalars['Date']['output'];\n name: Scalars['String']['output'];\n startDate: Scalars['Date']['output'];\n};\n\n/** School input type */\nexport type SchoolInputType = {\n active: Scalars['Boolean']['input'];\n contactDetails: ContactDetailsInputType;\n location: LocationInputType;\n logo?: InputMaybe<ResourceImageInputType>;\n logoUpload?: InputMaybe<ResourceImageUploadInputType>;\n name: Scalars['String']['input'];\n region: Scalars['String']['input'];\n socialMedia?: InputMaybe<Array<InputMaybe<SocialMediaInputType>>>;\n studentCount: Scalars['Int']['input'];\n termsAgreement: TermsAgreementInputType;\n};\n\n/** School registered user type */\nexport type SchoolRegisteredUserType = {\n _id: Scalars['ID']['output'];\n active: Scalars['Boolean']['output'];\n avatar?: Maybe<ResourceImageType>;\n email: Scalars['String']['output'];\n firstName: Scalars['String']['output'];\n lastName: Scalars['String']['output'];\n};\n\n/** School return type */\nexport type SchoolReturnType = {\n school: SchoolType;\n users?: Maybe<Array<SchoolRegisteredUserType>>;\n};\n\n/** School type */\nexport type SchoolType = {\n _id: Scalars['ID']['output'];\n active: Scalars['Boolean']['output'];\n approvedAt?: Maybe<Scalars['Date']['output']>;\n campaigns?: Maybe<Array<SchoolCampaignType>>;\n contactDetails: ContactDetailsType;\n createdAt: Scalars['Date']['output'];\n deletedAt?: Maybe<Scalars['Date']['output']>;\n location: LocationType;\n logo?: Maybe<ResourceImageType>;\n name: Scalars['String']['output'];\n overallPoints?: Maybe<Scalars['Int']['output']>;\n owner: OwnerType;\n ranking?: Maybe<Scalars['Int']['output']>;\n region: Scalars['String']['output'];\n schoolCode: Scalars['String']['output'];\n socialMedia?: Maybe<Array<SocialMediaType>>;\n studentCount: Scalars['Int']['output'];\n termsAgreement: TermsAgreementType;\n updatedAt: Scalars['Date']['output'];\n};\n\n/** Select standard package result data */\nexport type SelectStandardPackageDataType = {\n licences?: Maybe<Array<UserLicenceType>>;\n userId: Scalars['ID']['output'];\n};\n\nexport type SelectStandardPackageResponse = {\n data?: Maybe<SelectStandardPackageDataType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type SendChatMessageResponse = {\n data?: Maybe<ChatType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\n/** Social media enum type */\nexport enum SocialMediaEnumType {\n Facebook = 'facebook',\n Instagram = 'instagram',\n Tiktok = 'tiktok',\n Twitter = 'twitter',\n Website = 'website',\n Youtube = 'youtube'\n}\n\n/** Social media input type */\nexport type SocialMediaInputType = {\n link: Scalars['String']['input'];\n name: SocialMediaEnumType;\n};\n\n/** Social media type */\nexport type SocialMediaType = {\n link: Scalars['String']['output'];\n name: SocialMediaEnumType;\n};\n\n/** Social share resource type */\nexport type SocialShareResourceType = {\n qrCode: ResourceImageType;\n socialImage: ResourceImageType;\n};\n\n/** Stall type input type */\nexport type StallTypeInputType = {\n label: Scalars['String']['input'];\n price: Scalars['Float']['input'];\n stallCapacity: Scalars['Float']['input'];\n};\n\n/** Stall type object */\nexport type StallTypeType = {\n label: Scalars['String']['output'];\n price: Scalars['Float']['output'];\n stallCapacity: Scalars['Float']['output'];\n};\n\nexport type StartGameResponse = {\n data?: Maybe<GameDocType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\n/** Stripe subscription type */\nexport type StripeSubscriptionType = {\n currentPlan?: Maybe<LicencesEnumType>;\n customerId?: Maybe<Scalars['String']['output']>;\n endDate?: Maybe<Scalars['Date']['output']>;\n startDate?: Maybe<Scalars['Date']['output']>;\n status?: Maybe<SubscriptionStatusEnumType>;\n subscriptionId?: Maybe<Scalars['String']['output']>;\n};\n\n/** Subcategory input type */\nexport type SubcategoryInputType = {\n id: Scalars['String']['input'];\n items?: InputMaybe<Array<InputMaybe<SubcategoryItemInputType>>>;\n name?: InputMaybe<Scalars['String']['input']>;\n};\n\n/** Subcategory item input type */\nexport type SubcategoryItemInputType = {\n id?: InputMaybe<Scalars['String']['input']>;\n name?: InputMaybe<Scalars['String']['input']>;\n};\n\n/** Subcategory item type */\nexport type SubcategoryItemType = {\n id?: Maybe<Scalars['String']['output']>;\n name?: Maybe<Scalars['String']['output']>;\n};\n\n/** Subcategory type */\nexport type SubcategoryType = {\n id: Scalars['String']['output'];\n items?: Maybe<Array<SubcategoryItemType>>;\n name?: Maybe<Scalars['String']['output']>;\n};\n\n/** The root subscription type */\nexport type Subscription = {\n /** Subscribe to chat messages */\n getChatMessage?: Maybe<ChatType>;\n /** Subscribe to notification count updates */\n getNotificationCount?: Maybe<NotificationCount>;\n /** Subscribe to user notifications */\n getUserNotifications?: Maybe<Array<Maybe<Notification>>>;\n};\n\n/** Subscription plan with pricing, discounts, and Stripe metadata */\nexport type SubscriptionPlanType = {\n /** Billing period (monthly, yearly_annual_billed, yearly_monthly_billed) */\n billingPeriod: BillingPeriodEnumType;\n /** Plan description */\n description?: Maybe<Scalars['String']['output']>;\n /** Whether this plan is eligible for discount (annual plans only) */\n isEligibleForDiscount: Scalars['Boolean']['output'];\n /** Licence type (standard_vendor, pro_event, etc.) */\n licenceType: LicencesEnumType;\n /** Plan name (e.g., 'Standard Vendor') */\n name: Scalars['String']['output'];\n /** Pricing details with discounts applied */\n pricing: SubscriptionPricingType;\n /** Stripe price ID */\n stripePriceId: Scalars['String']['output'];\n /** Stripe product ID */\n stripeProductId: Scalars['String']['output'];\n};\n\n/** Response containing subscription plans with pricing */\nexport type SubscriptionPlansResponseType = {\n /** Type of discount applied: 'none', 'new_user', or 'tester' */\n appliedDiscountType: Scalars['String']['output'];\n /** Whether the user is a new user (no previous subscriptions) */\n isNewUser: Scalars['Boolean']['output'];\n /** Whether the user is a tester */\n isTester: Scalars['Boolean']['output'];\n /** List of available subscription plans */\n plans: Array<SubscriptionPlanType>;\n};\n\n/** Pricing details for a subscription plan */\nexport type SubscriptionPricingType = {\n /** Base price in cents */\n basePrice: Scalars['Int']['output'];\n /** Currency code (e.g., 'nzd', 'usd') */\n currency: Scalars['String']['output'];\n /** Discount amount in cents (if applicable) */\n discountAmount?: Maybe<Scalars['Int']['output']>;\n /** Discount percentage (if applicable) */\n discountPercent?: Maybe<Scalars['Float']['output']>;\n /** Final price after discount in cents (if applicable) */\n discountedPrice?: Maybe<Scalars['Int']['output']>;\n /** Formatted base price (e.g., '$99.00') */\n formattedBasePrice: Scalars['String']['output'];\n /** Formatted discounted price (e.g., '$74.25') */\n formattedDiscountedPrice?: Maybe<Scalars['String']['output']>;\n /** Whether a discount is applied */\n hasDiscount: Scalars['Boolean']['output'];\n};\n\n/** Subscription status enum type */\nexport enum SubscriptionStatusEnumType {\n Active = 'active',\n Cancelled = 'cancelled',\n Inactive = 'inactive',\n NoSubscription = 'no_subscription',\n PastDue = 'past_due',\n Trialing = 'trialing'\n}\n\n/** Subscription status information */\nexport type SubscriptionStatusType = {\n currentPlan?: Maybe<LicencesEnumType>;\n priceId?: Maybe<Scalars['String']['output']>;\n status?: Maybe<SubscriptionStatusEnumType>;\n subscriptionId?: Maybe<Scalars['String']['output']>;\n};\n\n/** Terms agreement input type */\nexport type TermsAgreementInputType = {\n appBuildNumber: Scalars['String']['input'];\n appId: Scalars['String']['input'];\n appVersion: Scalars['String']['input'];\n brand: Scalars['String']['input'];\n deviceName: Scalars['String']['input'];\n installationId: Scalars['String']['input'];\n manufacturer: Scalars['String']['input'];\n modelName: Scalars['String']['input'];\n osName: Scalars['String']['input'];\n osVersion: Scalars['String']['input'];\n termVersion: Scalars['String']['input'];\n timestamp: Scalars['String']['input'];\n};\n\n/** Terms agreement type */\nexport type TermsAgreementType = {\n appBuildNumber: Scalars['String']['output'];\n appId: Scalars['String']['output'];\n appVersion: Scalars['String']['output'];\n brand: Scalars['String']['output'];\n deviceName: Scalars['String']['output'];\n installationId: Scalars['String']['output'];\n manufacturer: Scalars['String']['output'];\n modelName: Scalars['String']['output'];\n osName: Scalars['String']['output'];\n osVersion: Scalars['String']['output'];\n termVersion: Scalars['String']['output'];\n timestamp: Scalars['String']['output'];\n};\n\n/** Textarea content data input type */\nexport type TextareaContentDataInputType = {\n data: Scalars['String']['input'];\n title?: InputMaybe<Scalars['String']['input']>;\n};\n\n/** Textarea content data type */\nexport type TextareaContentDataType = {\n data: Scalars['String']['output'];\n title?: Maybe<Scalars['String']['output']>;\n};\n\nexport type ToggleChatMessageLikeResponse = {\n data?: Maybe<ChatType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type UnlinkUnregisteredVendorByInviterIdResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\n/** Unregistered vendor input type */\nexport type UnregisteredVendorInputType = {\n categoryIds: Array<InputMaybe<Scalars['String']['input']>>;\n dateTime: Array<InputMaybe<DateTimeInputType>>;\n email?: InputMaybe<Scalars['String']['input']>;\n inviterId: Scalars['ID']['input'];\n name: Scalars['String']['input'];\n region: Scalars['String']['input'];\n};\n\n/** Unregistered vendor invitation type */\nexport type UnregisteredVendorInvitationType = {\n dateTime: Array<DateTimeType>;\n inviterId: Scalars['ID']['output'];\n};\n\n/** Unregistered vendor type */\nexport type UnregisteredVendorType = {\n _id: Scalars['ID']['output'];\n active: Scalars['Boolean']['output'];\n categoryIds: Array<Scalars['String']['output']>;\n claimed: Scalars['Boolean']['output'];\n claimedAt?: Maybe<Scalars['Date']['output']>;\n claimedByUserId?: Maybe<Scalars['ID']['output']>;\n createdAt: Scalars['Date']['output'];\n deletedAt?: Maybe<Scalars['Date']['output']>;\n email?: Maybe<Scalars['String']['output']>;\n invitations: Array<UnregisteredVendorInvitationType>;\n name: Scalars['String']['output'];\n region: Scalars['String']['output'];\n updatedAt: Scalars['Date']['output'];\n};\n\nexport type UpdateAdResponse = {\n data?: Maybe<AdType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type UpdateAffiliateDetailsResponse = {\n data?: Maybe<AffiliateType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type UpdateAppSettingsResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type UpdateDailyClueGameResponse = {\n data?: Maybe<GameDocType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type UpdateEventInfoResponse = {\n data?: Maybe<EventInfoType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type UpdateEventResponse = {\n data?: Maybe<EventType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type UpdateGoogleImportedMarketsResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type UpdatePartnerResponse = {\n data?: Maybe<PartnerType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type UpdatePostResponse = {\n data?: Maybe<PostType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type UpdatePuzzleGameResponse = {\n data?: Maybe<GameDocType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type UpdateRelationResponse = {\n data?: Maybe<RelationType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type UpdateSchoolResponse = {\n data?: Maybe<SchoolType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type UpdateSubscriptionPlanResponse = {\n data?: Maybe<SubscriptionStatusType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type UpdateUnregisteredVendorResponse = {\n data?: Maybe<UnregisteredVendorType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type UpdateUserResponse = {\n data?: Maybe<UserType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type UpdateVendorInfoResponse = {\n data?: Maybe<VendorInfoType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type UpdateVendorResponse = {\n data?: Maybe<VendorType>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\nexport type UserActivities = {\n /** Favourites of the user */\n favourites?: Maybe<UserFavourites>;\n /** Going events of the user */\n going?: Maybe<UserGoingEvents>;\n /** Interested events of the user */\n interested?: Maybe<UserInterestedEvents>;\n /** Present events of the user */\n present?: Maybe<UserPresentEvents>;\n};\n\n/** User activity input type */\nexport type UserActivityInputType = {\n dateTime: DateTimeInputType;\n resourceId: Scalars['ID']['input'];\n};\n\n/** User activity type */\nexport type UserActivityType = {\n favourites?: Maybe<UserFavouritesType>;\n going?: Maybe<UserGoingType>;\n interested?: Maybe<UserInterestedType>;\n present?: Maybe<UserPresentType>;\n};\n\nexport type UserFavourites = {\n /** List of favourite events */\n events?: Maybe<Array<Maybe<EventListItemType>>>;\n /** List of favourite partners */\n partners?: Maybe<Array<Maybe<PartnerType>>>;\n /** List of favourite vendors */\n vendors?: Maybe<Array<Maybe<VendorType>>>;\n};\n\n/** User favourites type */\nexport type UserFavouritesType = {\n /** List of favourite events */\n events?: Maybe<Array<Scalars['ID']['output']>>;\n /** List of favourite partners */\n partners?: Maybe<Array<Scalars['ID']['output']>>;\n /** List of favourite vendors */\n vendors?: Maybe<Array<Scalars['ID']['output']>>;\n};\n\nexport type UserGoingEvents = {\n /** List of going events */\n events?: Maybe<Array<Maybe<EventListItemType>>>;\n};\n\n/** User going events */\nexport type UserGoingType = {\n events?: Maybe<Array<EventReferenceType>>;\n};\n\n/** User input type */\nexport type UserInputType = {\n active: Scalars['Boolean']['input'];\n avatar?: InputMaybe<ResourceImageInputType>;\n avatarUpload?: InputMaybe<ResourceImageUploadInputType>;\n email: Scalars['String']['input'];\n firstName: Scalars['String']['input'];\n isTester: Scalars['Boolean']['input'];\n lastName: Scalars['String']['input'];\n location?: InputMaybe<LocationInputType>;\n password?: InputMaybe<Scalars['String']['input']>;\n platform?: InputMaybe<OsPlatformEnumType>;\n preferredRegion: Scalars['String']['input'];\n termsAgreement?: InputMaybe<TermsAgreementInputType>;\n};\n\nexport type UserInterestedEvents = {\n /** List of interested events */\n events?: Maybe<Array<Maybe<EventListItemType>>>;\n};\n\n/** User interested events */\nexport type UserInterestedType = {\n events?: Maybe<Array<EventReferenceType>>;\n};\n\n/** User licence type */\nexport type UserLicenceType = {\n expiryDate: Scalars['Date']['output'];\n issuedDate: Scalars['Date']['output'];\n licenceType: LicencesEnumType;\n prevLicenceType?: Maybe<LicencesEnumType>;\n};\n\nexport type UserPresentEvents = {\n /** List of present events */\n events?: Maybe<Array<Maybe<EventListItemType>>>;\n};\n\n/** User present events */\nexport type UserPresentType = {\n events?: Maybe<Array<EventReferenceType>>;\n};\n\nexport type UserResource = {\n _id: Scalars['ID']['output'];\n active: Scalars['Boolean']['output'];\n logo: Scalars['String']['output'];\n name: Scalars['String']['output'];\n resourceType: ResourceTypeEnum;\n};\n\nexport type UserResources = {\n /** List of resources owned by the user */\n resources?: Maybe<Array<UserResource>>;\n};\n\n/** User role enum type */\nexport enum UserRoleEnumType {\n Admin = 'admin',\n Affiliate = 'affiliate',\n Customer = 'customer',\n Event = 'event',\n Partner = 'partner',\n School = 'school',\n SuperAdmin = 'super_admin',\n Vendor = 'vendor'\n}\n\n/** User type */\nexport type UserType = {\n _id: Scalars['ID']['output'];\n active: Scalars['Boolean']['output'];\n affiliate?: Maybe<Scalars['ID']['output']>;\n avatar?: Maybe<ResourceImageType>;\n createdAt: Scalars['Date']['output'];\n deletedAt?: Maybe<Scalars['Date']['output']>;\n email: Scalars['String']['output'];\n events?: Maybe<Array<Scalars['ID']['output']>>;\n firstName: Scalars['String']['output'];\n game?: Maybe<Scalars['ID']['output']>;\n isTester: Scalars['Boolean']['output'];\n lastName: Scalars['String']['output'];\n licences?: Maybe<Array<UserLicenceType>>;\n location?: Maybe<LocationType>;\n overallPoints?: Maybe<Scalars['Int']['output']>;\n partner?: Maybe<Scalars['ID']['output']>;\n permissions: Array<Scalars['String']['output']>;\n platform?: Maybe<OsPlatformEnumType>;\n preferredRegion: Scalars['String']['output'];\n promoCodes?: Maybe<Array<Scalars['String']['output']>>;\n redeemedRewards?: Maybe<Array<RedeemedRewardType>>;\n roles: Array<UserRoleEnumType>;\n school?: Maybe<Scalars['ID']['output']>;\n stripe?: Maybe<StripeSubscriptionType>;\n termsAgreement?: Maybe<TermsAgreementType>;\n updatedAt: Scalars['Date']['output'];\n userActivity?: Maybe<UserActivityType>;\n vendor?: Maybe<Scalars['ID']['output']>;\n};\n\n/** Verify password reset token input type */\nexport type ValidateVerificationTokenInputType = {\n email: Scalars['String']['input'];\n verificationToken: Scalars['String']['input'];\n verificationType?: InputMaybe<VerificationEnumType>;\n};\n\nexport type ValidateVerificationTokenResponse = {\n data?: Maybe<Scalars['Boolean']['output']>;\n message?: Maybe<Scalars['String']['output']>;\n};\n\n/** Vendor apply form price range input type */\nexport type VendorApplyFormPriceRangeInputType = {\n max: Scalars['String']['input'];\n min: Scalars['String']['input'];\n};\n\n/** Vendor apply form stall size input type */\nexport type VendorApplyFormStallSizeInputType = {\n depth: Scalars['String']['input'];\n width: Scalars['String']['input'];\n};\n\n/** Vendor attributes input type */\nexport type VendorAttributesInputType = {\n details?: InputMaybe<Scalars['String']['input']>;\n isRequired: Scalars['Boolean']['input'];\n};\n\n/** Vendor attributes type */\nexport type VendorAttributesType = {\n details?: Maybe<Scalars['String']['output']>;\n isRequired: Scalars['Boolean']['output'];\n};\n\n/** Vendor availability input type */\nexport type VendorAvailabilityInputType = {\n corporate?: InputMaybe<Scalars['Boolean']['input']>;\n private?: InputMaybe<Scalars['Boolean']['input']>;\n school?: InputMaybe<Scalars['Boolean']['input']>;\n};\n\n/** Vendor availability type */\nexport type VendorAvailabilityType = {\n corporate: Scalars['Boolean']['output'];\n private: Scalars['Boolean']['output'];\n school: Scalars['Boolean']['output'];\n};\n\n/** Vendor calendar input type */\nexport type VendorCalendarInputType = {\n active?: InputMaybe<Scalars['Boolean']['input']>;\n calendarData?: InputMaybe<Array<InputMaybe<VendorLocationsInputType>>>;\n};\n\n/** Vendor calendar type */\nexport type VendorCalendarType = {\n active?: Maybe<Scalars['Boolean']['output']>;\n calendarData?: Maybe<Array<VendorLocationsType>>;\n};\n\n/** Vendor compliance input type */\nexport type VendorComplianceInputType = {\n foodBeverageLicense?: InputMaybe<Scalars['Boolean']['input']>;\n liabilityInsurance?: InputMaybe<Scalars['Boolean']['input']>;\n};\n\n/** Vendor compliance type */\nexport type VendorComplianceType = {\n foodBeverageLicense: Scalars['Boolean']['output'];\n liabilityInsurance: Scalars['Boolean']['output'];\n};\n\n/** Vendor Date time type */\nexport type VendorDateTimeType = {\n dateStatus?: Maybe<EventDateStatusEnumType>;\n endDate?: Maybe<Scalars['String']['output']>;\n endTime?: Maybe<Scalars['String']['output']>;\n startDate?: Maybe<Scalars['String']['output']>;\n startTime?: Maybe<Scalars['String']['output']>;\n};\n\n/** Vendor type enum */\nexport enum VendorEnumType {\n Shop = 'Shop',\n Stallholder = 'Stallholder'\n}\n\n/** Vendor info input type */\nexport type VendorInfoInputType = {\n compliance?: InputMaybe<VendorComplianceInputType>;\n documents?: InputMaybe<Array<InputMaybe<ResourceImageInputType>>>;\n documentsUpload?: InputMaybe<Array<InputMaybe<ResourceImageUploadInputType>>>;\n product: VendorProductInputType;\n requirements?: InputMaybe<VendorRequirementsInputType>;\n stallInfo: VendorStallInfoInputType;\n vendorId: Scalars['String']['input'];\n};\n\n/** Vendor info type */\nexport type VendorInfoType = {\n _id: Scalars['ID']['output'];\n active: Scalars['Boolean']['output'];\n compliance?: Maybe<VendorComplianceType>;\n documents?: Maybe<Array<ResourceImageType>>;\n product: VendorProductType;\n requirements?: Maybe<VendorRequirementsType>;\n stallInfo: VendorStallInfoType;\n vendorId: Scalars['ID']['output'];\n};\n\n/** Vendor input type */\nexport type VendorInputType = {\n active: Scalars['Boolean']['input'];\n availability?: InputMaybe<VendorAvailabilityInputType>;\n calendar?: InputMaybe<VendorCalendarInputType>;\n categories: Array<InputMaybe<CategoryInputType>>;\n claimed?: InputMaybe<Scalars['Boolean']['input']>;\n contactDetails?: InputMaybe<ContactDetailsInputType>;\n cover: ResourceImageInputType;\n coverUpload?: InputMaybe<ResourceImageUploadInputType>;\n description: Scalars['String']['input'];\n foodTruck: Scalars['Boolean']['input'];\n images?: InputMaybe<Array<InputMaybe<ResourceImageInputType>>>;\n imagesUpload?: InputMaybe<Array<InputMaybe<ResourceImageUploadInputType>>>;\n logo?: InputMaybe<ResourceImageInputType>;\n logoUpload?: InputMaybe<ResourceImageUploadInputType>;\n name: Scalars['String']['input'];\n products?: InputMaybe<VendorProductsInputType>;\n promoCodes?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;\n region: Scalars['String']['input'];\n socialMedia?: InputMaybe<Array<InputMaybe<SocialMediaInputType>>>;\n termsAgreement: TermsAgreementInputType;\n unregisteredVendorId?: InputMaybe<Scalars['ID']['input']>;\n vendorType: VendorEnumType;\n};\n\n/** Vendor location date time input type */\nexport type VendorLocationDateTimeInputType = {\n dateStatus?: InputMaybe<EventDateStatusEnumType>;\n endDate?: InputMaybe<Scalars['String']['input']>;\n endTime?: InputMaybe<Scalars['String']['input']>;\n startDate?: InputMaybe<Scalars['String']['input']>;\n startTime?: InputMaybe<Scalars['String']['input']>;\n};\n\n/** Vendor locations input type */\nexport type VendorLocationsInputType = {\n dateTime?: InputMaybe<VendorLocationDateTimeInputType>;\n description?: InputMaybe<Scalars['String']['input']>;\n location?: InputMaybe<LocationInputType>;\n resourceCover?: InputMaybe<Scalars['String']['input']>;\n resourceId?: InputMaybe<Scalars['String']['input']>;\n resourceLogo?: InputMaybe<Scalars['String']['input']>;\n resourceName?: InputMaybe<Scalars['String']['input']>;\n resourceType?: InputMaybe<ResourceTypeEnum>;\n};\n\n/** Vendor locations type */\nexport type VendorLocationsType = {\n dateTime?: Maybe<VendorDateTimeType>;\n description?: Maybe<Scalars['String']['output']>;\n location?: Maybe<LocationType>;\n};\n\n/** Vendor product input type */\nexport type VendorProductInputType = {\n foodFlavors: Array<InputMaybe<FoodFlavorEnumType>>;\n packaging: Array<InputMaybe<Scalars['String']['input']>>;\n priceRange: VendorApplyFormPriceRangeInputType;\n producedIn?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;\n};\n\n/** Vendor product list input type */\nexport type VendorProductListInputType = {\n description?: InputMaybe<Scalars['String']['input']>;\n name: Scalars['String']['input'];\n price: Scalars['Float']['input'];\n priceUnit: Scalars['String']['input'];\n productGroups?: InputMaybe<Array<Scalars['String']['input']>>;\n};\n\n/** Vendor product list type */\nexport type VendorProductListType = {\n description?: Maybe<Scalars['String']['output']>;\n name: Scalars['String']['output'];\n price: Scalars['Float']['output'];\n priceUnit: Scalars['String']['output'];\n productGroups?: Maybe<Array<Scalars['String']['output']>>;\n};\n\n/** Vendor product type */\nexport type VendorProductType = {\n foodFlavors: Array<FoodFlavorEnumType>;\n packaging?: Maybe<Array<Scalars['String']['output']>>;\n priceRange: MaxMinType;\n producedIn?: Maybe<Array<Scalars['String']['output']>>;\n};\n\n/** Vendor products input type */\nexport type VendorProductsInputType = {\n active?: InputMaybe<Scalars['Boolean']['input']>;\n productsList?: InputMaybe<Array<InputMaybe<VendorProductListInputType>>>;\n};\n\n/** Vendor products type */\nexport type VendorProductsType = {\n active?: Maybe<Scalars['Boolean']['output']>;\n productsList?: Maybe<Array<VendorProductListType>>;\n};\n\n/** Vendor requirements input type */\nexport type VendorRequirementsInputType = {\n electricity: VendorAttributesInputType;\n gazebo: VendorAttributesInputType;\n table: VendorAttributesInputType;\n};\n\n/** Vendor requirements type */\nexport type VendorRequirementsType = {\n electricity: VendorAttributesType;\n gazebo: VendorAttributesType;\n table: VendorAttributesType;\n};\n\n/** Vendor stall info input type */\nexport type VendorStallInfoInputType = {\n size: VendorApplyFormStallSizeInputType;\n};\n\n/** Vendor stall info type */\nexport type VendorStallInfoType = {\n size: DepthWidthType;\n};\n\n/** Vendor type */\nexport type VendorType = {\n _id: Scalars['ID']['output'];\n active: Scalars['Boolean']['output'];\n adIds?: Maybe<Array<Maybe<Scalars['ID']['output']>>>;\n approvedAt?: Maybe<Scalars['Date']['output']>;\n availability?: Maybe<VendorAvailabilityType>;\n calendar?: Maybe<VendorCalendarType>;\n categories: Array<CategoryType>;\n claimed: Scalars['Boolean']['output'];\n contactDetails?: Maybe<ContactDetailsType>;\n cover: ResourceImageType;\n createdAt: Scalars['Date']['output'];\n deletedAt?: Maybe<Scalars['Date']['output']>;\n description: Scalars['String']['output'];\n foodTruck: Scalars['Boolean']['output'];\n images?: Maybe<Array<ResourceImageType>>;\n logo?: Maybe<ResourceImageType>;\n name: Scalars['String']['output'];\n owner: OwnerType;\n posterUsage?: Maybe<PosterUsageType>;\n products?: Maybe<VendorProductsType>;\n promoCodes?: Maybe<Array<Scalars['String']['output']>>;\n rating?: Maybe<Scalars['Float']['output']>;\n region: Scalars['String']['output'];\n relatedPost?: Maybe<RelatedPostType>;\n relations?: Maybe<Array<ResourceRelationType>>;\n reviewCount?: Maybe<Scalars['Int']['output']>;\n sharePublic?: Maybe<SocialShareResourceType>;\n shareRelation?: Maybe<SocialShareResourceType>;\n slug: Scalars['String']['output'];\n socialMedia?: Maybe<Array<SocialMediaType>>;\n termsAgreement?: Maybe<TermsAgreementType>;\n unregisteredVendorId?: Maybe<Scalars['ID']['output']>;\n updatedAt: Scalars['Date']['output'];\n vendorInfoId?: Maybe<Scalars['ID']['output']>;\n vendorType: VendorEnumType;\n};\n\n/** Verification type enum */\nexport enum VerificationEnumType {\n Register = 'register',\n ResetPassword = 'resetPassword'\n}\n\n/** Video content data input type */\nexport type VideoContentDataInputType = {\n source: Scalars['String']['input'];\n title?: InputMaybe<Scalars['String']['input']>;\n};\n\n/** Video content data type */\nexport type VideoContentDataType = {\n source: Scalars['String']['output'];\n title?: Maybe<Scalars['String']['output']>;\n};\n","const OBJECT_ID_PATH_SEGMENT = \"[a-f0-9]{24}\";\nconst OBJECT_ID_PATH_SEGMENT_END = `${OBJECT_ID_PATH_SEGMENT}$`;\n\nexport const gameScreenIdentifierList = [\n {\n clue: \"Where your actions turn into a timeline.\",\n id: \"activities\",\n match: \"/profile/activities\",\n },\n {\n clue: \"Where conversations happen without speaking.\",\n id: \"chat\",\n match: \"/profile/chat\",\n },\n {\n clue: \"The place to redefine who you are.\",\n id: \"edit-profile\",\n match: \"/profile/edit-profile\",\n },\n {\n clue: \"A single moment worth showing up for.\",\n id: \"single-event\",\n match: new RegExp(`^/events/${OBJECT_ID_PATH_SEGMENT_END}`),\n },\n {\n clue: \"What’s happening around you, right now.\",\n id: \"events-near-me\",\n match: \"/events/events-near-me\",\n },\n {\n clue: \"Where events appear as pins on a map.\",\n id: \"events-map\",\n match: \"/events/events-map\",\n },\n {\n clue: \"A collection of events worth attending.\",\n id: \"events\",\n match: \"/events\",\n },\n {\n clue: \"What’s happening in a wider area — not just nearby.\",\n id: \"events-region\",\n match: /^\\/events\\/region\\/[^/]+$/,\n },\n {\n clue: \"Where fun becomes a challenge.\",\n id: \"games\",\n match: \"/games\",\n },\n {\n clue: \"Your starting point for everything.\",\n id: \"home\",\n match: \"/\",\n },\n {\n clue: \"Where the app whispers what you shouldn’t miss.\",\n id: \"notifications\",\n match: \"/notifications\",\n },\n {\n clue: \"Where you fine-tune your experience.\",\n id: \"options\",\n match: \"/options\",\n },\n {\n clue: \"An organisation or creator supporting the community.\",\n id: \"single-partner\",\n match: new RegExp(`^/partners/${OBJECT_ID_PATH_SEGMENT_END}`),\n },\n {\n clue: \"Organisations and creators supporting the community.\",\n id: \"partners\",\n match: \"/partners\",\n },\n {\n clue: \"A single published post in full view.\",\n id: \"single-visitor-post\",\n match: new RegExp(`^/visitors/post/${OBJECT_ID_PATH_SEGMENT_END}`),\n },\n {\n clue: \"Your identity, on display.\",\n id: \"profile\",\n match: \"/profile\",\n },\n {\n clue: \"One stallholder offering something valuable.\",\n id: \"single-vendor\",\n match: new RegExp(`^/vendors/${OBJECT_ID_PATH_SEGMENT_END}`),\n },\n {\n clue: \"Where every stallholder waits under the right category.\",\n id: \"vendors\",\n match: \"/vendors\",\n },\n {\n clue: \"Where you browse articles and posts from around the platform.\",\n id: \"visitors\",\n match: \"/visitors\",\n },\n] as const;\n\nexport type GamePlacement = (typeof gameScreenIdentifierList)[number][\"id\"];\nexport type GamePlacementClue = (typeof gameScreenIdentifierList)[number][\"clue\"];\n\n/**\n * Runtime shape used by dailyClueGame.ts utilities.\n * Uses JS Date (not ISO string) because it's constructed at runtime.\n * Distinct from the generated DailyClueGameDataType which uses string dates.\n */\nexport type DailyClueGameData = {\n points: number;\n streak: number;\n gameFields: {\n gameDate: { startDate: Date; endDate: Date };\n gameSolution: string;\n };\n lastFoundDate: Date | null;\n letterInfo: {\n collected: string[] | null;\n solutionShuffled: string[];\n todaysClue: GamePlacementClue | null;\n todaysLetter: string | null;\n todaysPlacement: GamePlacement | null;\n };\n};\n","import dayjs from \"dayjs\";\nimport customParseFormat from \"dayjs/plugin/customParseFormat.js\";\nimport isSameOrAfter from \"dayjs/plugin/isSameOrAfter.js\";\nimport timezone from \"dayjs/plugin/timezone.js\";\nimport utc from \"dayjs/plugin/utc.js\";\n\nimport { EventDateStatusEnumType } from \"../generated/graphql\";\n\nimport { mapArrayToOptions } from \"./mapArrayToOptions\";\n\nexport const dateFormat = \"DD-MM-YYYY\";\nexport const timeFormat = \"HH:mm\";\n\n// Enable custom format parsing\ndayjs.extend(customParseFormat);\ndayjs.extend(utc);\ndayjs.extend(timezone);\ndayjs.extend(isSameOrAfter);\n\nconst NZ_TZ = \"Pacific/Auckland\";\n\nexport function toNZTime(date?: Date | string) {\n return date ? dayjs(date).tz(NZ_TZ) : dayjs().tz(NZ_TZ);\n}\n\n/** Start of the calendar day in Pacific/Auckland (daily games, streaks, etc.). */\nexport function nzStartOfDay(\n input?: Date | string | number | null,\n): dayjs.Dayjs {\n if (input == null) {\n return dayjs().tz(NZ_TZ).startOf(\"day\");\n }\n return dayjs.tz(input, NZ_TZ).startOf(\"day\");\n}\n\ntype DateFormat = \"date\" | \"time\" | \"datetime\";\n\n/**\n * Format a date string to a more readable format.\n * @param dateStr - the date string\n * @param timeStr - optional time string\n * @param display - 'date' | 'time' | 'datetime'\n * @returns formatted string based on display option\n */\nexport const formatDate = (\n dateStr: string,\n display: DateFormat = \"datetime\",\n timeStr?: string,\n) => {\n // Combine date and time into a single string if time is provided\n const dateTimeStr = timeStr ? `${dateStr} ${timeStr}` : dateStr;\n\n // Parse with formats\n const dateTime = timeStr\n ? dayjs(dateTimeStr, `${dateFormat} ${timeFormat}`)\n : dayjs(dateStr, dateFormat);\n\n // Format parts\n const formattedDate = dateTime.format(\"dddd, D MMMM, YYYY\");\n const formattedTime = dateTime.format(\"h:mm a\");\n\n // Return based on display option\n switch (display) {\n case \"date\":\n return formattedDate;\n case \"time\":\n return formattedTime;\n case \"datetime\":\n return `${formattedDate} at ${formattedTime}`;\n default:\n return formattedDate;\n }\n};\n\nexport const getCurrentAndFutureDates = <\n T extends { startDate: string; startTime: string },\n>(\n dates: T[],\n): T[] => {\n const now = dayjs(); // current date and time\n\n return dates.filter((dateObj) => {\n const dateTime = dayjs(\n `${dateObj.startDate} ${dateObj.startTime}`,\n `${dateFormat} ${timeFormat}`,\n );\n return dateTime.isSameOrAfter(now);\n });\n};\n\nexport const isFutureDatesBeforeThreshold = (\n date: {\n startDate: string;\n startTime: string;\n },\n minHoursFromNow: number,\n): boolean => {\n const threshold = minHoursFromNow\n ? dayjs().add(minHoursFromNow, \"hour\")\n : dayjs().startOf(\"day\");\n\n const dateTime = dayjs(\n `${date.startDate} ${date.startTime}`,\n `${dateFormat} ${timeFormat}`,\n );\n\n return dateTime.isSameOrAfter(threshold);\n};\n\nexport const formatTimestamp = (timestamp: string) => {\n const formattedDate = toNZTime(timestamp).format(dateFormat);\n\n return formatDate(formattedDate, \"date\");\n};\n\nexport const isIsoDateString = (value: unknown): value is string => {\n return typeof value === \"string\" && !Number.isNaN(Date.parse(value));\n};\n\n/**\n * Sort an array of date strings by their proximity to the current date.\n * @param dates - The array of date strings to sort.\n * @returns - The sorted array of date strings.\n */\nexport function sortDatesChronologically<\n T extends { startDate: string; startTime: string },\n>(dates: T[]): T[] {\n if (!dates?.length) {\n return [];\n }\n\n return [...dates].sort((a, b) => {\n const dateTimeFormat = `${dateFormat} ${timeFormat}`;\n const dateA = dayjs(`${a.startDate} ${a.startTime}`, dateTimeFormat);\n const dateB = dayjs(`${b.startDate} ${b.startTime}`, dateTimeFormat);\n return dateA.valueOf() - dateB.valueOf(); // chronological order\n });\n}\n\nexport const futureTimePeriods = mapArrayToOptions(\n Object.values(EventDateStatusEnumType),\n)\n .filter(\n (period) =>\n period.value !== EventDateStatusEnumType.StartingSoon &&\n period.value !== EventDateStatusEnumType.Canceled &&\n period.value !== EventDateStatusEnumType.Rescheduled &&\n period.value !== EventDateStatusEnumType.Started &&\n period.value !== EventDateStatusEnumType.Ended &&\n period.value !== EventDateStatusEnumType.Invalid,\n )\n .map((period) => ({\n label: period.value.replaceAll(\"_\", \" \"),\n value: period.value,\n }));\n","import { OptionItem } from \"src/types\";\n\n/**\n * Convert an array of strings to an array of objects with label and value properties.\n */\nexport const mapArrayToOptions = (items: string[]): OptionItem[] =>\n items.map((item) => ({\n label: item,\n value: item,\n }));\n","/** Path segments for relation share URLs — must match mobile `RelationTitle` values. */\nexport const RELATION_SHARE_INVITATION = \"invitation\" as const;\nexport const RELATION_SHARE_APPLICATION = \"application\" as const;\n\n/**\n * Bump when relation overlay SVG/layout changes so og:image URLs and API ETags\n * invalidate after deploy. Facebook caches preview JPEGs by exact URL — changing\n * this value forces crawlers to fetch a fresh image after server deploy.\n */\nexport const RELATION_OVERLAY_LAYOUT_VERSION = 43;\n\nexport const RELATION_SHARE_RESOURCE_TYPES = [\n RELATION_SHARE_INVITATION,\n RELATION_SHARE_APPLICATION,\n] as const;\n\nexport type RelationShareResourceType =\n (typeof RELATION_SHARE_RESOURCE_TYPES)[number];\n\nexport function isRelationShareResourceType(\n resourceType: string,\n): resourceType is RelationShareResourceType {\n return (RELATION_SHARE_RESOURCE_TYPES as readonly string[]).includes(\n resourceType,\n );\n}\n","import {\n RELATION_SHARE_APPLICATION,\n RELATION_SHARE_INVITATION,\n type RelationShareResourceType,\n} from \"./relationShareTypes\";\n\nexport {\n RELATION_SHARE_APPLICATION,\n RELATION_SHARE_INVITATION,\n RELATION_OVERLAY_LAYOUT_VERSION,\n RELATION_SHARE_RESOURCE_TYPES,\n isRelationShareResourceType,\n type RelationShareResourceType,\n} from \"./relationShareTypes\";\n\n/** Open Graph recommended preview size (must match admin `SHARE_OG_IMAGE_*`). */\nexport const SOCIAL_IMAGE_WIDTH = 1200;\n\n/** Open Graph recommended preview size (must match admin `SHARE_OG_IMAGE_*`). */\nexport const SOCIAL_IMAGE_HEIGHT = 630;\n\n/** Keep in sync with `CLUEMART_MAIN_DOMAIN_URL` in utils (avoid utils↔sharing import cycle). */\nexport const SHARE_SITE_URL = \"https://cluemart.co.nz\";\n\n/** Calendar marker for invitation market-dates share copy (U+1F4C5 📅). */\nexport const SHARE_CALENDAR_ICON = \"\\u{1F4C5}\";\n\nexport const SHARE_MARKET_DATES_SECTION_HEADING = `${SHARE_CALENDAR_ICON} Market dates:`;\n\n/** Check mark for invitation requirements share copy (U+2705 ✅). */\nexport const SHARE_CHECKMARK_ICON = \"\\u{2705}\";\n\nexport const SHARE_REQUIREMENTS_SECTION_HEADING = `${SHARE_CHECKMARK_ICON} Requirements:`;\n\n/** Information marker for tags share copy (U+2139 ℹ️). */\nexport const SHARE_INFO_ICON = \"\\u{2139}\\u{FE0F}\";\n\nexport const SHARE_TAGS_SECTION_HEADING = `${SHARE_INFO_ICON} Tags:`;\n\n/** Standalone line when `rainOrShine` is true (invitation share + OG section parsing). */\nexport const SHARE_RAIN_OR_SHINE_LINE = \"Rain or Shine\";\n\n/** Standalone line when `foodTruck` is true (application share + OG section parsing). */\nexport const SHARE_FOOD_TRUCK_LINE = \"Food Truck\";\n\n/** Prefix for application compliance line (share text + OG section parsing). */\nexport const SHARE_COMPLIANCE_PREFIX = `${SHARE_CHECKMARK_ICON} Compliance:`;\n\n/** Label tag for application categories share copy (U+1F3F7 🏷️). */\nexport const SHARE_CATEGORY_ICON = \"\\u{1F3F7}\\u{FE0F}\";\n\nexport const SHARE_CATEGORIES_SECTION_HEADING = `${SHARE_CATEGORY_ICON} Categories:`;\n\n/** Straight ruler for application stall-size share copy (U+1F4CF 📏). */\nexport const SHARE_RULER_ICON = \"\\u{1F4CF}\";\n\n/** Prefix for application stall-size line (share text + OG section parsing). */\nexport const SHARE_STALL_SIZE_PREFIX = `${SHARE_RULER_ICON} Stall size:`;\n\n/** Dollar marker for price-range share copy (U+0024 $ — text, not emoji, so it stays black). */\nexport const SHARE_DOLLAR_ICON = \"$\";\n\n/** Prefix for application price-range line (share text + OG section parsing). */\nexport const SHARE_PRICE_RANGE_PREFIX = `${SHARE_DOLLAR_ICON} Price range:`;\n\n/** Alarm clock for invitation application-deadline share copy (U+23F0 ⏰). */\nexport const SHARE_CLOCK_ICON = \"\\u{23F0}\";\n\n/** Prefix for the invitation application-deadline sentence (share text + OG section parsing). */\nexport const SHARE_APPLICATION_DEADLINE_PREFIX = `${SHARE_CLOCK_ICON} Application deadline:`;\n\n/** First line on share sheet messages, Facebook SDK quote, and `og:description`. */\nexport const SHARE_MORE_INFO_LINE = \"Shared from ClueMart\";\n\nexport const DEFAULT_SHARE_OG_IMAGE = `${SHARE_SITE_URL}/assets/logo.webp`;\n\nexport const RESOURCE_SHARE_TYPES = [\n \"market\",\n \"stallholder\",\n \"partner\",\n \"affiliate\",\n \"school\",\n] as const;\n\nexport type ResourceShareType = (typeof RESOURCE_SHARE_TYPES)[number];\n\nexport const POST_SHARE_RESOURCE_TYPES = [\n \"market_faces\",\n \"clue_bites\",\n \"play_and_win\",\n] as const;\n\nexport type PostShareResourceType = (typeof POST_SHARE_RESOURCE_TYPES)[number];\n\nexport type ShareResourceType =\n | ResourceShareType\n | PostShareResourceType\n | RelationShareResourceType;\n\nexport const SHARE_RESOURCE_LABEL: Record<ShareResourceType, string> = {\n [RELATION_SHARE_APPLICATION]: \"Application\",\n [RELATION_SHARE_INVITATION]: \"Invitation\",\n clue_bites: \"Clue Bites\",\n market_faces: \"Market Faces\",\n play_and_win: \"Play & Win\",\n market: \"Market\",\n partner: \"Partner\",\n stallholder: \"Stallholder\",\n affiliate: \"Affiliate\",\n school: \"School\",\n};\n\nexport function isPostShareResourceType(\n resourceType: ShareResourceType,\n): resourceType is PostShareResourceType {\n return (POST_SHARE_RESOURCE_TYPES as readonly string[]).includes(\n resourceType,\n );\n}\n","import {\n Control,\n FieldValues,\n FormState,\n UseFormGetValues,\n UseFormHandleSubmit,\n UseFormReset,\n UseFormSetValue,\n UseFormWatch,\n} from \"react-hook-form\";\n\nimport {\n EventEnumType,\n PostTypeEnum,\n ResourceTypeEnum,\n SocialMediaEnumType,\n LicencesEnumType,\n} from \"../generated/graphql\";\nimport type {\n DateTimeType,\n EventListItemType,\n LocationType,\n ResourceImageType,\n VendorType,\n} from \"../generated/graphql\";\n\nexport type {\n DateTimeType,\n LocationGeoType,\n LocationType,\n ResourceImageType,\n} from \"../generated/graphql\";\nexport const PROMO_CODE_PREFIX = \"CM-\";\n\nexport type PromoCodeType = `${typeof PROMO_CODE_PREFIX}${string}`;\n\nexport type Nullable<T> = {\n [K in keyof T]: T[K] | null | undefined;\n};\n\n/** Uniform mutation response envelope used across GraphQL mutations. */\nexport type MutationResponse<T> = {\n data: T | null;\n message: string | null;\n};\n\nexport type DeviceInfo = {\n appBuildNumber: string;\n appId: string;\n appVersion: string;\n brand: string;\n deviceName: string;\n installationId: string;\n manufacturer: string;\n modelName: string;\n osName: string;\n osVersion: string;\n timestamp: string;\n};\n\nexport type TermsAgreement = DeviceInfo & {\n termVersion: string;\n};\n\nexport type ResourceContactDetailsType = {\n email?: string | null;\n landlinePhone?: string | null;\n mobilePhone?: string | null;\n};\n\n/** Form/UI social links — optional fields. GraphQL `SocialMediaType` requires name+link. */\nexport type SocialMediaType = {\n name?: SocialMediaEnumType;\n link?: string;\n};\n\nexport type UserLicenceType = {\n expiryDate: Date;\n issuedDate: Date;\n licenceType: LicencesEnumType;\n prevLicenceType?: LicencesEnumType | null;\n};\n\nexport type OwnerType = {\n email: string;\n userId: string;\n};\n\nexport interface BaseResourceTypeFormData {\n _id?: string;\n active: boolean;\n contactDetails: ResourceContactDetailsType | null;\n cover: ResourceImageType;\n coverUpload?: ResourceImageType | null;\n description: string;\n images?: ResourceImageType[] | null;\n imagesUpload?: ResourceImageType[] | null;\n logo?: ResourceImageType | null;\n logoUpload?: ResourceImageType | null;\n name: string;\n promoCodes?: PromoCodeType[] | null;\n region: string;\n socialMedia: SocialMediaType[] | null;\n termsAgreement?: TermsAgreement | null;\n}\n\nexport type PosterUsageType = {\n month: string;\n count: number;\n};\n\nexport type RelatedPostType = {\n postActive: boolean;\n postId: string;\n postSlug: string;\n postType: PostTypeEnum;\n};\n\nexport type SocialShareResourceType = {\n qrCode: ResourceImageType;\n socialImage: ResourceImageType;\n};\n\nexport type BaseResourceType = Omit<\n BaseResourceTypeFormData,\n \"_id\" | \"coverUpload\" | \"imagesUpload\" | \"logoUpload\"\n> & {\n _id: string;\n adIds?: string[] | null;\n /** ISO 8601 UTC string — GraphQL Date scalar serializes to string, not JS Date. */\n approvedAt?: string | null;\n createdAt: string;\n deletedAt: string | null;\n owner: OwnerType;\n posterUsage?: PosterUsageType | null;\n rating?: number | null;\n relatedPost?: RelatedPostType | null;\n reviewCount?: number | null;\n slug: string;\n updatedAt: string | null;\n};\n\nexport type Region = {\n latitude: number;\n latitudeDelta: number;\n longitude: number;\n longitudeDelta: number;\n};\n\nexport type ResourceDetails = {\n dateTime: DateTimeType[] | null;\n description: string | null;\n eventStatus?: EventStatusType | null;\n location: LocationType | null;\n resourceCover: ResourceImageType | null;\n resourceId: string;\n resourceLogo: ResourceImageType | null;\n resourceName: string;\n resourceType: ResourceTypeEnum;\n};\n\nexport type GeocodeLocation = Pick<LocationType, \"latitude\" | \"longitude\">;\n\nexport type EventStatusType = {\n claimed: boolean;\n eventType: EventEnumType;\n googlePlaceId?: string | null;\n};\n\nexport interface FormField {\n disabled?: boolean;\n helperText?: string;\n isTextArea?: boolean;\n keyboardType?:\n | \"default\"\n | \"email-address\"\n | \"number-pad\"\n | \"url\"\n | \"decimal-pad\"\n | \"phone-pad\";\n name: string;\n placeholder: string;\n required?: boolean;\n secureTextEntry?: boolean;\n}\n\nexport interface FormDateField {\n dateMode: \"date\" | \"time\";\n helperText?: string;\n name: \"endDate\" | \"endTime\" | \"startDate\" | \"startTime\";\n placeholder: string;\n}\n\nexport interface SubcategoryItems {\n id: string;\n name: string;\n description?: string | null;\n}\n\nexport interface Subcategory {\n id: string;\n name: string;\n items?: SubcategoryItems[] | null;\n}\n\nexport interface Category {\n color?: string | null;\n description?: string | null;\n id: string;\n name: string;\n subcategories: Subcategory[];\n}\n\nexport type OptionItem = {\n value: string;\n label: string;\n};\n\nexport type ImageObjectType = {\n uri: string;\n type: string;\n name: string;\n};\n\nexport interface ResourceConnectionsType {\n events: EventListItemType[] | null;\n vendors: VendorType[] | null;\n}\n\nexport interface CreateFormData<T extends FieldValues> {\n control: Control<T, any>;\n fields: T;\n formState: FormState<T>;\n handleSubmit: UseFormHandleSubmit<T, any>;\n reset: UseFormReset<T>;\n setValue: UseFormSetValue<T>;\n watch: UseFormWatch<T>;\n getValues: UseFormGetValues<T>;\n}\n\nexport interface UseGetResourcesByRegionOptions {\n onlyClaimed?: boolean;\n limit?: number;\n offset?: number;\n}\n","/**\n * Adapters between generated GraphQL Event entity types and form/UI shapes.\n *\n * GraphQL entities are not form state — these converters make the differences\n * explicit (null vs undefined, required vs draft-optional social fields,\n * string categories vs form unions, EventType vs EventListItemType).\n */\nimport { ResourceTypeEnum, SocialMediaEnumType } from \"../generated/graphql\";\nimport type {\n DateTimeType,\n EventInfoType,\n EventListItemType,\n EventType,\n RefundPolicyType,\n RequirementType,\n SocialMediaType as GraphqlSocialMediaType,\n} from \"../generated/graphql\";\n\nimport type {\n DateTimeWithPriceType,\n EventFormData,\n EventInfoFormData,\n PaymentInfoType,\n RefundPolicy,\n Requirement,\n StallType,\n} from \"./event\";\nimport type { PromoCodeType, ResourceDetails, SocialMediaType } from \"./global\";\nimport { PROMO_CODE_PREFIX } from \"./global\";\n\nfunction toPromoCodeType(code: string): PromoCodeType {\n if (!code.startsWith(PROMO_CODE_PREFIX)) {\n throw new Error(`Invalid promo code from GraphQL: ${JSON.stringify(code)}`);\n }\n return code as PromoCodeType;\n}\n\nconst REQUIREMENT_CATEGORIES = [\n \"Food Safety\",\n \"Environment\",\n \"Operations\",\n \"Legal & Safety\",\n] as const satisfies readonly Requirement[\"category\"][];\n\nconst REFUND_CATEGORIES = [\n \"Cancelled by Organiser\",\n \"Cancelled by Vendor\",\n] as const satisfies readonly RefundPolicy[\"category\"][];\n\nfunction isRequirementCategory(\n value: string,\n): value is Requirement[\"category\"] {\n return (REQUIREMENT_CATEGORIES as readonly string[]).includes(value);\n}\n\nfunction isRefundCategory(value: string): value is RefundPolicy[\"category\"] {\n return (REFUND_CATEGORIES as readonly string[]).includes(value);\n}\n\nfunction isSocialMediaName(value: string): value is SocialMediaEnumType {\n return (Object.values(SocialMediaEnumType) as string[]).includes(value);\n}\n\n/**\n * GraphQL SocialMediaType requires name+link once stored.\n * Form SocialMediaType keeps both optional so drafts can leave rows blank.\n */\nexport function toFormSocialMedia(\n socialMedia: ReadonlyArray<GraphqlSocialMediaType> | null | undefined,\n): SocialMediaType[] | null {\n if (socialMedia == null) {\n return null;\n }\n return socialMedia.map((item) => ({\n link: item.link,\n name: isSocialMediaName(item.name) ? item.name : undefined,\n }));\n}\n\nexport function toFormRequirement(item: RequirementType): Requirement {\n if (!isRequirementCategory(item.category)) {\n throw new Error(\n `Invalid requirement category from GraphQL: ${JSON.stringify(item.category)}`,\n );\n }\n return {\n category: item.category,\n label: item.label,\n value: item.value,\n };\n}\n\nexport function toFormRefundPolicy(item: RefundPolicyType): RefundPolicy {\n if (!isRefundCategory(item.category)) {\n throw new Error(\n `Invalid refund-policy category from GraphQL: ${JSON.stringify(item.category)}`,\n );\n }\n return {\n category: item.category,\n label: item.label,\n value: item.value,\n };\n}\n\nfunction toFormStallType(stall: {\n label: string;\n price: number;\n stallCapacity: number;\n}): StallType {\n return {\n label: stall.label,\n price: stall.price,\n stallCapacity: stall.stallCapacity,\n };\n}\n\nfunction toFormDateTimeWithPrice(\n row: EventInfoType[\"dateTime\"][number],\n): DateTimeWithPriceType {\n return {\n dateStatus: row.dateStatus,\n endDate: row.endDate,\n endTime: row.endTime,\n stallTypes: row.stallTypes.map(toFormStallType),\n startDate: row.startDate,\n startTime: row.startTime,\n };\n}\n\nfunction toFormPaymentInfo(\n item: EventInfoType[\"paymentInfo\"][number],\n): PaymentInfoType {\n return {\n accountHolderName: item.accountHolderName ?? undefined,\n accountNumber: item.accountNumber ?? undefined,\n link: item.link ?? undefined,\n paymentMethod: item.paymentMethod,\n };\n}\n\n/**\n * Project a full EventType onto EventListItemType fields.\n * Needed because the two GraphQL object types are distinct (__typename) even\n * when the list-item fields are a subset of the full event.\n */\nexport function eventToEventListItem(event: EventType): EventListItemType {\n return {\n _id: event._id,\n active: event.active,\n approvedAt: event.approvedAt,\n claimed: event.claimed,\n cover: event.cover,\n createdAt: event.createdAt,\n dateTime: event.dateTime,\n deletedAt: event.deletedAt,\n description: event.description,\n eventType: event.eventType,\n googlePlaceId: event.googlePlaceId,\n images: event.images ?? undefined,\n location: event.location,\n logo: event.logo,\n name: event.name,\n rainOrShine: event.rainOrShine,\n rating: event.rating,\n region: event.region,\n relations: event.relations ?? undefined,\n reviewCount: event.reviewCount,\n slug: event.slug,\n updatedAt: event.updatedAt,\n };\n}\n\n/**\n * Convert a stored Event entity into EventFormData for create/edit forms.\n * Maps GraphQL nullability (undefined / Maybe) onto form null defaults and\n * converts GraphQL social media into draft-optional form rows.\n */\nexport function eventToFormData(event: EventType): EventFormData {\n return {\n _id: event._id,\n active: event.active,\n claimed: event.claimed,\n contactDetails: event.contactDetails ?? null,\n cover: event.cover,\n coverUpload: null,\n dateTime: event.dateTime,\n description: event.description,\n eventType: event.eventType,\n googlePlaceId: event.googlePlaceId ?? null,\n images: event.images ?? null,\n imagesUpload: null,\n location: event.location,\n logo: event.logo ?? null,\n logoUpload: null,\n name: event.name,\n nzbn: event.nzbn,\n promoCodes: (event.promoCodes ?? [])\n .filter((code): code is string => code != null)\n .map(toPromoCodeType),\n provider: event.provider ?? null,\n rainOrShine: event.rainOrShine,\n region: event.region,\n socialMedia: toFormSocialMedia(event.socialMedia),\n tags: event.tags,\n termsAgreement: event.termsAgreement\n ? {\n appBuildNumber: event.termsAgreement.appBuildNumber,\n appId: event.termsAgreement.appId,\n appVersion: event.termsAgreement.appVersion,\n brand: event.termsAgreement.brand,\n deviceName: event.termsAgreement.deviceName,\n installationId: event.termsAgreement.installationId,\n manufacturer: event.termsAgreement.manufacturer,\n modelName: event.termsAgreement.modelName,\n osName: event.termsAgreement.osName,\n osVersion: event.termsAgreement.osVersion,\n termVersion: event.termsAgreement.termVersion,\n timestamp: event.termsAgreement.timestamp,\n }\n : null,\n };\n}\n\nexport type EventInfoToFormDataOptions = {\n /** Default checkbox rows merged in when editing so unchecked options remain visible. */\n defaultRefundPolicy?: RefundPolicy[];\n defaultRequirements?: Requirement[];\n};\n\n/**\n * Convert EventInfoType into EventInfoFormData, optionally merging default\n * requirement/refund checkbox options that are not yet saved on the server.\n */\nexport function eventInfoToFormData(\n eventInfo: EventInfoType,\n options: EventInfoToFormDataOptions = {},\n): EventInfoFormData {\n const savedRefund = eventInfo.refundPolicy.map(toFormRefundPolicy);\n const savedRequirements = (eventInfo.requirements ?? []).map(\n toFormRequirement,\n );\n\n const refundPolicy = [\n ...savedRefund,\n ...(options.defaultRefundPolicy ?? []).filter(\n (option) => !savedRefund.some((saved) => saved.label === option.label),\n ),\n ];\n\n const requirements = [\n ...savedRequirements,\n ...(options.defaultRequirements ?? []).filter(\n (option) =>\n !savedRequirements.some((saved) => saved.label === option.label),\n ),\n ];\n\n return {\n _id: eventInfo._id,\n applicationDeadlineHours: eventInfo.applicationDeadlineHours,\n dateTime: eventInfo.dateTime.map(toFormDateTimeWithPrice),\n eventId: eventInfo.eventId,\n packInTime: eventInfo.packInTime,\n paymentDueHours: eventInfo.paymentDueHours,\n paymentInfo: eventInfo.paymentInfo.map(toFormPaymentInfo),\n refundPolicy,\n requirements,\n };\n}\n\n/**\n * Build EventInfoFormData when no EventInfo exists yet, seeding date rows\n * from the parent Event's dateTime (empty stallTypes).\n */\nexport function eventToNewEventInfoFormData(\n event: EventType,\n options: {\n defaultRefundPolicy: RefundPolicy[];\n defaultRequirements: Requirement[];\n },\n): EventInfoFormData {\n return {\n applicationDeadlineHours: 48,\n dateTime: event.dateTime.map((date) => ({\n dateStatus: date.dateStatus,\n endDate: date.endDate,\n endTime: date.endTime,\n stallTypes: [],\n startDate: date.startDate,\n startTime: date.startTime,\n })),\n eventId: event._id,\n packInTime: 2,\n paymentDueHours: 24,\n paymentInfo: [],\n refundPolicy: options.defaultRefundPolicy,\n requirements: options.defaultRequirements,\n };\n}\n\n/**\n * Ad picker needs a non-null description string even when EventListItemType\n * omits description (list query field is optional in the schema).\n */\nexport function eventListItemToAdSelectableResource(event: EventListItemType): {\n _id: string;\n cover: NonNullable<EventListItemType[\"cover\"]>;\n description: string;\n images?: EventListItemType[\"images\"];\n logo?: EventListItemType[\"logo\"];\n name: string;\n region: string;\n slug: string;\n} {\n if (event.cover == null) {\n throw new Error(\n `EventListItem ${event._id} is missing cover; cannot build ad resource.`,\n );\n }\n return {\n _id: event._id,\n cover: event.cover,\n description: event.description ?? \"\",\n images: event.images,\n logo: event.logo,\n name: event.name,\n region: event.region,\n slug: event.slug,\n };\n}\n\n/**\n * Map a list-item event into ResourceDetails for mobile action sheets.\n * Coerces GraphQL `description?: string | null` to `string | null`.\n */\nexport function eventListItemToResourceDetails(\n item: EventListItemType,\n resourceType: ResourceTypeEnum,\n): ResourceDetails {\n return {\n dateTime: item.dateTime,\n description: item.description ?? null,\n eventStatus: {\n claimed: item.claimed,\n eventType: item.eventType,\n googlePlaceId: item.googlePlaceId ?? null,\n },\n location: item.location,\n resourceCover: item.cover ?? null,\n resourceId: item._id,\n resourceLogo: item.logo ?? null,\n resourceName: item.name,\n resourceType,\n };\n}\n\n/**\n * Seed create-event form fields from a Google-place EventListItem match.\n * Merges onto caller-supplied defaults (does not invent missing form fields).\n */\nexport function eventListItemToCreateEventFormSeed(\n item: EventListItemType,\n defaults: EventFormData,\n): EventFormData {\n return {\n ...defaults,\n active: item.active,\n claimed: item.claimed,\n dateTime: item.dateTime,\n description: item.description ?? \"\",\n eventType: item.eventType,\n googlePlaceId: item.googlePlaceId,\n location: { ...item.location },\n name: item.name,\n rainOrShine: item.rainOrShine,\n region: item.region,\n };\n}\n\n/**\n * Narrow EventDateTimeWithPriceType rows to DateTimeType for consumers that\n * only need schedule fields (e.g. JSON-LD enrichment).\n */\nexport function eventInfoDateTimeToDateTime(\n rows: EventInfoType[\"dateTime\"],\n): DateTimeType[] {\n return rows.map((row) => ({\n dateStatus: row.dateStatus,\n endDate: row.endDate,\n endTime: row.endTime,\n startDate: row.startDate,\n startTime: row.startTime,\n }));\n}\n","/**\n * Canonical permission IDs. Add new permissions here first, then map them in\n * ROLE_PERMISSIONS. Prefer resource.action names (e.g. users.read).\n */\nexport const PERMISSIONS = [\n \"*\",\n // Dashboards\n \"dashboard.admin\",\n \"dashboard.affiliate\",\n \"dashboard.customer\",\n \"dashboard.event\",\n \"dashboard.partner\",\n \"dashboard.school\",\n \"dashboard.vendor\",\n // Admin: users\n \"users.delete\",\n \"users.read\",\n \"users.update\",\n // Admin: events\n \"events.create\",\n \"events.delete\",\n \"events.read\",\n \"events.update\",\n // Admin: vendors\n \"vendors.create\",\n \"vendors.delete\",\n \"vendors.read\",\n \"vendors.update\",\n // Admin: partners\n \"partners.create\",\n \"partners.delete\",\n \"partners.read\",\n \"partners.update\",\n // Admin: schools\n \"schools.create\",\n \"schools.delete\",\n \"schools.read\",\n \"schools.update\",\n // Admin: affiliates\n \"affiliates.create\",\n \"affiliates.delete\",\n \"affiliates.read\",\n \"affiliates.update\",\n // Admin: ads / posts / settings\n \"ads.create\",\n \"ads.delete\",\n \"ads.read\",\n \"ads.update\",\n \"posts.create\",\n \"posts.delete\",\n \"posts.read\",\n \"posts.update\",\n \"settings.read\",\n \"settings.update\",\n // Product: own-resource management\n \"affiliates.manage_own\",\n \"events.manage_own\",\n \"partners.manage_own\",\n \"schools.manage_own\",\n \"vendors.manage_own\",\n] as const;\n\nexport type Permission = (typeof PERMISSIONS)[number];\n\nexport const WILDCARD_PERMISSION: Permission = \"*\";\n","import { UserRoleEnumType } from \"../../generated/graphql\";\n\nimport type { Permission } from \"./permissions\";\n\nconst ADMIN_PERMISSIONS: readonly Permission[] = [\n \"dashboard.admin\",\n \"events.read\",\n \"events.create\",\n \"events.update\",\n \"events.delete\",\n \"vendors.read\",\n \"vendors.create\",\n \"vendors.update\",\n \"vendors.delete\",\n \"partners.read\",\n \"partners.create\",\n \"partners.update\",\n \"partners.delete\",\n \"schools.read\",\n \"schools.create\",\n \"schools.update\",\n \"schools.delete\",\n \"affiliates.read\",\n \"affiliates.create\",\n \"affiliates.update\",\n \"affiliates.delete\",\n \"ads.read\",\n \"ads.create\",\n \"ads.update\",\n \"ads.delete\",\n \"posts.read\",\n \"posts.create\",\n \"posts.update\",\n \"posts.delete\",\n];\n\n/**\n * Static role → permissions map. Source of truth for access.\n * Permissions for a user = union of all their roles' lists.\n */\nexport const ROLE_PERMISSIONS: Record<UserRoleEnumType, readonly Permission[]> =\n {\n [UserRoleEnumType.SuperAdmin]: [\"*\"],\n [UserRoleEnumType.Admin]: ADMIN_PERMISSIONS,\n [UserRoleEnumType.Customer]: [\"dashboard.customer\"],\n [UserRoleEnumType.Event]: [\"dashboard.event\", \"events.manage_own\"],\n [UserRoleEnumType.Vendor]: [\"dashboard.vendor\", \"vendors.manage_own\"],\n [UserRoleEnumType.Partner]: [\"dashboard.partner\", \"partners.manage_own\"],\n [UserRoleEnumType.School]: [\"dashboard.school\", \"schools.manage_own\"],\n [UserRoleEnumType.Affiliate]: [\n \"dashboard.affiliate\",\n \"affiliates.manage_own\",\n ],\n };\n","import { UserRoleEnumType } from \"../../generated/graphql\";\n\nimport { hasAnyRole } from \"./helpers\";\n\n/** Roles allowed to sign into the admin web app (CUSTOMER-only is denied). */\nexport const ADMIN_APP_ROLES = [\n UserRoleEnumType.SuperAdmin,\n UserRoleEnumType.Admin,\n UserRoleEnumType.Event,\n UserRoleEnumType.Vendor,\n UserRoleEnumType.Partner,\n UserRoleEnumType.School,\n UserRoleEnumType.Affiliate,\n] as const;\n\nexport type AdminAppRole = (typeof ADMIN_APP_ROLES)[number];\n\nexport type AdminDashboardContext =\n | \"staff\"\n | \"event\"\n | \"vendor\"\n | \"partner\"\n | \"school\"\n | \"affiliate\";\n\nexport type AdminDashboardContextInfo = {\n context: AdminDashboardContext;\n home: string;\n label: string;\n /** Path prefixes that belong to this context (including home). */\n pathPrefixes: readonly string[];\n roles: readonly UserRoleEnumType[];\n};\n\n/**\n * Priority order for default home + role switcher.\n * Staff first, then product roles.\n */\nexport const ADMIN_DASHBOARD_CONTEXTS: readonly AdminDashboardContextInfo[] = [\n {\n context: \"staff\",\n home: \"/dashboard\",\n label: \"Staff\",\n pathPrefixes: [\"/dashboard\"],\n roles: [UserRoleEnumType.SuperAdmin, UserRoleEnumType.Admin],\n },\n {\n context: \"event\",\n home: \"/event/dashboard\",\n label: \"Events\",\n pathPrefixes: [\"/event\"],\n roles: [UserRoleEnumType.Event],\n },\n {\n context: \"vendor\",\n home: \"/vendor/dashboard\",\n label: \"Stallholders\",\n pathPrefixes: [\"/vendor\"],\n roles: [UserRoleEnumType.Vendor],\n },\n {\n context: \"partner\",\n home: \"/partner/dashboard\",\n label: \"Partners\",\n pathPrefixes: [\"/partner\"],\n roles: [UserRoleEnumType.Partner],\n },\n {\n context: \"school\",\n home: \"/school/dashboard\",\n label: \"Schools\",\n pathPrefixes: [\"/school\"],\n roles: [UserRoleEnumType.School],\n },\n {\n context: \"affiliate\",\n home: \"/affiliate/dashboard\",\n label: \"Affiliate\",\n pathPrefixes: [\"/affiliate\"],\n roles: [UserRoleEnumType.Affiliate],\n },\n] as const;\n\nexport function canAccessAdminApp(\n roles: UserRoleEnumType[] | null | undefined,\n): boolean {\n return hasAnyRole(roles, ADMIN_APP_ROLES);\n}\n\nexport function getUsableAdminContexts(\n roles: UserRoleEnumType[] | null | undefined,\n): AdminDashboardContextInfo[] {\n return ADMIN_DASHBOARD_CONTEXTS.filter((ctx) => hasAnyRole(roles, ctx.roles));\n}\n\nexport function getDefaultAdminHome(\n roles: UserRoleEnumType[] | null | undefined,\n preferredContext?: AdminDashboardContext | null,\n): string {\n const usable = getUsableAdminContexts(roles);\n if (usable.length === 0) {\n return \"/login\";\n }\n\n if (preferredContext) {\n const preferred = usable.find((ctx) => ctx.context === preferredContext);\n if (preferred) return preferred.home;\n }\n\n return usable[0].home;\n}\n\nexport function resolveAdminContextFromPath(\n pathname: string,\n): AdminDashboardContext | null {\n for (const ctx of ADMIN_DASHBOARD_CONTEXTS) {\n if (\n ctx.pathPrefixes.some(\n (prefix) => pathname === prefix || pathname.startsWith(`${prefix}/`),\n )\n ) {\n return ctx.context;\n }\n }\n return null;\n}\n\nexport function canAccessAdminPath(\n roles: UserRoleEnumType[] | null | undefined,\n pathname: string,\n): boolean {\n if (!canAccessAdminApp(roles)) return false;\n\n const context = resolveAdminContextFromPath(pathname);\n if (!context) {\n // Authenticated admin-app users may hit non-dashboard admin routes later;\n // unknown paths are allowed only if they have any admin-app role.\n return true;\n }\n\n const info = ADMIN_DASHBOARD_CONTEXTS.find((ctx) => ctx.context === context);\n if (!info) return false;\n return hasAnyRole(roles, info.roles);\n}\n","/**\n * Adapters between generated GraphQL User/Auth entity types and form/UI shapes.\n *\n * GraphQL UserType is already the redacted client shape (no password /\n * refreshToken). These converters make remaining differences explicit:\n * branded promo codes, draft-optional terms, permission string → Permission,\n * and entity-to-form bridging (password fields stay empty — never round-trip).\n */\nimport type { Permission } from \"../auth/permissions\";\nimport { PERMISSIONS } from \"../auth/permissions\";\nimport type { UserType } from \"../generated/graphql\";\n\nimport type { PromoCodeType } from \"./global\";\nimport { PROMO_CODE_PREFIX } from \"./global\";\nimport type { UserFormData } from \"./user\";\n\nconst PERMISSION_SET = new Set<string>(PERMISSIONS);\n\nexport function toUserPermissions(\n permissions: ReadonlyArray<string>,\n): Permission[] {\n return permissions.filter((permission): permission is Permission =>\n PERMISSION_SET.has(permission),\n );\n}\n\nexport function toUserPromoCodes(\n codes: ReadonlyArray<string> | null | undefined,\n): PromoCodeType[] | null {\n if (codes == null) {\n return null;\n }\n return codes.map((code) => {\n if (!code.startsWith(PROMO_CODE_PREFIX)) {\n throw new Error(\n `Invalid promo code from GraphQL: ${JSON.stringify(code)}`,\n );\n }\n return code as PromoCodeType;\n });\n}\n\n/**\n * Convert a stored GraphQL UserType into UserFormData for profile edit forms.\n *\n * Password / confirmPassword are never populated from the entity (GraphQL\n * UserType does not include them). avatarUpload is a local draft field.\n * termsAgreement is copied field-by-field (form TermsAgreement vs GraphQL\n * TermsAgreementType — same fields, kept explicit like other resources).\n */\nexport function userToFormData(user: UserType): UserFormData {\n return {\n _id: user._id,\n active: user.active,\n avatar: user.avatar ?? null,\n avatarUpload: null,\n confirmPassword: null,\n email: user.email,\n firstName: user.firstName,\n isTester: user.isTester,\n lastName: user.lastName,\n location: user.location ?? null,\n password: null,\n platform: user.platform ?? undefined,\n preferredRegion: user.preferredRegion,\n termsAgreement: user.termsAgreement\n ? {\n appBuildNumber: user.termsAgreement.appBuildNumber,\n appId: user.termsAgreement.appId,\n appVersion: user.termsAgreement.appVersion,\n brand: user.termsAgreement.brand,\n deviceName: user.termsAgreement.deviceName,\n installationId: user.termsAgreement.installationId,\n manufacturer: user.termsAgreement.manufacturer,\n modelName: user.termsAgreement.modelName,\n osName: user.termsAgreement.osName,\n osVersion: user.termsAgreement.osVersion,\n termVersion: user.termsAgreement.termVersion,\n timestamp: user.termsAgreement.timestamp,\n }\n : null,\n };\n}\n","import { GameTypeEnumType } from \"../../generated/graphql\";\n\nexport const gameTypeToDisplayName: Record<GameTypeEnumType, string> = {\n [GameTypeEnumType.DailyClue]: \"Daily Clue\",\n [GameTypeEnumType.MiniQuiz]: \"Mini Quiz\",\n [GameTypeEnumType.OddOneOut]: \"Odd One Out\",\n};\n","import { LicencesEnumType } from \"../generated/graphql\";\n\n/** Tier keys in descending priority (highest first) for licence resolution. */\nexport const TIERS_BY_PRIORITY = [\"pro_plus\", \"pro\", \"standard\"] as const;\n\n/** Canonical subscription tier keys — matches Stripe/server tier identifiers. */\nexport type Tier = (typeof TIERS_BY_PRIORITY)[number];\n\n/** User-facing tier labels (decoupled from the Tier discriminant). */\nexport const TIER_DISPLAY_LABELS: Record<Tier, string> = {\n pro: \"Pro\",\n // eslint-disable-next-line camelcase\n pro_plus: \"Pro+ Ads\",\n standard: \"Standard\",\n};\n\n/** Maps licence enums to their canonical tier key. */\nexport const TIER_FROM_LICENCE: Record<LicencesEnumType, Tier> = {\n [LicencesEnumType.ProEvent]: \"pro\",\n [LicencesEnumType.ProPlusEvent]: \"pro_plus\",\n [LicencesEnumType.ProPlusVendor]: \"pro_plus\",\n [LicencesEnumType.ProVendor]: \"pro\",\n [LicencesEnumType.StandardEvent]: \"standard\",\n [LicencesEnumType.StandardPartner]: \"standard\",\n [LicencesEnumType.StandardVendor]: \"standard\",\n [LicencesEnumType.StandardAffiliate]: \"standard\",\n [LicencesEnumType.StandardSchool]: \"standard\",\n};\n","/**\n * Adapters between generated GraphQL Affiliate entity types and form/UI shapes.\n *\n * GraphQL entities are not form state — these converters make differences\n * explicit (null vs undefined, required vs draft-optional social fields,\n * branded affiliate codes, ISO Date strings vs JS Date).\n */\nimport { AffiliateParticipantTypeEnum } from \"../generated/graphql\";\nimport type { AffiliateType, LocationType } from \"../generated/graphql\";\n\nimport type { AffiliateFormData } from \"./affiliate\";\nimport { toFormSocialMedia } from \"./eventAdapters\";\nimport type { PromoCodeType } from \"./global\";\nimport { PROMO_CODE_PREFIX } from \"./global\";\n\nconst emptyLocation: LocationType = {\n city: \"\",\n country: \"\",\n fullAddress: \"\",\n geo: {\n coordinates: [0, 0],\n type: \"Point\",\n },\n latitude: 0,\n longitude: 0,\n region: \"\",\n};\n\nexport function toAffiliateCode(code: string): PromoCodeType {\n if (!code.startsWith(PROMO_CODE_PREFIX)) {\n throw new Error(\n `Invalid affiliate code from GraphQL: ${JSON.stringify(code)}`,\n );\n }\n return code as PromoCodeType;\n}\n\n/**\n * Convert a stored Affiliate entity into AffiliateFormData for create/edit forms.\n *\n * GraphQL AffiliateDetailsType requires bank/contact/IRD/location/participant\n * once stored; form drafts allow empty strings. Social media is draft-optional\n * (same dual-shape as Event/Partner). GraphQL termsAgreement is NonNull once\n * stored; form keeps it optional until agreed.\n *\n * Bank account fields are copied as-is (same exposure as the GraphQL query —\n * no extra fields, no masking added or removed).\n */\nexport function affiliateToFormData(\n affiliate: Pick<AffiliateType, \"affiliateDetails\">,\n): AffiliateFormData {\n const details = affiliate.affiliateDetails;\n\n return {\n bankAccountDetails: details?.bankAccountDetails ?? {\n accountHolderName: \"\",\n accountNumber: \"\",\n },\n contactDetails: details?.contactDetails ?? {\n mobilePhone: \"\",\n },\n irdNumber: details?.irdNumber ?? \"\",\n location: details?.location ?? emptyLocation,\n participantType:\n details?.participantType ?? (\"\" as AffiliateParticipantTypeEnum),\n socialMedia: toFormSocialMedia(details?.socialMedia),\n termsAgreement: details?.termsAgreement\n ? {\n appBuildNumber: details.termsAgreement.appBuildNumber,\n appId: details.termsAgreement.appId,\n appVersion: details.termsAgreement.appVersion,\n brand: details.termsAgreement.brand,\n deviceName: details.termsAgreement.deviceName,\n installationId: details.termsAgreement.installationId,\n manufacturer: details.termsAgreement.manufacturer,\n modelName: details.termsAgreement.modelName,\n osName: details.termsAgreement.osName,\n osVersion: details.termsAgreement.osVersion,\n termVersion: details.termsAgreement.termVersion,\n timestamp: details.termsAgreement.timestamp,\n }\n : null,\n };\n}\n","/**\n * Client-side-only enums that have no GraphQL schema equivalent.\n * Schema-backed enums are generated by codegen in src/generated/graphql.ts.\n */\n\nexport enum EnumFoodType {\n ADDITIVE_FREE = \"Additive_Free\",\n AIR_FRIED = \"Air_Fried\",\n ALLERGEN_FRIENDLY = \"Allergen_Friendly\",\n ATHLETE_FRIENDLY = \"Athlete_Friendly\",\n BAKED = \"Baked\",\n DAIRY_FREE = \"Dairy_Free\",\n DIABETIC_FRIENDLY = \"Diabetic_Friendly\",\n EGG_FREE = \"Egg_Free\",\n FRESH = \"Fresh\",\n GLUTEN_FREE = \"Gluten_Free\",\n GRILLED = \"Grilled\",\n HALAL = \"Halal\",\n HEART_HEALTHY = \"Heart_Healthy\",\n HIGH_FIBER = \"High_Fiber\",\n HIGH_PROTEIN = \"High_Protein\",\n KETO = \"Keto\",\n KOSHER = \"Kosher\",\n LACTOSE_FREE = \"Lactose_Free\",\n LOW_CALORIE = \"Low_Calorie\",\n LOW_CARB = \"Low_Carb\",\n LOW_FAT = \"Low_Fat\",\n LOW_SODIUM = \"Low_Sodium\",\n NO_ADDED_SUGAR = \"No_Added_Sugar\",\n NO_PRESERVATIVES = \"No_Preservatives\",\n NON_GMO = \"Non_GMO\",\n NUT_FREE = \"Nut_Free\",\n ORGANIC = \"Organic\",\n PALEO = \"Paleo\",\n PLANT_BASED = \"Plant_Based\",\n RAW = \"Raw\",\n SMOKED = \"Smoked\",\n SOY_FREE = \"Soy_Free\",\n SUGAR_FREE = \"Sugar_Free\",\n VEGAN = \"Vegan\",\n VEGETARIAN = \"Vegetarian\",\n}\n\nexport enum EnumRegions {\n All = \"All Regions\",\n Auckland = \"Auckland\",\n BayOfPlentyGisborne = \"Bay of Plenty & Gisborne\",\n CanterburyWestCoast = \"Canterbury & West Coast\",\n HawkesBay = \"Hawke's Bay\",\n ManawatuWanganui = \"Manawatu-Wanganui\",\n MarlboroughNelsonTasman = \"Marlborough & Nelson & Tasman\",\n Northland = \"Northland\",\n Otago = \"Otago\",\n Southland = \"Southland\",\n Taranaki = \"Taranaki\",\n Waikato = \"Waikato\",\n Wellington = \"Wellington\",\n}\n\nexport enum ImageTypeEnum {\n AVATAR = \"avatar\",\n COVER = \"cover\",\n IMAGE = \"image\",\n LOGO = \"logo\",\n}\n","import { stripOverlaySubtitleSpecialChars } from \"src/sharing/normalizeShareDescription\";\nimport { OptionItem, PROMO_CODE_PREFIX, SocialMediaType } from \"src/types\";\n\nimport { EnumRegions } from \"../enums/clientEnums\";\nimport {\n InviteEnumType,\n PaymentMethodEnumType,\n PostTypeEnum,\n RewardEnumType,\n SocialMediaEnumType,\n LicencesEnumType,\n} from \"../generated/graphql\";\n\nimport { isIsoDateString } from \"./date\";\nimport { mapArrayToOptions } from \"./mapArrayToOptions\";\n\nexport const removeTypename = (obj: any): any => {\n // Preserve Date objects\n if (obj instanceof Date) {\n return obj;\n }\n\n // Preserve File objects (for apollo-upload-client)\n if (obj instanceof File) {\n return obj;\n }\n\n // Preserve ISO date strings\n if (isIsoDateString(obj)) {\n return obj;\n }\n\n // Handle arrays\n if (Array.isArray(obj)) {\n return obj.map(removeTypename);\n }\n\n // Handle plain objects only\n if (obj !== null && typeof obj === \"object\") {\n const { __typename, ...cleanedObj } = obj;\n\n return Object.keys(cleanedObj).reduce((acc: any, key) => {\n acc[key] = removeTypename(cleanedObj[key]);\n return acc;\n }, {});\n }\n\n // Primitives\n return obj;\n};\n\n/**\n * Truncate text to a specified length and append ellipsis if necessary.\n * @param text\n * @param maxLength\n * @returns\n */\nexport const truncateText = (text: string, maxLength: number = 30): string => {\n const result = stripOverlaySubtitleSpecialChars(text);\n return result.length > maxLength\n ? result.substring(0, maxLength) + \"...\"\n : result;\n};\n\nexport const capitalizeFirstLetter = (str: string): string => {\n return str\n .split(\" \")\n .map((word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase())\n .join(\" \");\n};\n\nexport const statusOptions = [\n ...Object.values(InviteEnumType)\n .map((status) => ({\n label: status,\n value: status,\n }))\n .sort((a, b) => a.label.localeCompare(b.label)), // Sort the options alphabetically\n];\n\nexport const availableRegionTypes = Object.values(EnumRegions);\nexport const availableRegionOptions: OptionItem[] =\n mapArrayToOptions(availableRegionTypes);\n\nexport const paymentMethodOptions: OptionItem[] = mapArrayToOptions(\n Object.values(PaymentMethodEnumType),\n);\n\nexport function normalizeUrl(url: string): string {\n const withProtocol =\n !url.startsWith(\"http://\") && !url.startsWith(\"https://\")\n ? `https://${url}`\n : url;\n return withProtocol.replace(/\\/+$/, \"\");\n}\n\nexport const licenseNiceNames: Record<LicencesEnumType, string> = {\n [LicencesEnumType.ProEvent]: \"Pro Event\",\n [LicencesEnumType.ProVendor]: \"Pro Stallholder\",\n [LicencesEnumType.StandardEvent]: \"Standard Event\",\n [LicencesEnumType.StandardVendor]: \"Standard Stallholder\",\n [LicencesEnumType.ProPlusEvent]: \"Pro+Ads Event\",\n [LicencesEnumType.ProPlusVendor]: \"Pro+Ads Stallholder\",\n [LicencesEnumType.StandardPartner]: \"Partner\",\n [LicencesEnumType.StandardAffiliate]: \"Affiliate\",\n [LicencesEnumType.StandardSchool]: \"School\",\n};\n\nexport const cluemartSocialMedia: SocialMediaType[] = [\n {\n link: \"https://www.facebook.com/ClueMartApp\",\n name: SocialMediaEnumType.Facebook,\n },\n {\n link: \"https://www.instagram.com/cluemart_app\",\n name: SocialMediaEnumType.Instagram,\n },\n {\n link: \"https://www.tiktok.com/@cluemart\",\n name: SocialMediaEnumType.Tiktok,\n },\n {\n link: \"https://www.youtube.com/@ClueMart-App-NZ\",\n name: SocialMediaEnumType.Youtube,\n },\n];\n\nexport const IOS_URL = \"https://apps.apple.com/nz/app/cluemart/id6747251008\";\nexport const ANDROID_URL =\n \"https://play.google.com/store/apps/details?id=com.timardex.cluemart\";\n\nexport const DEFAULT_RESOURCES_RETURN_LIMIT = 1000;\nexport const DEFAULT_RESOURCES_RETURN_OFFSET = 0;\nexport const CLUEMART_MAIN_DOMAIN_URL = \"https://cluemart.co.nz\";\n\nexport const rewardNiceNames: Record<\n RewardEnumType,\n { name: string; points: number }\n> = {\n [RewardEnumType.MysteryJoyBox]: {\n name: \"Mystery Joy Box\",\n points: 250,\n },\n [RewardEnumType.MysterySqueezeBox]: {\n name: \"Mystery Squeeze Box\",\n points: 350,\n },\n [RewardEnumType.MysteryDeluxeBox]: {\n name: \"Mystery Deluxe Box\",\n points: 500,\n },\n};\n\nexport const PostTypeLabels: Record<PostTypeEnum, string> = {\n [PostTypeEnum.MarketFaces]: \"Market Faces\",\n [PostTypeEnum.ClueBites]: \"Clue Bites\",\n [PostTypeEnum.PlayAndWin]: \"Play & Win\",\n};\n\n/** Hardcoded registration gateway code; only valid at sign-up (not a generated school referral code). */\nexport const CM_SCHOOL_PROMO_CODE = `${PROMO_CODE_PREFIX}SCHOOL`;\n\n/** Hardcoded registration gateway code; only valid at sign-up (not a generated affiliate referral code). */\nexport const CM_AFFILIATE_PROMO_CODE = `${PROMO_CODE_PREFIX}AFFILIATE`;\n\nexport function formatNZBankAccount(input: string): string {\n // Remove all non-digit characters\n const digitsOnly = input.replaceAll(/\\D/g, \"\");\n\n // Build the formatted string step-by-step\n const parts = [];\n if (digitsOnly.length > 0) parts.push(digitsOnly.slice(0, 2)); // bank\n if (digitsOnly.length > 2) parts.push(digitsOnly.slice(2, 6)); // branch\n if (digitsOnly.length > 6) parts.push(digitsOnly.slice(6, 13)); // account\n if (digitsOnly.length > 13) parts.push(digitsOnly.slice(13, 15)); // suffix\n\n return parts.join(\"-\");\n}\n","export const SCHOOL_MIN_STUDENT_COUNT = 300;\nexport const SCHOOL_MAX_STUDENT_COUNT = 0;\n","import { EventDateStatusEnumType } from \"../generated/graphql\";\nimport type { DateTimeType } from \"../types/global\";\n\nexport const EVENT_DATE_STATUS_PERIOD_MAP: Partial<\n Record<EventDateStatusEnumType, EventDateStatusEnumType[]>\n> = {\n [EventDateStatusEnumType.Today]: [\n EventDateStatusEnumType.Started,\n EventDateStatusEnumType.StartingSoon,\n EventDateStatusEnumType.Today,\n ],\n [EventDateStatusEnumType.ThisWeek]: [\n EventDateStatusEnumType.Started,\n EventDateStatusEnumType.StartingSoon,\n EventDateStatusEnumType.ThisWeek,\n EventDateStatusEnumType.Today,\n EventDateStatusEnumType.Tomorrow,\n ],\n};\n\nexport function getAllowedEventDateStatuses(\n period: EventDateStatusEnumType,\n): EventDateStatusEnumType[] {\n return EVENT_DATE_STATUS_PERIOD_MAP[period] ?? [period];\n}\n\nexport function eventMatchesDateStatusPeriod(\n dateTime: Pick<DateTimeType, \"dateStatus\">[] | null | undefined,\n period: EventDateStatusEnumType,\n): boolean {\n const allowedStatuses = getAllowedEventDateStatuses(period);\n\n return (\n dateTime?.some((dt) => allowedStatuses.includes(dt.dateStatus)) ?? false\n );\n}\n\nexport function filterEventsByDateStatusPeriod<\n T extends { dateTime?: Pick<DateTimeType, \"dateStatus\">[] | null },\n>(events: T[], period: EventDateStatusEnumType): T[] {\n return events.filter((event) =>\n eventMatchesDateStatusPeriod(event.dateTime, period),\n );\n}\n","import dayjs from \"dayjs\";\n\nimport {\n EventDateStatusEnumType,\n ResourceTypeEnum,\n} from \"../generated/graphql\";\nimport type { DateTimeType, LocationType } from \"../types/global\";\nimport { dateFormat, formatDate } from \"../utils/date\";\n\nexport type CalendarSheetContentData = {\n dateTime: DateTimeType;\n location: LocationType;\n resourceId: string;\n resourceType: ResourceTypeEnum;\n};\n\nexport const KNOWN_EVENT_SCHEDULE_STATUSES = new Set<EventDateStatusEnumType>([\n EventDateStatusEnumType.Started,\n EventDateStatusEnumType.StartingSoon,\n EventDateStatusEnumType.Ended,\n]);\n\nexport type EventScheduleStatusTone =\n | \"started\"\n | \"startingSoon\"\n | \"ended\"\n | \"default\";\n\nexport type EventScheduleStatusPresentation = {\n status: EventDateStatusEnumType;\n statusLabel: string;\n tone: EventScheduleStatusTone;\n};\n\nexport function toCalendarIsoDate(startDate: string): string | null {\n const formatted = dayjs(startDate, dateFormat).format(\"YYYY-MM-DD\");\n\n return dayjs(formatted, \"YYYY-MM-DD\", true).isValid() ? formatted : null;\n}\n\nexport function fromCalendarIsoDate(isoDate: string): string {\n return dayjs(isoDate, \"YYYY-MM-DD\").format(dateFormat);\n}\n\nexport function getEventCalendarIsoDates(\n dateTimes: DateTimeType[] | null | undefined,\n): string[] {\n return (\n dateTimes\n ?.map((dateTime) => toCalendarIsoDate(dateTime.startDate))\n .filter((date): date is string => Boolean(date)) ?? []\n );\n}\n\nexport function findEventDateTimeByIsoDate(\n dateTimes: DateTimeType[] | null | undefined,\n isoDate: string,\n): DateTimeType | null {\n const selected = fromCalendarIsoDate(isoDate);\n\n return dateTimes?.find((dateTime) => dateTime.startDate === selected) ?? null;\n}\n\nexport function buildCalendarSheetContentData(\n dateTimes: DateTimeType[],\n isoDate: string,\n location: LocationType,\n resourceId: string,\n resourceType: ResourceTypeEnum,\n): CalendarSheetContentData | null {\n const dateTime = findEventDateTimeByIsoDate(dateTimes, isoDate);\n\n if (!dateTime) {\n return null;\n }\n\n return {\n dateTime,\n location,\n resourceId,\n resourceType,\n };\n}\n\nexport function getEventScheduleStatusTone(\n status: EventDateStatusEnumType,\n): EventScheduleStatusTone {\n switch (status) {\n case EventDateStatusEnumType.Started:\n return \"started\";\n case EventDateStatusEnumType.StartingSoon:\n return \"startingSoon\";\n case EventDateStatusEnumType.Ended:\n return \"ended\";\n default:\n return \"default\";\n }\n}\n\nexport function getEventScheduleStatusPresentation(\n dateTime: DateTimeType,\n): EventScheduleStatusPresentation {\n return {\n status: dateTime.dateStatus,\n statusLabel: dateTime.dateStatus.replaceAll(\"_\", \" \").toLowerCase(),\n tone: getEventScheduleStatusTone(dateTime.dateStatus),\n };\n}\n\nexport function getEventScheduleStatusLabel(\n dateTime: DateTimeType,\n onlyShowKnownStatuses: boolean,\n): string | null {\n const { dateStatus: status } = dateTime;\n const isKnownStatus = Boolean(\n status && KNOWN_EVENT_SCHEDULE_STATUSES.has(status),\n );\n\n if (onlyShowKnownStatuses && !isKnownStatus) {\n return null;\n }\n\n return isKnownStatus\n ? status.replaceAll(\"_\", \" \").toLowerCase()\n : `Next event date: ${formatDate(dateTime.startDate, \"date\")}`;\n}\n\nexport function shouldShowEventActionsWithWeather(\n resourceType: ResourceTypeEnum,\n dateTime: DateTimeType,\n location: LocationType | null | undefined,\n): boolean {\n return (\n resourceType === ResourceTypeEnum.Event &&\n Boolean(location) &&\n Boolean(dateTime?.dateStatus) &&\n ![\n EventDateStatusEnumType.Ended,\n EventDateStatusEnumType.Canceled,\n EventDateStatusEnumType.Started,\n ].includes(dateTime.dateStatus)\n );\n}\n","/* eslint-disable sort-keys */\nimport { Category } from \"src/types\";\n\nexport const clothingAndFashion: Category[] = [\n {\n id: \"clothing-fashion\",\n name: \"Clothing & Fashion\",\n description:\n \"New, handmade, or upcycled clothing and accessories with a creative twist.\",\n subcategories: [\n {\n id: \"apparel-babywear\",\n name: \"Apparel & Babywear\",\n items: [\n {\n id: \"apparel\",\n name: \"Apparel\",\n description: \"Dresses, t-shirts, jumpers, rompers, sets, kidswear.\",\n },\n {\n id: \"baby-toddler-apparel\",\n name: \"Baby & Toddler Apparel\",\n description:\n \"Handmade baby clothes, soft shoes, bibs, hats, knitted sets.\",\n },\n {\n id: \"upcycled-fashion\",\n name: \"Upcycled Fashion\",\n description:\n \"Reworked garments, patchwork pieces, restyled vintage.\",\n },\n {\n id: \"other-wearable-items\",\n name: \"Other wearable items\",\n description: \"Unique clothing not listed above.\",\n },\n ],\n },\n {\n id: \"fashion-accessories\",\n name: \"Fashion Accessories\",\n items: [\n {\n id: \"accessories\",\n name: \"Accessories\",\n description: \"Scarves, belts, gloves, hats, headbands, caps.\",\n },\n {\n id: \"shoes\",\n name: \"Shoes\",\n description: \"Handmade shoes, baby booties, sandals, slippers.\",\n },\n {\n id: \"bags-wallets\",\n name: \"Bags & Wallets\",\n description:\n \"Leather bags, fabric purses, wallets, backpacks, totes.\",\n },\n {\n id: \"other-accessories\",\n name: \"Other accessories\",\n description: \"Brooches, pins, or hybrid functional items.\",\n },\n ],\n },\n {\n id: \"jewelry-creative-wearables\",\n name: \"Jewelry & Creative Wearables\",\n items: [\n {\n id: \"jewelry\",\n name: \"Jewelry\",\n description: \"Necklaces, earrings, bracelets, rings, anklets.\",\n },\n {\n id: \"other-creative-wearables\",\n name: \"Other creative wearables\",\n description:\n \"Wearable art, statement pieces, bold handmade designs.\",\n },\n ],\n },\n {\n id: \"traditional-cultural-clothing-accessories\",\n name: \"Traditional & Cultural Clothing and Accessories\",\n items: [\n {\n id: \"traditional-clothing-accessories\",\n name: \"Traditional Clothing & Accessories \",\n description:\n \"raditional clothing, jewellery, accessories and footwear from around the world, including both handmade and non-handmade items.\",\n },\n {\n id: \"other-traditional-cultural-items\",\n name: \"Other Traditional & Cultural Items\",\n description:\n \"traditional or culturally inspired wearables and decorative cultural pieces such as plates, table linens and similar items.\",\n },\n ],\n },\n ],\n },\n];\n","/* eslint-disable sort-keys */\nimport { Category } from \"src/types\";\n\nexport const electronicsAndTechnology: Category[] = [\n {\n id: \"electronics-technology\",\n name: \"Electronics & Technology\",\n description:\n \"New, second-hand, or handmade tech and digital items commonly found at markets.\",\n subcategories: [\n {\n id: \"mobile-everyday-tech\",\n name: \"Mobile & Everyday Tech\",\n items: [\n {\n id: \"mobile-phone-accessories\",\n name: \"Mobile & Phone Accessories\",\n description:\n \"Phone cases, holders, screen protectors, charging cables, power banks, grips.\",\n },\n {\n id: \"other-mobile-gadgets\",\n name: \"Other mobile gadgets\",\n description:\n \"Stands, styluses, SIM tools, cleaning kits, wallet accessories.\",\n },\n ],\n },\n {\n id: \"audio-music-creative-tech\",\n name: \"Audio, Music & Creative Tech\",\n items: [\n {\n id: \"audio-music-tech\",\n name: \"Audio & Music Tech\",\n description:\n \"Portable speakers, headphones, mini radios, Bluetooth adapters, sound accessories.\",\n },\n {\n id: \"instruments-music-gear\",\n name: \"Instruments & Music Gear\",\n description:\n \"Small electronic instruments, DIY synth kits, drum pads, loop machines.\",\n },\n {\n id: \"recording-creative-devices\",\n name: \"Recording & Creative Devices\",\n description:\n \"USB microphones, podcast tools, voice recorders, mobile lighting, content tools.\",\n },\n {\n id: \"other-audio-music-items\",\n name: \"Other audio or music-related items\",\n description: \"Musical gadgets or creative gear not listed above.\",\n },\n ],\n },\n {\n id: \"diy-gadgets-secondhand-finds\",\n name: \"DIY, Gadgets & Second-Hand Finds\",\n items: [\n {\n id: \"diy-electronics-tools\",\n name: \"DIY Electronics & Tools\",\n description:\n \"LED lights, USB gadgets, circuit boards, repair kits, tech-themed toys, novelty items.\",\n },\n {\n id: \"other-tech-finds\",\n name: \"Other Tech Finds\",\n description:\n \"Used electronics, smart gadgets, wearable tech, calculators, tablet stands, e-waste upcycles.\",\n },\n {\n id: \"other-technology-innovation-items\",\n name: \"Other technology or innovation-related items\",\n description: \"Anything not covered but clearly tech-driven.\",\n },\n ],\n },\n ],\n },\n];\n","/* eslint-disable sort-keys */\nimport { Category } from \"src/types\";\n\nexport const foodAndBeverages: Category[] = [\n {\n id: \"food-beverages\",\n name: \"Food & Beverages\",\n description:\n \"Fresh produce, drinks, sweet and savoury street food, ready-to-eat meals, and packaged goods.\",\n subcategories: [\n {\n id: \"fresh-food-groceries\",\n name: \"Fresh Food & Groceries\",\n items: [\n {\n id: \"fruits-vegetables\",\n name: \"Fruits & Vegetables\",\n description:\n \"Fresh seasonal fruit, organic vegetables, specialty produce, berries, tropical fruit, heritage varieties.\",\n },\n {\n id: \"meat-seafood\",\n name: \"Meat & Seafood\",\n description:\n \"Butcher cuts, fresh fish, smoked meats, sausages, seafood platters, artisanal jerky.\",\n },\n {\n id: \"dairy-eggs\",\n name: \"Dairy & Eggs\",\n description:\n \"Farm eggs, handmade cheeses, yoghurt, fresh milk, goat’s milk products.\",\n },\n {\n id: \"bakery-pastries\",\n name: \"Bakery & Pastries\",\n description:\n \"Freshly baked bread, sourdough, bagels, croissants, focaccia, traditional baked goods.\",\n },\n {\n id: \"spices-condiments\",\n name: \"Spices & Condiments\",\n description:\n \"Dried herbs, spice blends, specialty salts, hot sauces, infused oils, chutneys.\",\n },\n {\n id: \"packaged-specialty-foods\",\n name: \"Packaged & Specialty Foods\",\n description:\n \"Honey, jams, preserves, pickles, nut butters, sauces, pre-packaged snacks.\",\n },\n {\n id: \"other-fresh-food-items\",\n name: \"Other fresh food items\",\n description:\n \"Items that don’t fit above, e.g. fermented foods, plant-based substitutes.\",\n },\n ],\n },\n {\n id: \"beverages-specialty-drinks\",\n name: \"Beverages & Specialty Drinks\",\n items: [\n {\n id: \"fresh-juices-smoothies\",\n name: \"Fresh Juices & Smoothies\",\n description:\n \"Cold-pressed juices, detox blends, fruit smoothies, tropical mixes.\",\n },\n {\n id: \"coffee-teas\",\n name: \"Coffee & Teas\",\n description:\n \"Espresso, pour-over coffee, herbal teas, matcha, bubble tea, locally blended tea.\",\n },\n {\n id: \"dairy-plant-based-drinks\",\n name: \"Dairy & Plant-Based Drinks\",\n description:\n \"Milkshakes, lassis, almond/oat milk drinks, coconut water.\",\n },\n {\n id: \"alcoholic-beverages\",\n name: \"Alcoholic Beverages\",\n description:\n \"Local wines, craft beer, mead, cider, infused spirits, cocktail kits.\",\n },\n {\n id: \"other-beverages\",\n name: \"Other beverages\",\n description:\n \"Kombucha, kefir, energy drinks, non-alcoholic wines or beers.\",\n },\n ],\n },\n {\n id: \"savoury-prepared-foods-street-food\",\n name: \"Savoury Prepared Foods & Street Food\",\n items: [\n {\n id: \"local-specialties\",\n name: \"Local Specialties\",\n description:\n \"Meat pies, hangi, seafood chowder, fry bread, traditional NZ dishes.\",\n },\n {\n id: \"asian-cuisine\",\n name: \"Asian Cuisine\",\n description:\n \"Sushi, bao buns, dumplings, ramen, satay, spring rolls, fried rice.\",\n },\n {\n id: \"mediterranean-cuisine\",\n name: \"Mediterranean Cuisine\",\n description: \"Falafel, hummus wraps, souvlaki, Greek salad, dolma.\",\n },\n {\n id: \"italian-delights\",\n name: \"Italian Delights\",\n description: \"Pizza, calzone, focaccia, fresh pasta, arancini.\",\n },\n {\n id: \"bbq-grilled-foods\",\n name: \"BBQ & Grilled Foods\",\n description: \"Kebabs, grilled chicken, ribs, burgers, sausages.\",\n },\n {\n id: \"savoury-crepes-pancakes\",\n name: \"Savoury Crepes & Pancakes\",\n description: \"Filled savoury crepes, mini savoury pancakes.\",\n },\n {\n id: \"savoury-baked-goods-pastries\",\n name: \"Savoury Baked Goods & Pastries\",\n description:\n \"Quiches, savoury muffins, filled savoury pastries, empanadas.\",\n },\n {\n id: \"vegan-vegetarian-dishes\",\n name: \"Vegan & Vegetarian Dishes\",\n description:\n \"Buddha bowls, plant-based burgers, salads, vegan sushi.\",\n },\n {\n id: \"other-savoury-foods\",\n name: \"Other Savoury Foods\",\n description: \"Fusion dishes, mixed platters, savoury meal kits.\",\n },\n ],\n },\n {\n id: \"sweet-prepared-foods\",\n name: \"Sweet Prepared Foods\",\n items: [\n {\n id: \"sweet-crepes-pancakes-fried-treats\",\n name: \"Sweet Crepes, Pancakes & Fried Treats\",\n description: \"Crepes, waffles, mini pancakes, muffins, doughnuts.\",\n },\n {\n id: \"sweet-baked-goods-desserts\",\n name: \"Sweet Baked Goods & Desserts\",\n description: \"Cakes, pastries, slices, trifles, layered desserts.\",\n },\n {\n id: \"fruit-based-snacks\",\n name: \"Fruit-Based Snacks\",\n description:\n \"Fruit skewers, dried fruit packs, chocolate-dipped fruit.\",\n },\n {\n id: \"candy-confectionery\",\n name: \"Candy & Confectionery\",\n description: \"Fudge, handmade candies, toffee, nougat, brittle.\",\n },\n {\n id: \"other-sweet-foods\",\n name: \"Other Sweet Foods\",\n description: \"Fusion desserts, sweet platters, sweet meal kits.\",\n },\n ],\n },\n ],\n },\n];\n","/* eslint-disable sort-keys */\nimport { Category } from \"src/types\";\n\nexport const handmadeAndLocalProducts: Category[] = [\n {\n id: \"handmade-local-products\",\n name: \"Handmade & Local Products\",\n description: \"Unique, handmade, or locally produced artisan goods.\",\n subcategories: [\n {\n id: \"home-living\",\n name: \"Home & Living\",\n items: [\n {\n id: \"ceramics-pottery\",\n name: \"Ceramics & Pottery\",\n description:\n \"Handmade mugs, vases, bowls, decorative plates, plant pots.\",\n },\n {\n id: \"candles-home-scents\",\n name: \"Candles & Home Scents\",\n description:\n \"Soy candles, beeswax candles, wax melts, incense sticks, room sprays and herbal sachets.\",\n },\n {\n id: \"botanical-crafts\",\n name: \"Botanical Crafts\",\n description: \"Dried-flower décor and pressed-flower crafts\",\n },\n {\n id: \"textiles-embroidery\",\n name: \"Textiles & Embroidery\",\n description:\n \"Handsewn items, embroidered napkins, home linens, aprons, fabric gift wraps, handmade fabric bags, quilted goods, personalized textile gifts.\",\n },\n {\n id: \"woodcraft-metalcraft\",\n name: \"Woodcraft & Metalcraft\",\n description:\n \"Wooden boards, handmade frames, sculptures, metal signs, furniture.\",\n },\n {\n id: \"handmade-soaps-natural-body-goods\",\n name: \"Handmade Soaps & Natural Body Goods\",\n description: \"Handmade soaps, balms, oils, bath items\",\n },\n {\n id: \"seasonal-festive-crafts\",\n name: \"Seasonal & Festive Crafts\",\n description: \"Christmas, Easter and seasonal handmade decor\",\n },\n {\n id: \"other-home-living-products\",\n name: \"Other home & living products\",\n description:\n \"Items that don't fit above but serve home-related purposes.\",\n },\n ],\n },\n {\n id: \"art-personal-expression\",\n name: \"Art & Personal Expression\",\n items: [\n {\n id: \"paintings-illustrations\",\n name: \"Paintings & Illustrations\",\n description:\n \"Paintings, canvas art, hand-drawn illustrations, digital prints, graphic art and calligraphy pieces.\",\n },\n {\n id: \"sculptures-carvings\",\n name: \"Sculptures & Carvings \",\n description:\n \"Sculptures made from wood, stone, metal, clay or resin, carved decorative pieces and artistic 3D works.\",\n },\n {\n id: \"creative-handmade-alternative-art\",\n name: \"Creative Handmade & Alternative Art\",\n description:\n \"Handmade textile décor, fabric ornaments, mixed-media art, creative craft pieces and modern handmade artworks.\",\n },\n {\n id: \"handmade-mini-figures-decor\",\n name: \"Handmade Mini Figures & Décor\",\n description:\n \"Small handmade figures, tiny houses and crafted mini decorative items.\",\n },\n {\n id: \"other-artistic-expressive-products\",\n name: \"Other Artistic or Expressive Products\",\n description:\n \"Custom artworks, specialty handmade décor, unique crafts.\",\n },\n ],\n },\n {\n id: \"handmade-jewellery-accessories-cultural-crafts\",\n name: \"Handmade Jewellery, Accessories & Cultural Crafts\",\n items: [\n {\n id: \"jewellery-handmade-items-nz-traditional-materials\",\n name: \"Jewellery & Handmade Items from NZ Traditional Materials\",\n description:\n \"Handmade jewellery and decorative or functional items crafted from pounamu, bone, wood and other traditional New Zealand materials.\",\n },\n {\n id: \"maori-pasifika-cultural-crafts-clothing\",\n name: \"Māori & Pasifika Cultural Crafts and Clothing\",\n description:\n \"Culturally inspired handmade items, accessories and garments featuring Māori or Pasifika motifs, traditional patterns and regional craftsmanship.\",\n },\n {\n id: \"traditional-handmade-clothing-jewellery-crafts-global-cultures\",\n name: \"Traditional Handmade Clothing, Jewellery & Crafts from Global Cultures\",\n description:\n \"Handcrafted clothing, jewellery and cultural items from diverse traditions — including Asian, African, European, Middle Eastern, Indian, Chinese, Japanese, Pacific, and other culturally significant handmade pieces.\",\n },\n {\n id: \"other-handmade-cultural-items\",\n name: \"Other Handmade Cultural Items\",\n description:\n \"Unique or culturally inspired handmade pieces not specifically covered in the categories above.\",\n },\n ],\n },\n {\n id: \"gift-ideas-accessories\",\n name: \"Gift Ideas & Accessories\",\n items: [\n {\n id: \"handmade-pens-keychains-fridge-magnets\",\n name: \"Handmade Pens, Keychains and Fridge Magnets\",\n description: null,\n },\n {\n id: \"gift-packaging-wrapping-accessories\",\n name: \"Gift Packaging & Wrapping Accessories\",\n description: null,\n },\n {\n id: \"handmade-crochet-knitting-fibre-crafts\",\n name: \"Handmade Crochet, Knitting & Fibre Crafts\",\n description:\n \"Handmade crochet and knitted items, fabric-based crafts, small decorative pieces, creative fibre artworks and unique handcrafted accessories.\",\n },\n {\n id: \"handmade-toys-mini-play-items\",\n name: \"Handmade Toys & Mini Play Items\",\n description:\n \"small handmade toys, soft toys, wooden miniatures, crochet or felt play pieces\",\n },\n {\n id: \"other-small-handmade-gifts-accessories\",\n name: \"Other small handmade gifts or accessories\",\n description: \"Compact creative items made to surprise or delight.\",\n },\n ],\n },\n ],\n },\n];\n","/* eslint-disable sort-keys */\nimport { Category } from \"src/types\";\n\nexport const healthAndWellness: Category[] = [\n {\n id: \"health-wellness\",\n name: \"Health & Wellness\",\n description:\n \"Natural products and services that promote wellbeing, body care, and holistic health.\",\n subcategories: [\n {\n id: \"body-skincare\",\n name: \"Body & Skincare\",\n items: [\n {\n id: \"skincare-body-products\",\n name: \"Skincare & Body Products\",\n description:\n \"Soaps, creams, lip balms, bath salts, bath bombs, body oils, natural deodorants.\",\n },\n {\n id: \"other-body-care-items\",\n name: \"Other body care items\",\n description:\n \"Additional handmade or eco-conscious personal care goods.\",\n },\n ],\n },\n {\n id: \"aromatherapy-herbal-wellness\",\n name: \"Aromatherapy & Herbal Wellness\",\n items: [\n {\n id: \"aromatherapy-herbal-remedies\",\n name: \"Aromatherapy & Herbal Remedies\",\n description:\n \"Essential oils, herbal balms, massage oils, salves, natural teas, rollers.\",\n },\n {\n id: \"other-herbal-aroma-products\",\n name: \"Other herbal or aroma-based products\",\n description: \"Wellness blends, herb sachets, custom infusions.\",\n },\n ],\n },\n {\n id: \"wellness-tools-accessories\",\n name: \"Wellness Tools & Accessories\",\n items: [\n {\n id: \"wellness-accessories\",\n name: \"Wellness Accessories\",\n description:\n \"Yoga mats, meditation cushions, eye pillows, incense, smudging sticks, eco water bottles, wellness journals.\",\n },\n {\n id: \"spiritual-tools-crystals\",\n name: \"Spiritual Tools & Crystals\",\n description:\n \"Healing crystals, gemstone bracelets, pendulums, sprays, spiritual kits, altar decor.\",\n },\n {\n id: \"other-wellness-spiritual-items\",\n name: \"Other wellness or spiritual items\",\n description: \"Items that aid relaxation, focus, or inner work.\",\n },\n ],\n },\n ],\n },\n];\n","/* eslint-disable sort-keys */\nimport { Category } from \"src/types\";\n\nexport const homeGardenHousehold: Category[] = [\n {\n id: \"home-garden-household-goods\",\n name: \"Home, Garden & Household Goods\",\n description:\n \"Functional, decorative, and eco-conscious products designed for everyday use indoors and outdoors.\",\n subcategories: [\n {\n id: \"home-decor-living\",\n name: \"Home Decor & Living\",\n items: [\n {\n id: \"home-decor\",\n name: \"Home Decor\",\n description:\n \"Cushions, wall art, table runners, vases, trays, mirrors, handmade centerpieces.\",\n },\n {\n id: \"kitchenware-dining\",\n name: \"Kitchenware & Dining\",\n description:\n \"Mugs, bowls, cutting boards, utensils, jars, coasters, kitchen textiles.\",\n },\n {\n id: \"mini-figures-decor\",\n name: \"Mini Figures & Décor\",\n description:\n \"handmade or non-handmade small figures, tiny houses and miniature decorative items.\",\n },\n {\n id: \"other-indoor-home-items\",\n name: \"Other indoor home items\",\n description:\n \"Any decorative or practical household items not listed above.\",\n },\n ],\n },\n {\n id: \"cleaning-eco-essentials\",\n name: \"Cleaning & Eco Essentials\",\n items: [\n {\n id: \"cleaning-eco-supplies\",\n name: \"Cleaning & Eco Supplies\",\n description:\n \"Beeswax wraps, reusable cloths, brushes, natural soaps, detergent bars, eco sponges.\",\n },\n {\n id: \"other-eco-cleaning-items\",\n name: \"Other eco or cleaning items\",\n description: \"Environmentally friendly goods not listed above.\",\n },\n ],\n },\n {\n id: \"garden-outdoor-living\",\n name: \"Garden & Outdoor Living\",\n items: [\n {\n id: \"plants-botanical-decor\",\n name: \"Plants & Botanical Decor\",\n description:\n \"Potted herbs, succulents, dried flowers, terrariums, plant-based ornaments.\",\n },\n {\n id: \"fresh-flowers-botanical-bouquets\",\n name: \"Fresh Flowers & Botanical Bouquets\",\n description:\n \"Cut flowers, seasonal bouquets, simple floral arrangements, native flower selections, and other fresh botanical items.\",\n },\n {\n id: \"natural-decor-nature-inspired-elements\",\n name: \"Natural Decor & Nature-Inspired Elements\",\n description:\n \"Seashell décor, driftwood pieces, sand ornaments, natural wood accents, stone or mineral decorations, and other nature-based decorative items.\",\n },\n {\n id: \"garden-tools-outdoor-items\",\n name: \"Garden Tools & Outdoor Items\",\n description:\n \"Plant markers, garden signs, stakes, small tools, wind chimes, gifts.\",\n },\n {\n id: \"other-outdoor-garden-products\",\n name: \"Other outdoor or garden products\",\n description: \"Functional or decorative items for outside use.\",\n },\n ],\n },\n ],\n },\n];\n","/* eslint-disable sort-keys */\nimport { Category } from \"src/types\";\n\nexport const petProductsAndAnimalGoods: Category[] = [\n {\n id: \"pet-products-animal-goods\",\n name: \"Pet Products & Animal Goods\",\n description: \"Items for pets, pet lovers, or animal-themed market stalls.\",\n subcategories: [\n {\n id: \"products-for-pets\",\n name: \"Products for Pets\",\n items: [\n {\n id: \"pet-food-treats\",\n name: \"Pet Food & Treats\",\n description:\n \"Homemade dog biscuits, cat snacks, natural chews, pet-safe cakes, training treats.\",\n },\n {\n id: \"apparel-toys-accessories\",\n name: \"Apparel, Toys & Accessories\",\n description:\n \"Leashes, collars, harnesses, toys, grooming tools, beds, travel gear, jumpers, bandanas.\",\n },\n {\n id: \"other-pet-products\",\n name: \"Other pet products\",\n description: \"Any pet-related items not listed above.\",\n },\n ],\n },\n {\n id: \"small-pets-birds-exotic-animals\",\n name: \"Small Pets, Birds & Exotic Animals\",\n items: [\n {\n id: \"products-small-pets-birds-exotics\",\n name: \"Products for Small Pets, Birds & Exotics\",\n description:\n \"Toys, enclosures, perches, feeding bowls, bedding, habitat decor, transport gear, and care items for birds, rabbits, hamsters, reptiles, turtles, aquarium pets, and other exotic species.\",\n },\n {\n id: \"other-small-exotic-animal-items\",\n name: \"Other small or exotic animal items\",\n description: \"Unusual accessories for non-mainstream pets.\",\n },\n ],\n },\n {\n id: \"farm-working-animals\",\n name: \"Farm & Working Animals\",\n items: [\n {\n id: \"goods-for-farm-working-animals\",\n name: \"Goods for Farm & Working Animals\",\n description:\n \"Treats, care products, equipment, signage and accessories for chickens, goats, alpacas, horses, and other livestock.\",\n },\n {\n id: \"other-farm-animal-items\",\n name: \"Other farm animal-related items\",\n description:\n \"Rural, barnyard, or utility-specific gear not listed above.\",\n },\n ],\n },\n {\n id: \"animal-themed-gifts-custom-items\",\n name: \"Animal-Themed Gifts & Custom Items\",\n items: [\n {\n id: \"pet-art-custom-gifts\",\n name: \"Pet Art & Custom Gifts\",\n description:\n \"Pet portraits, name tags, personalized bowls, breed-specific items, pet-themed home decor and stationery.\",\n },\n {\n id: \"other-animal-themed-gifts\",\n name: \"Other animal-themed gifts\",\n description:\n \"Artistic or sentimental items made for animal lovers.\",\n },\n ],\n },\n ],\n },\n];\n","import { Category } from \"src/types\";\n\n/* eslint-disable sort-keys */\nexport const serviceAndExperience: Category[] = [\n {\n id: \"services-experiences\",\n name: \"Services & Experiences\",\n description:\n \"On-site offerings that provide entertainment, personal care, learning, or interactive activities beyond products.\",\n subcategories: [\n {\n id: \"personal-care-body-art\",\n name: \"Personal Care & Body Art\",\n items: [\n {\n id: \"nails-handcare\",\n name: \"Nails & Handcare\",\n description:\n \"Nail painting, decoration, quick manicures, temporary nail extensions.\",\n },\n {\n id: \"hair-styling-braiding\",\n name: \"Hair Styling & Braiding\",\n description:\n \"Hair braiding, plaits, child-friendly festival hairstyles.\",\n },\n {\n id: \"face-body-decoration\",\n name: \"Face & Body Decoration\",\n description:\n \"Henna, glitter tattoos, face painting, light makeup, eyelash styling, professional tattooing (where permitted).\",\n },\n {\n id: \"other-beauty-grooming-services\",\n name: \"Other beauty or grooming services\",\n description: \"Small-scale personal care options offered on-site.\",\n },\n ],\n },\n {\n id: \"practical-wellness-services\",\n name: \"Practical & Wellness Services\",\n items: [\n {\n id: \"mobile-practical-services\",\n name: \"Mobile & Practical Services\",\n description:\n \"Shoe repair, phone repairs, knife sharpening, key cutting, battery replacement, bike repairs, engraving.\",\n },\n {\n id: \"wellness-alternative-therapies\",\n name: \"Wellness & Alternative Therapies\",\n description:\n \"Massage, aromatherapy, reflexology, energy healing (e.g. Reiki), natural consultations.\",\n },\n {\n id: \"other-service-based-offerings\",\n name: \"Other service-based offerings\",\n description: \"Wellness or functional services not listed above.\",\n },\n ],\n },\n {\n id: \"creative-educational-experiences\",\n name: \"Creative & Educational Experiences\",\n items: [\n {\n id: \"creative-workshops-maker-services\",\n name: \"Creative Workshops & Maker Services\",\n description:\n \"Candle making, pottery, jewelry crafting, soap or balm workshops, calligraphy, seasonal crafts.\",\n },\n {\n id: \"education-awareness-stalls\",\n name: \"Education & Awareness Stalls\",\n description:\n \"Eco awareness, cultural storytelling, local history, first aid demos, health booths, sustainability education, kids’ science displays.\",\n },\n {\n id: \"other-creative-educational-services\",\n name: \"Other creative or educational services\",\n description:\n \"Informal learning, demonstrations, or community-focused sessions.\",\n },\n ],\n },\n {\n id: \"kids-activities-family-fun\",\n name: \"Kids’ Activities & Family Fun\",\n items: [\n {\n id: \"kids-activities-fun\",\n name: \"Kids’ Activities & Fun\",\n description:\n \"Face painting, glitter tattoos, pony rides, bouncy castles, small amusement rides, balloon twisting, animal petting zones.\",\n },\n {\n id: \"other-family-oriented-activities\",\n name: \"Other family-oriented activities\",\n description:\n \"On-site entertainment that engages children or family groups.\",\n },\n ],\n },\n ],\n },\n];\n","import { Category } from \"src/types\";\n\n/* eslint-disable sort-keys */\nexport const toysChildren: Category[] = [\n {\n id: \"toys-childrens-items\",\n name: \"Toys & Children’s Items\",\n description: \"Products and services made for or inspired by children.\",\n subcategories: [\n {\n id: \"toys-playthings\",\n name: \"Toys & Playthings\",\n items: [\n {\n id: \"toys-classic-electric-character\",\n name: \"Toys – Classic, Electric & Character-Based\",\n description:\n \"Building blocks, dolls, puzzles, plush animals, toy vehicles, remote-control toys, light-up gadgets, character figurines, themed playsets.\",\n },\n {\n id: \"handmade-toys-crafty-playthings\",\n name: \"Handmade Toys & Crafty Playthings\",\n description:\n \"Wooden puzzles, crocheted animals, felt toys, fabric dolls, DIY kits, nature-inspired games, sensory toys.\",\n },\n {\n id: \"other-play-items\",\n name: \"Other play items\",\n description:\n \"Toys not listed above, including limited-edition or hybrid items.\",\n },\n ],\n },\n {\n id: \"educational-developmental\",\n name: \"Educational & Developmental\",\n items: [\n {\n id: \"educational-developmental-tools\",\n name: \"Educational & Developmental Tools\",\n description:\n \"STEM kits, Montessori toys, storybooks, picture books, flashcards, early learning games, language tools.\",\n },\n {\n id: \"other-educational-experience-based-items\",\n name: \"Other educational or experience-based items\",\n description:\n \"Creative experiences or learning aids not listed above.\",\n },\n ],\n },\n {\n id: \"baby-kidswear-accessories\",\n name: \"Baby & Kidswear + Accessories\",\n items: [\n {\n id: \"baby-kidswear-accessories\",\n name: \"Baby & Kidswear + Accessories\",\n description:\n \"Handmade baby clothes, toddler outfits, bibs, hats, headbands, bags, pacifier clips, soft shoes.\",\n },\n {\n id: \"baby-developmental-soft-toys\",\n name: \"Baby Developmental Soft Toys\",\n description:\n \"Sensory toys, rattles, fabric books, teething items, high-contrast cards, and early-skill. Montessori materials designed to support infants’ cognitive and motor development.\",\n },\n {\n id: \"other-childrens-clothing-accessories\",\n name: \"Other children’s clothing or accessories\",\n description: \"Unique fashion or functional pieces for kids.\",\n },\n ],\n },\n ],\n },\n];\n","/* eslint-disable sort-keys */\nimport { Category } from \"src/types\";\n\nexport const vintageAndAntique: Category[] = [\n {\n id: \"vintage-antique\",\n name: \"Vintage & Antique\",\n description:\n \"Unique, historic, or nostalgic items with collectible or decorative value.\",\n subcategories: [\n {\n id: \"vintage-antique-clothing-accessories\",\n name: \"Vintage & Antique Clothing & Accessories\",\n items: [\n {\n id: \"clothing-vintage-fashion\",\n name: \"Clothing and wearable items from past eras\",\n description:\n \"Vintage dresses, jackets, hats, gloves, belts, bags, shoes, jewellery.\",\n },\n {\n id: \"other-clothing-accessory-items\",\n name: \"Other clothing-related items\",\n description:\n \"Hair clips, brooches, pins, scarf rings, small fashion accessories.\",\n },\n ],\n },\n {\n id: \"collectibles-memorabilia\",\n name: \"Collectibles & Memorabilia\",\n items: [\n {\n id: \"small-collectible-items\",\n name: \"Small collectible items with historical or nostalgic significance\",\n description:\n \"Coins, stamps, toys, postcards, comics, sports cards, vintage packaging.\",\n },\n {\n id: \"other-collectible-items\",\n name: \"Other collectible items\",\n description:\n \"Rare small objects, miniature figurines, special-edition items.\",\n },\n ],\n },\n {\n id: \"homewares-decor-curiosities\",\n name: \"Homewares, Decor & Curiosities\",\n items: [\n {\n id: \"decorative-functional-vintage-items\",\n name: \"Decorative or functional items with a vintage or antique aesthetic\",\n description:\n \"Teacups, plates, vases, mirrors, clocks, furniture, old tools, lanterns, typewriters, curiosities.\",\n },\n {\n id: \"handmade-vintage-art\",\n name: \"Handmade vintage art\",\n description: \"Paintings, sculptures, crafted pieces.\",\n },\n {\n id: \"other-home-decor-items\",\n name: \"Other home or decor items\",\n description:\n \"Decorative pieces not listed above, unique household objects.\",\n },\n ],\n },\n {\n id: \"vintage-media-printed-nostalgia\",\n name: \"Vintage Media & Printed Nostalgia\",\n items: [\n {\n id: \"older-media-printed-works\",\n name: \"Older media formats and printed works\",\n description:\n \"Vinyl records, cassette tapes, CDs, DVDs, books, magazines, board games, posters.\",\n },\n {\n id: \"other-media-printed-items\",\n name: \"Other media or printed items\",\n description: \"Maps, manuals, leaflets, out-of-print materials.\",\n },\n ],\n },\n {\n id: \"other-vintage-antique-items\",\n name: \"Other Vintage & Antique Items\",\n items: [\n {\n id: \"any-vintage-antique-items-not-listed\",\n name: \"Any vintage or antique items not listed above\",\n description: \"Unique, rare or uncategorised pieces.\",\n },\n ],\n },\n ],\n },\n];\n","import { Category } from \"../../types/global\";\n\nimport { clothingAndFashion } from \"./clothingAndFashion\";\nimport { electronicsAndTechnology } from \"./electronicsAndTechnology\";\nimport { foodAndBeverages } from \"./foodAndBeverages\";\nimport { handmadeAndLocalProducts } from \"./handmadeAndLocalProducts\";\nimport { healthAndWellness } from \"./healthAndWellness\";\nimport { homeGardenHousehold } from \"./homeGardenHousehold\";\nimport { petProductsAndAnimalGoods } from \"./petProductsAndAnimalGoods\";\nimport { serviceAndExperience } from \"./serviceAndExperience\";\nimport { toysChildren } from \"./toysChildren\";\nimport { vintageAndAntique } from \"./vintageAndAntique\";\n\nexport const categoryColors: Record<string, string> = {\n \"clothing-fashion\": \"#9D4EDD\",\n \"electronics-technology\": \"#3AF3FF\",\n \"food-beverages\": \"#FF0D1F\",\n \"handmade-local-products\": \"#EE7E54\",\n \"health-wellness\": \"#E23794\",\n \"home-garden-household-goods\": \"#067325\",\n \"pet-products-animal-goods\": \"#68E788\",\n \"services-experiences\": \"#2E16A5\",\n \"toys-childrens-items\": \"#FFF966\",\n \"vintage-antique\": \"#8D6748\",\n};\n\nconst assignColorToCategories = (categories: Category[]): Category[] => {\n const result = categories.map((category) => ({\n ...category,\n color: categoryColors[category.id],\n }));\n return result;\n};\n\nexport const availableCategories = assignColorToCategories([\n ...foodAndBeverages,\n ...handmadeAndLocalProducts,\n ...clothingAndFashion,\n ...homeGardenHousehold,\n ...toysChildren,\n ...healthAndWellness,\n ...electronicsAndTechnology,\n ...vintageAndAntique,\n ...petProductsAndAnimalGoods,\n ...serviceAndExperience,\n]);\n","import { AffiliateRewardWriteType } from \"src/types/affiliate\";\n\nimport {\n AffiliateParticipantTypeEnum,\n AffiliateRewardEnumType,\n} from \"../generated/graphql\";\n\nexport const AFFILIATE_PARTICIPANT_TYPE_LABELS = {\n [AffiliateParticipantTypeEnum.Individual]: \"Individual\",\n [AffiliateParticipantTypeEnum.SoleTrader]: \"Sole Trader\",\n [AffiliateParticipantTypeEnum.Company]: \"Company\",\n} as const satisfies Record<AffiliateParticipantTypeEnum, string>;\n\ntype AffiliateRewardConfig = {\n description: string;\n value: number;\n};\n\nexport const AFFILIATE_REWARDS = {\n [AffiliateRewardEnumType.NewEventRegistration]: {\n description: \"10 points for new event registration (one-time reward)\",\n value: 10,\n },\n [AffiliateRewardEnumType.NewVendorRegistration]: {\n description: \"5 points for new vendor registration (one-time reward)\",\n value: 5,\n },\n [AffiliateRewardEnumType.ActiveVendorProSubscription]: {\n description: \"3 points for active vendor pro subscription (monthly reward)\",\n value: 3,\n },\n [AffiliateRewardEnumType.ActiveVendorStandardSubscription]: {\n description:\n \"1 point for active vendor standard subscription (monthly reward)\",\n value: 1,\n },\n [AffiliateRewardEnumType.ActiveVendorBonusReward]: {\n description:\n \"5 bonus points for every 10th active vendor (one-time reward)\",\n value: 5,\n },\n [AffiliateRewardEnumType.ActiveEventWithVendorRegistrations]: {\n description:\n \"40 points for active event with vendor registrations (one-time reward)\",\n value: 40,\n },\n} satisfies Record<AffiliateRewardEnumType, AffiliateRewardConfig>;\n\n/**\n * Create an affiliate reward\n * @param rewardType - The type of reward\n * @param createdAt - The date the reward was received\n * @returns The affiliate reward\n * @example\n * const reward = createAffiliateReward(AffiliateRewardEnumType.NewEventRegistration, new Date());\n * console.log(reward);\n */\nexport function createAffiliateReward(\n rewardType: AffiliateRewardEnumType,\n createdAt: Date,\n): AffiliateRewardWriteType {\n const reward = AFFILIATE_REWARDS[rewardType];\n\n return {\n createdAt,\n redeemedAt: null,\n rewardDescription: reward.description,\n rewardType,\n rewardValue: reward.value,\n };\n}\n","/**\n * NZ IRD number validation (Inland Revenue modulus-11 check digit).\n *\n * Valid range: 10,000,000 – 200,000,000 (upper limit raised Feb 2026; length stays\n * 8–9 digits). See IRD file-upload / payday filing specifications.\n */\n\nconst PRIMARY_WEIGHTS = [3, 2, 7, 6, 5, 4, 3, 2] as const;\nconst SECONDARY_WEIGHTS = [7, 4, 3, 2, 5, 2, 7, 6] as const;\n\nconst IRD_MIN = 10_000_000;\n/** Raised from 150_000_000 as of IRD's Feb 2026 annual update. */\nconst IRD_MAX = 200_000_000;\n\nfunction calculateCheckDigit(\n baseDigits: string,\n weights: readonly number[],\n): number {\n const sum = [...baseDigits].reduce(\n (acc, digit, index) => acc + Number(digit) * weights[index],\n 0,\n );\n const remainder = sum % 11;\n return remainder === 0 ? 0 : 11 - remainder;\n}\n\n/** Digits only; strips spaces/hyphens and other non-digits. */\nexport function normalizeIrdNumber(value: string): string {\n return value.replace(/\\D/g, \"\");\n}\n\n/**\n * Formats an IRD number as groups of three digits separated by hyphens\n * (e.g. `490-918-50` / `049-091-850`), capping at 9 digits.\n */\nexport function formatIrdNumber(input: string): string {\n const digitsOnly = normalizeIrdNumber(input).slice(0, 9);\n\n const parts = [];\n if (digitsOnly.length > 0) parts.push(digitsOnly.slice(0, 3));\n if (digitsOnly.length > 3) parts.push(digitsOnly.slice(3, 6));\n if (digitsOnly.length > 6) parts.push(digitsOnly.slice(6, 9));\n\n return parts.join(\"-\");\n}\n\n/**\n * Returns true when `value` is a valid NZ IRD number (8–9 digits, in issued\n * range, and modulus-11 check digit matches).\n */\nexport function isValidIrdNumber(value: string): boolean {\n const digits = normalizeIrdNumber(value);\n\n if (!/^\\d{8,9}$/.test(digits)) {\n return false;\n }\n\n const ird = Number(digits);\n if (ird < IRD_MIN || ird > IRD_MAX) {\n return false;\n }\n\n const padded = digits.padStart(9, \"0\");\n const baseDigits = padded.slice(0, -1);\n const checkDigit = Number(padded.slice(-1));\n\n let calculated = calculateCheckDigit(baseDigits, PRIMARY_WEIGHTS);\n if (calculated === 10) {\n calculated = calculateCheckDigit(baseDigits, SECONDARY_WEIGHTS);\n if (calculated === 10) {\n return false;\n }\n }\n\n return calculated === checkDigit;\n}\n","/* eslint-disable sort-keys */\nimport * as yup from \"yup\";\n\nimport { RefundPolicy } from \"src\";\n\nimport { EventEnumType, PaymentMethodEnumType } from \"../generated/graphql\";\n\nimport {\n dateTimeSchema,\n dateTimeWithPriceSchema,\n globalResourceSchema,\n locationSchema,\n noLeadingZeros,\n normalizedUrlTransform,\n nzBankAccountRegex,\n nzbnRegex,\n toOptionalNumber,\n} from \"./global\";\n\nexport const eventSchema = globalResourceSchema.shape({\n dateTime: yup\n .array()\n .of(dateTimeSchema)\n .min(1, \"At least one Event date required\")\n .max(50, \"You can only add up to 50 Event dates\") // <-- enforce max 50\n .required(\"DateTime is required\")\n .test(\n \"unique-start-date-time\",\n \"Start Date and Start Time must be unique\",\n function (value) {\n if (!value) return true;\n\n const seen = new Set<string>();\n for (const item of value) {\n // Only validate uniqueness when both fields exist\n if (!item.startDate || !item.startTime) continue;\n\n const key = `${item.startDate}_${item.startTime}`;\n\n if (seen.has(key)) {\n return false;\n }\n\n seen.add(key);\n }\n return true;\n },\n ),\n eventType: yup\n .mixed<EventEnumType>()\n .oneOf(Object.values(EventEnumType), \"Please select a valid Event type\")\n .required(\"Please select an Event type\"),\n location: locationSchema,\n nzbn: yup\n .string()\n .required(\"NZBN is required\")\n .matches(nzbnRegex, \"NZBN must be 13 digits and start with 94\"),\n rainOrShine: yup\n .boolean()\n .label(\"Rain or Shine\")\n .required(\"Please specify if the event is rain or shine\"),\n tags: yup\n .array()\n .of(yup.string().defined())\n .min(1, \"Tags are required\")\n .required(\"Tags are required\"),\n});\n\nconst paymentInfoSchema = yup.object({\n paymentMethod: yup\n .mixed<PaymentMethodEnumType>()\n .oneOf(\n Object.values(PaymentMethodEnumType),\n \"Please select a valid Payment method\",\n )\n .required(\"Please select a Payment method\"),\n\n accountHolderName: yup.string().when(\"paymentMethod\", {\n is: PaymentMethodEnumType.BankTransfer,\n then: (schema) =>\n schema\n .required(\"Account holder name is required for bank transfer\")\n .trim(),\n otherwise: (schema) => schema.notRequired(),\n }),\n\n accountNumber: yup.string().when(\"paymentMethod\", {\n is: PaymentMethodEnumType.BankTransfer,\n then: (schema) =>\n schema\n .required(\"Account number is required for bank transfer\")\n .matches(\n nzBankAccountRegex,\n \"Account number must be in format: XX-XXXX-XXXXXXX-XX\",\n )\n .trim(),\n otherwise: (schema) => schema.notRequired(),\n }),\n\n link: yup.string().when(\"paymentMethod\", {\n is: (val: PaymentMethodEnumType) =>\n val === PaymentMethodEnumType.Paypal ||\n val === PaymentMethodEnumType.Stripe,\n then: () =>\n normalizedUrlTransform()\n .url(\"Link must be a valid URL\")\n .required(\"Link is required for PayPal/Stripe\"),\n otherwise: (schema) => schema.notRequired(),\n }),\n});\n\nexport const eventInfoSchema = yup.object().shape({\n applicationDeadlineHours: yup\n .number()\n .label(\"Application Deadline Hours\")\n .nullable()\n .transform((value, originalValue) => (originalValue === \"\" ? null : value))\n .typeError(\"Application deadline hours must be a number\")\n .min(1, \"Application deadline hours must be at least 1\")\n .required(\"Application deadline hours is required\")\n .test(\"no-leading-zeros\", \"\", noLeadingZeros(\"Application deadline hours\")),\n dateTime: yup\n .array()\n .of(dateTimeWithPriceSchema)\n .required(\"DateTime is required\"),\n eventId: yup.string().trim().required(\"Event ID is required\"),\n packInTime: yup\n .number()\n .transform((_, originalValue) => toOptionalNumber(originalValue))\n .label(\"Pack In Time\")\n .typeError(\"Pack in time must be a number\")\n .min(1, \"Pack in time must be at least 1\")\n .required(\"Pack in time is required\")\n .test(\"no-leading-zeros\", \"\", noLeadingZeros(\"Pack in time\")),\n paymentDueHours: yup\n .number()\n .transform((_, originalValue) => toOptionalNumber(originalValue))\n .label(\"Payment Due Hours\")\n .typeError(\"Payment due hours must be a number\")\n .min(1, \"Payment due hours must be at least 1\")\n .required(\"Payment due hours is required\")\n .test(\"no-leading-zeros\", \"\", noLeadingZeros(\"Payment due hours\"))\n .test(\n \"payment-before-deadline\",\n \"Payment due hours must be less than application deadline hours\",\n function (value) {\n const { applicationDeadlineHours } = this.parent;\n\n // Both are numbers (enforced by schema), so direct comparison is fine\n return value < applicationDeadlineHours;\n },\n ),\n paymentInfo: yup\n .array()\n .of(paymentInfoSchema)\n .min(1, \"At least one payment method is required\")\n .required(\"Payment info is required\"),\n refundPolicy: yup\n .array()\n .of(\n yup.object({\n category: yup\n .mixed<RefundPolicy[\"category\"]>()\n .required(\"Category is required\"),\n label: yup.string().required(\"Label is required\"),\n value: yup.boolean().required(\"Value is required\"),\n }),\n )\n .min(1, \"At least one refund policy item is required\")\n .test(\n \"at-least-one-true\",\n \"At least one refund policy option must be selected\",\n (value) => {\n if (!value) return false;\n return value.some((item) => item.value === true);\n },\n )\n .required(\"Refund policy is required\"),\n});\n","import * as yup from \"yup\";\n\nimport { FoodFlavorEnumType, VendorEnumType } from \"../generated/graphql\";\n\nimport {\n categorySchema,\n dateTimeSchema,\n emailOptionalSchema,\n globalResourceSchema,\n} from \"./global\";\n\nconst vendorMenuSchema = yup.object({\n description: yup.string().nullable().optional(),\n name: yup.string().nullable().required(\"Product name is required\"),\n price: yup\n .number()\n .transform((v, o) => (o === \"\" ? null : v))\n .min(1, \"Product price must be greater than 0\")\n .required(\"Product price is required\"),\n priceUnit: yup.string().required(\"Product unit is required\"),\n});\n\nexport const vendorSchema = globalResourceSchema.shape({\n categories: categorySchema\n .min(1, \"Category list must contain at least one item\")\n .required(\"Categories are required\"),\n foodTruck: yup\n .boolean()\n .label(\"Food Truck\")\n .required(\"Please specify if the vendor is a food truck\"),\n products: yup\n .object()\n .shape({\n active: yup.boolean().nullable().optional(),\n productsList: yup.array().of(vendorMenuSchema).nullable().optional(),\n })\n .nullable()\n .optional(),\n vendorType: yup\n .mixed<VendorEnumType>()\n .oneOf(Object.values(VendorEnumType))\n .required(\"Please select a Vendor type\"),\n});\n\nexport const unregisteredVendorSchema = yup.object().shape({\n categoryIds: yup\n .array()\n .of(yup.string().defined())\n .min(1, \"Category list must contain at least one item\")\n .required(\"Categories are required\"),\n dateTime: yup\n .array()\n .of(dateTimeSchema)\n .min(1, \"DateTime list must contain at least one item\")\n .required(\"DateTime is required\"),\n email: emailOptionalSchema,\n inviterId: yup.string().required(\"Inviter ID is required\"),\n name: yup\n .string()\n .label(\"Stallholder Name\")\n .trim()\n .min(3, \"Name must be at least 3 characters\")\n .required(\"Name is required\"),\n region: yup.string().label(\"Region\").required(\"Region is required\"),\n});\n\nexport const vendorInfoSchema = yup.object().shape({\n product: yup.object().shape({\n foodFlavors: yup\n .array()\n .of(\n yup\n .mixed<FoodFlavorEnumType>()\n .oneOf(Object.values(FoodFlavorEnumType), \"Invalid flavor selected\")\n .required(\"Flavor is required\"),\n )\n .min(1, \"Food flavors list must contain at least one item\")\n .required(\"Food flavors are required\"),\n packaging: yup\n .array()\n .of(yup.string().defined())\n .min(1, \"Packaging list must contain at least one item\")\n .required(\"Packaging is required\"),\n priceRange: yup.object().shape({\n max: yup\n .string()\n .required(\"Max price is required\")\n .test(\n \"is-number\",\n \"Max price must be a valid number\",\n (value) =>\n value !== undefined && value !== \"\" && !Number.isNaN(Number(value)),\n )\n .test(\n \"is-greater\",\n \"Max price must be greater than or equal to Min price\",\n function (max) {\n const { min } = this.parent;\n\n if (!max || !min) return true; // required() handles empty\n\n const maxNum = Number(max);\n const minNum = Number(min);\n\n if (Number.isNaN(maxNum) || Number.isNaN(minNum)) return true;\n\n return maxNum >= minNum;\n },\n ),\n min: yup\n .string()\n .required(\"Min price is required\")\n .test(\n \"is-number\",\n \"Min price must be a valid number\",\n (value) =>\n value !== undefined && value !== \"\" && !Number.isNaN(Number(value)),\n ),\n }),\n producedIn: yup\n .array()\n .of(yup.string().defined())\n .min(1, \"Produced in list must contain at least one item\")\n .required(\"Produced in is required\"),\n }),\n requirements: yup\n .object()\n .shape({\n electricity: yup.object().shape({\n details: yup\n .string()\n .trim()\n .test(\n \"details-required\",\n \"Please add electricity details\",\n function (value) {\n return (\n !this.parent?.isRequired || (value?.trim().length ?? 0) > 0\n );\n },\n )\n .nullable(),\n isRequired: yup\n .boolean()\n .required(\"Electricity requirement is required\"),\n }),\n gazebo: yup.object().shape({\n details: yup\n .string()\n .trim()\n .test(\n \"details-required\",\n \"Please add gazebo details\",\n function (value) {\n return (\n !this.parent?.isRequired || (value?.trim().length ?? 0) > 0\n );\n },\n )\n .nullable(),\n isRequired: yup.boolean().required(\"Gazebo requirement is required\"),\n }),\n table: yup.object().shape({\n details: yup\n .string()\n .trim()\n .test(\n \"details-required\",\n \"Please add table details\",\n function (value) {\n return (\n !this.parent?.isRequired || (value?.trim().length ?? 0) > 0\n );\n },\n )\n .nullable(),\n isRequired: yup.boolean().required(\"Table requirement is required\"),\n }),\n })\n .optional(),\n stallInfo: yup.object().shape({\n size: yup.object().shape({\n depth: yup\n .string()\n .required(\"Depth is required\")\n .test(\n \"is-number\",\n \"Depth must be a valid number\",\n (value) =>\n value !== undefined && value !== \"\" && !Number.isNaN(Number(value)),\n )\n .test(\n \"is-positive\",\n \"Depth must be greater than 0\",\n (value) => value !== undefined && value !== \"\" && Number(value) > 0,\n ),\n width: yup\n .string()\n .required(\"Width is required\")\n .test(\n \"is-number\",\n \"Width must be a valid number\",\n (value) =>\n value !== undefined && value !== \"\" && !Number.isNaN(Number(value)),\n )\n .test(\n \"is-positive\",\n \"Width must be greater than 0\",\n (value) => value !== undefined && value !== \"\" && Number(value) > 0,\n ),\n }),\n }),\n vendorId: yup.string().trim().required(\"Vendor ID is required\"),\n});\n","/* eslint-disable sort-keys */\nimport * as yup from \"yup\";\n\nimport { emailRequiredSchema } from \"./global\";\n\nexport const userSchema = yup.object().shape({\n active: yup.boolean().required(\"Active is required\"),\n email: emailRequiredSchema,\n firstName: yup\n .string()\n .label(\"First Name\")\n .trim()\n .required(\"First name is required\"),\n lastName: yup\n .string()\n .label(\"Last Name\")\n .trim()\n .required(\"Last name is required\"),\n isTester: yup.boolean().required(\"Tester status is required\"),\n password: yup\n .string()\n .nullable()\n .trim()\n .label(\"Password\")\n // simple rule: if user enters something → must be at least 8 chars\n .min(8, \"Password must be at least 8 characters long\")\n .notRequired(),\n preferredRegion: yup\n .string()\n .label(\"Preferred Region\")\n .required(\"Preferred region is required\"),\n confirmPassword: yup\n .string()\n .nullable()\n .trim()\n .label(\"Confirm Password\")\n .when(\"password\", {\n is: (val: string | null) => !!val, // only necessary if password typed\n then: (schema) =>\n schema\n .required(\"Confirm Password is required\")\n .oneOf([yup.ref(\"password\")], \"Passwords must match\"),\n otherwise: (schema) => schema.notRequired(),\n }),\n});\n","import * as yup from \"yup\";\n\nimport { emailRequiredSchema, passwordSchema } from \"./global\";\n\nexport const loginSchema = yup.object().shape({\n email: emailRequiredSchema,\n password: passwordSchema,\n});\n\nexport const registerSchema = yup.object().shape({\n email: emailRequiredSchema,\n firstName: yup\n .string()\n .label(\"First Name\")\n .required(\"First Name is required\"),\n lastName: yup.string().label(\"Last Name\").required(\"Last Name is required\"),\n password: passwordSchema,\n preferredRegion: yup\n .string()\n .label(\"Preferred Region\")\n .required(\"Preferred Region is required\"),\n});\n\nexport const requestPasswordResetSchema = yup.object().shape({\n email: emailRequiredSchema,\n});\n\nexport const resetPasswordSchema = yup.object().shape({\n email: emailRequiredSchema,\n password: passwordSchema,\n // eslint-disable-next-line sort-keys\n confirmPassword: yup\n .string()\n .oneOf([yup.ref(\"password\")], \"Passwords must match\")\n .required(\"Confirm Password is required\"),\n});\n\nexport const validateVerificationTokenSchema = yup.object().shape({\n email: emailRequiredSchema,\n verificationToken: yup\n .string()\n .required(\"Verification code is required\")\n .matches(/^\\d{6}$/, \"Verification code must be exactly 6 digits\"),\n});\n","/* eslint-disable sort-keys */\nimport * as yup from \"yup\";\n\nimport { AdResource, AdFormState } from \"src/types/ad\";\n\nimport {\n AdShowOnEnum,\n AdStatusTypeEnum,\n AdStyleEnum,\n AdTypeEnum,\n ResourceTypeEnum,\n} from \"../generated/graphql\";\n\nconst adResourceSchema: yup.ObjectSchema<AdResource> = yup.object({\n adDescription: yup\n .string()\n .trim()\n .required(\"Ad description is required\")\n .max(150, \"Ad description must be at most 150 characters\"),\n adImage: yup.string().required(\"Ad image is required\"),\n adStyle: yup\n .mixed<AdStyleEnum>()\n .oneOf(Object.values(AdStyleEnum), \"Please select a valid ad style\")\n .required(\"Ad style is required\"),\n adTitle: yup\n .string()\n .trim()\n .required(\"Ad title is required\")\n .max(30, \"Ad title must be at most 30 characters\"),\n adType: yup\n .mixed<AdTypeEnum>()\n .oneOf(Object.values(AdTypeEnum), \"Please select a valid ad type\")\n .required(\"Ad type is required\"),\n resourceId: yup.string().required(\"Resource ID is required\"),\n resourceName: yup.string().required(\"Resource name is required\"),\n resourceRegion: yup.string().required(\"Resource region is required\"),\n resourceType: yup\n .mixed<ResourceTypeEnum>()\n .oneOf(Object.values(ResourceTypeEnum), \"Please select Event or Vendor\")\n .required(\"Resource type is required\"),\n resourceSlug: yup.string().required(\"Resource slug is required\"),\n});\n\nexport const adSchema: yup.ObjectSchema<AdFormState> = yup.object().shape({\n active: yup.boolean().required(\"Active status is required\"),\n end: yup\n .date()\n .required(\"End date is required\")\n .test(\"is-future-date\", \"End date must be in the future\", (value) => {\n if (!value) return false;\n const endDate = new Date(value);\n const now = new Date();\n return endDate > now;\n })\n .when(\"start\", {\n is: (val: string) => val && val.length > 0,\n then: (schema) =>\n schema.test(\n \"is-after-start\",\n \"End date must be after start date\",\n function (value) {\n const { start } = this.parent;\n if (!value || !start) return false;\n return new Date(value) > new Date(start);\n },\n ),\n }),\n resource: adResourceSchema.required(\"Resource information is required\"),\n showOn: yup\n .array()\n .of(yup.mixed<AdShowOnEnum>().oneOf(Object.values(AdShowOnEnum)).required())\n .min(1, \"At least one display location is required\")\n .required(\"Display location is required\"),\n status: yup\n .mixed<AdStatusTypeEnum>()\n .oneOf(Object.values(AdStatusTypeEnum))\n .required(\"Ad status is required\"),\n start: yup.date().when(\"status\", {\n is: (status: AdStatusTypeEnum) => status !== AdStatusTypeEnum.Active,\n then: () =>\n yup\n .date()\n .required(\"Start date is required\")\n .test(\"is-future-date\", \"Start date must be in the future\", (value) => {\n if (!value) return false;\n return value > new Date();\n }),\n // Keep `start` optional (not null) when ACTIVE to match TS type `start?: Date`.\n otherwise: () => yup.date().notRequired(),\n }),\n targetRegion: yup\n .array()\n .of(yup.string().required())\n .min(1, \"At least one target region is required\")\n .required(\"Target region is required\"),\n});\n","import * as yup from \"yup\";\n\nimport { PartnerEnumType } from \"../generated/graphql\";\n\nimport { globalResourceSchema, locationSchema, nzbnRegex } from \"./global\";\n\nexport const partnerSchema = globalResourceSchema.shape({\n location: locationSchema,\n nzbn: yup\n .string()\n .required(\"NZBN is required\")\n .matches(nzbnRegex, \"NZBN must be 13 digits and start with 94\"),\n partnerType: yup\n .mixed<PartnerEnumType>()\n .oneOf(Object.values(PartnerEnumType), \"Please select a valid Partner type\")\n .required(\"Please select a Partner type\"),\n});\n","import * as yup from \"yup\";\n\nimport { PostContentInputData } from \"src/types/post\";\n\nimport {\n PostContentEnum,\n PostTypeEnum,\n ResourceTypeEnum,\n} from \"../generated/graphql\";\n\n/* ------------------------------------------------------------------ */\n/* Post content block schema */\n/* ------------------------------------------------------------------ */\n\nexport const postContentSchema = yup.object().shape({\n contentData: yup.mixed<PostContentInputData>().optional().nullable(),\n contentOrder: yup.number().nullable(),\n contentType: yup\n .mixed<PostContentEnum>()\n .oneOf(Object.values(PostContentEnum))\n .nullable(),\n});\n\n/* ------------------------------------------------------------------ */\n/* Final post schema */\n/* ------------------------------------------------------------------ */\n\nexport const postSchema = yup.object().shape({\n active: yup.boolean().required(),\n caption: yup.string().required(),\n content: yup.array().of(postContentSchema).required(),\n postType: yup\n .mixed<PostTypeEnum>()\n .oneOf(Object.values(PostTypeEnum))\n .required(),\n resource: yup\n .object({\n resourceId: yup.string().required(),\n resourceRegion: yup.string().required(),\n resourceSlug: yup.string().required(),\n resourceType: yup\n .mixed<ResourceTypeEnum>()\n .oneOf(Object.values(ResourceTypeEnum))\n .required(),\n })\n .nullable()\n .optional(),\n tags: yup.array().of(yup.string().required()).nullable().optional(),\n title: yup.string().required(),\n});\n","import * as yup from \"yup\";\n\nexport const appSettingsSchema = yup.object({\n appVersion: yup\n .string()\n .trim()\n .label(\"App Version\")\n .matches(\n /^\\d+\\.\\d+\\.\\d+$/,\n \"App Version must be in the format X.Y.Z (e.g. 1.12.50)\",\n )\n .required(\"App Version is required\"),\n isOfflineMode: yup\n .boolean()\n .label(\"Is Offline Mode\")\n .required(\"Is Offline Mode is required\"),\n minimumRedeemableAffiliatePoints: yup\n .number()\n .label(\"Minimum Redeemable Affiliate Points\")\n .min(0, \"Minimum Redeemable Affiliate Points must be greater than 0\")\n .required(\"Minimum Redeemable Affiliate Points is required\"),\n});\n","import {\n AffiliateParticipantTypeEnum,\n EventEnumType,\n FoodFlavorEnumType,\n PartnerEnumType,\n VendorEnumType,\n} from \"../generated/graphql\";\nimport {\n AffiliateFormData,\n BaseResourceTypeFormData,\n EventFormData,\n EventInfoFormData,\n LocationType,\n PartnerFormData,\n UnregisteredVendorFormData,\n VendorFormData,\n VendorInfoFormData,\n} from \"../types\";\n\nexport { affiliateToFormData as mapAffiliateToFormData } from \"../types/affiliateAdapters\";\n\nexport const defaultLocation: LocationType = {\n city: \"\",\n country: \"\",\n fullAddress: \"\",\n geo: {\n coordinates: [0, 0], // [longitude, latitude]\n type: \"Point\",\n },\n latitude: 0,\n longitude: 0,\n region: \"\",\n};\n\nexport const globalDefaultValues: BaseResourceTypeFormData = {\n active: false,\n contactDetails: {\n email: null,\n landlinePhone: null,\n mobilePhone: null,\n },\n cover: {\n active: true,\n source: \"\",\n title: \"\",\n },\n coverUpload: {\n active: true,\n source: \"\",\n title: \"\",\n },\n description: \"\",\n images: null,\n imagesUpload: null,\n logo: null,\n logoUpload: null,\n name: \"\",\n promoCodes: [],\n region: \"\",\n socialMedia: [],\n};\n\nexport const defaultPartnerFormValues: PartnerFormData = {\n ...globalDefaultValues,\n location: defaultLocation,\n nzbn: \"\",\n partnerType: \"\" as PartnerEnumType,\n};\n\nexport const defaultEventFormValues: EventFormData = {\n ...globalDefaultValues,\n claimed: true,\n dateTime: [],\n eventType: \"\" as EventEnumType,\n googlePlaceId: null,\n location: defaultLocation,\n nzbn: \"\",\n provider: null,\n rainOrShine: false,\n tags: [],\n};\n\nexport const defaultEventInfoFormValues: EventInfoFormData = {\n applicationDeadlineHours: 24,\n dateTime: [],\n eventId: \"\",\n packInTime: 2, // e.g., 2 hours before event opens\n paymentDueHours: 12,\n paymentInfo: [],\n refundPolicy: [],\n requirements: [],\n};\n\nexport const defaultVendorFormValues: VendorFormData = {\n ...globalDefaultValues,\n availability: {\n corporate: false,\n private: false,\n school: false,\n },\n categories: [],\n claimed: true,\n foodTruck: false,\n products: null,\n unregisteredVendorId: null,\n vendorType: VendorEnumType.Stallholder,\n};\n\nexport const defaultUnregisteredVendorFormValues: UnregisteredVendorFormData = {\n categoryIds: [],\n dateTime: [],\n email: null,\n inviterId: \"\",\n name: \"\",\n region: \"\",\n};\n\nexport const defaultVendorInfoFormValues: VendorInfoFormData = {\n compliance: { foodBeverageLicense: false, liabilityInsurance: false },\n documents: null,\n documentsUpload: null,\n product: {\n foodFlavors: [] as FoodFlavorEnumType[],\n packaging: [],\n priceRange: { max: \"\", min: \"\" },\n producedIn: [],\n },\n requirements: {\n electricity: { details: null, isRequired: false },\n gazebo: { details: null, isRequired: false },\n table: { details: null, isRequired: false },\n },\n stallInfo: {\n size: { depth: \"\", width: \"\" },\n },\n vendorId: \"\",\n};\n\nexport const defaultAffiliateFormValues: AffiliateFormData = {\n bankAccountDetails: {\n accountHolderName: \"\",\n accountNumber: \"\",\n },\n contactDetails: {\n mobilePhone: \"\",\n },\n irdNumber: \"\",\n location: defaultLocation,\n participantType: \"\" as AffiliateParticipantTypeEnum,\n socialMedia: null,\n termsAgreement: null,\n};\n\nexport function mapBaseResourceTypeToFormData(\n data: BaseResourceTypeFormData,\n): BaseResourceTypeFormData {\n return {\n _id: data._id,\n active: data.active,\n contactDetails: data.contactDetails,\n cover: data.cover,\n coverUpload: data.coverUpload ?? null,\n description: data.description,\n images: data.images,\n imagesUpload: data.imagesUpload ?? null,\n logo: data.logo,\n logoUpload: data.logoUpload ?? null,\n name: data.name,\n promoCodes: data.promoCodes,\n region: data.region,\n socialMedia: data.socialMedia,\n termsAgreement: data.termsAgreement,\n };\n}\n","import { yupResolver } from \"@hookform/resolvers/yup\";\nimport * as React from \"react\";\nimport { useForm } from \"react-hook-form\";\n\nimport {\n CreateVendorInfoFormData,\n VendorInfoFormData,\n} from \"../../types/vendor\";\nimport { vendorInfoSchema } from \"../../yupSchema\";\nimport { defaultVendorInfoFormValues } from \"../utils\";\n\nexport function useVendorInfoForm(\n data?: VendorInfoFormData,\n): CreateVendorInfoFormData {\n const {\n control,\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n } = useForm<VendorInfoFormData>({\n defaultValues: defaultVendorInfoFormValues,\n resolver: yupResolver(vendorInfoSchema),\n });\n\n React.useEffect(() => {\n if (data) {\n reset({\n _id: data._id,\n compliance: data.compliance,\n documents: data.documents,\n documentsUpload: data.documentsUpload,\n product: data.product,\n requirements: data.requirements,\n stallInfo: data.stallInfo,\n vendorId: data.vendorId,\n });\n } else {\n reset(defaultVendorInfoFormValues);\n }\n }, [data]);\n\n const {\n _id,\n compliance,\n documents,\n documentsUpload,\n product,\n requirements,\n stallInfo,\n vendorId,\n } = getValues();\n\n return {\n control,\n fields: {\n _id,\n compliance,\n documents,\n documentsUpload,\n product,\n requirements,\n stallInfo,\n vendorId,\n },\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n };\n}\n","import { yupResolver } from \"@hookform/resolvers/yup\";\nimport * as React from \"react\";\nimport { useForm } from \"react-hook-form\";\n\nimport {\n CreateUnregisteredVendorFormData,\n UnregisteredVendorFormData,\n} from \"../../types/vendor\";\nimport { unregisteredVendorSchema } from \"../../yupSchema\";\nimport { defaultUnregisteredVendorFormValues } from \"../utils\";\n\n/**\n * Custom hook to manage the vendor form state and validation.\n *\n * @param {UnregisteredVendorFormData} data - The initial form data.\n * @returns {CreateUnregisteredVendorFormData} - The form methods and state.\n */\nexport function useUnregisteredVendorForm(\n data?: UnregisteredVendorFormData,\n): CreateUnregisteredVendorFormData {\n const {\n control,\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n } = useForm<UnregisteredVendorFormData>({\n defaultValues: defaultUnregisteredVendorFormValues,\n resolver: yupResolver(unregisteredVendorSchema),\n });\n\n React.useEffect(() => {\n if (data) {\n reset({\n categoryIds: data.categoryIds,\n dateTime: data.dateTime,\n email: data.email,\n inviterId: data.inviterId,\n name: data.name,\n region: data.region,\n });\n } else {\n reset(defaultUnregisteredVendorFormValues);\n }\n }, [data]);\n\n const { categoryIds, dateTime, email, inviterId, name, region } = getValues();\n\n return {\n control,\n fields: {\n categoryIds,\n dateTime,\n email,\n inviterId,\n name,\n region,\n },\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n };\n}\n","import { yupResolver } from \"@hookform/resolvers/yup\";\nimport * as React from \"react\";\nimport { useForm } from \"react-hook-form\";\n\nimport { CreateEventFormData, EventFormData } from \"../../types/event\";\nimport { eventSchema } from \"../../yupSchema\";\nimport {\n defaultEventFormValues,\n mapBaseResourceTypeToFormData,\n} from \"../utils\";\n\n/**\n * Custom hook to manage the event form state and validation.\n *\n * @param {EventFormData} data - The initial form data.\n * @returns {CreateEventFormData} - The form methods and state.\n */\nexport function useEventForm(data?: EventFormData): CreateEventFormData {\n const {\n control,\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n } = useForm<EventFormData>({\n defaultValues: defaultEventFormValues,\n resolver: yupResolver(eventSchema),\n });\n\n React.useEffect(() => {\n if (data) {\n reset({\n ...mapBaseResourceTypeToFormData(data),\n claimed: data.claimed ?? false,\n dateTime: data.dateTime,\n eventType: data.eventType,\n googlePlaceId: data.googlePlaceId,\n location: data.location,\n nzbn: data.nzbn,\n provider: data.provider,\n rainOrShine: data.rainOrShine,\n tags: data.tags,\n });\n } else {\n reset(defaultEventFormValues);\n }\n }, [data]);\n\n const {\n _id,\n active,\n claimed,\n contactDetails,\n cover,\n coverUpload,\n dateTime,\n description,\n eventType,\n googlePlaceId,\n images,\n imagesUpload,\n location,\n logo,\n logoUpload,\n name,\n nzbn,\n promoCodes,\n provider,\n rainOrShine,\n region,\n socialMedia,\n tags,\n termsAgreement,\n } = getValues();\n\n return {\n control,\n fields: {\n _id,\n active,\n claimed,\n contactDetails,\n cover,\n coverUpload,\n dateTime,\n description,\n eventType,\n googlePlaceId,\n images,\n imagesUpload,\n location,\n logo,\n logoUpload,\n name,\n nzbn,\n promoCodes,\n provider,\n rainOrShine,\n region,\n socialMedia,\n tags,\n termsAgreement,\n },\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n };\n}\n","import { yupResolver } from \"@hookform/resolvers/yup\";\nimport * as React from \"react\";\nimport { useForm } from \"react-hook-form\";\n\nimport { CreateEventInfoFormData, EventInfoFormData } from \"../../types/event\";\nimport { eventInfoSchema } from \"../../yupSchema\";\nimport { defaultEventInfoFormValues } from \"../utils\";\n\n/**\n * Custom hook to manage the event form state and validation.\n *\n * @param {EventInfoFormData} data - The initial form data.\n * @returns {CreateEventInfoFormData} - The form methods and state.\n */\nexport function useEventInfoForm(\n data?: EventInfoFormData,\n): CreateEventInfoFormData {\n const {\n control,\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n } = useForm<EventInfoFormData>({\n defaultValues: defaultEventInfoFormValues,\n resolver: yupResolver(eventInfoSchema),\n });\n\n React.useEffect(() => {\n if (data) {\n reset({\n _id: data._id,\n applicationDeadlineHours: data.applicationDeadlineHours,\n dateTime: data.dateTime,\n eventId: data.eventId,\n packInTime: data.packInTime,\n paymentDueHours: data.paymentDueHours,\n paymentInfo: data.paymentInfo,\n refundPolicy: data.refundPolicy,\n requirements: data.requirements,\n });\n } else {\n reset(defaultEventInfoFormValues);\n }\n }, [data]);\n\n const {\n _id,\n applicationDeadlineHours,\n dateTime,\n eventId,\n packInTime,\n paymentDueHours,\n paymentInfo,\n refundPolicy,\n requirements,\n } = getValues();\n\n return {\n control,\n fields: {\n _id,\n applicationDeadlineHours,\n dateTime,\n eventId,\n packInTime,\n paymentDueHours,\n paymentInfo,\n refundPolicy,\n requirements,\n },\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n };\n}\n","import { yupResolver } from \"@hookform/resolvers/yup\";\nimport * as React from \"react\";\nimport { useForm } from \"react-hook-form\";\n\nimport { CreateUserFormData, UserFormData } from \"../types/user\";\nimport { userSchema } from \"../yupSchema/user\";\n\nconst defaultValues: UserFormData = {\n active: false,\n avatar: null,\n avatarUpload: null,\n confirmPassword: \"\",\n email: \"\",\n firstName: \"\",\n isTester: false,\n lastName: \"\",\n location: null,\n password: null,\n preferredRegion: \"\",\n};\n\n/**\n * Custom hook to manage the user form state and validation.\n *\n * @param {UserFormData} data - The initial form data.\n * @returns {CreateUserFormData} - The form methods and state.\n */\nexport function useUserForm(data?: UserFormData): CreateUserFormData {\n const {\n control,\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n } = useForm<UserFormData>({\n defaultValues,\n resolver: yupResolver(userSchema),\n });\n\n React.useEffect(() => {\n if (data) {\n reset({\n _id: data._id,\n active: data.active,\n avatar: data.avatar,\n avatarUpload: data.avatarUpload,\n email: data.email,\n firstName: data.firstName,\n isTester: data.isTester,\n lastName: data.lastName,\n location: data.location,\n password: data.password,\n preferredRegion: data.preferredRegion,\n termsAgreement: data.termsAgreement,\n });\n } else {\n reset(defaultValues);\n }\n }, [data]);\n\n const {\n _id,\n active,\n avatar,\n avatarUpload,\n email,\n firstName,\n isTester,\n lastName,\n location,\n password,\n preferredRegion,\n termsAgreement,\n } = getValues();\n\n return {\n control,\n fields: {\n _id,\n active,\n avatar,\n avatarUpload,\n email,\n firstName,\n isTester,\n lastName,\n location,\n password,\n preferredRegion,\n termsAgreement,\n },\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n };\n}\n","import { yupResolver } from \"@hookform/resolvers/yup\";\nimport { useForm } from \"react-hook-form\";\n\nimport { CreateLoginFormData, LoginFormData } from \"../../types/auth\";\nimport { loginSchema } from \"../../yupSchema/auth\";\n\nconst defaultValues: LoginFormData = {\n email: \"\",\n password: \"\",\n};\n\n/**\n * Custom hook to manage the login form state and validation.\n *\n * @returns {CreateLoginFormData} - The form methods and state.\n */\nexport function useLoginForm(): CreateLoginFormData {\n const {\n control,\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n } = useForm<LoginFormData>({\n defaultValues,\n resolver: yupResolver(loginSchema),\n });\n\n const { email, password } = getValues();\n\n return {\n control,\n fields: {\n email,\n password,\n },\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n };\n}\n","import { yupResolver } from \"@hookform/resolvers/yup\";\nimport { useForm } from \"react-hook-form\";\n\nimport { CreateRegisterFormData, RegisterFormData } from \"../../types/auth\";\nimport { registerSchema } from \"../../yupSchema/auth\";\n\nconst defaultValues: RegisterFormData = {\n email: \"\",\n firstName: \"\",\n lastName: \"\",\n password: \"\",\n preferredRegion: \"\",\n promoCode: null,\n termsAgreement: null,\n};\n\n/**\n * Custom hook to manage the register form state and validation.\n *\n * @returns {CreateRegisterFormData} - The form methods and state.\n */\nexport function useRegisterForm(): CreateRegisterFormData {\n const {\n control,\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n } = useForm<RegisterFormData>({\n defaultValues,\n resolver: yupResolver(registerSchema),\n });\n\n const {\n email,\n firstName,\n lastName,\n password,\n preferredRegion,\n promoCode,\n termsAgreement,\n } = getValues();\n\n return {\n control,\n fields: {\n email,\n firstName,\n lastName,\n password,\n preferredRegion,\n promoCode,\n termsAgreement,\n },\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n };\n}\n","import { yupResolver } from \"@hookform/resolvers/yup\";\nimport { useForm } from \"react-hook-form\";\n\nimport {\n CreateRequestPasswordResetFormData,\n RequestPasswordResetFormData,\n} from \"../../types/auth\";\nimport { requestPasswordResetSchema } from \"../../yupSchema/auth\";\n\nconst defaultValues: RequestPasswordResetFormData = {\n email: \"\",\n};\n\nexport function useRequestPasswordResetForm(): CreateRequestPasswordResetFormData {\n const {\n control,\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n } = useForm<RequestPasswordResetFormData>({\n defaultValues,\n resolver: yupResolver(requestPasswordResetSchema),\n });\n\n const { email } = getValues();\n\n return {\n control,\n fields: {\n email,\n },\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n };\n}\n","import { yupResolver } from \"@hookform/resolvers/yup\";\nimport { useForm } from \"react-hook-form\";\n\nimport {\n CreateValidateVerificationTokenFormData,\n ValidateVerificationTokenFormData,\n} from \"../../types/auth\";\nimport { validateVerificationTokenSchema } from \"../../yupSchema/auth\";\n\nconst defaultValues: ValidateVerificationTokenFormData = {\n email: \"\",\n verificationToken: \"\",\n};\n\nexport function useValidateVerificationTokenForm(): CreateValidateVerificationTokenFormData {\n const {\n control,\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n } = useForm<ValidateVerificationTokenFormData>({\n defaultValues,\n resolver: yupResolver(validateVerificationTokenSchema),\n });\n\n const { email, verificationToken } = getValues();\n\n return {\n control,\n fields: {\n email,\n verificationToken,\n },\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n };\n}\n","import { yupResolver } from \"@hookform/resolvers/yup\";\nimport { useForm } from \"react-hook-form\";\n\nimport {\n CreateResetPasswordFormData,\n ResetPasswordFormData,\n} from \"../../types/auth\";\nimport { resetPasswordSchema } from \"../../yupSchema/auth\";\n\nconst defaultValues: ResetPasswordFormData = {\n confirmPassword: \"\",\n email: \"\",\n password: \"\",\n};\n\nexport function useResetPasswordForm(): CreateResetPasswordFormData {\n const {\n control,\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n } = useForm<ResetPasswordFormData>({\n defaultValues,\n resolver: yupResolver(resetPasswordSchema),\n });\n\n const { confirmPassword, email, password } = getValues();\n\n return {\n control,\n fields: {\n confirmPassword,\n email,\n password,\n },\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n };\n}\n","import { yupResolver } from \"@hookform/resolvers/yup\";\nimport React from \"react\";\nimport { useForm } from \"react-hook-form\";\n\nimport {\n ContactUsFormData,\n CreateContactUsFormData,\n} from \"src/types/contactUs\";\nimport { contactUsSchema } from \"src/yupSchema/contactUs\";\n\nconst defaultValues = {\n email: \"\",\n firstName: \"\",\n lastName: \"\",\n message: \"\",\n};\n\nexport function useContactUsForm(\n data?: ContactUsFormData,\n): CreateContactUsFormData {\n const {\n control,\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n } = useForm<ContactUsFormData>({\n defaultValues,\n resolver: yupResolver(contactUsSchema),\n });\n\n React.useEffect(() => {\n if (data) {\n reset({\n email: data.email,\n firstName: data.firstName,\n lastName: data.lastName,\n message: data.message,\n });\n } else {\n reset(defaultValues);\n }\n }, [data]);\n\n const { email, firstName, lastName, message } = getValues();\n\n return {\n control,\n fields: {\n email,\n firstName,\n lastName,\n message,\n },\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n };\n}\n","import * as yup from \"yup\";\n\nimport { emailRequiredSchema } from \"./global\";\n\nexport const contactUsSchema = yup.object().shape({\n email: emailRequiredSchema,\n firstName: yup\n .string()\n .label(\"First Name\")\n .required(\"First name is required\"),\n lastName: yup.string().label(\"Last Name\").required(\"Last name is required\"),\n message: yup.string().label(\"Message\").required(\"Message is required\"),\n});\n","import { yupResolver } from \"@hookform/resolvers/yup\";\nimport React from \"react\";\nimport { useForm } from \"react-hook-form\";\n\nimport { AdFormData, AdFormState, CreateAdFormState } from \"src/types/ad\";\nimport { adSchema } from \"src/yupSchema\";\n\nimport {\n AdShowOnEnum,\n AdStatusTypeEnum,\n AdStyleEnum,\n AdTypeEnum,\n ResourceTypeEnum,\n} from \"../generated/graphql\";\n\nconst defaultValues: AdFormState = {\n active: true,\n // Use a future default so yup \"future date\" rules pass on first submit.\n end: new Date(Date.now() + 7 * 24 * 60 * 60 * 1000),\n resource: {\n adDescription: \"\",\n adImage: \"\",\n adStyle: \"\" as AdStyleEnum,\n adTitle: \"\",\n adType: \"\" as AdTypeEnum,\n resourceId: \"\",\n resourceName: \"\",\n resourceRegion: \"\",\n resourceSlug: \"\",\n resourceType: \"\" as ResourceTypeEnum,\n },\n showOn: [AdShowOnEnum.FrontPage],\n // `start` is only required (and must be future) when status !== ACTIVE.\n start: undefined,\n status: AdStatusTypeEnum.Active,\n targetRegion: [],\n};\n\nexport function useAdForm(data?: AdFormData): CreateAdFormState {\n const {\n control,\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n } = useForm<AdFormState>({\n defaultValues,\n resolver: yupResolver(adSchema),\n });\n\n React.useEffect(() => {\n if (data) {\n reset({\n active: data.active,\n end: data.end,\n resource: data.resource,\n showOn: data.showOn,\n start: data.start,\n status: data.status,\n targetRegion: data.targetRegion,\n });\n } else {\n reset(defaultValues);\n }\n }, [data]);\n\n const { active, end, resource, showOn, start, status, targetRegion } =\n getValues();\n\n return {\n control,\n fields: {\n active,\n end,\n resource,\n showOn,\n start,\n status,\n targetRegion,\n },\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n };\n}\n","import { yupResolver } from \"@hookform/resolvers/yup\";\nimport * as React from \"react\";\nimport { useForm } from \"react-hook-form\";\n\nimport { CreatePartnerFormData, PartnerFormData } from \"src/types/partner\";\nimport { partnerSchema } from \"src/yupSchema/partner\";\n\nimport {\n defaultPartnerFormValues,\n mapBaseResourceTypeToFormData,\n} from \"../utils\";\n\n/**\n * Custom hook to manage the partner form state and validation.\n *\n * @param {PartnerFormData} data - The initial form data.\n * @returns {CreatePartnerFormData} - The form methods and state.\n */\nexport function usePartnerForm(data?: PartnerFormData): CreatePartnerFormData {\n const {\n control,\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n } = useForm<PartnerFormData>({\n defaultValues: defaultPartnerFormValues,\n resolver: yupResolver(partnerSchema),\n });\n\n React.useEffect(() => {\n if (data) {\n reset({\n ...mapBaseResourceTypeToFormData(data),\n location: data.location,\n nzbn: data.nzbn,\n partnerType: data.partnerType,\n });\n } else {\n reset(defaultPartnerFormValues);\n }\n }, [data]);\n\n const {\n _id,\n active,\n contactDetails,\n cover,\n coverUpload,\n description,\n images,\n imagesUpload,\n location,\n logo,\n logoUpload,\n name,\n nzbn,\n partnerType,\n promoCodes,\n region,\n socialMedia,\n termsAgreement,\n } = getValues();\n\n return {\n control,\n fields: {\n _id,\n active,\n contactDetails,\n cover,\n coverUpload,\n description,\n images,\n imagesUpload,\n location,\n logo,\n logoUpload,\n name,\n nzbn,\n partnerType,\n promoCodes,\n region,\n socialMedia,\n termsAgreement,\n },\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n };\n}\n","import { yupResolver } from \"@hookform/resolvers/yup\";\nimport React from \"react\";\nimport { useForm } from \"react-hook-form\";\n\nimport { CreatePostFormData, PostFormData } from \"src/types/post\";\nimport { postSchema } from \"src/yupSchema/post\";\n\nimport { PostTypeEnum } from \"../generated/graphql\";\n\nconst defaultValues: PostFormData = {\n active: false,\n caption: \"\",\n content: [],\n cover: null,\n coverUpload: null,\n postType: \"\" as PostTypeEnum,\n resource: null,\n tags: [],\n title: \"\",\n};\n\nexport function usePostForm(data?: PostFormData): CreatePostFormData {\n const {\n control,\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n } = useForm<PostFormData>({\n defaultValues,\n resolver: yupResolver(postSchema),\n });\n\n React.useEffect(() => {\n if (data) {\n reset({\n active: data.active,\n caption: data.caption,\n content: data.content,\n cover: data.cover,\n coverUpload: data.coverUpload,\n postType: data.postType,\n resource: data.resource,\n tags: data.tags,\n title: data.title,\n });\n } else {\n reset(defaultValues);\n }\n }, [data, reset]);\n\n const {\n active,\n caption,\n content,\n cover,\n coverUpload,\n postType,\n resource,\n tags,\n title,\n } = getValues();\n\n return {\n control,\n fields: {\n active,\n caption,\n content,\n cover,\n coverUpload,\n postType,\n resource,\n tags,\n title,\n },\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n };\n}\n","import { yupResolver } from \"@hookform/resolvers/yup\";\nimport React from \"react\";\nimport { useForm } from \"react-hook-form\";\n\nimport {\n AppSettingsFormData,\n CreateAppSettingsFormData,\n} from \"src/types/appSettings\";\nimport { appSettingsSchema } from \"src/yupSchema/appSettings\";\n\nconst defaultValues = {\n appVersion: \"\",\n isOfflineMode: false,\n minimumRedeemableAffiliatePoints: 0,\n};\n\nexport function useAppSettingsForm(\n data?: AppSettingsFormData,\n): CreateAppSettingsFormData {\n const {\n control,\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n } = useForm<AppSettingsFormData>({\n defaultValues,\n resolver: yupResolver(appSettingsSchema),\n });\n\n React.useEffect(() => {\n if (data) {\n reset({\n appVersion: data.appVersion,\n isOfflineMode: data.isOfflineMode,\n minimumRedeemableAffiliatePoints: data.minimumRedeemableAffiliatePoints,\n });\n } else {\n reset(defaultValues);\n }\n }, [data]);\n\n const { appVersion, isOfflineMode, minimumRedeemableAffiliatePoints } =\n getValues();\n\n return {\n control,\n fields: {\n appVersion,\n isOfflineMode,\n minimumRedeemableAffiliatePoints,\n },\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n };\n}\n","import { yupResolver } from \"@hookform/resolvers/yup\";\nimport { useEffect } from \"react\";\nimport { useForm } from \"react-hook-form\";\n\nimport { CreateSchoolFormData, SchoolFormData } from \"../types/school\";\nimport { schoolSchema } from \"../yupSchema/school\";\n\nimport { defaultLocation } from \"./utils\";\n\nconst defaultSchoolFormValues: SchoolFormData = {\n // New schools are active by default\n active: true,\n contactDetails: null,\n location: defaultLocation,\n logo: null,\n logoUpload: null,\n name: \"\",\n region: \"\",\n socialMedia: [],\n studentCount: 0,\n termsAgreement: null,\n};\n\nexport function useSchoolForm(data?: SchoolFormData): CreateSchoolFormData {\n const {\n control,\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n } = useForm<SchoolFormData>({\n defaultValues: defaultSchoolFormValues,\n resolver: yupResolver(schoolSchema),\n });\n\n useEffect(() => {\n if (data) {\n reset({\n _id: data._id,\n active: data.active,\n contactDetails: data.contactDetails,\n location: data.location,\n logo: data.logo,\n logoUpload: data.logoUpload,\n name: data.name,\n region: data.region,\n socialMedia: data.socialMedia,\n studentCount: data.studentCount,\n termsAgreement: data.termsAgreement,\n });\n } else {\n reset(defaultSchoolFormValues);\n }\n }, [data]);\n\n const {\n _id,\n socialMedia,\n active,\n contactDetails,\n location,\n logo,\n logoUpload,\n name,\n region,\n studentCount,\n termsAgreement,\n } = getValues();\n\n return {\n control,\n fields: {\n _id,\n active,\n contactDetails,\n location,\n logo,\n logoUpload,\n name,\n region,\n socialMedia,\n studentCount,\n termsAgreement,\n },\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n };\n}\n","import * as yup from \"yup\";\n\nimport { SCHOOL_MIN_STUDENT_COUNT } from \"src/utils/school\";\n\nimport {\n contactDetailsSchema,\n locationSchema,\n noLeadingZeros,\n socialMediaSchema,\n toOptionalNumber,\n} from \"./global\";\n\nexport const schoolSchema = yup.object().shape({\n active: yup.boolean().required(\"Active is required\"),\n contactDetails: contactDetailsSchema,\n location: locationSchema,\n name: yup.string().trim().required(\"Name is required\"),\n region: yup.string().trim().required(\"Region is required\"),\n socialMedia: yup.array().of(socialMediaSchema).nullable().default(null),\n studentCount: yup\n .number()\n .transform((_, originalValue) => toOptionalNumber(originalValue))\n .label(\"Student Count\")\n .nullable()\n .typeError(\"Student count must be a number\")\n .min(\n SCHOOL_MIN_STUDENT_COUNT,\n `Student count must be at least ${SCHOOL_MIN_STUDENT_COUNT}`,\n )\n .required(\"Student count is required\")\n .test(\"no-leading-zeros\", \"\", noLeadingZeros(\"Student Count\")),\n});\n","import { yupResolver } from \"@hookform/resolvers/yup\";\nimport { useEffect } from \"react\";\nimport { useForm } from \"react-hook-form\";\n\nimport { defaultAffiliateFormValues } from \"src/hooks/utils\";\nimport {\n AffiliateFormData,\n CreateAffiliateFormData,\n} from \"src/types/affiliate\";\nimport { affiliateSchema } from \"src/yupSchema/affiliate\";\n\nexport function useAffiliateForm(\n data: AffiliateFormData,\n): CreateAffiliateFormData {\n const {\n control,\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n } = useForm<AffiliateFormData>({\n defaultValues: defaultAffiliateFormValues,\n resolver: yupResolver(affiliateSchema),\n });\n\n useEffect(() => {\n if (data) {\n reset({\n bankAccountDetails: data.bankAccountDetails,\n contactDetails: data.contactDetails,\n irdNumber: data.irdNumber,\n location: data.location,\n participantType: data.participantType,\n socialMedia: data.socialMedia,\n termsAgreement: data.termsAgreement,\n });\n } else {\n reset(defaultAffiliateFormValues);\n }\n }, [data]);\n\n const {\n bankAccountDetails,\n contactDetails,\n irdNumber,\n location,\n participantType,\n socialMedia,\n termsAgreement,\n } = getValues();\n\n return {\n control,\n fields: {\n bankAccountDetails,\n contactDetails,\n irdNumber,\n location,\n participantType,\n socialMedia,\n termsAgreement,\n },\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n };\n}\n","import * as yup from \"yup\";\n\nimport { isValidIrdNumber } from \"src/utils/irdNumber\";\n\nimport { AffiliateParticipantTypeEnum } from \"../generated/graphql\";\n\nimport {\n locationSchema,\n mobileRegex,\n nzBankAccountRegex,\n nzIrdNumberRegex,\n socialMediaSchema,\n} from \"./global\";\n\nconst affiliateContactDetailsSchema = yup.object({\n mobilePhone: yup\n .string()\n .trim()\n .required(\"Mobile phone is required\")\n .test(\n \"mobile-phone\",\n \"Mobile must start with 02 and be 9–11 digits\",\n (value) => mobileRegex.test(value),\n ),\n});\n\nexport const bankAccountDetailsSchema = yup.object({\n accountHolderName: yup.string().required(\"Account holder name is required\"),\n accountNumber: yup\n .string()\n .required(\"Account number is required for bank transfer\")\n .matches(\n nzBankAccountRegex,\n \"Account number must be in format: XX-XXXX-XXXXXXX-XX\",\n )\n .trim(),\n});\n\nexport const affiliateSchema = yup.object().shape({\n bankAccountDetails: bankAccountDetailsSchema.required(\n \"Bank account details are required\",\n ),\n contactDetails: affiliateContactDetailsSchema.required(\n \"Contact details are required\",\n ),\n irdNumber: yup\n .string()\n .trim()\n .required(\"IRD number is required\")\n .matches(\n nzIrdNumberRegex,\n \"IRD number must be in format: XXX-XXX-XX or XXX-XXX-XXX\",\n )\n .test(\n \"ird-number\",\n \"Enter a valid IRD number\",\n (value) => !!value && isValidIrdNumber(value),\n ),\n location: locationSchema.required(\"Location is required\"),\n participantType: yup\n .mixed<AffiliateParticipantTypeEnum>()\n .oneOf(\n Object.values(AffiliateParticipantTypeEnum),\n \"Please select a valid participant type\",\n )\n .required(\"Participant type is required\"),\n socialMedia: yup.array().of(socialMediaSchema).nullable().default(null),\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACsCA,IAAM,iBAAiB,CAAC,OAAgB,YAAoB;AAC1D,UAAQ,MAAM,SAAS,KAAK;AAC9B;AAOO,IAAM,oBAAoB,CAAC,cAAmC;AACnE,QAAM,iBAAiB,OACrB,SAC2C;AAC3C,QAAI;AACF,YAAM,WAAW,MAAM;AAAA,QACrB;AAAA,QACA;AAAA,UACE,MAAM,KAAK,UAAU;AAAA,YACnB,OAAO,GAAG,IAAI;AAAA,YACd,cAAc;AAAA,YACd,YAAY;AAAA,UACd,CAAC;AAAA,UACD,SAAS;AAAA,YACP,gBAAgB;AAAA,YAChB,kBAAkB;AAAA,YAClB,oBACE;AAAA,UACJ;AAAA,UACA,QAAQ;AAAA,QACV;AAAA,MACF;AAEA,UAAI,CAAC,SAAS,IAAI;AAChB,cAAM,IAAI,MAAM,uBAAuB,SAAS,MAAM,EAAE;AAAA,MA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A,QACtB,aAAa,KAAK;AAAA,QAClB,gBAAgB,KAAK;AAAA,MACvB,CAAC;AAAA,IACH,OAAO;AACL,YAAM,0BAA0B;AAAA,IAClC;AAAA,EACF,GAAG,CAAC,IAAI,CAAC;AAET,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI,UAAU;AAEd,SAAO;AAAA,IACL;AAAA,IACA,QAAQ;AAAA,MACN;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;","names":["import_dayjs","import_customParseFormat","import_isSameOrAfter","AdShowOnEnum","AdStatusTypeEnum","AdStyleEnum","AdTypeEnum","AffiliateParticipantTypeEnum","EventDateStatusEnumType","EventEnumType","FoodFlavorEnumType","InviteEnumType","PartnerEnumType","PaymentMethodEnumType","PostContentEnum","PostTypeEnum","ResourceTypeEnum","SocialMediaEnumType","VendorEnumType","dayjs","customParseFormat","utc","timezone","isSameOrAfter","EnumRegions","import_dayjs","dayjs","isSameOrAfter","customParseFormat","yup","yup","yup","yup","yup","yup","yup","yup","import_yup","React","import_react_hook_form","import_yup","React","import_react_hook_form","import_yup","React","import_react_hook_form","import_yup","React","import_react_hook_form","import_yup","React","import_react_hook_form","import_yup","import_react_hook_form","defaultValues","import_yup","import_react_hook_form","defaultValues","import_yup","import_react_hook_form","defaultValues","import_yup","import_react_hook_form","defaultValues","import_yup","import_react_hook_form","defaultValues","import_yup","import_react_hook_form","yup","defaultValues","React","import_yup","import_react","import_react_hook_form","defaultValues","React","import_yup","React","import_react_hook_form","import_yup","import_react","import_react_hook_form","defaultValues","React","import_yup","import_react","import_react_hook_form","defaultValues","React","import_yup","import_react","import_react_hook_form","yup","import_yup","import_react","import_react_hook_form","yup"]}
|
|
1
|
+
{"version":3,"sources":["../../src/hooks/index.ts","../../src/hooks/useLocationSearch.ts","../../src/hooks/vendor/useVendorForm.ts","../../src/yupSchema/global.ts","../../src/enums/index.ts","../../src/types/game/dailyClue.ts","../../src/utils/date.ts","../../src/types/global.ts","../../src/types/ad.ts","../../src/types/post.ts","../../src/types/subscription.ts","../../src/utils/utils.ts","../../src/utils/affiliate.ts","../../src/utils/school.ts","../../src/utils/eventDateStatus.ts","../../src/calendar/eventCalendar.ts","../../src/formFields/categories/clothingAndFashion.ts","../../src/formFields/categories/electronicsAndTechnology.ts","../../src/formFields/categories/foodAndBeverages.ts","../../src/formFields/categories/handmadeAndLocalProducts.ts","../../src/formFields/categories/healthAndWellness.ts","../../src/formFields/categories/homeGardenHousehold.ts","../../src/formFields/categories/petProductsAndAnimalGoods.ts","../../src/formFields/categories/serviceAndExperience.ts","../../src/formFields/categories/toysChildren.ts","../../src/formFields/categories/vintageAndAntique.ts","../../src/formFields/categories/index.ts","../../src/yupSchema/event.ts","../../src/yupSchema/vendor.ts","../../src/yupSchema/user.ts","../../src/yupSchema/auth.ts","../../src/yupSchema/ad.ts","../../src/yupSchema/partner.ts","../../src/yupSchema/post.ts","../../src/formFields/vendor/vendorInfo.ts","../../src/formFields/event/event.ts","../../src/formFields/event/eventInfo.ts","../../src/formFields/global.ts","../../src/formFields/auth.ts","../../src/formFields/user.ts","../../src/formFields/socialMedia.ts","../../src/formFields/contactUs.ts","../../src/graphql/queries/event.ts","../../src/graphql/queries/global.ts","../../src/graphql/queries/vendor.ts","../../src/graphql/queries/partner.ts","../../src/graphql/queries/post.ts","../../src/graphql/queries/game/dailyClue.ts","../../src/graphql/queries/game/puzzleGame.ts","../../src/graphql/queries/shareSlug.ts","../../src/graphql/queries/relation.ts","../../src/graphql/hooks/admin/hooksMutation.ts","../../src/graphql/mutations/admin.ts","../../src/graphql/hooks/auth.ts","../../src/graphql/mutations/auth.ts","../../src/graphql/hooks/chat/hooksMutation.ts","../../src/graphql/mutations/chat.ts","../../src/graphql/queries/chat.ts","../../src/graphql/hooks/chat/hooksQuery.ts","../../src/graphql/subscriptions/chat.ts","../../src/graphql/hooks/contactUs.ts","../../src/graphql/mutations/contactUs.ts","../../src/graphql/hooks/event/hooksMutation.ts","../../src/graphql/mutations/event.ts","../../src/graphql/queries/user.ts","../../src/graphql/hooks/event/hooksQuery.ts","../../src/graphql/hooks/notifications/hooksMutation.ts","../../src/graphql/mutations/notification.ts","../../src/graphql/queries/notification.ts","../../src/graphql/hooks/notifications/hooksQuery.ts","../../src/graphql/hooks/notifications/hooksSubscription.ts","../../src/graphql/subscriptions/notification.ts","../../src/graphql/hooks/poster.ts","../../src/graphql/mutations/poster.ts","../../src/graphql/hooks/pushToken.ts","../../src/graphql/mutations/pushToken.ts","../../src/graphql/hooks/relation/hooksMutation.ts","../../src/graphql/mutations/relation.ts","../../src/graphql/hooks/relation/hooksQuery.ts","../../src/graphql/hooks/vendor/hooksMutation.ts","../../src/graphql/mutations/vendor.ts","../../src/graphql/hooks/vendor/hooksQuery.ts","../../src/graphql/hooks/user/hooksMutation.ts","../../src/graphql/mutations/user.ts","../../src/graphql/hooks/user/hooksQuery.ts","../../src/graphql/hooks/ad/hooksMutation.ts","../../src/graphql/mutations/ad.ts","../../src/graphql/queries/ad.ts","../../src/graphql/hooks/ad/hooksQuery.ts","../../src/graphql/hooks/resourceActivities/hooksMutation.ts","../../src/graphql/mutations/resourceActivities.ts","../../src/graphql/hooks/resourceActivities/hooksQuery.ts","../../src/graphql/queries/resourceActivities.ts","../../src/graphql/hooks/stripe/hooksMutation.ts","../../src/graphql/mutations/stripe.ts","../../src/graphql/hooks/stripe/hooksQuery.ts","../../src/graphql/queries/stripe.ts","../../src/graphql/hooks/partner/hooksMutation.ts","../../src/graphql/mutations/partner.ts","../../src/graphql/hooks/partner/hooksQuery.ts","../../src/graphql/hooks/post/hooksMutation.ts","../../src/graphql/mutations/post.ts","../../src/graphql/hooks/post/hooksQuery.ts","../../src/graphql/hooks/appSettings/hooksMutation.ts","../../src/graphql/mutations/appSettings.ts","../../src/graphql/queries/appSettings.ts","../../src/graphql/hooks/appSettings/hooksQuery.ts","../../src/graphql/hooks/game/hooksMutation.ts","../../src/graphql/mutations/game.ts","../../src/graphql/queries/game/game.ts","../../src/graphql/hooks/game/hooksQuery.ts","../../src/graphql/hooks/school/hooksMutation.ts","../../src/graphql/mutations/school.ts","../../src/graphql/queries/school.ts","../../src/graphql/hooks/school/hooksQuery.ts","../../src/graphql/hooks/affiliate/hooksQuery.ts","../../src/graphql/queries/affiliate.ts","../../src/images/index.ts","../../src/sharing/relationShareTypes.ts","../../src/sharing/constants.ts","../../src/sharing/buildShareUrl.ts","../../src/yupSchema/appSettings.ts","../../src/hooks/utils.ts","../../src/hooks/vendor/useVendorInfoForm.ts","../../src/hooks/vendor/useUnregisteredVendorForm.ts","../../src/hooks/event/useEventForm.ts","../../src/hooks/event/useEventInfoForm.ts","../../src/hooks/useUserForm.ts","../../src/hooks/auth/useLoginForm.ts","../../src/hooks/auth/useRegisterForm.ts","../../src/hooks/auth/useRequestPasswordResetForm.ts","../../src/hooks/auth/useValidateVerificationTokenForm.ts","../../src/hooks/auth/useResetPasswordForm.ts","../../src/hooks/useContactUsForm.ts","../../src/yupSchema/contactUs.ts","../../src/hooks/useAdForm.ts","../../src/hooks/partner/usePartnerForm.ts","../../src/hooks/usePostForm.ts","../../src/hooks/useAppSettingsForm.ts","../../src/hooks/useSchoolForm.ts","../../src/yupSchema/school.ts"],"sourcesContent":["export * from \"./useLocationSearch\";\nexport * from \"./vendor\";\nexport * from \"./event\";\nexport * from \"./useUserForm\";\nexport * from \"./auth\";\nexport * from \"./utils\";\nexport * from \"./useContactUsForm\";\nexport * from \"./useAdForm\";\nexport * from \"./partner\";\nexport * from \"./usePostForm\";\nexport * from \"./useAppSettingsForm\";\nexport * from \"./useSchoolForm\";\n","/* eslint-disable camelcase */\nimport { LocationType } from \"../types/global\";\n\nexport interface PlacePrediction {\n place_id: string;\n description: string;\n}\n\ninterface PlaceDetails {\n addressComponents: {\n longText: string;\n shortText: string;\n types: string[];\n }[];\n formattedAddress: string;\n location: {\n latitude: number;\n longitude: number;\n };\n}\n\ninterface AutocompleteResponse {\n suggestions?: Array<{\n placePrediction?: {\n placeId?: string;\n text?: {\n text?: string;\n };\n };\n }>;\n}\n\ninterface UseLocation {\n getPredictions: (text: string) => Promise<PlacePrediction[] | undefined>;\n getPlaceDetails: (placeId: string) => Promise<LocationType | undefined>;\n}\n\n/** Handles API request errors */\nconst handleApiError = (error: unknown, message: string) => {\n console.error(message, error);\n};\n\n/**\n * Custom hook to manage location search functionality.\n *\n * @returns {UseLocation} - The functions to get predictions and place details.\n */\nexport const useLocationSearch = (googleApi: string): UseLocation => {\n const getPredictions = async (\n text: string,\n ): Promise<PlacePrediction[] | undefined> => {\n try {\n const response = await fetch(\n \"https://places.googleapis.com/v1/places:autocomplete\",\n {\n body: JSON.stringify({\n input: `${text} New Zealand`,\n languageCode: \"en\",\n regionCode: \"nz\",\n }),\n headers: {\n \"Content-Type\": \"application/json\",\n \"X-Goog-Api-Key\": googleApi,\n \"X-Goog-FieldMask\":\n \"suggestions.placePrediction.placeId,suggestions.placePrediction.text.text\",\n },\n method: \"POST\",\n },\n );\n\n if (!response.ok) {\n throw new Error(`HTTP error! Status: ${response.status}`);\n }\n\n const data = (await response.json()) as AutocompleteResponse;\n const suggestions = data.suggestions ?? [];\n const predictions = suggestions\n .map((suggestion) => suggestion.placePrediction)\n .filter(Boolean)\n .map((prediction) => ({\n description: prediction?.text?.text || \"\",\n place_id: prediction?.placeId || \"\",\n }))\n .filter((prediction) => prediction.place_id && prediction.description);\n\n return predictions;\n } catch (error) {\n console.error(\"Error fetching predictions:\", error);\n handleApiError(error, \"Failed to fetch address predictions.\");\n }\n };\n\n const getPlaceDetails = async (\n placeId: string,\n ): Promise<LocationType | undefined> => {\n try {\n const response = await fetch(\n `https://places.googleapis.com/v1/places/${placeId}`,\n {\n headers: {\n \"X-Goog-Api-Key\": googleApi,\n \"X-Goog-FieldMask\": \"addressComponents,formattedAddress,location\",\n },\n },\n );\n\n if (!response.ok) {\n throw new Error(`HTTP error! Status: ${response.status}`);\n }\n\n const result = (await response.json()) as PlaceDetails;\n\n const { latitude, longitude } = result.location;\n const { addressComponents, formattedAddress } = result;\n\n const address = addressComponents.reduce((acc, item) => {\n if (!Array.isArray(item.types)) return acc;\n\n if (item.types.includes(\"street_number\")) {\n return { ...acc, streetNumber: item.longText };\n }\n if (item.types.includes(\"route\")) {\n return { ...acc, streetName: item.longText };\n }\n if (item.types.includes(\"locality\")) {\n return { ...acc, city: item.longText };\n }\n if (item.types.includes(\"administrative_area_level_1\")) {\n return { ...acc, region: item.longText };\n }\n if (item.types.includes(\"country\")) {\n return { ...acc, country: item.longText };\n }\n return acc;\n }, {} as LocationType);\n\n const newLocation = {\n city: address.city ? address.city.toLowerCase() : \"\",\n country: address.country,\n fullAddress: formattedAddress,\n geo: {\n coordinates: [longitude, latitude], // [longitude, latitude]\n type: \"Point\" as const, // Mongoose GeoJSON type\n },\n latitude,\n longitude,\n region: address.region ? address.region.replace(/ Region$/, \"\") : \"\", // Remove \" Region\" suffix\n };\n\n return newLocation;\n } catch (error) {\n handleApiError(error, \"Failed to fetch place details.\");\n }\n };\n\n return {\n getPlaceDetails,\n getPredictions,\n };\n};\n","import { yupResolver } from \"@hookform/resolvers/yup\";\nimport * as React from \"react\";\nimport { useForm } from \"react-hook-form\";\n\nimport { CreateVendorFormData, VendorFormData } from \"../../types/vendor\";\nimport { vendorSchema } from \"../../yupSchema\";\nimport {\n defaultVendorFormValues,\n mapBaseResourceTypeToFormData,\n} from \"../utils\";\n\n/**\n * Custom hook to manage the vendor form state and validation.\n *\n * @param {VendorFormData} data - The initial form data.\n * @returns {CreateVendorFormData} - The form methods and state.\n */\nexport function useVendorForm(data?: VendorFormData): CreateVendorFormData {\n const {\n control,\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n } = useForm<VendorFormData>({\n defaultValues: defaultVendorFormValues,\n resolver: yupResolver(vendorSchema),\n });\n\n React.useEffect(() => {\n if (data) {\n reset({\n ...mapBaseResourceTypeToFormData(data),\n availability: data.availability,\n calendar: data.calendar,\n categories: data.categories,\n claimed: data.claimed ?? false,\n foodTruck: data.foodTruck,\n products: data.products,\n unregisteredVendorId: data.unregisteredVendorId,\n vendorType: data.vendorType,\n });\n } else {\n reset(defaultVendorFormValues);\n }\n }, [data]);\n\n const {\n _id,\n active,\n associates,\n availability,\n calendar,\n categories,\n claimed,\n contactDetails,\n cover,\n coverUpload,\n description,\n foodTruck,\n images,\n imagesUpload,\n logo,\n logoUpload,\n name,\n owner,\n products,\n promoCodes,\n region,\n socialMedia,\n termsAgreement,\n unregisteredVendorId,\n vendorType,\n } = getValues();\n\n return {\n control,\n fields: {\n _id,\n active,\n associates,\n availability,\n calendar,\n categories,\n claimed,\n contactDetails,\n cover,\n coverUpload,\n description,\n foodTruck,\n images,\n imagesUpload,\n logo,\n logoUpload,\n name,\n owner,\n products,\n promoCodes,\n region,\n socialMedia,\n termsAgreement,\n unregisteredVendorId,\n vendorType,\n },\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n };\n}\n","/* eslint-disable sort-keys */\nimport dayjs from \"dayjs\";\nimport customParseFormat from \"dayjs/plugin/customParseFormat.js\";\nimport isSameOrAfter from \"dayjs/plugin/isSameOrAfter.js\";\nimport * as yup from \"yup\";\nimport { TestFunction } from \"yup\";\n\nimport {\n EnumEventDateStatus,\n EnumResourceType,\n EnumSocialMedia,\n EnumUserLicence,\n} from \"src/enums\";\n\nimport { dateFormat, normalizeUrl, timeFormat } from \"../utils\";\n\ntype NoLeadingZerosOptions = {\n allowDecimal?: boolean;\n};\n\nexport const nzBankAccountRegex = /^\\d{2}-\\d{4}-\\d{7}-\\d{2}$/;\n\nexport const nzbnRegex = /^94\\d{11}$/;\n\nexport const normalizedUrlTransform = () =>\n yup\n .string()\n .trim()\n .transform((value) =>\n typeof value === \"string\" ? value.toLowerCase() : value,\n )\n .transform((value) =>\n typeof value === \"string\" ? normalizeUrl(value) : value,\n );\n\nexport const noLeadingZeros = (\n fieldName: string,\n options: NoLeadingZerosOptions = {},\n): TestFunction<number | undefined> => {\n return function (value, context) {\n const original = context.originalValue;\n\n // Only validate string input (what the user actually typed)\n if (typeof original !== \"string\") {\n return true;\n }\n\n // Allow empty (handled by required / min)\n if (original === \"\") {\n return true;\n }\n\n const regex = options.allowDecimal\n ? /^0\\d+(\\.\\d+)?$/ // \"03\", \"003\", \"01.5\"\n : /^0\\d+$/; // \"03\", \"003\"\n\n if (regex.test(original)) {\n return context.createError({\n message: `${fieldName} must not have leading zeros`,\n });\n }\n\n return true;\n };\n};\n\nexport const toOptionalNumber = (originalValue: unknown) => {\n if (\n originalValue === \"\" ||\n originalValue === null ||\n originalValue === undefined\n ) {\n return undefined;\n }\n let parsed: number | undefined;\n\n if (typeof originalValue === \"number\") {\n parsed = originalValue;\n } else if (typeof originalValue === \"string\") {\n parsed = Number(originalValue.replace(\",\", \".\"));\n } else {\n parsed = undefined;\n }\n\n return Number.isNaN(parsed) ? undefined : parsed;\n};\n\ndayjs.extend(isSameOrAfter);\ndayjs.extend(customParseFormat);\n\n// ✅ Reusable Required Email Schema\nexport const emailRequiredSchema = yup\n .string()\n .email(\"Invalid email address\")\n .required(\"Email is required\")\n .label(\"Email\")\n .transform((value) =>\n typeof value === \"string\" ? value.trim().toLowerCase() : value,\n );\n\nexport const emailOptionalSchema = yup\n .string()\n .nullable()\n .notRequired()\n .transform((value) =>\n typeof value === \"string\" ? value.trim().toLowerCase() : value,\n )\n .test(\n \"is-valid-email\",\n \"Invalid email address\",\n (value) => !value || yup.string().email().isValidSync(value),\n )\n .label(\"Email\");\n\n// Mobile: starts with 02, 9-11 digits\nexport const mobileRegex = /^02\\d{7,9}$/;\n// Landline: starts with 03, 04, 06, 07, 09 (but not 090), 7 digits after area code\nconst landlineRegex = /^0[34679]\\d{7}$/;\n\nexport const mobilePhoneSchema = yup\n .string()\n .label(\"Mobile Phone\")\n .nullable()\n .notRequired()\n .test(\n \"mobile-phone\",\n \"Mobile must start with 02 and be 9–11 digits\",\n (value) => !value || mobileRegex.test(value), // skip empty values\n );\n\nconst landlinePhoneSchema = yup\n .string()\n .label(\"Landline Phone\")\n .nullable()\n .notRequired()\n .test(\n \"landline-phone\",\n \"Landline must start with 03, 04, 06, 07, or 09 (not 090) and have 7 digits after area code\",\n (value) => !value || landlineRegex.test(value), // skip empty values\n );\n\nexport const contactDetailsSchema = yup\n .object({\n email: emailOptionalSchema,\n mobilePhone: mobilePhoneSchema,\n landlinePhone: landlinePhoneSchema,\n })\n .nullable()\n .default(undefined);\n\n// DATE AND TIME SCHEMA\nexport const endDateNotInPastTest = yup\n .string()\n .test(\"not-in-past\", \"End date cannot be in the past\", (value) => {\n const now = dayjs(); // Current date and time\n return value\n ? dayjs(value, dateFormat, true).isSameOrAfter(now, \"day\")\n : false;\n });\n\nexport const startDateNotInPastTest = yup\n .string()\n .test(\"not-in-past\", \"Start date cannot be in the past\", (value) => {\n const now = dayjs(); // Current date and time\n return value\n ? dayjs(value, dateFormat, true).isSameOrAfter(now, \"day\")\n : false;\n });\n\nexport const endDateAfterStartDateTest = yup\n .string()\n .test(\n \"end-after-start\",\n \"End date cannot be before start date\",\n function (value) {\n const { startDate } = this.parent;\n if (!startDate || !value) return false;\n return dayjs(value, dateFormat, true).isSameOrAfter(\n dayjs(startDate, dateFormat, true),\n \"day\",\n );\n },\n );\n\nexport const endTimeMustBeAfterStartTimeTest = yup\n .string()\n .test(\n \"valid-end-time\",\n \"End time must be after start time\",\n function (value) {\n const { startDate, endDate, startTime } = this.parent;\n if (!startDate || !endDate || !startTime || !value) return false;\n\n const startDateTime = dayjs(\n `${startDate} ${startTime}`,\n `${dateFormat} ${timeFormat}`,\n true,\n );\n const endDateTime = dayjs(\n `${endDate} ${value}`,\n `${dateFormat} ${timeFormat}`,\n true,\n );\n\n return endDateTime.isAfter(startDateTime);\n },\n );\n\nexport const startTimeCannotBeInPastTest = yup\n .string()\n .test(\n \"valid-start-time\",\n \"Start time cannot be in the past\",\n function (value) {\n const now = dayjs(); // Current date and time\n const { startDate } = this.parent;\n if (!startDate || !value) return false;\n const startDateTime = dayjs(\n `${startDate} ${value}`,\n `${dateFormat} ${timeFormat}`,\n true,\n );\n return startDateTime.isSameOrAfter(now);\n },\n );\n\nexport const dateTimeSchema = yup.object().shape({\n dateStatus: yup\n .mixed<EnumEventDateStatus>()\n .oneOf(Object.values(EnumEventDateStatus))\n .required(\"Date status is required\"),\n endDate: yup\n .string()\n .label(\"End Date\")\n .concat(endDateNotInPastTest)\n .concat(endDateAfterStartDateTest)\n .required(\"End date is required\"),\n endTime: yup\n .string()\n .label(\"End Time\")\n .concat(endTimeMustBeAfterStartTimeTest)\n .required(\"End time is required\"),\n startDate: yup\n .string()\n .label(\"Start Date\")\n .concat(startDateNotInPastTest)\n .required(\"Start date is required\"),\n startTime: yup\n .string()\n .label(\"Start Time\")\n .concat(startTimeCannotBeInPastTest)\n .required(\"Start time is required\"),\n});\n\nconst stallTypesSchema = yup.object({\n label: yup\n .string()\n .trim()\n .label(\"Stall Type\")\n .required(\"Stall type is required\"),\n price: yup\n .number()\n .transform((_, originalValue) => toOptionalNumber(originalValue))\n .label(\"Stall Price\")\n .min(0.1, \"Stall price must be at least 0.1\")\n .required(\"Stall price is required\")\n .test(\n \"no-leading-zeros\",\n \"\",\n noLeadingZeros(\"Stall price\", { allowDecimal: true }),\n ),\n stallCapacity: yup\n .number()\n .transform((_, originalValue) => toOptionalNumber(originalValue))\n .label(\"Stall Capacity\")\n .typeError(\"Stall capacity must be a number\")\n .min(0, \"Stall capacity cannot be negative\")\n .integer(\"Stall capacity must be a whole number\")\n .required(\"Stall capacity is required\")\n .test(\"no-leading-zeros\", \"\", noLeadingZeros(\"Stall capacity\")),\n});\n\nexport const dateTimeWithPriceSchema = dateTimeSchema.shape({\n stallTypes: yup\n .array()\n .of(stallTypesSchema)\n .min(1, \"At least one stall type is required\")\n .required(\"Stall types are required\"),\n});\n\nexport const locationSchema = yup.object().shape({\n city: yup.string().label(\"City\").required(\"City is required\"),\n country: yup.string().label(\"Country\").required(\"Country is required\"),\n fullAddress: yup.string().label(\"Address\").required(\"Address is required\"),\n geo: yup.object().shape({\n coordinates: yup\n .array()\n .of(yup.number().required(\"Coordinates must be numbers\"))\n .length(\n 2,\n \"Coordinates must contain exactly two numbers (longitude, latitude)\",\n )\n .required(\"Coordinates are required\"),\n type: yup\n .string()\n .oneOf([\"Point\"], \"Type must be 'Point'\")\n .default(\"Point\")\n .required(\"Type is required\"),\n }),\n latitude: yup.number().label(\"Latitude\").required(\"Latitude is required\"),\n longitude: yup.number().label(\"Longitude\").required(\"Longitude is required\"),\n region: yup.string().label(\"Region\").required(\"Region is required\"),\n});\n\n// ✅ Reusable Password Schema\nexport const passwordSchema = yup\n .string()\n .trim()\n .label(\"Password\")\n .min(8, \"Password must be at least 8 characters long\")\n .required(\"Password is required\");\n\nexport const socialMediaSchema = yup.object({\n name: yup\n .mixed<EnumSocialMedia>()\n .oneOf(Object.values(EnumSocialMedia))\n .label(\"Social Media Name\")\n .optional(),\n link: yup.string().when(\"name\", {\n is: (name: EnumSocialMedia | undefined) => !!name, // If name has a value\n then: () =>\n normalizedUrlTransform()\n .required(\"Link is required when name is set\")\n .url(\"Link must be a valid URL\")\n .label(\"Social Media Link\"),\n otherwise: (schema) => schema.notRequired(),\n }),\n});\n\nexport const globalResourceSchema = yup.object().shape({\n active: yup.boolean().required(\"Active is required\"),\n cover: yup.object({\n active: yup.boolean().default(true),\n source: yup.string().label(\"Cover\").required(\"Cover Image is required\"),\n title: yup\n .string()\n .label(\"Cover Title\")\n .required(\"Cover Title is required\"),\n }),\n contactDetails: contactDetailsSchema,\n description: yup\n .string()\n .label(\"Description\")\n .trim()\n .min(50)\n .required(\"Description is required\"),\n name: yup.string().label(\"Name\").trim().min(3).required(\"Name is required\"),\n region: yup.string().label(\"Region\").required(\"Region is required\"),\n socialMedia: yup.array().of(socialMediaSchema).nullable().default(null),\n associates: yup\n .array()\n .of(\n yup.object().shape({\n email: emailRequiredSchema,\n resourceId: yup\n .string()\n .label(\"Resource ID\")\n .required(\"Resource ID is required\"),\n resourceType: yup\n .mixed<EnumResourceType>()\n .oneOf(Object.values(EnumResourceType))\n .label(\"Resource Type\")\n .required(\"Resource Type is required\"),\n licence: yup.object({\n expiryDate: yup.date().required(\"Expiry Date is required\"),\n issuedDate: yup.date().required(\"Issued Date is required\"),\n licenceType: yup\n .mixed<EnumUserLicence>()\n .oneOf(Object.values(EnumUserLicence))\n .label(\"Licence Type\")\n .required(\"Licence Type is required\"),\n }),\n }),\n )\n .nullable()\n .default(null),\n});\n\nexport const categorySchema = yup.array().of(\n yup.object().shape({\n id: yup.string().required(\"Category id is required\"),\n name: yup.string().required(\"Category name is required\"),\n subcategories: yup\n .array()\n .of(\n yup.object().shape({\n id: yup.string().defined(),\n items: yup\n .array()\n .of(\n yup.object().shape({\n id: yup.string().defined(),\n name: yup.string().defined(),\n }),\n )\n .nullable(),\n name: yup.string().defined(),\n }),\n )\n .min(1, \"At least one subcategory is required\")\n .required(\"Subcategories are required\"),\n }),\n);\n","export enum EnumInviteStatus {\n ACCEPTED = \"Accepted\",\n COMPLETED = \"Completed\",\n EXPIRED = \"Expired\",\n NO_STATUS = \"No_Status\",\n PENDING = \"Pending\",\n REJECTED = \"Rejected\",\n UNAVAILABLE = \"Unavailable\",\n}\n\nexport enum EnumChatReportReason {\n INAPPROPRIATE_CONTENT = \"Inappropriate_Content\",\n HARASSMENT_OR_BULLYING = \"Harassment_or_Bullying\",\n HATE_SPEECH = \"Hate_Speech\",\n SPAM_OR_SCAM = \"Spam_or_Scam\",\n VIOLENCE_OR_DANGEROUS_BEHAVIOR = \"Violence_or_Dangerous_Behavior\",\n OTHER = \"Other\",\n}\n\nexport enum EnumChatType {\n GROUP = \"group\",\n PRIVATE = \"private\",\n RELATION = \"relation\",\n}\n\nexport enum EnumPaymentMethod {\n CASH = \"cash\",\n EFTPOS = \"eftpos\",\n BANK_TRANSFER = \"bank_transfer\",\n PAYPAL = \"paypal\",\n STRIPE = \"stripe\",\n}\n\nexport enum EnumFoodFlavor {\n SALTY = \"Salty\",\n SAVOURY = \"Savoury\",\n SPICY = \"Spicy\",\n SWEET = \"Sweet\",\n OTHER = \"Not_Applicable\",\n}\n\nexport enum EnumFoodType {\n ADDITIVE_FREE = \"Additive_Free\",\n AIR_FRIED = \"Air_Fried\",\n ALLERGEN_FRIENDLY = \"Allergen_Friendly\",\n ATHLETE_FRIENDLY = \"Athlete_Friendly\",\n BAKED = \"Baked\",\n DAIRY_FREE = \"Dairy_Free\",\n DIABETIC_FRIENDLY = \"Diabetic_Friendly\",\n EGG_FREE = \"Egg_Free\",\n FRESH = \"Fresh\",\n GLUTEN_FREE = \"Gluten_Free\",\n GRILLED = \"Grilled\",\n HALAL = \"Halal\",\n HEART_HEALTHY = \"Heart_Healthy\",\n HIGH_FIBER = \"High_Fiber\",\n HIGH_PROTEIN = \"High_Protein\",\n KETO = \"Keto\",\n KOSHER = \"Kosher\",\n LACTOSE_FREE = \"Lactose_Free\",\n LOW_CALORIE = \"Low_Calorie\",\n LOW_CARB = \"Low_Carb\",\n LOW_FAT = \"Low_Fat\",\n LOW_SODIUM = \"Low_Sodium\",\n NO_ADDED_SUGAR = \"No_Added_Sugar\",\n NO_PRESERVATIVES = \"No_Preservatives\",\n NON_GMO = \"Non_GMO\",\n NUT_FREE = \"Nut_Free\",\n ORGANIC = \"Organic\",\n PALEO = \"Paleo\",\n PLANT_BASED = \"Plant_Based\",\n RAW = \"Raw\",\n SMOKED = \"Smoked\",\n SOY_FREE = \"Soy_Free\",\n SUGAR_FREE = \"Sugar_Free\",\n VEGAN = \"Vegan\",\n VEGETARIAN = \"Vegetarian\",\n}\n\nexport enum EnumResourceType {\n EVENT = \"event\",\n VENDOR = \"vendor\",\n PARTNER = \"partner\",\n}\n\nexport enum EnumEventType {\n MARKET = \"Market\",\n EXPO = \"Expo\",\n FAIR = \"Fair\",\n FESTIVAL = \"Festival\",\n}\n\nexport enum EnumVendorType {\n STALLHOLDER = \"Stallholder\",\n SHOP = \"Shop\",\n}\n\nexport enum EnumPartnerType {\n CHARITY_PARTNER = \"Charity_Partner\",\n MEDIA_PARTNER = \"Media_Partner\",\n SUPPORTING_PARTNER = \"Supporting_Partner\",\n}\n\nexport enum EnumOSPlatform {\n ANDROID = \"android\",\n IOS = \"ios\",\n WEB = \"web\",\n}\n\nexport enum EnumRelationResource {\n EVENT_INVITE_VENDOR = \"event_invite_vendor\",\n EVENT_UPDATE_RELATION_TO_VENDOR = \"event_update_relation_to_vendor\",\n VENDOR_UPDATE_RELATION_TO_EVENT = \"vendor_update_relation_to_event\",\n VENDOR_APPLICATION_TO_EVENT = \"vendor_application_to_event\",\n}\n\nexport enum EnumNotificationResourceType {\n ADDED_AS_ASSOCIATE_EVENT = \"added_as_associate_event\",\n ADDED_AS_ASSOCIATE_PARTNER = \"added_as_associate_partner\",\n ADDED_AS_ASSOCIATE_VENDOR = \"added_as_associate_vendor\",\n APPROVED_EVENT = \"approved_event\",\n APPROVED_PARTNER = \"approved_partner\",\n APPROVED_VENDOR = \"approved_vendor\",\n CREATED_EVENT = \"created_event\",\n CREATED_PARTNER = \"created_partner\",\n CREATED_VENDOR = \"created_vendor\",\n DAILY_CLUE_GAME = \"daily_clue_game\",\n DEACTIVATED_EVENT = \"deactivated_event\",\n DEACTIVATED_PARTNER = \"deactivated_partner\",\n DEACTIVATED_VENDOR = \"deactivated_vendor\",\n DECLINED_EVENT = \"declined_event\",\n DECLINED_PARTNER = \"declined_partner\",\n DECLINED_VENDOR = \"declined_vendor\",\n DOWNGRADED_EVENT = \"downgraded_event\",\n DOWNGRADED_PARTNER = \"downgraded_partner\",\n DOWNGRADED_VENDOR = \"downgraded_vendor\",\n EVENT_INVITE_VENDOR = EnumRelationResource.EVENT_INVITE_VENDOR,\n EVENT_STARTING_SOON = \"event_starting_soon\",\n EVENT_UPDATE_RELATION_TO_VENDOR = EnumRelationResource.EVENT_UPDATE_RELATION_TO_VENDOR,\n EXPIRATION_REMINDER_EVENT = \"expiration_reminder_event\",\n EXPIRATION_REMINDER_PARTNER = \"expiration_reminder_partner\",\n EXPIRATION_REMINDER_VENDOR = \"expiration_reminder_vendor\",\n NEW_CHAT_MESSAGE = \"new_chat_message\",\n NEW_POST_CREATED = \"new_post_created\",\n REGISTERED_USER_BY_SCHOOL_CODE = \"registered_user_by_school_code\",\n SYSTEM_ALERT = \"system_alert\",\n VENDOR_APPLICATION_TO_EVENT = EnumRelationResource.VENDOR_APPLICATION_TO_EVENT,\n VENDOR_UPDATE_RELATION_TO_EVENT = EnumRelationResource.VENDOR_UPDATE_RELATION_TO_EVENT,\n}\n\nexport enum EnumNotificationType {\n CHAT = \"chat\",\n EVENT = EnumResourceType.EVENT,\n RELATION = \"relation\",\n SYSTEM = \"system\",\n VENDOR = EnumResourceType.VENDOR,\n}\n\nexport enum EnumRegions {\n All = \"All Regions\",\n Auckland = \"Auckland\",\n BayOfPlentyGisborne = \"Bay of Plenty & Gisborne\",\n CanterburyWestCoast = \"Canterbury & West Coast\",\n HawkesBay = \"Hawke's Bay\",\n ManawatuWanganui = \"Manawatu-Wanganui\",\n MarlboroughNelsonTasman = \"Marlborough & Nelson & Tasman\",\n Northland = \"Northland\",\n Otago = \"Otago\",\n Southland = \"Southland\",\n Taranaki = \"Taranaki\",\n Waikato = \"Waikato\",\n Wellington = \"Wellington\",\n}\n\nexport enum ImageTypeEnum {\n AVATAR = \"avatar\",\n COVER = \"cover\",\n IMAGE = \"image\",\n LOGO = \"logo\",\n}\n\nexport enum EnumUserLicence {\n PRO_EVENT = \"pro_event\",\n PRO_PLUS_EVENT = \"pro_plus_event\",\n PRO_PLUS_VENDOR = \"pro_plus_vendor\",\n PRO_VENDOR = \"pro_vendor\",\n STANDARD_EVENT = \"standard_event\",\n STANDARD_VENDOR = \"standard_vendor\",\n STANDARD_PARTNER = \"standard_partner\",\n}\n\nexport enum EnumUserRole {\n ADMIN = \"admin\",\n CUSTOMER = \"customer\",\n MARKETING = \"marketing\",\n MODERATOR = \"moderator\",\n SUPPORT = \"support\",\n AFFILIATE = \"affiliate\",\n}\n\nexport enum EnumSocialMedia {\n FACEBOOK = \"facebook\",\n INSTAGRAM = \"instagram\",\n TIKTOK = \"tiktok\",\n TWITTER = \"twitter\",\n WEBSITE = \"website\",\n YOUTUBE = \"youtube\",\n}\n\nexport enum EnumEventDateStatus {\n STARTING_SOON = \"Starting_Soon\",\n STARTED = \"Started\",\n TODAY = \"Today\",\n TOMORROW = \"Tomorrow\",\n THIS_WEEK = \"This_Week\",\n NEXT_WEEK = \"Next_Week\",\n UPCOMING = \"Upcoming\",\n ENDED = \"Ended\",\n RE_SCHEDULED = \"Rescheduled\",\n CANCELED = \"Canceled\",\n INVALID = \"Invalid\",\n}\n\nexport enum EnumSubscriptionStatus {\n ACTIVE = \"active\",\n INACTIVE = \"inactive\",\n CANCELLED = \"cancelled\",\n NO_SUBSCRIPTION = \"no_subscription\",\n PAST_DUE = \"past_due\",\n TRIALING = \"trialing\",\n}\n\nexport enum EnumBillingPeriod {\n MONTHLY_CANCEL_ANYTIME = \"monthly_cancel_anytime\",\n YEARLY_ANNUAL_BILLED = \"yearly_annual_billed\",\n YEARLY_MONTHLY_BILLED = \"yearly_monthly_billed\",\n}\n\nexport enum EnumReward {\n MYSTERY_JOY_BOX = \"mystery_joy_box\",\n MYSTERY_SQUEEZE_BOX = \"mystery_squeeze_box\",\n MYSTERY_DELUXE_BOX = \"mystery_deluxe_box\",\n}\n","import { 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","import dayjs from \"dayjs\";\nimport customParseFormat from \"dayjs/plugin/customParseFormat.js\";\nimport isSameOrAfter from \"dayjs/plugin/isSameOrAfter.js\";\nimport timezone from \"dayjs/plugin/timezone.js\";\nimport utc from \"dayjs/plugin/utc.js\";\n\nimport { EnumEventDateStatus } from \"src/enums\";\n\nimport { mapArrayToOptions } from \"./utils\";\n\nexport const dateFormat = \"DD-MM-YYYY\";\nexport const timeFormat = \"HH:mm\";\n\n// Enable custom format parsing\ndayjs.extend(customParseFormat);\ndayjs.extend(utc);\ndayjs.extend(timezone);\ndayjs.extend(isSameOrAfter);\n\nconst NZ_TZ = \"Pacific/Auckland\";\n\nexport function toNZTime(date?: Date | string) {\n return date ? dayjs(date).tz(NZ_TZ) : dayjs().tz(NZ_TZ);\n}\n\n/** Start of the calendar day in Pacific/Auckland (daily games, streaks, etc.). */\nexport function nzStartOfDay(\n input?: Date | string | number | null,\n): dayjs.Dayjs {\n if (input == null) {\n return dayjs().tz(NZ_TZ).startOf(\"day\");\n }\n return dayjs.tz(input, NZ_TZ).startOf(\"day\");\n}\n\ntype DateFormat = \"date\" | \"time\" | \"datetime\";\n\n/**\n * Format a date string to a more readable format.\n * @param dateStr - the date string\n * @param timeStr - optional time string\n * @param display - 'date' | 'time' | 'datetime'\n * @returns formatted string based on display option\n */\nexport const formatDate = (\n dateStr: string,\n display: DateFormat = \"datetime\",\n timeStr?: string,\n) => {\n // Combine date and time into a single string if time is provided\n const dateTimeStr = timeStr ? `${dateStr} ${timeStr}` : dateStr;\n\n // Parse with formats\n const dateTime = timeStr\n ? dayjs(dateTimeStr, `${dateFormat} ${timeFormat}`)\n : dayjs(dateStr, dateFormat);\n\n // Format parts\n const formattedDate = dateTime.format(\"dddd, D MMMM, YYYY\");\n const formattedTime = dateTime.format(\"h:mm a\");\n\n // Return based on display option\n switch (display) {\n case \"date\":\n return formattedDate;\n case \"time\":\n return formattedTime;\n case \"datetime\":\n return `${formattedDate} at ${formattedTime}`;\n default:\n return formattedDate;\n }\n};\n\nexport const getCurrentAndFutureDates = <\n T extends { startDate: string; startTime: string },\n>(\n dates: T[],\n): T[] => {\n const now = dayjs(); // current date and time\n\n return dates.filter((dateObj) => {\n const dateTime = dayjs(\n `${dateObj.startDate} ${dateObj.startTime}`,\n `${dateFormat} ${timeFormat}`,\n );\n return dateTime.isSameOrAfter(now);\n });\n};\n\nexport const isFutureDatesBeforeThreshold = (\n date: {\n startDate: string;\n startTime: string;\n },\n minHoursFromNow: number,\n): boolean => {\n const threshold = minHoursFromNow\n ? dayjs().add(minHoursFromNow, \"hour\")\n : dayjs().startOf(\"day\");\n\n const dateTime = dayjs(\n `${date.startDate} ${date.startTime}`,\n `${dateFormat} ${timeFormat}`,\n );\n\n return dateTime.isSameOrAfter(threshold);\n};\n\nexport const formatTimestamp = (timestamp: string) => {\n const formattedDate = toNZTime(timestamp).format(dateFormat);\n\n return formatDate(formattedDate, \"date\");\n};\n\nexport const isIsoDateString = (value: unknown): value is string => {\n return typeof value === \"string\" && !Number.isNaN(Date.parse(value));\n};\n\n/**\n * Sort an array of date strings by their proximity to the current date.\n * @param dates - The array of date strings to sort.\n * @returns - The sorted array of date strings.\n */\nexport function sortDatesChronologically<\n T extends { startDate: string; startTime: string },\n>(dates: T[]): T[] {\n if (!dates?.length) {\n return [];\n }\n\n return [...dates].sort((a, b) => {\n const dateTimeFormat = `${dateFormat} ${timeFormat}`;\n const dateA = dayjs(`${a.startDate} ${a.startTime}`, dateTimeFormat);\n const dateB = dayjs(`${b.startDate} ${b.startTime}`, dateTimeFormat);\n return dateA.valueOf() - dateB.valueOf(); // chronological order\n });\n}\n\nexport const futureTimePeriods = mapArrayToOptions(\n Object.values(EnumEventDateStatus),\n)\n .filter(\n (period) =>\n period.value !== EnumEventDateStatus.STARTING_SOON &&\n period.value !== EnumEventDateStatus.CANCELED &&\n period.value !== EnumEventDateStatus.RE_SCHEDULED &&\n period.value !== EnumEventDateStatus.STARTED &&\n period.value !== EnumEventDateStatus.ENDED &&\n period.value !== EnumEventDateStatus.INVALID,\n )\n .map((period) => ({\n label: period.value.replaceAll(\"_\", \" \"),\n value: period.value,\n }));\n","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 { 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 { EnumUserLicence } from \"../enums\";\n\n/** Tier keys in descending priority (highest first) for licence resolution. */\nexport const TIERS_BY_PRIORITY = [\"pro_plus\", \"pro\", \"standard\"] as const;\n\n/** Canonical subscription tier keys — matches Stripe/server tier identifiers. */\nexport type Tier = (typeof TIERS_BY_PRIORITY)[number];\n\n/** User-facing tier labels (decoupled from the Tier discriminant). */\nexport const TIER_DISPLAY_LABELS: Record<Tier, string> = {\n pro: \"Pro\",\n // eslint-disable-next-line camelcase\n pro_plus: \"Pro+ Ads\",\n standard: \"Standard\",\n};\n\n/** Maps licence enums to their canonical tier key. */\nexport const TIER_FROM_LICENCE: Record<EnumUserLicence, Tier> = {\n [EnumUserLicence.PRO_EVENT]: \"pro\",\n [EnumUserLicence.PRO_PLUS_EVENT]: \"pro_plus\",\n [EnumUserLicence.PRO_PLUS_VENDOR]: \"pro_plus\",\n [EnumUserLicence.PRO_VENDOR]: \"pro\",\n [EnumUserLicence.STANDARD_EVENT]: \"standard\",\n [EnumUserLicence.STANDARD_PARTNER]: \"standard\",\n [EnumUserLicence.STANDARD_VENDOR]: \"standard\",\n};\n","import {\n EnumInviteStatus,\n EnumPaymentMethod,\n EnumRegions,\n EnumReward,\n EnumSocialMedia,\n EnumUserLicence,\n} from \"src/enums\";\nimport {\n EnumPostType,\n OptionItem,\n PROMO_CODE_PREFIX,\n SocialMediaType,\n} from \"src/types\";\n\nimport { isIsoDateString } from \"./date\";\n\nexport const removeTypename = (obj: any): any => {\n // Preserve Date objects\n if (obj instanceof Date) {\n return obj;\n }\n\n // Preserve File objects (for apollo-upload-client)\n if (obj instanceof File) {\n return obj;\n }\n\n // Preserve ISO date strings\n if (isIsoDateString(obj)) {\n return obj;\n }\n\n // Handle arrays\n if (Array.isArray(obj)) {\n return obj.map(removeTypename);\n }\n\n // Handle plain objects only\n if (obj !== null && typeof obj === \"object\") {\n const { __typename, ...cleanedObj } = obj;\n\n return Object.keys(cleanedObj).reduce((acc: any, key) => {\n acc[key] = removeTypename(cleanedObj[key]);\n return acc;\n }, {});\n }\n\n // Primitives\n return obj;\n};\n\n/**\n * Truncate text to a specified length and append ellipsis if necessary.\n * @param text\n * @param maxLength\n * @returns\n */\nexport const truncateText = (text: string, maxLength: number = 30): string => {\n return text.length > maxLength ? text.substring(0, maxLength) + \"...\" : text;\n};\n\n/**\n * Convert an array of strings to an array of objects with label and value properties.\n * @param items - The array of strings to convert.\n * @returns - The converted array of objects.\n */\nexport const mapArrayToOptions = (items: string[]): OptionItem[] =>\n items.map((item) => ({\n label: item,\n value: item,\n }));\n\nexport const capitalizeFirstLetter = (str: string): string => {\n return str\n .split(\" \")\n .map((word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase())\n .join(\" \");\n};\n\nexport const statusOptions = [\n ...Object.values(EnumInviteStatus)\n .map((status) => ({\n label: status,\n value: status,\n }))\n .sort((a, b) => a.label.localeCompare(b.label)), // Sort the options alphabetically\n];\n\nexport const availableRegionTypes = Object.values(EnumRegions);\nexport const availableRegionOptions: OptionItem[] =\n mapArrayToOptions(availableRegionTypes);\n\nexport const paymentMethodOptions: OptionItem[] = mapArrayToOptions(\n Object.values(EnumPaymentMethod),\n);\n\nexport function normalizeUrl(url: string): string {\n if (!url.startsWith(\"http://\") && !url.startsWith(\"https://\")) {\n return `https://${url}`;\n }\n return url;\n}\n\nexport const licenseNiceNames: Record<EnumUserLicence, string> = {\n [EnumUserLicence.PRO_EVENT]: \"Pro Event\",\n [EnumUserLicence.PRO_VENDOR]: \"Pro Stallholder\",\n [EnumUserLicence.STANDARD_EVENT]: \"Standard Event\",\n [EnumUserLicence.STANDARD_VENDOR]: \"Standard Stallholder\",\n [EnumUserLicence.PRO_PLUS_EVENT]: \"Pro+Ads Event\",\n [EnumUserLicence.PRO_PLUS_VENDOR]: \"Pro+Ads Stallholder\",\n [EnumUserLicence.STANDARD_PARTNER]: \"Partner\",\n};\n\nexport const cluemartSocialMedia: SocialMediaType[] = [\n {\n link: \"https://www.facebook.com/ClueMartApp\",\n name: EnumSocialMedia.FACEBOOK,\n },\n {\n link: \"https://www.instagram.com/cluemart_app\",\n name: EnumSocialMedia.INSTAGRAM,\n },\n {\n link: \"https://www.tiktok.com/@cluemart\",\n name: EnumSocialMedia.TIKTOK,\n },\n {\n link: \"https://www.youtube.com/@ClueMart-App-NZ\",\n name: EnumSocialMedia.YOUTUBE,\n },\n];\n\nexport const IOS_URL = \"https://apps.apple.com/nz/app/cluemart/id6747251008\";\nexport const ANDROID_URL =\n \"https://play.google.com/store/apps/details?id=com.timardex.cluemart\";\n\nexport const DEFAULT_RESOURCES_RETURN_LIMIT = 1000;\nexport const DEFAULT_RESOURCES_RETURN_OFFSET = 0;\nexport const CLUEMART_MAIN_DOMAIN_URL = \"https://cluemart.co.nz\";\n\nexport const rewardNiceNames: Record<\n EnumReward,\n { name: string; points: number }\n> = {\n [EnumReward.MYSTERY_JOY_BOX]: {\n name: \"Mystery Joy Box\",\n points: 250,\n },\n [EnumReward.MYSTERY_SQUEEZE_BOX]: {\n name: \"Mystery Squeeze Box\",\n points: 350,\n },\n [EnumReward.MYSTERY_DELUXE_BOX]: {\n name: \"Mystery Deluxe Box\",\n points: 500,\n },\n};\n\nexport const PostTypeLabels: Record<EnumPostType, string> = {\n [EnumPostType.MARKET_FACES]: \"Market Faces\",\n [EnumPostType.CLUE_BITES]: \"Clue Bites\",\n [EnumPostType.PLAY_AND_WIN]: \"Play & Win\",\n};\n\n/** Hardcoded promo; compared to trimmed + uppercased registration input. */\nexport const CM_SCHOOL_PROMO_CODE = `${PROMO_CODE_PREFIX}SCHOOL`;\nexport const CM_AFFILIATE_PROMO_CODE = `${PROMO_CODE_PREFIX}AFFILIATE`;\n","import { AffiliateReward, EnumAffiliateRewardType } from \"src/types/affiliate\";\n\ntype AffiliateRewardConfig = {\n description: string;\n value: number;\n};\n\nexport const AFFILIATE_REWARDS = {\n [EnumAffiliateRewardType.NEW_EVENT_REGISTRATION]: {\n description: \"10 points for new event registration (one-time reward)\",\n value: 10,\n },\n [EnumAffiliateRewardType.NEW_VENDOR_REGISTRATION]: {\n description: \"5 points for new vendor registration (one-time reward)\",\n value: 5,\n },\n [EnumAffiliateRewardType.NEW_PARTNER_REGISTRATION]: {\n description: \"\",\n value: 0,\n },\n} satisfies Record<EnumAffiliateRewardType, AffiliateRewardConfig>;\n\n/**\n * Create an affiliate reward\n * @param rewardType - The type of reward\n * @param receivedAt - The date the reward was received\n * @returns The affiliate reward\n * @example\n * const reward = createAffiliateReward(EnumAffiliateRewardType.NEW_EVENT_REGISTRATION, new Date());\n * console.log(reward);\n */\nexport function createAffiliateReward(\n rewardType: EnumAffiliateRewardType,\n createdAt: Date,\n): AffiliateReward {\n const reward = AFFILIATE_REWARDS[rewardType];\n\n return {\n createdAt,\n deletedAt: null,\n redeemedAt: null,\n rewardDescription: reward.description,\n rewardType,\n rewardValue: reward.value,\n updatedAt: null,\n };\n}\n","export const SCHOOL_MIN_STUDENT_COUNT = 300;\nexport const SCHOOL_MAX_STUDENT_COUNT = 0;\n","import { EnumEventDateStatus } from \"../enums\";\nimport type { DateTimeType } from \"../types/global\";\n\nexport const EVENT_DATE_STATUS_PERIOD_MAP: Partial<\n Record<EnumEventDateStatus, EnumEventDateStatus[]>\n> = {\n [EnumEventDateStatus.TODAY]: [\n EnumEventDateStatus.STARTED,\n EnumEventDateStatus.STARTING_SOON,\n EnumEventDateStatus.TODAY,\n ],\n [EnumEventDateStatus.THIS_WEEK]: [\n EnumEventDateStatus.STARTED,\n EnumEventDateStatus.STARTING_SOON,\n EnumEventDateStatus.THIS_WEEK,\n EnumEventDateStatus.TODAY,\n EnumEventDateStatus.TOMORROW,\n ],\n};\n\nexport function getAllowedEventDateStatuses(\n period: EnumEventDateStatus,\n): EnumEventDateStatus[] {\n return EVENT_DATE_STATUS_PERIOD_MAP[period] ?? [period];\n}\n\nexport function eventMatchesDateStatusPeriod(\n dateTime: Pick<DateTimeType, \"dateStatus\">[] | null | undefined,\n period: EnumEventDateStatus,\n): boolean {\n const allowedStatuses = getAllowedEventDateStatuses(period);\n\n return (\n dateTime?.some((dt) => allowedStatuses.includes(dt.dateStatus)) ?? false\n );\n}\n\nexport function filterEventsByDateStatusPeriod<\n T extends { dateTime?: Pick<DateTimeType, \"dateStatus\">[] | null },\n>(events: T[], period: EnumEventDateStatus): T[] {\n return events.filter((event) =>\n eventMatchesDateStatusPeriod(event.dateTime, period),\n );\n}\n","import dayjs from \"dayjs\";\n\nimport { EnumEventDateStatus, EnumResourceType } from \"../enums\";\nimport type { DateTimeType, LocationType } from \"../types/global\";\nimport { dateFormat, formatDate } from \"../utils/date\";\n\nexport type CalendarSheetContentData = {\n dateTime: DateTimeType;\n location: LocationType;\n resourceId: string;\n resourceType: EnumResourceType;\n};\n\nexport const KNOWN_EVENT_SCHEDULE_STATUSES = new Set<EnumEventDateStatus>([\n EnumEventDateStatus.STARTED,\n EnumEventDateStatus.STARTING_SOON,\n EnumEventDateStatus.ENDED,\n]);\n\nexport type EventScheduleStatusTone =\n | \"started\"\n | \"startingSoon\"\n | \"ended\"\n | \"default\";\n\nexport type EventScheduleStatusPresentation = {\n status: EnumEventDateStatus;\n statusLabel: string;\n tone: EventScheduleStatusTone;\n};\n\nexport function toCalendarIsoDate(startDate: string): string | null {\n const formatted = dayjs(startDate, dateFormat).format(\"YYYY-MM-DD\");\n\n return dayjs(formatted, \"YYYY-MM-DD\", true).isValid() ? formatted : null;\n}\n\nexport function fromCalendarIsoDate(isoDate: string): string {\n return dayjs(isoDate, \"YYYY-MM-DD\").format(dateFormat);\n}\n\nexport function getEventCalendarIsoDates(\n dateTimes: DateTimeType[] | null | undefined,\n): string[] {\n return (\n dateTimes\n ?.map((dateTime) => toCalendarIsoDate(dateTime.startDate))\n .filter((date): date is string => Boolean(date)) ?? []\n );\n}\n\nexport function findEventDateTimeByIsoDate(\n dateTimes: DateTimeType[] | null | undefined,\n isoDate: string,\n): DateTimeType | null {\n const selected = fromCalendarIsoDate(isoDate);\n\n return dateTimes?.find((dateTime) => dateTime.startDate === selected) ?? null;\n}\n\nexport function buildCalendarSheetContentData(\n dateTimes: DateTimeType[],\n isoDate: string,\n location: LocationType,\n resourceId: string,\n resourceType: EnumResourceType,\n): CalendarSheetContentData | null {\n const dateTime = findEventDateTimeByIsoDate(dateTimes, isoDate);\n\n if (!dateTime) {\n return null;\n }\n\n return {\n dateTime,\n location,\n resourceId,\n resourceType,\n };\n}\n\nexport function getEventScheduleStatusTone(\n status: EnumEventDateStatus,\n): EventScheduleStatusTone {\n switch (status) {\n case EnumEventDateStatus.STARTED:\n return \"started\";\n case EnumEventDateStatus.STARTING_SOON:\n return \"startingSoon\";\n case EnumEventDateStatus.ENDED:\n return \"ended\";\n default:\n return \"default\";\n }\n}\n\nexport function getEventScheduleStatusPresentation(\n dateTime: DateTimeType,\n): EventScheduleStatusPresentation {\n return {\n status: dateTime.dateStatus,\n statusLabel: dateTime.dateStatus.replaceAll(\"_\", \" \").toLowerCase(),\n tone: getEventScheduleStatusTone(dateTime.dateStatus),\n };\n}\n\nexport function getEventScheduleStatusLabel(\n dateTime: DateTimeType,\n onlyShowKnownStatuses: boolean,\n): string | null {\n const { dateStatus: status } = dateTime;\n const isKnownStatus = Boolean(\n status && KNOWN_EVENT_SCHEDULE_STATUSES.has(status),\n );\n\n if (onlyShowKnownStatuses && !isKnownStatus) {\n return null;\n }\n\n return isKnownStatus\n ? status.replaceAll(\"_\", \" \").toLowerCase()\n : `Next event date: ${formatDate(dateTime.startDate, \"date\")}`;\n}\n\nexport function shouldShowEventActionsWithWeather(\n resourceType: EnumResourceType,\n dateTime: DateTimeType,\n location: LocationType | null | undefined,\n): boolean {\n return (\n resourceType === EnumResourceType.EVENT &&\n Boolean(location) &&\n Boolean(dateTime?.dateStatus) &&\n ![\n EnumEventDateStatus.ENDED,\n EnumEventDateStatus.CANCELED,\n EnumEventDateStatus.STARTED,\n ].includes(dateTime.dateStatus)\n );\n}\n","/* eslint-disable sort-keys */\nimport { Category } from \"src/types\";\n\nexport const clothingAndFashion: Category[] = [\n {\n id: \"clothing-fashion\",\n name: \"Clothing & Fashion\",\n description:\n \"New, handmade, or upcycled clothing and accessories with a creative twist.\",\n subcategories: [\n {\n id: \"apparel-babywear\",\n name: \"Apparel & Babywear\",\n items: [\n {\n id: \"apparel\",\n name: \"Apparel\",\n description: \"Dresses, t-shirts, jumpers, rompers, sets, kidswear.\",\n },\n {\n id: \"baby-toddler-apparel\",\n name: \"Baby & Toddler Apparel\",\n description:\n \"Handmade baby clothes, soft shoes, bibs, hats, knitted sets.\",\n },\n {\n id: \"upcycled-fashion\",\n name: \"Upcycled Fashion\",\n description:\n \"Reworked garments, patchwork pieces, restyled vintage.\",\n },\n {\n id: \"other-wearable-items\",\n name: \"Other wearable items\",\n description: \"Unique clothing not listed above.\",\n },\n ],\n },\n {\n id: \"fashion-accessories\",\n name: \"Fashion Accessories\",\n items: [\n {\n id: \"accessories\",\n name: \"Accessories\",\n description: \"Scarves, belts, gloves, hats, headbands, caps.\",\n },\n {\n id: \"shoes\",\n name: \"Shoes\",\n description: \"Handmade shoes, baby booties, sandals, slippers.\",\n },\n {\n id: \"bags-wallets\",\n name: \"Bags & Wallets\",\n description:\n \"Leather bags, fabric purses, wallets, backpacks, totes.\",\n },\n {\n id: \"other-accessories\",\n name: \"Other accessories\",\n description: \"Brooches, pins, or hybrid functional items.\",\n },\n ],\n },\n {\n id: \"jewelry-creative-wearables\",\n name: \"Jewelry & Creative Wearables\",\n items: [\n {\n id: \"jewelry\",\n name: \"Jewelry\",\n description: \"Necklaces, earrings, bracelets, rings, anklets.\",\n },\n {\n id: \"other-creative-wearables\",\n name: \"Other creative wearables\",\n description:\n \"Wearable art, statement pieces, bold handmade designs.\",\n },\n ],\n },\n {\n id: \"traditional-cultural-clothing-accessories\",\n name: \"Traditional & Cultural Clothing and Accessories\",\n items: [\n {\n id: \"traditional-clothing-accessories\",\n name: \"Traditional Clothing & Accessories \",\n description:\n \"raditional clothing, jewellery, accessories and footwear from around the world, including both handmade and non-handmade items.\",\n },\n {\n id: \"other-traditional-cultural-items\",\n name: \"Other Traditional & Cultural Items\",\n description:\n \"traditional or culturally inspired wearables and decorative cultural pieces such as plates, table linens and similar items.\",\n },\n ],\n },\n ],\n },\n];\n","/* eslint-disable sort-keys */\nimport { Category } from \"src/types\";\n\nexport const electronicsAndTechnology: Category[] = [\n {\n id: \"electronics-technology\",\n name: \"Electronics & Technology\",\n description:\n \"New, second-hand, or handmade tech and digital items commonly found at markets.\",\n subcategories: [\n {\n id: \"mobile-everyday-tech\",\n name: \"Mobile & Everyday Tech\",\n items: [\n {\n id: \"mobile-phone-accessories\",\n name: \"Mobile & Phone Accessories\",\n description:\n \"Phone cases, holders, screen protectors, charging cables, power banks, grips.\",\n },\n {\n id: \"other-mobile-gadgets\",\n name: \"Other mobile gadgets\",\n description:\n \"Stands, styluses, SIM tools, cleaning kits, wallet accessories.\",\n },\n ],\n },\n {\n id: \"audio-music-creative-tech\",\n name: \"Audio, Music & Creative Tech\",\n items: [\n {\n id: \"audio-music-tech\",\n name: \"Audio & Music Tech\",\n description:\n \"Portable speakers, headphones, mini radios, Bluetooth adapters, sound accessories.\",\n },\n {\n id: \"instruments-music-gear\",\n name: \"Instruments & Music Gear\",\n description:\n \"Small electronic instruments, DIY synth kits, drum pads, loop machines.\",\n },\n {\n id: \"recording-creative-devices\",\n name: \"Recording & Creative Devices\",\n description:\n \"USB microphones, podcast tools, voice recorders, mobile lighting, content tools.\",\n },\n {\n id: \"other-audio-music-items\",\n name: \"Other audio or music-related items\",\n description: \"Musical gadgets or creative gear not listed above.\",\n },\n ],\n },\n {\n id: \"diy-gadgets-secondhand-finds\",\n name: \"DIY, Gadgets & Second-Hand Finds\",\n items: [\n {\n id: \"diy-electronics-tools\",\n name: \"DIY Electronics & Tools\",\n description:\n \"LED lights, USB gadgets, circuit boards, repair kits, tech-themed toys, novelty items.\",\n },\n {\n id: \"other-tech-finds\",\n name: \"Other Tech Finds\",\n description:\n \"Used electronics, smart gadgets, wearable tech, calculators, tablet stands, e-waste upcycles.\",\n },\n {\n id: \"other-technology-innovation-items\",\n name: \"Other technology or innovation-related items\",\n description: \"Anything not covered but clearly tech-driven.\",\n },\n ],\n },\n ],\n },\n];\n","/* eslint-disable sort-keys */\nimport { Category } from \"src/types\";\n\nexport const foodAndBeverages: Category[] = [\n {\n id: \"food-beverages\",\n name: \"Food & Beverages\",\n description:\n \"Fresh produce, drinks, sweet and savoury street food, ready-to-eat meals, and packaged goods.\",\n subcategories: [\n {\n id: \"fresh-food-groceries\",\n name: \"Fresh Food & Groceries\",\n items: [\n {\n id: \"fruits-vegetables\",\n name: \"Fruits & Vegetables\",\n description:\n \"Fresh seasonal fruit, organic vegetables, specialty produce, berries, tropical fruit, heritage varieties.\",\n },\n {\n id: \"meat-seafood\",\n name: \"Meat & Seafood\",\n description:\n \"Butcher cuts, fresh fish, smoked meats, sausages, seafood platters, artisanal jerky.\",\n },\n {\n id: \"dairy-eggs\",\n name: \"Dairy & Eggs\",\n description:\n \"Farm eggs, handmade cheeses, yoghurt, fresh milk, goat’s milk products.\",\n },\n {\n id: \"bakery-pastries\",\n name: \"Bakery & Pastries\",\n description:\n \"Freshly baked bread, sourdough, bagels, croissants, focaccia, traditional baked goods.\",\n },\n {\n id: \"spices-condiments\",\n name: \"Spices & Condiments\",\n description:\n \"Dried herbs, spice blends, specialty salts, hot sauces, infused oils, chutneys.\",\n },\n {\n id: \"packaged-specialty-foods\",\n name: \"Packaged & Specialty Foods\",\n description:\n \"Honey, jams, preserves, pickles, nut butters, sauces, pre-packaged snacks.\",\n },\n {\n id: \"other-fresh-food-items\",\n name: \"Other fresh food items\",\n description:\n \"Items that don’t fit above, e.g. fermented foods, plant-based substitutes.\",\n },\n ],\n },\n {\n id: \"beverages-specialty-drinks\",\n name: \"Beverages & Specialty Drinks\",\n items: [\n {\n id: \"fresh-juices-smoothies\",\n name: \"Fresh Juices & Smoothies\",\n description:\n \"Cold-pressed juices, detox blends, fruit smoothies, tropical mixes.\",\n },\n {\n id: \"coffee-teas\",\n name: \"Coffee & Teas\",\n description:\n \"Espresso, pour-over coffee, herbal teas, matcha, bubble tea, locally blended tea.\",\n },\n {\n id: \"dairy-plant-based-drinks\",\n name: \"Dairy & Plant-Based Drinks\",\n description:\n \"Milkshakes, lassis, almond/oat milk drinks, coconut water.\",\n },\n {\n id: \"alcoholic-beverages\",\n name: \"Alcoholic Beverages\",\n description:\n \"Local wines, craft beer, mead, cider, infused spirits, cocktail kits.\",\n },\n {\n id: \"other-beverages\",\n name: \"Other beverages\",\n description:\n \"Kombucha, kefir, energy drinks, non-alcoholic wines or beers.\",\n },\n ],\n },\n {\n id: \"savoury-prepared-foods-street-food\",\n name: \"Savoury Prepared Foods & Street Food\",\n items: [\n {\n id: \"local-specialties\",\n name: \"Local Specialties\",\n description:\n \"Meat pies, hangi, seafood chowder, fry bread, traditional NZ dishes.\",\n },\n {\n id: \"asian-cuisine\",\n name: \"Asian Cuisine\",\n description:\n \"Sushi, bao buns, dumplings, ramen, satay, spring rolls, fried rice.\",\n },\n {\n id: \"mediterranean-cuisine\",\n name: \"Mediterranean Cuisine\",\n description: \"Falafel, hummus wraps, souvlaki, Greek salad, dolma.\",\n },\n {\n id: \"italian-delights\",\n name: \"Italian Delights\",\n description: \"Pizza, calzone, focaccia, fresh pasta, arancini.\",\n },\n {\n id: \"bbq-grilled-foods\",\n name: \"BBQ & Grilled Foods\",\n description: \"Kebabs, grilled chicken, ribs, burgers, sausages.\",\n },\n {\n id: \"savoury-crepes-pancakes\",\n name: \"Savoury Crepes & Pancakes\",\n description: \"Filled savoury crepes, mini savoury pancakes.\",\n },\n {\n id: \"savoury-baked-goods-pastries\",\n name: \"Savoury Baked Goods & Pastries\",\n description:\n \"Quiches, savoury muffins, filled savoury pastries, empanadas.\",\n },\n {\n id: \"vegan-vegetarian-dishes\",\n name: \"Vegan & Vegetarian Dishes\",\n description:\n \"Buddha bowls, plant-based burgers, salads, vegan sushi.\",\n },\n {\n id: \"other-savoury-foods\",\n name: \"Other Savoury Foods\",\n description: \"Fusion dishes, mixed platters, savoury meal kits.\",\n },\n ],\n },\n {\n id: \"sweet-prepared-foods\",\n name: \"Sweet Prepared Foods\",\n items: [\n {\n id: \"sweet-crepes-pancakes-fried-treats\",\n name: \"Sweet Crepes, Pancakes & Fried Treats\",\n description: \"Crepes, waffles, mini pancakes, muffins, doughnuts.\",\n },\n {\n id: \"sweet-baked-goods-desserts\",\n name: \"Sweet Baked Goods & Desserts\",\n description: \"Cakes, pastries, slices, trifles, layered desserts.\",\n },\n {\n id: \"fruit-based-snacks\",\n name: \"Fruit-Based Snacks\",\n description:\n \"Fruit skewers, dried fruit packs, chocolate-dipped fruit.\",\n },\n {\n id: \"candy-confectionery\",\n name: \"Candy & Confectionery\",\n description: \"Fudge, handmade candies, toffee, nougat, brittle.\",\n },\n {\n id: \"other-sweet-foods\",\n name: \"Other Sweet Foods\",\n description: \"Fusion desserts, sweet platters, sweet meal kits.\",\n },\n ],\n },\n ],\n },\n];\n","/* eslint-disable sort-keys */\nimport { Category } from \"src/types\";\n\nexport const handmadeAndLocalProducts: Category[] = [\n {\n id: \"handmade-local-products\",\n name: \"Handmade & Local Products\",\n description: \"Unique, handmade, or locally produced artisan goods.\",\n subcategories: [\n {\n id: \"home-living\",\n name: \"Home & Living\",\n items: [\n {\n id: \"ceramics-pottery\",\n name: \"Ceramics & Pottery\",\n description:\n \"Handmade mugs, vases, bowls, decorative plates, plant pots.\",\n },\n {\n id: \"candles-home-scents\",\n name: \"Candles & Home Scents\",\n description:\n \"Soy candles, beeswax candles, wax melts, incense sticks, room sprays and herbal sachets.\",\n },\n {\n id: \"botanical-crafts\",\n name: \"Botanical Crafts\",\n description: \"Dried-flower décor and pressed-flower crafts\",\n },\n {\n id: \"textiles-embroidery\",\n name: \"Textiles & Embroidery\",\n description:\n \"Handsewn items, embroidered napkins, home linens, aprons, fabric gift wraps, handmade fabric bags, quilted goods, personalized textile gifts.\",\n },\n {\n id: \"woodcraft-metalcraft\",\n name: \"Woodcraft & Metalcraft\",\n description:\n \"Wooden boards, handmade frames, sculptures, metal signs, furniture.\",\n },\n {\n id: \"handmade-soaps-natural-body-goods\",\n name: \"Handmade Soaps & Natural Body Goods\",\n description: \"Handmade soaps, balms, oils, bath items\",\n },\n {\n id: \"seasonal-festive-crafts\",\n name: \"Seasonal & Festive Crafts\",\n description: \"Christmas, Easter and seasonal handmade decor\",\n },\n {\n id: \"other-home-living-products\",\n name: \"Other home & living products\",\n description:\n \"Items that don't fit above but serve home-related purposes.\",\n },\n ],\n },\n {\n id: \"art-personal-expression\",\n name: \"Art & Personal Expression\",\n items: [\n {\n id: \"paintings-illustrations\",\n name: \"Paintings & Illustrations\",\n description:\n \"Paintings, canvas art, hand-drawn illustrations, digital prints, graphic art and calligraphy pieces.\",\n },\n {\n id: \"sculptures-carvings\",\n name: \"Sculptures & Carvings \",\n description:\n \"Sculptures made from wood, stone, metal, clay or resin, carved decorative pieces and artistic 3D works.\",\n },\n {\n id: \"creative-handmade-alternative-art\",\n name: \"Creative Handmade & Alternative Art\",\n description:\n \"Handmade textile décor, fabric ornaments, mixed-media art, creative craft pieces and modern handmade artworks.\",\n },\n {\n id: \"handmade-mini-figures-decor\",\n name: \"Handmade Mini Figures & Décor\",\n description:\n \"Small handmade figures, tiny houses and crafted mini decorative items.\",\n },\n {\n id: \"other-artistic-expressive-products\",\n name: \"Other Artistic or Expressive Products\",\n description:\n \"Custom artworks, specialty handmade décor, unique crafts.\",\n },\n ],\n },\n {\n id: \"handmade-jewellery-accessories-cultural-crafts\",\n name: \"Handmade Jewellery, Accessories & Cultural Crafts\",\n items: [\n {\n id: \"jewellery-handmade-items-nz-traditional-materials\",\n name: \"Jewellery & Handmade Items from NZ Traditional Materials\",\n description:\n \"Handmade jewellery and decorative or functional items crafted from pounamu, bone, wood and other traditional New Zealand materials.\",\n },\n {\n id: \"maori-pasifika-cultural-crafts-clothing\",\n name: \"Māori & Pasifika Cultural Crafts and Clothing\",\n description:\n \"Culturally inspired handmade items, accessories and garments featuring Māori or Pasifika motifs, traditional patterns and regional craftsmanship.\",\n },\n {\n id: \"traditional-handmade-clothing-jewellery-crafts-global-cultures\",\n name: \"Traditional Handmade Clothing, Jewellery & Crafts from Global Cultures\",\n description:\n \"Handcrafted clothing, jewellery and cultural items from diverse traditions — including Asian, African, European, Middle Eastern, Indian, Chinese, Japanese, Pacific, and other culturally significant handmade pieces.\",\n },\n {\n id: \"other-handmade-cultural-items\",\n name: \"Other Handmade Cultural Items\",\n description:\n \"Unique or culturally inspired handmade pieces not specifically covered in the categories above.\",\n },\n ],\n },\n {\n id: \"gift-ideas-accessories\",\n name: \"Gift Ideas & Accessories\",\n items: [\n {\n id: \"handmade-pens-keychains-fridge-magnets\",\n name: \"Handmade Pens, Keychains and Fridge Magnets\",\n description: null,\n },\n {\n id: \"gift-packaging-wrapping-accessories\",\n name: \"Gift Packaging & Wrapping Accessories\",\n description: null,\n },\n {\n id: \"handmade-crochet-knitting-fibre-crafts\",\n name: \"Handmade Crochet, Knitting & Fibre Crafts\",\n description:\n \"Handmade crochet and knitted items, fabric-based crafts, small decorative pieces, creative fibre artworks and unique handcrafted accessories.\",\n },\n {\n id: \"handmade-toys-mini-play-items\",\n name: \"Handmade Toys & Mini Play Items\",\n description:\n \"small handmade toys, soft toys, wooden miniatures, crochet or felt play pieces\",\n },\n {\n id: \"other-small-handmade-gifts-accessories\",\n name: \"Other small handmade gifts or accessories\",\n description: \"Compact creative items made to surprise or delight.\",\n },\n ],\n },\n ],\n },\n];\n","/* eslint-disable sort-keys */\nimport { Category } from \"src/types\";\n\nexport const healthAndWellness: Category[] = [\n {\n id: \"health-wellness\",\n name: \"Health & Wellness\",\n description:\n \"Natural products and services that promote wellbeing, body care, and holistic health.\",\n subcategories: [\n {\n id: \"body-skincare\",\n name: \"Body & Skincare\",\n items: [\n {\n id: \"skincare-body-products\",\n name: \"Skincare & Body Products\",\n description:\n \"Soaps, creams, lip balms, bath salts, bath bombs, body oils, natural deodorants.\",\n },\n {\n id: \"other-body-care-items\",\n name: \"Other body care items\",\n description:\n \"Additional handmade or eco-conscious personal care goods.\",\n },\n ],\n },\n {\n id: \"aromatherapy-herbal-wellness\",\n name: \"Aromatherapy & Herbal Wellness\",\n items: [\n {\n id: \"aromatherapy-herbal-remedies\",\n name: \"Aromatherapy & Herbal Remedies\",\n description:\n \"Essential oils, herbal balms, massage oils, salves, natural teas, rollers.\",\n },\n {\n id: \"other-herbal-aroma-products\",\n name: \"Other herbal or aroma-based products\",\n description: \"Wellness blends, herb sachets, custom infusions.\",\n },\n ],\n },\n {\n id: \"wellness-tools-accessories\",\n name: \"Wellness Tools & Accessories\",\n items: [\n {\n id: \"wellness-accessories\",\n name: \"Wellness Accessories\",\n description:\n \"Yoga mats, meditation cushions, eye pillows, incense, smudging sticks, eco water bottles, wellness journals.\",\n },\n {\n id: \"spiritual-tools-crystals\",\n name: \"Spiritual Tools & Crystals\",\n description:\n \"Healing crystals, gemstone bracelets, pendulums, sprays, spiritual kits, altar decor.\",\n },\n {\n id: \"other-wellness-spiritual-items\",\n name: \"Other wellness or spiritual items\",\n description: \"Items that aid relaxation, focus, or inner work.\",\n },\n ],\n },\n ],\n },\n];\n","/* eslint-disable sort-keys */\nimport { Category } from \"src/types\";\n\nexport const homeGardenHousehold: Category[] = [\n {\n id: \"home-garden-household-goods\",\n name: \"Home, Garden & Household Goods\",\n description:\n \"Functional, decorative, and eco-conscious products designed for everyday use indoors and outdoors.\",\n subcategories: [\n {\n id: \"home-decor-living\",\n name: \"Home Decor & Living\",\n items: [\n {\n id: \"home-decor\",\n name: \"Home Decor\",\n description:\n \"Cushions, wall art, table runners, vases, trays, mirrors, handmade centerpieces.\",\n },\n {\n id: \"kitchenware-dining\",\n name: \"Kitchenware & Dining\",\n description:\n \"Mugs, bowls, cutting boards, utensils, jars, coasters, kitchen textiles.\",\n },\n {\n id: \"mini-figures-decor\",\n name: \"Mini Figures & Décor\",\n description:\n \"handmade or non-handmade small figures, tiny houses and miniature decorative items.\",\n },\n {\n id: \"other-indoor-home-items\",\n name: \"Other indoor home items\",\n description:\n \"Any decorative or practical household items not listed above.\",\n },\n ],\n },\n {\n id: \"cleaning-eco-essentials\",\n name: \"Cleaning & Eco Essentials\",\n items: [\n {\n id: \"cleaning-eco-supplies\",\n name: \"Cleaning & Eco Supplies\",\n description:\n \"Beeswax wraps, reusable cloths, brushes, natural soaps, detergent bars, eco sponges.\",\n },\n {\n id: \"other-eco-cleaning-items\",\n name: \"Other eco or cleaning items\",\n description: \"Environmentally friendly goods not listed above.\",\n },\n ],\n },\n {\n id: \"garden-outdoor-living\",\n name: \"Garden & Outdoor Living\",\n items: [\n {\n id: \"plants-botanical-decor\",\n name: \"Plants & Botanical Decor\",\n description:\n \"Potted herbs, succulents, dried flowers, terrariums, plant-based ornaments.\",\n },\n {\n id: \"fresh-flowers-botanical-bouquets\",\n name: \"Fresh Flowers & Botanical Bouquets\",\n description:\n \"Cut flowers, seasonal bouquets, simple floral arrangements, native flower selections, and other fresh botanical items.\",\n },\n {\n id: \"natural-decor-nature-inspired-elements\",\n name: \"Natural Decor & Nature-Inspired Elements\",\n description:\n \"Seashell décor, driftwood pieces, sand ornaments, natural wood accents, stone or mineral decorations, and other nature-based decorative items.\",\n },\n {\n id: \"garden-tools-outdoor-items\",\n name: \"Garden Tools & Outdoor Items\",\n description:\n \"Plant markers, garden signs, stakes, small tools, wind chimes, gifts.\",\n },\n {\n id: \"other-outdoor-garden-products\",\n name: \"Other outdoor or garden products\",\n description: \"Functional or decorative items for outside use.\",\n },\n ],\n },\n ],\n },\n];\n","/* eslint-disable sort-keys */\nimport { Category } from \"src/types\";\n\nexport const petProductsAndAnimalGoods: Category[] = [\n {\n id: \"pet-products-animal-goods\",\n name: \"Pet Products & Animal Goods\",\n description: \"Items for pets, pet lovers, or animal-themed market stalls.\",\n subcategories: [\n {\n id: \"products-for-pets\",\n name: \"Products for Pets\",\n items: [\n {\n id: \"pet-food-treats\",\n name: \"Pet Food & Treats\",\n description:\n \"Homemade dog biscuits, cat snacks, natural chews, pet-safe cakes, training treats.\",\n },\n {\n id: \"apparel-toys-accessories\",\n name: \"Apparel, Toys & Accessories\",\n description:\n \"Leashes, collars, harnesses, toys, grooming tools, beds, travel gear, jumpers, bandanas.\",\n },\n {\n id: \"other-pet-products\",\n name: \"Other pet products\",\n description: \"Any pet-related items not listed above.\",\n },\n ],\n },\n {\n id: \"small-pets-birds-exotic-animals\",\n name: \"Small Pets, Birds & Exotic Animals\",\n items: [\n {\n id: \"products-small-pets-birds-exotics\",\n name: \"Products for Small Pets, Birds & Exotics\",\n description:\n \"Toys, enclosures, perches, feeding bowls, bedding, habitat decor, transport gear, and care items for birds, rabbits, hamsters, reptiles, turtles, aquarium pets, and other exotic species.\",\n },\n {\n id: \"other-small-exotic-animal-items\",\n name: \"Other small or exotic animal items\",\n description: \"Unusual accessories for non-mainstream pets.\",\n },\n ],\n },\n {\n id: \"farm-working-animals\",\n name: \"Farm & Working Animals\",\n items: [\n {\n id: \"goods-for-farm-working-animals\",\n name: \"Goods for Farm & Working Animals\",\n description:\n \"Treats, care products, equipment, signage and accessories for chickens, goats, alpacas, horses, and other livestock.\",\n },\n {\n id: \"other-farm-animal-items\",\n name: \"Other farm animal-related items\",\n description:\n \"Rural, barnyard, or utility-specific gear not listed above.\",\n },\n ],\n },\n {\n id: \"animal-themed-gifts-custom-items\",\n name: \"Animal-Themed Gifts & Custom Items\",\n items: [\n {\n id: \"pet-art-custom-gifts\",\n name: \"Pet Art & Custom Gifts\",\n description:\n \"Pet portraits, name tags, personalized bowls, breed-specific items, pet-themed home decor and stationery.\",\n },\n {\n id: \"other-animal-themed-gifts\",\n name: \"Other animal-themed gifts\",\n description:\n \"Artistic or sentimental items made for animal lovers.\",\n },\n ],\n },\n ],\n },\n];\n","import { Category } from \"src/types\";\n\n/* eslint-disable sort-keys */\nexport const serviceAndExperience: Category[] = [\n {\n id: \"services-experiences\",\n name: \"Services & Experiences\",\n description:\n \"On-site offerings that provide entertainment, personal care, learning, or interactive activities beyond products.\",\n subcategories: [\n {\n id: \"personal-care-body-art\",\n name: \"Personal Care & Body Art\",\n items: [\n {\n id: \"nails-handcare\",\n name: \"Nails & Handcare\",\n description:\n \"Nail painting, decoration, quick manicures, temporary nail extensions.\",\n },\n {\n id: \"hair-styling-braiding\",\n name: \"Hair Styling & Braiding\",\n description:\n \"Hair braiding, plaits, child-friendly festival hairstyles.\",\n },\n {\n id: \"face-body-decoration\",\n name: \"Face & Body Decoration\",\n description:\n \"Henna, glitter tattoos, face painting, light makeup, eyelash styling, professional tattooing (where permitted).\",\n },\n {\n id: \"other-beauty-grooming-services\",\n name: \"Other beauty or grooming services\",\n description: \"Small-scale personal care options offered on-site.\",\n },\n ],\n },\n {\n id: \"practical-wellness-services\",\n name: \"Practical & Wellness Services\",\n items: [\n {\n id: \"mobile-practical-services\",\n name: \"Mobile & Practical Services\",\n description:\n \"Shoe repair, phone repairs, knife sharpening, key cutting, battery replacement, bike repairs, engraving.\",\n },\n {\n id: \"wellness-alternative-therapies\",\n name: \"Wellness & Alternative Therapies\",\n description:\n \"Massage, aromatherapy, reflexology, energy healing (e.g. Reiki), natural consultations.\",\n },\n {\n id: \"other-service-based-offerings\",\n name: \"Other service-based offerings\",\n description: \"Wellness or functional services not listed above.\",\n },\n ],\n },\n {\n id: \"creative-educational-experiences\",\n name: \"Creative & Educational Experiences\",\n items: [\n {\n id: \"creative-workshops-maker-services\",\n name: \"Creative Workshops & Maker Services\",\n description:\n \"Candle making, pottery, jewelry crafting, soap or balm workshops, calligraphy, seasonal crafts.\",\n },\n {\n id: \"education-awareness-stalls\",\n name: \"Education & Awareness Stalls\",\n description:\n \"Eco awareness, cultural storytelling, local history, first aid demos, health booths, sustainability education, kids’ science displays.\",\n },\n {\n id: \"other-creative-educational-services\",\n name: \"Other creative or educational services\",\n description:\n \"Informal learning, demonstrations, or community-focused sessions.\",\n },\n ],\n },\n {\n id: \"kids-activities-family-fun\",\n name: \"Kids’ Activities & Family Fun\",\n items: [\n {\n id: \"kids-activities-fun\",\n name: \"Kids’ Activities & Fun\",\n description:\n \"Face painting, glitter tattoos, pony rides, bouncy castles, small amusement rides, balloon twisting, animal petting zones.\",\n },\n {\n id: \"other-family-oriented-activities\",\n name: \"Other family-oriented activities\",\n description:\n \"On-site entertainment that engages children or family groups.\",\n },\n ],\n },\n ],\n },\n];\n","import { Category } from \"src/types\";\n\n/* eslint-disable sort-keys */\nexport const toysChildren: Category[] = [\n {\n id: \"toys-childrens-items\",\n name: \"Toys & Children’s Items\",\n description: \"Products and services made for or inspired by children.\",\n subcategories: [\n {\n id: \"toys-playthings\",\n name: \"Toys & Playthings\",\n items: [\n {\n id: \"toys-classic-electric-character\",\n name: \"Toys – Classic, Electric & Character-Based\",\n description:\n \"Building blocks, dolls, puzzles, plush animals, toy vehicles, remote-control toys, light-up gadgets, character figurines, themed playsets.\",\n },\n {\n id: \"handmade-toys-crafty-playthings\",\n name: \"Handmade Toys & Crafty Playthings\",\n description:\n \"Wooden puzzles, crocheted animals, felt toys, fabric dolls, DIY kits, nature-inspired games, sensory toys.\",\n },\n {\n id: \"other-play-items\",\n name: \"Other play items\",\n description:\n \"Toys not listed above, including limited-edition or hybrid items.\",\n },\n ],\n },\n {\n id: \"educational-developmental\",\n name: \"Educational & Developmental\",\n items: [\n {\n id: \"educational-developmental-tools\",\n name: \"Educational & Developmental Tools\",\n description:\n \"STEM kits, Montessori toys, storybooks, picture books, flashcards, early learning games, language tools.\",\n },\n {\n id: \"other-educational-experience-based-items\",\n name: \"Other educational or experience-based items\",\n description:\n \"Creative experiences or learning aids not listed above.\",\n },\n ],\n },\n {\n id: \"baby-kidswear-accessories\",\n name: \"Baby & Kidswear + Accessories\",\n items: [\n {\n id: \"baby-kidswear-accessories\",\n name: \"Baby & Kidswear + Accessories\",\n description:\n \"Handmade baby clothes, toddler outfits, bibs, hats, headbands, bags, pacifier clips, soft shoes.\",\n },\n {\n id: \"baby-developmental-soft-toys\",\n name: \"Baby Developmental Soft Toys\",\n description:\n \"Sensory toys, rattles, fabric books, teething items, high-contrast cards, and early-skill. Montessori materials designed to support infants’ cognitive and motor development.\",\n },\n {\n id: \"other-childrens-clothing-accessories\",\n name: \"Other children’s clothing or accessories\",\n description: \"Unique fashion or functional pieces for kids.\",\n },\n ],\n },\n ],\n },\n];\n","/* eslint-disable sort-keys */\nimport { Category } from \"src/types\";\n\nexport const vintageAndAntique: Category[] = [\n {\n id: \"vintage-antique\",\n name: \"Vintage & Antique\",\n description:\n \"Unique, historic, or nostalgic items with collectible or decorative value.\",\n subcategories: [\n {\n id: \"vintage-antique-clothing-accessories\",\n name: \"Vintage & Antique Clothing & Accessories\",\n items: [\n {\n id: \"clothing-vintage-fashion\",\n name: \"Clothing and wearable items from past eras\",\n description:\n \"Vintage dresses, jackets, hats, gloves, belts, bags, shoes, jewellery.\",\n },\n {\n id: \"other-clothing-accessory-items\",\n name: \"Other clothing-related items\",\n description:\n \"Hair clips, brooches, pins, scarf rings, small fashion accessories.\",\n },\n ],\n },\n {\n id: \"collectibles-memorabilia\",\n name: \"Collectibles & Memorabilia\",\n items: [\n {\n id: \"small-collectible-items\",\n name: \"Small collectible items with historical or nostalgic significance\",\n description:\n \"Coins, stamps, toys, postcards, comics, sports cards, vintage packaging.\",\n },\n {\n id: \"other-collectible-items\",\n name: \"Other collectible items\",\n description:\n \"Rare small objects, miniature figurines, special-edition items.\",\n },\n ],\n },\n {\n id: \"homewares-decor-curiosities\",\n name: \"Homewares, Decor & Curiosities\",\n items: [\n {\n id: \"decorative-functional-vintage-items\",\n name: \"Decorative or functional items with a vintage or antique aesthetic\",\n description:\n \"Teacups, plates, vases, mirrors, clocks, furniture, old tools, lanterns, typewriters, curiosities.\",\n },\n {\n id: \"handmade-vintage-art\",\n name: \"Handmade vintage art\",\n description: \"Paintings, sculptures, crafted pieces.\",\n },\n {\n id: \"other-home-decor-items\",\n name: \"Other home or decor items\",\n description:\n \"Decorative pieces not listed above, unique household objects.\",\n },\n ],\n },\n {\n id: \"vintage-media-printed-nostalgia\",\n name: \"Vintage Media & Printed Nostalgia\",\n items: [\n {\n id: \"older-media-printed-works\",\n name: \"Older media formats and printed works\",\n description:\n \"Vinyl records, cassette tapes, CDs, DVDs, books, magazines, board games, posters.\",\n },\n {\n id: \"other-media-printed-items\",\n name: \"Other media or printed items\",\n description: \"Maps, manuals, leaflets, out-of-print materials.\",\n },\n ],\n },\n {\n id: \"other-vintage-antique-items\",\n name: \"Other Vintage & Antique Items\",\n items: [\n {\n id: \"any-vintage-antique-items-not-listed\",\n name: \"Any vintage or antique items not listed above\",\n description: \"Unique, rare or uncategorised pieces.\",\n },\n ],\n },\n ],\n },\n];\n","import { Category } from \"../../types/global\";\n\nimport { clothingAndFashion } from \"./clothingAndFashion\";\nimport { electronicsAndTechnology } from \"./electronicsAndTechnology\";\nimport { foodAndBeverages } from \"./foodAndBeverages\";\nimport { handmadeAndLocalProducts } from \"./handmadeAndLocalProducts\";\nimport { healthAndWellness } from \"./healthAndWellness\";\nimport { homeGardenHousehold } from \"./homeGardenHousehold\";\nimport { petProductsAndAnimalGoods } from \"./petProductsAndAnimalGoods\";\nimport { serviceAndExperience } from \"./serviceAndExperience\";\nimport { toysChildren } from \"./toysChildren\";\nimport { vintageAndAntique } from \"./vintageAndAntique\";\n\nexport const categoryColors: Record<string, string> = {\n \"clothing-fashion\": \"#9D4EDD\",\n \"electronics-technology\": \"#3AF3FF\",\n \"food-beverages\": \"#FF0D1F\",\n \"handmade-local-products\": \"#EE7E54\",\n \"health-wellness\": \"#E23794\",\n \"home-garden-household-goods\": \"#067325\",\n \"pet-products-animal-goods\": \"#68E788\",\n \"services-experiences\": \"#2E16A5\",\n \"toys-childrens-items\": \"#FFF966\",\n \"vintage-antique\": \"#8D6748\",\n};\n\nconst assignColorToCategories = (categories: Category[]): Category[] => {\n const result = categories.map((category) => ({\n ...category,\n color: categoryColors[category.id],\n }));\n return result;\n};\n\nexport const availableCategories = assignColorToCategories([\n ...foodAndBeverages,\n ...handmadeAndLocalProducts,\n ...clothingAndFashion,\n ...homeGardenHousehold,\n ...toysChildren,\n ...healthAndWellness,\n ...electronicsAndTechnology,\n ...vintageAndAntique,\n ...petProductsAndAnimalGoods,\n ...serviceAndExperience,\n]);\n","/* eslint-disable sort-keys */\nimport * as yup from \"yup\";\n\nimport { RefundPolicy } from \"src\";\n\nimport { EnumEventType, EnumPaymentMethod } from \"../enums\";\n\nimport {\n dateTimeSchema,\n dateTimeWithPriceSchema,\n globalResourceSchema,\n locationSchema,\n noLeadingZeros,\n normalizedUrlTransform,\n nzBankAccountRegex,\n nzbnRegex,\n toOptionalNumber,\n} from \"./global\";\n\nexport const eventSchema = globalResourceSchema.shape({\n dateTime: yup\n .array()\n .of(dateTimeSchema)\n .min(1, \"At least one Event date required\")\n .max(50, \"You can only add up to 50 Event dates\") // <-- enforce max 50\n .required(\"DateTime is required\")\n .test(\n \"unique-start-date-time\",\n \"Start Date and Start Time must be unique\",\n function (value) {\n if (!value) return true;\n\n const seen = new Set<string>();\n for (const item of value) {\n // Only validate uniqueness when both fields exist\n if (!item.startDate || !item.startTime) continue;\n\n const key = `${item.startDate}_${item.startTime}`;\n\n if (seen.has(key)) {\n return false;\n }\n\n seen.add(key);\n }\n return true;\n },\n ),\n eventType: yup\n .mixed<EnumEventType>()\n .oneOf(Object.values(EnumEventType), \"Please select a valid Event type\")\n .required(\"Please select an Event type\"),\n location: locationSchema,\n nzbn: yup\n .string()\n .required(\"NZBN is required\")\n .matches(nzbnRegex, \"NZBN must be 13 digits and start with 94\"),\n rainOrShine: yup\n .boolean()\n .label(\"Rain or Shine\")\n .required(\"Please specify if the event is rain or shine\"),\n tags: yup\n .array()\n .of(yup.string().defined())\n .min(1, \"Tags are required\")\n .required(\"Tags are required\"),\n});\n\nconst paymentInfoSchema = yup.object({\n paymentMethod: yup\n .mixed<EnumPaymentMethod>()\n .oneOf(\n Object.values(EnumPaymentMethod),\n \"Please select a valid Payment method\",\n )\n .required(\"Please select a Payment method\"),\n\n accountHolderName: yup.string().when(\"paymentMethod\", {\n is: EnumPaymentMethod.BANK_TRANSFER,\n then: (schema) =>\n schema\n .required(\"Account holder name is required for bank transfer\")\n .trim(),\n otherwise: (schema) => schema.notRequired(),\n }),\n\n accountNumber: yup.string().when(\"paymentMethod\", {\n is: EnumPaymentMethod.BANK_TRANSFER,\n then: (schema) =>\n schema\n .required(\"Account number is required for bank transfer\")\n .matches(\n nzBankAccountRegex,\n \"Account number must be in format: XX-XXXX-XXXXXXX-XX\",\n )\n .trim(),\n otherwise: (schema) => schema.notRequired(),\n }),\n\n link: yup.string().when(\"paymentMethod\", {\n is: (val: EnumPaymentMethod) =>\n val === EnumPaymentMethod.PAYPAL || val === EnumPaymentMethod.STRIPE,\n then: () =>\n normalizedUrlTransform()\n .url(\"Link must be a valid URL\")\n .required(\"Link is required for PayPal/Stripe\"),\n otherwise: (schema) => schema.notRequired(),\n }),\n});\n\nexport const eventInfoSchema = yup.object().shape({\n applicationDeadlineHours: yup\n .number()\n .label(\"Application Deadline Hours\")\n .nullable()\n .transform((value, originalValue) => (originalValue === \"\" ? null : value))\n .typeError(\"Application deadline hours must be a number\")\n .min(1, \"Application deadline hours must be at least 1\")\n .required(\"Application deadline hours is required\")\n .test(\"no-leading-zeros\", \"\", noLeadingZeros(\"Application deadline hours\")),\n dateTime: yup\n .array()\n .of(dateTimeWithPriceSchema)\n .required(\"DateTime is required\"),\n eventId: yup.string().trim().required(\"Event ID is required\"),\n packInTime: yup\n .number()\n .transform((_, originalValue) => toOptionalNumber(originalValue))\n .label(\"Pack In Time\")\n .typeError(\"Pack in time must be a number\")\n .min(1, \"Pack in time must be at least 1\")\n .required(\"Pack in time is required\")\n .test(\"no-leading-zeros\", \"\", noLeadingZeros(\"Pack in time\")),\n paymentDueHours: yup\n .number()\n .transform((_, originalValue) => toOptionalNumber(originalValue))\n .label(\"Payment Due Hours\")\n .typeError(\"Payment due hours must be a number\")\n .min(1, \"Payment due hours must be at least 1\")\n .required(\"Payment due hours is required\")\n .test(\"no-leading-zeros\", \"\", noLeadingZeros(\"Payment due hours\"))\n .test(\n \"payment-before-deadline\",\n \"Payment due hours must be less than application deadline hours\",\n function (value) {\n const { applicationDeadlineHours } = this.parent;\n\n // Both are numbers (enforced by schema), so direct comparison is fine\n return value < applicationDeadlineHours;\n },\n ),\n paymentInfo: yup\n .array()\n .of(paymentInfoSchema)\n .min(1, \"At least one payment method is required\")\n .required(\"Payment info is required\"),\n refundPolicy: yup\n .array()\n .of(\n yup.object({\n category: yup\n .mixed<RefundPolicy[\"category\"]>()\n .required(\"Category is required\"),\n label: yup.string().required(\"Label is required\"),\n value: yup.boolean().required(\"Value is required\"),\n }),\n )\n .min(1, \"At least one refund policy item is required\")\n .test(\n \"at-least-one-true\",\n \"At least one refund policy option must be selected\",\n (value) => {\n if (!value) return false;\n return value.some((item) => item.value === true);\n },\n )\n .required(\"Refund policy is required\"),\n});\n","import * as yup from \"yup\";\n\nimport { EnumFoodFlavor, EnumVendorType } from \"src/enums\";\n\nimport {\n categorySchema,\n dateTimeSchema,\n emailOptionalSchema,\n globalResourceSchema,\n} from \"./global\";\n\nconst vendorMenuSchema = yup.object({\n description: yup.string().nullable().optional(),\n name: yup.string().nullable().required(\"Product name is required\"),\n price: yup\n .number()\n .transform((v, o) => (o === \"\" ? null : v))\n .min(1, \"Product price must be greater than 0\")\n .required(\"Product price is required\"),\n priceUnit: yup.string().required(\"Product unit is required\"),\n});\n\nexport const vendorSchema = globalResourceSchema.shape({\n categories: categorySchema\n .min(1, \"Category list must contain at least one item\")\n .required(\"Categories are required\"),\n foodTruck: yup\n .boolean()\n .label(\"Food Truck\")\n .required(\"Please specify if the vendor is a food truck\"),\n products: yup\n .object()\n .shape({\n active: yup.boolean().nullable().optional(),\n productsList: yup.array().of(vendorMenuSchema).nullable().optional(),\n })\n .nullable()\n .optional(),\n vendorType: yup\n .mixed<EnumVendorType>()\n .oneOf(Object.values(EnumVendorType))\n .required(\"Please select a Vendor type\"),\n});\n\nexport const unregisteredVendorSchema = yup.object().shape({\n categoryIds: yup\n .array()\n .of(yup.string().defined())\n .min(1, \"Category list must contain at least one item\")\n .required(\"Categories are required\"),\n dateTime: yup\n .array()\n .of(dateTimeSchema)\n .min(1, \"DateTime list must contain at least one item\")\n .required(\"DateTime is required\"),\n email: emailOptionalSchema,\n inviterId: yup.string().required(\"Inviter ID is required\"),\n name: yup\n .string()\n .label(\"Stallholder Name\")\n .trim()\n .min(3, \"Name must be at least 3 characters\")\n .required(\"Name is required\"),\n region: yup.string().label(\"Region\").required(\"Region is required\"),\n});\n\nexport const vendorInfoSchema = yup.object().shape({\n product: yup.object().shape({\n foodFlavors: yup\n .array()\n .of(\n yup\n .mixed<EnumFoodFlavor>()\n .oneOf(Object.values(EnumFoodFlavor), \"Invalid flavor selected\")\n .required(\"Flavor is required\"),\n )\n .min(1, \"Food flavors list must contain at least one item\")\n .required(\"Food flavors are required\"),\n packaging: yup\n .array()\n .of(yup.string().defined())\n .min(1, \"Packaging list must contain at least one item\")\n .required(\"Packaging is required\"),\n priceRange: yup.object().shape({\n max: yup\n .string()\n .required(\"Max price is required\")\n .test(\n \"is-number\",\n \"Max price must be a valid number\",\n (value) =>\n value !== undefined && value !== \"\" && !isNaN(Number(value)),\n )\n .test(\n \"is-greater\",\n \"Max price must be greater than or equal to Min price\",\n function (max) {\n const { min } = this.parent;\n\n if (!max || !min) return true; // required() handles empty\n\n const maxNum = Number(max);\n const minNum = Number(min);\n\n if (isNaN(maxNum) || isNaN(minNum)) return true;\n\n return maxNum >= minNum;\n },\n ),\n min: yup\n .string()\n .required(\"Min price is required\")\n .test(\n \"is-number\",\n \"Min price must be a valid number\",\n (value) =>\n value !== undefined && value !== \"\" && !isNaN(Number(value)),\n ),\n }),\n producedIn: yup\n .array()\n .of(yup.string().defined())\n .min(1, \"Produced in list must contain at least one item\")\n .required(\"Produced in is required\"),\n }),\n requirements: yup\n .object()\n .shape({\n electricity: yup.object().shape({\n details: yup\n .string()\n .trim()\n .test(\n \"details-required\",\n \"Please add electricity details\",\n function (value) {\n return (\n !this.parent?.isRequired || (value?.trim().length ?? 0) > 0\n );\n },\n )\n .nullable(),\n isRequired: yup\n .boolean()\n .required(\"Electricity requirement is required\"),\n }),\n gazebo: yup.object().shape({\n details: yup\n .string()\n .trim()\n .test(\n \"details-required\",\n \"Please add gazebo details\",\n function (value) {\n return (\n !this.parent?.isRequired || (value?.trim().length ?? 0) > 0\n );\n },\n )\n .nullable(),\n isRequired: yup.boolean().required(\"Gazebo requirement is required\"),\n }),\n table: yup.object().shape({\n details: yup\n .string()\n .trim()\n .test(\n \"details-required\",\n \"Please add table details\",\n function (value) {\n return (\n !this.parent?.isRequired || (value?.trim().length ?? 0) > 0\n );\n },\n )\n .nullable(),\n isRequired: yup.boolean().required(\"Table requirement is required\"),\n }),\n })\n .optional(),\n stallInfo: yup.object().shape({\n size: yup.object().shape({\n depth: yup\n .string()\n .required(\"Depth is required\")\n .test(\n \"is-number\",\n \"Depth must be a valid number\",\n (value) =>\n value !== undefined && value !== \"\" && !isNaN(Number(value)),\n )\n .test(\n \"is-positive\",\n \"Depth must be greater than 0\",\n (value) => value !== undefined && value !== \"\" && Number(value) > 0,\n ),\n width: yup\n .string()\n .required(\"Width is required\")\n .test(\n \"is-number\",\n \"Width must be a valid number\",\n (value) =>\n value !== undefined && value !== \"\" && !isNaN(Number(value)),\n )\n .test(\n \"is-positive\",\n \"Width must be greater than 0\",\n (value) => value !== undefined && value !== \"\" && Number(value) > 0,\n ),\n }),\n }),\n vendorId: yup.string().trim().required(\"Vendor ID is required\"),\n});\n","/* eslint-disable sort-keys */\nimport * as yup from \"yup\";\n\nimport { EnumUserRole } from \"../enums\";\n\nimport { emailRequiredSchema } from \"./global\";\n\nexport const userSchema = yup.object().shape({\n active: yup.boolean().required(\"Active is required\"),\n email: emailRequiredSchema,\n firstName: yup\n .string()\n .label(\"First Name\")\n .trim()\n .required(\"First name is required\"),\n lastName: yup\n .string()\n .label(\"Last Name\")\n .trim()\n .required(\"Last name is required\"),\n isTester: yup.boolean().required(\"Tester status is required\"),\n password: yup\n .string()\n .nullable()\n .trim()\n .label(\"Password\")\n // simple rule: if user enters something → must be at least 8 chars\n .min(8, \"Password must be at least 8 characters long\")\n .notRequired(),\n preferredRegion: yup\n .string()\n .label(\"Preferred Region\")\n .required(\"Preferred region is required\"),\n confirmPassword: yup\n .string()\n .nullable()\n .trim()\n .label(\"Confirm Password\")\n .when(\"password\", {\n is: (val: string | null) => !!val, // only necessary if password typed\n then: (schema) =>\n schema\n .required(\"Confirm Password is required\")\n .oneOf([yup.ref(\"password\")], \"Passwords must match\"),\n otherwise: (schema) => schema.notRequired(),\n }),\n role: yup\n .mixed<EnumUserRole>()\n .oneOf(Object.values(EnumUserRole))\n .required(\"Role is required\"),\n});\n","import * as yup from \"yup\";\n\nimport { emailRequiredSchema, passwordSchema } from \"./global\";\n\nexport const loginSchema = yup.object().shape({\n email: emailRequiredSchema,\n password: passwordSchema,\n});\n\nexport const registerSchema = yup.object().shape({\n email: emailRequiredSchema,\n firstName: yup\n .string()\n .label(\"First Name\")\n .required(\"First Name is required\"),\n lastName: yup.string().label(\"Last Name\").required(\"Last Name is required\"),\n password: passwordSchema,\n preferredRegion: yup\n .string()\n .label(\"Preferred Region\")\n .required(\"Preferred Region is required\"),\n});\n\nexport const requestPasswordResetSchema = yup.object().shape({\n email: emailRequiredSchema,\n});\n\nexport const resetPasswordSchema = yup.object().shape({\n email: emailRequiredSchema,\n password: passwordSchema,\n // eslint-disable-next-line sort-keys\n confirmPassword: yup\n .string()\n .oneOf([yup.ref(\"password\")], \"Passwords must match\")\n .required(\"Confirm Password is required\"),\n});\n\nexport const validateVerificationTokenSchema = yup.object().shape({\n email: emailRequiredSchema,\n verificationToken: yup\n .string()\n .required(\"Verification code is required\")\n .matches(/^\\d{6}$/, \"Verification code must be exactly 6 digits\"),\n});\n","/* eslint-disable sort-keys */\nimport * as yup from \"yup\";\n\nimport { EnumResourceType } from \"src/enums\";\nimport {\n AdResource,\n AdFormState,\n EnumAdShowOn,\n EnumAdStatus,\n EnumAdStyle,\n EnumAdType,\n} from \"src/types/ad\";\n\nconst adResourceSchema: yup.ObjectSchema<AdResource> = yup.object({\n adDescription: yup\n .string()\n .trim()\n .required(\"Ad description is required\")\n .max(150, \"Ad description must be at most 150 characters\"),\n adImage: yup.string().required(\"Ad image is required\"),\n adStyle: yup\n .mixed<EnumAdStyle>()\n .oneOf(Object.values(EnumAdStyle), \"Please select a valid ad style\")\n .required(\"Ad style is required\"),\n adTitle: yup\n .string()\n .trim()\n .required(\"Ad title is required\")\n .max(30, \"Ad title must be at most 30 characters\"),\n adType: yup\n .mixed<EnumAdType>()\n .oneOf(Object.values(EnumAdType), \"Please select a valid ad type\")\n .required(\"Ad type is required\"),\n resourceId: yup.string().required(\"Resource ID is required\"),\n resourceName: yup.string().required(\"Resource name is required\"),\n resourceRegion: yup.string().required(\"Resource region is required\"),\n resourceType: yup\n .mixed<EnumResourceType>()\n .oneOf(Object.values(EnumResourceType), \"Please select Event or Vendor\")\n .required(\"Resource type is required\"),\n resourceSlug: yup.string().required(\"Resource slug is required\"),\n});\n\nexport const adSchema: yup.ObjectSchema<AdFormState> = yup.object().shape({\n active: yup.boolean().required(\"Active status is required\"),\n end: yup\n .date()\n .required(\"End date is required\")\n .test(\"is-future-date\", \"End date must be in the future\", (value) => {\n if (!value) return false;\n const endDate = new Date(value);\n const now = new Date();\n return endDate > now;\n })\n .when(\"start\", {\n is: (val: string) => val && val.length > 0,\n then: (schema) =>\n schema.test(\n \"is-after-start\",\n \"End date must be after start date\",\n function (value) {\n const { start } = this.parent;\n if (!value || !start) return false;\n return new Date(value) > new Date(start);\n },\n ),\n }),\n resource: adResourceSchema.required(\"Resource information is required\"),\n showOn: yup\n .array()\n .of(yup.mixed<EnumAdShowOn>().oneOf(Object.values(EnumAdShowOn)).required())\n .min(1, \"At least one display location is required\")\n .required(\"Display location is required\"),\n status: yup\n .mixed<EnumAdStatus>()\n .oneOf(Object.values(EnumAdStatus))\n .required(\"Ad status is required\"),\n start: yup.date().when(\"status\", {\n is: (status: EnumAdStatus) => status !== EnumAdStatus.ACTIVE,\n then: () =>\n yup\n .date()\n .required(\"Start date is required\")\n .test(\"is-future-date\", \"Start date must be in the future\", (value) => {\n if (!value) return false;\n return value > new Date();\n }),\n // Keep `start` optional (not null) when ACTIVE to match TS type `start?: Date`.\n otherwise: () => yup.date().notRequired(),\n }),\n targetRegion: yup\n .array()\n .of(yup.string().required())\n .min(1, \"At least one target region is required\")\n .required(\"Target region is required\"),\n});\n","import * as yup from \"yup\";\n\nimport { EnumPartnerType } from \"src/enums\";\n\nimport { globalResourceSchema, locationSchema, nzbnRegex } from \"./global\";\n\nexport const partnerSchema = globalResourceSchema.shape({\n location: locationSchema,\n nzbn: yup\n .string()\n .required(\"NZBN is required\")\n .matches(nzbnRegex, \"NZBN must be 13 digits and start with 94\"),\n partnerType: yup\n .mixed<EnumPartnerType>()\n .oneOf(Object.values(EnumPartnerType), \"Please select a valid Partner type\")\n .required(\"Please select a Partner type\"),\n});\n","import * as yup from \"yup\";\n\nimport { EnumResourceType } from \"src\";\nimport {\n EnumPostContentType,\n EnumPostType,\n PostContentData,\n} from \"src/types/post\";\n\n/* ------------------------------------------------------------------ */\n/* Post content block schema */\n/* ------------------------------------------------------------------ */\n\nexport const postContentSchema = yup.object().shape({\n contentData: yup.mixed<PostContentData>().optional().nullable(),\n contentOrder: yup.number().nullable(),\n contentType: yup\n .mixed<EnumPostContentType>()\n .oneOf(Object.values(EnumPostContentType))\n .nullable(),\n});\n\n/* ------------------------------------------------------------------ */\n/* Final post schema */\n/* ------------------------------------------------------------------ */\n\nexport const postSchema = yup.object().shape({\n active: yup.boolean().required(),\n caption: yup.string().required(),\n content: yup.array().of(postContentSchema).required(),\n postType: yup\n .mixed<EnumPostType>()\n .oneOf(Object.values(EnumPostType))\n .required(),\n resource: yup\n .object({\n resourceId: yup.string().required(),\n resourceRegion: yup.string().required(),\n resourceSlug: yup.string().required(),\n resourceType: yup\n .mixed<EnumResourceType>()\n .oneOf(Object.values(EnumResourceType))\n .required(),\n })\n .nullable()\n .optional(),\n tags: yup.array().of(yup.string().required()).nullable().optional(),\n title: yup.string().required(),\n});\n","import { EnumFoodFlavor } from \"src/enums\";\n\nimport { FormField, OptionItem } from \"../../types\";\nimport { mapArrayToOptions } from \"../../utils\";\n\nexport const vendorElectricity: {\n details: FormField;\n isRequired: FormField;\n} = {\n details: {\n helperText: \"Please describe details e.g. amps, voltage, etc.\",\n isTextArea: true,\n name: \"requirements.electricity.details\",\n placeholder: \"Electricity requirements\",\n },\n isRequired: {\n name: \"requirements.electricity.isRequired\",\n placeholder: \"Do you require electricity?\",\n },\n};\n\nexport const vendorGazebo: {\n details: FormField;\n isRequired: FormField;\n} = {\n details: {\n helperText: \"Please describe details e.g. size, etc.\",\n isTextArea: true,\n name: \"requirements.gazebo.details\",\n placeholder: \"Gazebo requirements\",\n },\n isRequired: {\n name: \"requirements.gazebo.isRequired\",\n placeholder: \"Do you require Gazebo?\",\n },\n};\n\nexport const vendorTable: {\n details: FormField;\n isRequired: FormField;\n} = {\n details: {\n helperText: \"Please describe details e.g. size, etc.\",\n isTextArea: true,\n name: \"requirements.table.details\",\n placeholder: \"Table requirements\",\n },\n isRequired: {\n name: \"requirements.table.isRequired\",\n placeholder: \"Do you require Table?\",\n },\n};\n\nexport const vendorPriceRange: {\n max: FormField;\n min: FormField;\n} = {\n max: {\n helperText: \"Product maximum price\",\n name: \"product.priceRange.max\",\n placeholder: \"Maximum price: \",\n },\n min: {\n helperText: \"Product minimum price\",\n name: \"product.priceRange.min\",\n placeholder: \"Minimum price: \",\n },\n};\n\nexport const vendorStallSize: {\n depth: FormField;\n width: FormField;\n} = {\n depth: {\n helperText: \"Stall size in depth\",\n name: \"stallInfo.size.depth\",\n placeholder: \"Stall Depth: \",\n },\n width: {\n helperText: \"Stall size in width\",\n name: \"stallInfo.size.width\",\n placeholder: \"Stall Width: \",\n },\n};\n\nexport const vendorPackaging: FormField = {\n helperText: \"Select packaging type, you can select more than one\",\n name: \"product.packaging\",\n placeholder: \"Packaging type\",\n};\n\nexport const vendorProducedIn: FormField = {\n helperText:\n \"Select where the product is produced, you can select more than one\",\n name: \"product.producedIn\",\n placeholder: \"Produced type\",\n};\n\nexport const vendorFoodFlavour: FormField = {\n helperText: \"You can select more than one food flavour\",\n name: \"product.foodFlavors\",\n placeholder: \"Food flavours\",\n};\n\nexport const vendorCompliance: FormField[] = [\n {\n name: \"compliance.liabilityInsurance\",\n placeholder: \"Liability Insurance\",\n },\n {\n name: \"compliance.foodBeverageLicense\",\n placeholder: \"Food and Beverage License\",\n },\n];\n\nconst packagingTypes = [\n \"Biodegradable\",\n \"Compostable\",\n \"Fabric\",\n \"Glass\",\n \"Other\",\n \"Paper\",\n \"Plastic\",\n \"Recyclable\",\n \"Reusable\",\n \"Single-use\",\n \"Wood\",\n];\n\nconst producedIngTypes = [\n \"Commercial Kitchen\",\n \"Home Premises\",\n \"Factory\",\n \"Farm\",\n \"Other\",\n];\n\nexport const packagingOptions: OptionItem[] = mapArrayToOptions(packagingTypes);\nexport const producedIngOptions: OptionItem[] =\n mapArrayToOptions(producedIngTypes);\nexport const foodFlavourOptions: OptionItem[] = Object.values(\n EnumFoodFlavor,\n).map((flavour) => ({\n label: flavour.replaceAll(\"_\", \" \"),\n value: flavour,\n}));\n","import { FormDateField, FormField, OptionItem } from \"../../types/global\";\n\nexport const eventBasicInfoFields: FormField[] = [\n {\n helperText: \"Name of the Event *\",\n name: \"name\",\n placeholder: \"Name\",\n },\n {\n helperText:\n \"NZBN number (required – ClueMart only accepts events with valid NZBN number) *\",\n keyboardType: \"number-pad\",\n name: \"nzbn\",\n placeholder: \"NZBN number\",\n },\n {\n helperText: \"Name of the Provider (if applicable)\",\n name: \"provider\",\n placeholder: \"Provider\",\n },\n {\n helperText: \"Description of the Event *\",\n isTextArea: true,\n name: \"description\",\n placeholder: \"Description\",\n },\n];\n\nexport const eventStartDateFields: FormDateField[] = [\n {\n dateMode: \"date\",\n helperText: \"Start Date of the Event *\",\n name: \"startDate\",\n placeholder: \"Start Date\",\n },\n {\n dateMode: \"time\",\n helperText: \"Start Time of the Event *\",\n name: \"startTime\",\n placeholder: \"Start Time\",\n },\n];\n\nexport const eventEndDateFields: FormDateField[] = [\n {\n dateMode: \"date\",\n helperText: \"End Date of the Event *\",\n name: \"endDate\",\n placeholder: \"End Date\",\n },\n {\n dateMode: \"time\",\n helperText: \"End Time of the Event *\",\n name: \"endTime\",\n placeholder: \"End Time\",\n },\n];\n\nexport const availableTagTypes = [\n { icon: \"human-male-female-child\", label: \"All Ages\" },\n { icon: \"weather-sunny\", label: \"Day Market\" },\n { icon: \"account-child\", label: \"Family Friendly\" },\n { icon: \"ticket-percent\", label: \"Free Entry\" },\n { icon: \"home-city\", label: \"Indoor Market\" },\n { icon: \"music\", label: \"Live Music\" },\n { icon: \"bus\", label: \"Near Bustop\" },\n { icon: \"slide\", label: \"Near Playground\" },\n { icon: \"train\", label: \"Near Train Station\" },\n { icon: \"weather-night\", label: \"Night Market\" },\n { icon: \"tree\", label: \"Outdoor Market\" },\n { icon: \"car\", label: \"Parking Available\" },\n { icon: \"dog\", label: \"Pet Friendly\" },\n { icon: \"ship-wheel\", label: \"Port Nearby\" },\n { icon: \"toilet\", label: \"Toilet Available\" },\n { icon: \"wheelchair-accessibility\", label: \"Wheelchair Accessible\" },\n];\n\nexport const tagOptions: OptionItem[] = availableTagTypes.map((tag) => ({\n label: tag.label,\n value: tag.label,\n}));\n","import { RefundPolicy, Requirement, StallType } from \"../../types/event\";\nimport { FormField } from \"../../types/global\";\n\nexport const eventInfo: FormField[] = [\n {\n helperText: \"Application Deadline (hours before event start) *\",\n keyboardType: \"number-pad\",\n name: \"applicationDeadlineHours\",\n placeholder: \"Application Deadline (in hours)\",\n },\n {\n helperText:\n \"Payment Due (hours after application or invitation acceptance) *\",\n keyboardType: \"number-pad\",\n name: \"paymentDueHours\",\n placeholder: \"Payment Due (in hours)\",\n },\n {\n helperText: \"Pack-In Time (hours before event start) *\",\n keyboardType: \"number-pad\",\n name: \"packInTime\",\n placeholder: \"Pack In Time (in hours)\",\n },\n];\n\nexport const eventInfoPaymentInfo: FormField[] = [\n {\n helperText: \"Account holder name *\",\n name: \"accountHolderName\",\n placeholder: \"Account holder name\",\n },\n {\n helperText: \"Account number *\",\n keyboardType: \"number-pad\",\n name: \"accountNumber\",\n placeholder: \"Account number\",\n },\n {\n helperText: \"Payment link, where applicants can pay *\",\n keyboardType: \"url\",\n name: \"link\",\n placeholder: \"Payment link\",\n },\n];\n\nexport const requirementsOptions: Requirement[] = [\n {\n category: \"Environment\",\n label: \"All packaging must be eco-friendly or recyclable where possible.\",\n value: false,\n },\n {\n category: \"Environment\",\n label: \"No single-use plastic bags are to be handed out.\",\n value: false,\n },\n {\n category: \"Environment\",\n label:\n \"Stall area must be left clean with no trace of activity after pack-down.\",\n value: false,\n },\n {\n category: \"Environment\",\n label:\n \"No disposal of oils, fats, or chemicals in public drains or on grassed areas.\",\n value: false,\n },\n {\n category: \"Environment\",\n label:\n \"You must provide bins at your site for rubbish and recycling, and take away all bins including rubbish, to dispose of outside of the town centre.\",\n value: false,\n },\n {\n category: \"Food Safety\",\n label:\n \"Food must be prepared and stored according to your food regulation.\",\n value: false,\n },\n {\n category: \"Food Safety\",\n label: \"The stallholder must display a current food grade certificate.\",\n value: false,\n },\n {\n category: \"Food Safety\",\n label: \"Only licensed food vendors may sell ready-to-eat food items.\",\n value: false,\n },\n {\n category: \"Food Safety\",\n label:\n \"Handwashing facilities must be available at your stall if preparing food.\",\n value: false,\n },\n {\n category: \"Food Safety\",\n label: \"You must have a food safety plan in place for your stall.\",\n value: false,\n },\n {\n category: \"Food Safety\",\n label:\n \"Allergens must be clearly listed on packaged and unpackaged food items.\",\n value: false,\n },\n {\n category: \"Legal & Safety\",\n label: \"All stallholders must comply with local council regulations.\",\n value: false,\n },\n {\n category: \"Legal & Safety\",\n label: \"No unauthorised subletting of stall space to other vendors.\",\n value: false,\n },\n {\n category: \"Legal & Safety\",\n label:\n \"Gas bottles and fuel containers must be secured and in good condition if applicable.\",\n value: false,\n },\n {\n category: \"Legal & Safety\",\n label:\n \"Fire extinguishers must be available for stalls using cooking or heating equipment.\",\n value: false,\n },\n {\n category: \"Legal & Safety\",\n label:\n \"Stallholders must not sell items that are illegal or prohibited by law.\",\n value: false,\n },\n {\n category: \"Legal & Safety\",\n label: \"All electrical equipment must be tested and tagged.\",\n value: false,\n },\n {\n category: \"Legal & Safety\",\n label:\n \"Noise levels must be kept to a minimum unless part of a permitted performance.\",\n value: false,\n },\n {\n category: \"Legal & Safety\",\n label: \"Pets at the stall must be secured and well-behaved at all times.\",\n value: false,\n },\n {\n category: \"Legal & Safety\",\n label: \"Cables must be secured and not create tripping hazards.\",\n value: false,\n },\n {\n category: \"Legal & Safety\",\n label: \"Stalls must not obstruct emergency access routes.\",\n value: false,\n },\n {\n category: \"Legal & Safety\",\n label: \"First aid kit must be available at the stall for minor injuries.\",\n value: false,\n },\n {\n category: \"Legal & Safety\",\n label: \"Stallholders must hold valid liability insurance where required.\",\n value: false,\n },\n {\n category: \"Legal & Safety\",\n label:\n \"You must secure your gazebo and equipment to withstand wind or bad weather.\",\n value: false,\n },\n {\n category: \"Legal & Safety\",\n label:\n \"You are responsible for the safety of your setup and any potential hazards.\",\n value: false,\n },\n {\n category: \"Operations\",\n label: \"Generators must be quiet and pre-approved by the event organiser.\",\n value: false,\n },\n {\n category: \"Operations\",\n label:\n \"Only approved products or services may be sold — no last-minute changes.\",\n value: false,\n },\n {\n category: \"Operations\",\n label:\n \"Stallholders must arrive and be fully set up by the designated opening time.\",\n value: false,\n },\n {\n category: \"Operations\",\n label: \"You may not pack down your stall before the event officially ends.\",\n value: false,\n },\n {\n category: \"Operations\",\n label: \"You must be self-sufficient in all operations.\",\n value: false,\n },\n {\n category: \"Operations\",\n label: \"Stall layout must be kept within your allocated space.\",\n value: false,\n },\n];\n\nconst stallTypes = [\n \"1.8m table only\",\n \"2x2m mini stall\",\n \"3x3m tent site\",\n \"Corner stall\",\n \"Craft stall with power\",\n \"Craft stall without power\",\n \"Double stall (6x3m)\",\n \"Food truck site\",\n \"Food vendor with power\",\n \"Food vendor without power\",\n \"Inside hall stall\",\n \"Non-profit/community stall\",\n \"Outdoor open area\",\n \"Shared table space\",\n \"Wall-based vendor\",\n \"Workshop/seating area\",\n] as const;\n\nexport const stallTypeOptions: StallType[] = stallTypes.map((type) => ({\n label: type,\n price: 0,\n stallCapacity: 0,\n}));\n\nexport const refundPolicyOptions: RefundPolicy[] = [\n {\n category: \"Cancelled by Vendor\",\n label: \"Full refund if cancelled 30+ days before the event.\",\n value: false,\n },\n {\n category: \"Cancelled by Vendor\",\n label: \"50% refund if cancelled 14–29 days before the event.\",\n value: false,\n },\n {\n category: \"Cancelled by Vendor\",\n label: \"No refund if cancelled less than 14 days before the event.\",\n value: false,\n },\n {\n category: \"Cancelled by Vendor\",\n label: \"Full refund if cancelled due to illness or emergency.\",\n value: false,\n },\n {\n category: \"Cancelled by Vendor\",\n label: \"No refund for no-shows or last-minute cancellations.\",\n value: false,\n },\n {\n category: \"Cancelled by Vendor\",\n label: \"No refund\",\n value: false,\n },\n {\n category: \"Cancelled by Organiser\",\n label: \"Full refund if the event is cancelled by the organiser.\",\n value: false,\n },\n {\n category: \"Cancelled by Organiser\",\n label: \"Credit towards a future event if cancelled by the organiser.\",\n value: false,\n },\n {\n category: \"Cancelled by Organiser\",\n label:\n \"Refund only in cases of force majeure (e.g., natural disasters, government restrictions).\",\n value: false,\n },\n {\n category: \"Cancelled by Organiser\",\n label: \"No refund\",\n value: false,\n },\n];\n","import { FormField } from \"src/types/global\";\n\nexport const emailField: FormField = {\n helperText: \"Enter email address\",\n keyboardType: \"email-address\",\n name: \"email\",\n placeholder: \"Email\",\n};\n\nexport const companyContactFields: FormField[] = [\n {\n ...emailField,\n name: \"contactDetails.email\",\n },\n {\n helperText: \"Enter your mobile phone number\",\n keyboardType: \"phone-pad\",\n name: \"contactDetails.mobilePhone\",\n placeholder: \"Mobile Phone Number\",\n },\n {\n helperText: \"Enter your landline phone number\",\n keyboardType: \"phone-pad\",\n name: \"contactDetails.landlinePhone\",\n placeholder: \"Landline Phone Number\",\n },\n];\n","import { FormField } from \"../types/global\";\n\nimport { emailField } from \"./global\";\n\nexport const loginFields: FormField[] = [\n {\n ...emailField,\n required: true,\n },\n {\n helperText: \"Enter password\",\n keyboardType: \"default\",\n name: \"password\",\n placeholder: \"Password\",\n required: true,\n secureTextEntry: true,\n },\n];\n\nexport const registerFields: FormField[] = [\n {\n helperText: \"Enter first name\",\n keyboardType: \"default\",\n name: \"firstName\",\n placeholder: \"First Name\",\n required: true,\n },\n {\n helperText: \"Enter last name\",\n keyboardType: \"default\",\n name: \"lastName\",\n placeholder: \"Last Name\",\n required: true,\n },\n {\n ...emailField,\n required: true,\n },\n {\n helperText: \"Enter password\",\n keyboardType: \"default\",\n name: \"password\",\n placeholder: \"Password\",\n required: true,\n secureTextEntry: true,\n },\n {\n helperText: \"Promotional code (optional)\",\n keyboardType: \"default\",\n name: \"promoCode\",\n placeholder: \"Promotional Code\",\n required: false,\n },\n];\n\nexport const requestPasswordResetFields: FormField[] = [\n {\n ...emailField,\n helperText: \"Enter email address to reset your password\",\n required: true,\n },\n];\n\nexport const resetPasswordFields: FormField[] = [\n {\n helperText: \"Enter your new password\",\n keyboardType: \"default\",\n name: \"password\",\n placeholder: \"Password\",\n required: true,\n secureTextEntry: true,\n },\n {\n helperText: \"Confirm your new password\",\n keyboardType: \"default\",\n name: \"confirmPassword\",\n placeholder: \"Confirm Password\",\n required: true,\n secureTextEntry: true,\n },\n];\n\nexport const validateVerificationTokenFields: FormField[] = [\n {\n ...emailField,\n disabled: true,\n helperText: \"Your email address\",\n },\n {\n helperText: \"Enter the Verification code sent to you by email\",\n keyboardType: \"number-pad\",\n name: \"verificationToken\",\n placeholder: \"Verification code\",\n required: true,\n },\n];\n","import { FormField } from \"../types/global\";\n\nimport { emailField } from \"./global\";\n\nexport const profileFields: FormField[] = [\n {\n ...emailField,\n disabled: true,\n helperText: \"Email cannot be changed\",\n },\n {\n helperText: \"Enter first name\",\n keyboardType: \"default\",\n name: \"firstName\",\n placeholder: \"First Name\",\n },\n {\n helperText: \"Enter last name\",\n keyboardType: \"default\",\n name: \"lastName\",\n placeholder: \"Last Name\",\n },\n {\n helperText: \"Enter your new password\",\n keyboardType: \"default\",\n name: \"password\",\n placeholder: \"Password\",\n secureTextEntry: true,\n },\n {\n helperText: \"Confirm your new password\",\n keyboardType: \"default\",\n name: \"confirmPassword\",\n placeholder: \"Confirm Password\",\n secureTextEntry: true,\n },\n];\n","import { FormField } from \"../types/global\";\n\nconst socialMedia = [\n {\n key: \"facebook\",\n name: \"Facebook\",\n placeholder: \"https://www.facebook.com/your-page\",\n },\n {\n key: \"instagram\",\n name: \"Instagram\",\n placeholder: \"https://www.instagram.com/your-profile\",\n },\n {\n key: \"tiktok\",\n name: \"TikTok\",\n placeholder: \"https://www.tiktok.com/@your-profile\",\n },\n {\n key: \"twitter\",\n name: \"Twitter\",\n placeholder: \"https://twitter.com/your-profile\",\n },\n {\n key: \"website\",\n name: \"Website\",\n placeholder: \"https://www.yourwebsite.com\",\n },\n {\n key: \"youtube\",\n name: \"YouTube\",\n placeholder: \"https://www.youtube.com/channel/your-channel\",\n },\n];\nexport const socialMediaFields: FormField[] = socialMedia.map((link) => ({\n helperText: link.name,\n keyboardType: \"url\",\n name: link.key,\n placeholder: link.placeholder,\n}));\n","import { FormField } from \"src/types\";\n\nimport { emailField } from \"./global\";\n\nexport const contactUsFields: FormField[] = [\n {\n helperText: \"Enter first name *\",\n keyboardType: \"default\",\n name: \"firstName\",\n placeholder: \"First Name\",\n },\n {\n helperText: \"Enter last name *\",\n keyboardType: \"default\",\n name: \"lastName\",\n placeholder: \"Last Name\",\n },\n {\n ...emailField,\n helperText: \"Enter email address *\",\n },\n {\n helperText: \"Enter your message *\",\n isTextArea: true,\n keyboardType: \"default\",\n name: \"message\",\n placeholder: \"Message\",\n },\n];\n","import { gql } from \"@apollo/client\";\n\nimport {\n CONTACT_DETAILS_FIELDS_FRAGMENT,\n DATETIME_FIELDS_FRAGMENT,\n OWNER_FIELDS_FRAGMENT,\n ASSOCIATES_FIELDS_FRAGMENT,\n POSTER_USAGE_FIELDS_FRAGMENT,\n RELATION_DATES_FRAGMENT,\n RESOURCE_IMAGE_FIELDS_FRAGMENT,\n SOCIAL_MEDIA_FIELDS_FRAGMENT,\n STALL_TYPE_FIELDS_FRAGMENT,\n TERMS_AGREEMENT_FIELDS_FRAGMENT,\n LOCATION_FIELDS_FRAGMENT,\n EVENT_LIST_ITEM,\n RELATED_POST_FIELDS_FRAGMENT,\n SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT,\n} from \"./global\";\n\nexport const EVENT_INFO = gql`\n fragment EventInfoFields on EventInfoType {\n _id\n applicationDeadlineHours\n dateTime {\n dateStatus\n endDate\n endTime\n stallTypes {\n ...StallTypeFields\n }\n startDate\n startTime\n }\n eventId\n packInTime\n paymentDueHours\n paymentInfo {\n accountHolderName\n accountNumber\n link\n paymentMethod\n }\n refundPolicy {\n category\n label\n value\n }\n requirements {\n category\n label\n value\n }\n }\n ${STALL_TYPE_FIELDS_FRAGMENT}\n`;\n\nexport const EVENT = gql`\n fragment EventFields on EventType {\n _id\n active\n associates {\n ...AssociatesFields\n }\n adIds\n cover {\n ...ResourceImageFields\n }\n claimed\n createdAt\n contactDetails {\n ...ContactDetailsFields\n }\n dateTime {\n ...DateTimeFields\n }\n description\n deletedAt\n googlePlaceId\n images {\n ...ResourceImageFields\n }\n eventType\n location {\n ...LocationFields\n }\n logo {\n ...ResourceImageFields\n }\n eventInfoId\n name\n nzbn\n owner {\n ...OwnerFields\n }\n promoCodes\n provider\n posterUsage {\n ...PosterUsageFields\n }\n region\n relations {\n relationId\n relationDates {\n ...RelationDates\n }\n }\n rating\n reviewCount\n rainOrShine\n relatedPost {\n ...RelatedPostFields\n }\n socialMedia {\n ...SocialMediaFields\n }\n sharePublic {\n ...SocialShareResourceFields\n }\n shareRelation {\n ...SocialShareResourceFields\n }\n slug\n tags\n termsAgreement {\n ...TermsAgreementFields\n }\n updatedAt\n }\n ${DATETIME_FIELDS_FRAGMENT}\n ${LOCATION_FIELDS_FRAGMENT}\n ${OWNER_FIELDS_FRAGMENT}\n ${RESOURCE_IMAGE_FIELDS_FRAGMENT}\n ${SOCIAL_MEDIA_FIELDS_FRAGMENT}\n ${POSTER_USAGE_FIELDS_FRAGMENT}\n ${ASSOCIATES_FIELDS_FRAGMENT}\n ${CONTACT_DETAILS_FIELDS_FRAGMENT}\n ${TERMS_AGREEMENT_FIELDS_FRAGMENT}\n ${RELATION_DATES_FRAGMENT}\n ${RELATED_POST_FIELDS_FRAGMENT}\n ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}\n`;\n\nexport const GET_EVENTS = gql`\n query getEvents($dateStatus: EventDateStatusEnumType) {\n events(dateStatus: $dateStatus) {\n ...EventListItemFields\n }\n }\n ${EVENT_LIST_ITEM}\n`;\n\nexport const GET_EVENT = gql`\n query getEvent($_id: ID!) {\n event(_id: $_id) {\n ...EventFields\n }\n }\n ${EVENT}\n`;\n\nexport const GET_EVENT_BY_PLACE_ID = gql`\n query getEventByPlaceId($googlePlaceId: String!) {\n eventByPlaceId(googlePlaceId: $googlePlaceId) {\n ...EventListItemFields\n }\n }\n ${EVENT_LIST_ITEM}\n`;\n\nexport const GET_EVENTS_BY_REGION = gql`\n query getEventsByRegion(\n $region: String!\n $options: ResourcesByRegionOptions\n $dateStatus: EventDateStatusEnumType\n ) {\n eventsByRegion(\n region: $region\n options: $options\n dateStatus: $dateStatus\n ) {\n ...EventListItemFields\n }\n }\n ${EVENT_LIST_ITEM}\n`;\n\nexport const SEARCH_EVENTS = gql`\n query searchEvents(\n $region: String!\n $search: String\n $tags: [String]\n $dateStatus: EventDateStatusEnumType\n ) {\n eventsSearch(\n region: $region\n search: $search\n tags: $tags\n dateStatus: $dateStatus\n ) {\n ...EventListItemFields\n }\n }\n ${EVENT_LIST_ITEM}\n`;\n\nexport const GET_EVENTS_NEAR_ME = gql`\n query getEventsNearMe(\n $latitude: Float!\n $longitude: Float!\n $radius: Int\n $dateStatus: EventDateStatusEnumType\n ) {\n eventsNearMe(\n latitude: $latitude\n longitude: $longitude\n radius: $radius\n dateStatus: $dateStatus\n ) {\n ...EventListItemFields\n }\n }\n ${EVENT_LIST_ITEM}\n`;\n\nexport const GET_EVENT_INFO = gql`\n query getEventInfo($eventId: ID!) {\n eventInfo(eventId: $eventId) {\n ...EventInfoFields\n }\n }\n ${EVENT_INFO}\n`;\n","import { gql } from \"@apollo/client\";\n\nexport const POSTER_USAGE_FIELDS_FRAGMENT = gql`\n fragment PosterUsageFields on PosterUsageType {\n month\n count\n }\n`;\n\nexport const SOCIAL_MEDIA_FIELDS_FRAGMENT = gql`\n fragment SocialMediaFields on SocialMediaType {\n name\n link\n }\n`;\n\nexport const RESOURCE_IMAGE_FIELDS_FRAGMENT = gql`\n fragment ResourceImageFields on ResourceImageType {\n active\n source\n title\n }\n`;\n\nexport const OWNER_FIELDS_FRAGMENT = gql`\n fragment OwnerFields on OwnerType {\n email\n userId\n }\n`;\n\nexport const CATEGORY_FIELDS_FRAGMENT = gql`\n fragment CategoryFields on CategoryType {\n id\n name\n subcategories {\n id\n items {\n id\n name\n }\n name\n }\n }\n`;\n\nexport const LICENCE_FIELDS_FRAGMENT = gql`\n fragment LicenceFields on UserLicenceType {\n expiryDate\n issuedDate\n licenceType\n prevLicenceType\n }\n`;\n\nexport const ASSOCIATES_FIELDS_FRAGMENT = gql`\n fragment AssociatesFields on AssociateType {\n email\n resourceId\n resourceType\n licence {\n ...LicenceFields\n }\n }\n ${LICENCE_FIELDS_FRAGMENT}\n`;\n\nexport const TERMS_AGREEMENT_FIELDS_FRAGMENT = gql`\n fragment TermsAgreementFields on TermsAgreementType {\n appBuildNumber\n appId\n appVersion\n brand\n deviceName\n installationId\n manufacturer\n modelName\n osName\n osVersion\n termVersion\n timestamp\n }\n`;\n\nexport const DATETIME_FIELDS_FRAGMENT = gql`\n fragment DateTimeFields on DateTimeType {\n dateStatus\n endDate\n endTime\n startDate\n startTime\n }\n`;\n\nexport const LOCATION_GEO_FIELDS_FRAGMENT = gql`\n fragment LocationGeoFields on LocationGeoType {\n coordinates\n type\n }\n`;\n\nexport const LOCATION_FIELDS_FRAGMENT = gql`\n fragment LocationFields on LocationType {\n city\n country\n fullAddress\n geo {\n ...LocationGeoFields\n }\n latitude\n longitude\n region\n }\n ${LOCATION_GEO_FIELDS_FRAGMENT}\n`;\n\nconst USER_ACTIVITY_FIELDS_FRAGMENT = gql`\n fragment UserActivityFields on UserActivityType {\n favourites {\n events\n partners\n vendors\n }\n going {\n events {\n resourceId\n dateTime {\n ...DateTimeFields\n }\n }\n }\n interested {\n events {\n resourceId\n dateTime {\n ...DateTimeFields\n }\n }\n }\n present {\n events {\n resourceId\n dateTime {\n ...DateTimeFields\n }\n }\n }\n }\n ${DATETIME_FIELDS_FRAGMENT}\n`;\n\nexport const REDEEMED_REWARD_FIELDS_FRAGMENT = gql`\n fragment RedeemedRewardFields on RedeemedRewardType {\n name\n pointsUsed\n redeemedAt\n }\n`;\n\nexport const USER_FIELDS_FRAGMENT = gql`\n fragment UserFields on UserType {\n _id\n active\n associates {\n ...AssociatesFields\n }\n affiliate\n avatar {\n ...ResourceImageFields\n }\n createdAt\n deletedAt\n email\n events\n firstName\n game\n isTester\n lastName\n licences {\n ...LicenceFields\n }\n location {\n ...LocationFields\n }\n partner\n overallPoints\n platform\n preferredRegion\n promoCodes\n role\n redeemedRewards {\n ...RedeemedRewardFields\n }\n school\n termsAgreement {\n ...TermsAgreementFields\n }\n userActivity {\n ...UserActivityFields\n }\n vendor\n updatedAt\n }\n ${RESOURCE_IMAGE_FIELDS_FRAGMENT}\n ${ASSOCIATES_FIELDS_FRAGMENT}\n ${TERMS_AGREEMENT_FIELDS_FRAGMENT}\n ${USER_ACTIVITY_FIELDS_FRAGMENT}\n ${LICENCE_FIELDS_FRAGMENT}\n ${LOCATION_FIELDS_FRAGMENT}\n ${REDEEMED_REWARD_FIELDS_FRAGMENT}\n`;\n\nexport const STALL_TYPE_FIELDS_FRAGMENT = gql`\n fragment StallTypeFields on StallTypeType {\n label\n price\n stallCapacity\n }\n`;\n\nexport const RELATION_DATES_FRAGMENT = gql`\n fragment RelationDates on RelationDateType {\n dateTime {\n dateStatus\n endDate\n endTime\n startDate\n startTime\n stallType {\n ...StallTypeFields\n }\n }\n lastUpdateBy {\n resourceId\n userEmail\n }\n paymentReference\n status\n }\n ${STALL_TYPE_FIELDS_FRAGMENT}\n`;\n\nexport const CONTACT_DETAILS_FIELDS_FRAGMENT = gql`\n fragment ContactDetailsFields on ContactDetailsType {\n email\n landlinePhone\n mobilePhone\n }\n`;\n\nexport const EVENT_LIST_ITEM = gql`\n fragment EventListItemFields on EventListItemType {\n _id\n active\n claimed\n cover {\n ...ResourceImageFields\n }\n createdAt\n dateTime {\n ...DateTimeFields\n }\n deletedAt\n description\n eventType\n googlePlaceId\n images {\n ...ResourceImageFields\n }\n location {\n ...LocationFields\n }\n logo {\n ...ResourceImageFields\n }\n name\n rainOrShine\n rating\n region\n relations {\n relationId\n relationDates {\n ...RelationDates\n }\n }\n reviewCount\n slug\n updatedAt\n }\n ${DATETIME_FIELDS_FRAGMENT}\n ${LOCATION_FIELDS_FRAGMENT}\n ${RESOURCE_IMAGE_FIELDS_FRAGMENT}\n ${RELATION_DATES_FRAGMENT}\n`;\n\nexport const RELATED_POST_FIELDS_FRAGMENT = gql`\n fragment RelatedPostFields on RelatedPostType {\n postId\n postSlug\n postType\n }\n`;\n\nexport const SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT = gql`\n fragment SocialShareResourceFields on SocialShareResourceType {\n qrCode {\n ...ResourceImageFields\n }\n socialImage {\n ...ResourceImageFields\n }\n }\n ${RESOURCE_IMAGE_FIELDS_FRAGMENT}\n`;\n","import { gql } from \"@apollo/client\";\n\nimport {\n OWNER_FIELDS_FRAGMENT,\n CATEGORY_FIELDS_FRAGMENT,\n RESOURCE_IMAGE_FIELDS_FRAGMENT,\n SOCIAL_MEDIA_FIELDS_FRAGMENT,\n POSTER_USAGE_FIELDS_FRAGMENT,\n CONTACT_DETAILS_FIELDS_FRAGMENT,\n TERMS_AGREEMENT_FIELDS_FRAGMENT,\n RELATION_DATES_FRAGMENT,\n ASSOCIATES_FIELDS_FRAGMENT,\n DATETIME_FIELDS_FRAGMENT,\n LOCATION_FIELDS_FRAGMENT,\n RELATED_POST_FIELDS_FRAGMENT,\n SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT,\n} from \"./global\";\n\nconst VENDOR_DATETIME_FIELDS_FRAGMENT = gql`\n fragment VendorDateTimeFields on VendorDateTimeType {\n dateStatus\n endDate\n endTime\n startDate\n startTime\n }\n`;\n\nconst VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT = gql`\n fragment VendorProductListFields on VendorProductListType {\n description\n name\n price\n priceUnit\n productGroups\n }\n`;\n\nexport const VENDOR = gql`\n fragment VendorFields on VendorType {\n _id\n active\n associates {\n ...AssociatesFields\n }\n adIds\n availability {\n corporate\n private\n school\n }\n vendorInfoId\n categories {\n ...CategoryFields\n }\n calendar {\n active\n calendarData {\n dateTime {\n ...VendorDateTimeFields\n }\n description\n location {\n ...LocationFields\n }\n }\n }\n contactDetails {\n ...ContactDetailsFields\n }\n cover {\n ...ResourceImageFields\n }\n createdAt\n claimed\n description\n deletedAt\n foodTruck\n images {\n ...ResourceImageFields\n }\n logo {\n ...ResourceImageFields\n }\n name\n owner {\n ...OwnerFields\n }\n products {\n active\n productsList {\n ...VendorProductListFields\n }\n }\n promoCodes\n posterUsage {\n ...PosterUsageFields\n }\n rating\n region\n reviewCount\n relatedPost {\n ...RelatedPostFields\n }\n relations {\n relationId\n relationDates {\n ...RelationDates\n }\n }\n slug\n socialMedia {\n ...SocialMediaFields\n }\n sharePublic {\n ...SocialShareResourceFields\n }\n shareRelation {\n ...SocialShareResourceFields\n }\n termsAgreement {\n ...TermsAgreementFields\n }\n updatedAt\n vendorType\n unregisteredVendorId\n }\n ${CATEGORY_FIELDS_FRAGMENT}\n ${VENDOR_DATETIME_FIELDS_FRAGMENT}\n ${LOCATION_FIELDS_FRAGMENT}\n ${OWNER_FIELDS_FRAGMENT}\n ${RESOURCE_IMAGE_FIELDS_FRAGMENT}\n ${SOCIAL_MEDIA_FIELDS_FRAGMENT}\n ${POSTER_USAGE_FIELDS_FRAGMENT}\n ${ASSOCIATES_FIELDS_FRAGMENT}\n ${VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT}\n ${CONTACT_DETAILS_FIELDS_FRAGMENT}\n ${TERMS_AGREEMENT_FIELDS_FRAGMENT}\n ${RELATION_DATES_FRAGMENT}\n ${RELATED_POST_FIELDS_FRAGMENT}\n ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}\n`;\n\nconst VENDOR_ATTRIBUTES_FRAGMENT = gql`\n fragment VendorAttributesFields on VendorAttributesType {\n details\n isRequired\n }\n`;\n\nexport const VENDOR_INFO = gql`\n fragment VendorInfoFields on VendorInfoType {\n _id\n compliance {\n foodBeverageLicense\n liabilityInsurance\n }\n documents {\n ...ResourceImageFields\n }\n requirements {\n electricity {\n ...VendorAttributesFields\n }\n gazebo {\n ...VendorAttributesFields\n }\n table {\n ...VendorAttributesFields\n }\n }\n product {\n foodFlavors\n packaging\n priceRange {\n max\n min\n }\n producedIn\n }\n stallInfo {\n size {\n depth\n width\n }\n }\n vendorId\n }\n ${VENDOR_ATTRIBUTES_FRAGMENT}\n ${RESOURCE_IMAGE_FIELDS_FRAGMENT}\n`;\n\nconst UNREGISTERED_VENDOR_INVITATION_FRAGMENT = gql`\n fragment UnregisteredVendorInvitationFields on UnregisteredVendorInvitationType {\n dateTime {\n ...DateTimeFields\n }\n inviterId\n }\n ${DATETIME_FIELDS_FRAGMENT}\n`;\n\nexport const UNREGISTERED_VENDOR = gql`\n fragment UnregisteredVendorFields on UnregisteredVendorType {\n _id\n active\n categoryIds\n claimed\n createdAt\n deletedAt\n email\n invitations {\n ...UnregisteredVendorInvitationFields\n }\n name\n region\n updatedAt\n }\n ${UNREGISTERED_VENDOR_INVITATION_FRAGMENT}\n`;\n\nexport const GET_VENDORS = gql`\n query getVendors {\n vendors {\n ...VendorFields\n }\n }\n ${VENDOR}\n`;\n\nexport const GET_VENDOR = gql`\n query getVendor($_id: ID!) {\n vendor(_id: $_id) {\n ...VendorFields\n }\n }\n ${VENDOR}\n`;\n\nexport const GET_VENDORS_BY_REGION = gql`\n query getVendorsByRegion(\n $region: String!\n $options: ResourcesByRegionOptions\n ) {\n vendorsByRegion(region: $region, options: $options) {\n ...VendorFields\n }\n }\n ${VENDOR}\n`;\n\nexport const SEARCH_VENDORS = gql`\n query searchVendors($search: String!, $region: String!) {\n vendorSearch(search: $search, region: $region) {\n ...VendorFields\n }\n }\n ${VENDOR}\n`;\n\nexport const GET_VENDOR_INFO = gql`\n query getVendorInfo($vendorId: ID!) {\n vendorInfo(vendorId: $vendorId) {\n ...VendorInfoFields\n }\n }\n ${VENDOR_INFO}\n`;\n\nexport const GET_UNREGISTERED_VENDORS = gql`\n query getUnregisteredVendors {\n unregisteredVendors {\n ...UnregisteredVendorFields\n }\n }\n ${UNREGISTERED_VENDOR}\n`;\n\nexport const GET_UNREGISTERED_VENDORS_BY_INVITER_ID = gql`\n query getUnregisteredVendorsByInviterId($inviterId: ID!) {\n unregisteredVendorsByInviterId(inviterId: $inviterId) {\n ...UnregisteredVendorFields\n }\n }\n ${UNREGISTERED_VENDOR}\n`;\n\nexport const GET_UNREGISTERED_VENDOR = gql`\n query getUnregisteredVendor($_id: ID!) {\n unregisteredVendor(_id: $_id) {\n ...UnregisteredVendorFields\n }\n }\n ${UNREGISTERED_VENDOR}\n`;\n","import { gql } from \"@apollo/client\";\n\nimport {\n ASSOCIATES_FIELDS_FRAGMENT,\n CONTACT_DETAILS_FIELDS_FRAGMENT,\n LOCATION_FIELDS_FRAGMENT,\n OWNER_FIELDS_FRAGMENT,\n POSTER_USAGE_FIELDS_FRAGMENT,\n RELATED_POST_FIELDS_FRAGMENT,\n RESOURCE_IMAGE_FIELDS_FRAGMENT,\n SOCIAL_MEDIA_FIELDS_FRAGMENT,\n SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT,\n TERMS_AGREEMENT_FIELDS_FRAGMENT,\n} from \"./global\";\n\nexport const PARTNER = gql`\n fragment PartnerFields on PartnerType {\n _id\n active\n associates {\n ...AssociatesFields\n }\n adIds\n cover {\n ...ResourceImageFields\n }\n createdAt\n contactDetails {\n ...ContactDetailsFields\n }\n description\n deletedAt\n images {\n ...ResourceImageFields\n }\n location {\n ...LocationFields\n }\n logo {\n ...ResourceImageFields\n }\n name\n nzbn\n owner {\n ...OwnerFields\n }\n partnerType\n posterUsage {\n ...PosterUsageFields\n }\n rating\n region\n reviewCount\n relatedPost {\n ...RelatedPostFields\n }\n socialMedia {\n ...SocialMediaFields\n }\n slug\n sharePublic {\n ...SocialShareResourceFields\n }\n termsAgreement {\n ...TermsAgreementFields\n }\n updatedAt\n }\n ${TERMS_AGREEMENT_FIELDS_FRAGMENT}\n ${LOCATION_FIELDS_FRAGMENT}\n ${OWNER_FIELDS_FRAGMENT}\n ${ASSOCIATES_FIELDS_FRAGMENT}\n ${RESOURCE_IMAGE_FIELDS_FRAGMENT}\n ${POSTER_USAGE_FIELDS_FRAGMENT}\n ${SOCIAL_MEDIA_FIELDS_FRAGMENT}\n ${CONTACT_DETAILS_FIELDS_FRAGMENT}\n ${RELATED_POST_FIELDS_FRAGMENT}\n ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}\n`;\n\nexport const GET_PARTNERS = gql`\n query getPartners {\n partners {\n ...PartnerFields\n }\n }\n ${PARTNER}\n`;\n\nexport const GET_PARTNER = gql`\n query getPartner($_id: ID!) {\n partner(_id: $_id) {\n ...PartnerFields\n }\n }\n ${PARTNER}\n`;\n\nexport const GET_PARTNERS_BY_REGION = gql`\n query getPartnersByRegion(\n $region: String!\n $options: ResourcesByRegionOptions\n ) {\n partnersByRegion(region: $region, options: $options) {\n ...PartnerFields\n }\n }\n ${PARTNER}\n`;\n\nexport const SEARCH_PARTNERS = gql`\n query searchPartners($search: String!, $region: String!) {\n partnersSearch(search: $search, region: $region) {\n ...PartnerFields\n }\n }\n ${PARTNER}\n`;\n","import { gql } from \"@apollo/client\";\n\nimport { DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT } from \"./game/dailyClue\";\nimport { PUZZLE_BASE_GAME_FIELDS_FRAGMENT } from \"./game/puzzleGame\";\nimport {\n RESOURCE_IMAGE_FIELDS_FRAGMENT,\n SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT,\n} from \"./global\";\n\nconst BASE_GAME_FIELDS_FRAGMENT = gql`\n fragment BaseGameFields on BaseGameType {\n gameTypeId\n gameTitle\n gameType\n dailyClue {\n ...DailyClueBaseGameFields\n }\n miniQuiz {\n ...PuzzleBaseGameFields\n }\n oddOneOut {\n ...PuzzleBaseGameFields\n }\n }\n ${DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT}\n ${PUZZLE_BASE_GAME_FIELDS_FRAGMENT}\n`;\n\nconst POST_CONTENT_DATA_FIELDS_FRAGMENT = gql`\n fragment PostContentDataFields on PostContentData {\n game {\n ...BaseGameFields\n }\n textarea {\n title\n data\n }\n images {\n ...ResourceImageFields\n }\n video {\n source\n title\n }\n list {\n title\n items {\n text\n }\n }\n }\n ${RESOURCE_IMAGE_FIELDS_FRAGMENT}\n ${BASE_GAME_FIELDS_FRAGMENT}\n`;\n\nconst POST_CONTENT_FIELDS_FRAGMENT = gql`\n fragment PostContentFields on PostContentType {\n contentData {\n ...PostContentDataFields\n }\n contentOrder\n contentType\n }\n ${POST_CONTENT_DATA_FIELDS_FRAGMENT}\n`;\n\nconst POST_RESOURCE_FIELDS_FRAGMENT = gql`\n fragment PostResourceFields on PostResourceType {\n resourceId\n resourceSlug\n resourceRegion\n resourceType\n }\n`;\n\nexport const POST_FIELDS_FRAGMENT = gql`\n fragment PostFields on PostType {\n _id\n active\n caption\n content {\n ...PostContentFields\n }\n cover {\n ...ResourceImageFields\n }\n createdAt\n deletedAt\n postType\n resource {\n ...PostResourceFields\n }\n tags\n title\n slug\n sharePublic {\n ...SocialShareResourceFields\n }\n updatedAt\n }\n ${POST_CONTENT_FIELDS_FRAGMENT}\n ${RESOURCE_IMAGE_FIELDS_FRAGMENT}\n ${POST_RESOURCE_FIELDS_FRAGMENT}\n ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}\n`;\n\nexport const GET_POSTS = gql`\n query getPosts {\n posts {\n ...PostFields\n }\n }\n ${POST_FIELDS_FRAGMENT}\n`;\n\nexport const GET_POST = gql`\n query getPost($_id: ID!) {\n post(_id: $_id) {\n ...PostFields\n }\n }\n ${POST_FIELDS_FRAGMENT}\n`;\n\nexport const GET_POSTS_BY_TYPE = gql`\n query getPostsByType($postType: PostTypeEnum!) {\n postsByType(postType: $postType) {\n ...PostFields\n }\n }\n ${POST_FIELDS_FRAGMENT}\n`;\n","import { gql } from \"@apollo/client\";\n\nexport const GAME_DATE_FIELDS_FRAGMENT = gql`\n fragment GameDateFields on GameDateType {\n startDate\n endDate\n }\n`;\n\nexport const DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT = gql`\n fragment DailyClueBaseGameFields on DailyClueBaseGameType {\n gameDate {\n ...GameDateFields\n }\n gameSolution\n }\n ${GAME_DATE_FIELDS_FRAGMENT}\n`;\n\nexport const DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = gql`\n fragment DailyClueGameDataFields on DailyClueGameDataType {\n gameFields {\n ...DailyClueBaseGameFields\n }\n lastFoundDate\n points\n letterInfo {\n collected\n solutionShuffled\n todaysClue\n todaysLetter\n todaysPlacement\n }\n streak\n }\n ${DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT}\n`;\n","import { gql } from \"@apollo/client\";\n\nconst PUZZLE_ANSWER_FIELDS_FRAGMENT = gql`\n fragment PuzzleAnswerFields on PuzzleAnswerType {\n answer\n answerId\n correct\n }\n`;\n\nconst PUZZLE_QUESTION_FIELDS_FRAGMENT = gql`\n fragment PuzzleQuestionFields on PuzzleQuestionType {\n answers {\n ...PuzzleAnswerFields\n }\n question\n questionId\n }\n ${PUZZLE_ANSWER_FIELDS_FRAGMENT}\n`;\n\nconst PUZZLE_ANSWERED_QUESTION_FIELDS_FRAGMENT = gql`\n fragment PuzzleAnsweredQuestionFields on PuzzleAnsweredQuestionType {\n questionId\n selectedAnswerId\n }\n`;\n\nexport const PUZZLE_BASE_GAME_FIELDS_FRAGMENT = gql`\n fragment PuzzleBaseGameFields on PuzzleBaseGameType {\n questions {\n ...PuzzleQuestionFields\n }\n }\n ${PUZZLE_QUESTION_FIELDS_FRAGMENT}\n`;\n\nexport const PUZZLE_GAME_DATA_FIELDS_FRAGMENT = gql`\n fragment PuzzleGameDataFields on PuzzleGameDataType {\n gameFields {\n ...PuzzleBaseGameFields\n }\n answeredQuestions {\n ...PuzzleAnsweredQuestionFields\n }\n points\n streak\n }\n ${PUZZLE_BASE_GAME_FIELDS_FRAGMENT}\n ${PUZZLE_ANSWERED_QUESTION_FIELDS_FRAGMENT}\n`;\n","import { gql } from \"@apollo/client\";\n\nexport const GET_EVENT_BY_SLUG = gql`\n query getEventBySlug($slug: String!) {\n eventBySlug(slug: $slug) {\n _id\n }\n }\n`;\n\nexport const GET_VENDOR_BY_SLUG = gql`\n query getVendorBySlug($slug: String!) {\n vendorBySlug(slug: $slug) {\n _id\n }\n }\n`;\n\nexport const GET_PARTNER_BY_SLUG = gql`\n query getPartnerBySlug($slug: String!) {\n partnerBySlug(slug: $slug) {\n _id\n }\n }\n`;\n\nexport const GET_POST_BY_SLUG = gql`\n query getPostBySlug($slug: String!, $postType: PostTypeEnum!) {\n postBySlug(slug: $slug, postType: $postType) {\n _id\n }\n }\n`;\n","import { gql } from \"@apollo/client\";\n\nimport { EVENT_LIST_ITEM, RELATION_DATES_FRAGMENT } from \"./global\";\nimport { VENDOR } from \"./vendor\";\n\nexport const RELATION_FIELDS_FRAGMENT = gql`\n fragment RelationFields on RelationType {\n _id\n active\n chatId\n createdAt\n lastUpdateBy\n eventId\n relationDates {\n ...RelationDates\n }\n relationType\n vendorId\n updatedAt\n }\n ${RELATION_DATES_FRAGMENT}\n`;\n\nexport const GET_RELATION = gql`\n query getRelation($_id: ID!) {\n relation(_id: $_id) {\n ...RelationFields\n }\n }\n ${RELATION_FIELDS_FRAGMENT}\n`;\n\nexport const GET_RELATION_BY_EVENT_AND_VENDOR = gql`\n query getRelationByEventAndVendor($eventId: ID!, $vendorId: ID!) {\n relationByEventAndVendor(eventId: $eventId, vendorId: $vendorId) {\n ...RelationFields\n }\n }\n ${RELATION_FIELDS_FRAGMENT}\n`;\n\nexport const GET_EVENT_RELATIONS = gql`\n query getEventRelations($eventId: ID!) {\n eventRelations(eventId: $eventId) {\n ...RelationFields\n }\n }\n ${RELATION_FIELDS_FRAGMENT}\n`;\n\nexport const GET_VENDOR_RELATIONS = gql`\n query getVendorRelations($vendorId: ID!) {\n vendorRelations(vendorId: $vendorId) {\n ...RelationFields\n }\n }\n ${RELATION_FIELDS_FRAGMENT}\n`;\n\nexport const GET_RESOURCE_CONNECTIONS = gql`\n query getResourceConnections(\n $resourceId: ID!\n $resourceType: ResourceTypeEnum!\n ) {\n resourceConnections(resourceId: $resourceId, resourceType: $resourceType) {\n events {\n ...EventListItemFields\n }\n vendors {\n ...VendorFields\n }\n }\n }\n ${VENDOR}\n ${EVENT_LIST_ITEM}\n`;\n","import { useMutation } from \"@apollo/client\";\n\nimport { EnumResourceType } from \"src/enums\";\nimport {\n ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION,\n ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION,\n ADMIN_UPDATE_RESOURCE_TYPE_MUTATION,\n} from \"src/graphql/mutations/admin\";\nimport { GET_EVENT } from \"src/graphql/queries/event\";\nimport { GET_VENDOR } from \"src/graphql/queries/vendor\";\n\nexport const useAdminUpdateResourceType = () => {\n const [adminUpdateResourceType, { loading, error }] = useMutation<{\n adminUpdateResourceType: {\n resourceId: string;\n resourceType: EnumResourceType;\n };\n }>(ADMIN_UPDATE_RESOURCE_TYPE_MUTATION, {\n awaitRefetchQueries: true,\n refetchQueries: (mutationResult) => {\n // Extract resourceId and resourceType from the mutation response\n const adminUpdateResourceType =\n mutationResult?.data?.adminUpdateResourceType;\n const resourceId = adminUpdateResourceType?.resourceId;\n const resourceType = adminUpdateResourceType?.resourceType;\n\n if (!resourceId) return [];\n\n const detectQuery =\n resourceType === EnumResourceType.EVENT ? GET_EVENT : GET_VENDOR;\n\n return [\n {\n query: detectQuery,\n variables: { _id: resourceId },\n },\n ];\n },\n });\n\n return {\n adminUpdateResourceType,\n error,\n loading,\n };\n};\n\nexport const useAdminResendUserVerificationEmail = () => {\n const [adminResendUserVerificationEmail, { loading, error }] = useMutation(\n ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION,\n );\n\n return {\n adminResendUserVerificationEmail,\n error,\n loading,\n };\n};\n\nexport const useAdminPermanentlyDeleteResource = () => {\n const [adminPermanentlyDeleteResource, { loading, error }] = useMutation(\n ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION,\n );\n\n return {\n adminPermanentlyDeleteResource,\n error,\n loading,\n };\n};\n","import { gql } from \"@apollo/client\";\n\nexport const ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = gql`\n mutation adminUpdateResourceType($input: AdminUpdateResourceInputType!) {\n adminUpdateResourceType(input: $input) {\n active\n resourceId\n resourceType\n }\n }\n`;\n\nexport const ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION = gql`\n mutation adminResendUserVerificationEmail($userId: ID!) {\n adminResendUserVerificationEmail(userId: $userId)\n }\n`;\n\nexport const ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION = gql`\n mutation adminPermanentlyDeleteResource(\n $resourceId: ID!\n $resourceType: ResourceTypeEnum!\n ) {\n adminPermanentlyDeleteResource(\n resourceId: $resourceId\n resourceType: $resourceType\n )\n }\n`;\n","import { useMutation } from \"@apollo/client\";\n\nimport { AuthPayloadType, RefreshTokenPayloadType } from \"src/types/auth\";\n\nimport {\n REQUEST_PASSWORD_RESET_MUTATION,\n LOGIN_MUTATION,\n REGISTER_MUTATION,\n VALIDATE_VERIFICATION_TOKEN_MUTATION,\n RESET_PASSWORD_MUTATION,\n LOGOUT_MUTATION,\n REFRESH_TOKEN_MUTATION,\n} from \"../mutations/auth\";\n\nexport const useRegister = () => {\n const [register, { loading, error }] = useMutation<{\n register: AuthPayloadType;\n }>(REGISTER_MUTATION);\n return { error, loading, register };\n};\n\nexport const useLogin = () => {\n const [login, { loading, error }] = useMutation<{\n login: AuthPayloadType;\n }>(LOGIN_MUTATION);\n return { error, loading, login };\n};\n\nexport const useLogout = () => {\n const [logout, { loading, error }] = useMutation(LOGOUT_MUTATION);\n return { error, loading, logout };\n};\n\nexport const useRefreshToken = () => {\n const [refreshToken, { loading, error }] = useMutation<{\n refreshToken: RefreshTokenPayloadType;\n }>(REFRESH_TOKEN_MUTATION);\n return { error, loading, refreshToken };\n};\n\nexport const useRequestPasswordReset = () => {\n const [requestPasswordReset, { loading, error }] = useMutation(\n REQUEST_PASSWORD_RESET_MUTATION,\n );\n\n return { error, loading, requestPasswordReset };\n};\n\nexport const useValidateVerificationToken = () => {\n const [validateVerificationToken, { loading, error }] = useMutation(\n VALIDATE_VERIFICATION_TOKEN_MUTATION,\n );\n\n return { error, loading, validateVerificationToken };\n};\n\nexport const useResetPassword = () => {\n const [resetPassword, { loading, error }] = useMutation(\n RESET_PASSWORD_MUTATION,\n );\n\n return { error, loading, resetPassword };\n};\n","import { gql } from \"@apollo/client\";\n\nimport { USER_FIELDS_FRAGMENT } from \"../queries/global\";\n\nexport const REGISTER_MUTATION = gql`\n mutation register($input: RegisterInputType!) {\n register(input: $input) {\n message\n refreshToken\n token\n user {\n ...UserFields\n }\n }\n }\n ${USER_FIELDS_FRAGMENT}\n`;\n\nexport const LOGIN_MUTATION = gql`\n mutation login($input: LoginInputType!) {\n login(input: $input) {\n message\n refreshToken\n token\n user {\n ...UserFields\n }\n }\n }\n ${USER_FIELDS_FRAGMENT}\n`;\n\nexport const LOGOUT_MUTATION = gql`\n mutation logout {\n logout {\n message\n }\n }\n`;\n\nexport const REFRESH_TOKEN_MUTATION = gql`\n mutation refreshToken($input: RefreshTokenInputType!) {\n refreshToken(input: $input) {\n refreshToken\n token\n }\n }\n`;\n\nexport const RESET_PASSWORD_MUTATION = gql`\n mutation resetPassword($input: ResetPasswordInputType!) {\n resetPassword(input: $input) {\n message\n }\n }\n`;\n\nexport const REQUEST_PASSWORD_RESET_MUTATION = gql`\n mutation requestPasswordReset($input: RequestPasswordResetInputType!) {\n requestPasswordReset(input: $input) {\n message\n }\n }\n`;\n\nexport const VALIDATE_VERIFICATION_TOKEN_MUTATION = gql`\n mutation validateVerificationToken(\n $input: ValidateVerificationTokenInputType!\n ) {\n validateVerificationToken(input: $input) {\n message\n }\n }\n`;\n","import { PureQueryOptions, useMutation } from \"@apollo/client\";\n\nimport {\n ADD_PARTICIPANT_TO_CHAT_MUTATION,\n DELETE_CHAT_MUTATION,\n REMOVE_PARTICIPANT_FROM_CHAT_MUTATION,\n SEND_CHAT_MESSAGE_MUTATION,\n TOGGLE_CHAT_MESSAGE_LIKE_MUTATION,\n MARK_CHAT_MESSAGES_SEEN_MUTATION,\n REPORT_CHAT_USER_MUTATION,\n CREATE_PRIVATE_CHAT_MUTATION,\n} from \"../../mutations/chat\";\nimport { CHAT, GET_CHATS_BY_REGION, USER_CHATS } from \"../../queries/chat\";\n\nexport const useCreatePrivateChat = () => {\n const [createPrivateChat, { loading, error }] = useMutation<{\n createPrivateChat: {\n _id: string;\n };\n }>(CREATE_PRIVATE_CHAT_MUTATION, {\n awaitRefetchQueries: true,\n refetchQueries: [{ query: USER_CHATS }],\n });\n\n return { createPrivateChat, error, loading };\n};\n\nexport const useSendChatMessage = () => {\n const [sendChatMessage, { loading, error }] = useMutation<{\n sendChatMessage: {\n _id: string;\n };\n }>(SEND_CHAT_MESSAGE_MUTATION, {\n awaitRefetchQueries: true,\n refetchQueries: (mutationResult) => {\n // Extract chatId from the mutation response\n const chatId = mutationResult?.data?.sendChatMessage?._id;\n\n return [\n {\n query: CHAT,\n variables: { _id: chatId },\n },\n ];\n },\n });\n\n return { error, loading, sendChatMessage };\n};\n\nexport const useDeleteChat = () => {\n const [deleteChat, { loading, error }] = useMutation(DELETE_CHAT_MUTATION, {\n awaitRefetchQueries: true,\n refetchQueries: [{ query: USER_CHATS }],\n });\n\n return { deleteChat, error, loading };\n};\n\nexport const useAddParticipantToChat = () => {\n const [addParticipantToChat, { loading, error }] = useMutation<{\n addParticipantToChat: {\n _id: string;\n };\n }>(ADD_PARTICIPANT_TO_CHAT_MUTATION, {\n awaitRefetchQueries: true,\n refetchQueries: (mutationResult) => {\n // Extract chatId from the mutation response\n const chatId = mutationResult?.data?.addParticipantToChat?._id;\n\n return [\n {\n query: CHAT,\n variables: { _id: chatId },\n },\n {\n query: USER_CHATS,\n },\n ];\n },\n });\n\n return { addParticipantToChat, error, loading };\n};\n\nexport const useRemoveParticipantFromChat = () => {\n const [removeParticipantFromChat, { loading, error }] = useMutation<{\n removeParticipantFromChat: {\n success: boolean;\n region?: string | null;\n };\n }>(REMOVE_PARTICIPANT_FROM_CHAT_MUTATION, {\n awaitRefetchQueries: true,\n refetchQueries: (mutationResult): PureQueryOptions[] => {\n const region = mutationResult?.data?.removeParticipantFromChat?.region;\n\n const queries: PureQueryOptions[] = [{ query: USER_CHATS }];\n\n if (region && region.trim() !== \"\") {\n queries.push({\n query: GET_CHATS_BY_REGION,\n variables: { region },\n });\n }\n\n return queries;\n },\n });\n\n return { error, loading, removeParticipantFromChat };\n};\n\nexport const useToggleChatMessageLike = () => {\n const [toggleChatMessageLike, { loading, error }] = useMutation<{\n toggleChatMessageLike: {\n _id: string;\n };\n }>(TOGGLE_CHAT_MESSAGE_LIKE_MUTATION, {\n awaitRefetchQueries: true,\n refetchQueries: (mutationResult) => {\n const chatId = mutationResult?.data?.toggleChatMessageLike?._id;\n\n return [\n {\n query: CHAT,\n variables: { _id: chatId },\n },\n ];\n },\n });\n\n return { error, loading, toggleChatMessageLike };\n};\n\nexport const useMarkChatMessagesSeen = () => {\n const [markChatMessagesSeen, { loading, error }] = useMutation<{\n markChatMessagesSeen: {\n _id: string;\n };\n }>(MARK_CHAT_MESSAGES_SEEN_MUTATION, {\n awaitRefetchQueries: true,\n refetchQueries: (mutationResult) => {\n const chatId = mutationResult?.data?.markChatMessagesSeen?._id;\n\n return [\n {\n query: CHAT,\n variables: { _id: chatId },\n },\n ];\n },\n });\n\n return { error, loading, markChatMessagesSeen };\n};\n\nexport const useReportChatUser = () => {\n const [reportChatUser, { loading, error }] = useMutation(\n REPORT_CHAT_USER_MUTATION,\n );\n\n return { error, loading, reportChatUser };\n};\n","import { gql } from \"@apollo/client\";\n\nimport {\n CHAT_FIELDS_FRAGMENT,\n CHAT_REPORT_FIELDS_FRAGMENT,\n} from \"../queries/chat\";\n\nexport const CREATE_PRIVATE_CHAT_MUTATION = gql`\n mutation createPrivateChat($userId: ID!) {\n createPrivateChat(userId: $userId) {\n ...ChatFields\n }\n }\n ${CHAT_FIELDS_FRAGMENT}\n`;\n\nexport const SEND_CHAT_MESSAGE_MUTATION = gql`\n mutation sendChatMessage($_id: ID!, $input: ChatMessageInputType!) {\n sendChatMessage(_id: $_id, input: $input) {\n ...ChatFields\n }\n }\n ${CHAT_FIELDS_FRAGMENT}\n`;\n\nexport const DELETE_CHAT_MUTATION = gql`\n mutation deleteChat($_id: ID!) {\n deleteChat(_id: $_id)\n }\n`;\n\nexport const ADD_PARTICIPANT_TO_CHAT_MUTATION = gql`\n mutation addParticipantToChat($chatId: ID!, $userId: ID!) {\n addParticipantToChat(chatId: $chatId, userId: $userId) {\n ...ChatFields\n }\n }\n ${CHAT_FIELDS_FRAGMENT}\n`;\n\nexport const REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = gql`\n mutation removeParticipantFromChat($chatId: ID!, $userId: ID!) {\n removeParticipantFromChat(chatId: $chatId, userId: $userId) {\n success\n region\n }\n }\n`;\n\nexport const TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = gql`\n mutation toggleChatMessageLike($chatId: ID!, $messageId: ID!) {\n toggleChatMessageLike(chatId: $chatId, messageId: $messageId) {\n ...ChatFields\n }\n }\n ${CHAT_FIELDS_FRAGMENT}\n`;\n\nexport const MARK_CHAT_MESSAGES_SEEN_MUTATION = gql`\n mutation markChatMessagesSeen($chatId: ID!, $messageIds: [ID!]!) {\n markChatMessagesSeen(chatId: $chatId, messageIds: $messageIds) {\n ...ChatFields\n }\n }\n ${CHAT_FIELDS_FRAGMENT}\n`;\n\nexport const REPORT_CHAT_USER_MUTATION = gql`\n mutation reportChatUser($input: ReportChatUserInputType!) {\n reportChatUser(input: $input) {\n ...ChatReportFields\n }\n }\n ${CHAT_REPORT_FIELDS_FRAGMENT}\n`;\n","import { gql } from \"@apollo/client\";\n\nexport const CHAT_MESSAGE_FIELDS_FRAGMENT = gql`\n fragment ChatMessageFields on ChatMessageType {\n _id\n content\n createdAt\n replyToMessageId\n replyPreview {\n senderId\n senderName\n contentPreview\n }\n likedBy {\n userId\n createdAt\n }\n senderId\n seenBy {\n userId\n seenAt\n }\n updatedAt\n }\n`;\n\nexport const CHAT_PARTICIPANT = gql`\n fragment ChatParticipantFields on ChatParticipantType {\n active\n isAssociate\n userAvatar\n userEmail\n userId\n userName\n }\n`;\n\nexport const CHAT_FIELDS_FRAGMENT = gql`\n fragment ChatFields on ChatType {\n _id\n active\n chatDescription\n chatName\n chatType\n createdAt\n deletedAt\n messages {\n ...ChatMessageFields\n }\n participants {\n ...ChatParticipantFields\n }\n region\n updatedAt\n }\n ${CHAT_MESSAGE_FIELDS_FRAGMENT}\n ${CHAT_PARTICIPANT}\n`;\n\nexport const CHAT = gql`\n query chat($_id: ID!) {\n chat(_id: $_id) {\n ...ChatFields\n }\n }\n ${CHAT_FIELDS_FRAGMENT}\n`;\n\nexport const USER_CHATS = gql`\n query userChats {\n userChats {\n ...ChatFields\n }\n }\n ${CHAT_FIELDS_FRAGMENT}\n`;\n\nexport const GET_CHATS_BY_REGION = gql`\n query getChatsByRegion($region: String!) {\n chatsByRegion(region: $region) {\n ...ChatFields\n }\n }\n ${CHAT_FIELDS_FRAGMENT}\n`;\n\nexport const CHAT_REPORT_FIELDS_FRAGMENT = gql`\n fragment ChatReportFields on ReportChatUserType {\n _id\n chatId\n createdAt\n reason {\n reasonType\n details\n }\n reportedUserId\n reporterUserId\n resolved\n updatedAt\n }\n`;\n\nexport const GET_REPORTED_CHAT_USERS = gql`\n query getReportedChatUsers {\n reportedChatUsers {\n ...ChatReportFields\n }\n }\n ${CHAT_REPORT_FIELDS_FRAGMENT}\n`;\n","import { useQuery, useSubscription } from \"@apollo/client\";\n\nimport { GET_CHAT_MESSAGE } from \"src/graphql/subscriptions/chat\";\n\nimport { ChatType, ReportChatUser } from \"../../../types/chat\";\nimport {\n CHAT,\n GET_CHATS_BY_REGION,\n GET_REPORTED_CHAT_USERS,\n USER_CHATS,\n} from \"../../queries/chat\";\n\nexport const useGetChat = (_id: string) => {\n const { loading, error, data, refetch } = useQuery<{ chat: ChatType }>(CHAT, {\n fetchPolicy: \"network-only\",\n skip: !_id || _id === \"\",\n variables: { _id },\n });\n\n const chat = data?.chat;\n\n return { chat, error, loading, refetch };\n};\n\nexport const useGetUserChats = () => {\n const { loading, error, data, refetch } = useQuery<{ userChats: ChatType[] }>(\n USER_CHATS,\n {\n fetchPolicy: \"network-only\",\n },\n );\n\n const userChats = data?.userChats || [];\n\n return { error, loading, refetch, userChats };\n};\n\nexport const useGetChatSubscription = () => {\n const { data, loading, error } = useSubscription<{ getChat: ChatType }>(\n GET_CHAT_MESSAGE,\n );\n\n const chat = data?.getChat;\n\n return { chat, error, loading };\n};\n\nexport const useGetChatsByRegion = (region: string) => {\n const { loading, error, data, refetch } = useQuery<{\n chatsByRegion: ChatType[];\n }>(GET_CHATS_BY_REGION, {\n fetchPolicy: \"network-only\",\n variables: { region },\n });\n\n const chatsByRegion = data?.chatsByRegion || [];\n\n return { chatsByRegion, error, loading, refetch };\n};\n\nexport const useGetReportedChatUsers = () => {\n const { loading, error, data, refetch } = useQuery<{\n reportedChatUsers: ReportChatUser[];\n }>(GET_REPORTED_CHAT_USERS, {\n fetchPolicy: \"network-only\",\n });\n\n const reportedChatUsers = data?.reportedChatUsers || [];\n\n return { error, loading, refetch, reportedChatUsers };\n};\n","import { gql } from \"@apollo/client\";\n\nimport { CHAT_FIELDS_FRAGMENT } from \"../queries/chat\";\n\nexport const GET_CHAT_MESSAGE = gql`\n subscription {\n getChatMessage {\n ...ChatFields\n }\n }\n ${CHAT_FIELDS_FRAGMENT}\n`;\n","import { useMutation } from \"@apollo/client\";\n\nimport { CONTACT_US_MUTATION } from \"../mutations/contactUs\";\n\nexport const useContactUs = () => {\n const [contactUs, { loading, error }] = useMutation(CONTACT_US_MUTATION);\n return { contactUs, error, loading };\n};\n","import { gql } from \"@apollo/client\";\n\nexport const CONTACT_US_MUTATION = gql`\n mutation contactUs($input: ContactUsInputType!) {\n contactUs(input: $input) {\n message\n }\n }\n`;\n","import { useMutation } from \"@apollo/client\";\n\nimport {\n CREATE_EVENT_INFO_MUTATION,\n CREATE_EVENT_MUTATION,\n DELETE_EVENT_MUTATION,\n UPDATE_EVENT_INFO_MUTATION,\n UPDATE_EVENT_MUTATION,\n} from \"../../mutations/event\";\nimport { GET_EVENT, GET_EVENT_INFO } from \"../../queries/event\";\nimport { GET_USER_EVENTS } from \"../../queries/user\";\n\nexport const useCreateEvent = () => {\n const [createEvent, { loading, error }] = useMutation(CREATE_EVENT_MUTATION, {\n awaitRefetchQueries: true,\n refetchQueries: [{ query: GET_USER_EVENTS }],\n });\n\n return { createEvent, error, loading };\n};\n\nexport const useUpdateEvent = () => {\n const [updateEvent, { loading, error }] = useMutation<{\n updateEvent: {\n _id: string;\n };\n }>(UPDATE_EVENT_MUTATION, {\n awaitRefetchQueries: true,\n refetchQueries: (mutationResult) => {\n // Extract eventId from the mutation response\n const eventId = mutationResult?.data?.updateEvent?._id;\n\n if (!eventId) return [];\n\n return [\n {\n query: GET_USER_EVENTS,\n },\n {\n query: GET_EVENT,\n variables: { _id: eventId },\n },\n {\n query: GET_EVENT_INFO,\n variables: { eventId },\n },\n ];\n },\n });\n\n return { error, loading, updateEvent };\n};\n\nexport const useDeleteEvent = () => {\n const [deleteEvent, { loading, error }] = useMutation(DELETE_EVENT_MUTATION, {\n awaitRefetchQueries: true,\n refetchQueries: [{ query: GET_USER_EVENTS }],\n });\n return { deleteEvent, error, loading };\n};\n\nexport const useCreateEventInfo = () => {\n const [createEventInfo, { loading, error }] = useMutation<{\n createEventInfo: {\n eventId: string;\n };\n }>(CREATE_EVENT_INFO_MUTATION, {\n awaitRefetchQueries: true,\n refetchQueries: (mutationResult) => {\n // Extract eventId from the mutation response\n const eventId = mutationResult?.data?.createEventInfo?.eventId;\n\n if (!eventId) return [];\n\n return [\n {\n query: GET_EVENT_INFO,\n variables: { eventId }, // Pass the eventId for refetching\n },\n {\n query: GET_USER_EVENTS,\n },\n {\n query: GET_EVENT,\n variables: { _id: eventId },\n },\n ];\n },\n });\n\n return { createEventInfo, error, loading };\n};\n\nexport const useUpdateEventInfo = () => {\n const [updateEventInfo, { loading, error }] = useMutation<{\n updateEventInfo: {\n eventId: string;\n };\n }>(UPDATE_EVENT_INFO_MUTATION, {\n awaitRefetchQueries: true,\n refetchQueries: (mutationResult) => {\n // Extract eventId from the mutation response\n const eventId = mutationResult?.data?.updateEventInfo?.eventId;\n\n if (!eventId) return [];\n\n return [\n {\n query: GET_EVENT_INFO,\n variables: { eventId },\n },\n {\n query: GET_EVENT,\n variables: { _id: eventId },\n },\n {\n query: GET_USER_EVENTS,\n },\n ];\n },\n });\n\n return { error, loading, updateEventInfo };\n};\n","import { gql } from \"@apollo/client\";\n\nimport { EVENT, EVENT_INFO } from \"../queries/event\";\n\nexport const CREATE_EVENT_MUTATION = gql`\n mutation createEvent($input: EventInputType!) {\n createEvent(input: $input) {\n ...EventFields\n }\n }\n ${EVENT}\n`;\n\nexport const UPDATE_EVENT_MUTATION = gql`\n mutation updateEvent($_id: ID!, $input: EventInputType!) {\n updateEvent(_id: $_id, input: $input) {\n ...EventFields\n }\n }\n ${EVENT}\n`;\n\nexport const DELETE_EVENT_MUTATION = gql`\n mutation deleteEvent($_id: ID!) {\n deleteEvent(_id: $_id)\n }\n`;\n\nexport const CREATE_EVENT_INFO_MUTATION = gql`\n mutation createEventInfo($input: EventInfoInputType!) {\n createEventInfo(input: $input) {\n ...EventInfoFields\n }\n }\n ${EVENT_INFO}\n`;\n\nexport const UPDATE_EVENT_INFO_MUTATION = gql`\n mutation updateEventInfo($_id: ID!, $input: EventInfoInputType!) {\n updateEventInfo(_id: $_id, input: $input) {\n ...EventInfoFields\n }\n }\n ${EVENT_INFO}\n`;\n","import { gql } from \"@apollo/client\";\n\nimport { EVENT } from \"./event\";\nimport { EVENT_LIST_ITEM, USER_FIELDS_FRAGMENT } from \"./global\";\nimport { PARTNER } from \"./partner\";\nimport { VENDOR } from \"./vendor\";\n\nexport const GET_USERS = gql`\n query getUsers {\n users {\n ...UserFields\n }\n }\n ${USER_FIELDS_FRAGMENT}\n`;\n\nexport const GET_USER = gql`\n query getUser($_id: ID!) {\n user(_id: $_id) {\n ...UserFields\n }\n }\n ${USER_FIELDS_FRAGMENT}\n`;\n\nexport const GET_USER_EVENTS = gql`\n query getUserEvents {\n userEvents {\n ...EventFields\n }\n }\n ${EVENT}\n`;\n\nexport const GET_USER_VENDORS = gql`\n query getUserVendors {\n userVendors {\n ...VendorFields\n }\n }\n ${VENDOR}\n`;\n\nexport const GET_USER_PARTNERS = gql`\n query getUserPartners {\n userPartners {\n ...PartnerFields\n }\n }\n ${PARTNER}\n`;\n\nexport const GET_USER_ACTIVITIES = gql`\n query getUserActivities {\n userActivities {\n favourites {\n events {\n ...EventListItemFields\n }\n partners {\n ...PartnerFields\n }\n vendors {\n ...VendorFields\n }\n }\n going {\n events {\n ...EventListItemFields\n }\n }\n interested {\n events {\n ...EventListItemFields\n }\n }\n present {\n events {\n ...EventListItemFields\n }\n }\n }\n }\n ${EVENT_LIST_ITEM}\n ${VENDOR}\n ${PARTNER}\n`;\n\nexport const GET_USER_RESOURCES = gql`\n query getUserResources($userId: ID!) {\n userResources(userId: $userId) {\n resources {\n _id\n logo\n name\n resourceType\n }\n }\n }\n`;\n","import { useQuery } from \"@apollo/client\";\n\nimport { EnumEventDateStatus } from \"../../../enums\";\nimport {\n EventInfoType,\n EventListItemType,\n EventType,\n} from \"../../../types/event\";\nimport { UseGetResourcesByRegionOptions } from \"../../../types/global\";\nimport {\n GET_EVENT,\n GET_EVENT_BY_PLACE_ID,\n GET_EVENT_INFO,\n GET_EVENTS,\n GET_EVENTS_BY_REGION,\n GET_EVENTS_NEAR_ME,\n SEARCH_EVENTS,\n} from \"../../queries/event\";\n\nexport const useGetEvents = (dateStatus?: EnumEventDateStatus) => {\n const { loading, error, data, refetch } = useQuery<{\n events: EventListItemType[];\n }>(GET_EVENTS, {\n fetchPolicy: \"network-only\",\n variables: { dateStatus },\n });\n\n const events = data?.events || [];\n\n return { error, events, loading, refetch };\n};\n\nexport const useGetEvent = (_id: string) => {\n const { loading, error, data, refetch } = useQuery<{\n event: EventType | null;\n }>(GET_EVENT, {\n fetchPolicy: \"network-only\",\n skip: !_id,\n variables: { _id },\n });\n\n const event = data?.event || null;\n\n return { error, event, loading, refetch };\n};\n\nexport const useGetEventByPlaceId = (googlePlaceId: string) => {\n const { loading, error, data, refetch } = useQuery<{\n eventByPlaceId: EventListItemType | null;\n }>(GET_EVENT_BY_PLACE_ID, {\n fetchPolicy: \"network-only\",\n skip: !googlePlaceId,\n variables: { googlePlaceId },\n });\n\n const eventByPlaceId = data?.eventByPlaceId || null;\n\n return { error, eventByPlaceId, loading, refetch };\n};\n\nexport const useGetEventsByRegion = (\n region: string,\n options?: UseGetResourcesByRegionOptions,\n dateStatus?: EnumEventDateStatus,\n) => {\n const variables = {\n dateStatus,\n options,\n region,\n };\n const { loading, error, data, refetch, fetchMore } = useQuery<{\n eventsByRegion: EventListItemType[];\n }>(GET_EVENTS_BY_REGION, {\n fetchPolicy: \"network-only\",\n skip: !region || region === \"\",\n variables,\n });\n\n const eventsByRegion = data?.eventsByRegion || [];\n\n return {\n error,\n eventsByRegion,\n fetchMore,\n loading,\n refetch,\n };\n};\n\nexport const useSearchEvents = (\n region: string,\n searchQuery?: string,\n tags?: string[],\n dateStatus?: EnumEventDateStatus,\n) => {\n const normalizedSearch = searchQuery?.trim() ?? \"\";\n const normalizedTags = (tags ?? []).filter(Boolean);\n\n const shouldRunQuery =\n normalizedSearch.length > 3 || normalizedTags.length > 0;\n\n const { loading, error, data, refetch } = useQuery<{\n eventsSearch: EventListItemType[];\n }>(SEARCH_EVENTS, {\n fetchPolicy: \"network-only\",\n skip: !shouldRunQuery,\n variables: {\n dateStatus,\n region,\n search: normalizedSearch,\n tags: normalizedTags,\n },\n });\n\n return {\n error,\n eventsSearch: data?.eventsSearch ?? [],\n loading,\n refetch,\n };\n};\n\nexport const useGetEventsNearMe = (\n location: {\n latitude: number;\n longitude: number;\n radius?: number;\n },\n dateStatus?: EnumEventDateStatus,\n) => {\n const { loading, error, data, refetch } = useQuery<{\n eventsNearMe: EventListItemType[];\n }>(GET_EVENTS_NEAR_ME, {\n fetchPolicy: \"network-only\",\n skip: !location.latitude || !location.longitude,\n variables: {\n dateStatus,\n latitude: location.latitude,\n longitude: location.longitude,\n radius: location.radius || 10000, // Default to 10km if no radius is provided\n },\n });\n\n const eventsNearMe = data?.eventsNearMe || [];\n\n return { error, eventsNearMe, loading, refetch };\n};\n\nexport const useGetEventInfo = (eventId: string) => {\n const { loading, error, data, refetch } = useQuery<{\n eventInfo: EventInfoType;\n }>(GET_EVENT_INFO, {\n fetchPolicy: \"network-only\",\n skip: !eventId || eventId === \"\",\n variables: { eventId },\n });\n\n const eventInfo = data?.eventInfo;\n\n return { error, eventInfo, loading, refetch };\n};\n","import { useMutation } from \"@apollo/client\";\n\nimport {\n CREATE_BULK_NOTIFICATIONS,\n DELETE_ALL_NOTIFICATIONS,\n DELETE_NOTIFICATION,\n MARK_ALL_NOTIFICATIONS_READ,\n MARK_NOTIFICATION_READ,\n} from \"src/graphql/mutations/notification\";\nimport {\n GET_NOTIFICATION_COUNT,\n GET_USER_NOTIFICATIONS,\n} from \"src/graphql/queries/notification\";\n\nexport const useCreateBulkNotifications = () => {\n const [createBulkNotifications, { loading, error }] = useMutation(\n CREATE_BULK_NOTIFICATIONS,\n );\n return { createBulkNotifications, error, loading };\n};\n\nexport const useMarkNotificationRead = () => {\n const [markNotificationRead, { loading, error }] = useMutation(\n MARK_NOTIFICATION_READ,\n {\n refetchQueries: [\n {\n query: GET_USER_NOTIFICATIONS,\n },\n {\n query: GET_NOTIFICATION_COUNT,\n },\n ],\n },\n );\n return { error, loading, markNotificationRead };\n};\n\nexport const useMarkAllNotificationsRead = () => {\n const [markAllNotificationsRead, { loading, error }] = useMutation(\n MARK_ALL_NOTIFICATIONS_READ,\n {\n refetchQueries: [\n {\n query: GET_USER_NOTIFICATIONS,\n },\n {\n query: GET_NOTIFICATION_COUNT,\n },\n ],\n },\n );\n return { error, loading, markAllNotificationsRead };\n};\n\nexport const useDeleteNotification = () => {\n const [deleteNotification, { loading, error }] = useMutation(\n DELETE_NOTIFICATION,\n {\n refetchQueries: [\n {\n query: GET_USER_NOTIFICATIONS,\n },\n {\n query: GET_NOTIFICATION_COUNT,\n },\n ],\n },\n );\n return { deleteNotification, error, loading };\n};\n\nexport const useDeleteAllNotifications = () => {\n const [deleteAllNotifications, { loading, error }] = useMutation(\n DELETE_ALL_NOTIFICATIONS,\n {\n refetchQueries: [\n {\n query: GET_USER_NOTIFICATIONS,\n },\n {\n query: GET_NOTIFICATION_COUNT,\n },\n ],\n },\n );\n return { deleteAllNotifications, error, loading };\n};\n","import { gql } from \"@apollo/client\";\n\nimport { NOTIFICATION_FRAGMENT } from \"../queries/notification\";\n\nexport const CREATE_BULK_NOTIFICATIONS = gql`\n mutation createBulkNotifications($input: CreateBulkNotificationInput!) {\n createBulkNotifications(input: $input) {\n ...NotificationFields\n }\n }\n ${NOTIFICATION_FRAGMENT}\n`;\n\nexport const MARK_NOTIFICATION_READ = gql`\n mutation markNotificationRead($_id: ID!) {\n markNotificationRead(_id: $_id) {\n ...NotificationFields\n }\n }\n ${NOTIFICATION_FRAGMENT}\n`;\n\nexport const MARK_ALL_NOTIFICATIONS_READ = gql`\n mutation markAllNotificationsRead {\n markAllNotificationsRead\n }\n`;\n\nexport const DELETE_NOTIFICATION = gql`\n mutation deleteNotification($_id: ID!) {\n deleteNotification(_id: $_id)\n }\n`;\n\nexport const DELETE_ALL_NOTIFICATIONS = gql`\n mutation deleteAllNotifications {\n deleteAllNotifications\n }\n`;\n","import { gql } from \"@apollo/client\";\n\nexport const NOTIFICATION_FRAGMENT = gql`\n fragment NotificationFields on Notification {\n _id\n userId\n title\n message\n type\n isRead\n data {\n resourceId\n resourceName\n resourceType\n }\n createdAt\n updatedAt\n }\n`;\n\nexport const GET_USER_NOTIFICATIONS = gql`\n query getUserNotifications($limit: Int, $offset: Int) {\n userNotifications(limit: $limit, offset: $offset) {\n ...NotificationFields\n }\n }\n ${NOTIFICATION_FRAGMENT}\n`;\n\nexport const GET_NOTIFICATION_COUNT = gql`\n query getNotificationCount {\n notificationCount {\n total\n unread\n }\n }\n`;\n","import { useQuery } from \"@apollo/client\";\n\nimport { NotificationCount, NotificationType } from \"../../../types\";\nimport {\n GET_NOTIFICATION_COUNT,\n GET_USER_NOTIFICATIONS,\n} from \"../../queries/notification\";\n\nexport const useGetUserNotifications = (limit?: number, offset?: number) => {\n const { data, loading, error, refetch } = useQuery<{\n userNotifications: NotificationType[];\n }>(GET_USER_NOTIFICATIONS, {\n fetchPolicy: \"no-cache\",\n variables: { limit, offset },\n });\n\n return {\n error,\n loading,\n notifications: data?.userNotifications || [],\n refetch,\n };\n};\n\nexport const useGetNotificationCount = () => {\n const { data, loading, error, refetch } = useQuery<{\n notificationCount: NotificationCount;\n }>(GET_NOTIFICATION_COUNT, {\n fetchPolicy: \"no-cache\",\n });\n\n return {\n error,\n loading,\n notificationCount: data?.notificationCount || { total: 0, unread: 0 },\n refetch,\n };\n};\n","import { useSubscription } from \"@apollo/client\";\n\nimport { NotificationCount, NotificationType } from \"../../../types\";\nimport {\n GET_NOTIFICATION_COUNT_SUBSCRIPTION,\n GET_NOTIFICATIONS_SUBSCRIPTION,\n} from \"../../subscriptions/notification\";\n\nexport const useGetUserNotificationsSubscription = () => {\n const { data, loading, error } = useSubscription<{\n getUserNotifications: NotificationType[];\n }>(GET_NOTIFICATIONS_SUBSCRIPTION, {\n fetchPolicy: \"no-cache\",\n shouldResubscribe: true,\n });\n\n return {\n error,\n loading,\n notifications: data?.getUserNotifications,\n };\n};\n\nexport const useGetNotificationCountSubscription = () => {\n const { data, loading, error } = useSubscription<{\n getNotificationCount: NotificationCount;\n }>(GET_NOTIFICATION_COUNT_SUBSCRIPTION, {\n fetchPolicy: \"no-cache\",\n shouldResubscribe: true,\n });\n\n return {\n error,\n loading,\n notificationCount: data?.getNotificationCount,\n };\n};\n","import { gql } from \"@apollo/client\";\n\nimport { NOTIFICATION_FRAGMENT } from \"../queries/notification\";\n\nexport const GET_NOTIFICATIONS_SUBSCRIPTION = gql`\n subscription {\n getUserNotifications {\n ...NotificationFields\n }\n }\n ${NOTIFICATION_FRAGMENT}\n`;\n\nexport const GET_NOTIFICATION_COUNT_SUBSCRIPTION = gql`\n subscription {\n getNotificationCount {\n total\n unread\n }\n }\n`;\n","import { useMutation } from \"@apollo/client\";\n\nimport { CREATE_POSTER_MUTATION } from \"../mutations/poster\";\nimport { GET_USER_EVENTS, GET_USER_VENDORS } from \"../queries/user\";\n\nexport const useCreatePoster = () => {\n const [createPoster, { loading, error }] = useMutation(\n CREATE_POSTER_MUTATION,\n {\n refetchQueries: [{ query: GET_USER_EVENTS }, { query: GET_USER_VENDORS }],\n },\n );\n return { createPoster, error, loading };\n};\n","import { gql } from \"@apollo/client\";\n\nimport { POSTER_USAGE_FIELDS_FRAGMENT } from \"../queries/global\";\n\nexport const CREATE_POSTER_MUTATION = gql`\n mutation createPoster($input: PosterInputType!) {\n createPoster(input: $input) {\n message\n posterUsage {\n ...PosterUsageFields\n }\n }\n }\n ${POSTER_USAGE_FIELDS_FRAGMENT}\n`;\n","import { useMutation } from \"@apollo/client\";\n\nimport { CREATE_PUSH_TOKEN_MUTATION } from \"../mutations/pushToken\";\n\nexport const useCreatePushToken = () => {\n const [createPushToken, { loading, error }] = useMutation(\n CREATE_PUSH_TOKEN_MUTATION,\n );\n return { createPushToken, error, loading };\n};\n","import { gql } from \"@apollo/client\";\n\nexport const CREATE_PUSH_TOKEN_MUTATION = gql`\n mutation createPushToken($input: PushTokenInput!) {\n createPushToken(input: $input) {\n success\n }\n }\n`;\n","import { useMutation } from \"@apollo/client\";\n\nimport { EnumResourceType } from \"src/enums\";\nimport { RelationType } from \"src/types\";\n\nimport {\n CREATE_RELATION_MUTATION,\n DELETE_RELATION_MUTATION,\n UPDATE_RELATION_MUTATION,\n} from \"../../mutations/relation\";\nimport { USER_CHATS } from \"../../queries/chat\";\nimport { GET_EVENT, GET_EVENT_INFO } from \"../../queries/event\";\nimport {\n GET_EVENT_RELATIONS,\n GET_RELATION_BY_EVENT_AND_VENDOR,\n GET_RESOURCE_CONNECTIONS,\n GET_VENDOR_RELATIONS,\n} from \"../../queries/relation\";\nimport { GET_VENDOR } from \"../../queries/vendor\";\n\nexport const useCreateRelation = () => {\n const [createRelation, { loading, error }] = useMutation<{\n createRelation: RelationType;\n }>(CREATE_RELATION_MUTATION, {\n awaitRefetchQueries: true,\n refetchQueries: (mutationResult) => {\n // Extract relationId from the mutation response\n const createRelation = mutationResult?.data?.createRelation;\n const eventId = createRelation?.eventId;\n const vendorId = createRelation?.vendorId;\n\n const resourceType = createRelation?.lastUpdateBy;\n const resourceId =\n resourceType === EnumResourceType.EVENT ? eventId : vendorId;\n\n return [\n {\n query: GET_EVENT_RELATIONS,\n variables: { eventId },\n },\n {\n query: GET_EVENT,\n variables: { _id: eventId },\n },\n {\n query: GET_EVENT_INFO,\n variables: { eventId },\n },\n {\n query: GET_VENDOR_RELATIONS,\n variables: { vendorId },\n },\n {\n query: GET_VENDOR,\n variables: { _id: vendorId },\n },\n {\n query: GET_RELATION_BY_EVENT_AND_VENDOR,\n variables: { eventId, vendorId },\n },\n {\n query: GET_RESOURCE_CONNECTIONS,\n variables: { resourceId, resourceType },\n },\n {\n query: USER_CHATS,\n },\n ];\n },\n });\n\n return { createRelation, error, loading };\n};\n\nexport const useUpdateRelation = () => {\n const [updateRelation, { loading, error }] = useMutation<{\n updateRelation: RelationType;\n }>(UPDATE_RELATION_MUTATION, {\n awaitRefetchQueries: true,\n refetchQueries: (mutationResult) => {\n const updateRelation = mutationResult?.data?.updateRelation;\n const eventId = updateRelation?.eventId;\n const vendorId = updateRelation?.vendorId;\n\n const resourceType = updateRelation?.lastUpdateBy;\n const resourceId =\n resourceType === EnumResourceType.EVENT ? eventId : vendorId;\n\n return [\n {\n query: GET_EVENT_RELATIONS,\n variables: { eventId },\n },\n {\n query: GET_EVENT,\n variables: { _id: eventId },\n },\n {\n query: GET_EVENT_INFO,\n variables: { eventId },\n },\n {\n query: GET_VENDOR_RELATIONS,\n variables: { vendorId },\n },\n {\n query: GET_VENDOR,\n variables: { _id: vendorId },\n },\n {\n query: GET_RELATION_BY_EVENT_AND_VENDOR,\n variables: { eventId, vendorId },\n },\n {\n query: GET_RESOURCE_CONNECTIONS,\n variables: { resourceId, resourceType },\n },\n ];\n },\n });\n\n return { error, loading, updateRelation };\n};\n\nexport const useDeleteRelation = () => {\n const [deleteRelation, { loading, error }] = useMutation<{\n deleteRelation: RelationType;\n }>(DELETE_RELATION_MUTATION, {\n awaitRefetchQueries: true,\n refetchQueries: (mutationResult) => {\n // Extract relationId from the mutation response\n const deleteRelation = mutationResult?.data?.deleteRelation;\n const eventId = deleteRelation?.eventId;\n const vendorId = deleteRelation?.vendorId;\n const resourceType = deleteRelation?.lastUpdateBy;\n const resourceId =\n resourceType === EnumResourceType.EVENT ? eventId : vendorId;\n return [\n {\n query: GET_EVENT_INFO,\n variables: { eventId },\n },\n {\n query: GET_EVENT_RELATIONS,\n variables: { eventId },\n },\n {\n query: GET_VENDOR_RELATIONS,\n variables: { vendorId },\n },\n {\n query: GET_RELATION_BY_EVENT_AND_VENDOR,\n variables: { eventId, vendorId },\n },\n {\n query: GET_RESOURCE_CONNECTIONS,\n variables: { resourceId, resourceType },\n },\n {\n query: USER_CHATS,\n },\n ];\n },\n });\n return { deleteRelation, error, loading };\n};\n","import { gql } from \"@apollo/client\";\n\nimport { RELATION_FIELDS_FRAGMENT } from \"../queries/relation\";\n\nexport const CREATE_RELATION_MUTATION = gql`\n mutation createRelation($input: RelationInputType!) {\n createRelation(input: $input) {\n ...RelationFields\n }\n }\n ${RELATION_FIELDS_FRAGMENT}\n`;\n\nexport const UPDATE_RELATION_MUTATION = gql`\n mutation updateRelation($_id: ID!, $input: RelationInputType!) {\n updateRelation(_id: $_id, input: $input) {\n ...RelationFields\n }\n }\n ${RELATION_FIELDS_FRAGMENT}\n`;\n\nexport const DELETE_RELATION_MUTATION = gql`\n mutation deleteRelation($_id: ID!) {\n deleteRelation(_id: $_id) {\n ...RelationFields\n }\n }\n ${RELATION_FIELDS_FRAGMENT}\n`;\n","import { useQuery } from \"@apollo/client\";\n\nimport { EnumResourceType } from \"../../../enums\";\nimport { ResourceConnectionsType } from \"../../../types\";\nimport { RelationType } from \"../../../types/relation\";\nimport {\n GET_EVENT_RELATIONS,\n GET_RELATION_BY_EVENT_AND_VENDOR,\n GET_RESOURCE_CONNECTIONS,\n GET_RELATION,\n GET_VENDOR_RELATIONS,\n} from \"../../queries/relation\";\n\nexport const useGetRelation = (_id?: string) => {\n const { loading, error, data, refetch } = useQuery<{\n relation: RelationType;\n }>(GET_RELATION, {\n fetchPolicy: \"network-only\",\n skip: !_id,\n variables: _id ? { _id } : undefined,\n });\n\n const relation = data?.relation;\n\n return { error, loading, refetch, relation };\n};\n\nexport const useGetRelationByEventAndVendor = (\n eventId: string,\n vendorId: string,\n) => {\n const { loading, error, data, refetch } = useQuery<{\n relationByEventAndVendor: RelationType;\n }>(GET_RELATION_BY_EVENT_AND_VENDOR, {\n fetchPolicy: \"network-only\",\n skip: !eventId || eventId === \"\" || !vendorId || vendorId === \"\",\n variables: { eventId, vendorId },\n });\n\n const relationByEventAndVendor = data?.relationByEventAndVendor;\n\n return { error, loading, refetch, relationByEventAndVendor };\n};\n\nexport const useGetEventRelations = (eventId: string) => {\n const { loading, error, data, refetch } = useQuery<{\n eventRelations: RelationType[];\n }>(GET_EVENT_RELATIONS, {\n fetchPolicy: \"network-only\",\n skip: !eventId || eventId === \"\",\n variables: { eventId },\n });\n\n const eventRelations = data?.eventRelations || [];\n\n return { error, eventRelations, loading, refetch };\n};\n\nexport const useGetVendorRelations = (vendorId?: string) => {\n const { loading, error, data, refetch } = useQuery<{\n vendorRelations: RelationType[];\n }>(GET_VENDOR_RELATIONS, {\n fetchPolicy: \"network-only\",\n skip: !vendorId || vendorId === \"\",\n variables: { vendorId },\n });\n\n const vendorRelations = data?.vendorRelations || [];\n\n return { error, loading, refetch, vendorRelations };\n};\n\nexport const useGetResourceConnections = (\n resourceId: string,\n resourceType: EnumResourceType,\n) => {\n const { loading, error, data, refetch } = useQuery<{\n resourceConnections: ResourceConnectionsType;\n }>(GET_RESOURCE_CONNECTIONS, {\n fetchPolicy: \"network-only\",\n skip: !resourceId || resourceId === \"\" || !resourceType,\n variables: { resourceId, resourceType },\n });\n\n const resourceConnections = data?.resourceConnections;\n\n return { error, loading, refetch, resourceConnections };\n};\n","import { useMutation } from \"@apollo/client\";\n\nimport { GET_USER_VENDORS } from \"src/graphql/queries/user\";\n\nimport {\n CREATE_UNREGISTERED_VENDOR_MUTATION,\n CREATE_VENDOR_INFO_MUTATION,\n CREATE_VENDOR_MUTATION,\n DELETE_UNREGISTERED_VENDOR_MUTATION,\n DELETE_VENDOR_MUTATION,\n UNLINK_UNREGISTERED_VENDOR_BY_INVITER_ID_MUTATION,\n UPDATE_UNREGISTERED_VENDOR_MUTATION,\n UPDATE_VENDOR_INFO_MUTATION,\n UPDATE_VENDOR_MUTATION,\n} from \"../../mutations/vendor\";\nimport { GET_VENDOR, GET_VENDOR_INFO } from \"../../queries/vendor\";\n\nexport const useCreateVendor = () => {\n const [createVendor, { loading, error }] = useMutation(\n CREATE_VENDOR_MUTATION,\n {\n awaitRefetchQueries: true,\n refetchQueries: [{ query: GET_USER_VENDORS }],\n },\n );\n\n return { createVendor, error, loading };\n};\n\nexport const useUpdateVendor = () => {\n const [updateVendor, { loading, error }] = useMutation(\n UPDATE_VENDOR_MUTATION,\n {\n awaitRefetchQueries: true,\n refetchQueries: [{ query: GET_USER_VENDORS }],\n },\n );\n return { error, loading, updateVendor };\n};\n\nexport const useDeleteVendor = () => {\n const [deleteVendor, { loading, error }] = useMutation(\n DELETE_VENDOR_MUTATION,\n {\n awaitRefetchQueries: true,\n refetchQueries: [{ query: GET_USER_VENDORS }],\n },\n );\n return { deleteVendor, error, loading };\n};\n\nexport const useCreateVendorInfo = () => {\n const [createVendorInfo, { loading, error }] = useMutation<{\n createVendorInfo: { vendorId: string };\n }>(CREATE_VENDOR_INFO_MUTATION, {\n awaitRefetchQueries: true,\n refetchQueries: (mutationResult) => {\n // Extract vendorId from the mutation response\n const vendorId = mutationResult?.data?.createVendorInfo?.vendorId;\n\n if (!vendorId) return [];\n\n return [\n {\n query: GET_VENDOR_INFO,\n variables: { vendorId }, // Pass the vendorId for refetching\n },\n {\n query: GET_USER_VENDORS,\n },\n {\n query: GET_VENDOR,\n variables: { _id: vendorId },\n },\n ];\n },\n });\n\n return { createVendorInfo, error, loading };\n};\n\nexport const useUpdateVendorInfo = () => {\n const [updateVendorInfo, { loading, error }] = useMutation<{\n updateVendorInfo: { vendorId: string };\n }>(UPDATE_VENDOR_INFO_MUTATION, {\n awaitRefetchQueries: true,\n refetchQueries: (mutationResult) => {\n // Extract vendorId from the mutation response\n const vendorId = mutationResult?.data?.updateVendorInfo?.vendorId;\n\n if (!vendorId) return [];\n\n return [\n {\n query: GET_VENDOR_INFO,\n variables: { vendorId }, // Pass the vendorId for refetching\n },\n ];\n },\n });\n\n return { error, loading, updateVendorInfo };\n};\n\nexport const useCreateUnregisteredVendor = () => {\n const [createUnregisteredVendor, { loading, error }] = useMutation(\n CREATE_UNREGISTERED_VENDOR_MUTATION,\n );\n\n return { createUnregisteredVendor, error, loading };\n};\n\nexport const useUpdateUnregisteredVendor = () => {\n const [updateUnregisteredVendor, { loading, error }] = useMutation(\n UPDATE_UNREGISTERED_VENDOR_MUTATION,\n );\n return { error, loading, updateUnregisteredVendor };\n};\n\nexport const useDeleteUnregisteredVendor = () => {\n const [deleteUnregisteredVendor, { loading, error }] = useMutation(\n DELETE_UNREGISTERED_VENDOR_MUTATION,\n );\n return { deleteUnregisteredVendor, error, loading };\n};\n\nexport const useUnlinkUnregisteredVendorByInviterId = () => {\n const [unlinkUnregisteredVendorByInviterId, { loading, error }] = useMutation(\n UNLINK_UNREGISTERED_VENDOR_BY_INVITER_ID_MUTATION,\n );\n return { error, loading, unlinkUnregisteredVendorByInviterId };\n};\n","import { gql } from \"@apollo/client\";\n\nimport { UNREGISTERED_VENDOR, VENDOR, VENDOR_INFO } from \"../queries/vendor\";\n\nexport const CREATE_VENDOR_MUTATION = gql`\n mutation createVendor($input: VendorInputType!) {\n createVendor(input: $input) {\n ...VendorFields\n }\n }\n ${VENDOR}\n`;\n\nexport const UPDATE_VENDOR_MUTATION = gql`\n mutation updateVendor($_id: ID!, $input: VendorInputType!) {\n updateVendor(_id: $_id, input: $input) {\n ...VendorFields\n }\n }\n ${VENDOR}\n`;\n\nexport const DELETE_VENDOR_MUTATION = gql`\n mutation deleteVendor($_id: ID!) {\n deleteVendor(_id: $_id)\n }\n`;\n\nexport const CREATE_VENDOR_INFO_MUTATION = gql`\n mutation createVendorInfo($input: VendorInfoInputType!) {\n createVendorInfo(input: $input) {\n ...VendorInfoFields\n }\n }\n ${VENDOR_INFO}\n`;\n\nexport const UPDATE_VENDOR_INFO_MUTATION = gql`\n mutation updateVendorInfo($_id: ID!, $input: VendorInfoInputType!) {\n updateVendorInfo(_id: $_id, input: $input) {\n ...VendorInfoFields\n }\n }\n ${VENDOR_INFO}\n`;\n\nexport const CREATE_UNREGISTERED_VENDOR_MUTATION = gql`\n mutation createUnregisteredVendor($input: UnregisteredVendorInputType!) {\n createUnregisteredVendor(input: $input) {\n ...UnregisteredVendorFields\n }\n }\n ${UNREGISTERED_VENDOR}\n`;\n\nexport const UPDATE_UNREGISTERED_VENDOR_MUTATION = gql`\n mutation updateUnregisteredVendor(\n $_id: ID!\n $input: UnregisteredVendorInputType!\n ) {\n updateUnregisteredVendor(_id: $_id, input: $input) {\n ...UnregisteredVendorFields\n }\n }\n ${UNREGISTERED_VENDOR}\n`;\n\nexport const DELETE_UNREGISTERED_VENDOR_MUTATION = gql`\n mutation deleteUnregisteredVendor($_id: ID!) {\n deleteUnregisteredVendor(_id: $_id)\n }\n`;\n\nexport const UNLINK_UNREGISTERED_VENDOR_BY_INVITER_ID_MUTATION = gql`\n mutation unlinkUnregisteredVendorByInviterId($_id: ID!, $inviterId: ID!) {\n unlinkUnregisteredVendorByInviterId(_id: $_id, inviterId: $inviterId)\n }\n`;\n","import { useQuery } from \"@apollo/client\";\n\nimport { UseGetResourcesByRegionOptions } from \"../../../types/global\";\nimport {\n UnregisteredVendorType,\n VendorInfoType,\n VendorType,\n} from \"../../../types/vendor\";\nimport {\n GET_UNREGISTERED_VENDOR,\n GET_UNREGISTERED_VENDORS,\n GET_UNREGISTERED_VENDORS_BY_INVITER_ID,\n GET_VENDOR,\n GET_VENDOR_INFO,\n GET_VENDORS,\n GET_VENDORS_BY_REGION,\n SEARCH_VENDORS,\n} from \"../../queries/vendor\";\n\nexport const useGetVendors = () => {\n const { loading, error, data, refetch } = useQuery<{ vendors: VendorType[] }>(\n GET_VENDORS,\n {\n fetchPolicy: \"network-only\",\n },\n );\n\n const vendors = data?.vendors || [];\n\n return {\n error,\n loading,\n refetch,\n vendors,\n };\n};\n\nexport const useGetVendor = (_id: string) => {\n const { loading, error, data, refetch } = useQuery<{ vendor: VendorType }>(\n GET_VENDOR,\n {\n fetchPolicy: \"network-only\",\n skip: !_id || _id === \"\",\n variables: { _id },\n },\n );\n\n const vendor = data?.vendor;\n\n return { error, loading, refetch, vendor };\n};\n\nexport const useGetVendorsByRegion = (\n region: string,\n options?: UseGetResourcesByRegionOptions,\n) => {\n const variables = {\n options,\n region,\n };\n const { loading, error, data, refetch, fetchMore } = useQuery<{\n vendorsByRegion: VendorType[];\n }>(GET_VENDORS_BY_REGION, {\n fetchPolicy: \"network-only\",\n variables,\n });\n\n const vendorsByRegion = data?.vendorsByRegion || [];\n\n return {\n error,\n fetchMore,\n loading,\n refetch,\n vendorsByRegion,\n };\n};\n\nexport const useSearchVendors = (search: string, region: string) => {\n const { loading, error, data, refetch } = useQuery<{\n vendorSearch: VendorType[];\n }>(SEARCH_VENDORS, {\n fetchPolicy: \"network-only\",\n skip: search.length < 3,\n variables: { region, search },\n });\n\n const vendorSearch = data?.vendorSearch || [];\n\n return { error, loading, refetch, vendorSearch };\n};\n\nexport const useGetVendorInfo = (vendorId: string) => {\n const { loading, error, data, refetch } = useQuery<{\n vendorInfo: VendorInfoType;\n }>(GET_VENDOR_INFO, {\n fetchPolicy: \"network-only\",\n skip: !vendorId || vendorId === \"\",\n variables: { vendorId },\n });\n\n const vendorInfo = data?.vendorInfo;\n\n return {\n error,\n loading,\n refetch,\n vendorInfo,\n };\n};\n\nexport const useGetUnregisteredVendors = () => {\n const { loading, error, data, refetch } = useQuery<{\n unregisteredVendors: UnregisteredVendorType[];\n }>(GET_UNREGISTERED_VENDORS, {\n fetchPolicy: \"network-only\",\n });\n\n const unregisteredVendors = data?.unregisteredVendors || [];\n\n return {\n error,\n loading,\n refetch,\n unregisteredVendors,\n };\n};\n\nexport const useGetUnregisteredVendorsByInviterId = (inviterId: string) => {\n const { loading, error, data, refetch } = useQuery<{\n unregisteredVendorsByInviterId: UnregisteredVendorType[];\n }>(GET_UNREGISTERED_VENDORS_BY_INVITER_ID, {\n fetchPolicy: \"network-only\",\n skip: !inviterId || inviterId === \"\",\n variables: { inviterId },\n });\n\n const unregisteredVendorsByInviterId =\n data?.unregisteredVendorsByInviterId || [];\n\n return { error, loading, refetch, unregisteredVendorsByInviterId };\n};\n\nexport const useGetUnregisteredVendor = (_id: string) => {\n const { loading, error, data, refetch } = useQuery<{\n unregisteredVendor: UnregisteredVendorType;\n }>(GET_UNREGISTERED_VENDOR, {\n fetchPolicy: \"network-only\",\n skip: !_id || _id === \"\",\n variables: { _id },\n });\n\n const unregisteredVendor = data?.unregisteredVendor;\n\n return { error, loading, refetch, unregisteredVendor };\n};\n","import { useMutation } from \"@apollo/client\";\n\nimport {\n GET_USER,\n GET_USER_ACTIVITIES,\n GET_USER_EVENTS,\n GET_USER_VENDORS,\n} from \"src/graphql/queries/user\";\nimport { UserLicenceType, SafeUserType, RedeemRewardResponse } from \"src/types\";\n\nimport {\n ADD_USER_FAVOURITE_RESOURCE_MUTATION,\n ADD_USER_GOING_RESOURCE_MUTATION,\n ADD_USER_INTEREST_RESOURCE_MUTATION,\n ADD_USER_PRESENT_RESOURCE_MUTATION,\n CREATE_USER_MUTATION,\n DELETE_USER_MUTATION,\n REDEEM_REWARD_MUTATION,\n REMOVE_USER_FAVOURITE_RESOURCE_MUTATION,\n REMOVE_USER_GOING_RESOURCE_MUTATION,\n REMOVE_USER_INTEREST_RESOURCE_MUTATION,\n REMOVE_USER_PRESENT_RESOURCE_MUTATION,\n SELECT_STANDARD_PACKAGE_MUTATION,\n UPDATE_USER_MUTATION,\n} from \"../../mutations/user\";\n\nexport const useCreateUser = () => {\n const [createUser, { loading, error }] = useMutation<{\n createUser: SafeUserType;\n }>(CREATE_USER_MUTATION);\n\n return { createUser, error, loading };\n};\n\nexport const useUpdateUser = () => {\n const [updateUser, { loading, error }] = useMutation<{\n updateUser: SafeUserType;\n }>(UPDATE_USER_MUTATION, {\n awaitRefetchQueries: true,\n refetchQueries: (mutationResult) => {\n // Extract userId from the mutation response\n const userId = mutationResult?.data?.updateUser?._id;\n\n if (!userId) return [];\n\n return [{ query: GET_USER, variables: { _id: userId } }];\n },\n });\n\n return { error, loading, updateUser };\n};\n\nexport const useDeleteUser = () => {\n const [deleteUser, { loading, error }] = useMutation(DELETE_USER_MUTATION);\n\n return { deleteUser, error, loading };\n};\n\nexport const useRedeemReward = () => {\n const [redeemReward, { loading, error }] = useMutation<{\n redeemReward: RedeemRewardResponse;\n }>(REDEEM_REWARD_MUTATION, {\n awaitRefetchQueries: true,\n refetchQueries: (mutationResult) => {\n const userId = mutationResult?.data?.redeemReward?.userId;\n\n if (!userId) return [];\n\n return [\n {\n query: GET_USER,\n variables: { _id: userId }, // Pass the userId for refetching\n },\n ];\n },\n });\n\n return { error, loading, redeemReward };\n};\n\nexport const useAddUserFavouriteResource = () => {\n const [addUserFavouriteResource, { loading, error }] = useMutation(\n ADD_USER_FAVOURITE_RESOURCE_MUTATION,\n {\n awaitRefetchQueries: true,\n refetchQueries: [{ query: GET_USER_ACTIVITIES }],\n },\n );\n\n return { addUserFavouriteResource, error, loading };\n};\n\nexport const useRemoveUserFavouriteResource = () => {\n const [removeUserFavouriteResource, { loading, error }] = useMutation(\n REMOVE_USER_FAVOURITE_RESOURCE_MUTATION,\n {\n awaitRefetchQueries: true,\n refetchQueries: [{ query: GET_USER_ACTIVITIES }],\n },\n );\n\n return { error, loading, removeUserFavouriteResource };\n};\n\nexport const useAddUserInterestResource = () => {\n const [addUserInterestResource, { loading, error }] = useMutation(\n ADD_USER_INTEREST_RESOURCE_MUTATION,\n {\n awaitRefetchQueries: true,\n refetchQueries: [{ query: GET_USER_ACTIVITIES }],\n },\n );\n\n return { addUserInterestResource, error, loading };\n};\n\nexport const useRemoveUserInterestResource = () => {\n const [removeUserInterestResource, { loading, error }] = useMutation(\n REMOVE_USER_INTEREST_RESOURCE_MUTATION,\n {\n awaitRefetchQueries: true,\n refetchQueries: [{ query: GET_USER_ACTIVITIES }],\n },\n );\n\n return { error, loading, removeUserInterestResource };\n};\n\nexport const useAddUserGoingResource = () => {\n const [addUserGoingResource, { loading, error }] = useMutation(\n ADD_USER_GOING_RESOURCE_MUTATION,\n {\n awaitRefetchQueries: true,\n refetchQueries: [{ query: GET_USER_ACTIVITIES }],\n },\n );\n\n return { addUserGoingResource, error, loading };\n};\n\nexport const useRemoveUserGoingResource = () => {\n const [removeUserGoingResource, { loading, error }] = useMutation(\n REMOVE_USER_GOING_RESOURCE_MUTATION,\n {\n awaitRefetchQueries: true,\n refetchQueries: [{ query: GET_USER_ACTIVITIES }],\n },\n );\n\n return { error, loading, removeUserGoingResource };\n};\n\nexport const useAddUserPresentResource = () => {\n const [addUserPresentResource, { loading, error }] = useMutation(\n ADD_USER_PRESENT_RESOURCE_MUTATION,\n {\n awaitRefetchQueries: true,\n refetchQueries: [{ query: GET_USER_ACTIVITIES }],\n },\n );\n\n return { addUserPresentResource, error, loading };\n};\n\nexport const useRemoveUserPresentResource = () => {\n const [removeUserPresentResource, { loading, error }] = useMutation(\n REMOVE_USER_PRESENT_RESOURCE_MUTATION,\n {\n awaitRefetchQueries: true,\n refetchQueries: [{ query: GET_USER_ACTIVITIES }],\n },\n );\n\n return { error, loading, removeUserPresentResource };\n};\n\nexport const useSelectStandardPackage = () => {\n const [selectStandardPackage, { loading, error }] = useMutation<{\n selectStandardPackage: {\n userId: string;\n message: string;\n licences: UserLicenceType[];\n };\n }>(SELECT_STANDARD_PACKAGE_MUTATION, {\n awaitRefetchQueries: true,\n refetchQueries: (mutationResult) => {\n // Extract userId from the mutation response\n const userId = mutationResult?.data?.selectStandardPackage?.userId;\n\n if (!userId) return [];\n\n return [\n { query: GET_USER, variables: { _id: userId } },\n { query: GET_USER_EVENTS },\n { query: GET_USER_VENDORS },\n ];\n },\n });\n\n return { error, loading, selectStandardPackage };\n};\n","import { gql } from \"@apollo/client\";\n\nimport {\n LICENCE_FIELDS_FRAGMENT,\n USER_FIELDS_FRAGMENT,\n} from \"../queries/global\";\n\nexport const CREATE_USER_MUTATION = gql`\n mutation createUser($input: UserInputType!) {\n createUser(input: $input) {\n ...UserFields\n }\n }\n ${USER_FIELDS_FRAGMENT}\n`;\n\nexport const UPDATE_USER_MUTATION = gql`\n mutation updateUser($_id: ID!, $input: UserInputType!) {\n updateUser(_id: $_id, input: $input) {\n ...UserFields\n }\n }\n ${USER_FIELDS_FRAGMENT}\n`;\n\nexport const DELETE_USER_MUTATION = gql`\n mutation deleteUser($email: String!) {\n deleteUser(email: $email)\n }\n`;\n\nexport const REDEEM_REWARD_MUTATION = gql`\n mutation redeemReward($input: RedeemRewardInputType!) {\n redeemReward(input: $input) {\n message\n userId\n }\n }\n`;\n\nexport const ADD_USER_FAVOURITE_RESOURCE_MUTATION = gql`\n mutation addUserFavouriteResource(\n $resourceId: ID!\n $resourceType: ResourceTypeEnum!\n ) {\n addUserFavouriteResource(\n resourceId: $resourceId\n resourceType: $resourceType\n ) {\n ...UserFields\n }\n }\n ${USER_FIELDS_FRAGMENT}\n`;\n\nexport const REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = gql`\n mutation removeUserFavouriteResource(\n $resourceId: ID!\n $resourceType: ResourceTypeEnum!\n ) {\n removeUserFavouriteResource(\n resourceId: $resourceId\n resourceType: $resourceType\n ) {\n ...UserFields\n }\n }\n ${USER_FIELDS_FRAGMENT}\n`;\n\nexport const ADD_USER_INTEREST_RESOURCE_MUTATION = gql`\n mutation addUserInterestResource($input: UserActivityInputType!) {\n addUserInterestResource(input: $input) {\n ...UserFields\n }\n }\n ${USER_FIELDS_FRAGMENT}\n`;\n\nexport const REMOVE_USER_INTEREST_RESOURCE_MUTATION = gql`\n mutation removeUserInterestResource($input: UserActivityInputType!) {\n removeUserInterestResource(input: $input) {\n ...UserFields\n }\n }\n ${USER_FIELDS_FRAGMENT}\n`;\n\nexport const ADD_USER_GOING_RESOURCE_MUTATION = gql`\n mutation addUserGoingResource($input: UserActivityInputType!) {\n addUserGoingResource(input: $input) {\n ...UserFields\n }\n }\n ${USER_FIELDS_FRAGMENT}\n`;\n\nexport const REMOVE_USER_GOING_RESOURCE_MUTATION = gql`\n mutation removeUserGoingResource($input: UserActivityInputType!) {\n removeUserGoingResource(input: $input) {\n ...UserFields\n }\n }\n ${USER_FIELDS_FRAGMENT}\n`;\n\nexport const ADD_USER_PRESENT_RESOURCE_MUTATION = gql`\n mutation addUserPresentResource($input: UserActivityInputType!) {\n addUserPresentResource(input: $input) {\n ...UserFields\n }\n }\n ${USER_FIELDS_FRAGMENT}\n`;\n\nexport const REMOVE_USER_PRESENT_RESOURCE_MUTATION = gql`\n mutation removeUserPresentResource($input: UserActivityInputType!) {\n removeUserPresentResource(input: $input) {\n ...UserFields\n }\n }\n ${USER_FIELDS_FRAGMENT}\n`;\n\nexport const SELECT_STANDARD_PACKAGE_MUTATION = gql`\n mutation selectStandardPackage($selectedLicence: LicencesEnumType!) {\n selectStandardPackage(selectedLicence: $selectedLicence) {\n licences {\n ...LicenceFields\n }\n userId\n message\n }\n }\n ${LICENCE_FIELDS_FRAGMENT}\n`;\n","import { useQuery } from \"@apollo/client\";\n\nimport {\n EventListItemType,\n EventType,\n PartnerType,\n VendorType,\n ResourceByUser,\n SafeUserType,\n} from \"src/types\";\n\nimport {\n GET_USER,\n GET_USER_ACTIVITIES,\n GET_USER_EVENTS,\n GET_USER_PARTNERS,\n GET_USER_RESOURCES,\n GET_USER_VENDORS,\n GET_USERS,\n} from \"../../queries/user\";\n\nexport const useGetUsers = () => {\n const { loading, error, data, refetch } = useQuery<{ users: SafeUserType[] }>(\n GET_USERS,\n {\n fetchPolicy: \"network-only\",\n },\n );\n\n const users = data?.users || [];\n\n return { error, loading, refetch, users };\n};\n\nexport const useGetUser = (_id: string) => {\n const { loading, error, data, refetch } = useQuery<{ user: SafeUserType }>(\n GET_USER,\n {\n fetchPolicy: \"network-only\",\n skip: !_id || _id === \"\",\n variables: { _id },\n },\n );\n\n const user = data?.user;\n\n return { error, loading, refetch, user };\n};\n\nexport const useGetUserEvents = () => {\n const { loading, error, data, refetch } = useQuery<{\n userEvents: EventType[];\n }>(GET_USER_EVENTS, {\n fetchPolicy: \"network-only\",\n });\n\n const userEvents = data?.userEvents || [];\n\n return { error, loading, refetch, userEvents };\n};\n\nexport const useGetUserVendors = () => {\n const { loading, error, data, refetch } = useQuery<{\n userVendors: VendorType[];\n }>(GET_USER_VENDORS, {\n fetchPolicy: \"network-only\",\n });\n\n const userVendors = data?.userVendors || [];\n\n return { error, loading, refetch, userVendors };\n};\n\nexport const useGetUserPartners = () => {\n const { loading, error, data, refetch } = useQuery<{\n userPartners: PartnerType[];\n }>(GET_USER_PARTNERS, {\n fetchPolicy: \"network-only\",\n });\n\n const userPartners = data?.userPartners || [];\n\n return { error, loading, refetch, userPartners };\n};\n\nexport const useGetUserActivities = () => {\n const { loading, error, data, refetch } = useQuery<{\n userActivities: {\n favourites: {\n events: EventListItemType[];\n partners: PartnerType[];\n vendors: VendorType[];\n };\n going: {\n events: EventListItemType[];\n };\n interested: {\n events: EventListItemType[];\n };\n present: {\n events: EventListItemType[];\n };\n };\n }>(GET_USER_ACTIVITIES, {\n fetchPolicy: \"network-only\",\n });\n\n const userActivities = {\n favourites: {\n events: data?.userActivities.favourites.events || [],\n partners: data?.userActivities.favourites.partners || [],\n vendors: data?.userActivities.favourites.vendors || [],\n },\n going: {\n events: data?.userActivities.going.events || [],\n },\n interested: {\n events: data?.userActivities.interested.events || [],\n },\n present: {\n events: data?.userActivities.present.events || [],\n },\n };\n\n return { error, loading, refetch, userActivities };\n};\n\nexport const useGetUserResources = (userId: string) => {\n const { loading, error, data, refetch } = useQuery<{\n userResources: {\n resources: ResourceByUser[];\n };\n }>(GET_USER_RESOURCES, {\n fetchPolicy: \"network-only\",\n skip: !userId || userId === \"\",\n variables: { userId },\n });\n\n const userResources = data?.userResources.resources || [];\n\n return { error, loading, refetch, userResources };\n};\n","import { useMutation } from \"@apollo/client\";\n\nimport {\n CREATE_AD_MUTATION,\n DELETE_AD_MUTATION,\n UPDATE_AD_MUTATION,\n} from \"src/graphql/mutations/ad\";\nimport { GET_ADS } from \"src/graphql/queries/ad\";\n\nexport const useCreateAd = () => {\n const [createAd, { loading, error }] = useMutation(CREATE_AD_MUTATION, {\n awaitRefetchQueries: true,\n refetchQueries: [{ query: GET_ADS }],\n });\n\n return {\n createAd,\n error,\n loading,\n };\n};\n\nexport const useUpdateAd = () => {\n const [updateAd, { loading, error }] = useMutation(UPDATE_AD_MUTATION, {\n awaitRefetchQueries: true,\n refetchQueries: [{ query: GET_ADS }],\n });\n\n return {\n error,\n loading,\n updateAd,\n };\n};\n\nexport const useDeleteAd = () => {\n const [deleteAd, { loading, error }] = useMutation(DELETE_AD_MUTATION, {\n awaitRefetchQueries: true,\n refetchQueries: [{ query: GET_ADS }],\n });\n\n return {\n deleteAd,\n error,\n loading,\n };\n};\n","import { gql } from \"@apollo/client\";\n\nimport { AD_FIELDS_FRAGMENT } from \"../queries/ad\";\n\nexport const CREATE_AD_MUTATION = gql`\n mutation createAd($input: AdInputType!) {\n createAd(input: $input) {\n ...AdFields\n }\n }\n ${AD_FIELDS_FRAGMENT}\n`;\n\nexport const UPDATE_AD_MUTATION = gql`\n mutation updateAd($_id: ID!, $input: AdInputType!) {\n updateAd(_id: $_id, input: $input) {\n ...AdFields\n }\n }\n ${AD_FIELDS_FRAGMENT}\n`;\n\nexport const DELETE_AD_MUTATION = gql`\n mutation deleteAd($_id: ID!) {\n deleteAd(_id: $_id)\n }\n`;\n","import { gql } from \"@apollo/client\";\n\nexport const AD_FIELDS_FRAGMENT = gql`\n fragment AdFields on AdType {\n _id\n active\n clicks\n createdAt\n end\n impressions\n resource {\n adDescription\n adImage\n adStyle\n adTitle\n adType\n resourceId\n resourceSlug\n resourceName\n resourceRegion\n resourceType\n }\n showOn\n start\n status\n targetRegion\n updatedAt\n }\n`;\n\nexport const GET_ADS = gql`\n query getAds {\n ads {\n ...AdFields\n }\n }\n ${AD_FIELDS_FRAGMENT}\n`;\n\nexport const GET_AD = gql`\n query getAd($_id: ID!) {\n ad(_id: $_id) {\n ...AdFields\n }\n }\n ${AD_FIELDS_FRAGMENT}\n`;\n\nexport const GET_ADS_BY_REGION = gql`\n query getAdsByRegion($region: String!, $status: AdStatusTypeEnum) {\n adsByRegion(region: $region, status: $status) {\n ...AdFields\n }\n }\n ${AD_FIELDS_FRAGMENT}\n`;\n","import { useQuery } from \"@apollo/client\";\n\nimport { GET_ADS, GET_AD, GET_ADS_BY_REGION } from \"src/graphql/queries/ad\";\nimport { AdType, EnumAdStatus } from \"src/types\";\n\nexport const useGetAds = () => {\n const { data, loading, error, refetch } = useQuery<{ ads: AdType[] }>(\n GET_ADS,\n {\n fetchPolicy: \"no-cache\",\n },\n );\n\n return {\n ads: data?.ads || [],\n error,\n loading,\n refetch,\n };\n};\n\nexport const useGetAd = (_id: string) => {\n const { data, loading, error, refetch } = useQuery<{ ad: AdType }>(GET_AD, {\n fetchPolicy: \"no-cache\",\n skip: !_id || _id === \"\",\n variables: { _id },\n });\n\n return {\n ad: data?.ad,\n error,\n loading,\n refetch,\n };\n};\n\nexport const useGetAdsByRegion = (region: string, status?: EnumAdStatus) => {\n const { data, loading, error, refetch } = useQuery<{\n adsByRegion: AdType[];\n }>(GET_ADS_BY_REGION, {\n fetchPolicy: \"no-cache\",\n skip: !region || region === \"\",\n variables: { region, status },\n });\n\n return {\n adsByRegion: data?.adsByRegion || [],\n error,\n loading,\n refetch,\n };\n};\n","import { useMutation } from \"@apollo/client\";\n\nimport { CREATE_RESOURCE_ACTIVITY_MUTATION } from \"src/graphql/mutations/resourceActivities\";\n\nexport const useCreateResourceActivity = () => {\n const [createResourceActivity, { loading, error }] = useMutation(\n CREATE_RESOURCE_ACTIVITY_MUTATION,\n );\n\n return { createResourceActivity, error, loading };\n};\n","import { gql } from \"@apollo/client\";\n\nexport const CREATE_RESOURCE_ACTIVITY_MUTATION = gql`\n mutation createResourceActivity($input: ResourceActivityInputType!) {\n createResourceActivity(input: $input)\n }\n`;\n","import { useQuery } from \"@apollo/client\";\n\nimport { EnumResourceType } from \"src/enums\";\nimport { GET_RESOURCE_ACTIVITY } from \"src/graphql/queries/resourceActivities\";\nimport { ResourceActivityType } from \"src/types\";\n\nexport const useGetResourceActivity = (\n resourceId: string,\n resourceType: EnumResourceType,\n) => {\n const { data, loading, error, refetch } = useQuery<{\n resourceActivity: ResourceActivityType;\n }>(GET_RESOURCE_ACTIVITY, {\n fetchPolicy: \"network-only\",\n variables: { resourceId, resourceType },\n });\n\n return {\n error,\n loading,\n refetch,\n resourceActivity: data?.resourceActivity || null,\n };\n};\n","import { gql } from \"@apollo/client\";\n\nimport { LOCATION_GEO_FIELDS_FRAGMENT } from \"./global\";\n\nconst RESOURCE_ACTIVITY_FIELDS_FRAGMENT = gql`\n fragment ResourceActivityFields on ResourceActivityType {\n resourceId\n resourceType\n activity {\n activityType\n location {\n ...LocationGeoFields\n }\n dateStatus\n startDate\n startTime\n timestamp\n userAgent\n userId\n }\n }\n ${LOCATION_GEO_FIELDS_FRAGMENT}\n`;\n\nexport const GET_RESOURCE_ACTIVITY = gql`\n query getResourceActivity(\n $resourceType: ResourceTypeEnum!\n $resourceId: ID!\n ) {\n resourceActivity(resourceType: $resourceType, resourceId: $resourceId) {\n ...ResourceActivityFields\n }\n }\n ${RESOURCE_ACTIVITY_FIELDS_FRAGMENT}\n`;\n","import { useMutation } from \"@apollo/client\";\n\nimport {\n GET_USER,\n GET_USER_EVENTS,\n GET_USER_VENDORS,\n} from \"src/graphql/queries/user\";\nimport { UserLicenceType } from \"src/types\";\n\nimport {\n CANCEL_SUBSCRIPTION_MUTATION,\n CREATE_CHECKOUT_SESSION_MUTATION,\n CREATE_CUSTOMER_PORTAL,\n SELECT_PACKAGE_MUTATION,\n UPDATE_SUBSCRIPTION_PLAN_MUTATION,\n} from \"../../mutations/stripe\";\n\nexport const useCreateCheckoutSession = () => {\n const [createCheckoutSession, { loading, error }] = useMutation(\n CREATE_CHECKOUT_SESSION_MUTATION,\n );\n\n return { createCheckoutSession, error, loading };\n};\n\nexport const useCancelSubscription = () => {\n const [cancelSubscription, { loading, error }] = useMutation(\n CANCEL_SUBSCRIPTION_MUTATION,\n );\n\n return { cancelSubscription, error, loading };\n};\n\nexport const useUpdateSubscriptionPlan = () => {\n const [updateSubscriptionPlan, { loading, error }] = useMutation(\n UPDATE_SUBSCRIPTION_PLAN_MUTATION,\n );\n\n return { error, loading, updateSubscriptionPlan };\n};\n\nexport const useCreateCustomerPortal = () => {\n const [createCustomerPortal, { loading, error }] = useMutation(\n CREATE_CUSTOMER_PORTAL,\n );\n\n return { createCustomerPortal, error, loading };\n};\n\nexport const useSelectPackage = () => {\n const [selectPackage, { loading, error }] = useMutation<{\n selectPackage: {\n checkoutUrl?: string;\n userId: string;\n message: string;\n licences: UserLicenceType[];\n };\n }>(SELECT_PACKAGE_MUTATION, {\n awaitRefetchQueries: true,\n refetchQueries: (mutationResult) => {\n // Extract userId from the mutation response\n const userId = mutationResult?.data?.selectPackage?.userId;\n\n if (!userId) return [];\n\n return [\n { query: GET_USER, variables: { _id: userId } },\n { query: GET_USER_EVENTS },\n { query: GET_USER_VENDORS },\n ];\n },\n });\n\n return { error, loading, selectPackage };\n};\n","import { gql } from \"@apollo/client\";\n\nimport { LICENCE_FIELDS_FRAGMENT } from \"../queries/global\";\n\nexport const CREATE_CHECKOUT_SESSION_MUTATION = gql`\n mutation createCheckoutSession(\n $planId: LicencesEnumType!\n $billingPeriod: BillingPeriodEnumType\n ) {\n createCheckoutSession(planId: $planId, billingPeriod: $billingPeriod) {\n sessionId\n checkoutUrl\n }\n }\n`;\n\nexport const CANCEL_SUBSCRIPTION_MUTATION = gql`\n mutation cancelSubscription {\n cancelSubscription\n }\n`;\n\nexport const UPDATE_SUBSCRIPTION_PLAN_MUTATION = gql`\n mutation updateSubscriptionPlan(\n $newPlanId: LicencesEnumType!\n $billingPeriod: BillingPeriodEnumType\n ) {\n updateSubscriptionPlan(\n newPlanId: $newPlanId\n billingPeriod: $billingPeriod\n ) {\n subscriptionId\n status\n priceId\n currentPlan\n }\n }\n`;\n\nexport const CREATE_CUSTOMER_PORTAL = gql`\n mutation createCustomerPortal($returnUrl: String) {\n createCustomerPortal(returnUrl: $returnUrl) {\n portalUrl\n }\n }\n`;\n\nexport const SELECT_PACKAGE_MUTATION = gql`\n mutation selectPackage(\n $billingPeriod: BillingPeriodEnumType\n $selectedLicence: LicencesEnumType!\n $useStripe: Boolean\n ) {\n selectPackage(\n billingPeriod: $billingPeriod\n selectedLicence: $selectedLicence\n useStripe: $useStripe\n ) {\n checkoutUrl\n licences {\n ...LicenceFields\n }\n userId\n message\n }\n }\n ${LICENCE_FIELDS_FRAGMENT}\n`;\n","import { useQuery } from \"@apollo/client\";\n\nimport {\n SubscriptionStatusData,\n SubscriptionPlansResponse,\n} from \"../../../types/user\";\nimport {\n GET_SUBSCRIPTION_STATUS,\n GET_SUBSCRIPTION_PLANS,\n} from \"../../queries/stripe\";\n\nexport const useGetSubscriptionStatus = () => {\n const { data, loading, error, refetch } = useQuery<{\n getSubscriptionStatus: SubscriptionStatusData;\n }>(GET_SUBSCRIPTION_STATUS);\n\n return {\n data: data?.getSubscriptionStatus,\n error,\n loading,\n refetch,\n };\n};\n\nexport const useGetSubscriptionPlans = () => {\n const { data, loading, error, refetch } = useQuery<{\n getSubscriptionPlans: SubscriptionPlansResponse;\n }>(GET_SUBSCRIPTION_PLANS);\n\n return {\n data: data?.getSubscriptionPlans,\n error,\n loading,\n refetch,\n };\n};\n","import { gql } from \"@apollo/client\";\n\nexport const GET_SUBSCRIPTION_STATUS = gql`\n query getSubscriptionStatus {\n getSubscriptionStatus {\n subscriptionId\n status\n priceId\n currentPlan\n }\n }\n`;\n\nexport const GET_SUBSCRIPTION_PLANS = gql`\n query getSubscriptionPlans {\n getSubscriptionPlans {\n plans {\n name\n description\n licenceType\n billingPeriod\n stripeProductId\n stripePriceId\n isEligibleForDiscount\n pricing {\n basePrice\n discountedPrice\n hasDiscount\n discountPercent\n discountAmount\n currency\n formattedBasePrice\n formattedDiscountedPrice\n }\n }\n isNewUser\n isTester\n appliedDiscountType\n }\n }\n`;\n","import { useMutation } from \"@apollo/client\";\n\nimport {\n CREATE_PARTNER_MUTATION,\n DELETE_PARTNER_MUTATION,\n UPDATE_PARTNER_MUTATION,\n} from \"src/graphql/mutations/partner\";\nimport { GET_USER_PARTNERS } from \"src/graphql/queries/user\";\n\nexport const useCreatePartner = () => {\n const [createPartner, { loading, error }] = useMutation(\n CREATE_PARTNER_MUTATION,\n {\n awaitRefetchQueries: true,\n refetchQueries: [{ query: GET_USER_PARTNERS }],\n },\n );\n\n return { createPartner, error, loading };\n};\n\nexport const useUpdatePartner = () => {\n const [updatePartner, { loading, error }] = useMutation(\n UPDATE_PARTNER_MUTATION,\n {\n awaitRefetchQueries: true,\n refetchQueries: [{ query: GET_USER_PARTNERS }],\n },\n );\n\n return { error, loading, updatePartner };\n};\n\nexport const useDeletePartner = () => {\n const [deletePartner, { loading, error }] = useMutation(\n DELETE_PARTNER_MUTATION,\n {\n awaitRefetchQueries: true,\n refetchQueries: [{ query: GET_USER_PARTNERS }],\n },\n );\n\n return { deletePartner, error, loading };\n};\n","import { gql } from \"@apollo/client\";\n\nimport { PARTNER } from \"../queries/partner\";\n\nexport const CREATE_PARTNER_MUTATION = gql`\n mutation createPartner($input: PartnerInputType!) {\n createPartner(input: $input) {\n ...PartnerFields\n }\n }\n ${PARTNER}\n`;\n\nexport const UPDATE_PARTNER_MUTATION = gql`\n mutation updatePartner($_id: ID!, $input: PartnerInputType!) {\n updatePartner(_id: $_id, input: $input) {\n ...PartnerFields\n }\n }\n ${PARTNER}\n`;\n\nexport const DELETE_PARTNER_MUTATION = gql`\n mutation deletePartner($_id: ID!) {\n deletePartner(_id: $_id)\n }\n`;\n","import { useQuery } from \"@apollo/client\";\n\nimport { PartnerType } from \"src/types/partner\";\n\nimport { UseGetResourcesByRegionOptions } from \"../../../types/global\";\nimport {\n GET_PARTNER,\n GET_PARTNERS,\n GET_PARTNERS_BY_REGION,\n SEARCH_PARTNERS,\n} from \"../../queries/partner\";\n\nexport const useGetPartners = () => {\n const { loading, error, data, refetch } = useQuery<{\n partners: PartnerType[];\n }>(GET_PARTNERS, {\n fetchPolicy: \"network-only\",\n });\n const partners = data?.partners || [];\n\n return {\n error,\n loading,\n partners,\n refetch,\n };\n};\n\nexport const useGetPartner = (_id: string) => {\n const { loading, error, data, refetch } = useQuery<{ partner: PartnerType }>(\n GET_PARTNER,\n {\n fetchPolicy: \"network-only\",\n skip: !_id || _id === \"\",\n variables: { _id },\n },\n );\n\n const partner = data?.partner;\n\n return { error, loading, partner, refetch };\n};\n\nexport const useGetPartnersByRegion = (\n region: string,\n options?: UseGetResourcesByRegionOptions,\n) => {\n const variables = {\n options,\n region,\n };\n const { loading, error, data, refetch, fetchMore } = useQuery<{\n partnersByRegion: PartnerType[];\n }>(GET_PARTNERS_BY_REGION, {\n fetchPolicy: \"network-only\",\n variables,\n });\n\n const partnersByRegion = data?.partnersByRegion || [];\n\n return {\n error,\n fetchMore,\n loading,\n partnersByRegion,\n refetch,\n };\n};\n\nexport const useSearchPartners = (search: string, region: string) => {\n const { loading, error, data, refetch } = useQuery<{\n partnersSearch: PartnerType[];\n }>(SEARCH_PARTNERS, {\n fetchPolicy: \"network-only\",\n skip: search.length < 3,\n variables: { region, search },\n });\n\n const partnersSearch = data?.partnersSearch || [];\n\n return { error, loading, partnersSearch, refetch };\n};\n","import { useMutation } from \"@apollo/client\";\n\nimport {\n CREATE_POST_MUTATION,\n DELETE_POST_MUTATION,\n UPDATE_POST_MUTATION,\n} from \"src/graphql/mutations/post\";\nimport { GET_POSTS } from \"src/graphql/queries/post\";\n\nexport const useCreatePost = () => {\n const [createPost, { loading, error }] = useMutation(CREATE_POST_MUTATION, {\n awaitRefetchQueries: true,\n refetchQueries: [{ query: GET_POSTS }],\n });\n\n return { createPost, error, loading };\n};\n\nexport const useUpdatePost = () => {\n const [updatePost, { loading, error }] = useMutation(UPDATE_POST_MUTATION, {\n awaitRefetchQueries: true,\n refetchQueries: [{ query: GET_POSTS }],\n });\n\n return { error, loading, updatePost };\n};\n\nexport const useDeletePost = () => {\n const [deletePost, { loading, error }] = useMutation(DELETE_POST_MUTATION, {\n awaitRefetchQueries: true,\n refetchQueries: [{ query: GET_POSTS }],\n });\n\n return { deletePost, error, loading };\n};\n","import { gql } from \"@apollo/client\";\n\nimport { POST_FIELDS_FRAGMENT } from \"../queries/post\";\n\nexport const CREATE_POST_MUTATION = gql`\n mutation createPost($input: PostInputType!) {\n createPost(input: $input) {\n ...PostFields\n }\n }\n ${POST_FIELDS_FRAGMENT}\n`;\n\nexport const UPDATE_POST_MUTATION = gql`\n mutation updatePost($_id: ID!, $input: PostInputType!) {\n updatePost(_id: $_id, input: $input) {\n ...PostFields\n }\n }\n ${POST_FIELDS_FRAGMENT}\n`;\n\nexport const DELETE_POST_MUTATION = gql`\n mutation deletePost($_id: ID!) {\n deletePost(_id: $_id)\n }\n`;\n","import { useQuery } from \"@apollo/client\";\n\nimport {\n GET_POST,\n GET_POSTS,\n GET_POSTS_BY_TYPE,\n} from \"src/graphql/queries/post\";\nimport { EnumPostType, PostType } from \"src/types\";\n\nexport const useGetPosts = () => {\n const { data, loading, error, refetch } = useQuery<{\n posts: PostType[];\n }>(GET_POSTS, {\n fetchPolicy: \"network-only\",\n });\n\n return { error, loading, posts: data?.posts || [], refetch };\n};\n\nexport const useGetPost = (_id: string) => {\n const { data, loading, error, refetch } = useQuery<{\n post: PostType;\n }>(GET_POST, {\n fetchPolicy: \"network-only\",\n skip: !_id || _id === \"\",\n variables: { _id },\n });\n\n return { error, loading, post: data?.post, refetch };\n};\n\nexport const useGetPostsByType = (postType: EnumPostType) => {\n const { data, loading, error, refetch } = useQuery<{\n postsByType: PostType[];\n }>(GET_POSTS_BY_TYPE, {\n fetchPolicy: \"network-only\",\n skip: !postType,\n variables: { postType },\n });\n\n return { error, loading, postsByType: data?.postsByType || [], refetch };\n};\n","import { useMutation } from \"@apollo/client\";\n\nimport {\n CRAWL_GOOGLE_MARKETS_MUTATION,\n UPDATE_APP_SETTINGS_MUTATION,\n UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION,\n} from \"src/graphql/mutations/appSettings\";\nimport { GET_APP_SETTINGS } from \"src/graphql/queries/appSettings\";\n\nexport const useUpdateAppSettings = () => {\n const [updateAppSettings, { loading, error }] = useMutation(\n UPDATE_APP_SETTINGS_MUTATION,\n {\n awaitRefetchQueries: true,\n refetchQueries: [{ query: GET_APP_SETTINGS }],\n },\n );\n\n return { error, loading, updateAppSettings };\n};\n\nexport const useCrawlGoogleMarkets = () => {\n const [crawlGoogleMarkets, { loading, error }] = useMutation<{\n crawlGoogleMarkets: {\n message: string;\n };\n }>(CRAWL_GOOGLE_MARKETS_MUTATION);\n\n return { crawlGoogleMarkets, error, loading };\n};\n\nexport const useUpdateGoogleImportedMarkets = () => {\n const [updateGoogleImportedMarkets, { loading, error }] = useMutation<{\n updateGoogleImportedMarkets: {\n message: string;\n };\n }>(UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION);\n\n return { error, loading, updateGoogleImportedMarkets };\n};\n","import { gql } from \"@apollo/client\";\n\nexport const UPDATE_APP_SETTINGS_MUTATION = gql`\n mutation updateAppSettings($input: AppSettingsInputType!) {\n updateAppSettings(input: $input)\n }\n`;\n\nexport const CRAWL_GOOGLE_MARKETS_MUTATION = gql`\n mutation crawlGoogleMarkets {\n crawlGoogleMarkets {\n message\n }\n }\n`;\n\nexport const UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION = gql`\n mutation updateGoogleImportedMarkets {\n updateGoogleImportedMarkets {\n message\n }\n }\n`;\n","import { gql } from \"@apollo/client\";\n\nexport const APP_SETTINGS_FIELDS_FRAGMENT = gql`\n fragment AppSettingsFields on AppSettingsType {\n _id\n appVersion\n createdAt\n isOfflineMode\n key\n updatedAt\n }\n`;\n\nexport const GET_APP_SETTINGS = gql`\n query getAppSettings {\n appSettings {\n ...AppSettingsFields\n }\n }\n ${APP_SETTINGS_FIELDS_FRAGMENT}\n`;\n","import { useQuery } from \"@apollo/client\";\n\nimport { GET_APP_SETTINGS } from \"src/graphql/queries/appSettings\";\nimport { AppSettingsType } from \"src/types/appSettings\";\n\nexport const useGetAppSettings = () => {\n const { loading, error, data, refetch } = useQuery<{\n appSettings: AppSettingsType;\n }>(GET_APP_SETTINGS, {\n fetchPolicy: \"network-only\",\n });\n\n const appSettings = data?.appSettings || null;\n\n return { appSettings, error, loading, refetch };\n};\n","import { useMutation } from \"@apollo/client\";\n\nimport {\n LEAVE_GAME_MUTATION,\n START_GAME_MUTATION,\n UPDATE_DAILY_CLUE_MUTATION,\n UPDATE_PUZZLE_GAME_MUTATION,\n} from \"src/graphql/mutations/game\";\nimport { GET_GAME, GET_GAMES } from \"src/graphql/queries/game/game\";\nimport { GET_USER } from \"src/graphql/queries/user\";\nimport { GameDocType } from \"src/types\";\n\nexport const useStartGame = () => {\n const [startGame, { loading, error }] = useMutation<{\n startGame: GameDocType;\n }>(START_GAME_MUTATION, {\n awaitRefetchQueries: true,\n refetchQueries: (mutationResult) => {\n // Extract gameId from the mutation response\n const gameId = mutationResult?.data?.startGame?._id;\n const userId = mutationResult?.data?.startGame?.owner?.userId;\n\n if (!gameId || !userId) return [];\n\n return [\n {\n query: GET_GAME,\n variables: { _id: gameId }, // Pass the gameId for refetching\n },\n {\n query: GET_USER,\n variables: { _id: userId }, // Pass the userId for refetching\n },\n ];\n },\n });\n\n return { error, loading, startGame };\n};\n\nexport const useLeaveGame = () => {\n const [leaveGame, { loading, error }] = useMutation(LEAVE_GAME_MUTATION, {\n awaitRefetchQueries: true,\n refetchQueries: [\n {\n query: GET_GAMES,\n },\n ],\n });\n\n return { error, leaveGame, loading };\n};\n\nexport const useUpdateDailyClueGame = () => {\n const [updateDailyClueGame, { loading, error }] = useMutation<{\n updateDailyClueGame: GameDocType;\n }>(UPDATE_DAILY_CLUE_MUTATION, {\n awaitRefetchQueries: true,\n refetchQueries: (mutationResult) => {\n // Extract gameId from the mutation response\n const gameId = mutationResult?.data?.updateDailyClueGame?._id;\n\n if (!gameId) return [];\n\n return [\n {\n query: GET_GAME,\n variables: { _id: gameId }, // Pass the gameId for refetching\n },\n ];\n },\n });\n\n return { error, loading, updateDailyClueGame };\n};\n\nexport const useUpdatePuzzleGame = () => {\n const [updatePuzzleGame, { loading, error }] = useMutation<{\n updatePuzzleGame: GameDocType;\n }>(UPDATE_PUZZLE_GAME_MUTATION, {\n awaitRefetchQueries: true,\n refetchQueries: (mutationResult) => {\n // Extract gameId from the mutation response\n const gameId = mutationResult?.data?.updatePuzzleGame?._id;\n\n if (!gameId) return [];\n\n return [\n {\n query: GET_GAME,\n variables: { _id: gameId }, // Pass the gameId for refetching\n },\n ];\n },\n });\n\n return { error, loading, updatePuzzleGame };\n};\n","import { gql } from \"@apollo/client\";\n\nimport { GAME_DOC_FIELDS_FRAGMENT } from \"../queries/game/game\";\n\nexport const START_GAME_MUTATION = gql`\n mutation startGame($input: BaseGameInputType!) {\n startGame(input: $input) {\n ...GameDocFields\n }\n }\n ${GAME_DOC_FIELDS_FRAGMENT}\n`;\n\nexport const LEAVE_GAME_MUTATION = gql`\n mutation leaveGame(\n $_id: ID!\n $gameType: GameTypeEnumType!\n $gameTypeId: String!\n ) {\n leaveGame(_id: $_id, gameType: $gameType, gameTypeId: $gameTypeId)\n }\n`;\n\nexport const UPDATE_DAILY_CLUE_MUTATION = gql`\n mutation updateDailyClueGame(\n $_id: ID!\n $foundLetter: String!\n $gameType: GameTypeEnumType!\n $gameTypeId: String!\n ) {\n updateDailyClueGame(\n _id: $_id\n foundLetter: $foundLetter\n gameType: $gameType\n gameTypeId: $gameTypeId\n ) {\n ...GameDocFields\n }\n }\n ${GAME_DOC_FIELDS_FRAGMENT}\n`;\n\nexport const UPDATE_PUZZLE_GAME_MUTATION = gql`\n mutation updatePuzzleGame(\n $_id: ID!\n $answeredQuestions: [PuzzleAnsweredQuestionInputType!]!\n $gameType: GameTypeEnumType!\n $gameTypeId: String!\n ) {\n updatePuzzleGame(\n _id: $_id\n answeredQuestions: $answeredQuestions\n gameType: $gameType\n gameTypeId: $gameTypeId\n ) {\n ...GameDocFields\n }\n }\n ${GAME_DOC_FIELDS_FRAGMENT}\n`;\n","import { gql } from \"@apollo/client\";\n\nimport { OWNER_FIELDS_FRAGMENT } from \"../global\";\n\nimport {\n DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT,\n GAME_DATE_FIELDS_FRAGMENT,\n} from \"./dailyClue\";\nimport { PUZZLE_GAME_DATA_FIELDS_FRAGMENT } from \"./puzzleGame\";\n\nconst GAME_HISTORY_FIELDS_FRAGMENT = gql`\n fragment GameHistoryFields on GameHistoryType {\n createdAt\n gameDate {\n ...GameDateFields\n }\n gameStatus\n gameTitle\n gameType\n gameTypeId\n overallGamePoints\n pointsEarned\n }\n ${GAME_DATE_FIELDS_FRAGMENT}\n`;\n\nconst GAME_DATA_FIELDS_FRAGMENT = gql`\n fragment GameDataFields on GameDataType {\n dailyClue {\n ...DailyClueGameDataFields\n }\n miniQuiz {\n ...PuzzleGameDataFields\n }\n oddOneOut {\n ...PuzzleGameDataFields\n }\n }\n ${DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT}\n ${PUZZLE_GAME_DATA_FIELDS_FRAGMENT}\n`;\n\nconst GAME_FIELDS_FRAGMENT = gql`\n fragment GameFields on GameType {\n _id\n active\n createdAt\n gameData {\n ...GameDataFields\n }\n gameHistory {\n ...GameHistoryFields\n }\n gameType\n gameTypeId\n gameTitle\n updatedAt\n }\n ${GAME_DATA_FIELDS_FRAGMENT}\n ${GAME_HISTORY_FIELDS_FRAGMENT}\n`;\n\nexport const GAME_DOC_FIELDS_FRAGMENT = gql`\n fragment GameDocFields on GameDocType {\n _id\n active\n createdAt\n deletedAt\n games {\n ...GameFields\n }\n owner {\n ...OwnerFields\n }\n points\n updatedAt\n }\n ${OWNER_FIELDS_FRAGMENT}\n ${GAME_FIELDS_FRAGMENT}\n`;\n\nexport const GET_GAMES = gql`\n query getGames {\n games {\n ...GameDocFields\n }\n }\n ${GAME_DOC_FIELDS_FRAGMENT}\n`;\n\nexport const GET_GAME = gql`\n query getGame($_id: ID) {\n game(_id: $_id) {\n ...GameDocFields\n }\n }\n ${GAME_DOC_FIELDS_FRAGMENT}\n`;\n\nexport const GET_GAME_LEADERBOARD = gql`\n query getGameLeaderboard {\n gameLeaderboard {\n gameHistory {\n ...GameHistoryFields\n }\n overallPoints\n owner {\n ...OwnerFields\n }\n }\n }\n ${OWNER_FIELDS_FRAGMENT}\n ${GAME_HISTORY_FIELDS_FRAGMENT}\n`;\n","import { useQuery } from \"@apollo/client\";\n\nimport {\n GET_GAME,\n GET_GAME_LEADERBOARD,\n GET_GAMES,\n} from \"src/graphql/queries/game/game\";\nimport { GameLeaderboard, GameDocType } from \"src/types/game\";\n\nexport const useGetGames = () => {\n const { loading, error, data, refetch } = useQuery<{\n games: GameDocType[];\n }>(GET_GAMES, {\n fetchPolicy: \"network-only\",\n });\n\n const games = data?.games || [];\n\n return { error, games, loading, refetch };\n};\n\nexport const useGetGame = (_id?: string | null) => {\n const { loading, error, data, refetch } = useQuery<{\n game: GameDocType | null;\n }>(GET_GAME, {\n fetchPolicy: \"network-only\",\n skip: !_id,\n variables: _id ? { _id } : undefined,\n });\n\n const game = data?.game || null;\n\n return { error, game, loading, refetch };\n};\n\nexport const useGetGameLeaderboard = () => {\n const { loading, error, data, refetch } = useQuery<{\n gameLeaderboard: GameLeaderboard[];\n }>(GET_GAME_LEADERBOARD, {\n fetchPolicy: \"network-only\",\n });\n\n const gameLeaderboard = data?.gameLeaderboard || [];\n\n return { error, gameLeaderboard, loading, refetch };\n};\n","import { useMutation } from \"@apollo/client\";\n\nimport {\n CREATE_SCHOOL_MUTATION,\n DELETE_SCHOOL_MUTATION,\n REQUEST_MARKETING_MATERIAL_MUTATION,\n UPDATE_SCHOOL_MUTATION,\n} from \"../../mutations/school\";\nimport { GET_SCHOOLS } from \"../../queries/school\";\n\nexport const useCreateSchool = () => {\n const [createSchool, { loading, error }] = useMutation(\n CREATE_SCHOOL_MUTATION,\n {\n awaitRefetchQueries: true,\n refetchQueries: [{ query: GET_SCHOOLS }],\n },\n );\n\n return { createSchool, error, loading };\n};\n\nexport const useUpdateSchool = () => {\n const [updateSchool, { loading, error }] = useMutation(\n UPDATE_SCHOOL_MUTATION,\n {\n awaitRefetchQueries: true,\n refetchQueries: [{ query: GET_SCHOOLS }],\n },\n );\n\n return { error, loading, updateSchool };\n};\n\nexport const useDeleteSchool = () => {\n const [deleteSchool, { loading, error }] = useMutation(\n DELETE_SCHOOL_MUTATION,\n {\n awaitRefetchQueries: true,\n refetchQueries: [{ query: GET_SCHOOLS }],\n },\n );\n return { deleteSchool, error, loading };\n};\n\nexport const useRequestMarketingMaterial = () => {\n const [requestMarketingMaterial, { loading, error }] = useMutation(\n REQUEST_MARKETING_MATERIAL_MUTATION,\n );\n\n return { error, loading, requestMarketingMaterial };\n};\n","import { gql } from \"@apollo/client\";\n\nimport { SCHOOL } from \"../queries/school\";\n\nexport const CREATE_SCHOOL_MUTATION = gql`\n mutation createSchool($input: SchoolInputType!) {\n createSchool(input: $input) {\n ...SchoolFields\n }\n }\n ${SCHOOL}\n`;\n\nexport const UPDATE_SCHOOL_MUTATION = gql`\n mutation updateSchool($_id: ID!, $input: SchoolInputType!) {\n updateSchool(_id: $_id, input: $input) {\n ...SchoolFields\n }\n }\n ${SCHOOL}\n`;\n\nexport const DELETE_SCHOOL_MUTATION = gql`\n mutation deleteSchool($_id: ID!) {\n deleteSchool(_id: $_id)\n }\n`;\n\nexport const REQUEST_MARKETING_MATERIAL_MUTATION = gql`\n mutation requestMarketingMaterial(\n $input: MarketingMaterialRequestInputType!\n ) {\n requestMarketingMaterial(input: $input) {\n message\n }\n }\n`;\n","import { gql } from \"@apollo/client\";\n\nimport {\n CONTACT_DETAILS_FIELDS_FRAGMENT,\n LOCATION_FIELDS_FRAGMENT,\n OWNER_FIELDS_FRAGMENT,\n RESOURCE_IMAGE_FIELDS_FRAGMENT,\n SOCIAL_MEDIA_FIELDS_FRAGMENT,\n TERMS_AGREEMENT_FIELDS_FRAGMENT,\n} from \"./global\";\n\nconst SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT = gql`\n fragment SchoolRegisteredUsersFields on SchoolRegisteredUserType {\n _id\n active\n avatar {\n ...ResourceImageFields\n }\n email\n firstName\n lastName\n }\n ${RESOURCE_IMAGE_FIELDS_FRAGMENT}\n`;\n\nconst SCHOOL_CAMPAIGN_FIELDS_FRAGMENT = gql`\n fragment SchoolCampaignFields on SchoolCampaignType {\n endDate\n name\n startDate\n }\n`;\n\nexport const SCHOOL = gql`\n fragment SchoolFields on SchoolType {\n _id\n active\n campaigns {\n ...SchoolCampaignFields\n }\n contactDetails {\n ...ContactDetailsFields\n }\n location {\n ...LocationFields\n }\n createdAt\n deletedAt\n logo {\n ...ResourceImageFields\n }\n name\n owner {\n ...OwnerFields\n }\n overallPoints\n ranking\n region\n studentCount\n schoolCode\n socialMedia {\n ...SocialMediaFields\n }\n termsAgreement {\n ...TermsAgreementFields\n }\n updatedAt\n }\n ${OWNER_FIELDS_FRAGMENT}\n ${LOCATION_FIELDS_FRAGMENT}\n ${RESOURCE_IMAGE_FIELDS_FRAGMENT}\n ${CONTACT_DETAILS_FIELDS_FRAGMENT}\n ${TERMS_AGREEMENT_FIELDS_FRAGMENT}\n ${SOCIAL_MEDIA_FIELDS_FRAGMENT}\n ${SCHOOL_CAMPAIGN_FIELDS_FRAGMENT}\n`;\n\nexport const GET_SCHOOL = gql`\n query getSchool($_id: ID!) {\n school(_id: $_id) {\n school {\n ...SchoolFields\n }\n users {\n ...SchoolRegisteredUsersFields\n }\n }\n }\n ${SCHOOL}\n ${SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT}\n`;\n\nexport const GET_SCHOOLS = gql`\n query getSchools {\n schools {\n ...SchoolFields\n }\n }\n ${SCHOOL}\n`;\n","import { useQuery } from \"@apollo/client\";\n\nimport { SchoolReturnType, SchoolType } from \"../../../types/school\";\nimport { GET_SCHOOL, GET_SCHOOLS } from \"../../queries/school\";\n\nexport const useGetSchools = () => {\n const { data, loading, error, refetch } = useQuery<{ schools: SchoolType[] }>(\n GET_SCHOOLS,\n {\n fetchPolicy: \"network-only\",\n },\n );\n\n return {\n error,\n loading,\n refetch,\n schools: data?.schools || [],\n };\n};\n\nexport const useGetSchool = (_id: string) => {\n const { data, loading, error, refetch } = useQuery<{\n school: SchoolReturnType;\n }>(GET_SCHOOL, {\n fetchPolicy: \"network-only\",\n skip: !_id,\n variables: { _id },\n });\n\n return {\n error,\n loading,\n refetch,\n school: data?.school || null,\n };\n};\n","import { useQuery } from \"@apollo/client\";\n\nimport { GET_AFFILIATE, GET_AFFILIATES } from \"src/graphql/queries/affiliate\";\nimport { AffiliateType } from \"src/types/affiliate\";\n\nexport const useGetAffiliate = (_id: string) => {\n const { data, loading, error, refetch } = useQuery<{\n affiliate: AffiliateType;\n }>(GET_AFFILIATE, {\n fetchPolicy: \"network-only\",\n skip: !_id || _id === \"\",\n variables: { _id },\n });\n\n const affiliate = data?.affiliate;\n\n return {\n affiliate,\n error,\n loading,\n refetch,\n };\n};\n\nexport const useGetAffiliates = () => {\n const { data, loading, error, refetch } = useQuery<{\n affiliates: AffiliateType[];\n }>(GET_AFFILIATES, {\n fetchPolicy: \"network-only\",\n });\n\n const affiliates = data?.affiliates || [];\n\n return {\n affiliates,\n error,\n loading,\n refetch,\n };\n};\n","import { gql } from \"@apollo/client\";\n\nimport { OWNER_FIELDS_FRAGMENT } from \"./global\";\n\nconst AFFILIATE_REWARD_FIELDS_FRAGMENT = gql`\n fragment AffiliateRewardFields on AffiliateRewardType {\n createdAt\n deletedAt\n redeemedAt\n rewardDescription\n rewardType\n rewardValue\n updatedAt\n }\n`;\n\nconst AFFILIATE_RESOURCE_FIELDS_FRAGMENT = gql`\n fragment AffiliateResourceFields on AffiliateResourceType {\n resourceActive\n resourceId\n resourceType\n rewards {\n ...AffiliateRewardFields\n }\n }\n ${AFFILIATE_REWARD_FIELDS_FRAGMENT}\n`;\n\nconst AFFILIATE_FIELDS_FRAGMENT = gql`\n fragment AffiliateFields on AffiliateType {\n _id\n affiliateCode\n affiliateResources {\n ...AffiliateResourceFields\n }\n createdAt\n deletedAt\n overallPoints\n owner {\n ...OwnerFields\n }\n updatedAt\n }\n ${AFFILIATE_RESOURCE_FIELDS_FRAGMENT}\n ${OWNER_FIELDS_FRAGMENT}\n`;\n\nexport const GET_AFFILIATE = gql`\n query getAffiliate($_id: ID!) {\n affiliate(_id: $_id) {\n ...AffiliateFields\n }\n }\n ${AFFILIATE_FIELDS_FRAGMENT}\n`;\n\nexport const GET_AFFILIATES = gql`\n query getAffiliates {\n affiliates {\n ...AffiliateFields\n }\n }\n ${AFFILIATE_FIELDS_FRAGMENT}\n`;\n","const PKG = \"@timardex/cluemart-shared\" as const;\nexport const IMAGE_EXTENSION = \".webp\" as const;\n\n/**\n * Basenames under the shared images directory — use with `getSharedImagePath` from `@timardex/cluemart-shared/images/node` (Express / Node).\n * This object is the single source of poster keys; `posters` is derived from it. Add an image with `IMAGE_EXTENSION` under `src/images/posters/` when adding an entry.\n * `images/node` reads this at runtime for `getSharedImagePath` allow-listing.\n */\nexport const posterIds = [\n \"mini-market1\",\n \"mini-market2\",\n \"mini-market3\",\n \"mini-market4\",\n \"mini-market5\",\n \"poster1\",\n \"poster2\",\n \"poster3\",\n \"poster4\",\n] as const;\n\nexport const posterFiles = Object.fromEntries(\n posterIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`]),\n) as {\n readonly [K in (typeof posterIds)[number]]: `${K}${typeof IMAGE_EXTENSION}`;\n};\n\n/**\n * Basenames for assets under `src/images/clui/` in source; they are copied flat into `dist/images/` (same as posters).\n * `images/node` reads this at runtime for `getSharedImagePath` allow-listing.\n */\nexport const cluiIds = [\n \"cluiTui\",\n \"sima\",\n \"tablas\",\n \"telefonos\",\n \"ugralos\",\n] as const;\n\nexport const cluiFiles = Object.fromEntries(\n cluiIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`]),\n) as {\n readonly [K in (typeof cluiIds)[number]]: `${K}${typeof IMAGE_EXTENSION}`;\n};\n\nexport const iconIds = [\n \"apple-maps-icon\",\n \"facebook\",\n \"google-maps-icon\",\n \"instagram\",\n \"meet\",\n \"poll\",\n \"tiktok\",\n \"tip\",\n \"waze-maps-icon\",\n \"website\",\n \"youtube\",\n] as const;\n\nexport const iconFiles = Object.fromEntries(\n iconIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`]),\n) as {\n readonly [K in (typeof iconIds)[number]]: `${K}${typeof IMAGE_EXTENSION}`;\n};\n\nexport const badgeIds = [\"corporate\", \"private\", \"school\"] as const;\n\nexport const badgeFiles = Object.fromEntries(\n badgeIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`]),\n) as {\n readonly [K in (typeof badgeIds)[number]]: `${K}${typeof IMAGE_EXTENSION}`;\n};\n\nexport const logoIds = [\n \"googleMaps-logo-dark\",\n \"googleMaps-logo-light\",\n \"logo-atr\",\n \"logo-dark\",\n \"logo\",\n] as const;\n\nexport const logoFiles = Object.fromEntries(\n logoIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`]),\n) as {\n readonly [K in (typeof logoIds)[number]]: `${K}${typeof IMAGE_EXTENSION}`;\n};\n\nexport const otherImagesIds = [\n \"banner-horizontal\",\n \"banner-vertical\",\n \"gazebo-top\",\n \"qr-code\",\n \"store-android\",\n \"store-ios\",\n] as const;\n\nexport const otherImagesFiles = Object.fromEntries(\n otherImagesIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`]),\n) as {\n readonly [K in (typeof otherImagesIds)[number]]: `${K}${typeof IMAGE_EXTENSION}`;\n};\n\n/**\n * Module specifiers for each poster (not resolved file URLs). Use a static import or require with these paths\n * so your bundler resolves the file, e.g.\n * `import poster1 from \"@timardex/cluemart-shared/images/poster1.webp\"`\n * or `require(\"@timardex/cluemart-shared/images/poster1.webp\")` (React Native / Metro).\n *\n * Derived from `posterFiles` so keys and filenames stay aligned.\n */\nexport const posters = Object.fromEntries(\n (\n Object.entries(posterFiles) as [\n keyof typeof posterFiles,\n (typeof posterFiles)[keyof typeof posterFiles],\n ][]\n ).map(([key, file]) => [key, `${PKG}/images/${file}`]),\n) as {\n readonly [K in keyof typeof posterFiles]: `${typeof PKG}/images/${(typeof posterFiles)[K]}`;\n};\n\n/**\n * Module specifiers for Clui assets (same flat `@…/images/<file>.webp` pattern as posters), e.g.\n * `import clui from \"@timardex/cluemart-shared/images/cluiTui.webp\"`.\n */\nexport const cluiImages = Object.fromEntries(\n (\n Object.entries(cluiFiles) as [\n keyof typeof cluiFiles,\n (typeof cluiFiles)[keyof typeof cluiFiles],\n ][]\n ).map(([key, file]) => [key, `${PKG}/images/${file}`]),\n) as {\n readonly [K in keyof typeof cluiFiles]: `${typeof PKG}/images/${(typeof cluiFiles)[K]}`;\n};\n\nexport const icons = Object.fromEntries(\n (\n Object.entries(iconFiles) as [\n keyof typeof iconFiles,\n (typeof iconFiles)[keyof typeof iconFiles],\n ][]\n ).map(([key, file]) => [key, `${PKG}/images/${file}`]),\n) as {\n readonly [K in keyof typeof iconFiles]: `${typeof PKG}/images/${(typeof iconFiles)[K]}`;\n};\n\nexport const badges = Object.fromEntries(\n (\n Object.entries(badgeFiles) as [\n keyof typeof badgeFiles,\n (typeof badgeFiles)[keyof typeof badgeFiles],\n ][]\n ).map(([key, file]) => [key, `${PKG}/images/${file}`]),\n) as {\n readonly [K in keyof typeof badgeFiles]: `${typeof PKG}/images/${(typeof badgeFiles)[K]}`;\n};\n\nexport const logos = Object.fromEntries(\n (\n Object.entries(logoFiles) as [\n keyof typeof logoFiles,\n (typeof logoFiles)[keyof typeof logoFiles],\n ][]\n ).map(([key, file]) => [key, `${PKG}/images/${file}`]),\n) as {\n readonly [K in keyof typeof logoFiles]: `${typeof PKG}/images/${(typeof logoFiles)[K]}`;\n};\n\nexport const otherImages = Object.fromEntries(\n (\n Object.entries(otherImagesFiles) as [\n keyof typeof otherImagesFiles,\n (typeof otherImagesFiles)[keyof typeof otherImagesFiles],\n ][]\n ).map(([key, file]) => [key, `${PKG}/images/${file}`]),\n) as {\n readonly [K in keyof typeof otherImagesFiles]: `${typeof PKG}/images/${(typeof otherImagesFiles)[K]}`;\n};\n\nexport type PosterAssetId = keyof typeof posters;\n\n/** A single filename under the shared images directory (values of `posterFiles`). */\nexport type PosterImageBasename = (typeof posterFiles)[PosterAssetId];\n\nexport type CluiImageId = keyof typeof cluiImages;\n\n/** Basename under the shared images directory (values of `cluiFiles`). */\nexport type CluiImageBasename = (typeof cluiFiles)[CluiImageId];\n\nexport type IconId = keyof typeof icons;\nexport type IconBasename = (typeof iconFiles)[IconId];\n\nexport type BadgeId = keyof typeof badges;\nexport type BadgeBasename = (typeof badgeFiles)[BadgeId];\n\nexport type LogoId = keyof typeof logos;\nexport type LogoBasename = (typeof logoFiles)[LogoId];\n\nexport type OtherImagesId = keyof typeof otherImages;\nexport type OtherImagesBasename = (typeof otherImagesFiles)[OtherImagesId];\n","/** Path segments for relation share URLs — must match mobile `RelationTitle` values. */\nexport const RELATION_SHARE_INVITATION = \"invitation\" as const;\nexport const RELATION_SHARE_APPLICATION = \"application\" as const;\n\n/**\n * Bump when relation overlay SVG/layout changes so og:image URLs and API ETags\n * invalidate after deploy. Facebook caches preview JPEGs by exact URL — changing\n * this value forces crawlers to fetch a fresh image after server deploy.\n */\nexport const RELATION_OVERLAY_LAYOUT_VERSION = 36;\n\nexport const RELATION_SHARE_RESOURCE_TYPES = [\n RELATION_SHARE_INVITATION,\n RELATION_SHARE_APPLICATION,\n] as const;\n\nexport type RelationShareResourceType =\n (typeof RELATION_SHARE_RESOURCE_TYPES)[number];\n\nexport function isRelationShareResourceType(\n resourceType: string,\n): resourceType is RelationShareResourceType {\n return (RELATION_SHARE_RESOURCE_TYPES as readonly string[]).includes(\n resourceType,\n );\n}\n","import { CLUEMART_MAIN_DOMAIN_URL } from \"src/utils\";\n\nimport {\n RELATION_SHARE_APPLICATION,\n RELATION_SHARE_INVITATION,\n type RelationShareResourceType,\n} from \"./relationShareTypes\";\n\nexport {\n RELATION_SHARE_APPLICATION,\n RELATION_SHARE_INVITATION,\n RELATION_OVERLAY_LAYOUT_VERSION,\n RELATION_SHARE_RESOURCE_TYPES,\n isRelationShareResourceType,\n type RelationShareResourceType,\n} from \"./relationShareTypes\";\n\n/** Open Graph recommended preview size (must match admin `SHARE_OG_IMAGE_*`). */\nexport const SOCIAL_IMAGE_WIDTH = 1200;\n\n/** Open Graph recommended preview size (must match admin `SHARE_OG_IMAGE_*`). */\nexport const SOCIAL_IMAGE_HEIGHT = 630;\n\nexport const SHARE_SITE_URL = CLUEMART_MAIN_DOMAIN_URL;\n\n/** Calendar marker for invitation market-dates share copy (U+1F4C5 📅). */\nexport const SHARE_CALENDAR_ICON = \"\\u{1F4C5}\";\n\nexport const SHARE_MARKET_DATES_SECTION_HEADING = `${SHARE_CALENDAR_ICON} Market dates:`;\n\n/** Check mark for invitation requirements share copy (U+2705 ✅). */\nexport const SHARE_CHECKMARK_ICON = \"\\u{2705}\";\n\nexport const SHARE_REQUIREMENTS_SECTION_HEADING = `${SHARE_CHECKMARK_ICON} Requirements:`;\n\n/** Information marker for tags share copy (U+2139 ℹ️). */\nexport const SHARE_INFO_ICON = \"\\u{2139}\\u{FE0F}\";\n\nexport const SHARE_TAGS_SECTION_HEADING = `${SHARE_INFO_ICON} Tags:`;\n\n/** Standalone line when `rainOrShine` is true (invitation share + OG section parsing). */\nexport const SHARE_RAIN_OR_SHINE_LINE = \"Rain or Shine\";\n\n/** Standalone line when `foodTruck` is true (application share + OG section parsing). */\nexport const SHARE_FOOD_TRUCK_LINE = \"Food Truck\";\n\n/** Prefix for application compliance line (share text + OG section parsing). */\nexport const SHARE_COMPLIANCE_PREFIX = `${SHARE_CHECKMARK_ICON} Compliance:`;\n\n/** Label tag for application categories share copy (U+1F3F7 🏷️). */\nexport const SHARE_CATEGORY_ICON = \"\\u{1F3F7}\\u{FE0F}\";\n\nexport const SHARE_CATEGORIES_SECTION_HEADING = `${SHARE_CATEGORY_ICON} Categories:`;\n\n/** Straight ruler for application stall-size share copy (U+1F4CF 📏). */\nexport const SHARE_RULER_ICON = \"\\u{1F4CF}\";\n\n/** Prefix for application stall-size line (share text + OG section parsing). */\nexport const SHARE_STALL_SIZE_PREFIX = `${SHARE_RULER_ICON} Stall size:`;\n\n/** Dollar marker for price-range share copy (U+0024 $ — text, not emoji, so it stays black). */\nexport const SHARE_DOLLAR_ICON = \"$\";\n\n/** Prefix for application price-range line (share text + OG section parsing). */\nexport const SHARE_PRICE_RANGE_PREFIX = `${SHARE_DOLLAR_ICON} Price range:`;\n\n/** Alarm clock for invitation application-deadline share copy (U+23F0 ⏰). */\nexport const SHARE_CLOCK_ICON = \"\\u{23F0}\";\n\n/** Prefix for the invitation application-deadline sentence (share text + OG section parsing). */\nexport const SHARE_APPLICATION_DEADLINE_PREFIX = `${SHARE_CLOCK_ICON} Application deadline:`;\n\n/** First line on share sheet messages, Facebook SDK quote, and `og:description`. */\nexport const SHARE_MORE_INFO_LINE = \"Shared from ClueMart\";\n\nexport const DEFAULT_SHARE_OG_IMAGE = `${SHARE_SITE_URL}/assets/logo.webp`;\n\nexport const RESOURCE_SHARE_TYPES = [\n \"market\",\n \"stallholder\",\n \"partner\",\n] as const;\n\nexport type ResourceShareType = (typeof RESOURCE_SHARE_TYPES)[number];\n\nexport const POST_SHARE_RESOURCE_TYPES = [\n \"market_faces\",\n \"clue_bites\",\n \"play_and_win\",\n] as const;\n\nexport type PostShareResourceType = (typeof POST_SHARE_RESOURCE_TYPES)[number];\n\nexport type ShareResourceType =\n | ResourceShareType\n | PostShareResourceType\n | RelationShareResourceType;\n\nexport const SHARE_RESOURCE_LABEL: Record<ShareResourceType, string> = {\n [RELATION_SHARE_APPLICATION]: \"Application\",\n [RELATION_SHARE_INVITATION]: \"Invitation\",\n clue_bites: \"Clue Bites\",\n market_faces: \"Market Faces\",\n play_and_win: \"Play & Win\",\n market: \"Market\",\n partner: \"Partner\",\n stallholder: \"Stallholder\",\n};\n\nexport function isPostShareResourceType(\n resourceType: ShareResourceType,\n): resourceType is PostShareResourceType {\n return (POST_SHARE_RESOURCE_TYPES as readonly string[]).includes(\n resourceType,\n );\n}\n","import {\n POST_SHARE_RESOURCE_TYPES,\n RESOURCE_SHARE_TYPES,\n SHARE_SITE_URL,\n} from \"./constants\";\nimport {\n RELATION_SHARE_APPLICATION,\n RELATION_SHARE_INVITATION,\n} from \"./relationShareTypes\";\n\n/** Path segments for public resource share URLs (markets, posts, etc.). */\nexport const PUBLIC_SHARE_PATH_TYPES = [\n ...RESOURCE_SHARE_TYPES,\n ...POST_SHARE_RESOURCE_TYPES,\n] as const;\n\nexport type PublicSharePathType = (typeof PUBLIC_SHARE_PATH_TYPES)[number];\n\nexport type RelationSharePathType =\n | typeof RELATION_SHARE_INVITATION\n | typeof RELATION_SHARE_APPLICATION;\n\nexport type ShareType = PublicSharePathType | RelationSharePathType;\n\n/** Alternation for deep-link regexes — keep in sync with {@link ShareType}. */\nexport const SHARE_TYPE_PATH_REGEX = [\n ...PUBLIC_SHARE_PATH_TYPES,\n RELATION_SHARE_APPLICATION,\n RELATION_SHARE_INVITATION,\n].join(\"|\");\n\nexport function buildShareUrl(\n type: ShareType,\n slug: string,\n utmMedium: string = \"app\",\n): string {\n return `${SHARE_SITE_URL}/${type}/${encodeURIComponent(slug)}?utm_source=share&utm_medium=${utmMedium}&utm_campaign=${type}`;\n}\n","import * as yup from \"yup\";\n\nexport const appSettingsSchema = yup.object({\n appVersion: yup\n .string()\n .trim()\n .label(\"App Version\")\n .matches(\n /^\\d+\\.\\d+\\.\\d+$/,\n \"App Version must be in the format X.Y.Z (e.g. 1.12.50)\",\n )\n .required(\"App Version is required\"),\n isOfflineMode: yup\n .boolean()\n .label(\"Is Offline Mode\")\n .required(\"Is Offline Mode is required\"),\n});\n","import {\n EnumEventType,\n EnumFoodFlavor,\n EnumPartnerType,\n EnumVendorType,\n} from \"src/enums\";\n\nimport {\n BaseResourceTypeFormData,\n EventFormData,\n EventInfoFormData,\n LocationType,\n PartnerFormData,\n UnregisteredVendorFormData,\n VendorFormData,\n VendorInfoFormData,\n} from \"../types\";\n\nexport const defaultLocation: LocationType = {\n city: \"\",\n country: \"\",\n fullAddress: \"\",\n geo: {\n coordinates: [0, 0], // [longitude, latitude]\n type: \"Point\",\n },\n latitude: 0,\n longitude: 0,\n region: \"\",\n};\n\nexport const globalDefaultValues: BaseResourceTypeFormData = {\n active: false,\n associates: null,\n contactDetails: {\n email: null,\n landlinePhone: null,\n mobilePhone: null,\n },\n cover: {\n active: true,\n source: \"\",\n title: \"\",\n },\n coverUpload: {\n active: true,\n source: \"\",\n title: \"\",\n },\n description: \"\",\n images: null,\n imagesUpload: null,\n logo: null,\n logoUpload: null,\n name: \"\",\n promoCodes: [],\n region: \"\",\n socialMedia: [],\n};\n\nexport const defaultPartnerFormValues: PartnerFormData = {\n ...globalDefaultValues,\n location: defaultLocation,\n nzbn: \"\",\n partnerType: \"\" as EnumPartnerType,\n};\n\nexport const defaultEventFormValues: EventFormData = {\n ...globalDefaultValues,\n claimed: true,\n dateTime: [],\n eventType: \"\" as EnumEventType,\n googlePlaceId: null,\n location: defaultLocation,\n nzbn: \"\",\n provider: null,\n rainOrShine: false,\n tags: [],\n};\n\nexport const defaultEventInfoFormValues: EventInfoFormData = {\n applicationDeadlineHours: 24,\n dateTime: [],\n eventId: \"\",\n packInTime: 2, // e.g., 2 hours before event opens\n paymentDueHours: 12,\n paymentInfo: [],\n refundPolicy: [],\n requirements: [],\n};\n\nexport const defaultVendorFormValues: VendorFormData = {\n ...globalDefaultValues,\n availability: {\n corporate: false,\n private: false,\n school: false,\n },\n categories: [],\n claimed: true,\n foodTruck: false,\n products: null,\n unregisteredVendorId: null,\n vendorType: EnumVendorType.STALLHOLDER,\n};\n\nexport const defaultUnregisteredVendorFormValues: UnregisteredVendorFormData = {\n categoryIds: [],\n dateTime: [],\n email: null,\n inviterId: \"\",\n name: \"\",\n region: \"\",\n};\n\nexport const defaultVendorInfoFormValues: VendorInfoFormData = {\n compliance: { foodBeverageLicense: false, liabilityInsurance: false },\n documents: null,\n documentsUpload: null,\n product: {\n foodFlavors: [] as EnumFoodFlavor[],\n packaging: [],\n priceRange: { max: \"\", min: \"\" },\n producedIn: [],\n },\n requirements: {\n electricity: { details: null, isRequired: false },\n gazebo: { details: null, isRequired: false },\n table: { details: null, isRequired: false },\n },\n stallInfo: {\n size: { depth: \"\", width: \"\" },\n },\n vendorId: \"\",\n};\n\nexport function mapBaseResourceTypeToFormData(\n data: BaseResourceTypeFormData,\n): BaseResourceTypeFormData {\n return {\n _id: data._id,\n active: data.active,\n associates: data.associates,\n contactDetails: data.contactDetails,\n cover: data.cover,\n coverUpload: data.coverUpload ?? null,\n description: data.description,\n images: data.images,\n imagesUpload: data.imagesUpload ?? null,\n logo: data.logo,\n logoUpload: data.logoUpload ?? null,\n name: data.name,\n owner: data.owner,\n promoCodes: data.promoCodes,\n region: data.region,\n socialMedia: data.socialMedia,\n termsAgreement: data.termsAgreement,\n };\n}\n","import { yupResolver } from \"@hookform/resolvers/yup\";\nimport * as React from \"react\";\nimport { useForm } from \"react-hook-form\";\n\nimport {\n CreateVendorInfoFormData,\n VendorInfoFormData,\n} from \"../../types/vendor\";\nimport { vendorInfoSchema } from \"../../yupSchema\";\nimport { defaultVendorInfoFormValues } from \"../utils\";\n\nexport function useVendorInfoForm(\n data?: VendorInfoFormData,\n): CreateVendorInfoFormData {\n const {\n control,\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n } = useForm<VendorInfoFormData>({\n defaultValues: defaultVendorInfoFormValues,\n resolver: yupResolver(vendorInfoSchema),\n });\n\n React.useEffect(() => {\n if (data) {\n reset({\n _id: data._id,\n compliance: data.compliance,\n documents: data.documents,\n documentsUpload: data.documentsUpload,\n product: data.product,\n requirements: data.requirements,\n stallInfo: data.stallInfo,\n vendorId: data.vendorId,\n });\n } else {\n reset(defaultVendorInfoFormValues);\n }\n }, [data]);\n\n const {\n _id,\n compliance,\n documents,\n documentsUpload,\n product,\n requirements,\n stallInfo,\n vendorId,\n } = getValues();\n\n return {\n control,\n fields: {\n _id,\n compliance,\n documents,\n documentsUpload,\n product,\n requirements,\n stallInfo,\n vendorId,\n },\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n };\n}\n","import { yupResolver } from \"@hookform/resolvers/yup\";\nimport * as React from \"react\";\nimport { useForm } from \"react-hook-form\";\n\nimport {\n CreateUnregisteredVendorFormData,\n UnregisteredVendorFormData,\n} from \"../../types/vendor\";\nimport { unregisteredVendorSchema } from \"../../yupSchema\";\nimport { defaultUnregisteredVendorFormValues } from \"../utils\";\n\n/**\n * Custom hook to manage the vendor form state and validation.\n *\n * @param {UnregisteredVendorFormData} data - The initial form data.\n * @returns {CreateUnregisteredVendorFormData} - The form methods and state.\n */\nexport function useUnregisteredVendorForm(\n data?: UnregisteredVendorFormData,\n): CreateUnregisteredVendorFormData {\n const {\n control,\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n } = useForm<UnregisteredVendorFormData>({\n defaultValues: defaultUnregisteredVendorFormValues,\n resolver: yupResolver(unregisteredVendorSchema),\n });\n\n React.useEffect(() => {\n if (data) {\n reset({\n categoryIds: data.categoryIds,\n dateTime: data.dateTime,\n email: data.email,\n inviterId: data.inviterId,\n name: data.name,\n region: data.region,\n });\n } else {\n reset(defaultUnregisteredVendorFormValues);\n }\n }, [data]);\n\n const { categoryIds, dateTime, email, inviterId, name, region } = getValues();\n\n return {\n control,\n fields: {\n categoryIds,\n dateTime,\n email,\n inviterId,\n name,\n region,\n },\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n };\n}\n","import { yupResolver } from \"@hookform/resolvers/yup\";\nimport * as React from \"react\";\nimport { useForm } from \"react-hook-form\";\n\nimport { CreateEventFormData, EventFormData } from \"../../types/event\";\nimport { eventSchema } from \"../../yupSchema\";\nimport {\n defaultEventFormValues,\n mapBaseResourceTypeToFormData,\n} from \"../utils\";\n\n/**\n * Custom hook to manage the event form state and validation.\n *\n * @param {EventFormData} data - The initial form data.\n * @returns {CreateEventFormData} - The form methods and state.\n */\nexport function useEventForm(data?: EventFormData): CreateEventFormData {\n const {\n control,\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n } = useForm<EventFormData>({\n defaultValues: defaultEventFormValues,\n resolver: yupResolver(eventSchema),\n });\n\n React.useEffect(() => {\n if (data) {\n reset({\n ...mapBaseResourceTypeToFormData(data),\n claimed: data.claimed ?? false,\n dateTime: data.dateTime,\n eventType: data.eventType,\n googlePlaceId: data.googlePlaceId,\n location: data.location,\n nzbn: data.nzbn,\n provider: data.provider,\n rainOrShine: data.rainOrShine,\n tags: data.tags,\n });\n } else {\n reset(defaultEventFormValues);\n }\n }, [data]);\n\n const {\n _id,\n active,\n associates,\n claimed,\n contactDetails,\n cover,\n coverUpload,\n dateTime,\n description,\n eventType,\n googlePlaceId,\n images,\n imagesUpload,\n location,\n logo,\n logoUpload,\n name,\n nzbn,\n owner,\n promoCodes,\n provider,\n rainOrShine,\n region,\n socialMedia,\n tags,\n termsAgreement,\n } = getValues();\n\n return {\n control,\n fields: {\n _id,\n active,\n associates,\n claimed,\n contactDetails,\n cover,\n coverUpload,\n dateTime,\n description,\n eventType,\n googlePlaceId,\n images,\n imagesUpload,\n location,\n logo,\n logoUpload,\n name,\n nzbn,\n owner,\n promoCodes,\n provider,\n rainOrShine,\n region,\n socialMedia,\n tags,\n termsAgreement,\n },\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n };\n}\n","import { yupResolver } from \"@hookform/resolvers/yup\";\nimport * as React from \"react\";\nimport { useForm } from \"react-hook-form\";\n\nimport { CreateEventInfoFormData, EventInfoFormData } from \"../../types/event\";\nimport { eventInfoSchema } from \"../../yupSchema\";\nimport { defaultEventInfoFormValues } from \"../utils\";\n\n/**\n * Custom hook to manage the event form state and validation.\n *\n * @param {EventInfoFormData} data - The initial form data.\n * @returns {CreateEventInfoFormData} - The form methods and state.\n */\nexport function useEventInfoForm(\n data?: EventInfoFormData,\n): CreateEventInfoFormData {\n const {\n control,\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n } = useForm<EventInfoFormData>({\n defaultValues: defaultEventInfoFormValues,\n resolver: yupResolver(eventInfoSchema),\n });\n\n React.useEffect(() => {\n if (data) {\n reset({\n _id: data._id,\n applicationDeadlineHours: data.applicationDeadlineHours,\n dateTime: data.dateTime,\n eventId: data.eventId,\n packInTime: data.packInTime,\n paymentDueHours: data.paymentDueHours,\n paymentInfo: data.paymentInfo,\n refundPolicy: data.refundPolicy,\n requirements: data.requirements,\n });\n } else {\n reset(defaultEventInfoFormValues);\n }\n }, [data]);\n\n const {\n _id,\n applicationDeadlineHours,\n dateTime,\n eventId,\n packInTime,\n paymentDueHours,\n paymentInfo,\n refundPolicy,\n requirements,\n } = getValues();\n\n return {\n control,\n fields: {\n _id,\n applicationDeadlineHours,\n dateTime,\n eventId,\n packInTime,\n paymentDueHours,\n paymentInfo,\n refundPolicy,\n requirements,\n },\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n };\n}\n","import { yupResolver } from \"@hookform/resolvers/yup\";\nimport * as React from \"react\";\nimport { useForm } from \"react-hook-form\";\n\nimport { EnumUserRole } from \"../enums\";\nimport { CreateUserFormData, UserFormData } from \"../types/user\";\nimport { userSchema } from \"../yupSchema/user\";\n\nconst defaultValues: UserFormData = {\n active: false,\n avatar: null,\n avatarUpload: null,\n confirmPassword: \"\",\n email: \"\",\n firstName: \"\",\n isTester: false,\n lastName: \"\",\n location: null,\n password: null,\n preferredRegion: \"\",\n role: EnumUserRole.CUSTOMER,\n};\n\n/**\n * Custom hook to manage the user form state and validation.\n *\n * @param {UserFormData} data - The initial form data.\n * @returns {CreateUserFormData} - The form methods and state.\n */\nexport function useUserForm(data?: UserFormData): CreateUserFormData {\n const {\n control,\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n } = useForm<UserFormData>({\n defaultValues,\n resolver: yupResolver(userSchema),\n });\n\n React.useEffect(() => {\n if (data) {\n reset({\n _id: data._id,\n active: data.active,\n avatar: data.avatar,\n avatarUpload: data.avatarUpload,\n email: data.email,\n firstName: data.firstName,\n isTester: data.isTester,\n lastName: data.lastName,\n location: data.location,\n password: data.password,\n preferredRegion: data.preferredRegion,\n role: data.role,\n termsAgreement: data.termsAgreement,\n });\n } else {\n reset(defaultValues);\n }\n }, [data]);\n\n const {\n _id,\n active,\n avatar,\n avatarUpload,\n email,\n firstName,\n isTester,\n lastName,\n location,\n password,\n preferredRegion,\n role,\n termsAgreement,\n } = getValues();\n\n return {\n control,\n fields: {\n _id,\n active,\n avatar,\n avatarUpload,\n email,\n firstName,\n isTester,\n lastName,\n location,\n password,\n preferredRegion,\n role,\n termsAgreement,\n },\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n };\n}\n","import { yupResolver } from \"@hookform/resolvers/yup\";\nimport { useForm } from \"react-hook-form\";\n\nimport { CreateLoginFormData, LoginFormData } from \"../../types/auth\";\nimport { loginSchema } from \"../../yupSchema/auth\";\n\nconst defaultValues: LoginFormData = {\n email: \"\",\n password: \"\",\n};\n\n/**\n * Custom hook to manage the login form state and validation.\n *\n * @returns {CreateLoginFormData} - The form methods and state.\n */\nexport function useLoginForm(): CreateLoginFormData {\n const {\n control,\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n } = useForm<LoginFormData>({\n defaultValues,\n resolver: yupResolver(loginSchema),\n });\n\n const { email, password } = getValues();\n\n return {\n control,\n fields: {\n email,\n password,\n },\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n };\n}\n","import { yupResolver } from \"@hookform/resolvers/yup\";\nimport { useForm } from \"react-hook-form\";\n\nimport { CreateRegisterFormData, RegisterFormData } from \"../../types/auth\";\nimport { registerSchema } from \"../../yupSchema/auth\";\n\nconst defaultValues: RegisterFormData = {\n email: \"\",\n firstName: \"\",\n lastName: \"\",\n password: \"\",\n preferredRegion: \"\",\n promoCode: null,\n termsAgreement: null,\n};\n\n/**\n * Custom hook to manage the register form state and validation.\n *\n * @returns {CreateRegisterFormData} - The form methods and state.\n */\nexport function useRegisterForm(): CreateRegisterFormData {\n const {\n control,\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n } = useForm<RegisterFormData>({\n defaultValues,\n resolver: yupResolver(registerSchema),\n });\n\n const {\n email,\n firstName,\n lastName,\n password,\n preferredRegion,\n promoCode,\n termsAgreement,\n } = getValues();\n\n return {\n control,\n fields: {\n email,\n firstName,\n lastName,\n password,\n preferredRegion,\n promoCode,\n termsAgreement,\n },\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n };\n}\n","import { yupResolver } from \"@hookform/resolvers/yup\";\nimport { useForm } from \"react-hook-form\";\n\nimport {\n CreateRequestPasswordResetFormData,\n RequestPasswordResetFormData,\n} from \"../../types/auth\";\nimport { requestPasswordResetSchema } from \"../../yupSchema/auth\";\n\nconst defaultValues: RequestPasswordResetFormData = {\n email: \"\",\n};\n\nexport function useRequestPasswordResetForm(): CreateRequestPasswordResetFormData {\n const {\n control,\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n } = useForm<RequestPasswordResetFormData>({\n defaultValues,\n resolver: yupResolver(requestPasswordResetSchema),\n });\n\n const { email } = getValues();\n\n return {\n control,\n fields: {\n email,\n },\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n };\n}\n","import { yupResolver } from \"@hookform/resolvers/yup\";\nimport { useForm } from \"react-hook-form\";\n\nimport {\n CreateValidateVerificationTokenFormData,\n ValidateVerificationTokenFormData,\n} from \"../../types/auth\";\nimport { validateVerificationTokenSchema } from \"../../yupSchema/auth\";\n\nconst defaultValues: ValidateVerificationTokenFormData = {\n email: \"\",\n verificationToken: \"\",\n};\n\nexport function useValidateVerificationTokenForm(): CreateValidateVerificationTokenFormData {\n const {\n control,\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n } = useForm<ValidateVerificationTokenFormData>({\n defaultValues,\n resolver: yupResolver(validateVerificationTokenSchema),\n });\n\n const { email, verificationToken } = getValues();\n\n return {\n control,\n fields: {\n email,\n verificationToken,\n },\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n };\n}\n","import { yupResolver } from \"@hookform/resolvers/yup\";\nimport { useForm } from \"react-hook-form\";\n\nimport {\n CreateResetPasswordFormData,\n ResetPasswordFormData,\n} from \"../../types/auth\";\nimport { resetPasswordSchema } from \"../../yupSchema/auth\";\n\nconst defaultValues: ResetPasswordFormData = {\n confirmPassword: \"\",\n email: \"\",\n password: \"\",\n};\n\nexport function useResetPasswordForm(): CreateResetPasswordFormData {\n const {\n control,\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n } = useForm<ResetPasswordFormData>({\n defaultValues,\n resolver: yupResolver(resetPasswordSchema),\n });\n\n const { confirmPassword, email, password } = getValues();\n\n return {\n control,\n fields: {\n confirmPassword,\n email,\n password,\n },\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n };\n}\n","import { yupResolver } from \"@hookform/resolvers/yup\";\nimport React from \"react\";\nimport { useForm } from \"react-hook-form\";\n\nimport {\n ContactUsFormData,\n CreateContactUsFormData,\n} from \"src/types/contactUs\";\nimport { contactUsSchema } from \"src/yupSchema/contactUs\";\n\nconst defaultValues = {\n email: \"\",\n firstName: \"\",\n lastName: \"\",\n message: \"\",\n};\n\nexport function useContactUsForm(\n data?: ContactUsFormData,\n): CreateContactUsFormData {\n const {\n control,\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n } = useForm<ContactUsFormData>({\n defaultValues,\n resolver: yupResolver(contactUsSchema),\n });\n\n React.useEffect(() => {\n if (data) {\n reset({\n email: data.email,\n firstName: data.firstName,\n lastName: data.lastName,\n message: data.message,\n });\n } else {\n reset(defaultValues);\n }\n }, [data]);\n\n const { email, firstName, lastName, message } = getValues();\n\n return {\n control,\n fields: {\n email,\n firstName,\n lastName,\n message,\n },\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n };\n}\n","import * as yup from \"yup\";\n\nimport { emailRequiredSchema } from \"./global\";\n\nexport const contactUsSchema = yup.object().shape({\n email: emailRequiredSchema,\n firstName: yup\n .string()\n .label(\"First Name\")\n .required(\"First name is required\"),\n lastName: yup.string().label(\"Last Name\").required(\"Last name is required\"),\n message: yup.string().label(\"Message\").required(\"Message is required\"),\n});\n","import { yupResolver } from \"@hookform/resolvers/yup\";\nimport React from \"react\";\nimport { useForm } from \"react-hook-form\";\n\nimport { EnumResourceType } from \"src/enums\";\nimport {\n AdFormData,\n AdFormState,\n CreateAdFormState,\n EnumAdShowOn,\n EnumAdStyle,\n EnumAdStatus,\n EnumAdType,\n} from \"src/types/ad\";\nimport { adSchema } from \"src/yupSchema\";\n\nconst defaultValues: AdFormState = {\n active: true,\n // Use a future default so yup \"future date\" rules pass on first submit.\n end: new Date(Date.now() + 7 * 24 * 60 * 60 * 1000),\n resource: {\n adDescription: \"\",\n adImage: \"\",\n adStyle: EnumAdStyle.BLOOM,\n adTitle: \"\",\n adType: EnumAdType.SPONSORED,\n resourceId: \"\",\n resourceName: \"\",\n resourceRegion: \"\",\n resourceSlug: \"\",\n resourceType: EnumResourceType.EVENT,\n },\n showOn: [EnumAdShowOn.FRONT_PAGE],\n // `start` is only required (and must be future) when status !== ACTIVE.\n start: undefined,\n status: EnumAdStatus.ACTIVE,\n targetRegion: [],\n};\n\nexport function useAdForm(data?: AdFormData): CreateAdFormState {\n const {\n control,\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n } = useForm<AdFormState>({\n defaultValues,\n resolver: yupResolver(adSchema),\n });\n\n React.useEffect(() => {\n if (data) {\n reset({\n active: data.active,\n end: data.end,\n resource: data.resource,\n showOn: data.showOn,\n start: data.start,\n status: data.status,\n targetRegion: data.targetRegion,\n });\n } else {\n reset(defaultValues);\n }\n }, [data]);\n\n const { active, end, resource, showOn, start, status, targetRegion } =\n getValues();\n\n return {\n control,\n fields: {\n active,\n end,\n resource,\n showOn,\n start,\n status,\n targetRegion,\n },\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n };\n}\n","import { yupResolver } from \"@hookform/resolvers/yup\";\nimport * as React from \"react\";\nimport { useForm } from \"react-hook-form\";\n\nimport { CreatePartnerFormData, PartnerFormData } from \"src/types/partner\";\nimport { partnerSchema } from \"src/yupSchema/partner\";\n\nimport {\n defaultPartnerFormValues,\n mapBaseResourceTypeToFormData,\n} from \"../utils\";\n\n/**\n * Custom hook to manage the partner form state and validation.\n *\n * @param {PartnerFormData} data - The initial form data.\n * @returns {CreatePartnerFormData} - The form methods and state.\n */\nexport function usePartnerForm(data?: PartnerFormData): CreatePartnerFormData {\n const {\n control,\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n } = useForm<PartnerFormData>({\n defaultValues: defaultPartnerFormValues,\n resolver: yupResolver(partnerSchema),\n });\n\n React.useEffect(() => {\n if (data) {\n reset({\n ...mapBaseResourceTypeToFormData(data),\n location: data.location,\n nzbn: data.nzbn,\n partnerType: data.partnerType,\n });\n } else {\n reset(defaultPartnerFormValues);\n }\n }, [data]);\n\n const {\n _id,\n active,\n associates,\n contactDetails,\n cover,\n coverUpload,\n description,\n images,\n imagesUpload,\n location,\n logo,\n logoUpload,\n name,\n nzbn,\n owner,\n partnerType,\n promoCodes,\n region,\n socialMedia,\n termsAgreement,\n } = getValues();\n\n return {\n control,\n fields: {\n _id,\n active,\n associates,\n contactDetails,\n cover,\n coverUpload,\n description,\n images,\n imagesUpload,\n location,\n logo,\n logoUpload,\n name,\n nzbn,\n owner,\n partnerType,\n promoCodes,\n region,\n socialMedia,\n termsAgreement,\n },\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n };\n}\n","import { yupResolver } from \"@hookform/resolvers/yup\";\nimport React from \"react\";\nimport { useForm } from \"react-hook-form\";\n\nimport { CreatePostFormData, EnumPostType, PostFormData } from \"src/types/post\";\nimport { postSchema } from \"src/yupSchema/post\";\n\nconst defaultValues: PostFormData = {\n active: false,\n caption: \"\",\n content: [],\n cover: null,\n coverUpload: null,\n postType: \"\" as EnumPostType,\n resource: null,\n tags: [],\n title: \"\",\n};\n\nexport function usePostForm(data?: PostFormData): CreatePostFormData {\n const {\n control,\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n } = useForm<PostFormData>({\n defaultValues,\n resolver: yupResolver(postSchema),\n });\n\n React.useEffect(() => {\n if (data) {\n reset({\n active: data.active,\n caption: data.caption,\n content: data.content,\n cover: data.cover,\n coverUpload: data.coverUpload,\n postType: data.postType,\n resource: data.resource,\n tags: data.tags,\n title: data.title,\n });\n } else {\n reset(defaultValues);\n }\n }, [data, reset]);\n\n const {\n active,\n caption,\n content,\n cover,\n coverUpload,\n postType,\n resource,\n tags,\n title,\n } = getValues();\n\n return {\n control,\n fields: {\n active,\n caption,\n content,\n cover,\n coverUpload,\n postType,\n resource,\n tags,\n title,\n },\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n };\n}\n","import { yupResolver } from \"@hookform/resolvers/yup\";\nimport React from \"react\";\nimport { useForm } from \"react-hook-form\";\n\nimport {\n AppSettingsFormData,\n CreateAppSettingsFormData,\n} from \"src/types/appSettings\";\nimport { appSettingsSchema } from \"src/yupSchema/appSettings\";\n\nconst defaultValues = {\n appVersion: \"\",\n isOfflineMode: false,\n};\n\nexport function useAppSettingsForm(\n data?: AppSettingsFormData,\n): CreateAppSettingsFormData {\n const {\n control,\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n } = useForm<AppSettingsFormData>({\n defaultValues,\n resolver: yupResolver(appSettingsSchema),\n });\n\n React.useEffect(() => {\n if (data) {\n reset({\n appVersion: data.appVersion,\n isOfflineMode: data.isOfflineMode,\n });\n } else {\n reset(defaultValues);\n }\n }, [data]);\n\n const { appVersion, isOfflineMode } = getValues();\n\n return {\n control,\n fields: {\n appVersion,\n isOfflineMode,\n },\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n };\n}\n","import { yupResolver } from \"@hookform/resolvers/yup\";\nimport { useEffect } from \"react\";\nimport { useForm } from \"react-hook-form\";\n\nimport { CreateSchoolFormData, SchoolFormData } from \"../types/school\";\nimport { schoolSchema } from \"../yupSchema/school\";\n\nimport { defaultLocation } from \"./utils\";\n\nconst defaultSchoolFormValues: SchoolFormData = {\n // New schools are active by default\n active: true,\n contactDetails: null,\n location: defaultLocation,\n logo: null,\n logoUpload: null,\n name: \"\",\n region: \"\",\n socialMedia: [],\n studentCount: 0,\n termsAgreement: null,\n};\n\nexport function useSchoolForm(data?: SchoolFormData): CreateSchoolFormData {\n const {\n control,\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n } = useForm<SchoolFormData>({\n defaultValues: defaultSchoolFormValues,\n resolver: yupResolver(schoolSchema),\n });\n\n useEffect(() => {\n if (data) {\n reset({\n _id: data._id,\n active: data.active,\n contactDetails: data.contactDetails,\n location: data.location,\n logo: data.logo,\n logoUpload: data.logoUpload,\n name: data.name,\n region: data.region,\n socialMedia: data.socialMedia,\n studentCount: data.studentCount,\n termsAgreement: data.termsAgreement,\n });\n } else {\n reset(defaultSchoolFormValues);\n }\n }, [data]);\n\n const {\n _id,\n socialMedia,\n active,\n contactDetails,\n location,\n logo,\n logoUpload,\n name,\n region,\n studentCount,\n termsAgreement,\n } = getValues();\n\n return {\n control,\n fields: {\n _id,\n active,\n contactDetails,\n location,\n logo,\n logoUpload,\n name,\n region,\n socialMedia,\n studentCount,\n termsAgreement,\n },\n formState,\n getValues,\n handleSubmit,\n reset,\n setValue,\n watch,\n };\n}\n","import * as yup from \"yup\";\n\nimport { SCHOOL_MIN_STUDENT_COUNT } from \"src/utils/school\";\n\nimport {\n contactDetailsSchema,\n locationSchema,\n noLeadingZeros,\n socialMediaSchema,\n toOptionalNumber,\n} from \"./global\";\n\nexport const schoolSchema = yup.object().shape({\n active: yup.boolean().required(\"Active is required\"),\n contactDetails: contactDetailsSchema,\n location: locationSchema,\n name: yup.string().trim().required(\"Name is required\"),\n region: yup.string().trim().required(\"Region is required\"),\n socialMedia: yup.array().of(socialMediaSchema).nullable().default(null),\n studentCount: yup\n .number()\n .transform((_, originalValue) => toOptionalNumber(originalValue))\n .label(\"Student Count\")\n .nullable()\n .typeError(\"Student count must be a number\")\n .min(\n SCHOOL_MIN_STUDENT_COUNT,\n `Student count must be at least ${SCHOOL_MIN_STUDENT_COUNT}`,\n )\n .required(\"Student count is required\")\n .test(\"no-leading-zeros\", \"\", noLeadingZeros(\"Student Count\")),\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACsCA,IAAM,iBAAiB,CAAC,OAAgB,YAAoB;AAC1D,UAAQ,MAAM,SAAS,KAAK;AAC9B;AAOO,IAAM,oBAAoB,CAAC,cAAmC;AACnE,QAAM,iBAAiB,OACrB,SAC2C;AAC3C,QAAI;AACF,YAAM,WAAW,MAAM;AAAA,QACrB;AAAA,QACA;AAAA,UACE,MAAM,KAAK,UAAU;AAAA,YACnB,OAAO,GAAG,IAAI;AAAA,YACd,cAAc;AAAA,YACd,YAAY;AAAA,UACd,CAAC;AAAA,UACD,SAAS;AAAA,YACP,gBAAgB;AAAA,YA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;AAAA,QACf,MAAM,KAAK;AAAA,QACX,YAAY,KAAK;AAAA,QACjB,MAAM,KAAK;AAAA,QACX,QAAQ,KAAK;AAAA,QACb,aAAa,KAAK;AAAA,QAClB,cAAc,KAAK;AAAA,QACnB,gBAAgB,KAAK;AAAA,MACvB,CAAC;AAAA,IACH,OAAO;AACL,YAAM,uBAAuB;AAAA,IAC/B;AAAA,EACF,GAAG,CAAC,IAAI,CAAC;AAET,QAAM;AAAA,IACJ;AAAA,IACA,aAAAC;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI,UAAU;AAEd,SAAO;AAAA,IACL;AAAA,IACA,QAAQ;AAAA,MACN;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,aAAAA;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;","names":["import_dayjs","import_customParseFormat","import_isSameOrAfter","EnumInviteStatus","EnumPaymentMethod","EnumFoodFlavor","EnumResourceType","EnumEventType","EnumVendorType","EnumPartnerType","EnumRegions","EnumUserLicence","EnumUserRole","EnumSocialMedia","EnumEventDateStatus","EnumAdShowOn","EnumAdStatus","EnumAdType","EnumAdStyle","EnumPostType","EnumPostContentType","dayjs","customParseFormat","utc","timezone","isSameOrAfter","import_dayjs","dayjs","isSameOrAfter","customParseFormat","yup","yup","yup","yup","yup","yup","yup","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","import_client","yup","socialMedia","import_yup","React","import_react_hook_form","import_yup","React","import_react_hook_form","import_yup","React","import_react_hook_form","socialMedia","import_yup","React","import_react_hook_form","import_yup","React","import_react_hook_form","import_yup","import_react_hook_form","defaultValues","import_yup","import_react_hook_form","defaultValues","import_yup","import_react_hook_form","defaultValues","import_yup","import_react_hook_form","defaultValues","import_yup","import_react_hook_form","defaultValues","import_yup","import_react_hook_form","yup","defaultValues","React","import_yup","import_react","import_react_hook_form","defaultValues","React","import_yup","React","import_react_hook_form","socialMedia","import_yup","import_react","import_react_hook_form","defaultValues","React","import_yup","import_react","import_react_hook_form","defaultValues","React","import_yup","import_react","import_react_hook_form","yup","socialMedia"]}
|