@timardex/cluemart-shared 2.1.1 → 2.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/dist/{ad-sqc3JME-.d.mts → ad-D0xWGTAB.d.mts} +2 -2
  2. package/dist/{ad-CUckkB7I.d.ts → ad-rrCulESo.d.ts} +2 -2
  3. package/dist/{affiliate-7SDCo04C.d.mts → affiliate-C9eTAxEj.d.ts} +3 -3
  4. package/dist/{affiliate-C03r7ssL.d.ts → affiliate-CGe0hR-U.d.mts} +3 -3
  5. package/dist/auth/index.cjs +2 -2
  6. package/dist/auth/index.cjs.map +1 -1
  7. package/dist/auth/index.d.mts +3 -3
  8. package/dist/auth/index.d.ts +3 -3
  9. package/dist/auth/index.mjs +1 -1
  10. package/dist/{chunk-6ZH75TAT.mjs → chunk-B22YRNRF.mjs} +2 -2
  11. package/dist/{chunk-Z4FML4VL.mjs → chunk-BTZIWVSF.mjs} +2 -2
  12. package/dist/{chunk-UHZHNJHO.mjs → chunk-HFN6KXX2.mjs} +9 -35
  13. package/dist/chunk-HFN6KXX2.mjs.map +1 -0
  14. package/dist/{chunk-YMLEIEZD.mjs → chunk-MX3L6DSE.mjs} +4 -4
  15. package/dist/chunk-MX3L6DSE.mjs.map +1 -0
  16. package/dist/{chunk-ZSSVU6GY.mjs → chunk-OSSBKFNH.mjs} +3 -3
  17. package/dist/chunk-OSSBKFNH.mjs.map +1 -0
  18. package/dist/{chunk-7XIDMA4Z.mjs → chunk-T7A7ZG55.mjs} +54 -18
  19. package/dist/chunk-T7A7ZG55.mjs.map +1 -0
  20. package/dist/{contactUs-BG3sJ6gc.d.ts → contactUs-Be0zqd9Q.d.ts} +1 -1
  21. package/dist/{contactUs-CWFP59_0.d.mts → contactUs-CQXyz40A.d.mts} +1 -1
  22. package/dist/formFields/index.cjs +34 -42
  23. package/dist/formFields/index.cjs.map +1 -1
  24. package/dist/formFields/index.d.mts +1 -1
  25. package/dist/formFields/index.d.ts +1 -1
  26. package/dist/formFields/index.mjs +3 -3
  27. package/dist/{global-BqeTWrvk.d.ts → global-CAf04GRC.d.ts} +7 -9
  28. package/dist/{global-CWo-hWKZ.d.mts → global-d8RFwoYS.d.mts} +7 -9
  29. package/dist/graphql/index.cjs +4 -4
  30. package/dist/graphql/index.cjs.map +1 -1
  31. package/dist/graphql/index.d.mts +8 -6
  32. package/dist/graphql/index.d.ts +8 -6
  33. package/dist/graphql/index.mjs +2 -2
  34. package/dist/hooks/index.cjs +36 -30
  35. package/dist/hooks/index.cjs.map +1 -1
  36. package/dist/hooks/index.d.mts +5 -5
  37. package/dist/hooks/index.d.ts +5 -5
  38. package/dist/hooks/index.mjs +6 -6
  39. package/dist/index.cjs +62 -44
  40. package/dist/index.cjs.map +1 -1
  41. package/dist/index.d.mts +30 -11
  42. package/dist/index.d.ts +30 -11
  43. package/dist/index.mjs +59 -44
  44. package/dist/index.mjs.map +1 -1
  45. package/dist/map/index.d.mts +1 -1
  46. package/dist/map/index.d.ts +1 -1
  47. package/dist/region/index.d.mts +1 -1
  48. package/dist/region/index.d.ts +1 -1
  49. package/dist/{resourceActivities-BbhGFtZA.d.ts → resourceActivities-ByCZO0rJ.d.ts} +1 -1
  50. package/dist/{resourceActivities-D81u7Mu0.d.mts → resourceActivities-DO_PjmMN.d.mts} +1 -1
  51. package/dist/sharing/index.cjs +28 -28
  52. package/dist/sharing/index.cjs.map +1 -1
  53. package/dist/sharing/index.d.mts +1 -1
  54. package/dist/sharing/index.d.ts +1 -1
  55. package/dist/sharing/index.mjs +2 -2
  56. package/dist/types/index.d.mts +7 -7
  57. package/dist/types/index.d.ts +7 -7
  58. package/dist/{user-DKcyf8gn.d.mts → user-BHYl7drL.d.mts} +1 -1
  59. package/dist/{user-2peJoOeK.d.ts → user-DCqDbTLd.d.ts} +1 -1
  60. package/dist/utils/index.cjs +58 -54
  61. package/dist/utils/index.cjs.map +1 -1
  62. package/dist/utils/index.d.mts +25 -6
  63. package/dist/utils/index.d.ts +25 -6
  64. package/dist/utils/index.mjs +13 -7
  65. package/package.json +1 -1
  66. package/dist/chunk-7XIDMA4Z.mjs.map +0 -1
  67. package/dist/chunk-UHZHNJHO.mjs.map +0 -1
  68. package/dist/chunk-YMLEIEZD.mjs.map +0 -1
  69. package/dist/chunk-ZSSVU6GY.mjs.map +0 -1
  70. /package/dist/{chunk-6ZH75TAT.mjs.map → chunk-B22YRNRF.mjs.map} +0 -0
  71. /package/dist/{chunk-Z4FML4VL.mjs.map → chunk-BTZIWVSF.mjs.map} +0 -0
