@timardex/cluemart-shared 1.5.617 → 1.5.619
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-4RD4XK5S.mjs → chunk-3NBZGJZM.mjs} +50 -27
- package/dist/chunk-3NBZGJZM.mjs.map +1 -0
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/index.cjs +51 -26
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +31 -71
- package/dist/index.d.ts +31 -71
- package/dist/index.mjs +49 -26
- package/dist/index.mjs.map +1 -1
- package/dist/sharing/index.cjs +51 -26
- package/dist/sharing/index.cjs.map +1 -1
- package/dist/sharing/index.d.mts +35 -71
- package/dist/sharing/index.d.ts +35 -71
- package/dist/sharing/index.mjs +5 -1
- package/package.json +6 -3
- package/dist/chunk-4RD4XK5S.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -2627,89 +2627,49 @@ declare function useAppSettingsForm(data?: AppSettingsFormData): CreateAppSettin
|
|
|
2627
2627
|
|
|
2628
2628
|
declare function useSchoolForm(data?: SchoolFormData): CreateSchoolFormData;
|
|
2629
2629
|
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
};
|
|
2634
|
-
/** Minimal event fields used by invitation share copy (GraphQL share queries). */
|
|
2635
|
-
type ShareEventForInvitation = {
|
|
2636
|
-
dateTime: ShareEventDateTime[];
|
|
2637
|
-
description: string | null;
|
|
2638
|
-
location: {
|
|
2639
|
-
fullAddress: string;
|
|
2640
|
-
};
|
|
2630
|
+
/** Minimal event fields for public (market) share copy — matches in-app preview. */
|
|
2631
|
+
type ShareEventForPublic = {
|
|
2632
|
+
description?: string | null;
|
|
2641
2633
|
rainOrShine: boolean;
|
|
2642
2634
|
tags: string[];
|
|
2643
2635
|
};
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
name: string;
|
|
2648
|
-
}>;
|
|
2649
|
-
};
|
|
2650
|
-
/** Minimal vendor fields used by application share copy (GraphQL share queries). */
|
|
2651
|
-
type ShareVendorForApplication = {
|
|
2652
|
-
categories: ShareVendorCategory[];
|
|
2653
|
-
description: string | null;
|
|
2636
|
+
/** Minimal vendor fields for public (stallholder) share copy — matches in-app preview. */
|
|
2637
|
+
type ShareVendorForPublic = {
|
|
2638
|
+
description?: string | null;
|
|
2654
2639
|
foodTruck: boolean;
|
|
2655
2640
|
};
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
/**
|
|
2662
|
-
type
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
}>;
|
|
2668
|
-
requirements?: Array<{
|
|
2669
|
-
label: string;
|
|
2670
|
-
value: boolean;
|
|
2671
|
-
}> | null;
|
|
2672
|
-
};
|
|
2673
|
-
/** Minimal vendor info fields for application share copy (GraphQL share queries). */
|
|
2674
|
-
type ShareVendorInfoForApplication = {
|
|
2675
|
-
compliance?: {
|
|
2676
|
-
liabilityInsurance: boolean;
|
|
2677
|
-
foodBeverageLicense: boolean;
|
|
2678
|
-
} | null;
|
|
2679
|
-
product: {
|
|
2680
|
-
priceRange: {
|
|
2681
|
-
min: string;
|
|
2682
|
-
max: string;
|
|
2683
|
-
};
|
|
2684
|
-
};
|
|
2685
|
-
stallInfo: {
|
|
2686
|
-
size: {
|
|
2687
|
-
width: string;
|
|
2688
|
-
depth: string;
|
|
2689
|
-
};
|
|
2690
|
-
};
|
|
2691
|
-
};
|
|
2641
|
+
declare function buildPublicEventShareDescription(event: ShareEventForPublic): string;
|
|
2642
|
+
declare function buildPublicVendorShareDescription(vendor: ShareVendorForPublic): string;
|
|
2643
|
+
|
|
2644
|
+
/** Event fields used by invitation share copy — subset of {@link EventType}. */
|
|
2645
|
+
type ShareEventForInvitation = Pick<EventType, "dateTime" | "description" | "location" | "rainOrShine" | "tags">;
|
|
2646
|
+
/** Vendor fields used by application share copy — subset of {@link VendorType}. */
|
|
2647
|
+
type ShareVendorForApplication = Pick<VendorType, "categories" | "description" | "foodTruck">;
|
|
2648
|
+
/** Event info fields used by invitation share copy — subset of {@link EventInfoFormData}. */
|
|
2649
|
+
type ShareEventInfoForInvitation = Pick<EventInfoFormData, "applicationDeadlineHours" | "dateTime" | "requirements">;
|
|
2650
|
+
/** Vendor info fields used by application share copy — subset of {@link VendorInfoFormData}. */
|
|
2651
|
+
type ShareVendorInfoForApplication = Pick<VendorInfoFormData, "compliance" | "product" | "stallInfo">;
|
|
2692
2652
|
|
|
2693
2653
|
/** Formats event `startDate` (`DD-MM-YYYY`) for share copy — same as share preview UI. */
|
|
2694
2654
|
declare function formatShareMarketDate(dateStr: string): string;
|
|
2695
2655
|
declare function formatStallCapacityLabel(stallCapacity: number): string;
|
|
2696
|
-
declare function formatShareStallLine(stall:
|
|
2656
|
+
declare function formatShareStallLine(stall: StallType): string;
|
|
2697
2657
|
/** Nested market dates + per-date stall lines for invitation share copy. */
|
|
2698
2658
|
declare function formatShareInvitationMarketDatesSection(dateTime: ShareEventInfoForInvitation["dateTime"]): string;
|
|
2699
2659
|
declare function formatShareRainOrShineLine(rainOrShine: boolean): string | null;
|
|
2700
2660
|
declare function formatShareIsFoodTrueLine(foodTruck: boolean): string | null;
|
|
2701
2661
|
/** Bulleted requirements list for invitation share copy. */
|
|
2702
|
-
declare function formatShareInvitationRequirementsSection(
|
|
2703
|
-
declare function formatShareTagsSection(tags: string[]): string;
|
|
2662
|
+
declare function formatShareInvitationRequirementsSection(requirements: ShareEventInfoForInvitation["requirements"] | null): string | null;
|
|
2663
|
+
declare function formatShareTagsSection(tags: string[]): string | null;
|
|
2704
2664
|
/** Bulleted categories list for application share copy. */
|
|
2705
|
-
declare function formatShareApplicationCategoriesSection(
|
|
2665
|
+
declare function formatShareApplicationCategoriesSection(categories: ShareVendorForApplication["categories"]): string | null;
|
|
2706
2666
|
/** Stall dimensions line for application share copy. */
|
|
2707
2667
|
declare function formatShareApplicationStallSizeLine(size: {
|
|
2708
2668
|
width: string;
|
|
2709
2669
|
depth: string;
|
|
2710
2670
|
}): string;
|
|
2711
2671
|
/** Bulleted compliance list for application share copy. */
|
|
2712
|
-
declare function formatShareApplicationComplianceSection(
|
|
2672
|
+
declare function formatShareApplicationComplianceSection(compliance: ShareVendorInfoForApplication["compliance"]): string | null;
|
|
2713
2673
|
/** Price range line for application share copy. */
|
|
2714
2674
|
declare function formatShareApplicationPriceRangeLine(priceRange: {
|
|
2715
2675
|
min: string;
|
|
@@ -2734,7 +2694,7 @@ type RelationSharePathType = typeof RELATION_SHARE_INVITATION | typeof RELATION_
|
|
|
2734
2694
|
type ShareType = PublicSharePathType | RelationSharePathType;
|
|
2735
2695
|
/** Alternation for deep-link regexes — keep in sync with {@link ShareType}. */
|
|
2736
2696
|
declare const SHARE_TYPE_PATH_REGEX: string;
|
|
2737
|
-
declare function buildShareUrl(type: ShareType, id: string): string;
|
|
2697
|
+
declare function buildShareUrl(type: ShareType, id: string, utmMedium?: string): string;
|
|
2738
2698
|
|
|
2739
2699
|
declare const SHARE_SITE_URL = "https://cluemart.co.nz";
|
|
2740
2700
|
/** Calendar marker for invitation market-dates share copy (U+1F4C5 📅). */
|
|
@@ -2767,8 +2727,8 @@ declare const SHARE_PRICE_RANGE_PREFIX = "$ Price range:";
|
|
|
2767
2727
|
declare const SHARE_CLOCK_ICON = "\u23F0";
|
|
2768
2728
|
/** Prefix for the invitation application-deadline sentence (share text + OG section parsing). */
|
|
2769
2729
|
declare const SHARE_APPLICATION_DEADLINE_PREFIX = "\u23F0 Application deadline:";
|
|
2770
|
-
/**
|
|
2771
|
-
declare const SHARE_MORE_INFO_LINE = "
|
|
2730
|
+
/** First line on share sheet messages, Facebook SDK quote, and `og:description`. */
|
|
2731
|
+
declare const SHARE_MORE_INFO_LINE = "Shared from ClueMart";
|
|
2772
2732
|
declare const DEFAULT_SHARE_OG_IMAGE = "https://cluemart.co.nz/assets/logo.webp";
|
|
2773
2733
|
declare const RESOURCE_SHARE_TYPES: readonly ["market", "stallholder", "partner"];
|
|
2774
2734
|
type ResourceShareType = (typeof RESOURCE_SHARE_TYPES)[number];
|
|
@@ -2778,7 +2738,7 @@ type ShareResourceType = ResourceShareType | PostShareResourceType | RelationSha
|
|
|
2778
2738
|
declare const SHARE_RESOURCE_LABEL: Record<ShareResourceType, string>;
|
|
2779
2739
|
declare function isPostShareResourceType(resourceType: ShareResourceType): resourceType is PostShareResourceType;
|
|
2780
2740
|
|
|
2781
|
-
declare function formatCategoryLabel(category:
|
|
2741
|
+
declare function formatCategoryLabel(category: Category): string;
|
|
2782
2742
|
|
|
2783
2743
|
/** Blank line between share sections — title, address, dates, URL, etc. */
|
|
2784
2744
|
declare const SHARE_DESCRIPTION_SECTION_BREAK = "\n\n";
|
|
@@ -2790,17 +2750,17 @@ declare const OG_DESCRIPTION_LINE_BREAK = " ";
|
|
|
2790
2750
|
/** Joins OG description sections for Facebook link cards (and Twitter). */
|
|
2791
2751
|
declare function joinShareOgDescriptionSections(sections: ReadonlyArray<string | false | null | undefined>): string;
|
|
2792
2752
|
declare function joinShareDescriptionSections(sections: ReadonlyArray<string | false | null | undefined>): string;
|
|
2793
|
-
/**
|
|
2753
|
+
/** Prepends the standard share branding line when assembling display text. */
|
|
2794
2754
|
declare function appendShareMoreInfoLine(description: string): string;
|
|
2795
2755
|
|
|
2796
2756
|
/** Trims share text and collapses spaces per line; preserves `\n\n` section breaks. */
|
|
2797
2757
|
declare function normalizeShareText(value: string | null | undefined): string;
|
|
2798
|
-
/**
|
|
2799
|
-
type ShareMessageFooterPlacement = "
|
|
2758
|
+
/** Branding line placement — first so Facebook truncation does not drop it. */
|
|
2759
|
+
type ShareMessageFooterPlacement = "before-body";
|
|
2800
2760
|
declare function shareMessageFooterPlacementForType(_shareType?: ShareResourceType): ShareMessageFooterPlacement;
|
|
2801
2761
|
/**
|
|
2802
2762
|
* Ordered sections for share-sheet / Facebook SDK quote text:
|
|
2803
|
-
* title → description (full body or post caption)
|
|
2763
|
+
* {@link SHARE_MORE_INFO_LINE} → title → description (full body or post caption).
|
|
2804
2764
|
*/
|
|
2805
2765
|
declare function buildShareMessageSections(input: {
|
|
2806
2766
|
title?: string | null;
|
|
@@ -2947,4 +2907,4 @@ declare const ANDROID_URL = "https://play.google.com/store/apps/details?id=com.t
|
|
|
2947
2907
|
declare const SCHOOL_MIN_STUDENT_COUNT = 300;
|
|
2948
2908
|
declare const SCHOOL_MAX_STUDENT_COUNT = 0;
|
|
2949
2909
|
|
|
2950
|
-
export { ANDROID_URL, type AdFormData, type AdResource, type AdType, type AdminUpdateResourceType, type AppSettingsFormData, type AppSettingsType, type AssociateType, type BadgeBasename, type BadgeId, type BaseGameMap, type BaseGameType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageReaction, type ChatMessageReplyPreview, type ChatMessageSeen, type ChatMessageType, type ChatType, type CluiImageBasename, type CluiImageId, type ContactUsFormData, type CreateAdFormData, type CreateAppSettingsFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, 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_SHARE_OG_IMAGE, type DailyClueBaseGame, type DailyClueGameData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumBillingPeriod, EnumChatReportReason, EnumChatType, EnumEventDateStatus, EnumEventType, EnumFoodFlavor, EnumFoodType, EnumGameStatus, EnumGameType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPartnerType, EnumPaymentMethod, EnumPostContentType, EnumPostType, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumSubscriptionStatus, EnumUserLicence, EnumUserRole, EnumVendorType, EnumVerificationType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventListItemType, type EventStatusType, type EventType, type FormDateField, type FormField, type GameDate, type GameDocType, type GameHistory, type GameLeaderboard, type GamePlacement, type GamePlacementClue, type GameType, type GeocodeLocation, type GlobalGameData, type GoogleAddressComponent, type GoogleImportedMarket, IMAGE_EXTENSION, IOS_URL, type IconBasename, type IconId, type ImageObjectType, ImageTypeEnum, type LocationGeoType, type LocationType, type LoginFormData, type LogoBasename, type LogoId, type MarketingMaterialRequestInputType, type MiniQuizAnswer, type MiniQuizAnsweredQuestion, type MiniQuizBaseGame, type MiniQuizGameData, type MiniQuizQuestion, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, OG_DESCRIPTION_LINE_BREAK, type OptionItem, type OtherImagesBasename, type OtherImagesId, type OwnerType, POST_SHARE_RESOURCE_TYPES, PROMO_CODE_PREFIX, PUBLIC_SHARE_PATH_TYPES, type ParticipantType, type PartnerFormData, type PartnerType, type PaymentInfoType, type PlacePrediction, type PostContentData, type PostContentFormData, type PostContentGame, type PostContentImage, type PostContentList, type PostContentTextarea, type PostContentType, type PostContentVideo, type PostFileInput, type PostFormData, type PostShareResourceType, type PostType, type PosterAssetId, type PosterImageBasename, type PosterInputType, type PosterUsageType, type PromoCodeType, type PublicSharePathType, RELATION_SHARE_APPLICATION, RELATION_SHARE_INVITATION, RELATION_SHARE_RESOURCE_TYPES, RESOURCE_SHARE_TYPES, type RefundPolicy, type Region, type RegisterFormData, type RelationDate, type RelationSharePathType, type RelationShareResourceType, type RelationType, type ReportChatUser, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceActivityEntry, type ResourceActivityInputType, type ResourceActivityType, type ResourceByUser, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceDetails, type ResourceImageType, type ResourceShareType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, SCHOOL_MAX_STUDENT_COUNT, SCHOOL_MIN_STUDENT_COUNT, SHARE_APPLICATION_DEADLINE_PREFIX, SHARE_CALENDAR_ICON, SHARE_CATEGORIES_SECTION_HEADING, SHARE_CATEGORY_ICON, SHARE_CHECKMARK_ICON, SHARE_CLOCK_ICON, SHARE_COMPLIANCE_PREFIX, SHARE_DESCRIPTION_SECTION_BREAK, SHARE_DOLLAR_ICON, SHARE_FOOD_TRUCK_LINE, SHARE_INFO_ICON, SHARE_MARKET_DATES_SECTION_HEADING, SHARE_MORE_INFO_LINE, SHARE_PRICE_RANGE_PREFIX, SHARE_RAIN_OR_SHINE_LINE, SHARE_REQUIREMENTS_SECTION_HEADING, SHARE_RESOURCE_LABEL, SHARE_RULER_ICON, SHARE_SITE_URL, SHARE_STALL_SIZE_PREFIX, SHARE_TAGS_SECTION_HEADING, SHARE_TYPE_PATH_REGEX, type SchoolCampaignType, type SchoolFormData, type SchoolRegisteredUserType, type SchoolReturnType, type SchoolType, type ShareEventDateTime, type ShareEventForInvitation, type ShareEventInfoForInvitation, type ShareMessageFooterPlacement, type ShareResourceType, type ShareStallType, type ShareType, type ShareVendorCategory, type ShareVendorForApplication, type ShareVendorInfoForApplication, type SocialMediaType, type StallType, type StripeSubscription, type Subcategory, type SubcategoryItems, type SubscriptionPlanData, type SubscriptionPlansResponse, type SubscriptionPricingData, type SubscriptionStatusData, type TermsAgreement, USER_STORAGE_KEY, type UnregisteredVendorFormData, type UnregisteredVendorInvitationType, type UnregisteredVendorType, type UseGetEventsByRegionOptions, type UserActivity, type UserActivityEvent, type UserFormData, type UserLicenceType, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorCalendarData, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorProductList, type VendorType, appendShareMoreInfoLine, availableCategories, availableRegionOptions, availableRegionTypes, availableTagTypes, badgeFiles, badgeIds, badges, buildApplicationShareDescription, buildFacebookShareQuote, buildInvitationShareDescription, buildShareMessageSections, buildShareOgDescription, buildShareOgDescriptionFromSections, buildSharePagePath, buildShareUrl, capitalizeFirstLetter, categoryColors, cluemartSocialMedia, cluiFiles, cluiIds, cluiImages, companyContactFields, computeDailyClueState, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultLocation, defaultPartnerFormValues, defaultUnregisteredVendorFormValues, defaultVendorFormValues, defaultVendorInfoFormValues, emailField, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatCategoryLabel, formatDate, formatShareApplicationCategoriesSection, formatShareApplicationComplianceSection, formatShareApplicationPriceRangeLine, formatShareApplicationStallSizeLine, formatShareInvitationApplicationDeadlineLine, formatShareInvitationMarketDatesSection, formatShareInvitationRequirementsSection, formatShareIsFoodTrueLine, formatShareMarketDate, formatShareRainOrShineLine, formatShareStallLine, formatShareTagsSection, formatStallCapacityLabel, formatTimestamp, gameScreenIdentifierList, gameTypeToDisplayName, getCurrentAndFutureDates, globalDefaultValues, iconFiles, iconIds, icons, isFutureDatesBeforeThreshold, isIsoDateString, isPostShareResourceType, isRelationShareResourceType, joinShareDescriptionSections, joinShareOgDescriptionSections, licenseNiceNames, lightColors, loginFields, logoFiles, logoIds, logos, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeShareOgDescription, normalizeShareRouteId, normalizeShareText, normalizeUrl, nzStartOfDay, otherImages, otherImagesFiles, otherImagesIds, packagingOptions, partnerBasicInfoFields, paymentMethodOptions, posterFiles, posterIds, posters, priceUnits, producedIngOptions, productLabelGroups, profileFields, refundPolicyOptions, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, seededShuffle, shareMessageFooterPlacementForType, socialMediaFields, sortDatesChronologically, splitShareDescriptionSections, stallTypeOptions, statusOptions, tagOptions, timeFormat, toNZTime, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminPermanentlyDeleteResource, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useAppSettingsForm, useCancelSubscription, useContactUs, useContactUsForm, useCrawlGoogleMarkets, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePrivateChat, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateSchool, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteSchool, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useEventForm, useEventInfoForm, useGetAd, useGetAds, useGetAdsByRegion, useGetAppSettings, useGetChat, useGetChatSubscription, useGetChatsByRegion, useGetEvent, useGetEventByPlaceId, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetGame, useGetGameLeaderboard, useGetGames, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetPostsByType, useGetRelation, useGetRelationByEventAndVendor, useGetReportedChatUsers, useGetResourceActivity, useGetResourceConnections, useGetSchool, useGetSchools, useGetSubscriptionPlans, useGetSubscriptionStatus, useGetUnregisteredVendor, useGetUnregisteredVendors, useGetUnregisteredVendorsByInviterId, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserPartners, useGetUserResources, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLeaveGame, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkChatMessagesSeen, useMarkNotificationRead, usePartnerForm, usePostForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useReportChatUser, useRequestMarketingMaterial, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSchoolForm, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSelectStandardPackage, useSendChatMessage, useStartGame, useToggleChatMessageLike, useUnlinkUnregisteredVendorByInviterId, useUnregisteredVendorForm, useUpdateAd, useUpdateAppSettings, useUpdateDailyClueGame, useUpdateEvent, useUpdateEventInfo, useUpdateGoogleImportedMarkets, useUpdateMiniQuizGame, useUpdatePartner, useUpdatePost, useUpdateRelation, useUpdateSchool, useUpdateSubscriptionPlan, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, useVendorForm, useVendorInfoForm, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMenuFields, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
|
|
2910
|
+
export { ANDROID_URL, type AdFormData, type AdResource, type AdType, type AdminUpdateResourceType, type AppSettingsFormData, type AppSettingsType, type AssociateType, type BadgeBasename, type BadgeId, type BaseGameMap, type BaseGameType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageReaction, type ChatMessageReplyPreview, type ChatMessageSeen, type ChatMessageType, type ChatType, type CluiImageBasename, type CluiImageId, type ContactUsFormData, type CreateAdFormData, type CreateAppSettingsFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, 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_SHARE_OG_IMAGE, type DailyClueBaseGame, type DailyClueGameData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumBillingPeriod, EnumChatReportReason, EnumChatType, EnumEventDateStatus, EnumEventType, EnumFoodFlavor, EnumFoodType, EnumGameStatus, EnumGameType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPartnerType, EnumPaymentMethod, EnumPostContentType, EnumPostType, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumSubscriptionStatus, EnumUserLicence, EnumUserRole, EnumVendorType, EnumVerificationType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventListItemType, type EventStatusType, type EventType, type FormDateField, type FormField, type GameDate, type GameDocType, type GameHistory, type GameLeaderboard, type GamePlacement, type GamePlacementClue, type GameType, type GeocodeLocation, type GlobalGameData, type GoogleAddressComponent, type GoogleImportedMarket, IMAGE_EXTENSION, IOS_URL, type IconBasename, type IconId, type ImageObjectType, ImageTypeEnum, type LocationGeoType, type LocationType, type LoginFormData, type LogoBasename, type LogoId, type MarketingMaterialRequestInputType, type MiniQuizAnswer, type MiniQuizAnsweredQuestion, type MiniQuizBaseGame, type MiniQuizGameData, type MiniQuizQuestion, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, OG_DESCRIPTION_LINE_BREAK, type OptionItem, type OtherImagesBasename, type OtherImagesId, type OwnerType, POST_SHARE_RESOURCE_TYPES, PROMO_CODE_PREFIX, PUBLIC_SHARE_PATH_TYPES, type ParticipantType, type PartnerFormData, type PartnerType, type PaymentInfoType, type PlacePrediction, type PostContentData, type PostContentFormData, type PostContentGame, type PostContentImage, type PostContentList, type PostContentTextarea, type PostContentType, type PostContentVideo, type PostFileInput, type PostFormData, type PostShareResourceType, type PostType, type PosterAssetId, type PosterImageBasename, type PosterInputType, type PosterUsageType, type PromoCodeType, type PublicSharePathType, RELATION_SHARE_APPLICATION, RELATION_SHARE_INVITATION, RELATION_SHARE_RESOURCE_TYPES, RESOURCE_SHARE_TYPES, type RefundPolicy, type Region, type RegisterFormData, type RelationDate, type RelationSharePathType, type RelationShareResourceType, type RelationType, type ReportChatUser, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceActivityEntry, type ResourceActivityInputType, type ResourceActivityType, type ResourceByUser, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceDetails, type ResourceImageType, type ResourceShareType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, SCHOOL_MAX_STUDENT_COUNT, SCHOOL_MIN_STUDENT_COUNT, SHARE_APPLICATION_DEADLINE_PREFIX, SHARE_CALENDAR_ICON, SHARE_CATEGORIES_SECTION_HEADING, SHARE_CATEGORY_ICON, SHARE_CHECKMARK_ICON, SHARE_CLOCK_ICON, SHARE_COMPLIANCE_PREFIX, SHARE_DESCRIPTION_SECTION_BREAK, SHARE_DOLLAR_ICON, SHARE_FOOD_TRUCK_LINE, SHARE_INFO_ICON, SHARE_MARKET_DATES_SECTION_HEADING, SHARE_MORE_INFO_LINE, SHARE_PRICE_RANGE_PREFIX, SHARE_RAIN_OR_SHINE_LINE, SHARE_REQUIREMENTS_SECTION_HEADING, SHARE_RESOURCE_LABEL, SHARE_RULER_ICON, SHARE_SITE_URL, SHARE_STALL_SIZE_PREFIX, SHARE_TAGS_SECTION_HEADING, SHARE_TYPE_PATH_REGEX, type SchoolCampaignType, type SchoolFormData, type SchoolRegisteredUserType, type SchoolReturnType, type SchoolType, type ShareEventForInvitation, type ShareEventForPublic, type ShareEventInfoForInvitation, type ShareMessageFooterPlacement, type ShareResourceType, type ShareType, type ShareVendorForApplication, type ShareVendorForPublic, type ShareVendorInfoForApplication, type SocialMediaType, type StallType, type StripeSubscription, type Subcategory, type SubcategoryItems, type SubscriptionPlanData, type SubscriptionPlansResponse, type SubscriptionPricingData, type SubscriptionStatusData, type TermsAgreement, USER_STORAGE_KEY, type UnregisteredVendorFormData, type UnregisteredVendorInvitationType, type UnregisteredVendorType, type UseGetEventsByRegionOptions, type UserActivity, type UserActivityEvent, type UserFormData, type UserLicenceType, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorCalendarData, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorProductList, type VendorType, appendShareMoreInfoLine, availableCategories, availableRegionOptions, availableRegionTypes, availableTagTypes, badgeFiles, badgeIds, badges, buildApplicationShareDescription, buildFacebookShareQuote, buildInvitationShareDescription, buildPublicEventShareDescription, buildPublicVendorShareDescription, buildShareMessageSections, buildShareOgDescription, buildShareOgDescriptionFromSections, buildSharePagePath, buildShareUrl, capitalizeFirstLetter, categoryColors, cluemartSocialMedia, cluiFiles, cluiIds, cluiImages, companyContactFields, computeDailyClueState, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultLocation, defaultPartnerFormValues, defaultUnregisteredVendorFormValues, defaultVendorFormValues, defaultVendorInfoFormValues, emailField, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatCategoryLabel, formatDate, formatShareApplicationCategoriesSection, formatShareApplicationComplianceSection, formatShareApplicationPriceRangeLine, formatShareApplicationStallSizeLine, formatShareInvitationApplicationDeadlineLine, formatShareInvitationMarketDatesSection, formatShareInvitationRequirementsSection, formatShareIsFoodTrueLine, formatShareMarketDate, formatShareRainOrShineLine, formatShareStallLine, formatShareTagsSection, formatStallCapacityLabel, formatTimestamp, gameScreenIdentifierList, gameTypeToDisplayName, getCurrentAndFutureDates, globalDefaultValues, iconFiles, iconIds, icons, isFutureDatesBeforeThreshold, isIsoDateString, isPostShareResourceType, isRelationShareResourceType, joinShareDescriptionSections, joinShareOgDescriptionSections, licenseNiceNames, lightColors, loginFields, logoFiles, logoIds, logos, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeShareOgDescription, normalizeShareRouteId, normalizeShareText, normalizeUrl, nzStartOfDay, otherImages, otherImagesFiles, otherImagesIds, packagingOptions, partnerBasicInfoFields, paymentMethodOptions, posterFiles, posterIds, posters, priceUnits, producedIngOptions, productLabelGroups, profileFields, refundPolicyOptions, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, seededShuffle, shareMessageFooterPlacementForType, socialMediaFields, sortDatesChronologically, splitShareDescriptionSections, stallTypeOptions, statusOptions, tagOptions, timeFormat, toNZTime, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminPermanentlyDeleteResource, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useAppSettingsForm, useCancelSubscription, useContactUs, useContactUsForm, useCrawlGoogleMarkets, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePrivateChat, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateSchool, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteSchool, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useEventForm, useEventInfoForm, useGetAd, useGetAds, useGetAdsByRegion, useGetAppSettings, useGetChat, useGetChatSubscription, useGetChatsByRegion, useGetEvent, useGetEventByPlaceId, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetGame, useGetGameLeaderboard, useGetGames, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetPostsByType, useGetRelation, useGetRelationByEventAndVendor, useGetReportedChatUsers, useGetResourceActivity, useGetResourceConnections, useGetSchool, useGetSchools, useGetSubscriptionPlans, useGetSubscriptionStatus, useGetUnregisteredVendor, useGetUnregisteredVendors, useGetUnregisteredVendorsByInviterId, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserPartners, useGetUserResources, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLeaveGame, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkChatMessagesSeen, useMarkNotificationRead, usePartnerForm, usePostForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useReportChatUser, useRequestMarketingMaterial, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSchoolForm, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSelectStandardPackage, useSendChatMessage, useStartGame, useToggleChatMessageLike, useUnlinkUnregisteredVendorByInviterId, useUnregisteredVendorForm, useUpdateAd, useUpdateAppSettings, useUpdateDailyClueGame, useUpdateEvent, useUpdateEventInfo, useUpdateGoogleImportedMarkets, useUpdateMiniQuizGame, useUpdatePartner, useUpdatePost, useUpdateRelation, useUpdateSchool, useUpdateSubscriptionPlan, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, useVendorForm, useVendorInfoForm, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMenuFields, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
|
package/dist/index.d.ts
CHANGED
|
@@ -2627,89 +2627,49 @@ declare function useAppSettingsForm(data?: AppSettingsFormData): CreateAppSettin
|
|
|
2627
2627
|
|
|
2628
2628
|
declare function useSchoolForm(data?: SchoolFormData): CreateSchoolFormData;
|
|
2629
2629
|
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
};
|
|
2634
|
-
/** Minimal event fields used by invitation share copy (GraphQL share queries). */
|
|
2635
|
-
type ShareEventForInvitation = {
|
|
2636
|
-
dateTime: ShareEventDateTime[];
|
|
2637
|
-
description: string | null;
|
|
2638
|
-
location: {
|
|
2639
|
-
fullAddress: string;
|
|
2640
|
-
};
|
|
2630
|
+
/** Minimal event fields for public (market) share copy — matches in-app preview. */
|
|
2631
|
+
type ShareEventForPublic = {
|
|
2632
|
+
description?: string | null;
|
|
2641
2633
|
rainOrShine: boolean;
|
|
2642
2634
|
tags: string[];
|
|
2643
2635
|
};
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
name: string;
|
|
2648
|
-
}>;
|
|
2649
|
-
};
|
|
2650
|
-
/** Minimal vendor fields used by application share copy (GraphQL share queries). */
|
|
2651
|
-
type ShareVendorForApplication = {
|
|
2652
|
-
categories: ShareVendorCategory[];
|
|
2653
|
-
description: string | null;
|
|
2636
|
+
/** Minimal vendor fields for public (stallholder) share copy — matches in-app preview. */
|
|
2637
|
+
type ShareVendorForPublic = {
|
|
2638
|
+
description?: string | null;
|
|
2654
2639
|
foodTruck: boolean;
|
|
2655
2640
|
};
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
/**
|
|
2662
|
-
type
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
}>;
|
|
2668
|
-
requirements?: Array<{
|
|
2669
|
-
label: string;
|
|
2670
|
-
value: boolean;
|
|
2671
|
-
}> | null;
|
|
2672
|
-
};
|
|
2673
|
-
/** Minimal vendor info fields for application share copy (GraphQL share queries). */
|
|
2674
|
-
type ShareVendorInfoForApplication = {
|
|
2675
|
-
compliance?: {
|
|
2676
|
-
liabilityInsurance: boolean;
|
|
2677
|
-
foodBeverageLicense: boolean;
|
|
2678
|
-
} | null;
|
|
2679
|
-
product: {
|
|
2680
|
-
priceRange: {
|
|
2681
|
-
min: string;
|
|
2682
|
-
max: string;
|
|
2683
|
-
};
|
|
2684
|
-
};
|
|
2685
|
-
stallInfo: {
|
|
2686
|
-
size: {
|
|
2687
|
-
width: string;
|
|
2688
|
-
depth: string;
|
|
2689
|
-
};
|
|
2690
|
-
};
|
|
2691
|
-
};
|
|
2641
|
+
declare function buildPublicEventShareDescription(event: ShareEventForPublic): string;
|
|
2642
|
+
declare function buildPublicVendorShareDescription(vendor: ShareVendorForPublic): string;
|
|
2643
|
+
|
|
2644
|
+
/** Event fields used by invitation share copy — subset of {@link EventType}. */
|
|
2645
|
+
type ShareEventForInvitation = Pick<EventType, "dateTime" | "description" | "location" | "rainOrShine" | "tags">;
|
|
2646
|
+
/** Vendor fields used by application share copy — subset of {@link VendorType}. */
|
|
2647
|
+
type ShareVendorForApplication = Pick<VendorType, "categories" | "description" | "foodTruck">;
|
|
2648
|
+
/** Event info fields used by invitation share copy — subset of {@link EventInfoFormData}. */
|
|
2649
|
+
type ShareEventInfoForInvitation = Pick<EventInfoFormData, "applicationDeadlineHours" | "dateTime" | "requirements">;
|
|
2650
|
+
/** Vendor info fields used by application share copy — subset of {@link VendorInfoFormData}. */
|
|
2651
|
+
type ShareVendorInfoForApplication = Pick<VendorInfoFormData, "compliance" | "product" | "stallInfo">;
|
|
2692
2652
|
|
|
2693
2653
|
/** Formats event `startDate` (`DD-MM-YYYY`) for share copy — same as share preview UI. */
|
|
2694
2654
|
declare function formatShareMarketDate(dateStr: string): string;
|
|
2695
2655
|
declare function formatStallCapacityLabel(stallCapacity: number): string;
|
|
2696
|
-
declare function formatShareStallLine(stall:
|
|
2656
|
+
declare function formatShareStallLine(stall: StallType): string;
|
|
2697
2657
|
/** Nested market dates + per-date stall lines for invitation share copy. */
|
|
2698
2658
|
declare function formatShareInvitationMarketDatesSection(dateTime: ShareEventInfoForInvitation["dateTime"]): string;
|
|
2699
2659
|
declare function formatShareRainOrShineLine(rainOrShine: boolean): string | null;
|
|
2700
2660
|
declare function formatShareIsFoodTrueLine(foodTruck: boolean): string | null;
|
|
2701
2661
|
/** Bulleted requirements list for invitation share copy. */
|
|
2702
|
-
declare function formatShareInvitationRequirementsSection(
|
|
2703
|
-
declare function formatShareTagsSection(tags: string[]): string;
|
|
2662
|
+
declare function formatShareInvitationRequirementsSection(requirements: ShareEventInfoForInvitation["requirements"] | null): string | null;
|
|
2663
|
+
declare function formatShareTagsSection(tags: string[]): string | null;
|
|
2704
2664
|
/** Bulleted categories list for application share copy. */
|
|
2705
|
-
declare function formatShareApplicationCategoriesSection(
|
|
2665
|
+
declare function formatShareApplicationCategoriesSection(categories: ShareVendorForApplication["categories"]): string | null;
|
|
2706
2666
|
/** Stall dimensions line for application share copy. */
|
|
2707
2667
|
declare function formatShareApplicationStallSizeLine(size: {
|
|
2708
2668
|
width: string;
|
|
2709
2669
|
depth: string;
|
|
2710
2670
|
}): string;
|
|
2711
2671
|
/** Bulleted compliance list for application share copy. */
|
|
2712
|
-
declare function formatShareApplicationComplianceSection(
|
|
2672
|
+
declare function formatShareApplicationComplianceSection(compliance: ShareVendorInfoForApplication["compliance"]): string | null;
|
|
2713
2673
|
/** Price range line for application share copy. */
|
|
2714
2674
|
declare function formatShareApplicationPriceRangeLine(priceRange: {
|
|
2715
2675
|
min: string;
|
|
@@ -2734,7 +2694,7 @@ type RelationSharePathType = typeof RELATION_SHARE_INVITATION | typeof RELATION_
|
|
|
2734
2694
|
type ShareType = PublicSharePathType | RelationSharePathType;
|
|
2735
2695
|
/** Alternation for deep-link regexes — keep in sync with {@link ShareType}. */
|
|
2736
2696
|
declare const SHARE_TYPE_PATH_REGEX: string;
|
|
2737
|
-
declare function buildShareUrl(type: ShareType, id: string): string;
|
|
2697
|
+
declare function buildShareUrl(type: ShareType, id: string, utmMedium?: string): string;
|
|
2738
2698
|
|
|
2739
2699
|
declare const SHARE_SITE_URL = "https://cluemart.co.nz";
|
|
2740
2700
|
/** Calendar marker for invitation market-dates share copy (U+1F4C5 📅). */
|
|
@@ -2767,8 +2727,8 @@ declare const SHARE_PRICE_RANGE_PREFIX = "$ Price range:";
|
|
|
2767
2727
|
declare const SHARE_CLOCK_ICON = "\u23F0";
|
|
2768
2728
|
/** Prefix for the invitation application-deadline sentence (share text + OG section parsing). */
|
|
2769
2729
|
declare const SHARE_APPLICATION_DEADLINE_PREFIX = "\u23F0 Application deadline:";
|
|
2770
|
-
/**
|
|
2771
|
-
declare const SHARE_MORE_INFO_LINE = "
|
|
2730
|
+
/** First line on share sheet messages, Facebook SDK quote, and `og:description`. */
|
|
2731
|
+
declare const SHARE_MORE_INFO_LINE = "Shared from ClueMart";
|
|
2772
2732
|
declare const DEFAULT_SHARE_OG_IMAGE = "https://cluemart.co.nz/assets/logo.webp";
|
|
2773
2733
|
declare const RESOURCE_SHARE_TYPES: readonly ["market", "stallholder", "partner"];
|
|
2774
2734
|
type ResourceShareType = (typeof RESOURCE_SHARE_TYPES)[number];
|
|
@@ -2778,7 +2738,7 @@ type ShareResourceType = ResourceShareType | PostShareResourceType | RelationSha
|
|
|
2778
2738
|
declare const SHARE_RESOURCE_LABEL: Record<ShareResourceType, string>;
|
|
2779
2739
|
declare function isPostShareResourceType(resourceType: ShareResourceType): resourceType is PostShareResourceType;
|
|
2780
2740
|
|
|
2781
|
-
declare function formatCategoryLabel(category:
|
|
2741
|
+
declare function formatCategoryLabel(category: Category): string;
|
|
2782
2742
|
|
|
2783
2743
|
/** Blank line between share sections — title, address, dates, URL, etc. */
|
|
2784
2744
|
declare const SHARE_DESCRIPTION_SECTION_BREAK = "\n\n";
|
|
@@ -2790,17 +2750,17 @@ declare const OG_DESCRIPTION_LINE_BREAK = " ";
|
|
|
2790
2750
|
/** Joins OG description sections for Facebook link cards (and Twitter). */
|
|
2791
2751
|
declare function joinShareOgDescriptionSections(sections: ReadonlyArray<string | false | null | undefined>): string;
|
|
2792
2752
|
declare function joinShareDescriptionSections(sections: ReadonlyArray<string | false | null | undefined>): string;
|
|
2793
|
-
/**
|
|
2753
|
+
/** Prepends the standard share branding line when assembling display text. */
|
|
2794
2754
|
declare function appendShareMoreInfoLine(description: string): string;
|
|
2795
2755
|
|
|
2796
2756
|
/** Trims share text and collapses spaces per line; preserves `\n\n` section breaks. */
|
|
2797
2757
|
declare function normalizeShareText(value: string | null | undefined): string;
|
|
2798
|
-
/**
|
|
2799
|
-
type ShareMessageFooterPlacement = "
|
|
2758
|
+
/** Branding line placement — first so Facebook truncation does not drop it. */
|
|
2759
|
+
type ShareMessageFooterPlacement = "before-body";
|
|
2800
2760
|
declare function shareMessageFooterPlacementForType(_shareType?: ShareResourceType): ShareMessageFooterPlacement;
|
|
2801
2761
|
/**
|
|
2802
2762
|
* Ordered sections for share-sheet / Facebook SDK quote text:
|
|
2803
|
-
* title → description (full body or post caption)
|
|
2763
|
+
* {@link SHARE_MORE_INFO_LINE} → title → description (full body or post caption).
|
|
2804
2764
|
*/
|
|
2805
2765
|
declare function buildShareMessageSections(input: {
|
|
2806
2766
|
title?: string | null;
|
|
@@ -2947,4 +2907,4 @@ declare const ANDROID_URL = "https://play.google.com/store/apps/details?id=com.t
|
|
|
2947
2907
|
declare const SCHOOL_MIN_STUDENT_COUNT = 300;
|
|
2948
2908
|
declare const SCHOOL_MAX_STUDENT_COUNT = 0;
|
|
2949
2909
|
|
|
2950
|
-
export { ANDROID_URL, type AdFormData, type AdResource, type AdType, type AdminUpdateResourceType, type AppSettingsFormData, type AppSettingsType, type AssociateType, type BadgeBasename, type BadgeId, type BaseGameMap, type BaseGameType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageReaction, type ChatMessageReplyPreview, type ChatMessageSeen, type ChatMessageType, type ChatType, type CluiImageBasename, type CluiImageId, type ContactUsFormData, type CreateAdFormData, type CreateAppSettingsFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, 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_SHARE_OG_IMAGE, type DailyClueBaseGame, type DailyClueGameData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumBillingPeriod, EnumChatReportReason, EnumChatType, EnumEventDateStatus, EnumEventType, EnumFoodFlavor, EnumFoodType, EnumGameStatus, EnumGameType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPartnerType, EnumPaymentMethod, EnumPostContentType, EnumPostType, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumSubscriptionStatus, EnumUserLicence, EnumUserRole, EnumVendorType, EnumVerificationType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventListItemType, type EventStatusType, type EventType, type FormDateField, type FormField, type GameDate, type GameDocType, type GameHistory, type GameLeaderboard, type GamePlacement, type GamePlacementClue, type GameType, type GeocodeLocation, type GlobalGameData, type GoogleAddressComponent, type GoogleImportedMarket, IMAGE_EXTENSION, IOS_URL, type IconBasename, type IconId, type ImageObjectType, ImageTypeEnum, type LocationGeoType, type LocationType, type LoginFormData, type LogoBasename, type LogoId, type MarketingMaterialRequestInputType, type MiniQuizAnswer, type MiniQuizAnsweredQuestion, type MiniQuizBaseGame, type MiniQuizGameData, type MiniQuizQuestion, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, OG_DESCRIPTION_LINE_BREAK, type OptionItem, type OtherImagesBasename, type OtherImagesId, type OwnerType, POST_SHARE_RESOURCE_TYPES, PROMO_CODE_PREFIX, PUBLIC_SHARE_PATH_TYPES, type ParticipantType, type PartnerFormData, type PartnerType, type PaymentInfoType, type PlacePrediction, type PostContentData, type PostContentFormData, type PostContentGame, type PostContentImage, type PostContentList, type PostContentTextarea, type PostContentType, type PostContentVideo, type PostFileInput, type PostFormData, type PostShareResourceType, type PostType, type PosterAssetId, type PosterImageBasename, type PosterInputType, type PosterUsageType, type PromoCodeType, type PublicSharePathType, RELATION_SHARE_APPLICATION, RELATION_SHARE_INVITATION, RELATION_SHARE_RESOURCE_TYPES, RESOURCE_SHARE_TYPES, type RefundPolicy, type Region, type RegisterFormData, type RelationDate, type RelationSharePathType, type RelationShareResourceType, type RelationType, type ReportChatUser, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceActivityEntry, type ResourceActivityInputType, type ResourceActivityType, type ResourceByUser, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceDetails, type ResourceImageType, type ResourceShareType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, SCHOOL_MAX_STUDENT_COUNT, SCHOOL_MIN_STUDENT_COUNT, SHARE_APPLICATION_DEADLINE_PREFIX, SHARE_CALENDAR_ICON, SHARE_CATEGORIES_SECTION_HEADING, SHARE_CATEGORY_ICON, SHARE_CHECKMARK_ICON, SHARE_CLOCK_ICON, SHARE_COMPLIANCE_PREFIX, SHARE_DESCRIPTION_SECTION_BREAK, SHARE_DOLLAR_ICON, SHARE_FOOD_TRUCK_LINE, SHARE_INFO_ICON, SHARE_MARKET_DATES_SECTION_HEADING, SHARE_MORE_INFO_LINE, SHARE_PRICE_RANGE_PREFIX, SHARE_RAIN_OR_SHINE_LINE, SHARE_REQUIREMENTS_SECTION_HEADING, SHARE_RESOURCE_LABEL, SHARE_RULER_ICON, SHARE_SITE_URL, SHARE_STALL_SIZE_PREFIX, SHARE_TAGS_SECTION_HEADING, SHARE_TYPE_PATH_REGEX, type SchoolCampaignType, type SchoolFormData, type SchoolRegisteredUserType, type SchoolReturnType, type SchoolType, type ShareEventDateTime, type ShareEventForInvitation, type ShareEventInfoForInvitation, type ShareMessageFooterPlacement, type ShareResourceType, type ShareStallType, type ShareType, type ShareVendorCategory, type ShareVendorForApplication, type ShareVendorInfoForApplication, type SocialMediaType, type StallType, type StripeSubscription, type Subcategory, type SubcategoryItems, type SubscriptionPlanData, type SubscriptionPlansResponse, type SubscriptionPricingData, type SubscriptionStatusData, type TermsAgreement, USER_STORAGE_KEY, type UnregisteredVendorFormData, type UnregisteredVendorInvitationType, type UnregisteredVendorType, type UseGetEventsByRegionOptions, type UserActivity, type UserActivityEvent, type UserFormData, type UserLicenceType, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorCalendarData, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorProductList, type VendorType, appendShareMoreInfoLine, availableCategories, availableRegionOptions, availableRegionTypes, availableTagTypes, badgeFiles, badgeIds, badges, buildApplicationShareDescription, buildFacebookShareQuote, buildInvitationShareDescription, buildShareMessageSections, buildShareOgDescription, buildShareOgDescriptionFromSections, buildSharePagePath, buildShareUrl, capitalizeFirstLetter, categoryColors, cluemartSocialMedia, cluiFiles, cluiIds, cluiImages, companyContactFields, computeDailyClueState, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultLocation, defaultPartnerFormValues, defaultUnregisteredVendorFormValues, defaultVendorFormValues, defaultVendorInfoFormValues, emailField, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatCategoryLabel, formatDate, formatShareApplicationCategoriesSection, formatShareApplicationComplianceSection, formatShareApplicationPriceRangeLine, formatShareApplicationStallSizeLine, formatShareInvitationApplicationDeadlineLine, formatShareInvitationMarketDatesSection, formatShareInvitationRequirementsSection, formatShareIsFoodTrueLine, formatShareMarketDate, formatShareRainOrShineLine, formatShareStallLine, formatShareTagsSection, formatStallCapacityLabel, formatTimestamp, gameScreenIdentifierList, gameTypeToDisplayName, getCurrentAndFutureDates, globalDefaultValues, iconFiles, iconIds, icons, isFutureDatesBeforeThreshold, isIsoDateString, isPostShareResourceType, isRelationShareResourceType, joinShareDescriptionSections, joinShareOgDescriptionSections, licenseNiceNames, lightColors, loginFields, logoFiles, logoIds, logos, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeShareOgDescription, normalizeShareRouteId, normalizeShareText, normalizeUrl, nzStartOfDay, otherImages, otherImagesFiles, otherImagesIds, packagingOptions, partnerBasicInfoFields, paymentMethodOptions, posterFiles, posterIds, posters, priceUnits, producedIngOptions, productLabelGroups, profileFields, refundPolicyOptions, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, seededShuffle, shareMessageFooterPlacementForType, socialMediaFields, sortDatesChronologically, splitShareDescriptionSections, stallTypeOptions, statusOptions, tagOptions, timeFormat, toNZTime, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminPermanentlyDeleteResource, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useAppSettingsForm, useCancelSubscription, useContactUs, useContactUsForm, useCrawlGoogleMarkets, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePrivateChat, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateSchool, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteSchool, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useEventForm, useEventInfoForm, useGetAd, useGetAds, useGetAdsByRegion, useGetAppSettings, useGetChat, useGetChatSubscription, useGetChatsByRegion, useGetEvent, useGetEventByPlaceId, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetGame, useGetGameLeaderboard, useGetGames, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetPostsByType, useGetRelation, useGetRelationByEventAndVendor, useGetReportedChatUsers, useGetResourceActivity, useGetResourceConnections, useGetSchool, useGetSchools, useGetSubscriptionPlans, useGetSubscriptionStatus, useGetUnregisteredVendor, useGetUnregisteredVendors, useGetUnregisteredVendorsByInviterId, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserPartners, useGetUserResources, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLeaveGame, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkChatMessagesSeen, useMarkNotificationRead, usePartnerForm, usePostForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useReportChatUser, useRequestMarketingMaterial, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSchoolForm, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSelectStandardPackage, useSendChatMessage, useStartGame, useToggleChatMessageLike, useUnlinkUnregisteredVendorByInviterId, useUnregisteredVendorForm, useUpdateAd, useUpdateAppSettings, useUpdateDailyClueGame, useUpdateEvent, useUpdateEventInfo, useUpdateGoogleImportedMarkets, useUpdateMiniQuizGame, useUpdatePartner, useUpdatePost, useUpdateRelation, useUpdateSchool, useUpdateSubscriptionPlan, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, useVendorForm, useVendorInfoForm, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMenuFields, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
|
|
2910
|
+
export { ANDROID_URL, type AdFormData, type AdResource, type AdType, type AdminUpdateResourceType, type AppSettingsFormData, type AppSettingsType, type AssociateType, type BadgeBasename, type BadgeId, type BaseGameMap, type BaseGameType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageReaction, type ChatMessageReplyPreview, type ChatMessageSeen, type ChatMessageType, type ChatType, type CluiImageBasename, type CluiImageId, type ContactUsFormData, type CreateAdFormData, type CreateAppSettingsFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, 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_SHARE_OG_IMAGE, type DailyClueBaseGame, type DailyClueGameData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumBillingPeriod, EnumChatReportReason, EnumChatType, EnumEventDateStatus, EnumEventType, EnumFoodFlavor, EnumFoodType, EnumGameStatus, EnumGameType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPartnerType, EnumPaymentMethod, EnumPostContentType, EnumPostType, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumSubscriptionStatus, EnumUserLicence, EnumUserRole, EnumVendorType, EnumVerificationType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventListItemType, type EventStatusType, type EventType, type FormDateField, type FormField, type GameDate, type GameDocType, type GameHistory, type GameLeaderboard, type GamePlacement, type GamePlacementClue, type GameType, type GeocodeLocation, type GlobalGameData, type GoogleAddressComponent, type GoogleImportedMarket, IMAGE_EXTENSION, IOS_URL, type IconBasename, type IconId, type ImageObjectType, ImageTypeEnum, type LocationGeoType, type LocationType, type LoginFormData, type LogoBasename, type LogoId, type MarketingMaterialRequestInputType, type MiniQuizAnswer, type MiniQuizAnsweredQuestion, type MiniQuizBaseGame, type MiniQuizGameData, type MiniQuizQuestion, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, OG_DESCRIPTION_LINE_BREAK, type OptionItem, type OtherImagesBasename, type OtherImagesId, type OwnerType, POST_SHARE_RESOURCE_TYPES, PROMO_CODE_PREFIX, PUBLIC_SHARE_PATH_TYPES, type ParticipantType, type PartnerFormData, type PartnerType, type PaymentInfoType, type PlacePrediction, type PostContentData, type PostContentFormData, type PostContentGame, type PostContentImage, type PostContentList, type PostContentTextarea, type PostContentType, type PostContentVideo, type PostFileInput, type PostFormData, type PostShareResourceType, type PostType, type PosterAssetId, type PosterImageBasename, type PosterInputType, type PosterUsageType, type PromoCodeType, type PublicSharePathType, RELATION_SHARE_APPLICATION, RELATION_SHARE_INVITATION, RELATION_SHARE_RESOURCE_TYPES, RESOURCE_SHARE_TYPES, type RefundPolicy, type Region, type RegisterFormData, type RelationDate, type RelationSharePathType, type RelationShareResourceType, type RelationType, type ReportChatUser, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceActivityEntry, type ResourceActivityInputType, type ResourceActivityType, type ResourceByUser, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceDetails, type ResourceImageType, type ResourceShareType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, SCHOOL_MAX_STUDENT_COUNT, SCHOOL_MIN_STUDENT_COUNT, SHARE_APPLICATION_DEADLINE_PREFIX, SHARE_CALENDAR_ICON, SHARE_CATEGORIES_SECTION_HEADING, SHARE_CATEGORY_ICON, SHARE_CHECKMARK_ICON, SHARE_CLOCK_ICON, SHARE_COMPLIANCE_PREFIX, SHARE_DESCRIPTION_SECTION_BREAK, SHARE_DOLLAR_ICON, SHARE_FOOD_TRUCK_LINE, SHARE_INFO_ICON, SHARE_MARKET_DATES_SECTION_HEADING, SHARE_MORE_INFO_LINE, SHARE_PRICE_RANGE_PREFIX, SHARE_RAIN_OR_SHINE_LINE, SHARE_REQUIREMENTS_SECTION_HEADING, SHARE_RESOURCE_LABEL, SHARE_RULER_ICON, SHARE_SITE_URL, SHARE_STALL_SIZE_PREFIX, SHARE_TAGS_SECTION_HEADING, SHARE_TYPE_PATH_REGEX, type SchoolCampaignType, type SchoolFormData, type SchoolRegisteredUserType, type SchoolReturnType, type SchoolType, type ShareEventForInvitation, type ShareEventForPublic, type ShareEventInfoForInvitation, type ShareMessageFooterPlacement, type ShareResourceType, type ShareType, type ShareVendorForApplication, type ShareVendorForPublic, type ShareVendorInfoForApplication, type SocialMediaType, type StallType, type StripeSubscription, type Subcategory, type SubcategoryItems, type SubscriptionPlanData, type SubscriptionPlansResponse, type SubscriptionPricingData, type SubscriptionStatusData, type TermsAgreement, USER_STORAGE_KEY, type UnregisteredVendorFormData, type UnregisteredVendorInvitationType, type UnregisteredVendorType, type UseGetEventsByRegionOptions, type UserActivity, type UserActivityEvent, type UserFormData, type UserLicenceType, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorCalendarData, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorProductList, type VendorType, appendShareMoreInfoLine, availableCategories, availableRegionOptions, availableRegionTypes, availableTagTypes, badgeFiles, badgeIds, badges, buildApplicationShareDescription, buildFacebookShareQuote, buildInvitationShareDescription, buildPublicEventShareDescription, buildPublicVendorShareDescription, buildShareMessageSections, buildShareOgDescription, buildShareOgDescriptionFromSections, buildSharePagePath, buildShareUrl, capitalizeFirstLetter, categoryColors, cluemartSocialMedia, cluiFiles, cluiIds, cluiImages, companyContactFields, computeDailyClueState, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultLocation, defaultPartnerFormValues, defaultUnregisteredVendorFormValues, defaultVendorFormValues, defaultVendorInfoFormValues, emailField, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatCategoryLabel, formatDate, formatShareApplicationCategoriesSection, formatShareApplicationComplianceSection, formatShareApplicationPriceRangeLine, formatShareApplicationStallSizeLine, formatShareInvitationApplicationDeadlineLine, formatShareInvitationMarketDatesSection, formatShareInvitationRequirementsSection, formatShareIsFoodTrueLine, formatShareMarketDate, formatShareRainOrShineLine, formatShareStallLine, formatShareTagsSection, formatStallCapacityLabel, formatTimestamp, gameScreenIdentifierList, gameTypeToDisplayName, getCurrentAndFutureDates, globalDefaultValues, iconFiles, iconIds, icons, isFutureDatesBeforeThreshold, isIsoDateString, isPostShareResourceType, isRelationShareResourceType, joinShareDescriptionSections, joinShareOgDescriptionSections, licenseNiceNames, lightColors, loginFields, logoFiles, logoIds, logos, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeShareOgDescription, normalizeShareRouteId, normalizeShareText, normalizeUrl, nzStartOfDay, otherImages, otherImagesFiles, otherImagesIds, packagingOptions, partnerBasicInfoFields, paymentMethodOptions, posterFiles, posterIds, posters, priceUnits, producedIngOptions, productLabelGroups, profileFields, refundPolicyOptions, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, seededShuffle, shareMessageFooterPlacementForType, socialMediaFields, sortDatesChronologically, splitShareDescriptionSections, stallTypeOptions, statusOptions, tagOptions, timeFormat, toNZTime, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminPermanentlyDeleteResource, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useAppSettingsForm, useCancelSubscription, useContactUs, useContactUsForm, useCrawlGoogleMarkets, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePrivateChat, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateSchool, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteSchool, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useEventForm, useEventInfoForm, useGetAd, useGetAds, useGetAdsByRegion, useGetAppSettings, useGetChat, useGetChatSubscription, useGetChatsByRegion, useGetEvent, useGetEventByPlaceId, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetGame, useGetGameLeaderboard, useGetGames, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetPostsByType, useGetRelation, useGetRelationByEventAndVendor, useGetReportedChatUsers, useGetResourceActivity, useGetResourceConnections, useGetSchool, useGetSchools, useGetSubscriptionPlans, useGetSubscriptionStatus, useGetUnregisteredVendor, useGetUnregisteredVendors, useGetUnregisteredVendorsByInviterId, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserPartners, useGetUserResources, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLeaveGame, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkChatMessagesSeen, useMarkNotificationRead, usePartnerForm, usePostForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useReportChatUser, useRequestMarketingMaterial, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSchoolForm, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSelectStandardPackage, useSendChatMessage, useStartGame, useToggleChatMessageLike, useUnlinkUnregisteredVendorByInviterId, useUnregisteredVendorForm, useUpdateAd, useUpdateAppSettings, useUpdateDailyClueGame, useUpdateEvent, useUpdateEventInfo, useUpdateGoogleImportedMarkets, useUpdateMiniQuizGame, useUpdatePartner, useUpdatePost, useUpdateRelation, useUpdateSchool, useUpdateSubscriptionPlan, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, useVendorForm, useVendorInfoForm, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMenuFields, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
|
package/dist/index.mjs
CHANGED
|
@@ -8502,7 +8502,7 @@ var SHARE_DOLLAR_ICON = "$";
|
|
|
8502
8502
|
var SHARE_PRICE_RANGE_PREFIX = `${SHARE_DOLLAR_ICON} Price range:`;
|
|
8503
8503
|
var SHARE_CLOCK_ICON = "\u23F0";
|
|
8504
8504
|
var SHARE_APPLICATION_DEADLINE_PREFIX = `${SHARE_CLOCK_ICON} Application deadline:`;
|
|
8505
|
-
var SHARE_MORE_INFO_LINE = "
|
|
8505
|
+
var SHARE_MORE_INFO_LINE = "Shared from ClueMart";
|
|
8506
8506
|
var DEFAULT_SHARE_OG_IMAGE = `${SHARE_SITE_URL}/assets/logo.webp`;
|
|
8507
8507
|
var RESOURCE_SHARE_TYPES = [
|
|
8508
8508
|
"market",
|
|
@@ -8550,13 +8550,13 @@ function joinShareDescriptionSections(sections) {
|
|
|
8550
8550
|
}
|
|
8551
8551
|
function appendShareMoreInfoLine(description) {
|
|
8552
8552
|
const trimmed = description.trim();
|
|
8553
|
-
if (trimmed.
|
|
8553
|
+
if (trimmed.startsWith(SHARE_MORE_INFO_LINE)) {
|
|
8554
8554
|
return trimmed;
|
|
8555
8555
|
}
|
|
8556
8556
|
if (trimmed.length === 0) {
|
|
8557
8557
|
return SHARE_MORE_INFO_LINE;
|
|
8558
8558
|
}
|
|
8559
|
-
return joinShareDescriptionSections([
|
|
8559
|
+
return joinShareDescriptionSections([SHARE_MORE_INFO_LINE, trimmed]);
|
|
8560
8560
|
}
|
|
8561
8561
|
|
|
8562
8562
|
// src/sharing/buildRelationShareDescription.ts
|
|
@@ -8584,26 +8584,41 @@ function formatShareRainOrShineLine(rainOrShine) {
|
|
|
8584
8584
|
function formatShareIsFoodTrueLine(foodTruck) {
|
|
8585
8585
|
return foodTruck ? SHARE_FOOD_TRUCK_LINE : null;
|
|
8586
8586
|
}
|
|
8587
|
-
function formatShareInvitationRequirementsSection(
|
|
8588
|
-
const bullets =
|
|
8587
|
+
function formatShareInvitationRequirementsSection(requirements) {
|
|
8588
|
+
const bullets = (requirements ?? []).filter((item) => item.value).map((item) => item.label.trim()).filter((label) => label.length > 0).map((label) => `- ${label}`);
|
|
8589
|
+
if (bullets.length === 0) {
|
|
8590
|
+
return null;
|
|
8591
|
+
}
|
|
8589
8592
|
return `${SHARE_REQUIREMENTS_SECTION_HEADING}
|
|
8590
8593
|
${bullets.join("\n")}`;
|
|
8591
8594
|
}
|
|
8592
8595
|
function formatShareTagsSection(tags) {
|
|
8593
|
-
const bullets = tags.map((tag) => `- ${tag}`);
|
|
8596
|
+
const bullets = tags.map((tag) => tag.trim()).filter((tag) => tag.length > 0).map((tag) => `- ${tag}`);
|
|
8597
|
+
if (bullets.length === 0) {
|
|
8598
|
+
return null;
|
|
8599
|
+
}
|
|
8594
8600
|
return `${SHARE_TAGS_SECTION_HEADING}
|
|
8595
8601
|
${bullets.join("\n")}`;
|
|
8596
8602
|
}
|
|
8597
|
-
function formatShareApplicationCategoriesSection(
|
|
8598
|
-
const bullets =
|
|
8603
|
+
function formatShareApplicationCategoriesSection(categories) {
|
|
8604
|
+
const bullets = categories.map((category) => formatCategoryLabel(category).trim()).filter((label) => label.length > 0).map((label) => `- ${label}`);
|
|
8605
|
+
if (bullets.length === 0) {
|
|
8606
|
+
return null;
|
|
8607
|
+
}
|
|
8599
8608
|
return `${SHARE_CATEGORIES_SECTION_HEADING}
|
|
8600
8609
|
${bullets.join("\n")}`;
|
|
8601
8610
|
}
|
|
8602
8611
|
function formatShareApplicationStallSizeLine(size) {
|
|
8603
8612
|
return `${SHARE_STALL_SIZE_PREFIX} ${size.width}m \xD7 ${size.depth}m`;
|
|
8604
8613
|
}
|
|
8605
|
-
function formatShareApplicationComplianceSection(
|
|
8606
|
-
const bullets =
|
|
8614
|
+
function formatShareApplicationComplianceSection(compliance) {
|
|
8615
|
+
const bullets = [
|
|
8616
|
+
compliance?.liabilityInsurance && "Liability insurance",
|
|
8617
|
+
compliance?.foodBeverageLicense && "Food & beverage licence"
|
|
8618
|
+
].filter((label) => Boolean(label)).map((label) => `- ${label}`);
|
|
8619
|
+
if (bullets.length === 0) {
|
|
8620
|
+
return null;
|
|
8621
|
+
}
|
|
8607
8622
|
return `${SHARE_COMPLIANCE_PREFIX}
|
|
8608
8623
|
${bullets.join("\n")}`;
|
|
8609
8624
|
}
|
|
@@ -8618,7 +8633,6 @@ function buildInvitationShareDescription(event, eventInfo2) {
|
|
|
8618
8633
|
if (!eventInfo2 || stallTypes2.length === 0) {
|
|
8619
8634
|
return event.description?.trim() || "";
|
|
8620
8635
|
}
|
|
8621
|
-
const requirementLabels = (eventInfo2.requirements ?? []).filter((item) => item.value).map((item) => item.label);
|
|
8622
8636
|
const sections = [
|
|
8623
8637
|
event.location.fullAddress,
|
|
8624
8638
|
formatShareRainOrShineLine(event.rainOrShine),
|
|
@@ -8627,34 +8641,41 @@ function buildInvitationShareDescription(event, eventInfo2) {
|
|
|
8627
8641
|
formatShareInvitationApplicationDeadlineLine(
|
|
8628
8642
|
eventInfo2.applicationDeadlineHours
|
|
8629
8643
|
),
|
|
8630
|
-
|
|
8644
|
+
formatShareInvitationRequirementsSection(eventInfo2.requirements)
|
|
8631
8645
|
];
|
|
8632
8646
|
return joinShareDescriptionSections(sections);
|
|
8633
8647
|
}
|
|
8634
8648
|
function buildApplicationShareDescription(vendor, vendorInfo) {
|
|
8635
|
-
const categoryLabels = vendor.categories.map(
|
|
8636
|
-
(category) => formatCategoryLabel(category)
|
|
8637
|
-
);
|
|
8638
8649
|
if (!vendorInfo) {
|
|
8639
8650
|
return vendor.description?.trim() || "";
|
|
8640
8651
|
}
|
|
8641
|
-
const compliance = vendorInfo.compliance;
|
|
8642
|
-
const complianceLabels = [
|
|
8643
|
-
compliance?.liabilityInsurance && "Liability insurance",
|
|
8644
|
-
compliance?.foodBeverageLicense && "Food & beverage licence"
|
|
8645
|
-
].filter((label) => Boolean(label));
|
|
8646
8652
|
const profileDescription = vendor.description?.trim();
|
|
8647
8653
|
const sections = [
|
|
8648
8654
|
formatShareIsFoodTrueLine(vendor.foodTruck),
|
|
8649
|
-
|
|
8655
|
+
formatShareApplicationCategoriesSection(vendor.categories),
|
|
8650
8656
|
formatShareApplicationStallSizeLine(vendorInfo.stallInfo.size),
|
|
8651
|
-
|
|
8657
|
+
formatShareApplicationComplianceSection(vendorInfo.compliance),
|
|
8652
8658
|
formatShareApplicationPriceRangeLine(vendorInfo.product.priceRange),
|
|
8653
8659
|
profileDescription
|
|
8654
8660
|
];
|
|
8655
8661
|
return joinShareDescriptionSections(sections);
|
|
8656
8662
|
}
|
|
8657
8663
|
|
|
8664
|
+
// src/sharing/buildPublicShareDescription.ts
|
|
8665
|
+
function buildPublicEventShareDescription(event) {
|
|
8666
|
+
return joinShareDescriptionSections([
|
|
8667
|
+
formatShareRainOrShineLine(event.rainOrShine),
|
|
8668
|
+
formatShareTagsSection(event.tags),
|
|
8669
|
+
event.description?.trim()
|
|
8670
|
+
]);
|
|
8671
|
+
}
|
|
8672
|
+
function buildPublicVendorShareDescription(vendor) {
|
|
8673
|
+
return joinShareDescriptionSections([
|
|
8674
|
+
formatShareIsFoodTrueLine(vendor.foodTruck),
|
|
8675
|
+
vendor.description?.trim()
|
|
8676
|
+
]);
|
|
8677
|
+
}
|
|
8678
|
+
|
|
8658
8679
|
// src/sharing/buildShareUrl.ts
|
|
8659
8680
|
var PUBLIC_SHARE_PATH_TYPES = [
|
|
8660
8681
|
...RESOURCE_SHARE_TYPES,
|
|
@@ -8665,8 +8686,8 @@ var SHARE_TYPE_PATH_REGEX = [
|
|
|
8665
8686
|
RELATION_SHARE_APPLICATION,
|
|
8666
8687
|
RELATION_SHARE_INVITATION
|
|
8667
8688
|
].join("|");
|
|
8668
|
-
function buildShareUrl(type, id) {
|
|
8669
|
-
return `${SHARE_SITE_URL}/share/${type}/${encodeURIComponent(id)}`;
|
|
8689
|
+
function buildShareUrl(type, id, utmMedium = "app") {
|
|
8690
|
+
return `${SHARE_SITE_URL}/share/${type}/${encodeURIComponent(id)}?utm_source=share&utm_medium=${utmMedium}&utm_campaign=${type}`;
|
|
8670
8691
|
}
|
|
8671
8692
|
|
|
8672
8693
|
// src/sharing/normalizeShareDescription.ts
|
|
@@ -8684,12 +8705,12 @@ function normalizeShareText(value) {
|
|
|
8684
8705
|
}).join("\n").replace(/\n{3,}/g, "\n\n");
|
|
8685
8706
|
}
|
|
8686
8707
|
function shareMessageFooterPlacementForType(_shareType) {
|
|
8687
|
-
return "
|
|
8708
|
+
return "before-body";
|
|
8688
8709
|
}
|
|
8689
8710
|
function buildShareMessageSections(input) {
|
|
8690
8711
|
const title = normalizeShareText(input.title);
|
|
8691
8712
|
const description = normalizeShareText(input.description);
|
|
8692
|
-
return [title, description
|
|
8713
|
+
return [SHARE_MORE_INFO_LINE, title, description].filter(
|
|
8693
8714
|
(section) => section.length > 0
|
|
8694
8715
|
);
|
|
8695
8716
|
}
|
|
@@ -8908,6 +8929,8 @@ export {
|
|
|
8908
8929
|
buildApplicationShareDescription,
|
|
8909
8930
|
buildFacebookShareQuote,
|
|
8910
8931
|
buildInvitationShareDescription,
|
|
8932
|
+
buildPublicEventShareDescription,
|
|
8933
|
+
buildPublicVendorShareDescription,
|
|
8911
8934
|
buildShareMessageSections,
|
|
8912
8935
|
buildShareOgDescription,
|
|
8913
8936
|
buildShareOgDescriptionFromSections,
|