@timardex/cluemart-shared 2.1.1 → 2.1.2
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/auth/index.cjs +2 -2
- package/dist/auth/index.cjs.map +1 -1
- package/dist/auth/index.mjs +1 -1
- package/dist/{chunk-6ZH75TAT.mjs → chunk-B22YRNRF.mjs} +2 -2
- package/dist/{chunk-Z4FML4VL.mjs → chunk-BTZIWVSF.mjs} +2 -2
- package/dist/{chunk-UHZHNJHO.mjs → chunk-HFN6KXX2.mjs} +9 -35
- package/dist/chunk-HFN6KXX2.mjs.map +1 -0
- package/dist/{chunk-YMLEIEZD.mjs → chunk-MX3L6DSE.mjs} +4 -4
- package/dist/chunk-MX3L6DSE.mjs.map +1 -0
- package/dist/{chunk-ZSSVU6GY.mjs → chunk-OSSBKFNH.mjs} +3 -3
- package/dist/chunk-OSSBKFNH.mjs.map +1 -0
- package/dist/{chunk-7XIDMA4Z.mjs → chunk-T7A7ZG55.mjs} +54 -18
- package/dist/chunk-T7A7ZG55.mjs.map +1 -0
- package/dist/formFields/index.cjs +34 -42
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.mjs +3 -3
- package/dist/graphql/index.cjs +4 -4
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +3 -1
- package/dist/graphql/index.d.ts +3 -1
- package/dist/graphql/index.mjs +2 -2
- package/dist/hooks/index.cjs +36 -30
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.mjs +6 -6
- package/dist/index.cjs +62 -44
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +24 -3
- package/dist/index.d.ts +24 -3
- package/dist/index.mjs +59 -44
- package/dist/index.mjs.map +1 -1
- package/dist/sharing/index.cjs +28 -28
- package/dist/sharing/index.cjs.map +1 -1
- package/dist/sharing/index.mjs +2 -2
- package/dist/utils/index.cjs +58 -54
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +22 -3
- package/dist/utils/index.d.ts +22 -3
- package/dist/utils/index.mjs +13 -7
- package/package.json +1 -1
- package/dist/chunk-7XIDMA4Z.mjs.map +0 -1
- package/dist/chunk-UHZHNJHO.mjs.map +0 -1
- package/dist/chunk-YMLEIEZD.mjs.map +0 -1
- package/dist/chunk-ZSSVU6GY.mjs.map +0 -1
- /package/dist/{chunk-6ZH75TAT.mjs.map → chunk-B22YRNRF.mjs.map} +0 -0
- /package/dist/{chunk-Z4FML4VL.mjs.map → chunk-BTZIWVSF.mjs.map} +0 -0
package/dist/index.d.mts
CHANGED
|
@@ -2319,7 +2319,9 @@ declare const useGetEvent: (_id: string) => {
|
|
|
2319
2319
|
event: EventType | null;
|
|
2320
2320
|
}>>;
|
|
2321
2321
|
};
|
|
2322
|
-
declare const useGetOwnedEvent: (_id: string
|
|
2322
|
+
declare const useGetOwnedEvent: (_id: string, options?: {
|
|
2323
|
+
futureOnly?: boolean;
|
|
2324
|
+
}) => {
|
|
2323
2325
|
error: _apollo_client.ApolloError | undefined;
|
|
2324
2326
|
event: EventType | null;
|
|
2325
2327
|
loading: boolean;
|
|
@@ -3862,9 +3864,14 @@ declare function sortDatesChronologically<T extends {
|
|
|
3862
3864
|
startDate: string;
|
|
3863
3865
|
startTime: string;
|
|
3864
3866
|
}>(dates: T[]): T[];
|
|
3867
|
+
/**
|
|
3868
|
+
* UI filter options for user-activity event periods. Derived from the canonical
|
|
3869
|
+
* {@link FUTURE_EVENT_DATE_STATUSES} list, minus `STARTING_SOON` (a presentational
|
|
3870
|
+
* choice: "starting soon" is surfaced separately rather than as a filter).
|
|
3871
|
+
*/
|
|
3865
3872
|
declare const futureTimePeriods: {
|
|
3866
3873
|
label: string;
|
|
3867
|
-
value:
|
|
3874
|
+
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
3875
|
}[];
|
|
3869
3876
|
|
|
3870
3877
|
/**
|
|
@@ -3936,6 +3943,20 @@ declare function eventMatchesDateStatusPeriod(dateTime: Pick<DateTimeType, "date
|
|
|
3936
3943
|
declare function filterEventsByDateStatusPeriod<T extends {
|
|
3937
3944
|
dateTime?: Pick<DateTimeType, "dateStatus">[] | null;
|
|
3938
3945
|
}>(events: T[], period: EnumEventDateStatus): T[];
|
|
3946
|
+
/**
|
|
3947
|
+
* Canonical list of date statuses whose start date/time is still in the future
|
|
3948
|
+
* (i.e. the slot has not started yet). `STARTED`, `ENDED`, `INVALID`,
|
|
3949
|
+
* `CANCELED` and `RE_SCHEDULED` are intentionally excluded.
|
|
3950
|
+
*
|
|
3951
|
+
* This is the single source of truth for "is this slot still in the future".
|
|
3952
|
+
* `futureTimePeriods` (in `utils/date.ts`) derives from this list for UI
|
|
3953
|
+
* filters, additionally excluding `STARTING_SOON`.
|
|
3954
|
+
*/
|
|
3955
|
+
declare const FUTURE_EVENT_DATE_STATUSES: readonly EnumEventDateStatus[];
|
|
3956
|
+
declare function isFutureEventDateStatus(dateStatus: EnumEventDateStatus | null | undefined): boolean;
|
|
3957
|
+
declare function filterDatesByFutureStatus<T extends {
|
|
3958
|
+
dateStatus?: EnumEventDateStatus | null;
|
|
3959
|
+
}>(dates: T[]): T[];
|
|
3939
3960
|
|
|
3940
3961
|
type CalendarSheetContentData = {
|
|
3941
3962
|
dateTime: DateTimeType;
|
|
@@ -4088,4 +4109,4 @@ declare function toUserFacingErrorMessage(error: string | null | undefined, fall
|
|
|
4088
4109
|
/** Extracts and sanitizes an unknown catch/Apollo error for toasts and alerts. */
|
|
4089
4110
|
declare function getErrorMessage(error: unknown, fallback?: string): string;
|
|
4090
4111
|
|
|
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 };
|
|
4112
|
+
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 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
|
@@ -2319,7 +2319,9 @@ declare const useGetEvent: (_id: string) => {
|
|
|
2319
2319
|
event: EventType | null;
|
|
2320
2320
|
}>>;
|
|
2321
2321
|
};
|
|
2322
|
-
declare const useGetOwnedEvent: (_id: string
|
|
2322
|
+
declare const useGetOwnedEvent: (_id: string, options?: {
|
|
2323
|
+
futureOnly?: boolean;
|
|
2324
|
+
}) => {
|
|
2323
2325
|
error: _apollo_client.ApolloError | undefined;
|
|
2324
2326
|
event: EventType | null;
|
|
2325
2327
|
loading: boolean;
|
|
@@ -3862,9 +3864,14 @@ declare function sortDatesChronologically<T extends {
|
|
|
3862
3864
|
startDate: string;
|
|
3863
3865
|
startTime: string;
|
|
3864
3866
|
}>(dates: T[]): T[];
|
|
3867
|
+
/**
|
|
3868
|
+
* UI filter options for user-activity event periods. Derived from the canonical
|
|
3869
|
+
* {@link FUTURE_EVENT_DATE_STATUSES} list, minus `STARTING_SOON` (a presentational
|
|
3870
|
+
* choice: "starting soon" is surfaced separately rather than as a filter).
|
|
3871
|
+
*/
|
|
3865
3872
|
declare const futureTimePeriods: {
|
|
3866
3873
|
label: string;
|
|
3867
|
-
value:
|
|
3874
|
+
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
3875
|
}[];
|
|
3869
3876
|
|
|
3870
3877
|
/**
|
|
@@ -3936,6 +3943,20 @@ declare function eventMatchesDateStatusPeriod(dateTime: Pick<DateTimeType, "date
|
|
|
3936
3943
|
declare function filterEventsByDateStatusPeriod<T extends {
|
|
3937
3944
|
dateTime?: Pick<DateTimeType, "dateStatus">[] | null;
|
|
3938
3945
|
}>(events: T[], period: EnumEventDateStatus): T[];
|
|
3946
|
+
/**
|
|
3947
|
+
* Canonical list of date statuses whose start date/time is still in the future
|
|
3948
|
+
* (i.e. the slot has not started yet). `STARTED`, `ENDED`, `INVALID`,
|
|
3949
|
+
* `CANCELED` and `RE_SCHEDULED` are intentionally excluded.
|
|
3950
|
+
*
|
|
3951
|
+
* This is the single source of truth for "is this slot still in the future".
|
|
3952
|
+
* `futureTimePeriods` (in `utils/date.ts`) derives from this list for UI
|
|
3953
|
+
* filters, additionally excluding `STARTING_SOON`.
|
|
3954
|
+
*/
|
|
3955
|
+
declare const FUTURE_EVENT_DATE_STATUSES: readonly EnumEventDateStatus[];
|
|
3956
|
+
declare function isFutureEventDateStatus(dateStatus: EnumEventDateStatus | null | undefined): boolean;
|
|
3957
|
+
declare function filterDatesByFutureStatus<T extends {
|
|
3958
|
+
dateStatus?: EnumEventDateStatus | null;
|
|
3959
|
+
}>(dates: T[]): T[];
|
|
3939
3960
|
|
|
3940
3961
|
type CalendarSheetContentData = {
|
|
3941
3962
|
dateTime: DateTimeType;
|
|
@@ -4088,4 +4109,4 @@ declare function toUserFacingErrorMessage(error: string | null | undefined, fall
|
|
|
4088
4109
|
/** Extracts and sanitizes an unknown catch/Apollo error for toasts and alerts. */
|
|
4089
4110
|
declare function getErrorMessage(error: unknown, fallback?: string): string;
|
|
4090
4111
|
|
|
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 };
|
|
4112
|
+
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 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/
|
|
596
|
-
var
|
|
597
|
-
|
|
598
|
-
|
|
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 =
|
|
671
|
-
|
|
672
|
-
).
|
|
673
|
-
|
|
674
|
-
|
|
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,
|