package/dist/index.d.mts CHANGED
@@ -271,6 +271,10 @@ interface RelationType$1 {
271
271
  type RelationInputType = Omit<RelationType$1, "_id" | "chatId" | "createdAt" | "updatedAt" | "deletedAt"> & {
272
272
  chatId?: string;
273
273
  };
274
+ type ResourceRelationField = {
275
+ relationId: string;
276
+ relationDates: RelationDate[];
277
+ };
274
278
 
275
279
  type StallType = {
276
280
  label: string;
@@ -331,10 +335,7 @@ interface EventType extends BaseResourceType {
331
335
  provider: string | null;
332
336
  rainOrShine: boolean;
333
337
  tags: string[];
334
- relations: {
335
- relationId: string | null;
336
- relationDates: RelationDate[] | null;
337
- }[] | null;
338
+ relations: ResourceRelationField[] | null;
338
339
  shareRelation?: SocialShareResourceType | null;
339
340
  }
340
341
  type EventListItemType = Omit<EventType, "adIds" | "contactDetails" | "eventInfoId" | "nzbn" | "owner" | "posterUsage" | "promoCodes" | "provider" | "relatedPost" | "socialMedia" | "socialShare" | "tags" | "termsAgreement">;
@@ -832,10 +833,7 @@ interface VendorType extends BaseResourceType {
832
833
  products: VendorFormData["products"] | null;
833
834
  vendorInfoId: string;
834
835
  vendorType: EnumVendorType;
835
- relations: {
836
- relationId: string | null;
837
- relationDates: RelationDate[] | null;
838
- }[] | null;
836
+ relations: ResourceRelationField[] | null;
839
837
  shareRelation?: SocialShareResourceType | null;
840
838
  unregisteredVendorId?: string | null;
841
839
  }
@@ -2319,7 +2317,9 @@ declare const useGetEvent: (_id: string) => {
2319
2317
  event: EventType | null;
2320
2318
  }>>;
2321
2319
  };
2322
- declare const useGetOwnedEvent: (_id: string) => {
2320
+ declare const useGetOwnedEvent: (_id: string, options?: {
2321
+ futureOnly?: boolean;
2322
+ }) => {
2323
2323
  error: _apollo_client.ApolloError | undefined;
2324
2324
  event: EventType | null;
2325
2325
  loading: boolean;
@@ -3862,9 +3862,14 @@ declare function sortDatesChronologically<T extends {
3862
3862
  startDate: string;
3863
3863
  startTime: string;
3864
3864
  }>(dates: T[]): T[];
3865
+ /**
3866
+ * UI filter options for user-activity event periods. Derived from the canonical
3867
+ * {@link FUTURE_EVENT_DATE_STATUSES} list, minus `STARTING_SOON` (a presentational
3868
+ * choice: "starting soon" is surfaced separately rather than as a filter).
3869
+ */
3865
3870
  declare const futureTimePeriods: {
3866
3871
  label: string;
3867
- value: string;
3872
+ value: EnumEventDateStatus.STARTED | EnumEventDateStatus.TODAY | EnumEventDateStatus.TOMORROW | EnumEventDateStatus.THIS_WEEK | EnumEventDateStatus.NEXT_WEEK | EnumEventDateStatus.UPCOMING | EnumEventDateStatus.ENDED | EnumEventDateStatus.RE_SCHEDULED | EnumEventDateStatus.CANCELED | EnumEventDateStatus.INVALID;
3868
3873
  }[];
3869
3874
 
3870
3875
  /**
@@ -3936,6 +3941,20 @@ declare function eventMatchesDateStatusPeriod(dateTime: Pick<DateTimeType, "date
3936
3941
  declare function filterEventsByDateStatusPeriod<T extends {
3937
3942
  dateTime?: Pick<DateTimeType, "dateStatus">[] | null;
3938
3943
  }>(events: T[], period: EnumEventDateStatus): T[];
3944
+ /**
3945
+ * Canonical list of date statuses whose start date/time is still in the future
3946
+ * (i.e. the slot has not started yet). `STARTED`, `ENDED`, `INVALID`,
3947
+ * `CANCELED` and `RE_SCHEDULED` are intentionally excluded.
3948
+ *
3949
+ * This is the single source of truth for "is this slot still in the future".
3950
+ * `futureTimePeriods` (in `utils/date.ts`) derives from this list for UI
3951
+ * filters, additionally excluding `STARTING_SOON`.
3952
+ */
3953
+ declare const FUTURE_EVENT_DATE_STATUSES: readonly EnumEventDateStatus[];
3954
+ declare function isFutureEventDateStatus(dateStatus: EnumEventDateStatus | null | undefined): boolean;
3955
+ declare function filterDatesByFutureStatus<T extends {
3956
+ dateStatus?: EnumEventDateStatus | null;
3957
+ }>(dates: T[]): T[];
3939
3958
 
3940
3959
  type CalendarSheetContentData = {
3941
3960
  dateTime: DateTimeType;
@@ -4088,4 +4107,4 @@ declare function toUserFacingErrorMessage(error: string | null | undefined, fall
4088
4107
  /** Extracts and sanitizes an unknown catch/Apollo error for toasts and alerts. */
4089
4108
  declare function getErrorMessage(error: unknown, fallback?: string): string;
4090
4109
 
4091
- export { ACTIVATE_VENDOR_CLAIM_MUTATION, ADMIN_APP_ROLES, ADMIN_DASHBOARD_CONTEXTS, AD_BOOKING_FIELDS_FRAGMENT, AFFILIATE_PARTICIPANT_TYPE_LABELS, AFFILIATE_REWARDS, ANDROID_URL, APPROVE_AD_BOOKING_MUTATION, type AdBookingType, type AdDailyPriceKey, type AdDailyPriceType, type AdFormData, type AdFormState, type AdPlacement, type AdResource, type AdSettingsFormData, type AdSettingsType, type AdType, type AdminAppRole, type AdminDashboardContext, type AdminDashboardContextInfo, type AdminUpdateResourceType, type AffiliateBankAccountDetailsType, type AffiliateContactDetails, type AffiliateDetailsType, type AffiliateFormData, type AffiliateResourceType, type AffiliateRewardType, type AffiliateType, type AffiliateUserDefaultFields, type AppSettingsFormData, type AppSettingsType, type AuthMutationResponse, type AuthPayloadType, BILLING_CATALOG_CURRENCY, BILLING_CATALOG_DEFINITIONS, BILLING_CATALOG_KEYS, type BadgeBasename, type BadgeId, type BaseGameMap, type BaseGameType, type BaseResourceType, type BaseResourceTypeFormData, type BillingCatalogDefinition, type BillingCatalogEntryType, type BillingCatalogInitialEntry, type BillingCatalogKey, type BillingCatalogPriceHistoryEntry, CLAIM_RESERVED_AD_DAY_MUTATION, CLUEMART_MAIN_DOMAIN_URL, CM_AFFILIATE_PROMO_CODE, CM_SCHOOL_PROMO_CODE, CREATE_AD_CHECKOUT_MUTATION, type CalendarSheetContentData, type Category, type CategoryColorType, type ChatMessageInput, type ChatMessageReaction, type ChatMessageReplyPreview, type ChatMessageSeen, type ChatMessageType, type ChatType, type CluiImageBasename, type CluiImageId, type ContactUsFormData, type CouponCodeType, type CouponDataProductsType, type CouponDataType, type CouponDefaultsFormData, type CouponMarketPassportOption, type CouponMarketVisitOption, type CouponOption, type CouponParticipantUserType, type CouponPurchaseOption, type CouponType, type CouponTypeList, type CouponVendorProduct, type CreateAdFormData, type CreateAdFormState, type CreateAffiliateFormData, type CreateAppSettingsFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateCouponFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreatePartnerFormData, type CreatePostFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateSchoolFormData, type CreateUnregisteredVendorFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, DEFAULT_PAGE_SIZE, DEFAULT_RESOURCES_RETURN_LIMIT, DEFAULT_RESOURCES_RETURN_OFFSET, DEFAULT_SHARE_OG_IMAGE, DEFAULT_USER_FACING_ERROR, type DailyClueBaseGame, type DailyClueGameData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EVENT_DATE_STATUS_PERIOD_MAP, EnumActivity, EnumAdApprovalStatus, EnumAdBookingSlotKind, EnumAdBookingState, EnumAdEntitlementSource, EnumAdPaymentStatus, EnumAdPlatform, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumAffiliateParticipantType, EnumAffiliateRewardType, EnumBillingPeriod, EnumChatReportReason, EnumChatType, EnumCouponListType, EnumCouponQualificationType, EnumEventDateStatus, EnumEventType, EnumFoodFlavor, EnumFoodType, EnumGameStatus, EnumGameType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPartnerType, EnumPaymentMethod, EnumPostContentType, EnumPostType, EnumRegions, EnumRelationResource, EnumResourceType, EnumReward, EnumSocialMedia, EnumSubscriptionStatus, EnumUserLicence, EnumUserRole, EnumVendorType, EnumVerificationType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventListFilter, type EventListItemType, type EventScheduleStatusPresentation, type EventScheduleStatusTone, type EventStatusType, type EventType, type FormDateField, type FormField, GET_AD_BOOKING, GET_AD_DAILY_PRICES, GET_AD_DAY_AVAILABILITY, GET_AD_SETTINGS, GET_EVENT, GET_EVENTS, GET_EVENT_BY_SLUG, GET_EVENT_INFO, GET_MY_AD_BOOKINGS, GET_OWNED_EVENT, GET_PARTNER, GET_PARTNERS, GET_PARTNER_BY_SLUG, GET_PENDING_AD_BOOKINGS, GET_POST, GET_POSTS, GET_POSTS_BY_TYPE, GET_POST_BY_SLUG, GET_RESOURCE_CONNECTIONS, GET_USERS, GET_VENDOR, GET_VENDORS, GET_VENDOR_BY_SLUG, GET_VENDOR_INFO, type GameDate, type GameDocType, type GameHistory, type GameLeaderboard, type GamePlacement, type GamePlacementClue, type GameType, type GeocodeLocation, type GetCouponsVariables, type GlobalGameData, type GoogleAddressComponent, type GoogleImportedMarket, IMAGE_EXTENSION, INITIAL_BILLING_CATALOG, IOS_URL, type IconBasename, type IconId, type ImageObjectType, ImageTypeEnum, KNOWN_EVENT_SCHEDULE_STATUSES, LicenceExpiryDate, type LocationGeoType, type LocationType, type LoginFormData, type LogoBasename, type LogoId, MY_PENDING_VENDOR_CLAIM, type MarketingMaterialRequestInputType, type MutationResponse, type MyPendingVendorClaim, NETWORK_USER_FACING_ERROR, type NonVisitorResourceType, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, OG_DESCRIPTION_LINE_BREAK, type OptionItem, type OtherImagesBasename, type OtherImagesId, type OwnerType, PERMISSIONS, POST_SHARE_RESOURCE_TYPES, PROMO_CODE_PREFIX, PUBLIC_SHARE_PATH_TYPES, type PaginationOptions, type PaidVendorBillingPeriod, type PaidVendorLicence, type ParticipantType, type PartnerFormData, type PartnerListFilter, type PartnerType, type PaymentInfoType, type Permission, type PostContentData, type PostContentFormData, type PostContentGame, type PostContentImage, type PostContentList, type PostContentTextarea, type PostContentType, type PostContentVideo, type PostFileInput, type PostFormData, type PostListFilter, type PostResource, type PostShareResourceType, type PostType, PostTypeLabels, type PosterAssetId, type PosterImageBasename, type PosterInputType, type PosterUsageType, type ProductCoupon, type PromoCodeType, type PublicSharePathType, type PushTokenType, type PuzzleAnswer, type PuzzleAnsweredQuestion, type PuzzleBaseGame, type PuzzleGameData, type PuzzleQuestion, RECORD_AD_IMPRESSION_MUTATION, RELATION_OVERLAY_LAYOUT_VERSION, RELATION_SHARE_APPLICATION, RELATION_SHARE_INVITATION, RELATION_SHARE_RESOURCE_TYPES, RESOURCE_SHARE_TYPES, ROLE_PERMISSIONS, type RedeemHistoryType, type RedeemRewardInput, type RedeemRewardMutationResponse, type RedeemRewardResponse, type RedeemedReward, type RefreshTokenMutationResponse, type RefreshTokenPayloadType, type RefundPolicy, type Region, type RegisterFormData, type RelatedPostType, type RelationDate, type RelationInputType, type RelationSharePathType, type RelationShareResourceType, type RelationType$1 as RelationType, type ReportChatUser, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceActivityEntry, type ResourceActivityInputType, type ResourceActivityType, type ResourceByUser, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceDetails, type ResourceImageType, type ResourceShareType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, SCHOOL_MAX_STUDENT_COUNT, SCHOOL_MIN_STUDENT_COUNT, SHARE_APPLICATION_DEADLINE_PREFIX, SHARE_CALENDAR_ICON, SHARE_CATEGORIES_SECTION_HEADING, SHARE_CATEGORY_ICON, SHARE_CHECKMARK_ICON, SHARE_CLOCK_ICON, SHARE_COMPLIANCE_PREFIX, SHARE_DESCRIPTION_SECTION_BREAK, SHARE_DOLLAR_ICON, SHARE_FOOD_TRUCK_LINE, SHARE_INFO_ICON, SHARE_MARKET_DATES_SECTION_HEADING, SHARE_MORE_INFO_LINE, SHARE_PRICE_RANGE_PREFIX, SHARE_RAIN_OR_SHINE_LINE, SHARE_REQUIREMENTS_SECTION_HEADING, SHARE_RESOURCE_LABEL, SHARE_RULER_ICON, SHARE_SITE_URL, SHARE_STALL_SIZE_PREFIX, SHARE_TAGS_SECTION_HEADING, SHARE_TYPE_PATH_REGEX, SOCIAL_IMAGE_HEIGHT, SOCIAL_IMAGE_WIDTH, type SafeUserType, type SchoolCampaignType, type SchoolFormData, type SchoolRegisteredUserType, type SchoolReturnType, type SchoolType, type ShareEventForInvitation, type ShareEventForPublic, type ShareEventInfoForInvitation, type ShareMessageFooterPlacement, type ShareResourceType, type ShareSlugResource, type ShareType, type ShareVendorForApplication, type ShareVendorForPublic, type ShareVendorInfoForApplication, type SocialMediaType, type SocialShareResourceType, type StallType, type StallholderFilterOption, type StripeSubscription, type Subcategory, type SubcategoryItems, type SubscriptionPlanData, type SubscriptionPlansResponse, type SubscriptionPricingData, type SubscriptionStatusData, type SyncBillingCatalogPriceInput, TIERS_BY_PRIORITY, TIER_DISPLAY_LABELS, TIER_FROM_LICENCE, type TermsAgreement, type Tier, UPDATE_AD_DAILY_PRICE_MUTATION, UPDATE_AD_SETTINGS_MUTATION, USER_STORAGE_KEY, type UnregisteredVendorFormData, type UnregisteredVendorInvitationType, type UnregisteredVendorType, type UpdateBillingCatalogPriceInput, type UseGetResourcesByRegionOptions, type UsePaginatedListArgs, type UsePaginatedListResult, type UserActivity, type UserActivityEvent, type UserFormData, type UserLicenceType, type UserListFilter, type UserType, type UsersByPromoCode, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorAvailability, type VendorCalendarData, type VendorClaimTokenValidation, type VendorDowngradeSnapshot, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorListFilter, type VendorProductList, type VendorType, WILDCARD_PERMISSION, accumulateItems, appendShareMoreInfoLine, availableCategories, availableRegionOptions, availableRegionTypes, availableTagTypes, badgeFiles, badgeIds, badges, bankAccountDetailsFields, billingCatalogDefinitionMatches, buildApplicationShareDescription, buildCalendarSheetContentData, buildFacebookShareQuote, buildInvitationShareDescription, buildPublicEventShareDescription, buildPublicVendorShareDescription, buildShareMessageSections, buildShareOgDescription, buildShareOgDescriptionFromSections, buildSharePagePath, buildShareUrl, canAccessAdminApp, canAccessAdminPath, capitalizeFirstLetter, categoryColors, cluemartSocialMedia, cluiFiles, cluiIds, cluiImages, collectStallholderStartDates, collectVendorEventRelationDateTimes, companyContactFields, computeDailyClueState, computeHasMore, contactUsFields, createAffiliateReward, darkColors, dateFormat, defaultGetId, emailField, eventBasicInfoFields, eventEndDateFields, eventHasSelectedDate, eventInfo, eventInfoPaymentInfo, eventMatchesDateStatusPeriod, eventStartDateFields, eventStartDatesSet, filterEventsByDateStatusPeriod, filterRegisteredVendorsByEventDatesOnly, filterRegisteredVendorsForEvent, filterUnregisteredVendorsByEventDatesOnly, filterUnregisteredVendorsForEvent, filterVendorEventsBySelectedDate, findEventDateTimeByIsoDate, fonts, foodFlavourOptions, formatCategoryLabel, formatDate, formatDistance, formatIrdNumber, formatNZBankAccount, formatShareApplicationCategoriesSection, formatShareApplicationComplianceSection, formatShareApplicationPriceRangeLine, formatShareApplicationStallSizeLine, formatShareInvitationApplicationDeadlineLine, formatShareInvitationMarketDatesSection, formatShareInvitationRequirementsSection, formatShareIsFoodTrueLine, formatShareMarketDate, formatShareRainOrShineLine, formatShareStallLine, formatShareTagsSection, formatStallCapacityLabel, formatTimestamp, fromCalendarIsoDate, futureTimePeriods, gameScreenIdentifierList, gameTypeToDisplayName, getAllowedEventDateStatuses, getBillingCatalogKeyForSelection, getCurrentAndFutureDates, getDefaultAdminHome, getDistanceInKilometers, getDistanceInMeters, getErrorMessage, getEventCalendarIsoDates, getEventDatesWithStallholders, getEventScheduleStatusLabel, getEventScheduleStatusPresentation, getEventScheduleStatusTone, getEventStallholderEmptyMessage, getPermissionsForRoles, getRegisteredVendorCategoryNames, getRegisteredVendorStartDates, getStallholderCategoryNames, getStallholderCategoryOptions, getUnregisteredVendorCategoryNames, getUnregisteredVendorStartDates, getUsableAdminContexts, getVendorEventRelationDateOptions, getVendorEventRelationStartDates, getVendorEventsEmptyMessage, hasAllPermissions, hasAnyPermission, hasAnyRole, hasMatchingEventDate, hasPermission, hasRole, iconFiles, iconIds, icons, isFutureDatesBeforeThreshold, isInternalErrorMessage, isIsoDateString, isNonVisitorResourceType, isPostShareResourceType, isRelationShareResourceType, isResourceImageActive, isTransientNetworkError, isValidIrdNumber, joinShareDescriptionSections, joinShareOgDescriptionSections, licenseNiceNames, lightColors, loginFields, logoFiles, logoIds, logos, mapArrayToOptions, matchesCategory, matchesSelectedDate, normalizeIrdNumber, normalizeResourceImage, normalizeShareOgDescription, normalizeShareRouteId, normalizeShareText, normalizeUrl, nzStartOfDay, otherImages, otherImagesFiles, otherImagesIds, packagingOptions, partnerBasicInfoFields, paymentMethodOptions, permissionListIncludes, posterFiles, posterIds, posters, priceUnits, producedIngOptions, productLabelGroups, profileFields, refundPolicyOptions, registerFields, relationHasSelectedDate, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, resolveAdminContextFromPath, resolveResourceImageActive, rewardNiceNames, seededShuffle, shareMessageFooterPlacementForType, shareSlugResourceId, shouldShowEventActionsWithWeather, socialMediaFields, sortDatesChronologically, splitShareDescriptionSections, stallTypeOptions, statusOptions, stripOverlaySubtitleSpecialChars, tagOptions, timeFormat, toCalendarIsoDate, toGraphqlQueryString, toNZTime, toShareSocialImageCacheVersion, toUserFacingErrorMessage, truncateText, useActivateVendorClaim, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminPermanentlyDeleteResource, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useAdminUpdateUserVendorLicense, useAssignAffiliateBonusReward, useAssignAffiliateResourceReward, useCancelSubscription, useContactUs, useCrawlGoogleMarkets, useCreateAd, useCreateAffiliate, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCoupon, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePrivateChat, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateSchool, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAffiliate, useDeleteAllNotifications, useDeleteChat, useDeleteCoupon, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteSchool, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useGetAd, useGetAds, useGetAdsByRegion, useGetAffiliate, useGetAffiliates, useGetAppSettings, useGetBillingCatalog, useGetChat, useGetChatSubscription, useGetChatsByRegion, useGetCoupon, useGetCoupons, useGetEvent, useGetEventByPlaceId, useGetEventInfo, useGetEventRelations, useGetEventsByRegion, useGetEventsNearMe, useGetGame, useGetGameLeaderboard, useGetGames, useGetNotificationCount, useGetNotificationCountSubscription, useGetOwnedEvent, useGetPartner, useGetPartnersByRegion, useGetPost, useGetPrivateChats, useGetRelation, useGetRelationByEventAndVendor, useGetReportedChatUsers, useGetResourceActivity, useGetResourceConnections, useGetSchool, useGetSchools, useGetSubscriptionPlans, useGetSubscriptionStatus, useGetUnregisteredVendor, useGetUnregisteredVendors, useGetUnregisteredVendorsByInviterId, useGetUser, useGetUserActivities, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserPartners, useGetUserResources, useGetUserVendors, useGetUsersByPromoCode, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendorsByRegion, useLeaveGame, useLogin, useLogout, useMarkAllNotificationsRead, useMarkChatMessagesSeen, useMarkNotificationRead, useMyPendingVendorClaim, usePaginatedList, useRedeemAffiliateReward, useRedeemReward, useRefreshToken, useRegister, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useReportChatUser, useRequestMarketingMaterial, useRequestPasswordReset, useResetPassword, useRewardCoupon, useScanCoupon, useSearchEvents, useSearchPartners, useSearchVendors, useSelectStandardPackage, useSendChatMessage, useStartGame, useSyncBillingCatalogPrice, useToggleChatMessageLike, useUnlinkUnregisteredVendorByInviterId, useUpdateAd, useUpdateAffiliateDetails, useUpdateAppSettings, useUpdateBillingCatalogPrice, useUpdateCoupon, useUpdateDailyClueGame, useUpdateEvent, useUpdateEventInfo, useUpdateGoogleImportedMarkets, useUpdatePartner, useUpdatePost, useUpdatePuzzleGame, useUpdateRelation, useUpdateSchool, useUpdateSubscriptionPlan, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useValidateVerificationToken, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLicences, vendorLocationDescription, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorProductFields, vendorStallSize, vendorStartDateFields, vendorTable };
4110
+ export { ACTIVATE_VENDOR_CLAIM_MUTATION, ADMIN_APP_ROLES, ADMIN_DASHBOARD_CONTEXTS, AD_BOOKING_FIELDS_FRAGMENT, AFFILIATE_PARTICIPANT_TYPE_LABELS, AFFILIATE_REWARDS, ANDROID_URL, APPROVE_AD_BOOKING_MUTATION, type AdBookingType, type AdDailyPriceKey, type AdDailyPriceType, type AdFormData, type AdFormState, type AdPlacement, type AdResource, type AdSettingsFormData, type AdSettingsType, type AdType, type AdminAppRole, type AdminDashboardContext, type AdminDashboardContextInfo, type AdminUpdateResourceType, type AffiliateBankAccountDetailsType, type AffiliateContactDetails, type AffiliateDetailsType, type AffiliateFormData, type AffiliateResourceType, type AffiliateRewardType, type AffiliateType, type AffiliateUserDefaultFields, type AppSettingsFormData, type AppSettingsType, type AuthMutationResponse, type AuthPayloadType, BILLING_CATALOG_CURRENCY, BILLING_CATALOG_DEFINITIONS, BILLING_CATALOG_KEYS, type BadgeBasename, type BadgeId, type BaseGameMap, type BaseGameType, type BaseResourceType, type BaseResourceTypeFormData, type BillingCatalogDefinition, type BillingCatalogEntryType, type BillingCatalogInitialEntry, type BillingCatalogKey, type BillingCatalogPriceHistoryEntry, CLAIM_RESERVED_AD_DAY_MUTATION, CLUEMART_MAIN_DOMAIN_URL, CM_AFFILIATE_PROMO_CODE, CM_SCHOOL_PROMO_CODE, CREATE_AD_CHECKOUT_MUTATION, type CalendarSheetContentData, type Category, type CategoryColorType, type ChatMessageInput, type ChatMessageReaction, type ChatMessageReplyPreview, type ChatMessageSeen, type ChatMessageType, type ChatType, type CluiImageBasename, type CluiImageId, type ContactUsFormData, type CouponCodeType, type CouponDataProductsType, type CouponDataType, type CouponDefaultsFormData, type CouponMarketPassportOption, type CouponMarketVisitOption, type CouponOption, type CouponParticipantUserType, type CouponPurchaseOption, type CouponType, type CouponTypeList, type CouponVendorProduct, type CreateAdFormData, type CreateAdFormState, type CreateAffiliateFormData, type CreateAppSettingsFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateCouponFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreatePartnerFormData, type CreatePostFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateSchoolFormData, type CreateUnregisteredVendorFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, DEFAULT_PAGE_SIZE, DEFAULT_RESOURCES_RETURN_LIMIT, DEFAULT_RESOURCES_RETURN_OFFSET, DEFAULT_SHARE_OG_IMAGE, DEFAULT_USER_FACING_ERROR, type DailyClueBaseGame, type DailyClueGameData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EVENT_DATE_STATUS_PERIOD_MAP, EnumActivity, EnumAdApprovalStatus, EnumAdBookingSlotKind, EnumAdBookingState, EnumAdEntitlementSource, EnumAdPaymentStatus, EnumAdPlatform, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumAffiliateParticipantType, EnumAffiliateRewardType, EnumBillingPeriod, EnumChatReportReason, EnumChatType, EnumCouponListType, EnumCouponQualificationType, EnumEventDateStatus, EnumEventType, EnumFoodFlavor, EnumFoodType, EnumGameStatus, EnumGameType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPartnerType, EnumPaymentMethod, EnumPostContentType, EnumPostType, EnumRegions, EnumRelationResource, EnumResourceType, EnumReward, EnumSocialMedia, EnumSubscriptionStatus, EnumUserLicence, EnumUserRole, EnumVendorType, EnumVerificationType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventListFilter, type EventListItemType, type EventScheduleStatusPresentation, type EventScheduleStatusTone, type EventStatusType, type EventType, FUTURE_EVENT_DATE_STATUSES, type FormDateField, type FormField, GET_AD_BOOKING, GET_AD_DAILY_PRICES, GET_AD_DAY_AVAILABILITY, GET_AD_SETTINGS, GET_EVENT, GET_EVENTS, GET_EVENT_BY_SLUG, GET_EVENT_INFO, GET_MY_AD_BOOKINGS, GET_OWNED_EVENT, GET_PARTNER, GET_PARTNERS, GET_PARTNER_BY_SLUG, GET_PENDING_AD_BOOKINGS, GET_POST, GET_POSTS, GET_POSTS_BY_TYPE, GET_POST_BY_SLUG, GET_RESOURCE_CONNECTIONS, GET_USERS, GET_VENDOR, GET_VENDORS, GET_VENDOR_BY_SLUG, GET_VENDOR_INFO, type GameDate, type GameDocType, type GameHistory, type GameLeaderboard, type GamePlacement, type GamePlacementClue, type GameType, type GeocodeLocation, type GetCouponsVariables, type GlobalGameData, type GoogleAddressComponent, type GoogleImportedMarket, IMAGE_EXTENSION, INITIAL_BILLING_CATALOG, IOS_URL, type IconBasename, type IconId, type ImageObjectType, ImageTypeEnum, KNOWN_EVENT_SCHEDULE_STATUSES, LicenceExpiryDate, type LocationGeoType, type LocationType, type LoginFormData, type LogoBasename, type LogoId, MY_PENDING_VENDOR_CLAIM, type MarketingMaterialRequestInputType, type MutationResponse, type MyPendingVendorClaim, NETWORK_USER_FACING_ERROR, type NonVisitorResourceType, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, OG_DESCRIPTION_LINE_BREAK, type OptionItem, type OtherImagesBasename, type OtherImagesId, type OwnerType, PERMISSIONS, POST_SHARE_RESOURCE_TYPES, PROMO_CODE_PREFIX, PUBLIC_SHARE_PATH_TYPES, type PaginationOptions, type PaidVendorBillingPeriod, type PaidVendorLicence, type ParticipantType, type PartnerFormData, type PartnerListFilter, type PartnerType, type PaymentInfoType, type Permission, type PostContentData, type PostContentFormData, type PostContentGame, type PostContentImage, type PostContentList, type PostContentTextarea, type PostContentType, type PostContentVideo, type PostFileInput, type PostFormData, type PostListFilter, type PostResource, type PostShareResourceType, type PostType, PostTypeLabels, type PosterAssetId, type PosterImageBasename, type PosterInputType, type PosterUsageType, type ProductCoupon, type PromoCodeType, type PublicSharePathType, type PushTokenType, type PuzzleAnswer, type PuzzleAnsweredQuestion, type PuzzleBaseGame, type PuzzleGameData, type PuzzleQuestion, RECORD_AD_IMPRESSION_MUTATION, RELATION_OVERLAY_LAYOUT_VERSION, RELATION_SHARE_APPLICATION, RELATION_SHARE_INVITATION, RELATION_SHARE_RESOURCE_TYPES, RESOURCE_SHARE_TYPES, ROLE_PERMISSIONS, type RedeemHistoryType, type RedeemRewardInput, type RedeemRewardMutationResponse, type RedeemRewardResponse, type RedeemedReward, type RefreshTokenMutationResponse, type RefreshTokenPayloadType, type RefundPolicy, type Region, type RegisterFormData, type RelatedPostType, type RelationDate, type RelationInputType, type RelationSharePathType, type RelationShareResourceType, type RelationType$1 as RelationType, type ReportChatUser, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceActivityEntry, type ResourceActivityInputType, type ResourceActivityType, type ResourceByUser, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceDetails, type ResourceImageType, type ResourceRelationField, type ResourceShareType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, SCHOOL_MAX_STUDENT_COUNT, SCHOOL_MIN_STUDENT_COUNT, SHARE_APPLICATION_DEADLINE_PREFIX, SHARE_CALENDAR_ICON, SHARE_CATEGORIES_SECTION_HEADING, SHARE_CATEGORY_ICON, SHARE_CHECKMARK_ICON, SHARE_CLOCK_ICON, SHARE_COMPLIANCE_PREFIX, SHARE_DESCRIPTION_SECTION_BREAK, SHARE_DOLLAR_ICON, SHARE_FOOD_TRUCK_LINE, SHARE_INFO_ICON, SHARE_MARKET_DATES_SECTION_HEADING, SHARE_MORE_INFO_LINE, SHARE_PRICE_RANGE_PREFIX, SHARE_RAIN_OR_SHINE_LINE, SHARE_REQUIREMENTS_SECTION_HEADING, SHARE_RESOURCE_LABEL, SHARE_RULER_ICON, SHARE_SITE_URL, SHARE_STALL_SIZE_PREFIX, SHARE_TAGS_SECTION_HEADING, SHARE_TYPE_PATH_REGEX, SOCIAL_IMAGE_HEIGHT, SOCIAL_IMAGE_WIDTH, type SafeUserType, type SchoolCampaignType, type SchoolFormData, type SchoolRegisteredUserType, type SchoolReturnType, type SchoolType, type ShareEventForInvitation, type ShareEventForPublic, type ShareEventInfoForInvitation, type ShareMessageFooterPlacement, type ShareResourceType, type ShareSlugResource, type ShareType, type ShareVendorForApplication, type ShareVendorForPublic, type ShareVendorInfoForApplication, type SocialMediaType, type SocialShareResourceType, type StallType, type StallholderFilterOption, type StripeSubscription, type Subcategory, type SubcategoryItems, type SubscriptionPlanData, type SubscriptionPlansResponse, type SubscriptionPricingData, type SubscriptionStatusData, type SyncBillingCatalogPriceInput, TIERS_BY_PRIORITY, TIER_DISPLAY_LABELS, TIER_FROM_LICENCE, type TermsAgreement, type Tier, UPDATE_AD_DAILY_PRICE_MUTATION, UPDATE_AD_SETTINGS_MUTATION, USER_STORAGE_KEY, type UnregisteredVendorFormData, type UnregisteredVendorInvitationType, type UnregisteredVendorType, type UpdateBillingCatalogPriceInput, type UseGetResourcesByRegionOptions, type UsePaginatedListArgs, type UsePaginatedListResult, type UserActivity, type UserActivityEvent, type UserFormData, type UserLicenceType, type UserListFilter, type UserType, type UsersByPromoCode, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorAvailability, type VendorCalendarData, type VendorClaimTokenValidation, type VendorDowngradeSnapshot, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorListFilter, type VendorProductList, type VendorType, WILDCARD_PERMISSION, accumulateItems, appendShareMoreInfoLine, availableCategories, availableRegionOptions, availableRegionTypes, availableTagTypes, badgeFiles, badgeIds, badges, bankAccountDetailsFields, billingCatalogDefinitionMatches, buildApplicationShareDescription, buildCalendarSheetContentData, buildFacebookShareQuote, buildInvitationShareDescription, buildPublicEventShareDescription, buildPublicVendorShareDescription, buildShareMessageSections, buildShareOgDescription, buildShareOgDescriptionFromSections, buildSharePagePath, buildShareUrl, canAccessAdminApp, canAccessAdminPath, capitalizeFirstLetter, categoryColors, cluemartSocialMedia, cluiFiles, cluiIds, cluiImages, collectStallholderStartDates, collectVendorEventRelationDateTimes, companyContactFields, computeDailyClueState, computeHasMore, contactUsFields, createAffiliateReward, darkColors, dateFormat, defaultGetId, emailField, eventBasicInfoFields, eventEndDateFields, eventHasSelectedDate, eventInfo, eventInfoPaymentInfo, eventMatchesDateStatusPeriod, eventStartDateFields, eventStartDatesSet, filterDatesByFutureStatus, filterEventsByDateStatusPeriod, filterRegisteredVendorsByEventDatesOnly, filterRegisteredVendorsForEvent, filterUnregisteredVendorsByEventDatesOnly, filterUnregisteredVendorsForEvent, filterVendorEventsBySelectedDate, findEventDateTimeByIsoDate, fonts, foodFlavourOptions, formatCategoryLabel, formatDate, formatDistance, formatIrdNumber, formatNZBankAccount, formatShareApplicationCategoriesSection, formatShareApplicationComplianceSection, formatShareApplicationPriceRangeLine, formatShareApplicationStallSizeLine, formatShareInvitationApplicationDeadlineLine, formatShareInvitationMarketDatesSection, formatShareInvitationRequirementsSection, formatShareIsFoodTrueLine, formatShareMarketDate, formatShareRainOrShineLine, formatShareStallLine, formatShareTagsSection, formatStallCapacityLabel, formatTimestamp, fromCalendarIsoDate, futureTimePeriods, gameScreenIdentifierList, gameTypeToDisplayName, getAllowedEventDateStatuses, getBillingCatalogKeyForSelection, getCurrentAndFutureDates, getDefaultAdminHome, getDistanceInKilometers, getDistanceInMeters, getErrorMessage, getEventCalendarIsoDates, getEventDatesWithStallholders, getEventScheduleStatusLabel, getEventScheduleStatusPresentation, getEventScheduleStatusTone, getEventStallholderEmptyMessage, getPermissionsForRoles, getRegisteredVendorCategoryNames, getRegisteredVendorStartDates, getStallholderCategoryNames, getStallholderCategoryOptions, getUnregisteredVendorCategoryNames, getUnregisteredVendorStartDates, getUsableAdminContexts, getVendorEventRelationDateOptions, getVendorEventRelationStartDates, getVendorEventsEmptyMessage, hasAllPermissions, hasAnyPermission, hasAnyRole, hasMatchingEventDate, hasPermission, hasRole, iconFiles, iconIds, icons, isFutureDatesBeforeThreshold, isFutureEventDateStatus, isInternalErrorMessage, isIsoDateString, isNonVisitorResourceType, isPostShareResourceType, isRelationShareResourceType, isResourceImageActive, isTransientNetworkError, isValidIrdNumber, joinShareDescriptionSections, joinShareOgDescriptionSections, licenseNiceNames, lightColors, loginFields, logoFiles, logoIds, logos, mapArrayToOptions, matchesCategory, matchesSelectedDate, normalizeIrdNumber, normalizeResourceImage, normalizeShareOgDescription, normalizeShareRouteId, normalizeShareText, normalizeUrl, nzStartOfDay, otherImages, otherImagesFiles, otherImagesIds, packagingOptions, partnerBasicInfoFields, paymentMethodOptions, permissionListIncludes, posterFiles, posterIds, posters, priceUnits, producedIngOptions, productLabelGroups, profileFields, refundPolicyOptions, registerFields, relationHasSelectedDate, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, resolveAdminContextFromPath, resolveResourceImageActive, rewardNiceNames, seededShuffle, shareMessageFooterPlacementForType, shareSlugResourceId, shouldShowEventActionsWithWeather, socialMediaFields, sortDatesChronologically, splitShareDescriptionSections, stallTypeOptions, statusOptions, stripOverlaySubtitleSpecialChars, tagOptions, timeFormat, toCalendarIsoDate, toGraphqlQueryString, toNZTime, toShareSocialImageCacheVersion, toUserFacingErrorMessage, truncateText, useActivateVendorClaim, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminPermanentlyDeleteResource, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useAdminUpdateUserVendorLicense, useAssignAffiliateBonusReward, useAssignAffiliateResourceReward, useCancelSubscription, useContactUs, useCrawlGoogleMarkets, useCreateAd, useCreateAffiliate, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCoupon, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePrivateChat, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateSchool, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAffiliate, useDeleteAllNotifications, useDeleteChat, useDeleteCoupon, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteSchool, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useGetAd, useGetAds, useGetAdsByRegion, useGetAffiliate, useGetAffiliates, useGetAppSettings, useGetBillingCatalog, useGetChat, useGetChatSubscription, useGetChatsByRegion, useGetCoupon, useGetCoupons, useGetEvent, useGetEventByPlaceId, useGetEventInfo, useGetEventRelations, useGetEventsByRegion, useGetEventsNearMe, useGetGame, useGetGameLeaderboard, useGetGames, useGetNotificationCount, useGetNotificationCountSubscription, useGetOwnedEvent, useGetPartner, useGetPartnersByRegion, useGetPost, useGetPrivateChats, useGetRelation, useGetRelationByEventAndVendor, useGetReportedChatUsers, useGetResourceActivity, useGetResourceConnections, useGetSchool, useGetSchools, useGetSubscriptionPlans, useGetSubscriptionStatus, useGetUnregisteredVendor, useGetUnregisteredVendors, useGetUnregisteredVendorsByInviterId, useGetUser, useGetUserActivities, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserPartners, useGetUserResources, useGetUserVendors, useGetUsersByPromoCode, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendorsByRegion, useLeaveGame, useLogin, useLogout, useMarkAllNotificationsRead, useMarkChatMessagesSeen, useMarkNotificationRead, useMyPendingVendorClaim, usePaginatedList, useRedeemAffiliateReward, useRedeemReward, useRefreshToken, useRegister, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useReportChatUser, useRequestMarketingMaterial, useRequestPasswordReset, useResetPassword, useRewardCoupon, useScanCoupon, useSearchEvents, useSearchPartners, useSearchVendors, useSelectStandardPackage, useSendChatMessage, useStartGame, useSyncBillingCatalogPrice, useToggleChatMessageLike, useUnlinkUnregisteredVendorByInviterId, useUpdateAd, useUpdateAffiliateDetails, useUpdateAppSettings, useUpdateBillingCatalogPrice, useUpdateCoupon, useUpdateDailyClueGame, useUpdateEvent, useUpdateEventInfo, useUpdateGoogleImportedMarkets, useUpdatePartner, useUpdatePost, useUpdatePuzzleGame, useUpdateRelation, useUpdateSchool, useUpdateSubscriptionPlan, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useValidateVerificationToken, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLicences, vendorLocationDescription, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorProductFields, vendorStallSize, vendorStartDateFields, vendorTable };
package/dist/index.d.ts CHANGED
@@ -271,6 +271,10 @@ interface RelationType$1 {
271
271
  type RelationInputType = Omit<RelationType$1, "_id" | "chatId" | "createdAt" | "updatedAt" | "deletedAt"> & {
272
272
  chatId?: string;
273
273
  };
274
+ type ResourceRelationField = {
275
+ relationId: string;
276
+ relationDates: RelationDate[];
277
+ };
274
278
 
275
279
  type StallType = {
276
280
  label: string;
@@ -331,10 +335,7 @@ interface EventType extends BaseResourceType {
331
335
  provider: string | null;
332
336
  rainOrShine: boolean;
333
337
  tags: string[];
334
- relations: {
335
- relationId: string | null;
336
- relationDates: RelationDate[] | null;
337
- }[] | null;
338
+ relations: ResourceRelationField[] | null;
338
339
  shareRelation?: SocialShareResourceType | null;
339
340
  }
340
341
  type EventListItemType = Omit<EventType, "adIds" | "contactDetails" | "eventInfoId" | "nzbn" | "owner" | "posterUsage" | "promoCodes" | "provider" | "relatedPost" | "socialMedia" | "socialShare" | "tags" | "termsAgreement">;
@@ -832,10 +833,7 @@ interface VendorType extends BaseResourceType {
832
833
  products: VendorFormData["products"] | null;
833
834
  vendorInfoId: string;
834
835
  vendorType: EnumVendorType;
835
- relations: {
836
- relationId: string | null;
837
- relationDates: RelationDate[] | null;
838
- }[] | null;
836
+ relations: ResourceRelationField[] | null;
839
837
  shareRelation?: SocialShareResourceType | null;
840
838
  unregisteredVendorId?: string | null;
841
839
  }
@@ -2319,7 +2317,9 @@ declare const useGetEvent: (_id: string) => {
2319
2317
  event: EventType | null;
2320
2318
  }>>;
2321
2319
  };
2322
- declare const useGetOwnedEvent: (_id: string) => {
2320
+ declare const useGetOwnedEvent: (_id: string, options?: {
2321
+ futureOnly?: boolean;
2322
+ }) => {
2323
2323
  error: _apollo_client.ApolloError | undefined;
2324
2324
  event: EventType | null;
2325
2325
  loading: boolean;
@@ -3862,9 +3862,14 @@ declare function sortDatesChronologically<T extends {
3862
3862
  startDate: string;
3863
3863
  startTime: string;
3864
3864
  }>(dates: T[]): T[];
3865
+ /**
3866
+ * UI filter options for user-activity event periods. Derived from the canonical
3867
+ * {@link FUTURE_EVENT_DATE_STATUSES} list, minus `STARTING_SOON` (a presentational
3868
+ * choice: "starting soon" is surfaced separately rather than as a filter).
3869
+ */
3865
3870
  declare const futureTimePeriods: {
3866
3871
  label: string;
3867
- value: string;
3872
+ value: EnumEventDateStatus.STARTED | EnumEventDateStatus.TODAY | EnumEventDateStatus.TOMORROW | EnumEventDateStatus.THIS_WEEK | EnumEventDateStatus.NEXT_WEEK | EnumEventDateStatus.UPCOMING | EnumEventDateStatus.ENDED | EnumEventDateStatus.RE_SCHEDULED | EnumEventDateStatus.CANCELED | EnumEventDateStatus.INVALID;
3868
3873
  }[];
3869
3874
 
3870
3875
  /**
@@ -3936,6 +3941,20 @@ declare function eventMatchesDateStatusPeriod(dateTime: Pick<DateTimeType, "date
3936
3941
  declare function filterEventsByDateStatusPeriod<T extends {
3937
3942
  dateTime?: Pick<DateTimeType, "dateStatus">[] | null;
3938
3943
  }>(events: T[], period: EnumEventDateStatus): T[];
3944
+ /**
3945
+ * Canonical list of date statuses whose start date/time is still in the future
3946
+ * (i.e. the slot has not started yet). `STARTED`, `ENDED`, `INVALID`,
3947
+ * `CANCELED` and `RE_SCHEDULED` are intentionally excluded.
3948
+ *
3949
+ * This is the single source of truth for "is this slot still in the future".
3950
+ * `futureTimePeriods` (in `utils/date.ts`) derives from this list for UI
3951
+ * filters, additionally excluding `STARTING_SOON`.
3952
+ */
3953
+ declare const FUTURE_EVENT_DATE_STATUSES: readonly EnumEventDateStatus[];
3954
+ declare function isFutureEventDateStatus(dateStatus: EnumEventDateStatus | null | undefined): boolean;
3955
+ declare function filterDatesByFutureStatus<T extends {
3956
+ dateStatus?: EnumEventDateStatus | null;
3957
+ }>(dates: T[]): T[];
3939
3958
 
3940
3959
  type CalendarSheetContentData = {
3941
3960
  dateTime: DateTimeType;
@@ -4088,4 +4107,4 @@ declare function toUserFacingErrorMessage(error: string | null | undefined, fall
4088
4107
  /** Extracts and sanitizes an unknown catch/Apollo error for toasts and alerts. */
4089
4108
  declare function getErrorMessage(error: unknown, fallback?: string): string;
4090
4109
 
4091
- export { ACTIVATE_VENDOR_CLAIM_MUTATION, ADMIN_APP_ROLES, ADMIN_DASHBOARD_CONTEXTS, AD_BOOKING_FIELDS_FRAGMENT, AFFILIATE_PARTICIPANT_TYPE_LABELS, AFFILIATE_REWARDS, ANDROID_URL, APPROVE_AD_BOOKING_MUTATION, type AdBookingType, type AdDailyPriceKey, type AdDailyPriceType, type AdFormData, type AdFormState, type AdPlacement, type AdResource, type AdSettingsFormData, type AdSettingsType, type AdType, type AdminAppRole, type AdminDashboardContext, type AdminDashboardContextInfo, type AdminUpdateResourceType, type AffiliateBankAccountDetailsType, type AffiliateContactDetails, type AffiliateDetailsType, type AffiliateFormData, type AffiliateResourceType, type AffiliateRewardType, type AffiliateType, type AffiliateUserDefaultFields, type AppSettingsFormData, type AppSettingsType, type AuthMutationResponse, type AuthPayloadType, BILLING_CATALOG_CURRENCY, BILLING_CATALOG_DEFINITIONS, BILLING_CATALOG_KEYS, type BadgeBasename, type BadgeId, type BaseGameMap, type BaseGameType, type BaseResourceType, type BaseResourceTypeFormData, type BillingCatalogDefinition, type BillingCatalogEntryType, type BillingCatalogInitialEntry, type BillingCatalogKey, type BillingCatalogPriceHistoryEntry, CLAIM_RESERVED_AD_DAY_MUTATION, CLUEMART_MAIN_DOMAIN_URL, CM_AFFILIATE_PROMO_CODE, CM_SCHOOL_PROMO_CODE, CREATE_AD_CHECKOUT_MUTATION, type CalendarSheetContentData, type Category, type CategoryColorType, type ChatMessageInput, type ChatMessageReaction, type ChatMessageReplyPreview, type ChatMessageSeen, type ChatMessageType, type ChatType, type CluiImageBasename, type CluiImageId, type ContactUsFormData, type CouponCodeType, type CouponDataProductsType, type CouponDataType, type CouponDefaultsFormData, type CouponMarketPassportOption, type CouponMarketVisitOption, type CouponOption, type CouponParticipantUserType, type CouponPurchaseOption, type CouponType, type CouponTypeList, type CouponVendorProduct, type CreateAdFormData, type CreateAdFormState, type CreateAffiliateFormData, type CreateAppSettingsFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateCouponFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreatePartnerFormData, type CreatePostFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateSchoolFormData, type CreateUnregisteredVendorFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, DEFAULT_PAGE_SIZE, DEFAULT_RESOURCES_RETURN_LIMIT, DEFAULT_RESOURCES_RETURN_OFFSET, DEFAULT_SHARE_OG_IMAGE, DEFAULT_USER_FACING_ERROR, type DailyClueBaseGame, type DailyClueGameData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EVENT_DATE_STATUS_PERIOD_MAP, EnumActivity, EnumAdApprovalStatus, EnumAdBookingSlotKind, EnumAdBookingState, EnumAdEntitlementSource, EnumAdPaymentStatus, EnumAdPlatform, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumAffiliateParticipantType, EnumAffiliateRewardType, EnumBillingPeriod, EnumChatReportReason, EnumChatType, EnumCouponListType, EnumCouponQualificationType, EnumEventDateStatus, EnumEventType, EnumFoodFlavor, EnumFoodType, EnumGameStatus, EnumGameType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPartnerType, EnumPaymentMethod, EnumPostContentType, EnumPostType, EnumRegions, EnumRelationResource, EnumResourceType, EnumReward, EnumSocialMedia, EnumSubscriptionStatus, EnumUserLicence, EnumUserRole, EnumVendorType, EnumVerificationType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventListFilter, type EventListItemType, type EventScheduleStatusPresentation, type EventScheduleStatusTone, type EventStatusType, type EventType, type FormDateField, type FormField, GET_AD_BOOKING, GET_AD_DAILY_PRICES, GET_AD_DAY_AVAILABILITY, GET_AD_SETTINGS, GET_EVENT, GET_EVENTS, GET_EVENT_BY_SLUG, GET_EVENT_INFO, GET_MY_AD_BOOKINGS, GET_OWNED_EVENT, GET_PARTNER, GET_PARTNERS, GET_PARTNER_BY_SLUG, GET_PENDING_AD_BOOKINGS, GET_POST, GET_POSTS, GET_POSTS_BY_TYPE, GET_POST_BY_SLUG, GET_RESOURCE_CONNECTIONS, GET_USERS, GET_VENDOR, GET_VENDORS, GET_VENDOR_BY_SLUG, GET_VENDOR_INFO, type GameDate, type GameDocType, type GameHistory, type GameLeaderboard, type GamePlacement, type GamePlacementClue, type GameType, type GeocodeLocation, type GetCouponsVariables, type GlobalGameData, type GoogleAddressComponent, type GoogleImportedMarket, IMAGE_EXTENSION, INITIAL_BILLING_CATALOG, IOS_URL, type IconBasename, type IconId, type ImageObjectType, ImageTypeEnum, KNOWN_EVENT_SCHEDULE_STATUSES, LicenceExpiryDate, type LocationGeoType, type LocationType, type LoginFormData, type LogoBasename, type LogoId, MY_PENDING_VENDOR_CLAIM, type MarketingMaterialRequestInputType, type MutationResponse, type MyPendingVendorClaim, NETWORK_USER_FACING_ERROR, type NonVisitorResourceType, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, OG_DESCRIPTION_LINE_BREAK, type OptionItem, type OtherImagesBasename, type OtherImagesId, type OwnerType, PERMISSIONS, POST_SHARE_RESOURCE_TYPES, PROMO_CODE_PREFIX, PUBLIC_SHARE_PATH_TYPES, type PaginationOptions, type PaidVendorBillingPeriod, type PaidVendorLicence, type ParticipantType, type PartnerFormData, type PartnerListFilter, type PartnerType, type PaymentInfoType, type Permission, type PostContentData, type PostContentFormData, type PostContentGame, type PostContentImage, type PostContentList, type PostContentTextarea, type PostContentType, type PostContentVideo, type PostFileInput, type PostFormData, type PostListFilter, type PostResource, type PostShareResourceType, type PostType, PostTypeLabels, type PosterAssetId, type PosterImageBasename, type PosterInputType, type PosterUsageType, type ProductCoupon, type PromoCodeType, type PublicSharePathType, type PushTokenType, type PuzzleAnswer, type PuzzleAnsweredQuestion, type PuzzleBaseGame, type PuzzleGameData, type PuzzleQuestion, RECORD_AD_IMPRESSION_MUTATION, RELATION_OVERLAY_LAYOUT_VERSION, RELATION_SHARE_APPLICATION, RELATION_SHARE_INVITATION, RELATION_SHARE_RESOURCE_TYPES, RESOURCE_SHARE_TYPES, ROLE_PERMISSIONS, type RedeemHistoryType, type RedeemRewardInput, type RedeemRewardMutationResponse, type RedeemRewardResponse, type RedeemedReward, type RefreshTokenMutationResponse, type RefreshTokenPayloadType, type RefundPolicy, type Region, type RegisterFormData, type RelatedPostType, type RelationDate, type RelationInputType, type RelationSharePathType, type RelationShareResourceType, type RelationType$1 as RelationType, type ReportChatUser, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceActivityEntry, type ResourceActivityInputType, type ResourceActivityType, type ResourceByUser, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceDetails, type ResourceImageType, type ResourceShareType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, SCHOOL_MAX_STUDENT_COUNT, SCHOOL_MIN_STUDENT_COUNT, SHARE_APPLICATION_DEADLINE_PREFIX, SHARE_CALENDAR_ICON, SHARE_CATEGORIES_SECTION_HEADING, SHARE_CATEGORY_ICON, SHARE_CHECKMARK_ICON, SHARE_CLOCK_ICON, SHARE_COMPLIANCE_PREFIX, SHARE_DESCRIPTION_SECTION_BREAK, SHARE_DOLLAR_ICON, SHARE_FOOD_TRUCK_LINE, SHARE_INFO_ICON, SHARE_MARKET_DATES_SECTION_HEADING, SHARE_MORE_INFO_LINE, SHARE_PRICE_RANGE_PREFIX, SHARE_RAIN_OR_SHINE_LINE, SHARE_REQUIREMENTS_SECTION_HEADING, SHARE_RESOURCE_LABEL, SHARE_RULER_ICON, SHARE_SITE_URL, SHARE_STALL_SIZE_PREFIX, SHARE_TAGS_SECTION_HEADING, SHARE_TYPE_PATH_REGEX, SOCIAL_IMAGE_HEIGHT, SOCIAL_IMAGE_WIDTH, type SafeUserType, type SchoolCampaignType, type SchoolFormData, type SchoolRegisteredUserType, type SchoolReturnType, type SchoolType, type ShareEventForInvitation, type ShareEventForPublic, type ShareEventInfoForInvitation, type ShareMessageFooterPlacement, type ShareResourceType, type ShareSlugResource, type ShareType, type ShareVendorForApplication, type ShareVendorForPublic, type ShareVendorInfoForApplication, type SocialMediaType, type SocialShareResourceType, type StallType, type StallholderFilterOption, type StripeSubscription, type Subcategory, type SubcategoryItems, type SubscriptionPlanData, type SubscriptionPlansResponse, type SubscriptionPricingData, type SubscriptionStatusData, type SyncBillingCatalogPriceInput, TIERS_BY_PRIORITY, TIER_DISPLAY_LABELS, TIER_FROM_LICENCE, type TermsAgreement, type Tier, UPDATE_AD_DAILY_PRICE_MUTATION, UPDATE_AD_SETTINGS_MUTATION, USER_STORAGE_KEY, type UnregisteredVendorFormData, type UnregisteredVendorInvitationType, type UnregisteredVendorType, type UpdateBillingCatalogPriceInput, type UseGetResourcesByRegionOptions, type UsePaginatedListArgs, type UsePaginatedListResult, type UserActivity, type UserActivityEvent, type UserFormData, type UserLicenceType, type UserListFilter, type UserType, type UsersByPromoCode, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorAvailability, type VendorCalendarData, type VendorClaimTokenValidation, type VendorDowngradeSnapshot, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorListFilter, type VendorProductList, type VendorType, WILDCARD_PERMISSION, accumulateItems, appendShareMoreInfoLine, availableCategories, availableRegionOptions, availableRegionTypes, availableTagTypes, badgeFiles, badgeIds, badges, bankAccountDetailsFields, billingCatalogDefinitionMatches, buildApplicationShareDescription, buildCalendarSheetContentData, buildFacebookShareQuote, buildInvitationShareDescription, buildPublicEventShareDescription, buildPublicVendorShareDescription, buildShareMessageSections, buildShareOgDescription, buildShareOgDescriptionFromSections, buildSharePagePath, buildShareUrl, canAccessAdminApp, canAccessAdminPath, capitalizeFirstLetter, categoryColors, cluemartSocialMedia, cluiFiles, cluiIds, cluiImages, collectStallholderStartDates, collectVendorEventRelationDateTimes, companyContactFields, computeDailyClueState, computeHasMore, contactUsFields, createAffiliateReward, darkColors, dateFormat, defaultGetId, emailField, eventBasicInfoFields, eventEndDateFields, eventHasSelectedDate, eventInfo, eventInfoPaymentInfo, eventMatchesDateStatusPeriod, eventStartDateFields, eventStartDatesSet, filterEventsByDateStatusPeriod, filterRegisteredVendorsByEventDatesOnly, filterRegisteredVendorsForEvent, filterUnregisteredVendorsByEventDatesOnly, filterUnregisteredVendorsForEvent, filterVendorEventsBySelectedDate, findEventDateTimeByIsoDate, fonts, foodFlavourOptions, formatCategoryLabel, formatDate, formatDistance, formatIrdNumber, formatNZBankAccount, formatShareApplicationCategoriesSection, formatShareApplicationComplianceSection, formatShareApplicationPriceRangeLine, formatShareApplicationStallSizeLine, formatShareInvitationApplicationDeadlineLine, formatShareInvitationMarketDatesSection, formatShareInvitationRequirementsSection, formatShareIsFoodTrueLine, formatShareMarketDate, formatShareRainOrShineLine, formatShareStallLine, formatShareTagsSection, formatStallCapacityLabel, formatTimestamp, fromCalendarIsoDate, futureTimePeriods, gameScreenIdentifierList, gameTypeToDisplayName, getAllowedEventDateStatuses, getBillingCatalogKeyForSelection, getCurrentAndFutureDates, getDefaultAdminHome, getDistanceInKilometers, getDistanceInMeters, getErrorMessage, getEventCalendarIsoDates, getEventDatesWithStallholders, getEventScheduleStatusLabel, getEventScheduleStatusPresentation, getEventScheduleStatusTone, getEventStallholderEmptyMessage, getPermissionsForRoles, getRegisteredVendorCategoryNames, getRegisteredVendorStartDates, getStallholderCategoryNames, getStallholderCategoryOptions, getUnregisteredVendorCategoryNames, getUnregisteredVendorStartDates, getUsableAdminContexts, getVendorEventRelationDateOptions, getVendorEventRelationStartDates, getVendorEventsEmptyMessage, hasAllPermissions, hasAnyPermission, hasAnyRole, hasMatchingEventDate, hasPermission, hasRole, iconFiles, iconIds, icons, isFutureDatesBeforeThreshold, isInternalErrorMessage, isIsoDateString, isNonVisitorResourceType, isPostShareResourceType, isRelationShareResourceType, isResourceImageActive, isTransientNetworkError, isValidIrdNumber, joinShareDescriptionSections, joinShareOgDescriptionSections, licenseNiceNames, lightColors, loginFields, logoFiles, logoIds, logos, mapArrayToOptions, matchesCategory, matchesSelectedDate, normalizeIrdNumber, normalizeResourceImage, normalizeShareOgDescription, normalizeShareRouteId, normalizeShareText, normalizeUrl, nzStartOfDay, otherImages, otherImagesFiles, otherImagesIds, packagingOptions, partnerBasicInfoFields, paymentMethodOptions, permissionListIncludes, posterFiles, posterIds, posters, priceUnits, producedIngOptions, productLabelGroups, profileFields, refundPolicyOptions, registerFields, relationHasSelectedDate, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, resolveAdminContextFromPath, resolveResourceImageActive, rewardNiceNames, seededShuffle, shareMessageFooterPlacementForType, shareSlugResourceId, shouldShowEventActionsWithWeather, socialMediaFields, sortDatesChronologically, splitShareDescriptionSections, stallTypeOptions, statusOptions, stripOverlaySubtitleSpecialChars, tagOptions, timeFormat, toCalendarIsoDate, toGraphqlQueryString, toNZTime, toShareSocialImageCacheVersion, toUserFacingErrorMessage, truncateText, useActivateVendorClaim, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminPermanentlyDeleteResource, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useAdminUpdateUserVendorLicense, useAssignAffiliateBonusReward, useAssignAffiliateResourceReward, useCancelSubscription, useContactUs, useCrawlGoogleMarkets, useCreateAd, useCreateAffiliate, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCoupon, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePrivateChat, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateSchool, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAffiliate, useDeleteAllNotifications, useDeleteChat, useDeleteCoupon, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteSchool, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useGetAd, useGetAds, useGetAdsByRegion, useGetAffiliate, useGetAffiliates, useGetAppSettings, useGetBillingCatalog, useGetChat, useGetChatSubscription, useGetChatsByRegion, useGetCoupon, useGetCoupons, useGetEvent, useGetEventByPlaceId, useGetEventInfo, useGetEventRelations, useGetEventsByRegion, useGetEventsNearMe, useGetGame, useGetGameLeaderboard, useGetGames, useGetNotificationCount, useGetNotificationCountSubscription, useGetOwnedEvent, useGetPartner, useGetPartnersByRegion, useGetPost, useGetPrivateChats, useGetRelation, useGetRelationByEventAndVendor, useGetReportedChatUsers, useGetResourceActivity, useGetResourceConnections, useGetSchool, useGetSchools, useGetSubscriptionPlans, useGetSubscriptionStatus, useGetUnregisteredVendor, useGetUnregisteredVendors, useGetUnregisteredVendorsByInviterId, useGetUser, useGetUserActivities, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserPartners, useGetUserResources, useGetUserVendors, useGetUsersByPromoCode, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendorsByRegion, useLeaveGame, useLogin, useLogout, useMarkAllNotificationsRead, useMarkChatMessagesSeen, useMarkNotificationRead, useMyPendingVendorClaim, usePaginatedList, useRedeemAffiliateReward, useRedeemReward, useRefreshToken, useRegister, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useReportChatUser, useRequestMarketingMaterial, useRequestPasswordReset, useResetPassword, useRewardCoupon, useScanCoupon, useSearchEvents, useSearchPartners, useSearchVendors, useSelectStandardPackage, useSendChatMessage, useStartGame, useSyncBillingCatalogPrice, useToggleChatMessageLike, useUnlinkUnregisteredVendorByInviterId, useUpdateAd, useUpdateAffiliateDetails, useUpdateAppSettings, useUpdateBillingCatalogPrice, useUpdateCoupon, useUpdateDailyClueGame, useUpdateEvent, useUpdateEventInfo, useUpdateGoogleImportedMarkets, useUpdatePartner, useUpdatePost, useUpdatePuzzleGame, useUpdateRelation, useUpdateSchool, useUpdateSubscriptionPlan, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useValidateVerificationToken, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLicences, vendorLocationDescription, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorProductFields, vendorStallSize, vendorStartDateFields, vendorTable };
4110
+ export { ACTIVATE_VENDOR_CLAIM_MUTATION, ADMIN_APP_ROLES, ADMIN_DASHBOARD_CONTEXTS, AD_BOOKING_FIELDS_FRAGMENT, AFFILIATE_PARTICIPANT_TYPE_LABELS, AFFILIATE_REWARDS, ANDROID_URL, APPROVE_AD_BOOKING_MUTATION, type AdBookingType, type AdDailyPriceKey, type AdDailyPriceType, type AdFormData, type AdFormState, type AdPlacement, type AdResource, type AdSettingsFormData, type AdSettingsType, type AdType, type AdminAppRole, type AdminDashboardContext, type AdminDashboardContextInfo, type AdminUpdateResourceType, type AffiliateBankAccountDetailsType, type AffiliateContactDetails, type AffiliateDetailsType, type AffiliateFormData, type AffiliateResourceType, type AffiliateRewardType, type AffiliateType, type AffiliateUserDefaultFields, type AppSettingsFormData, type AppSettingsType, type AuthMutationResponse, type AuthPayloadType, BILLING_CATALOG_CURRENCY, BILLING_CATALOG_DEFINITIONS, BILLING_CATALOG_KEYS, type BadgeBasename, type BadgeId, type BaseGameMap, type BaseGameType, type BaseResourceType, type BaseResourceTypeFormData, type BillingCatalogDefinition, type BillingCatalogEntryType, type BillingCatalogInitialEntry, type BillingCatalogKey, type BillingCatalogPriceHistoryEntry, CLAIM_RESERVED_AD_DAY_MUTATION, CLUEMART_MAIN_DOMAIN_URL, CM_AFFILIATE_PROMO_CODE, CM_SCHOOL_PROMO_CODE, CREATE_AD_CHECKOUT_MUTATION, type CalendarSheetContentData, type Category, type CategoryColorType, type ChatMessageInput, type ChatMessageReaction, type ChatMessageReplyPreview, type ChatMessageSeen, type ChatMessageType, type ChatType, type CluiImageBasename, type CluiImageId, type ContactUsFormData, type CouponCodeType, type CouponDataProductsType, type CouponDataType, type CouponDefaultsFormData, type CouponMarketPassportOption, type CouponMarketVisitOption, type CouponOption, type CouponParticipantUserType, type CouponPurchaseOption, type CouponType, type CouponTypeList, type CouponVendorProduct, type CreateAdFormData, type CreateAdFormState, type CreateAffiliateFormData, type CreateAppSettingsFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateCouponFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreatePartnerFormData, type CreatePostFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateSchoolFormData, type CreateUnregisteredVendorFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, DEFAULT_PAGE_SIZE, DEFAULT_RESOURCES_RETURN_LIMIT, DEFAULT_RESOURCES_RETURN_OFFSET, DEFAULT_SHARE_OG_IMAGE, DEFAULT_USER_FACING_ERROR, type DailyClueBaseGame, type DailyClueGameData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EVENT_DATE_STATUS_PERIOD_MAP, EnumActivity, EnumAdApprovalStatus, EnumAdBookingSlotKind, EnumAdBookingState, EnumAdEntitlementSource, EnumAdPaymentStatus, EnumAdPlatform, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumAffiliateParticipantType, EnumAffiliateRewardType, EnumBillingPeriod, EnumChatReportReason, EnumChatType, EnumCouponListType, EnumCouponQualificationType, EnumEventDateStatus, EnumEventType, EnumFoodFlavor, EnumFoodType, EnumGameStatus, EnumGameType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPartnerType, EnumPaymentMethod, EnumPostContentType, EnumPostType, EnumRegions, EnumRelationResource, EnumResourceType, EnumReward, EnumSocialMedia, EnumSubscriptionStatus, EnumUserLicence, EnumUserRole, EnumVendorType, EnumVerificationType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventListFilter, type EventListItemType, type EventScheduleStatusPresentation, type EventScheduleStatusTone, type EventStatusType, type EventType, FUTURE_EVENT_DATE_STATUSES, type FormDateField, type FormField, GET_AD_BOOKING, GET_AD_DAILY_PRICES, GET_AD_DAY_AVAILABILITY, GET_AD_SETTINGS, GET_EVENT, GET_EVENTS, GET_EVENT_BY_SLUG, GET_EVENT_INFO, GET_MY_AD_BOOKINGS, GET_OWNED_EVENT, GET_PARTNER, GET_PARTNERS, GET_PARTNER_BY_SLUG, GET_PENDING_AD_BOOKINGS, GET_POST, GET_POSTS, GET_POSTS_BY_TYPE, GET_POST_BY_SLUG, GET_RESOURCE_CONNECTIONS, GET_USERS, GET_VENDOR, GET_VENDORS, GET_VENDOR_BY_SLUG, GET_VENDOR_INFO, type GameDate, type GameDocType, type GameHistory, type GameLeaderboard, type GamePlacement, type GamePlacementClue, type GameType, type GeocodeLocation, type GetCouponsVariables, type GlobalGameData, type GoogleAddressComponent, type GoogleImportedMarket, IMAGE_EXTENSION, INITIAL_BILLING_CATALOG, IOS_URL, type IconBasename, type IconId, type ImageObjectType, ImageTypeEnum, KNOWN_EVENT_SCHEDULE_STATUSES, LicenceExpiryDate, type LocationGeoType, type LocationType, type LoginFormData, type LogoBasename, type LogoId, MY_PENDING_VENDOR_CLAIM, type MarketingMaterialRequestInputType, type MutationResponse, type MyPendingVendorClaim, NETWORK_USER_FACING_ERROR, type NonVisitorResourceType, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, OG_DESCRIPTION_LINE_BREAK, type OptionItem, type OtherImagesBasename, type OtherImagesId, type OwnerType, PERMISSIONS, POST_SHARE_RESOURCE_TYPES, PROMO_CODE_PREFIX, PUBLIC_SHARE_PATH_TYPES, type PaginationOptions, type PaidVendorBillingPeriod, type PaidVendorLicence, type ParticipantType, type PartnerFormData, type PartnerListFilter, type PartnerType, type PaymentInfoType, type Permission, type PostContentData, type PostContentFormData, type PostContentGame, type PostContentImage, type PostContentList, type PostContentTextarea, type PostContentType, type PostContentVideo, type PostFileInput, type PostFormData, type PostListFilter, type PostResource, type PostShareResourceType, type PostType, PostTypeLabels, type PosterAssetId, type PosterImageBasename, type PosterInputType, type PosterUsageType, type ProductCoupon, type PromoCodeType, type PublicSharePathType, type PushTokenType, type PuzzleAnswer, type PuzzleAnsweredQuestion, type PuzzleBaseGame, type PuzzleGameData, type PuzzleQuestion, RECORD_AD_IMPRESSION_MUTATION, RELATION_OVERLAY_LAYOUT_VERSION, RELATION_SHARE_APPLICATION, RELATION_SHARE_INVITATION, RELATION_SHARE_RESOURCE_TYPES, RESOURCE_SHARE_TYPES, ROLE_PERMISSIONS, type RedeemHistoryType, type RedeemRewardInput, type RedeemRewardMutationResponse, type RedeemRewardResponse, type RedeemedReward, type RefreshTokenMutationResponse, type RefreshTokenPayloadType, type RefundPolicy, type Region, type RegisterFormData, type RelatedPostType, type RelationDate, type RelationInputType, type RelationSharePathType, type RelationShareResourceType, type RelationType$1 as RelationType, type ReportChatUser, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceActivityEntry, type ResourceActivityInputType, type ResourceActivityType, type ResourceByUser, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceDetails, type ResourceImageType, type ResourceRelationField, type ResourceShareType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, SCHOOL_MAX_STUDENT_COUNT, SCHOOL_MIN_STUDENT_COUNT, SHARE_APPLICATION_DEADLINE_PREFIX, SHARE_CALENDAR_ICON, SHARE_CATEGORIES_SECTION_HEADING, SHARE_CATEGORY_ICON, SHARE_CHECKMARK_ICON, SHARE_CLOCK_ICON, SHARE_COMPLIANCE_PREFIX, SHARE_DESCRIPTION_SECTION_BREAK, SHARE_DOLLAR_ICON, SHARE_FOOD_TRUCK_LINE, SHARE_INFO_ICON, SHARE_MARKET_DATES_SECTION_HEADING, SHARE_MORE_INFO_LINE, SHARE_PRICE_RANGE_PREFIX, SHARE_RAIN_OR_SHINE_LINE, SHARE_REQUIREMENTS_SECTION_HEADING, SHARE_RESOURCE_LABEL, SHARE_RULER_ICON, SHARE_SITE_URL, SHARE_STALL_SIZE_PREFIX, SHARE_TAGS_SECTION_HEADING, SHARE_TYPE_PATH_REGEX, SOCIAL_IMAGE_HEIGHT, SOCIAL_IMAGE_WIDTH, type SafeUserType, type SchoolCampaignType, type SchoolFormData, type SchoolRegisteredUserType, type SchoolReturnType, type SchoolType, type ShareEventForInvitation, type ShareEventForPublic, type ShareEventInfoForInvitation, type ShareMessageFooterPlacement, type ShareResourceType, type ShareSlugResource, type ShareType, type ShareVendorForApplication, type ShareVendorForPublic, type ShareVendorInfoForApplication, type SocialMediaType, type SocialShareResourceType, type StallType, type StallholderFilterOption, type StripeSubscription, type Subcategory, type SubcategoryItems, type SubscriptionPlanData, type SubscriptionPlansResponse, type SubscriptionPricingData, type SubscriptionStatusData, type SyncBillingCatalogPriceInput, TIERS_BY_PRIORITY, TIER_DISPLAY_LABELS, TIER_FROM_LICENCE, type TermsAgreement, type Tier, UPDATE_AD_DAILY_PRICE_MUTATION, UPDATE_AD_SETTINGS_MUTATION, USER_STORAGE_KEY, type UnregisteredVendorFormData, type UnregisteredVendorInvitationType, type UnregisteredVendorType, type UpdateBillingCatalogPriceInput, type UseGetResourcesByRegionOptions, type UsePaginatedListArgs, type UsePaginatedListResult, type UserActivity, type UserActivityEvent, type UserFormData, type UserLicenceType, type UserListFilter, type UserType, type UsersByPromoCode, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorAvailability, type VendorCalendarData, type VendorClaimTokenValidation, type VendorDowngradeSnapshot, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorListFilter, type VendorProductList, type VendorType, WILDCARD_PERMISSION, accumulateItems, appendShareMoreInfoLine, availableCategories, availableRegionOptions, availableRegionTypes, availableTagTypes, badgeFiles, badgeIds, badges, bankAccountDetailsFields, billingCatalogDefinitionMatches, buildApplicationShareDescription, buildCalendarSheetContentData, buildFacebookShareQuote, buildInvitationShareDescription, buildPublicEventShareDescription, buildPublicVendorShareDescription, buildShareMessageSections, buildShareOgDescription, buildShareOgDescriptionFromSections, buildSharePagePath, buildShareUrl, canAccessAdminApp, canAccessAdminPath, capitalizeFirstLetter, categoryColors, cluemartSocialMedia, cluiFiles, cluiIds, cluiImages, collectStallholderStartDates, collectVendorEventRelationDateTimes, companyContactFields, computeDailyClueState, computeHasMore, contactUsFields, createAffiliateReward, darkColors, dateFormat, defaultGetId, emailField, eventBasicInfoFields, eventEndDateFields, eventHasSelectedDate, eventInfo, eventInfoPaymentInfo, eventMatchesDateStatusPeriod, eventStartDateFields, eventStartDatesSet, filterDatesByFutureStatus, filterEventsByDateStatusPeriod, filterRegisteredVendorsByEventDatesOnly, filterRegisteredVendorsForEvent, filterUnregisteredVendorsByEventDatesOnly, filterUnregisteredVendorsForEvent, filterVendorEventsBySelectedDate, findEventDateTimeByIsoDate, fonts, foodFlavourOptions, formatCategoryLabel, formatDate, formatDistance, formatIrdNumber, formatNZBankAccount, formatShareApplicationCategoriesSection, formatShareApplicationComplianceSection, formatShareApplicationPriceRangeLine, formatShareApplicationStallSizeLine, formatShareInvitationApplicationDeadlineLine, formatShareInvitationMarketDatesSection, formatShareInvitationRequirementsSection, formatShareIsFoodTrueLine, formatShareMarketDate, formatShareRainOrShineLine, formatShareStallLine, formatShareTagsSection, formatStallCapacityLabel, formatTimestamp, fromCalendarIsoDate, futureTimePeriods, gameScreenIdentifierList, gameTypeToDisplayName, getAllowedEventDateStatuses, getBillingCatalogKeyForSelection, getCurrentAndFutureDates, getDefaultAdminHome, getDistanceInKilometers, getDistanceInMeters, getErrorMessage, getEventCalendarIsoDates, getEventDatesWithStallholders, getEventScheduleStatusLabel, getEventScheduleStatusPresentation, getEventScheduleStatusTone, getEventStallholderEmptyMessage, getPermissionsForRoles, getRegisteredVendorCategoryNames, getRegisteredVendorStartDates, getStallholderCategoryNames, getStallholderCategoryOptions, getUnregisteredVendorCategoryNames, getUnregisteredVendorStartDates, getUsableAdminContexts, getVendorEventRelationDateOptions, getVendorEventRelationStartDates, getVendorEventsEmptyMessage, hasAllPermissions, hasAnyPermission, hasAnyRole, hasMatchingEventDate, hasPermission, hasRole, iconFiles, iconIds, icons, isFutureDatesBeforeThreshold, isFutureEventDateStatus, isInternalErrorMessage, isIsoDateString, isNonVisitorResourceType, isPostShareResourceType, isRelationShareResourceType, isResourceImageActive, isTransientNetworkError, isValidIrdNumber, joinShareDescriptionSections, joinShareOgDescriptionSections, licenseNiceNames, lightColors, loginFields, logoFiles, logoIds, logos, mapArrayToOptions, matchesCategory, matchesSelectedDate, normalizeIrdNumber, normalizeResourceImage, normalizeShareOgDescription, normalizeShareRouteId, normalizeShareText, normalizeUrl, nzStartOfDay, otherImages, otherImagesFiles, otherImagesIds, packagingOptions, partnerBasicInfoFields, paymentMethodOptions, permissionListIncludes, posterFiles, posterIds, posters, priceUnits, producedIngOptions, productLabelGroups, profileFields, refundPolicyOptions, registerFields, relationHasSelectedDate, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, resolveAdminContextFromPath, resolveResourceImageActive, rewardNiceNames, seededShuffle, shareMessageFooterPlacementForType, shareSlugResourceId, shouldShowEventActionsWithWeather, socialMediaFields, sortDatesChronologically, splitShareDescriptionSections, stallTypeOptions, statusOptions, stripOverlaySubtitleSpecialChars, tagOptions, timeFormat, toCalendarIsoDate, toGraphqlQueryString, toNZTime, toShareSocialImageCacheVersion, toUserFacingErrorMessage, truncateText, useActivateVendorClaim, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminPermanentlyDeleteResource, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useAdminUpdateUserVendorLicense, useAssignAffiliateBonusReward, useAssignAffiliateResourceReward, useCancelSubscription, useContactUs, useCrawlGoogleMarkets, useCreateAd, useCreateAffiliate, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCoupon, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePrivateChat, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateSchool, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAffiliate, useDeleteAllNotifications, useDeleteChat, useDeleteCoupon, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteSchool, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useGetAd, useGetAds, useGetAdsByRegion, useGetAffiliate, useGetAffiliates, useGetAppSettings, useGetBillingCatalog, useGetChat, useGetChatSubscription, useGetChatsByRegion, useGetCoupon, useGetCoupons, useGetEvent, useGetEventByPlaceId, useGetEventInfo, useGetEventRelations, useGetEventsByRegion, useGetEventsNearMe, useGetGame, useGetGameLeaderboard, useGetGames, useGetNotificationCount, useGetNotificationCountSubscription, useGetOwnedEvent, useGetPartner, useGetPartnersByRegion, useGetPost, useGetPrivateChats, useGetRelation, useGetRelationByEventAndVendor, useGetReportedChatUsers, useGetResourceActivity, useGetResourceConnections, useGetSchool, useGetSchools, useGetSubscriptionPlans, useGetSubscriptionStatus, useGetUnregisteredVendor, useGetUnregisteredVendors, useGetUnregisteredVendorsByInviterId, useGetUser, useGetUserActivities, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserPartners, useGetUserResources, useGetUserVendors, useGetUsersByPromoCode, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendorsByRegion, useLeaveGame, useLogin, useLogout, useMarkAllNotificationsRead, useMarkChatMessagesSeen, useMarkNotificationRead, useMyPendingVendorClaim, usePaginatedList, useRedeemAffiliateReward, useRedeemReward, useRefreshToken, useRegister, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useReportChatUser, useRequestMarketingMaterial, useRequestPasswordReset, useResetPassword, useRewardCoupon, useScanCoupon, useSearchEvents, useSearchPartners, useSearchVendors, useSelectStandardPackage, useSendChatMessage, useStartGame, useSyncBillingCatalogPrice, useToggleChatMessageLike, useUnlinkUnregisteredVendorByInviterId, useUpdateAd, useUpdateAffiliateDetails, useUpdateAppSettings, useUpdateBillingCatalogPrice, useUpdateCoupon, useUpdateDailyClueGame, useUpdateEvent, useUpdateEventInfo, useUpdateGoogleImportedMarkets, useUpdatePartner, useUpdatePost, useUpdatePuzzleGame, useUpdateRelation, useUpdateSchool, useUpdateSubscriptionPlan, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useValidateVerificationToken, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLicences, vendorLocationDescription, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorProductFields, vendorStallSize, vendorStartDateFields, vendorTable };
package/dist/index.mjs CHANGED
@@ -592,11 +592,47 @@ import isSameOrAfter from "dayjs/plugin/isSameOrAfter.js";
592
592
  import timezone from "dayjs/plugin/timezone.js";
593
593
  import utc from "dayjs/plugin/utc.js";
594
594
 
595
- // src/utils/mapArrayToOptions.ts
596
- var mapArrayToOptions = (items) => items.map((item) => ({
597
- label: item,
598
- value: item
599
- }));
595
+ // src/utils/eventDateStatus.ts
596
+ var EVENT_DATE_STATUS_PERIOD_MAP = {
597
+ ["Today" /* TODAY */]: [
598
+ "Started" /* STARTED */,
599
+ "Starting_Soon" /* STARTING_SOON */,
600
+ "Today" /* TODAY */
601
+ ],
602
+ ["This_Week" /* THIS_WEEK */]: [
603
+ "Started" /* STARTED */,
604
+ "Starting_Soon" /* STARTING_SOON */,
605
+ "This_Week" /* THIS_WEEK */,
606
+ "Today" /* TODAY */,
607
+ "Tomorrow" /* TOMORROW */
608
+ ]
609
+ };
610
+ function getAllowedEventDateStatuses(period) {
611
+ return EVENT_DATE_STATUS_PERIOD_MAP[period] ?? [period];
612
+ }
613
+ function eventMatchesDateStatusPeriod(dateTime, period) {
614
+ const allowedStatuses = getAllowedEventDateStatuses(period);
615
+ return dateTime?.some((dt) => allowedStatuses.includes(dt.dateStatus)) ?? false;
616
+ }
617
+ function filterEventsByDateStatusPeriod(events, period) {
618
+ return events.filter(
619
+ (event) => eventMatchesDateStatusPeriod(event.dateTime, period)
620
+ );
621
+ }
622
+ var FUTURE_EVENT_DATE_STATUSES = [
623
+ "Starting_Soon" /* STARTING_SOON */,
624
+ "Today" /* TODAY */,
625
+ "Tomorrow" /* TOMORROW */,
626
+ "This_Week" /* THIS_WEEK */,
627
+ "Next_Week" /* NEXT_WEEK */,
628
+ "Upcoming" /* UPCOMING */
629
+ ];
630
+ function isFutureEventDateStatus(dateStatus) {
631
+ return Boolean(dateStatus && FUTURE_EVENT_DATE_STATUSES.includes(dateStatus));
632
+ }
633
+ function filterDatesByFutureStatus(dates) {
634
+ return dates.filter((date) => isFutureEventDateStatus(date.dateStatus));
635
+ }
600
636
 
601
637
  // src/utils/date.ts
602
638
  var dateFormat = "DD-MM-YYYY";
@@ -667,13 +703,11 @@ function sortDatesChronologically(dates) {
667
703
  return dateA.valueOf() - dateB.valueOf();
668
704
  });
669
705
  }
670
- var futureTimePeriods = mapArrayToOptions(
671
- Object.values(EnumEventDateStatus)
672
- ).filter(
673
- (period) => period.value !== "Starting_Soon" /* STARTING_SOON */ && period.value !== "Canceled" /* CANCELED */ && period.value !== "Rescheduled" /* RE_SCHEDULED */ && period.value !== "Started" /* STARTED */ && period.value !== "Ended" /* ENDED */ && period.value !== "Invalid" /* INVALID */
674
- ).map((period) => ({
675
- label: period.value.replaceAll("_", " "),
676
- value: period.value
706
+ var futureTimePeriods = FUTURE_EVENT_DATE_STATUSES.filter(
707
+ (status) => status !== "Starting_Soon" /* STARTING_SOON */
708
+ ).map((status) => ({
709
+ label: status.replaceAll("_", " "),
710
+ value: status
677
711
  }));
678
712
 
679
713
  // src/utils/dailyClueGame.ts
@@ -820,6 +854,12 @@ function computeHasMore(pageLength, pageSize) {
820
854
  return pageLength === pageSize;
821
855
  }
822
856
 
857
+ // src/utils/mapArrayToOptions.ts
858
+ var mapArrayToOptions = (items) => items.map((item) => ({
859
+ label: item,
860
+ value: item
861
+ }));
862
+
823
863
  // src/sharing/relationShareTypes.ts
824
864
  var RELATION_SHARE_INVITATION = "invitation";
825
865
  var RELATION_SHARE_APPLICATION = "application";
@@ -1278,34 +1318,6 @@ function isResourceImageActive(image) {
1278
1318
  var SCHOOL_MIN_STUDENT_COUNT = 300;
1279
1319
  var SCHOOL_MAX_STUDENT_COUNT = 0;
1280
1320
 
1281
- // src/utils/eventDateStatus.ts
1282
- var EVENT_DATE_STATUS_PERIOD_MAP = {
1283
- ["Today" /* TODAY */]: [
1284
- "Started" /* STARTED */,
1285
- "Starting_Soon" /* STARTING_SOON */,
1286
- "Today" /* TODAY */
1287
- ],
1288
- ["This_Week" /* THIS_WEEK */]: [
1289
- "Started" /* STARTED */,
1290
- "Starting_Soon" /* STARTING_SOON */,
1291
- "This_Week" /* THIS_WEEK */,
1292
- "Today" /* TODAY */,
1293
- "Tomorrow" /* TOMORROW */
1294
- ]
1295
- };
1296
- function getAllowedEventDateStatuses(period) {
1297
- return EVENT_DATE_STATUS_PERIOD_MAP[period] ?? [period];
1298
- }
1299
- function eventMatchesDateStatusPeriod(dateTime, period) {
1300
- const allowedStatuses = getAllowedEventDateStatuses(period);
1301
- return dateTime?.some((dt) => allowedStatuses.includes(dt.dateStatus)) ?? false;
1302
- }
1303
- function filterEventsByDateStatusPeriod(events, period) {
1304
- return events.filter(
1305
- (event) => eventMatchesDateStatusPeriod(event.dateTime, period)
1306
- );
1307
- }
1308
-
1309
1321
  // src/calendar/eventCalendar.ts
1310
1322
  import dayjs2 from "dayjs";
1311
1323
  var KNOWN_EVENT_SCHEDULE_STATUSES = /* @__PURE__ */ new Set([
@@ -3998,8 +4010,8 @@ var GET_EVENT = gql2`
3998
4010
  ${EVENT}
3999
4011
  `;
4000
4012
  var GET_OWNED_EVENT = gql2`
4001
- query getOwnedEvent($_id: ID!) {
4002
- ownedEvent(_id: $_id) {
4013
+ query getOwnedEvent($_id: ID!, $futureOnly: Boolean = false) {
4014
+ ownedEvent(_id: $_id, futureOnly: $futureOnly) {
4003
4015
  ...EventFields
4004
4016
  }
4005
4017
  }
@@ -5722,11 +5734,11 @@ var useGetEvent = (_id) => {
5722
5734
  const event = data?.event || null;
5723
5735
  return { error, event, loading, refetch };
5724
5736
  };
5725
- var useGetOwnedEvent = (_id) => {
5737
+ var useGetOwnedEvent = (_id, options) => {
5726
5738
  const { loading, error, data, refetch } = useQuery2(GET_OWNED_EVENT, {
5727
5739
  fetchPolicy: "network-only",
5728
5740
  skip: !_id,
5729
- variables: { _id }
5741
+ variables: { _id, futureOnly: options?.futureOnly ?? false }
5730
5742
  });
5731
5743
  const event = data?.ownedEvent || null;
5732
5744
  return { error, event, loading, refetch };
@@ -9503,6 +9515,7 @@ export {
9503
9515
  EnumUserRole,
9504
9516
  EnumVendorType,
9505
9517
  EnumVerificationType,
9518
+ FUTURE_EVENT_DATE_STATUSES,
9506
9519
  GET_AD_BOOKING,
9507
9520
  GET_AD_DAILY_PRICES,
9508
9521
  GET_AD_DAY_AVAILABILITY,
@@ -9634,6 +9647,7 @@ export {
9634
9647
  eventMatchesDateStatusPeriod,
9635
9648
  eventStartDateFields,
9636
9649
  eventStartDatesSet,
9650
+ filterDatesByFutureStatus,
9637
9651
  filterEventsByDateStatusPeriod,
9638
9652
  filterRegisteredVendorsByEventDatesOnly,
9639
9653
  filterRegisteredVendorsForEvent,
@@ -9700,6 +9714,7 @@ export {
9700
9714
  iconIds,
9701
9715
  icons,
9702
9716
  isFutureDatesBeforeThreshold,
9717
+ isFutureEventDateStatus,
9703
9718
  isInternalErrorMessage,
9704
9719
  isIsoDateString,
9705
9720
  isNonVisitorResourceType,