@timardex/cluemart-shared 1.1.99 → 1.2.1
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-BMYKEYZE.mjs → chunk-4RWXISXJ.mjs} +5 -5
- package/dist/{chunk-BMYKEYZE.mjs.map → chunk-4RWXISXJ.mjs.map} +1 -1
- package/dist/{chunk-YZEVTCB6.mjs → chunk-JUZHLSQK.mjs} +2 -2
- package/dist/enums/index.cjs +4 -4
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.mts +4 -4
- package/dist/enums/index.d.ts +4 -4
- package/dist/enums/index.mjs +1 -1
- package/dist/formFields/index.cjs +50 -0
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.d.mts +5 -1
- package/dist/formFields/index.d.ts +5 -1
- package/dist/formFields/index.mjs +43 -2
- package/dist/formFields/index.mjs.map +1 -1
- package/dist/graphql/index.cjs +4 -1
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.mjs +5 -2
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +5 -5
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.mjs +3 -3
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +52 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +9 -5
- package/dist/index.d.ts +9 -5
- package/dist/index.mjs +48 -6
- package/dist/index.mjs.map +1 -1
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.mjs +2 -2
- package/package.json +1 -1
- /package/dist/{chunk-YZEVTCB6.mjs.map → chunk-JUZHLSQK.mjs.map} +0 -0
package/dist/index.d.mts
CHANGED
|
@@ -25,10 +25,10 @@ declare enum EnumPaymentMethod {
|
|
|
25
25
|
STRIPE = "stripe"
|
|
26
26
|
}
|
|
27
27
|
declare enum EnumFoodFlavor {
|
|
28
|
-
SALTY = "
|
|
29
|
-
SAVOURY = "
|
|
30
|
-
SPICY = "
|
|
31
|
-
SWEET = "
|
|
28
|
+
SALTY = "Salty",
|
|
29
|
+
SAVOURY = "Savoury",
|
|
30
|
+
SPICY = "Spicy",
|
|
31
|
+
SWEET = "Sweet"
|
|
32
32
|
}
|
|
33
33
|
declare enum EnumResourceType {
|
|
34
34
|
EVENT = "event",
|
|
@@ -698,8 +698,12 @@ declare const vendorStallSize: {
|
|
|
698
698
|
};
|
|
699
699
|
declare const vendorPackaging: FormField;
|
|
700
700
|
declare const vendorProducedIn: FormField;
|
|
701
|
+
declare const vendorFoodFlavour: FormField;
|
|
702
|
+
declare const vendorAvailability: FormField[];
|
|
703
|
+
declare const vendorCompliance: FormField[];
|
|
701
704
|
declare const packagingOptions: OptionItem[];
|
|
702
705
|
declare const producedIngOptions: OptionItem[];
|
|
706
|
+
declare const foodFlavourOptions: OptionItem[];
|
|
703
707
|
|
|
704
708
|
declare const eventBasicInfoFields: FormField[];
|
|
705
709
|
declare const eventStartDateFields: FormDateField[];
|
|
@@ -1392,4 +1396,4 @@ declare const availableRegionOptions: OptionItem[];
|
|
|
1392
1396
|
declare const paymentMethodOptions: OptionItem[];
|
|
1393
1397
|
declare function normalizeUrl(url: string): string;
|
|
1394
1398
|
|
|
1395
|
-
export { type AdFormData, type AdType, type AdminUpdateResourceType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateTestersFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DateTimeType, type DateTimeWithPriceType, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumChatType, EnumEventType, EnumFoodFlavor, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumUserLicence, EnumUserRole, EnumVendorType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventType, type EventWithConnectionDatesType, type FormDateField, type FormField, type GeocodeLocation, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, type OwnerType, type ParticipantType, type PartnerType, type PaymentInfoType, type PlacePrediction, type PosterInputType, type PosterUsageType, type Region, type RegisterFormData, type RelationDate, type RelationType, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceImageType, type ResourceViewEntry, type ResourceViewInputType, type ResourceViewsType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SocialMediaType, type StallType, type Subcategory, type SubcategoryItems, type TesterType, type TestersFormData, USER_STORAGE_KEY, type UserFormData, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorLocation, type VendorType, type VendorWithConnectionDatesType, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, companyContactFields, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultRegion, defaultVendorFormValues, defaultVendorInfoFormValues, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, packagingOptions, paymentMethodOptions, producedIngOptions, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, statusOptions, tagOptions, testersFields, timeFormat, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAdminUpdateResourceType, useContactUs, useContactUsForm, useCreateAd, useCreateBulkNotifications, useCreateEvent, useCreateEventInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceViews, useCreateTester, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeleteRelation, useDeleteTester, useDeleteUser, useDeleteVendor, useEventForm, useEventInfoForm, useGetAd, useGetAds, useGetAdsByRegion, useGetChat, useGetChatSubscription, useGetEvent, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetRelation, useGetRelationByEventAndVendor, useGetResourceConnections, useGetResourceViews, useGetTester, useGetTesters, useGetUser, useGetUserChats, useGetUserEvents, useGetUserFavourites, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchEvents, useSearchVendors, useSelectPackage, useSendChatMessage, useTestersForm, useUpdateAd, useUpdateEvent, useUpdateEventInfo, useUpdateRelation, useUpdateTester, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, useVendorForm, useVendorInfoForm, validateVerificationTokenFields, vendorBasicInfoFields, vendorElectricity, vendorEndDateFields, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMultiLocation, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
|
|
1399
|
+
export { type AdFormData, type AdType, type AdminUpdateResourceType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateTestersFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DateTimeType, type DateTimeWithPriceType, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumChatType, EnumEventType, EnumFoodFlavor, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumUserLicence, EnumUserRole, EnumVendorType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventType, type EventWithConnectionDatesType, type FormDateField, type FormField, type GeocodeLocation, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, type OwnerType, type ParticipantType, type PartnerType, type PaymentInfoType, type PlacePrediction, type PosterInputType, type PosterUsageType, type Region, type RegisterFormData, type RelationDate, type RelationType, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceImageType, type ResourceViewEntry, type ResourceViewInputType, type ResourceViewsType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SocialMediaType, type StallType, type Subcategory, type SubcategoryItems, type TesterType, type TestersFormData, USER_STORAGE_KEY, type UserFormData, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorLocation, type VendorType, type VendorWithConnectionDatesType, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, companyContactFields, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultRegion, defaultVendorFormValues, defaultVendorInfoFormValues, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, packagingOptions, paymentMethodOptions, producedIngOptions, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, statusOptions, tagOptions, testersFields, timeFormat, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAdminUpdateResourceType, useContactUs, useContactUsForm, useCreateAd, useCreateBulkNotifications, useCreateEvent, useCreateEventInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceViews, useCreateTester, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeleteRelation, useDeleteTester, useDeleteUser, useDeleteVendor, useEventForm, useEventInfoForm, useGetAd, useGetAds, useGetAdsByRegion, useGetChat, useGetChatSubscription, useGetEvent, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetRelation, useGetRelationByEventAndVendor, useGetResourceConnections, useGetResourceViews, useGetTester, useGetTesters, useGetUser, useGetUserChats, useGetUserEvents, useGetUserFavourites, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchEvents, useSearchVendors, useSelectPackage, useSendChatMessage, useTestersForm, useUpdateAd, useUpdateEvent, useUpdateEventInfo, useUpdateRelation, useUpdateTester, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, useVendorForm, useVendorInfoForm, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMultiLocation, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
|
package/dist/index.d.ts
CHANGED
|
@@ -25,10 +25,10 @@ declare enum EnumPaymentMethod {
|
|
|
25
25
|
STRIPE = "stripe"
|
|
26
26
|
}
|
|
27
27
|
declare enum EnumFoodFlavor {
|
|
28
|
-
SALTY = "
|
|
29
|
-
SAVOURY = "
|
|
30
|
-
SPICY = "
|
|
31
|
-
SWEET = "
|
|
28
|
+
SALTY = "Salty",
|
|
29
|
+
SAVOURY = "Savoury",
|
|
30
|
+
SPICY = "Spicy",
|
|
31
|
+
SWEET = "Sweet"
|
|
32
32
|
}
|
|
33
33
|
declare enum EnumResourceType {
|
|
34
34
|
EVENT = "event",
|
|
@@ -698,8 +698,12 @@ declare const vendorStallSize: {
|
|
|
698
698
|
};
|
|
699
699
|
declare const vendorPackaging: FormField;
|
|
700
700
|
declare const vendorProducedIn: FormField;
|
|
701
|
+
declare const vendorFoodFlavour: FormField;
|
|
702
|
+
declare const vendorAvailability: FormField[];
|
|
703
|
+
declare const vendorCompliance: FormField[];
|
|
701
704
|
declare const packagingOptions: OptionItem[];
|
|
702
705
|
declare const producedIngOptions: OptionItem[];
|
|
706
|
+
declare const foodFlavourOptions: OptionItem[];
|
|
703
707
|
|
|
704
708
|
declare const eventBasicInfoFields: FormField[];
|
|
705
709
|
declare const eventStartDateFields: FormDateField[];
|
|
@@ -1392,4 +1396,4 @@ declare const availableRegionOptions: OptionItem[];
|
|
|
1392
1396
|
declare const paymentMethodOptions: OptionItem[];
|
|
1393
1397
|
declare function normalizeUrl(url: string): string;
|
|
1394
1398
|
|
|
1395
|
-
export { type AdFormData, type AdType, type AdminUpdateResourceType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateTestersFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DateTimeType, type DateTimeWithPriceType, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumChatType, EnumEventType, EnumFoodFlavor, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumUserLicence, EnumUserRole, EnumVendorType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventType, type EventWithConnectionDatesType, type FormDateField, type FormField, type GeocodeLocation, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, type OwnerType, type ParticipantType, type PartnerType, type PaymentInfoType, type PlacePrediction, type PosterInputType, type PosterUsageType, type Region, type RegisterFormData, type RelationDate, type RelationType, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceImageType, type ResourceViewEntry, type ResourceViewInputType, type ResourceViewsType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SocialMediaType, type StallType, type Subcategory, type SubcategoryItems, type TesterType, type TestersFormData, USER_STORAGE_KEY, type UserFormData, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorLocation, type VendorType, type VendorWithConnectionDatesType, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, companyContactFields, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultRegion, defaultVendorFormValues, defaultVendorInfoFormValues, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, packagingOptions, paymentMethodOptions, producedIngOptions, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, statusOptions, tagOptions, testersFields, timeFormat, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAdminUpdateResourceType, useContactUs, useContactUsForm, useCreateAd, useCreateBulkNotifications, useCreateEvent, useCreateEventInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceViews, useCreateTester, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeleteRelation, useDeleteTester, useDeleteUser, useDeleteVendor, useEventForm, useEventInfoForm, useGetAd, useGetAds, useGetAdsByRegion, useGetChat, useGetChatSubscription, useGetEvent, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetRelation, useGetRelationByEventAndVendor, useGetResourceConnections, useGetResourceViews, useGetTester, useGetTesters, useGetUser, useGetUserChats, useGetUserEvents, useGetUserFavourites, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchEvents, useSearchVendors, useSelectPackage, useSendChatMessage, useTestersForm, useUpdateAd, useUpdateEvent, useUpdateEventInfo, useUpdateRelation, useUpdateTester, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, useVendorForm, useVendorInfoForm, validateVerificationTokenFields, vendorBasicInfoFields, vendorElectricity, vendorEndDateFields, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMultiLocation, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
|
|
1399
|
+
export { type AdFormData, type AdType, type AdminUpdateResourceType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateTestersFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DateTimeType, type DateTimeWithPriceType, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumChatType, EnumEventType, EnumFoodFlavor, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumUserLicence, EnumUserRole, EnumVendorType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventType, type EventWithConnectionDatesType, type FormDateField, type FormField, type GeocodeLocation, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, type OwnerType, type ParticipantType, type PartnerType, type PaymentInfoType, type PlacePrediction, type PosterInputType, type PosterUsageType, type Region, type RegisterFormData, type RelationDate, type RelationType, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceImageType, type ResourceViewEntry, type ResourceViewInputType, type ResourceViewsType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SocialMediaType, type StallType, type Subcategory, type SubcategoryItems, type TesterType, type TestersFormData, USER_STORAGE_KEY, type UserFormData, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorLocation, type VendorType, type VendorWithConnectionDatesType, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, companyContactFields, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultRegion, defaultVendorFormValues, defaultVendorInfoFormValues, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, packagingOptions, paymentMethodOptions, producedIngOptions, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, statusOptions, tagOptions, testersFields, timeFormat, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAdminUpdateResourceType, useContactUs, useContactUsForm, useCreateAd, useCreateBulkNotifications, useCreateEvent, useCreateEventInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceViews, useCreateTester, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeleteRelation, useDeleteTester, useDeleteUser, useDeleteVendor, useEventForm, useEventInfoForm, useGetAd, useGetAds, useGetAdsByRegion, useGetChat, useGetChatSubscription, useGetEvent, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetRelation, useGetRelationByEventAndVendor, useGetResourceConnections, useGetResourceViews, useGetTester, useGetTesters, useGetUser, useGetUserChats, useGetUserEvents, useGetUserFavourites, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchEvents, useSearchVendors, useSelectPackage, useSendChatMessage, useTestersForm, useUpdateAd, useUpdateEvent, useUpdateEventInfo, useUpdateRelation, useUpdateTester, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, useVendorForm, useVendorInfoForm, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMultiLocation, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
|
package/dist/index.mjs
CHANGED
|
@@ -26,10 +26,10 @@ var EnumPaymentMethod = /* @__PURE__ */ ((EnumPaymentMethod2) => {
|
|
|
26
26
|
return EnumPaymentMethod2;
|
|
27
27
|
})(EnumPaymentMethod || {});
|
|
28
28
|
var EnumFoodFlavor = /* @__PURE__ */ ((EnumFoodFlavor3) => {
|
|
29
|
-
EnumFoodFlavor3["SALTY"] = "
|
|
30
|
-
EnumFoodFlavor3["SAVOURY"] = "
|
|
31
|
-
EnumFoodFlavor3["SPICY"] = "
|
|
32
|
-
EnumFoodFlavor3["SWEET"] = "
|
|
29
|
+
EnumFoodFlavor3["SALTY"] = "Salty";
|
|
30
|
+
EnumFoodFlavor3["SAVOURY"] = "Savoury";
|
|
31
|
+
EnumFoodFlavor3["SPICY"] = "Spicy";
|
|
32
|
+
EnumFoodFlavor3["SWEET"] = "Sweet";
|
|
33
33
|
return EnumFoodFlavor3;
|
|
34
34
|
})(EnumFoodFlavor || {});
|
|
35
35
|
var EnumResourceType = /* @__PURE__ */ ((EnumResourceType2) => {
|
|
@@ -382,6 +382,35 @@ var vendorProducedIn = {
|
|
|
382
382
|
name: "product.producedIn",
|
|
383
383
|
placeholder: "Produced type"
|
|
384
384
|
};
|
|
385
|
+
var vendorFoodFlavour = {
|
|
386
|
+
helperText: "You can select more than one food flavour",
|
|
387
|
+
name: "product.foodFlavors",
|
|
388
|
+
placeholder: "Food flavours"
|
|
389
|
+
};
|
|
390
|
+
var vendorAvailability = [
|
|
391
|
+
{
|
|
392
|
+
name: "availability.school",
|
|
393
|
+
placeholder: "School events"
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
name: "availability.private",
|
|
397
|
+
placeholder: "Private events"
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
name: "availability.corporate",
|
|
401
|
+
placeholder: "Corporate events"
|
|
402
|
+
}
|
|
403
|
+
];
|
|
404
|
+
var vendorCompliance = [
|
|
405
|
+
{
|
|
406
|
+
name: "compliance.liabilityInsurance",
|
|
407
|
+
placeholder: "Liability Insurance"
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
name: "compliance.foodBeverageLicense",
|
|
411
|
+
placeholder: "Food and Beverage License"
|
|
412
|
+
}
|
|
413
|
+
];
|
|
385
414
|
var packagingTypes = [
|
|
386
415
|
"Biodegradable",
|
|
387
416
|
"Compostable",
|
|
@@ -403,6 +432,12 @@ var producedIngTypes = [
|
|
|
403
432
|
];
|
|
404
433
|
var packagingOptions = mapArrayToOptions(packagingTypes);
|
|
405
434
|
var producedIngOptions = mapArrayToOptions(producedIngTypes);
|
|
435
|
+
var foodFlavourOptions = Object.values(
|
|
436
|
+
EnumFoodFlavor
|
|
437
|
+
).map((flavour) => ({
|
|
438
|
+
label: flavour,
|
|
439
|
+
value: flavour
|
|
440
|
+
}));
|
|
406
441
|
|
|
407
442
|
// src/formFields/event/event.ts
|
|
408
443
|
var eventBasicInfoFields = [
|
|
@@ -2207,7 +2242,9 @@ var VENDOR_INFO = gql4`
|
|
|
2207
2242
|
landlinePhone
|
|
2208
2243
|
mobilePhone
|
|
2209
2244
|
}
|
|
2210
|
-
documents
|
|
2245
|
+
documents {
|
|
2246
|
+
...ResourceImageFields
|
|
2247
|
+
}
|
|
2211
2248
|
requirements {
|
|
2212
2249
|
electricity {
|
|
2213
2250
|
...VendorAttributesFields
|
|
@@ -2237,6 +2274,7 @@ var VENDOR_INFO = gql4`
|
|
|
2237
2274
|
vendorId
|
|
2238
2275
|
}
|
|
2239
2276
|
${VENDOR_ATTRIBUTES_FRAGMENT}
|
|
2277
|
+
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
2240
2278
|
`;
|
|
2241
2279
|
var GET_VENDORS = gql4`
|
|
2242
2280
|
query getVendors {
|
|
@@ -4613,7 +4651,7 @@ var vendorInfoSchema = yup3.object().shape({
|
|
|
4613
4651
|
contactDetails: contactDetailsSchema,
|
|
4614
4652
|
product: yup3.object().shape({
|
|
4615
4653
|
foodFlavors: yup3.array().of(
|
|
4616
|
-
yup3.mixed().oneOf(Object.values(EnumFoodFlavor)).
|
|
4654
|
+
yup3.mixed().oneOf(Object.values(EnumFoodFlavor), "Invalid flavor selected").required("Flavor is required")
|
|
4617
4655
|
).min(1, "Food flavors list must contain at least one item").required("Food flavors are required"),
|
|
4618
4656
|
packaging: yup3.array().of(yup3.string().defined()).min(1, "Packaging list must contain at least one item").required("Packaging is required"),
|
|
4619
4657
|
priceRange: yup3.object().shape({
|
|
@@ -5839,6 +5877,7 @@ export {
|
|
|
5839
5877
|
eventInfoPaymentInfo,
|
|
5840
5878
|
eventStartDateFields,
|
|
5841
5879
|
fonts,
|
|
5880
|
+
foodFlavourOptions,
|
|
5842
5881
|
formatDate,
|
|
5843
5882
|
formatTimestamp,
|
|
5844
5883
|
getCurrentAndFutureDates,
|
|
@@ -5961,9 +6000,12 @@ export {
|
|
|
5961
6000
|
useVendorForm,
|
|
5962
6001
|
useVendorInfoForm,
|
|
5963
6002
|
validateVerificationTokenFields,
|
|
6003
|
+
vendorAvailability,
|
|
5964
6004
|
vendorBasicInfoFields,
|
|
6005
|
+
vendorCompliance,
|
|
5965
6006
|
vendorElectricity,
|
|
5966
6007
|
vendorEndDateFields,
|
|
6008
|
+
vendorFoodFlavour,
|
|
5967
6009
|
vendorFullAddress,
|
|
5968
6010
|
vendorGazebo,
|
|
5969
6011
|
vendorLocationDescription,
|