@timardex/cluemart-shared 2.2.40 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-BCMBTEGJ.mjs → chunk-DV3K3JDE.mjs} +26 -33
- package/dist/{chunk-BCMBTEGJ.mjs.map → chunk-DV3K3JDE.mjs.map} +1 -1
- package/dist/{chunk-T5ZOYS3L.mjs → chunk-HKTBJOB7.mjs} +40 -11
- package/dist/chunk-HKTBJOB7.mjs.map +1 -0
- package/dist/{chunk-NMJ2CR2F.mjs → chunk-KMS64DE2.mjs} +2 -2
- package/dist/{chunk-VL275KFW.mjs → chunk-PBW5K54C.mjs} +2 -2
- package/dist/{chunk-MKHXXZWF.mjs → chunk-YTRRTC2S.mjs} +11 -6
- package/dist/chunk-YTRRTC2S.mjs.map +1 -0
- package/dist/formFields/index.cjs +10 -0
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.mjs +3 -3
- package/dist/graphql/index.cjs +10 -5
- 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 +1 -1
- package/dist/hooks/index.cjs +8 -2
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.mjs +5 -5
- package/dist/index.cjs +76 -47
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +33 -5
- package/dist/index.d.ts +33 -5
- package/dist/index.mjs +72 -45
- package/dist/index.mjs.map +1 -1
- package/dist/sharing/index.cjs +6 -0
- package/dist/sharing/index.cjs.map +1 -1
- package/dist/sharing/index.mjs +2 -2
- package/dist/utils/index.cjs +66 -42
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +30 -4
- package/dist/utils/index.d.ts +30 -4
- package/dist/utils/index.mjs +10 -6
- package/package.json +1 -1
- package/dist/chunk-MKHXXZWF.mjs.map +0 -1
- package/dist/chunk-T5ZOYS3L.mjs.map +0 -1
- /package/dist/{chunk-NMJ2CR2F.mjs.map → chunk-KMS64DE2.mjs.map} +0 -0
- /package/dist/{chunk-VL275KFW.mjs.map → chunk-PBW5K54C.mjs.map} +0 -0
package/dist/index.d.mts
CHANGED
|
@@ -2601,7 +2601,9 @@ declare const useDeleteRelation: () => {
|
|
|
2601
2601
|
loading: boolean;
|
|
2602
2602
|
};
|
|
2603
2603
|
|
|
2604
|
-
declare const useGetRelation: (_id?: string
|
|
2604
|
+
declare const useGetRelation: (_id?: string, options?: {
|
|
2605
|
+
futureOnly?: boolean;
|
|
2606
|
+
}) => {
|
|
2605
2607
|
error: _apollo_client.ApolloError | undefined;
|
|
2606
2608
|
loading: boolean;
|
|
2607
2609
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
@@ -3947,6 +3949,14 @@ declare const getCurrentAndFutureDates: <T extends {
|
|
|
3947
3949
|
startDate?: string;
|
|
3948
3950
|
startTime?: string;
|
|
3949
3951
|
}>(dates: T[]) => T[];
|
|
3952
|
+
/**
|
|
3953
|
+
* True when the slot starts now or later. Status-agnostic: used to hide past
|
|
3954
|
+
* relation dates from reads while the records stay in the database.
|
|
3955
|
+
*/
|
|
3956
|
+
declare const isFutureStartDate: (date: {
|
|
3957
|
+
startDate?: string;
|
|
3958
|
+
startTime?: string;
|
|
3959
|
+
}) => boolean;
|
|
3950
3960
|
declare const isFutureDatesBeforeThreshold: (date: {
|
|
3951
3961
|
startDate?: string;
|
|
3952
3962
|
startTime?: string;
|
|
@@ -3962,6 +3972,15 @@ declare function sortDatesChronologically<T extends {
|
|
|
3962
3972
|
startDate?: string;
|
|
3963
3973
|
startTime?: string;
|
|
3964
3974
|
}>(dates: T[]): T[];
|
|
3975
|
+
/**
|
|
3976
|
+
* Start dates of the given date/time slots, chronological and de-duplicated.
|
|
3977
|
+
* Slots that share a `startDate` (e.g. two stall slots on the same day) collapse
|
|
3978
|
+
* into a single entry.
|
|
3979
|
+
*/
|
|
3980
|
+
declare function getUniqueStartDates(dates: Array<{
|
|
3981
|
+
startDate?: string;
|
|
3982
|
+
startTime?: string;
|
|
3983
|
+
}> | null | undefined): string[];
|
|
3965
3984
|
/**
|
|
3966
3985
|
* UI filter options for user-activity event periods. Derived from the canonical
|
|
3967
3986
|
* {@link FUTURE_EVENT_DATE_STATUSES} list, minus `STARTING_SOON` (a presentational
|
|
@@ -4155,8 +4174,11 @@ declare function filterRegisteredVendorsForEvent(vendors: VendorType[] | null |
|
|
|
4155
4174
|
declare function filterUnregisteredVendorsForEvent(vendors: UnregisteredVendorType[], eventStartDates: Set<string>, selectedDate: string | null, selectedCategory: string | null): UnregisteredVendorType[];
|
|
4156
4175
|
declare function filterRegisteredVendorsByEventDatesOnly(vendors: VendorType[] | null | undefined, eventStartDates: Set<string>): VendorType[];
|
|
4157
4176
|
declare function filterUnregisteredVendorsByEventDatesOnly(vendors: UnregisteredVendorType[], eventStartDates: Set<string>): UnregisteredVendorType[];
|
|
4158
|
-
declare function
|
|
4159
|
-
|
|
4177
|
+
declare function collectStallholderDateTimes(registeredVendors: VendorType[], unregisteredVendors?: UnregisteredVendorType[]): Array<{
|
|
4178
|
+
startDate?: string;
|
|
4179
|
+
startTime?: string;
|
|
4180
|
+
}>;
|
|
4181
|
+
declare function getUniqueStallholderStartDates(registeredVendors: VendorType[], unregisteredVendors?: UnregisteredVendorType[]): string[];
|
|
4160
4182
|
declare function getStallholderCategoryNames(registeredVendors: VendorType[], unregisteredVendors?: UnregisteredVendorType[]): string[];
|
|
4161
4183
|
declare function getStallholderCategoryOptions(registeredVendors: VendorType[], unregisteredVendors?: UnregisteredVendorType[]): StallholderFilterOption[];
|
|
4162
4184
|
declare function getEventStallholderEmptyMessage(hasAnyStallholdersForEvent: boolean, selectedDate: string | null): string;
|
|
@@ -4278,7 +4300,13 @@ type GetEventStallholdersDataInput = {
|
|
|
4278
4300
|
};
|
|
4279
4301
|
/**
|
|
4280
4302
|
* Derives every stallholder-list value an event detail screen needs from the
|
|
4281
|
-
*
|
|
4303
|
+
* event dates, registered vendors, and unregistered vendors.
|
|
4304
|
+
*
|
|
4305
|
+
* Date pills come from the relations, not the event schedule: they are the
|
|
4306
|
+
* `startDate`s of the stallholders' relation dates / invitations (chronological
|
|
4307
|
+
* and de-duplicated). `eventDateTime` is only used to decide which vendors and
|
|
4308
|
+
* invitations actually belong to the event, mirroring the vendor screen where
|
|
4309
|
+
* pills are also relation-sourced.
|
|
4282
4310
|
*
|
|
4283
4311
|
* Shared by the mobile event page and the admin market event page so the two
|
|
4284
4312
|
* keep identical filtering / date-pill / empty-message behaviour.
|
|
@@ -4327,4 +4355,4 @@ declare function toUserFacingErrorMessage(error: string | null | undefined, fall
|
|
|
4327
4355
|
/** Extracts and sanitizes an unknown catch/Apollo error for toasts and alerts. */
|
|
4328
4356
|
declare function getErrorMessage(error: unknown, fallback?: string): string;
|
|
4329
4357
|
|
|
4330
|
-
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 DateTimeFormValue, type DateTimeType, type DateTimeWithPriceFormValue, type DateTimeWithPriceType, type DeviceInfo, EVENT_DATE_STATUS_LABELS, 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, EnumPointType, 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 EventStallholderDateOption, type EventStallholdersData, 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 GetEventStallholdersDataInput, type GetVendorEventsDataInput, type GlobalGameData, type GoogleAddressComponent, type GoogleImportedMarket, IMAGE_EXTENSION, INITIAL_BILLING_CATALOG, IOS_URL, type IconBasename, type IconId, type ImageObjectType, ImageTypeEnum, LicenceExpiryDate, type LocationGeoType, type LocationType, type LoginFormData, type LogoBasename, type LogoId, MANUAL_DATE_STATUSES, 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, PRESERVED_RELATION_DATE_STATUSES, 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 RefreshImpersonationMutationResponse, 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 ShareResourceType, type ShareSlugResource, type ShareType, type ShareVendorForApplication, type ShareVendorForPublic, type ShareVendorInfoForApplication, type SocialMediaType, type SocialShareResourceType, type StallType, type StallholderFilterOption, type StartImpersonationMutationResponse, type StartImpersonationPayloadType, 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 UserOverallPointsEntry, type UserType, type UsersByPromoCode, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorAvailability, type VendorCalendarData, type VendorClaimTokenValidation, type VendorDowngradeSnapshot, type VendorEventDateOption, type VendorEventsData, 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, buildInvitationShareDescription, buildPublicEventShareDescription, buildPublicVendorShareDescription, buildRelationEligibleEventSchedule, buildShareOgDescription, buildShareOgDescriptionFromSections, buildSharePagePath, buildShareUrl, canAccessAdminApp, canAccessAdminPath, capitalizeFirstLetter, categoryColors, cluemartSocialMedia, cluiFiles, cluiIds, cluiImages, collectStallholderStartDates, collectVendorEventRelationDateTimes, companyContactFields, computeDailyClueState, computeHasMore, contactUsFields, countLetterOccurrences, countLetterOccurrencesUpTo, 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, getDailyClueDayIndex, getDefaultAdminHome, getDistanceInKilometers, getDistanceInMeters, getErrorMessage, getEventCalendarIsoDates, getEventDatesWithStallholders, getEventScheduleStatusLabel, getEventScheduleStatusPresentation, getEventScheduleStatusTone, getEventStallholderEmptyMessage, getEventStallholdersData, getFutureEventStatus, getPermissionsForRoles, getRegisteredVendorCategoryNames, getRegisteredVendorStartDates, getStallholderCategoryNames, getStallholderCategoryOptions, getUnregisteredVendorCategoryNames, getUnregisteredVendorStartDates, getUsableAdminContexts, getVendorEventRelationDateOptions, getVendorEventRelationStartDates, getVendorEventsData, 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, shareSlugResourceId, shouldShowEventActionsWithWeather, socialMediaFields, sortDatesChronologically, splitShareDescriptionSections, stallTypeOptions, statusOptions, stripOverlaySubtitleSpecialChars, sumUserOverallPoints, tagOptions, timeFormat, toCalendarIsoDate, toGraphqlQueryString, toNZTime, toShareSocialImageCacheVersion, toUserFacingErrorMessage, truncateText, updateSingleDateTimeStatus, 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, useEndImpersonation, 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, useRefreshImpersonation, useRefreshToken, useRegister, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useReportChatUser, useRequestMarketingMaterial, useRequestPasswordReset, useResetPassword, useRewardCoupon, useScanCoupon, useSearchEvents, useSearchPartners, useSearchVendors, useSelectStandardPackage, useSendChatMessage, useStartGame, useStartImpersonation, 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 };
|
|
4358
|
+
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 DateTimeFormValue, type DateTimeType, type DateTimeWithPriceFormValue, type DateTimeWithPriceType, type DeviceInfo, EVENT_DATE_STATUS_LABELS, 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, EnumPointType, 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 EventStallholderDateOption, type EventStallholdersData, 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 GetEventStallholdersDataInput, type GetVendorEventsDataInput, type GlobalGameData, type GoogleAddressComponent, type GoogleImportedMarket, IMAGE_EXTENSION, INITIAL_BILLING_CATALOG, IOS_URL, type IconBasename, type IconId, type ImageObjectType, ImageTypeEnum, LicenceExpiryDate, type LocationGeoType, type LocationType, type LoginFormData, type LogoBasename, type LogoId, MANUAL_DATE_STATUSES, 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, PRESERVED_RELATION_DATE_STATUSES, 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 RefreshImpersonationMutationResponse, 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 ShareResourceType, type ShareSlugResource, type ShareType, type ShareVendorForApplication, type ShareVendorForPublic, type ShareVendorInfoForApplication, type SocialMediaType, type SocialShareResourceType, type StallType, type StallholderFilterOption, type StartImpersonationMutationResponse, type StartImpersonationPayloadType, 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 UserOverallPointsEntry, type UserType, type UsersByPromoCode, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorAvailability, type VendorCalendarData, type VendorClaimTokenValidation, type VendorDowngradeSnapshot, type VendorEventDateOption, type VendorEventsData, 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, buildInvitationShareDescription, buildPublicEventShareDescription, buildPublicVendorShareDescription, buildRelationEligibleEventSchedule, buildShareOgDescription, buildShareOgDescriptionFromSections, buildSharePagePath, buildShareUrl, canAccessAdminApp, canAccessAdminPath, capitalizeFirstLetter, categoryColors, cluemartSocialMedia, cluiFiles, cluiIds, cluiImages, collectStallholderDateTimes, collectVendorEventRelationDateTimes, companyContactFields, computeDailyClueState, computeHasMore, contactUsFields, countLetterOccurrences, countLetterOccurrencesUpTo, 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, getDailyClueDayIndex, getDefaultAdminHome, getDistanceInKilometers, getDistanceInMeters, getErrorMessage, getEventCalendarIsoDates, getEventScheduleStatusLabel, getEventScheduleStatusPresentation, getEventScheduleStatusTone, getEventStallholderEmptyMessage, getEventStallholdersData, getFutureEventStatus, getPermissionsForRoles, getRegisteredVendorCategoryNames, getRegisteredVendorStartDates, getStallholderCategoryNames, getStallholderCategoryOptions, getUniqueStallholderStartDates, getUniqueStartDates, getUnregisteredVendorCategoryNames, getUnregisteredVendorStartDates, getUsableAdminContexts, getVendorEventRelationDateOptions, getVendorEventRelationStartDates, getVendorEventsData, getVendorEventsEmptyMessage, hasAllPermissions, hasAnyPermission, hasAnyRole, hasMatchingEventDate, hasPermission, hasRole, iconFiles, iconIds, icons, isFutureDatesBeforeThreshold, isFutureEventDateStatus, isFutureStartDate, 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, shareSlugResourceId, shouldShowEventActionsWithWeather, socialMediaFields, sortDatesChronologically, splitShareDescriptionSections, stallTypeOptions, statusOptions, stripOverlaySubtitleSpecialChars, sumUserOverallPoints, tagOptions, timeFormat, toCalendarIsoDate, toGraphqlQueryString, toNZTime, toShareSocialImageCacheVersion, toUserFacingErrorMessage, truncateText, updateSingleDateTimeStatus, 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, useEndImpersonation, 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, useRefreshImpersonation, useRefreshToken, useRegister, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useReportChatUser, useRequestMarketingMaterial, useRequestPasswordReset, useResetPassword, useRewardCoupon, useScanCoupon, useSearchEvents, useSearchPartners, useSearchVendors, useSelectStandardPackage, useSendChatMessage, useStartGame, useStartImpersonation, 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
|
@@ -2601,7 +2601,9 @@ declare const useDeleteRelation: () => {
|
|
|
2601
2601
|
loading: boolean;
|
|
2602
2602
|
};
|
|
2603
2603
|
|
|
2604
|
-
declare const useGetRelation: (_id?: string
|
|
2604
|
+
declare const useGetRelation: (_id?: string, options?: {
|
|
2605
|
+
futureOnly?: boolean;
|
|
2606
|
+
}) => {
|
|
2605
2607
|
error: _apollo_client.ApolloError | undefined;
|
|
2606
2608
|
loading: boolean;
|
|
2607
2609
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
@@ -3947,6 +3949,14 @@ declare const getCurrentAndFutureDates: <T extends {
|
|
|
3947
3949
|
startDate?: string;
|
|
3948
3950
|
startTime?: string;
|
|
3949
3951
|
}>(dates: T[]) => T[];
|
|
3952
|
+
/**
|
|
3953
|
+
* True when the slot starts now or later. Status-agnostic: used to hide past
|
|
3954
|
+
* relation dates from reads while the records stay in the database.
|
|
3955
|
+
*/
|
|
3956
|
+
declare const isFutureStartDate: (date: {
|
|
3957
|
+
startDate?: string;
|
|
3958
|
+
startTime?: string;
|
|
3959
|
+
}) => boolean;
|
|
3950
3960
|
declare const isFutureDatesBeforeThreshold: (date: {
|
|
3951
3961
|
startDate?: string;
|
|
3952
3962
|
startTime?: string;
|
|
@@ -3962,6 +3972,15 @@ declare function sortDatesChronologically<T extends {
|
|
|
3962
3972
|
startDate?: string;
|
|
3963
3973
|
startTime?: string;
|
|
3964
3974
|
}>(dates: T[]): T[];
|
|
3975
|
+
/**
|
|
3976
|
+
* Start dates of the given date/time slots, chronological and de-duplicated.
|
|
3977
|
+
* Slots that share a `startDate` (e.g. two stall slots on the same day) collapse
|
|
3978
|
+
* into a single entry.
|
|
3979
|
+
*/
|
|
3980
|
+
declare function getUniqueStartDates(dates: Array<{
|
|
3981
|
+
startDate?: string;
|
|
3982
|
+
startTime?: string;
|
|
3983
|
+
}> | null | undefined): string[];
|
|
3965
3984
|
/**
|
|
3966
3985
|
* UI filter options for user-activity event periods. Derived from the canonical
|
|
3967
3986
|
* {@link FUTURE_EVENT_DATE_STATUSES} list, minus `STARTING_SOON` (a presentational
|
|
@@ -4155,8 +4174,11 @@ declare function filterRegisteredVendorsForEvent(vendors: VendorType[] | null |
|
|
|
4155
4174
|
declare function filterUnregisteredVendorsForEvent(vendors: UnregisteredVendorType[], eventStartDates: Set<string>, selectedDate: string | null, selectedCategory: string | null): UnregisteredVendorType[];
|
|
4156
4175
|
declare function filterRegisteredVendorsByEventDatesOnly(vendors: VendorType[] | null | undefined, eventStartDates: Set<string>): VendorType[];
|
|
4157
4176
|
declare function filterUnregisteredVendorsByEventDatesOnly(vendors: UnregisteredVendorType[], eventStartDates: Set<string>): UnregisteredVendorType[];
|
|
4158
|
-
declare function
|
|
4159
|
-
|
|
4177
|
+
declare function collectStallholderDateTimes(registeredVendors: VendorType[], unregisteredVendors?: UnregisteredVendorType[]): Array<{
|
|
4178
|
+
startDate?: string;
|
|
4179
|
+
startTime?: string;
|
|
4180
|
+
}>;
|
|
4181
|
+
declare function getUniqueStallholderStartDates(registeredVendors: VendorType[], unregisteredVendors?: UnregisteredVendorType[]): string[];
|
|
4160
4182
|
declare function getStallholderCategoryNames(registeredVendors: VendorType[], unregisteredVendors?: UnregisteredVendorType[]): string[];
|
|
4161
4183
|
declare function getStallholderCategoryOptions(registeredVendors: VendorType[], unregisteredVendors?: UnregisteredVendorType[]): StallholderFilterOption[];
|
|
4162
4184
|
declare function getEventStallholderEmptyMessage(hasAnyStallholdersForEvent: boolean, selectedDate: string | null): string;
|
|
@@ -4278,7 +4300,13 @@ type GetEventStallholdersDataInput = {
|
|
|
4278
4300
|
};
|
|
4279
4301
|
/**
|
|
4280
4302
|
* Derives every stallholder-list value an event detail screen needs from the
|
|
4281
|
-
*
|
|
4303
|
+
* event dates, registered vendors, and unregistered vendors.
|
|
4304
|
+
*
|
|
4305
|
+
* Date pills come from the relations, not the event schedule: they are the
|
|
4306
|
+
* `startDate`s of the stallholders' relation dates / invitations (chronological
|
|
4307
|
+
* and de-duplicated). `eventDateTime` is only used to decide which vendors and
|
|
4308
|
+
* invitations actually belong to the event, mirroring the vendor screen where
|
|
4309
|
+
* pills are also relation-sourced.
|
|
4282
4310
|
*
|
|
4283
4311
|
* Shared by the mobile event page and the admin market event page so the two
|
|
4284
4312
|
* keep identical filtering / date-pill / empty-message behaviour.
|
|
@@ -4327,4 +4355,4 @@ declare function toUserFacingErrorMessage(error: string | null | undefined, fall
|
|
|
4327
4355
|
/** Extracts and sanitizes an unknown catch/Apollo error for toasts and alerts. */
|
|
4328
4356
|
declare function getErrorMessage(error: unknown, fallback?: string): string;
|
|
4329
4357
|
|
|
4330
|
-
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 DateTimeFormValue, type DateTimeType, type DateTimeWithPriceFormValue, type DateTimeWithPriceType, type DeviceInfo, EVENT_DATE_STATUS_LABELS, 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, EnumPointType, 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 EventStallholderDateOption, type EventStallholdersData, 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 GetEventStallholdersDataInput, type GetVendorEventsDataInput, type GlobalGameData, type GoogleAddressComponent, type GoogleImportedMarket, IMAGE_EXTENSION, INITIAL_BILLING_CATALOG, IOS_URL, type IconBasename, type IconId, type ImageObjectType, ImageTypeEnum, LicenceExpiryDate, type LocationGeoType, type LocationType, type LoginFormData, type LogoBasename, type LogoId, MANUAL_DATE_STATUSES, 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, PRESERVED_RELATION_DATE_STATUSES, 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 RefreshImpersonationMutationResponse, 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 ShareResourceType, type ShareSlugResource, type ShareType, type ShareVendorForApplication, type ShareVendorForPublic, type ShareVendorInfoForApplication, type SocialMediaType, type SocialShareResourceType, type StallType, type StallholderFilterOption, type StartImpersonationMutationResponse, type StartImpersonationPayloadType, 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 UserOverallPointsEntry, type UserType, type UsersByPromoCode, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorAvailability, type VendorCalendarData, type VendorClaimTokenValidation, type VendorDowngradeSnapshot, type VendorEventDateOption, type VendorEventsData, 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, buildInvitationShareDescription, buildPublicEventShareDescription, buildPublicVendorShareDescription, buildRelationEligibleEventSchedule, buildShareOgDescription, buildShareOgDescriptionFromSections, buildSharePagePath, buildShareUrl, canAccessAdminApp, canAccessAdminPath, capitalizeFirstLetter, categoryColors, cluemartSocialMedia, cluiFiles, cluiIds, cluiImages, collectStallholderStartDates, collectVendorEventRelationDateTimes, companyContactFields, computeDailyClueState, computeHasMore, contactUsFields, countLetterOccurrences, countLetterOccurrencesUpTo, 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, getDailyClueDayIndex, getDefaultAdminHome, getDistanceInKilometers, getDistanceInMeters, getErrorMessage, getEventCalendarIsoDates, getEventDatesWithStallholders, getEventScheduleStatusLabel, getEventScheduleStatusPresentation, getEventScheduleStatusTone, getEventStallholderEmptyMessage, getEventStallholdersData, getFutureEventStatus, getPermissionsForRoles, getRegisteredVendorCategoryNames, getRegisteredVendorStartDates, getStallholderCategoryNames, getStallholderCategoryOptions, getUnregisteredVendorCategoryNames, getUnregisteredVendorStartDates, getUsableAdminContexts, getVendorEventRelationDateOptions, getVendorEventRelationStartDates, getVendorEventsData, 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, shareSlugResourceId, shouldShowEventActionsWithWeather, socialMediaFields, sortDatesChronologically, splitShareDescriptionSections, stallTypeOptions, statusOptions, stripOverlaySubtitleSpecialChars, sumUserOverallPoints, tagOptions, timeFormat, toCalendarIsoDate, toGraphqlQueryString, toNZTime, toShareSocialImageCacheVersion, toUserFacingErrorMessage, truncateText, updateSingleDateTimeStatus, 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, useEndImpersonation, 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, useRefreshImpersonation, useRefreshToken, useRegister, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useReportChatUser, useRequestMarketingMaterial, useRequestPasswordReset, useResetPassword, useRewardCoupon, useScanCoupon, useSearchEvents, useSearchPartners, useSearchVendors, useSelectStandardPackage, useSendChatMessage, useStartGame, useStartImpersonation, 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 };
|
|
4358
|
+
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 DateTimeFormValue, type DateTimeType, type DateTimeWithPriceFormValue, type DateTimeWithPriceType, type DeviceInfo, EVENT_DATE_STATUS_LABELS, 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, EnumPointType, 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 EventStallholderDateOption, type EventStallholdersData, 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 GetEventStallholdersDataInput, type GetVendorEventsDataInput, type GlobalGameData, type GoogleAddressComponent, type GoogleImportedMarket, IMAGE_EXTENSION, INITIAL_BILLING_CATALOG, IOS_URL, type IconBasename, type IconId, type ImageObjectType, ImageTypeEnum, LicenceExpiryDate, type LocationGeoType, type LocationType, type LoginFormData, type LogoBasename, type LogoId, MANUAL_DATE_STATUSES, 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, PRESERVED_RELATION_DATE_STATUSES, 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 RefreshImpersonationMutationResponse, 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 ShareResourceType, type ShareSlugResource, type ShareType, type ShareVendorForApplication, type ShareVendorForPublic, type ShareVendorInfoForApplication, type SocialMediaType, type SocialShareResourceType, type StallType, type StallholderFilterOption, type StartImpersonationMutationResponse, type StartImpersonationPayloadType, 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 UserOverallPointsEntry, type UserType, type UsersByPromoCode, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorAvailability, type VendorCalendarData, type VendorClaimTokenValidation, type VendorDowngradeSnapshot, type VendorEventDateOption, type VendorEventsData, 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, buildInvitationShareDescription, buildPublicEventShareDescription, buildPublicVendorShareDescription, buildRelationEligibleEventSchedule, buildShareOgDescription, buildShareOgDescriptionFromSections, buildSharePagePath, buildShareUrl, canAccessAdminApp, canAccessAdminPath, capitalizeFirstLetter, categoryColors, cluemartSocialMedia, cluiFiles, cluiIds, cluiImages, collectStallholderDateTimes, collectVendorEventRelationDateTimes, companyContactFields, computeDailyClueState, computeHasMore, contactUsFields, countLetterOccurrences, countLetterOccurrencesUpTo, 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, getDailyClueDayIndex, getDefaultAdminHome, getDistanceInKilometers, getDistanceInMeters, getErrorMessage, getEventCalendarIsoDates, getEventScheduleStatusLabel, getEventScheduleStatusPresentation, getEventScheduleStatusTone, getEventStallholderEmptyMessage, getEventStallholdersData, getFutureEventStatus, getPermissionsForRoles, getRegisteredVendorCategoryNames, getRegisteredVendorStartDates, getStallholderCategoryNames, getStallholderCategoryOptions, getUniqueStallholderStartDates, getUniqueStartDates, getUnregisteredVendorCategoryNames, getUnregisteredVendorStartDates, getUsableAdminContexts, getVendorEventRelationDateOptions, getVendorEventRelationStartDates, getVendorEventsData, getVendorEventsEmptyMessage, hasAllPermissions, hasAnyPermission, hasAnyRole, hasMatchingEventDate, hasPermission, hasRole, iconFiles, iconIds, icons, isFutureDatesBeforeThreshold, isFutureEventDateStatus, isFutureStartDate, 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, shareSlugResourceId, shouldShowEventActionsWithWeather, socialMediaFields, sortDatesChronologically, splitShareDescriptionSections, stallTypeOptions, statusOptions, stripOverlaySubtitleSpecialChars, sumUserOverallPoints, tagOptions, timeFormat, toCalendarIsoDate, toGraphqlQueryString, toNZTime, toShareSocialImageCacheVersion, toUserFacingErrorMessage, truncateText, updateSingleDateTimeStatus, 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, useEndImpersonation, 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, useRefreshImpersonation, useRefreshToken, useRegister, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useReportChatUser, useRequestMarketingMaterial, useRequestPasswordReset, useResetPassword, useRewardCoupon, useScanCoupon, useSearchEvents, useSearchPartners, useSearchVendors, useSelectStandardPackage, useSendChatMessage, useStartGame, useStartImpersonation, 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
|
@@ -769,19 +769,34 @@ var formatDate = (dateStr, display = "datetime", timeStr) => {
|
|
|
769
769
|
return formattedDate;
|
|
770
770
|
}
|
|
771
771
|
};
|
|
772
|
+
var SLOT_FORMATS = [
|
|
773
|
+
`${dateFormat} ${timeFormat}`,
|
|
774
|
+
`${dateFormat} H:mm`,
|
|
775
|
+
`${dateFormat} ${timeFormat}:ss`,
|
|
776
|
+
`${dateFormat} H:mm:ss`
|
|
777
|
+
];
|
|
778
|
+
var parseSlot = (date) => {
|
|
779
|
+
if (!date.startDate || !date.startTime) {
|
|
780
|
+
return null;
|
|
781
|
+
}
|
|
782
|
+
const value = `${date.startDate} ${date.startTime}`;
|
|
783
|
+
for (const format of SLOT_FORMATS) {
|
|
784
|
+
const parsed = dayjs2(value, format, true);
|
|
785
|
+
if (parsed.isValid()) {
|
|
786
|
+
return parsed;
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
return null;
|
|
790
|
+
};
|
|
791
|
+
var isFutureDateTime = (date, now) => {
|
|
792
|
+
const slot = parseSlot(date);
|
|
793
|
+
return slot ? slot.isSameOrAfter(now) : false;
|
|
794
|
+
};
|
|
772
795
|
var getCurrentAndFutureDates = (dates) => {
|
|
773
796
|
const now = dayjs2();
|
|
774
|
-
return dates.filter((dateObj) =>
|
|
775
|
-
if (!dateObj.startDate || !dateObj.startTime) {
|
|
776
|
-
return false;
|
|
777
|
-
}
|
|
778
|
-
const dateTime = dayjs2(
|
|
779
|
-
`${dateObj.startDate} ${dateObj.startTime}`,
|
|
780
|
-
`${dateFormat} ${timeFormat}`
|
|
781
|
-
);
|
|
782
|
-
return dateTime.isSameOrAfter(now);
|
|
783
|
-
});
|
|
797
|
+
return dates.filter((dateObj) => isFutureDateTime(dateObj, now));
|
|
784
798
|
};
|
|
799
|
+
var isFutureStartDate = (date) => isFutureDateTime(date, dayjs2());
|
|
785
800
|
var isFutureDatesBeforeThreshold = (date, minHoursFromNow) => {
|
|
786
801
|
if (!date.startDate || !date.startTime) {
|
|
787
802
|
return false;
|
|
@@ -820,6 +835,18 @@ function sortDatesChronologically(dates) {
|
|
|
820
835
|
return 0;
|
|
821
836
|
});
|
|
822
837
|
}
|
|
838
|
+
function getUniqueStartDates(dates) {
|
|
839
|
+
const seenStartDates = /* @__PURE__ */ new Set();
|
|
840
|
+
const uniqueStartDates = [];
|
|
841
|
+
for (const { startDate } of sortDatesChronologically(dates ?? [])) {
|
|
842
|
+
if (!startDate || seenStartDates.has(startDate)) {
|
|
843
|
+
continue;
|
|
844
|
+
}
|
|
845
|
+
seenStartDates.add(startDate);
|
|
846
|
+
uniqueStartDates.push(startDate);
|
|
847
|
+
}
|
|
848
|
+
return uniqueStartDates;
|
|
849
|
+
}
|
|
823
850
|
var futureTimePeriods = FUTURE_EVENT_DATE_STATUSES.filter(
|
|
824
851
|
(status) => status !== "Starting_Soon" /* STARTING_SOON */
|
|
825
852
|
).map((status) => ({
|
|
@@ -2633,21 +2660,23 @@ function filterUnregisteredVendorsByEventDatesOnly(vendors, eventStartDates) {
|
|
|
2633
2660
|
)
|
|
2634
2661
|
);
|
|
2635
2662
|
}
|
|
2636
|
-
function
|
|
2663
|
+
function collectStallholderDateTimes(registeredVendors, unregisteredVendors = []) {
|
|
2637
2664
|
return [
|
|
2638
|
-
...registeredVendors.flatMap(
|
|
2639
|
-
|
|
2665
|
+
...registeredVendors.flatMap(
|
|
2666
|
+
(vendor) => (vendor.relations ?? []).flatMap(
|
|
2667
|
+
(relation) => (relation.relationDates ?? []).map(
|
|
2668
|
+
(relationDate) => relationDate.dateTime
|
|
2669
|
+
)
|
|
2670
|
+
)
|
|
2671
|
+
),
|
|
2672
|
+
...unregisteredVendors.flatMap(
|
|
2673
|
+
(vendor) => (vendor.invitations ?? []).flatMap((invitation) => invitation.dateTime)
|
|
2674
|
+
)
|
|
2640
2675
|
];
|
|
2641
2676
|
}
|
|
2642
|
-
function
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
}
|
|
2646
|
-
const startDates = new Set(stallholderStartDates);
|
|
2647
|
-
return sortDatesChronologically(
|
|
2648
|
-
eventDateTime.filter(
|
|
2649
|
-
(date) => Boolean(date.startDate) && startDates.has(date.startDate)
|
|
2650
|
-
)
|
|
2677
|
+
function getUniqueStallholderStartDates(registeredVendors, unregisteredVendors = []) {
|
|
2678
|
+
return getUniqueStartDates(
|
|
2679
|
+
collectStallholderDateTimes(registeredVendors, unregisteredVendors)
|
|
2651
2680
|
);
|
|
2652
2681
|
}
|
|
2653
2682
|
function getStallholderCategoryNames(registeredVendors, unregisteredVendors = []) {
|
|
@@ -2703,16 +2732,7 @@ function collectVendorEventRelationDateTimes(events) {
|
|
|
2703
2732
|
);
|
|
2704
2733
|
}
|
|
2705
2734
|
function getVendorEventRelationStartDates(events) {
|
|
2706
|
-
|
|
2707
|
-
collectVendorEventRelationDateTimes(events)
|
|
2708
|
-
);
|
|
2709
|
-
const uniqueStartDates = [];
|
|
2710
|
-
for (const dateTime of sortedDates) {
|
|
2711
|
-
if (dateTime.startDate && !uniqueStartDates.includes(dateTime.startDate)) {
|
|
2712
|
-
uniqueStartDates.push(dateTime.startDate);
|
|
2713
|
-
}
|
|
2714
|
-
}
|
|
2715
|
-
return uniqueStartDates;
|
|
2735
|
+
return getUniqueStartDates(collectVendorEventRelationDateTimes(events));
|
|
2716
2736
|
}
|
|
2717
2737
|
function getVendorEventRelationDateOptions(events) {
|
|
2718
2738
|
return getVendorEventRelationStartDates(events).map((startDate) => ({
|
|
@@ -2977,12 +2997,12 @@ function getEventStallholdersData({
|
|
|
2977
2997
|
registeredForSelectedDate,
|
|
2978
2998
|
unregisteredForSelectedDate
|
|
2979
2999
|
);
|
|
2980
|
-
const futureEventStartDates =
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
).map((
|
|
2984
|
-
label: formatDate(
|
|
2985
|
-
value:
|
|
3000
|
+
const futureEventStartDates = getUniqueStallholderStartDates(
|
|
3001
|
+
registeredForEvent,
|
|
3002
|
+
unregisteredForEvent
|
|
3003
|
+
).map((startDate) => ({
|
|
3004
|
+
label: formatDate(startDate, "date"),
|
|
3005
|
+
value: startDate
|
|
2986
3006
|
}));
|
|
2987
3007
|
const hasDatePills = futureEventStartDates.length > 0;
|
|
2988
3008
|
const hasStallholders = vendorList.length > 0 || unregisteredVendorList.length > 0;
|
|
@@ -5189,8 +5209,8 @@ var RELATION_FIELDS_FRAGMENT = gql11`
|
|
|
5189
5209
|
${RELATION_DATES_FRAGMENT}
|
|
5190
5210
|
`;
|
|
5191
5211
|
var GET_RELATION = gql11`
|
|
5192
|
-
query getRelation($_id: ID
|
|
5193
|
-
relation(_id: $_id) {
|
|
5212
|
+
query getRelation($_id: ID!, $futureOnly: Boolean = false) {
|
|
5213
|
+
relation(_id: $_id, futureOnly: $futureOnly) {
|
|
5194
5214
|
...RelationFields
|
|
5195
5215
|
}
|
|
5196
5216
|
}
|
|
@@ -6565,11 +6585,16 @@ var useDeleteRelation = () => {
|
|
|
6565
6585
|
|
|
6566
6586
|
// src/graphql/hooks/relation/hooksQuery.ts
|
|
6567
6587
|
import { useQuery as useQuery4 } from "@apollo/client";
|
|
6568
|
-
var useGetRelation = (_id) => {
|
|
6588
|
+
var useGetRelation = (_id, options) => {
|
|
6569
6589
|
const { loading, error, data, refetch } = useQuery4(GET_RELATION, {
|
|
6570
|
-
|
|
6590
|
+
// `relation(futureOnly)` is a projection-specific view of RelationType.
|
|
6591
|
+
// If this writes into the normalized RelationType cache, a full-history
|
|
6592
|
+
// read (e.g. the statistics screen's `futureOnly: false`) and this one can
|
|
6593
|
+
// overwrite each other's `relationDates` for the same entity id. Keep it
|
|
6594
|
+
// uncached.
|
|
6595
|
+
fetchPolicy: "no-cache",
|
|
6571
6596
|
skip: !_id,
|
|
6572
|
-
variables: _id ? { _id } : void 0
|
|
6597
|
+
variables: _id ? { _id, futureOnly: options?.futureOnly ?? false } : void 0
|
|
6573
6598
|
});
|
|
6574
6599
|
const relation = data?.relation;
|
|
6575
6600
|
return { error, loading, refetch, relation };
|
|
@@ -9931,7 +9956,7 @@ export {
|
|
|
9931
9956
|
cluiFiles,
|
|
9932
9957
|
cluiIds,
|
|
9933
9958
|
cluiImages,
|
|
9934
|
-
|
|
9959
|
+
collectStallholderDateTimes,
|
|
9935
9960
|
collectVendorEventRelationDateTimes,
|
|
9936
9961
|
companyContactFields,
|
|
9937
9962
|
computeDailyClueState,
|
|
@@ -9994,7 +10019,6 @@ export {
|
|
|
9994
10019
|
getDistanceInMeters,
|
|
9995
10020
|
getErrorMessage,
|
|
9996
10021
|
getEventCalendarIsoDates,
|
|
9997
|
-
getEventDatesWithStallholders,
|
|
9998
10022
|
getEventScheduleStatusLabel,
|
|
9999
10023
|
getEventScheduleStatusPresentation,
|
|
10000
10024
|
getEventScheduleStatusTone,
|
|
@@ -10006,6 +10030,8 @@ export {
|
|
|
10006
10030
|
getRegisteredVendorStartDates,
|
|
10007
10031
|
getStallholderCategoryNames,
|
|
10008
10032
|
getStallholderCategoryOptions,
|
|
10033
|
+
getUniqueStallholderStartDates,
|
|
10034
|
+
getUniqueStartDates,
|
|
10009
10035
|
getUnregisteredVendorCategoryNames,
|
|
10010
10036
|
getUnregisteredVendorStartDates,
|
|
10011
10037
|
getUsableAdminContexts,
|
|
@@ -10024,6 +10050,7 @@ export {
|
|
|
10024
10050
|
icons,
|
|
10025
10051
|
isFutureDatesBeforeThreshold,
|
|
10026
10052
|
isFutureEventDateStatus,
|
|
10053
|
+
isFutureStartDate,
|
|
10027
10054
|
isInternalErrorMessage,
|
|
10028
10055
|
isIsoDateString,
|
|
10029
10056
|
isNonVisitorResourceType,
|