@timardex/cluemart-shared 1.1.97 → 1.1.98
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/{ad-CoiGaT-f.d.ts → ad-B-dDiXPy.d.ts} +3 -2
- package/dist/{ad-Df0tS2ke.d.mts → ad-DALyx8iX.d.mts} +3 -2
- package/dist/{auth-ilI9BaiI.d.mts → auth-BdC1Bi0D.d.mts} +1 -1
- package/dist/{auth-BjhtOc-S.d.ts → auth-D0RV_hG-.d.ts} +1 -1
- package/dist/{chunk-HCLLFEEU.mjs → chunk-BMYKEYZE.mjs} +9 -1
- package/dist/chunk-BMYKEYZE.mjs.map +1 -0
- package/dist/{chunk-BNC6VFCM.mjs → chunk-YZEVTCB6.mjs} +2 -2
- package/dist/enums/index.cjs +9 -0
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.mts +7 -1
- package/dist/enums/index.d.ts +7 -1
- package/dist/enums/index.mjs +3 -1
- package/dist/formFields/index.cjs +13 -13
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.d.mts +1 -1
- package/dist/formFields/index.d.ts +1 -1
- package/dist/formFields/index.mjs +15 -15
- package/dist/formFields/index.mjs.map +1 -1
- package/dist/{global-UlcoYebp.d.mts → global-C7-PePOU.d.mts} +30 -14
- package/dist/{global-DySmt-11.d.ts → global-Vh0AxyOm.d.ts} +30 -14
- package/dist/graphql/index.cjs +42 -21
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +2 -2
- package/dist/graphql/index.d.ts +2 -2
- package/dist/graphql/index.mjs +43 -22
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +93 -67
- 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 +89 -69
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +150 -101
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +38 -15
- package/dist/index.d.ts +38 -15
- package/dist/index.mjs +149 -101
- package/dist/index.mjs.map +1 -1
- package/dist/types/index.d.mts +3 -3
- package/dist/types/index.d.ts +3 -3
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-HCLLFEEU.mjs.map +0 -1
- /package/dist/{chunk-BNC6VFCM.mjs.map → chunk-YZEVTCB6.mjs.map} +0 -0
package/dist/index.d.mts
CHANGED
|
@@ -24,6 +24,12 @@ declare enum EnumPaymentMethod {
|
|
|
24
24
|
PAYPAL = "paypal",
|
|
25
25
|
STRIPE = "stripe"
|
|
26
26
|
}
|
|
27
|
+
declare enum EnumFoodFlavor {
|
|
28
|
+
SALTY = "salty",
|
|
29
|
+
SAVOURY = "savoury",
|
|
30
|
+
SPICY = "spicy",
|
|
31
|
+
SWEET = "sweet"
|
|
32
|
+
}
|
|
27
33
|
declare enum EnumResourceType {
|
|
28
34
|
EVENT = "event",
|
|
29
35
|
VENDOR = "vendor"
|
|
@@ -219,22 +225,38 @@ type VendorAttributes = {
|
|
|
219
225
|
type VendorInfoFormData = {
|
|
220
226
|
_id?: string;
|
|
221
227
|
contactDetails?: ResourceContactDetailsType | null;
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
228
|
+
foodSafetyGradeFiles?: ResourceImageType[] | null;
|
|
229
|
+
foodSafetyGradeFilesUpload?: ResourceImageType[] | null;
|
|
230
|
+
requirements?: {
|
|
231
|
+
electricity: VendorAttributes;
|
|
232
|
+
gazebo: VendorAttributes;
|
|
233
|
+
table: VendorAttributes;
|
|
234
|
+
};
|
|
235
|
+
product: {
|
|
236
|
+
foodFlavors: EnumFoodFlavor[];
|
|
237
|
+
packaging: string[];
|
|
238
|
+
priceRange: {
|
|
239
|
+
max: number;
|
|
240
|
+
min: number;
|
|
241
|
+
};
|
|
242
|
+
producedIn: string[];
|
|
230
243
|
};
|
|
231
|
-
producedIn: string[];
|
|
232
244
|
vendorId: string;
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
245
|
+
stallInfo: {
|
|
246
|
+
size: {
|
|
247
|
+
depth: number;
|
|
248
|
+
width: number;
|
|
249
|
+
};
|
|
250
|
+
};
|
|
251
|
+
compliance?: {
|
|
252
|
+
liabilityInsurance: boolean;
|
|
253
|
+
foodBeverageLicense: boolean;
|
|
254
|
+
};
|
|
255
|
+
availability?: {
|
|
256
|
+
school: boolean;
|
|
257
|
+
private: boolean;
|
|
258
|
+
corporate: boolean;
|
|
236
259
|
};
|
|
237
|
-
table: VendorAttributes;
|
|
238
260
|
};
|
|
239
261
|
type CreateVendorInfoFormData = CreateFormData<VendorInfoFormData>;
|
|
240
262
|
interface VendorType extends BaseResourceType {
|
|
@@ -521,12 +543,13 @@ interface PosterInputType {
|
|
|
521
543
|
}
|
|
522
544
|
|
|
523
545
|
interface TestersFormData {
|
|
524
|
-
categories
|
|
546
|
+
categories?: Category[] | null;
|
|
525
547
|
companyName: string;
|
|
526
548
|
email: string;
|
|
527
549
|
firstName: string;
|
|
528
550
|
lastName: string;
|
|
529
551
|
osType: EnumOSPlatform;
|
|
552
|
+
region: string;
|
|
530
553
|
resourceType: EnumResourceType;
|
|
531
554
|
}
|
|
532
555
|
type CreateTestersFormData = CreateFormData<TestersFormData>;
|
|
@@ -1369,4 +1392,4 @@ declare const availableRegionOptions: OptionItem[];
|
|
|
1369
1392
|
declare const paymentMethodOptions: OptionItem[];
|
|
1370
1393
|
declare function normalizeUrl(url: string): string;
|
|
1371
1394
|
|
|
1372
|
-
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, 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 };
|
|
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -24,6 +24,12 @@ declare enum EnumPaymentMethod {
|
|
|
24
24
|
PAYPAL = "paypal",
|
|
25
25
|
STRIPE = "stripe"
|
|
26
26
|
}
|
|
27
|
+
declare enum EnumFoodFlavor {
|
|
28
|
+
SALTY = "salty",
|
|
29
|
+
SAVOURY = "savoury",
|
|
30
|
+
SPICY = "spicy",
|
|
31
|
+
SWEET = "sweet"
|
|
32
|
+
}
|
|
27
33
|
declare enum EnumResourceType {
|
|
28
34
|
EVENT = "event",
|
|
29
35
|
VENDOR = "vendor"
|
|
@@ -219,22 +225,38 @@ type VendorAttributes = {
|
|
|
219
225
|
type VendorInfoFormData = {
|
|
220
226
|
_id?: string;
|
|
221
227
|
contactDetails?: ResourceContactDetailsType | null;
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
228
|
+
foodSafetyGradeFiles?: ResourceImageType[] | null;
|
|
229
|
+
foodSafetyGradeFilesUpload?: ResourceImageType[] | null;
|
|
230
|
+
requirements?: {
|
|
231
|
+
electricity: VendorAttributes;
|
|
232
|
+
gazebo: VendorAttributes;
|
|
233
|
+
table: VendorAttributes;
|
|
234
|
+
};
|
|
235
|
+
product: {
|
|
236
|
+
foodFlavors: EnumFoodFlavor[];
|
|
237
|
+
packaging: string[];
|
|
238
|
+
priceRange: {
|
|
239
|
+
max: number;
|
|
240
|
+
min: number;
|
|
241
|
+
};
|
|
242
|
+
producedIn: string[];
|
|
230
243
|
};
|
|
231
|
-
producedIn: string[];
|
|
232
244
|
vendorId: string;
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
245
|
+
stallInfo: {
|
|
246
|
+
size: {
|
|
247
|
+
depth: number;
|
|
248
|
+
width: number;
|
|
249
|
+
};
|
|
250
|
+
};
|
|
251
|
+
compliance?: {
|
|
252
|
+
liabilityInsurance: boolean;
|
|
253
|
+
foodBeverageLicense: boolean;
|
|
254
|
+
};
|
|
255
|
+
availability?: {
|
|
256
|
+
school: boolean;
|
|
257
|
+
private: boolean;
|
|
258
|
+
corporate: boolean;
|
|
236
259
|
};
|
|
237
|
-
table: VendorAttributes;
|
|
238
260
|
};
|
|
239
261
|
type CreateVendorInfoFormData = CreateFormData<VendorInfoFormData>;
|
|
240
262
|
interface VendorType extends BaseResourceType {
|
|
@@ -521,12 +543,13 @@ interface PosterInputType {
|
|
|
521
543
|
}
|
|
522
544
|
|
|
523
545
|
interface TestersFormData {
|
|
524
|
-
categories
|
|
546
|
+
categories?: Category[] | null;
|
|
525
547
|
companyName: string;
|
|
526
548
|
email: string;
|
|
527
549
|
firstName: string;
|
|
528
550
|
lastName: string;
|
|
529
551
|
osType: EnumOSPlatform;
|
|
552
|
+
region: string;
|
|
530
553
|
resourceType: EnumResourceType;
|
|
531
554
|
}
|
|
532
555
|
type CreateTestersFormData = CreateFormData<TestersFormData>;
|
|
@@ -1369,4 +1392,4 @@ declare const availableRegionOptions: OptionItem[];
|
|
|
1369
1392
|
declare const paymentMethodOptions: OptionItem[];
|
|
1370
1393
|
declare function normalizeUrl(url: string): string;
|
|
1371
1394
|
|
|
1372
|
-
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, 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 };
|
|
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 };
|
package/dist/index.mjs
CHANGED
|
@@ -25,6 +25,13 @@ var EnumPaymentMethod = /* @__PURE__ */ ((EnumPaymentMethod2) => {
|
|
|
25
25
|
EnumPaymentMethod2["STRIPE"] = "stripe";
|
|
26
26
|
return EnumPaymentMethod2;
|
|
27
27
|
})(EnumPaymentMethod || {});
|
|
28
|
+
var EnumFoodFlavor = /* @__PURE__ */ ((EnumFoodFlavor3) => {
|
|
29
|
+
EnumFoodFlavor3["SALTY"] = "salty";
|
|
30
|
+
EnumFoodFlavor3["SAVOURY"] = "savoury";
|
|
31
|
+
EnumFoodFlavor3["SPICY"] = "spicy";
|
|
32
|
+
EnumFoodFlavor3["SWEET"] = "sweet";
|
|
33
|
+
return EnumFoodFlavor3;
|
|
34
|
+
})(EnumFoodFlavor || {});
|
|
28
35
|
var EnumResourceType = /* @__PURE__ */ ((EnumResourceType2) => {
|
|
29
36
|
EnumResourceType2["EVENT"] = "event";
|
|
30
37
|
EnumResourceType2["VENDOR"] = "vendor";
|
|
@@ -255,7 +262,7 @@ var vendorBasicInfoFields = [
|
|
|
255
262
|
var vendorMultiLocation = {
|
|
256
263
|
helperText: "Usefull when you are not only selling products on Events but also providing services at other locations.",
|
|
257
264
|
name: "multiLocation",
|
|
258
|
-
placeholder: "
|
|
265
|
+
placeholder: "Multi location"
|
|
259
266
|
};
|
|
260
267
|
var vendorFullAddress = {
|
|
261
268
|
helperText: "Enter address",
|
|
@@ -309,11 +316,11 @@ var vendorElectricity = {
|
|
|
309
316
|
details: {
|
|
310
317
|
helperText: "Please describe details e.g. amps, voltage, etc.",
|
|
311
318
|
isTextArea: true,
|
|
312
|
-
name: "electricity.details",
|
|
319
|
+
name: "requirements.electricity.details",
|
|
313
320
|
placeholder: "Electricity requirements"
|
|
314
321
|
},
|
|
315
322
|
isRequired: {
|
|
316
|
-
name: "electricity.isRequired",
|
|
323
|
+
name: "requirements.electricity.isRequired",
|
|
317
324
|
placeholder: "Do you require electricity?"
|
|
318
325
|
}
|
|
319
326
|
};
|
|
@@ -321,11 +328,11 @@ var vendorGazebo = {
|
|
|
321
328
|
details: {
|
|
322
329
|
helperText: "Please describe details e.g. size, etc.",
|
|
323
330
|
isTextArea: true,
|
|
324
|
-
name: "gazebo.details",
|
|
331
|
+
name: "requirements.gazebo.details",
|
|
325
332
|
placeholder: "Gazebo requirements"
|
|
326
333
|
},
|
|
327
334
|
isRequired: {
|
|
328
|
-
name: "gazebo.isRequired",
|
|
335
|
+
name: "requirements.gazebo.isRequired",
|
|
329
336
|
placeholder: "Do you require Gazebo?"
|
|
330
337
|
}
|
|
331
338
|
};
|
|
@@ -333,46 +340,46 @@ var vendorTable = {
|
|
|
333
340
|
details: {
|
|
334
341
|
helperText: "Please describe details e.g. size, etc.",
|
|
335
342
|
isTextArea: true,
|
|
336
|
-
name: "table.details",
|
|
343
|
+
name: "requirements.table.details",
|
|
337
344
|
placeholder: "Table requirements"
|
|
338
345
|
},
|
|
339
346
|
isRequired: {
|
|
340
|
-
name: "table.isRequired",
|
|
347
|
+
name: "requirements.table.isRequired",
|
|
341
348
|
placeholder: "Do you require Table?"
|
|
342
349
|
}
|
|
343
350
|
};
|
|
344
351
|
var vendorPriceRange = {
|
|
345
352
|
max: {
|
|
346
353
|
helperText: "Product maximum price",
|
|
347
|
-
name: "priceRange.max",
|
|
354
|
+
name: "product.priceRange.max",
|
|
348
355
|
placeholder: "Maximum price: "
|
|
349
356
|
},
|
|
350
357
|
min: {
|
|
351
358
|
helperText: "Product minimum price",
|
|
352
|
-
name: "priceRange.min",
|
|
359
|
+
name: "product.priceRange.min",
|
|
353
360
|
placeholder: "Minimum price: "
|
|
354
361
|
}
|
|
355
362
|
};
|
|
356
363
|
var vendorStallSize = {
|
|
357
364
|
depth: {
|
|
358
365
|
helperText: "Stall size in depth",
|
|
359
|
-
name: "
|
|
366
|
+
name: "stallInfo.size.depth",
|
|
360
367
|
placeholder: "Stall Depth: "
|
|
361
368
|
},
|
|
362
369
|
width: {
|
|
363
370
|
helperText: "Stall size in width",
|
|
364
|
-
name: "
|
|
371
|
+
name: "stallInfo.size.width",
|
|
365
372
|
placeholder: "Stall Width: "
|
|
366
373
|
}
|
|
367
374
|
};
|
|
368
375
|
var vendorPackaging = {
|
|
369
376
|
helperText: "Select packaging type, you can select more than one",
|
|
370
|
-
name: "packaging",
|
|
377
|
+
name: "product.packaging",
|
|
371
378
|
placeholder: "Packaging type"
|
|
372
379
|
};
|
|
373
380
|
var vendorProducedIn = {
|
|
374
381
|
helperText: "Select where the product is produced, you can select more than one",
|
|
375
|
-
name: "producedIn",
|
|
382
|
+
name: "product.producedIn",
|
|
376
383
|
placeholder: "Produced type"
|
|
377
384
|
};
|
|
378
385
|
var packagingTypes = [
|
|
@@ -2177,39 +2184,59 @@ var VENDOR = gql4`
|
|
|
2177
2184
|
${POSTER_USAGE_FIELDS_FRAGMENT}
|
|
2178
2185
|
${PARTNER_FIELDS_FRAGMENT}
|
|
2179
2186
|
`;
|
|
2187
|
+
var VENDOR_ATTRIBUTES_FRAGMENT = gql4`
|
|
2188
|
+
fragment VendorAttributesFields on VendorAttributesType {
|
|
2189
|
+
details
|
|
2190
|
+
isRequired
|
|
2191
|
+
}
|
|
2192
|
+
`;
|
|
2180
2193
|
var VENDOR_INFO = gql4`
|
|
2181
2194
|
fragment VendorInfoFields on VendorInfoType {
|
|
2182
2195
|
_id
|
|
2196
|
+
availability {
|
|
2197
|
+
corporate
|
|
2198
|
+
private
|
|
2199
|
+
school
|
|
2200
|
+
}
|
|
2201
|
+
compliance {
|
|
2202
|
+
foodBeverageLicense
|
|
2203
|
+
liabilityInsurance
|
|
2204
|
+
}
|
|
2183
2205
|
contactDetails {
|
|
2184
2206
|
email
|
|
2185
2207
|
landlinePhone
|
|
2186
2208
|
mobilePhone
|
|
2187
2209
|
}
|
|
2188
|
-
electricity {
|
|
2189
|
-
details
|
|
2190
|
-
isRequired
|
|
2191
|
-
}
|
|
2192
2210
|
foodSafetyGradeFiles
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2211
|
+
requirements {
|
|
2212
|
+
electricity {
|
|
2213
|
+
...VendorAttributesFields
|
|
2214
|
+
}
|
|
2215
|
+
gazebo {
|
|
2216
|
+
...VendorAttributesFields
|
|
2217
|
+
}
|
|
2218
|
+
table {
|
|
2219
|
+
...VendorAttributesFields
|
|
2220
|
+
}
|
|
2201
2221
|
}
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2222
|
+
product {
|
|
2223
|
+
foodFlavors
|
|
2224
|
+
packaging
|
|
2225
|
+
priceRange {
|
|
2226
|
+
max
|
|
2227
|
+
min
|
|
2228
|
+
}
|
|
2229
|
+
producedIn
|
|
2207
2230
|
}
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2231
|
+
stallInfo {
|
|
2232
|
+
size {
|
|
2233
|
+
depth
|
|
2234
|
+
width
|
|
2235
|
+
}
|
|
2211
2236
|
}
|
|
2237
|
+
vendorId
|
|
2212
2238
|
}
|
|
2239
|
+
${VENDOR_ATTRIBUTES_FRAGMENT}
|
|
2213
2240
|
`;
|
|
2214
2241
|
var GET_VENDORS = gql4`
|
|
2215
2242
|
query getVendors {
|
|
@@ -3732,13 +3759,14 @@ var TESTER_FIELDS_FRAGMENT = gql20`
|
|
|
3732
3759
|
categories {
|
|
3733
3760
|
...CategoryFields
|
|
3734
3761
|
}
|
|
3735
|
-
companyName
|
|
3736
3762
|
active
|
|
3763
|
+
companyName
|
|
3737
3764
|
createdAt
|
|
3738
3765
|
email
|
|
3739
3766
|
firstName
|
|
3740
3767
|
lastName
|
|
3741
3768
|
osType
|
|
3769
|
+
region
|
|
3742
3770
|
resourceType
|
|
3743
3771
|
updatedAt
|
|
3744
3772
|
}
|
|
@@ -4516,7 +4544,7 @@ var nzbnRegex = /^94\d{11}$/;
|
|
|
4516
4544
|
var eventSchema = globalResourceSchema.shape({
|
|
4517
4545
|
dateTime: yup2.array().of(dateTimeSchema).min(1, "At least one Event date required").max(50, "You can only add up to 50 Event dates").required("DateTime is required").test(
|
|
4518
4546
|
"unique-start-date-time",
|
|
4519
|
-
"Start Date
|
|
4547
|
+
"Start Date must be unique",
|
|
4520
4548
|
function(value) {
|
|
4521
4549
|
if (!value) return true;
|
|
4522
4550
|
const seen = /* @__PURE__ */ new Set();
|
|
@@ -4583,42 +4611,49 @@ var vendorSchema = globalResourceSchema.shape({
|
|
|
4583
4611
|
});
|
|
4584
4612
|
var vendorInfoSchema = yup3.object().shape({
|
|
4585
4613
|
contactDetails: contactDetailsSchema,
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
"is-greater",
|
|
4604
|
-
"Max price must be greater than or equal to Min price",
|
|
4605
|
-
function(max) {
|
|
4606
|
-
const { min } = this.parent;
|
|
4607
|
-
return max >= min;
|
|
4608
|
-
}
|
|
4609
|
-
),
|
|
4610
|
-
min: yup3.number().min(1).required("Min price is required")
|
|
4611
|
-
}),
|
|
4612
|
-
producedIn: yup3.array().of(yup3.string().defined()).min(1, "Produced in list must contain at least one item").required("Produced in is required"),
|
|
4613
|
-
stallSize: yup3.object().shape({
|
|
4614
|
-
depth: yup3.number().min(1).required("Depth is required"),
|
|
4615
|
-
width: yup3.number().min(1).required("Width is required")
|
|
4614
|
+
product: yup3.object().shape({
|
|
4615
|
+
foodFlavors: yup3.array().of(
|
|
4616
|
+
yup3.mixed().oneOf(Object.values(EnumFoodFlavor)).defined()
|
|
4617
|
+
).min(1, "Food flavors list must contain at least one item").required("Food flavors are required"),
|
|
4618
|
+
packaging: yup3.array().of(yup3.string().defined()).min(1, "Packaging list must contain at least one item").required("Packaging is required"),
|
|
4619
|
+
priceRange: yup3.object().shape({
|
|
4620
|
+
max: yup3.number().min(1).required("Max price is required").test(
|
|
4621
|
+
"is-greater",
|
|
4622
|
+
"Max price must be greater than or equal to Min price",
|
|
4623
|
+
function(max) {
|
|
4624
|
+
const { min } = this.parent;
|
|
4625
|
+
return max >= min;
|
|
4626
|
+
}
|
|
4627
|
+
),
|
|
4628
|
+
min: yup3.number().min(1).required("Min price is required")
|
|
4629
|
+
}),
|
|
4630
|
+
producedIn: yup3.array().of(yup3.string().defined()).min(1, "Produced in list must contain at least one item").required("Produced in is required")
|
|
4616
4631
|
}),
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4632
|
+
requirements: yup3.object().shape({
|
|
4633
|
+
electricity: yup3.object().shape({
|
|
4634
|
+
details: yup3.string().trim().test("details-required", "Please add details", function(value) {
|
|
4635
|
+
return !this.parent?.isRequired || (value?.trim().length ?? 0) > 0;
|
|
4636
|
+
}).nullable(),
|
|
4637
|
+
isRequired: yup3.boolean().required("Electricity requirement is required")
|
|
4638
|
+
}),
|
|
4639
|
+
gazebo: yup3.object().shape({
|
|
4640
|
+
details: yup3.string().trim().test("details-required", "Please add details", function(value) {
|
|
4641
|
+
return !this.parent?.isRequired || (value?.trim().length ?? 0) > 0;
|
|
4642
|
+
}).nullable(),
|
|
4643
|
+
isRequired: yup3.boolean().required("Gazebo requirement is required")
|
|
4644
|
+
}),
|
|
4645
|
+
table: yup3.object().shape({
|
|
4646
|
+
details: yup3.string().trim().test("details-required", "Please add details", function(value) {
|
|
4647
|
+
return !this.parent?.isRequired || (value?.trim().length ?? 0) > 0;
|
|
4648
|
+
}).nullable(),
|
|
4649
|
+
isRequired: yup3.boolean().required("Table requirement is required")
|
|
4650
|
+
})
|
|
4651
|
+
}).optional(),
|
|
4652
|
+
stallInfo: yup3.object().shape({
|
|
4653
|
+
size: yup3.object().shape({
|
|
4654
|
+
depth: yup3.number().min(1).required("Depth is required"),
|
|
4655
|
+
width: yup3.number().min(1).required("Width is required")
|
|
4656
|
+
})
|
|
4622
4657
|
}),
|
|
4623
4658
|
vendorId: yup3.string().trim().required("Vendor ID is required")
|
|
4624
4659
|
});
|
|
@@ -4669,7 +4704,7 @@ import * as yup6 from "yup";
|
|
|
4669
4704
|
var testersSchema = yup6.object().shape({
|
|
4670
4705
|
categories: yup6.array().nullable().when("resourceType", {
|
|
4671
4706
|
is: "vendor" /* VENDOR */,
|
|
4672
|
-
then: () => categorySchema.min(1, "Category list must contain at least one item").required("Categories
|
|
4707
|
+
then: () => categorySchema.min(1, "Category list must contain at least one item").required("Categories required"),
|
|
4673
4708
|
otherwise: () => yup6.array().nullable().notRequired()
|
|
4674
4709
|
}),
|
|
4675
4710
|
companyName: yup6.string().required("Company name is required"),
|
|
@@ -4677,6 +4712,7 @@ var testersSchema = yup6.object().shape({
|
|
|
4677
4712
|
firstName: yup6.string().required("First name is required"),
|
|
4678
4713
|
lastName: yup6.string().required("Last name is required"),
|
|
4679
4714
|
osType: yup6.mixed().oneOf(Object.values(EnumOSPlatform), "Please select Android or iOS device").required("OS Type is required"),
|
|
4715
|
+
region: yup6.string().required("Region is required"),
|
|
4680
4716
|
resourceType: yup6.mixed().oneOf(Object.values(EnumResourceType), "Please select Event or Vendor").required("Resource Type is required")
|
|
4681
4717
|
});
|
|
4682
4718
|
|
|
@@ -4771,8 +4807,8 @@ var globalDefaultValues = {
|
|
|
4771
4807
|
logo: null,
|
|
4772
4808
|
logoUpload: null,
|
|
4773
4809
|
name: "",
|
|
4774
|
-
promoCode: "",
|
|
4775
4810
|
partners: null,
|
|
4811
|
+
promoCode: "",
|
|
4776
4812
|
region: "",
|
|
4777
4813
|
socialMedia: []
|
|
4778
4814
|
};
|
|
@@ -4837,20 +4873,33 @@ var defaultVendorFormValues = {
|
|
|
4837
4873
|
vendorType: "stallholder" /* STALLHOLDER */
|
|
4838
4874
|
};
|
|
4839
4875
|
var defaultVendorInfoFormValues = {
|
|
4876
|
+
availability: {
|
|
4877
|
+
corporate: false,
|
|
4878
|
+
private: false,
|
|
4879
|
+
school: false
|
|
4880
|
+
},
|
|
4881
|
+
compliance: { foodBeverageLicense: false, liabilityInsurance: false },
|
|
4840
4882
|
contactDetails: {
|
|
4841
4883
|
email: null,
|
|
4842
4884
|
landlinePhone: null,
|
|
4843
4885
|
mobilePhone: null
|
|
4844
4886
|
},
|
|
4845
|
-
electricity: { details: null, isRequired: false },
|
|
4846
4887
|
foodSafetyGradeFiles: null,
|
|
4847
4888
|
foodSafetyGradeFilesUpload: null,
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
|
|
4853
|
-
|
|
4889
|
+
product: {
|
|
4890
|
+
foodFlavors: [],
|
|
4891
|
+
packaging: [],
|
|
4892
|
+
priceRange: { max: 0, min: 0 },
|
|
4893
|
+
producedIn: []
|
|
4894
|
+
},
|
|
4895
|
+
requirements: {
|
|
4896
|
+
electricity: { details: null, isRequired: false },
|
|
4897
|
+
gazebo: { details: null, isRequired: false },
|
|
4898
|
+
table: { details: null, isRequired: false }
|
|
4899
|
+
},
|
|
4900
|
+
stallInfo: {
|
|
4901
|
+
size: { depth: 0, width: 0 }
|
|
4902
|
+
},
|
|
4854
4903
|
vendorId: ""
|
|
4855
4904
|
};
|
|
4856
4905
|
function mapBaseResourceTypeToFormData(data) {
|
|
@@ -4979,16 +5028,14 @@ function useVendorInfoForm(data) {
|
|
|
4979
5028
|
if (data) {
|
|
4980
5029
|
reset({
|
|
4981
5030
|
_id: data._id,
|
|
5031
|
+
availability: data.availability,
|
|
5032
|
+
compliance: data.compliance,
|
|
4982
5033
|
contactDetails: data.contactDetails,
|
|
4983
|
-
electricity: data.electricity,
|
|
4984
5034
|
foodSafetyGradeFiles: data.foodSafetyGradeFiles,
|
|
4985
5035
|
foodSafetyGradeFilesUpload: data.foodSafetyGradeFilesUpload,
|
|
4986
|
-
|
|
4987
|
-
|
|
4988
|
-
|
|
4989
|
-
producedIn: data.producedIn,
|
|
4990
|
-
stallSize: data.stallSize,
|
|
4991
|
-
table: data.table,
|
|
5036
|
+
product: data.product,
|
|
5037
|
+
requirements: data.requirements,
|
|
5038
|
+
stallInfo: data.stallInfo,
|
|
4992
5039
|
vendorId: data.vendorId
|
|
4993
5040
|
});
|
|
4994
5041
|
} else {
|
|
@@ -4997,32 +5044,28 @@ function useVendorInfoForm(data) {
|
|
|
4997
5044
|
}, [data]);
|
|
4998
5045
|
const {
|
|
4999
5046
|
_id,
|
|
5047
|
+
availability,
|
|
5048
|
+
compliance,
|
|
5000
5049
|
contactDetails,
|
|
5001
|
-
electricity,
|
|
5002
5050
|
foodSafetyGradeFiles,
|
|
5003
5051
|
foodSafetyGradeFilesUpload,
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
vendorId,
|
|
5009
|
-
stallSize,
|
|
5010
|
-
table
|
|
5052
|
+
product,
|
|
5053
|
+
requirements,
|
|
5054
|
+
stallInfo,
|
|
5055
|
+
vendorId
|
|
5011
5056
|
} = getValues();
|
|
5012
5057
|
return {
|
|
5013
5058
|
control,
|
|
5014
5059
|
fields: {
|
|
5015
5060
|
_id,
|
|
5061
|
+
availability,
|
|
5062
|
+
compliance,
|
|
5016
5063
|
contactDetails,
|
|
5017
|
-
electricity,
|
|
5018
5064
|
foodSafetyGradeFiles,
|
|
5019
5065
|
foodSafetyGradeFilesUpload,
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
producedIn,
|
|
5024
|
-
stallSize,
|
|
5025
|
-
table,
|
|
5066
|
+
product,
|
|
5067
|
+
requirements,
|
|
5068
|
+
stallInfo,
|
|
5026
5069
|
vendorId
|
|
5027
5070
|
},
|
|
5028
5071
|
formState: { errors },
|
|
@@ -5466,6 +5509,7 @@ var defaultValues7 = {
|
|
|
5466
5509
|
firstName: "",
|
|
5467
5510
|
lastName: "",
|
|
5468
5511
|
osType: "",
|
|
5512
|
+
region: "",
|
|
5469
5513
|
resourceType: ""
|
|
5470
5514
|
};
|
|
5471
5515
|
function useTestersForm(data) {
|
|
@@ -5490,6 +5534,7 @@ function useTestersForm(data) {
|
|
|
5490
5534
|
firstName: data.firstName,
|
|
5491
5535
|
lastName: data.lastName,
|
|
5492
5536
|
osType: data.osType,
|
|
5537
|
+
region: data.region,
|
|
5493
5538
|
resourceType: data.resourceType
|
|
5494
5539
|
});
|
|
5495
5540
|
} else {
|
|
@@ -5503,6 +5548,7 @@ function useTestersForm(data) {
|
|
|
5503
5548
|
firstName,
|
|
5504
5549
|
lastName,
|
|
5505
5550
|
osType,
|
|
5551
|
+
region,
|
|
5506
5552
|
resourceType
|
|
5507
5553
|
} = getValues();
|
|
5508
5554
|
return {
|
|
@@ -5514,6 +5560,7 @@ function useTestersForm(data) {
|
|
|
5514
5560
|
firstName,
|
|
5515
5561
|
lastName,
|
|
5516
5562
|
osType,
|
|
5563
|
+
region,
|
|
5517
5564
|
resourceType
|
|
5518
5565
|
},
|
|
5519
5566
|
formState: { errors },
|
|
@@ -5751,6 +5798,7 @@ export {
|
|
|
5751
5798
|
EnumAdType,
|
|
5752
5799
|
EnumChatType,
|
|
5753
5800
|
EnumEventType,
|
|
5801
|
+
EnumFoodFlavor,
|
|
5754
5802
|
EnumInviteStatus,
|
|
5755
5803
|
EnumNotificationResourceType,
|
|
5756
5804
|
EnumNotificationType,
|