@timardex/cluemart-shared 1.4.25 → 1.4.27
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-S6G7DNEV.mjs → chunk-XUYZ2LYW.mjs} +6 -10
- package/dist/chunk-XUYZ2LYW.mjs.map +1 -0
- package/dist/formFields/index.cjs +32 -0
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.d.mts +3 -1
- package/dist/formFields/index.d.ts +3 -1
- package/dist/formFields/index.mjs +31 -1
- package/dist/formFields/index.mjs.map +1 -1
- package/dist/graphql/index.cjs +2 -2
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.mjs +2 -2
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +9 -0
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.mjs +10 -1
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +49 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +5 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.mjs +45 -10
- package/dist/index.mjs.map +1 -1
- package/dist/utils/index.cjs +6 -9
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +4 -3
- package/dist/utils/index.d.ts +4 -3
- package/dist/utils/index.mjs +5 -3
- package/package.json +1 -1
- package/dist/chunk-S6G7DNEV.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1223,6 +1223,8 @@ declare const eventInfo: FormField[];
|
|
|
1223
1223
|
declare const eventInfoPaymentInfo: FormField[];
|
|
1224
1224
|
declare const requirementsOptions: Requirement[];
|
|
1225
1225
|
declare const stallTypeOptions: StallType[];
|
|
1226
|
+
declare const stallholderCancellationOptions: OptionItem[];
|
|
1227
|
+
declare const eventCancellationOptions: OptionItem[];
|
|
1226
1228
|
|
|
1227
1229
|
declare const loginFields: FormField[];
|
|
1228
1230
|
declare const registerFields: FormField[];
|
|
@@ -2389,7 +2391,6 @@ declare const isFutureDatesBeforeThreshold: (date: {
|
|
|
2389
2391
|
startTime: string;
|
|
2390
2392
|
}, minHoursFromNow: number) => boolean;
|
|
2391
2393
|
declare const formatTimestamp: (timestamp: string) => string;
|
|
2392
|
-
declare const defaultRegion: Region;
|
|
2393
2394
|
declare const removeTypename: (obj: any) => any;
|
|
2394
2395
|
/**
|
|
2395
2396
|
* Truncate text to a specified length and append ellipsis if necessary.
|
|
@@ -2424,5 +2425,7 @@ declare const paymentMethodOptions: OptionItem[];
|
|
|
2424
2425
|
declare function normalizeUrl(url: string): string;
|
|
2425
2426
|
declare const licenseNiceNames: Record<EnumUserLicence, string>;
|
|
2426
2427
|
declare const cluemartSocialMedia: SocialMediaType[];
|
|
2428
|
+
declare const IOS_URL = "https://apps.apple.com/nz/app/cluemart/id6747251008";
|
|
2429
|
+
declare const ANDROID_URL = "https://play.google.com/store/apps/details?id=com.timardex.cluemart";
|
|
2427
2430
|
|
|
2428
|
-
export { type AdFormData, type AdType, type AdminUpdateResourceType, type AppSettingsFormData, type AppSettingsType, type AssociateType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageReaction, type ChatMessageReplyPreview, type ChatMessageSeen, type ChatMessageType, type ChatType, 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 CreateTesterFormData, type CreateUnregisteredVendorFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumBillingPeriod, EnumChatReportReason, EnumChatType, EnumEventDateStatus, EnumEventType, EnumFoodFlavor, EnumFoodType, 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 GeocodeLocation, type GoogleAddressComponent, type GoogleImportedMarket, type ImageObjectType, ImageTypeEnum, type LocationGeoType, type LocationType, type LoginFormData, type MapMultiLocation, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, OrganizedMarketCount, OrganizerMarketFrequency, type OwnerType, type ParticipantType, type PartnerFormData, type PartnerType, type PaymentInfoType, type PlacePrediction, type PostContentCover, type PostContentData, type PostContentFormData, type PostContentImage, type PostContentList, type PostContentTextarea, type PostContentType, type PostContentVideo, type PostFileInput, type PostFormData, type PostType, type PosterInputType, type PosterUsageType, type Region, type RegisterFormData, type RelationDate, type RelationType, type ReportChatUser, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceActivityEntry, type ResourceActivityInputType, type ResourceActivityType, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceImageType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SocialMediaType, type StallType, type StripeSubscription, type Subcategory, type SubcategoryItems, type SubscriptionPlanData, type SubscriptionPlansResponse, type SubscriptionPricingData, type SubscriptionStatusData, type TermsAgreement, type TesterEvent, type TesterFormData, type TesterType, type TesterVendor, USER_STORAGE_KEY, type UnregisteredVendorFormData, type UnregisteredVendorInvitationType, type UnregisteredVendorType, type UserActivity, type UserActivityEvent, type UserFormData, type UserLicenceType, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorLocation, type VendorMenuType, VendorSellingFrequency, type VendorType, availableCategories, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, cluemartSocialMedia, companyContactFields, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultPartnerFormValues,
|
|
2431
|
+
export { ANDROID_URL, type AdFormData, type AdType, type AdminUpdateResourceType, type AppSettingsFormData, type AppSettingsType, type AssociateType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageReaction, type ChatMessageReplyPreview, type ChatMessageSeen, type ChatMessageType, type ChatType, 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 CreateTesterFormData, type CreateUnregisteredVendorFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumBillingPeriod, EnumChatReportReason, EnumChatType, EnumEventDateStatus, EnumEventType, EnumFoodFlavor, EnumFoodType, 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 GeocodeLocation, type GoogleAddressComponent, type GoogleImportedMarket, IOS_URL, type ImageObjectType, ImageTypeEnum, type LocationGeoType, type LocationType, type LoginFormData, type MapMultiLocation, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, OrganizedMarketCount, OrganizerMarketFrequency, type OwnerType, type ParticipantType, type PartnerFormData, type PartnerType, type PaymentInfoType, type PlacePrediction, type PostContentCover, type PostContentData, type PostContentFormData, type PostContentImage, type PostContentList, type PostContentTextarea, type PostContentType, type PostContentVideo, type PostFileInput, type PostFormData, type PostType, type PosterInputType, type PosterUsageType, type Region, type RegisterFormData, type RelationDate, type RelationType, type ReportChatUser, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceActivityEntry, type ResourceActivityInputType, type ResourceActivityType, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceImageType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SocialMediaType, type StallType, type StripeSubscription, type Subcategory, type SubcategoryItems, type SubscriptionPlanData, type SubscriptionPlansResponse, type SubscriptionPricingData, type SubscriptionStatusData, type TermsAgreement, type TesterEvent, type TesterFormData, type TesterType, type TesterVendor, USER_STORAGE_KEY, type UnregisteredVendorFormData, type UnregisteredVendorInvitationType, type UnregisteredVendorType, type UserActivity, type UserActivityEvent, type UserFormData, type UserLicenceType, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorLocation, type VendorMenuType, VendorSellingFrequency, type VendorType, availableCategories, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, cluemartSocialMedia, companyContactFields, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultPartnerFormValues, defaultUnregisteredVendorFormValues, defaultVendorFormValues, defaultVendorInfoFormValues, emailField, eventBasicInfoFields, eventCancellationOptions, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, licenseNiceNames, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, packagingOptions, partnerBasicInfoFields, paymentMethodOptions, producedIngOptions, productLabelGroups, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, stallholderCancellationOptions, statusOptions, tagOptions, testersFields, timeFormat, toNZTime, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminResendTesterVerificationEmail, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useAdminUpdateTester, useAppSettingsForm, useCancelSubscription, useContactUs, useContactUsForm, useCrawlGoogleMarkets, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteTester, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useEventForm, useEventInfoForm, useGetAd, useGetAds, useGetAdsByRegion, useGetAppSettings, useGetChat, useGetChatSubscription, useGetChatsByRegion, useGetEvent, useGetEventByPlaceId, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetPostsByType, useGetRelation, useGetRelationByEventAndVendor, useGetReportedChatUsers, useGetResourceActivity, useGetResourceConnections, useGetSubscriptionPlans, useGetSubscriptionStatus, useGetTester, useGetTesters, useGetUnregisteredVendor, useGetUnregisteredVendors, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserPartners, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkChatMessagesSeen, useMarkNotificationRead, usePartnerForm, usePostForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useReportChatUser, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSelectStandardPackage, useSendChatMessage, useTesterForm, useToggleChatMessageLike, useUpdateAd, useUpdateAppSettings, useUpdateEvent, useUpdateEventInfo, useUpdatePartner, useUpdatePost, useUpdateRelation, useUpdateSubscriptionPlan, useUpdateTester, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, useVendorForm, useVendorInfoForm, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMenuFields, vendorMultiLocation, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
|
package/dist/index.d.ts
CHANGED
|
@@ -1223,6 +1223,8 @@ declare const eventInfo: FormField[];
|
|
|
1223
1223
|
declare const eventInfoPaymentInfo: FormField[];
|
|
1224
1224
|
declare const requirementsOptions: Requirement[];
|
|
1225
1225
|
declare const stallTypeOptions: StallType[];
|
|
1226
|
+
declare const stallholderCancellationOptions: OptionItem[];
|
|
1227
|
+
declare const eventCancellationOptions: OptionItem[];
|
|
1226
1228
|
|
|
1227
1229
|
declare const loginFields: FormField[];
|
|
1228
1230
|
declare const registerFields: FormField[];
|
|
@@ -2389,7 +2391,6 @@ declare const isFutureDatesBeforeThreshold: (date: {
|
|
|
2389
2391
|
startTime: string;
|
|
2390
2392
|
}, minHoursFromNow: number) => boolean;
|
|
2391
2393
|
declare const formatTimestamp: (timestamp: string) => string;
|
|
2392
|
-
declare const defaultRegion: Region;
|
|
2393
2394
|
declare const removeTypename: (obj: any) => any;
|
|
2394
2395
|
/**
|
|
2395
2396
|
* Truncate text to a specified length and append ellipsis if necessary.
|
|
@@ -2424,5 +2425,7 @@ declare const paymentMethodOptions: OptionItem[];
|
|
|
2424
2425
|
declare function normalizeUrl(url: string): string;
|
|
2425
2426
|
declare const licenseNiceNames: Record<EnumUserLicence, string>;
|
|
2426
2427
|
declare const cluemartSocialMedia: SocialMediaType[];
|
|
2428
|
+
declare const IOS_URL = "https://apps.apple.com/nz/app/cluemart/id6747251008";
|
|
2429
|
+
declare const ANDROID_URL = "https://play.google.com/store/apps/details?id=com.timardex.cluemart";
|
|
2427
2430
|
|
|
2428
|
-
export { type AdFormData, type AdType, type AdminUpdateResourceType, type AppSettingsFormData, type AppSettingsType, type AssociateType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageReaction, type ChatMessageReplyPreview, type ChatMessageSeen, type ChatMessageType, type ChatType, 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 CreateTesterFormData, type CreateUnregisteredVendorFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumBillingPeriod, EnumChatReportReason, EnumChatType, EnumEventDateStatus, EnumEventType, EnumFoodFlavor, EnumFoodType, 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 GeocodeLocation, type GoogleAddressComponent, type GoogleImportedMarket, type ImageObjectType, ImageTypeEnum, type LocationGeoType, type LocationType, type LoginFormData, type MapMultiLocation, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, OrganizedMarketCount, OrganizerMarketFrequency, type OwnerType, type ParticipantType, type PartnerFormData, type PartnerType, type PaymentInfoType, type PlacePrediction, type PostContentCover, type PostContentData, type PostContentFormData, type PostContentImage, type PostContentList, type PostContentTextarea, type PostContentType, type PostContentVideo, type PostFileInput, type PostFormData, type PostType, type PosterInputType, type PosterUsageType, type Region, type RegisterFormData, type RelationDate, type RelationType, type ReportChatUser, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceActivityEntry, type ResourceActivityInputType, type ResourceActivityType, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceImageType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SocialMediaType, type StallType, type StripeSubscription, type Subcategory, type SubcategoryItems, type SubscriptionPlanData, type SubscriptionPlansResponse, type SubscriptionPricingData, type SubscriptionStatusData, type TermsAgreement, type TesterEvent, type TesterFormData, type TesterType, type TesterVendor, USER_STORAGE_KEY, type UnregisteredVendorFormData, type UnregisteredVendorInvitationType, type UnregisteredVendorType, type UserActivity, type UserActivityEvent, type UserFormData, type UserLicenceType, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorLocation, type VendorMenuType, VendorSellingFrequency, type VendorType, availableCategories, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, cluemartSocialMedia, companyContactFields, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultPartnerFormValues,
|
|
2431
|
+
export { ANDROID_URL, type AdFormData, type AdType, type AdminUpdateResourceType, type AppSettingsFormData, type AppSettingsType, type AssociateType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageReaction, type ChatMessageReplyPreview, type ChatMessageSeen, type ChatMessageType, type ChatType, 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 CreateTesterFormData, type CreateUnregisteredVendorFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumBillingPeriod, EnumChatReportReason, EnumChatType, EnumEventDateStatus, EnumEventType, EnumFoodFlavor, EnumFoodType, 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 GeocodeLocation, type GoogleAddressComponent, type GoogleImportedMarket, IOS_URL, type ImageObjectType, ImageTypeEnum, type LocationGeoType, type LocationType, type LoginFormData, type MapMultiLocation, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, OrganizedMarketCount, OrganizerMarketFrequency, type OwnerType, type ParticipantType, type PartnerFormData, type PartnerType, type PaymentInfoType, type PlacePrediction, type PostContentCover, type PostContentData, type PostContentFormData, type PostContentImage, type PostContentList, type PostContentTextarea, type PostContentType, type PostContentVideo, type PostFileInput, type PostFormData, type PostType, type PosterInputType, type PosterUsageType, type Region, type RegisterFormData, type RelationDate, type RelationType, type ReportChatUser, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceActivityEntry, type ResourceActivityInputType, type ResourceActivityType, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceImageType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SocialMediaType, type StallType, type StripeSubscription, type Subcategory, type SubcategoryItems, type SubscriptionPlanData, type SubscriptionPlansResponse, type SubscriptionPricingData, type SubscriptionStatusData, type TermsAgreement, type TesterEvent, type TesterFormData, type TesterType, type TesterVendor, USER_STORAGE_KEY, type UnregisteredVendorFormData, type UnregisteredVendorInvitationType, type UnregisteredVendorType, type UserActivity, type UserActivityEvent, type UserFormData, type UserLicenceType, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorLocation, type VendorMenuType, VendorSellingFrequency, type VendorType, availableCategories, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, cluemartSocialMedia, companyContactFields, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultPartnerFormValues, defaultUnregisteredVendorFormValues, defaultVendorFormValues, defaultVendorInfoFormValues, emailField, eventBasicInfoFields, eventCancellationOptions, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, licenseNiceNames, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, packagingOptions, partnerBasicInfoFields, paymentMethodOptions, producedIngOptions, productLabelGroups, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, stallholderCancellationOptions, statusOptions, tagOptions, testersFields, timeFormat, toNZTime, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminResendTesterVerificationEmail, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useAdminUpdateTester, useAppSettingsForm, useCancelSubscription, useContactUs, useContactUsForm, useCrawlGoogleMarkets, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteTester, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useEventForm, useEventInfoForm, useGetAd, useGetAds, useGetAdsByRegion, useGetAppSettings, useGetChat, useGetChatSubscription, useGetChatsByRegion, useGetEvent, useGetEventByPlaceId, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetPostsByType, useGetRelation, useGetRelationByEventAndVendor, useGetReportedChatUsers, useGetResourceActivity, useGetResourceConnections, useGetSubscriptionPlans, useGetSubscriptionStatus, useGetTester, useGetTesters, useGetUnregisteredVendor, useGetUnregisteredVendors, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserPartners, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkChatMessagesSeen, useMarkNotificationRead, usePartnerForm, usePostForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useReportChatUser, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSelectStandardPackage, useSendChatMessage, useTesterForm, useToggleChatMessageLike, useUpdateAd, useUpdateAppSettings, useUpdateEvent, useUpdateEventInfo, useUpdatePartner, useUpdatePost, useUpdateRelation, useUpdateSubscriptionPlan, useUpdateTester, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, useVendorForm, useVendorInfoForm, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMenuFields, vendorMultiLocation, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
|
package/dist/index.mjs
CHANGED
|
@@ -471,13 +471,6 @@ var formatTimestamp = (timestamp) => {
|
|
|
471
471
|
const formattedTime = dayjs(timestamp).tz("Pacific/Auckland").format(timeFormat);
|
|
472
472
|
return formatDate(formattedDate, "date");
|
|
473
473
|
};
|
|
474
|
-
var defaultRegion = {
|
|
475
|
-
latitude: -36.8624942,
|
|
476
|
-
// Default: New Zealand
|
|
477
|
-
latitudeDelta: 5,
|
|
478
|
-
longitude: 174.7450494,
|
|
479
|
-
longitudeDelta: 5
|
|
480
|
-
};
|
|
481
474
|
var isIsoDateString = (value) => {
|
|
482
475
|
return typeof value === "string" && !isNaN(Date.parse(value));
|
|
483
476
|
};
|
|
@@ -569,6 +562,8 @@ var cluemartSocialMedia = [
|
|
|
569
562
|
name: "youtube" /* YOUTUBE */
|
|
570
563
|
}
|
|
571
564
|
];
|
|
565
|
+
var IOS_URL = "https://apps.apple.com/nz/app/cluemart/id6747251008";
|
|
566
|
+
var ANDROID_URL = "https://play.google.com/store/apps/details?id=com.timardex.cluemart";
|
|
572
567
|
|
|
573
568
|
// src/formFields/vendor/vendorInfo.ts
|
|
574
569
|
var vendorElectricity = {
|
|
@@ -985,6 +980,34 @@ var stallTypeOptions = stallTypes.map((type) => ({
|
|
|
985
980
|
price: 0,
|
|
986
981
|
stallCapacity: 0
|
|
987
982
|
}));
|
|
983
|
+
var stallholderCancellationOptions = [
|
|
984
|
+
{
|
|
985
|
+
label: "Full refund if cancelled 30+ days before the event.",
|
|
986
|
+
value: "full_refund_30_days"
|
|
987
|
+
},
|
|
988
|
+
{
|
|
989
|
+
label: "50% refund if cancelled 14\u201329 days before the event.",
|
|
990
|
+
value: "half_refund_14_29_days"
|
|
991
|
+
},
|
|
992
|
+
{
|
|
993
|
+
label: "No refund if cancelled less than 14 days before the event.",
|
|
994
|
+
value: "no_refund_less_than_14_days"
|
|
995
|
+
}
|
|
996
|
+
];
|
|
997
|
+
var eventCancellationOptions = [
|
|
998
|
+
{
|
|
999
|
+
label: "Full refund if the event is cancelled by the organiser.",
|
|
1000
|
+
value: "event_full_refund"
|
|
1001
|
+
},
|
|
1002
|
+
{
|
|
1003
|
+
label: "Credit towards a future event if cancelled by the organiser.",
|
|
1004
|
+
value: "event_credit_only"
|
|
1005
|
+
},
|
|
1006
|
+
{
|
|
1007
|
+
label: "Refund only in cases of force majeure (e.g., natural disasters, government restrictions).",
|
|
1008
|
+
value: "event_force_majeure_only"
|
|
1009
|
+
}
|
|
1010
|
+
];
|
|
988
1011
|
|
|
989
1012
|
// src/formFields/global.ts
|
|
990
1013
|
var emailField = {
|
|
@@ -3289,8 +3312,8 @@ var GET_CHATS_BY_REGION = gql7`
|
|
|
3289
3312
|
${CHAT_FIELDS_FRAGMENT}
|
|
3290
3313
|
`;
|
|
3291
3314
|
var CHAT_REPORT_FIELDS_FRAGMENT = gql7`
|
|
3292
|
-
fragment ChatReportFields on
|
|
3293
|
-
|
|
3315
|
+
fragment ChatReportFields on ReportChatUserType {
|
|
3316
|
+
_id
|
|
3294
3317
|
chatId
|
|
3295
3318
|
createdAt
|
|
3296
3319
|
reason {
|
|
@@ -6160,6 +6183,11 @@ var eventInfoSchema = yup2.object().shape({
|
|
|
6160
6183
|
}
|
|
6161
6184
|
),
|
|
6162
6185
|
paymentInfo: yup2.array().of(paymentInfoSchema).min(1, "At least one payment method is required").required("Payment info is required")
|
|
6186
|
+
/* refundPolicy: yup
|
|
6187
|
+
.array()
|
|
6188
|
+
.of(yup.string().trim().required("Refund policy item cannot be empty"))
|
|
6189
|
+
.min(1, "At least one refund policy item is required")
|
|
6190
|
+
.required("Refund policy is required"), */
|
|
6163
6191
|
});
|
|
6164
6192
|
|
|
6165
6193
|
// src/yupSchema/vendor.ts
|
|
@@ -6627,6 +6655,7 @@ var defaultEventInfoFormValues = {
|
|
|
6627
6655
|
// e.g., 2 hours before event opens
|
|
6628
6656
|
paymentDueHours: 12,
|
|
6629
6657
|
paymentInfo: [],
|
|
6658
|
+
//refundPolicy: [],
|
|
6630
6659
|
requirements: []
|
|
6631
6660
|
};
|
|
6632
6661
|
var defaultVendorFormValues = {
|
|
@@ -6975,6 +7004,7 @@ function useEventInfoForm(data) {
|
|
|
6975
7004
|
packInTime: data.packInTime,
|
|
6976
7005
|
paymentDueHours: data.paymentDueHours,
|
|
6977
7006
|
paymentInfo: data.paymentInfo,
|
|
7007
|
+
//refundPolicy: data.refundPolicy,
|
|
6978
7008
|
requirements: data.requirements
|
|
6979
7009
|
});
|
|
6980
7010
|
} else {
|
|
@@ -6989,6 +7019,7 @@ function useEventInfoForm(data) {
|
|
|
6989
7019
|
packInTime,
|
|
6990
7020
|
paymentDueHours,
|
|
6991
7021
|
paymentInfo,
|
|
7022
|
+
//refundPolicy,
|
|
6992
7023
|
requirements
|
|
6993
7024
|
} = getValues();
|
|
6994
7025
|
return {
|
|
@@ -7001,6 +7032,7 @@ function useEventInfoForm(data) {
|
|
|
7001
7032
|
packInTime,
|
|
7002
7033
|
paymentDueHours,
|
|
7003
7034
|
paymentInfo,
|
|
7035
|
+
//refundPolicy,
|
|
7004
7036
|
requirements
|
|
7005
7037
|
},
|
|
7006
7038
|
formState,
|
|
@@ -7794,6 +7826,7 @@ var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
|
|
|
7794
7826
|
return EnumActivity2;
|
|
7795
7827
|
})(EnumActivity || {});
|
|
7796
7828
|
export {
|
|
7829
|
+
ANDROID_URL,
|
|
7797
7830
|
EnumActivity,
|
|
7798
7831
|
EnumAdShowOn,
|
|
7799
7832
|
EnumAdStatus,
|
|
@@ -7823,6 +7856,7 @@ export {
|
|
|
7823
7856
|
EnumUserRole,
|
|
7824
7857
|
EnumVendorType,
|
|
7825
7858
|
EnumVerificationType,
|
|
7859
|
+
IOS_URL,
|
|
7826
7860
|
ImageTypeEnum,
|
|
7827
7861
|
OrganizedMarketCount,
|
|
7828
7862
|
OrganizerMarketFrequency,
|
|
@@ -7846,12 +7880,12 @@ export {
|
|
|
7846
7880
|
defaultEventFormValues,
|
|
7847
7881
|
defaultEventInfoFormValues,
|
|
7848
7882
|
defaultPartnerFormValues,
|
|
7849
|
-
defaultRegion,
|
|
7850
7883
|
defaultUnregisteredVendorFormValues,
|
|
7851
7884
|
defaultVendorFormValues,
|
|
7852
7885
|
defaultVendorInfoFormValues,
|
|
7853
7886
|
emailField,
|
|
7854
7887
|
eventBasicInfoFields,
|
|
7888
|
+
eventCancellationOptions,
|
|
7855
7889
|
eventEndDateFields,
|
|
7856
7890
|
eventInfo,
|
|
7857
7891
|
eventInfoPaymentInfo,
|
|
@@ -7883,6 +7917,7 @@ export {
|
|
|
7883
7917
|
socialMediaFields,
|
|
7884
7918
|
sortDatesChronologically,
|
|
7885
7919
|
stallTypeOptions,
|
|
7920
|
+
stallholderCancellationOptions,
|
|
7886
7921
|
statusOptions,
|
|
7887
7922
|
tagOptions,
|
|
7888
7923
|
testersFields,
|