@timardex/cluemart-shared 1.4.36 → 1.4.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{auth-HbXNMRIh.d.mts → auth-DUBji9Ck.d.mts} +1 -1
- package/dist/{auth-B_WKc68t.d.ts → auth-DlfrrfXs.d.ts} +1 -1
- package/dist/{chunk-JKQ4GVSJ.mjs → chunk-M35ZHJPQ.mjs} +31 -1
- package/dist/chunk-M35ZHJPQ.mjs.map +1 -0
- package/dist/{chunk-3XCNU5MU.mjs → chunk-PZUKAO6K.mjs} +5 -1
- package/dist/chunk-PZUKAO6K.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 +4 -2
- package/dist/formFields/index.d.ts +4 -2
- package/dist/formFields/index.mjs +5 -1
- package/dist/{global-DgA-5e-O.d.ts → global-B07TrIzO.d.ts} +8 -4
- package/dist/{global-V7YaFCJR.d.mts → global-DgdaY28O.d.mts} +8 -4
- package/dist/graphql/index.cjs +4 -0
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +5 -13
- package/dist/graphql/index.d.ts +5 -13
- package/dist/graphql/index.mjs +1 -1
- package/dist/hooks/index.cjs +57 -8
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +3 -3
- package/dist/hooks/index.d.ts +3 -3
- package/dist/hooks/index.mjs +55 -10
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +89 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +13 -15
- package/dist/index.d.ts +13 -15
- package/dist/index.mjs +87 -8
- package/dist/index.mjs.map +1 -1
- package/dist/{post-DklGTzDA.d.mts → post-75KGk2Nr.d.mts} +1 -1
- package/dist/{post-vmmaQ9XX.d.ts → post-Bt32gXMn.d.ts} +1 -1
- package/dist/{resourceActivities-BtWfy0kk.d.mts → resourceActivities-B2Yp2GKt.d.mts} +1 -1
- package/dist/{resourceActivities-fgwhRy0j.d.ts → resourceActivities-PNcgmHGK.d.ts} +1 -1
- package/dist/types/index.d.mts +5 -5
- package/dist/types/index.d.ts +5 -5
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/chunk-3XCNU5MU.mjs.map +0 -1
- package/dist/chunk-JKQ4GVSJ.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -266,6 +266,10 @@ interface EventInfoFormData {
|
|
|
266
266
|
packInTime: number;
|
|
267
267
|
paymentDueHours: number;
|
|
268
268
|
paymentInfo: PaymentInfoType[];
|
|
269
|
+
refundPolicy: {
|
|
270
|
+
cancelledByOrganiser: string[];
|
|
271
|
+
cancelledByVendor: string[];
|
|
272
|
+
};
|
|
269
273
|
requirements?: Requirement[];
|
|
270
274
|
}
|
|
271
275
|
interface EventFormData extends BaseResourceTypeFormData {
|
|
@@ -367,8 +371,8 @@ type VendorInfoFormData = {
|
|
|
367
371
|
foodFlavors: EnumFoodFlavor[];
|
|
368
372
|
packaging: string[];
|
|
369
373
|
priceRange: {
|
|
370
|
-
max:
|
|
371
|
-
min:
|
|
374
|
+
max: string;
|
|
375
|
+
min: string;
|
|
372
376
|
};
|
|
373
377
|
producedIn: string[];
|
|
374
378
|
};
|
|
@@ -379,8 +383,8 @@ type VendorInfoFormData = {
|
|
|
379
383
|
};
|
|
380
384
|
stallInfo: {
|
|
381
385
|
size: {
|
|
382
|
-
depth:
|
|
383
|
-
width:
|
|
386
|
+
depth: string;
|
|
387
|
+
width: string;
|
|
384
388
|
};
|
|
385
389
|
};
|
|
386
390
|
vendorId: string;
|
|
@@ -1225,6 +1229,8 @@ declare const eventInfo: FormField[];
|
|
|
1225
1229
|
declare const eventInfoPaymentInfo: FormField[];
|
|
1226
1230
|
declare const requirementsOptions: Requirement[];
|
|
1227
1231
|
declare const stallTypeOptions: StallType[];
|
|
1232
|
+
declare const stallholderCancellationOptions: OptionItem[];
|
|
1233
|
+
declare const eventCancellationOptions: OptionItem[];
|
|
1228
1234
|
|
|
1229
1235
|
declare const loginFields: FormField[];
|
|
1230
1236
|
declare const registerFields: FormField[];
|
|
@@ -1618,17 +1624,9 @@ declare const useCreatePushToken: () => {
|
|
|
1618
1624
|
|
|
1619
1625
|
declare const useCreateRelation: () => {
|
|
1620
1626
|
createRelation: (options?: _apollo_client.MutationFunctionOptions<{
|
|
1621
|
-
createRelation:
|
|
1622
|
-
eventId: string;
|
|
1623
|
-
vendorId: string;
|
|
1624
|
-
lastUpdateBy: EnumResourceType;
|
|
1625
|
-
};
|
|
1627
|
+
createRelation: RelationType;
|
|
1626
1628
|
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
1627
|
-
createRelation:
|
|
1628
|
-
eventId: string;
|
|
1629
|
-
vendorId: string;
|
|
1630
|
-
lastUpdateBy: EnumResourceType;
|
|
1631
|
-
};
|
|
1629
|
+
createRelation: RelationType;
|
|
1632
1630
|
}>>;
|
|
1633
1631
|
error: _apollo_client.ApolloError | undefined;
|
|
1634
1632
|
loading: boolean;
|
|
@@ -2428,4 +2426,4 @@ declare const cluemartSocialMedia: SocialMediaType[];
|
|
|
2428
2426
|
declare const IOS_URL = "https://apps.apple.com/nz/app/cluemart/id6747251008";
|
|
2429
2427
|
declare const ANDROID_URL = "https://play.google.com/store/apps/details?id=com.timardex.cluemart";
|
|
2430
2428
|
|
|
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 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, 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, 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 };
|
|
2429
|
+
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 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
|
@@ -266,6 +266,10 @@ interface EventInfoFormData {
|
|
|
266
266
|
packInTime: number;
|
|
267
267
|
paymentDueHours: number;
|
|
268
268
|
paymentInfo: PaymentInfoType[];
|
|
269
|
+
refundPolicy: {
|
|
270
|
+
cancelledByOrganiser: string[];
|
|
271
|
+
cancelledByVendor: string[];
|
|
272
|
+
};
|
|
269
273
|
requirements?: Requirement[];
|
|
270
274
|
}
|
|
271
275
|
interface EventFormData extends BaseResourceTypeFormData {
|
|
@@ -367,8 +371,8 @@ type VendorInfoFormData = {
|
|
|
367
371
|
foodFlavors: EnumFoodFlavor[];
|
|
368
372
|
packaging: string[];
|
|
369
373
|
priceRange: {
|
|
370
|
-
max:
|
|
371
|
-
min:
|
|
374
|
+
max: string;
|
|
375
|
+
min: string;
|
|
372
376
|
};
|
|
373
377
|
producedIn: string[];
|
|
374
378
|
};
|
|
@@ -379,8 +383,8 @@ type VendorInfoFormData = {
|
|
|
379
383
|
};
|
|
380
384
|
stallInfo: {
|
|
381
385
|
size: {
|
|
382
|
-
depth:
|
|
383
|
-
width:
|
|
386
|
+
depth: string;
|
|
387
|
+
width: string;
|
|
384
388
|
};
|
|
385
389
|
};
|
|
386
390
|
vendorId: string;
|
|
@@ -1225,6 +1229,8 @@ declare const eventInfo: FormField[];
|
|
|
1225
1229
|
declare const eventInfoPaymentInfo: FormField[];
|
|
1226
1230
|
declare const requirementsOptions: Requirement[];
|
|
1227
1231
|
declare const stallTypeOptions: StallType[];
|
|
1232
|
+
declare const stallholderCancellationOptions: OptionItem[];
|
|
1233
|
+
declare const eventCancellationOptions: OptionItem[];
|
|
1228
1234
|
|
|
1229
1235
|
declare const loginFields: FormField[];
|
|
1230
1236
|
declare const registerFields: FormField[];
|
|
@@ -1618,17 +1624,9 @@ declare const useCreatePushToken: () => {
|
|
|
1618
1624
|
|
|
1619
1625
|
declare const useCreateRelation: () => {
|
|
1620
1626
|
createRelation: (options?: _apollo_client.MutationFunctionOptions<{
|
|
1621
|
-
createRelation:
|
|
1622
|
-
eventId: string;
|
|
1623
|
-
vendorId: string;
|
|
1624
|
-
lastUpdateBy: EnumResourceType;
|
|
1625
|
-
};
|
|
1627
|
+
createRelation: RelationType;
|
|
1626
1628
|
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
1627
|
-
createRelation:
|
|
1628
|
-
eventId: string;
|
|
1629
|
-
vendorId: string;
|
|
1630
|
-
lastUpdateBy: EnumResourceType;
|
|
1631
|
-
};
|
|
1629
|
+
createRelation: RelationType;
|
|
1632
1630
|
}>>;
|
|
1633
1631
|
error: _apollo_client.ApolloError | undefined;
|
|
1634
1632
|
loading: boolean;
|
|
@@ -2428,4 +2426,4 @@ declare const cluemartSocialMedia: SocialMediaType[];
|
|
|
2428
2426
|
declare const IOS_URL = "https://apps.apple.com/nz/app/cluemart/id6747251008";
|
|
2429
2427
|
declare const ANDROID_URL = "https://play.google.com/store/apps/details?id=com.timardex.cluemart";
|
|
2430
2428
|
|
|
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 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, 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, 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 };
|
|
2429
|
+
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 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
|
@@ -980,6 +980,34 @@ var stallTypeOptions = stallTypes.map((type) => ({
|
|
|
980
980
|
price: 0,
|
|
981
981
|
stallCapacity: 0
|
|
982
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
|
+
];
|
|
983
1011
|
|
|
984
1012
|
// src/formFields/global.ts
|
|
985
1013
|
var emailField = {
|
|
@@ -2550,6 +2578,10 @@ var EVENT_INFO = gql3`
|
|
|
2550
2578
|
link
|
|
2551
2579
|
paymentMethod
|
|
2552
2580
|
}
|
|
2581
|
+
refundPolicy {
|
|
2582
|
+
cancelledByOrganiser
|
|
2583
|
+
cancelledByVendor
|
|
2584
|
+
}
|
|
2553
2585
|
requirements {
|
|
2554
2586
|
category
|
|
2555
2587
|
label
|
|
@@ -6160,7 +6192,17 @@ var eventInfoSchema = yup2.object().shape({
|
|
|
6160
6192
|
return value < applicationDeadlineHours;
|
|
6161
6193
|
}
|
|
6162
6194
|
),
|
|
6163
|
-
paymentInfo: yup2.array().of(paymentInfoSchema).min(1, "At least one payment method is required").required("Payment info is required")
|
|
6195
|
+
paymentInfo: yup2.array().of(paymentInfoSchema).min(1, "At least one payment method is required").required("Payment info is required"),
|
|
6196
|
+
refundPolicy: yup2.object({
|
|
6197
|
+
cancelledByOrganiser: yup2.array().of(yup2.string().defined()).min(
|
|
6198
|
+
1,
|
|
6199
|
+
"At least one refund policy for cancellations by organiser is required"
|
|
6200
|
+
).required("Refund policy for cancellations by organiser is required"),
|
|
6201
|
+
cancelledByVendor: yup2.array().of(yup2.string().defined()).min(
|
|
6202
|
+
1,
|
|
6203
|
+
"At least one refund policy for cancellations by vendor is required"
|
|
6204
|
+
).required("Refund policy for cancellations by vendor is required")
|
|
6205
|
+
})
|
|
6164
6206
|
});
|
|
6165
6207
|
|
|
6166
6208
|
// src/yupSchema/vendor.ts
|
|
@@ -6216,15 +6258,27 @@ var vendorInfoSchema = yup3.object().shape({
|
|
|
6216
6258
|
).min(1, "Food flavors list must contain at least one item").required("Food flavors are required"),
|
|
6217
6259
|
packaging: yup3.array().of(yup3.string().defined()).min(1, "Packaging list must contain at least one item").required("Packaging is required"),
|
|
6218
6260
|
priceRange: yup3.object().shape({
|
|
6219
|
-
max: yup3.
|
|
6261
|
+
max: yup3.string().required("Max price is required").test(
|
|
6262
|
+
"is-number",
|
|
6263
|
+
"Max price must be a valid number",
|
|
6264
|
+
(value) => value !== void 0 && value !== "" && !isNaN(Number(value))
|
|
6265
|
+
).test(
|
|
6220
6266
|
"is-greater",
|
|
6221
6267
|
"Max price must be greater than or equal to Min price",
|
|
6222
6268
|
function(max) {
|
|
6223
6269
|
const { min } = this.parent;
|
|
6224
|
-
|
|
6270
|
+
if (!max || !min) return true;
|
|
6271
|
+
const maxNum = Number(max);
|
|
6272
|
+
const minNum = Number(min);
|
|
6273
|
+
if (isNaN(maxNum) || isNaN(minNum)) return true;
|
|
6274
|
+
return maxNum >= minNum;
|
|
6225
6275
|
}
|
|
6226
6276
|
),
|
|
6227
|
-
min: yup3.
|
|
6277
|
+
min: yup3.string().required("Min price is required").test(
|
|
6278
|
+
"is-number",
|
|
6279
|
+
"Min price must be a valid number",
|
|
6280
|
+
(value) => value !== void 0 && value !== "" && !isNaN(Number(value))
|
|
6281
|
+
)
|
|
6228
6282
|
}),
|
|
6229
6283
|
producedIn: yup3.array().of(yup3.string().defined()).min(1, "Produced in list must contain at least one item").required("Produced in is required")
|
|
6230
6284
|
}),
|
|
@@ -6262,8 +6316,24 @@ var vendorInfoSchema = yup3.object().shape({
|
|
|
6262
6316
|
}).optional(),
|
|
6263
6317
|
stallInfo: yup3.object().shape({
|
|
6264
6318
|
size: yup3.object().shape({
|
|
6265
|
-
depth: yup3.
|
|
6266
|
-
|
|
6319
|
+
depth: yup3.string().required("Depth is required").test(
|
|
6320
|
+
"is-number",
|
|
6321
|
+
"Depth must be a valid number",
|
|
6322
|
+
(value) => value !== void 0 && value !== "" && !isNaN(Number(value))
|
|
6323
|
+
).test(
|
|
6324
|
+
"is-positive",
|
|
6325
|
+
"Depth must be greater than 0",
|
|
6326
|
+
(value) => value !== void 0 && value !== "" && Number(value) > 0
|
|
6327
|
+
),
|
|
6328
|
+
width: yup3.string().required("Width is required").test(
|
|
6329
|
+
"is-number",
|
|
6330
|
+
"Width must be a valid number",
|
|
6331
|
+
(value) => value !== void 0 && value !== "" && !isNaN(Number(value))
|
|
6332
|
+
).test(
|
|
6333
|
+
"is-positive",
|
|
6334
|
+
"Width must be greater than 0",
|
|
6335
|
+
(value) => value !== void 0 && value !== "" && Number(value) > 0
|
|
6336
|
+
)
|
|
6267
6337
|
})
|
|
6268
6338
|
}),
|
|
6269
6339
|
vendorId: yup3.string().trim().required("Vendor ID is required")
|
|
@@ -6631,6 +6701,10 @@ var defaultEventInfoFormValues = {
|
|
|
6631
6701
|
// e.g., 2 hours before event opens
|
|
6632
6702
|
paymentDueHours: 12,
|
|
6633
6703
|
paymentInfo: [],
|
|
6704
|
+
refundPolicy: {
|
|
6705
|
+
cancelledByOrganiser: [],
|
|
6706
|
+
cancelledByVendor: []
|
|
6707
|
+
},
|
|
6634
6708
|
requirements: []
|
|
6635
6709
|
};
|
|
6636
6710
|
var defaultVendorFormValues = {
|
|
@@ -6661,7 +6735,7 @@ var defaultVendorInfoFormValues = {
|
|
|
6661
6735
|
product: {
|
|
6662
6736
|
foodFlavors: [],
|
|
6663
6737
|
packaging: [],
|
|
6664
|
-
priceRange: { max: 0, min: 0 },
|
|
6738
|
+
priceRange: { max: "0", min: "0" },
|
|
6665
6739
|
producedIn: []
|
|
6666
6740
|
},
|
|
6667
6741
|
requirements: {
|
|
@@ -6670,7 +6744,7 @@ var defaultVendorInfoFormValues = {
|
|
|
6670
6744
|
table: { details: null, isRequired: false }
|
|
6671
6745
|
},
|
|
6672
6746
|
stallInfo: {
|
|
6673
|
-
size: { depth: 0, width: 0 }
|
|
6747
|
+
size: { depth: "0", width: "0" }
|
|
6674
6748
|
},
|
|
6675
6749
|
vendorId: ""
|
|
6676
6750
|
};
|
|
@@ -6979,6 +7053,7 @@ function useEventInfoForm(data) {
|
|
|
6979
7053
|
packInTime: data.packInTime,
|
|
6980
7054
|
paymentDueHours: data.paymentDueHours,
|
|
6981
7055
|
paymentInfo: data.paymentInfo,
|
|
7056
|
+
refundPolicy: data.refundPolicy,
|
|
6982
7057
|
requirements: data.requirements
|
|
6983
7058
|
});
|
|
6984
7059
|
} else {
|
|
@@ -6993,6 +7068,7 @@ function useEventInfoForm(data) {
|
|
|
6993
7068
|
packInTime,
|
|
6994
7069
|
paymentDueHours,
|
|
6995
7070
|
paymentInfo,
|
|
7071
|
+
refundPolicy,
|
|
6996
7072
|
requirements
|
|
6997
7073
|
} = getValues();
|
|
6998
7074
|
return {
|
|
@@ -7005,6 +7081,7 @@ function useEventInfoForm(data) {
|
|
|
7005
7081
|
packInTime,
|
|
7006
7082
|
paymentDueHours,
|
|
7007
7083
|
paymentInfo,
|
|
7084
|
+
refundPolicy,
|
|
7008
7085
|
requirements
|
|
7009
7086
|
},
|
|
7010
7087
|
formState,
|
|
@@ -7876,6 +7953,7 @@ export {
|
|
|
7876
7953
|
defaultVendorInfoFormValues,
|
|
7877
7954
|
emailField,
|
|
7878
7955
|
eventBasicInfoFields,
|
|
7956
|
+
eventCancellationOptions,
|
|
7879
7957
|
eventEndDateFields,
|
|
7880
7958
|
eventInfo,
|
|
7881
7959
|
eventInfoPaymentInfo,
|
|
@@ -7907,6 +7985,7 @@ export {
|
|
|
7907
7985
|
socialMediaFields,
|
|
7908
7986
|
sortDatesChronologically,
|
|
7909
7987
|
stallTypeOptions,
|
|
7988
|
+
stallholderCancellationOptions,
|
|
7910
7989
|
statusOptions,
|
|
7911
7990
|
tagOptions,
|
|
7912
7991
|
testersFields,
|