@timardex/cluemart-shared 1.5.576 → 1.5.578
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-BGsVCKav.d.ts → auth-BuXYoJKL.d.ts} +1 -1
- package/dist/{auth-UNbE8epf.d.mts → auth-CJ-AOZJF.d.mts} +1 -1
- package/dist/{chunk-XK4M3AXN.mjs → chunk-CLMUENGY.mjs} +2 -1
- package/dist/chunk-CLMUENGY.mjs.map +1 -0
- package/dist/formFields/index.d.mts +1 -1
- package/dist/formFields/index.d.ts +1 -1
- package/dist/{global-XQu859k6.d.mts → global-DYOnOov2.d.mts} +2 -1
- package/dist/{global-D9nzYfrl.d.ts → global-DlFGiHZe.d.ts} +2 -1
- package/dist/graphql/index.cjs +1 -0
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +3 -3
- package/dist/graphql/index.d.ts +3 -3
- package/dist/graphql/index.mjs +1 -1
- package/dist/hooks/index.cjs +118 -64
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +12 -4
- package/dist/hooks/index.d.ts +12 -4
- package/dist/hooks/index.mjs +127 -75
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +118 -64
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +10 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.mjs +127 -74
- package/dist/index.mjs.map +1 -1
- package/dist/{post-DmW522tH.d.mts → post-BWE6TLGk.d.mts} +1 -1
- package/dist/{post-B7xBaeuB.d.ts → post-mcjCZnQ0.d.ts} +1 -1
- package/dist/{resourceActivities-DjZ3Hvzu.d.mts → resourceActivities-CEBQPKMs.d.mts} +1 -1
- package/dist/{resourceActivities-CJQ-ezLX.d.ts → resourceActivities-Cta0w6sK.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-XK4M3AXN.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -397,6 +397,7 @@ interface UnregisteredVendorFormData {
|
|
|
397
397
|
dateTime: DateTimeType[];
|
|
398
398
|
inviterId: string;
|
|
399
399
|
name: string;
|
|
400
|
+
region: string;
|
|
400
401
|
}
|
|
401
402
|
type CreateUnregisteredVendorFormData = CreateFormData<UnregisteredVendorFormData>;
|
|
402
403
|
type UnregisteredVendorInvitationType = Pick<UnregisteredVendorFormData, "dateTime" | "inviterId">;
|
|
@@ -2528,6 +2529,14 @@ declare function useVendorForm(data?: VendorFormData): CreateVendorFormData;
|
|
|
2528
2529
|
|
|
2529
2530
|
declare function useVendorInfoForm(data?: VendorInfoFormData): CreateVendorInfoFormData;
|
|
2530
2531
|
|
|
2532
|
+
/**
|
|
2533
|
+
* Custom hook to manage the vendor form state and validation.
|
|
2534
|
+
*
|
|
2535
|
+
* @param {UnregisteredVendorFormData} data - The initial form data.
|
|
2536
|
+
* @returns {CreateUnregisteredVendorFormData} - The form methods and state.
|
|
2537
|
+
*/
|
|
2538
|
+
declare function useUnregisteredVendorForm(data?: UnregisteredVendorFormData): CreateUnregisteredVendorFormData;
|
|
2539
|
+
|
|
2531
2540
|
/**
|
|
2532
2541
|
* Custom hook to manage the event form state and validation.
|
|
2533
2542
|
*
|
|
@@ -2716,4 +2725,4 @@ declare const ANDROID_URL = "https://play.google.com/store/apps/details?id=com.t
|
|
|
2716
2725
|
declare const SCHOOL_MIN_STUDENT_COUNT = 300;
|
|
2717
2726
|
declare const SCHOOL_MAX_STUDENT_COUNT = 0;
|
|
2718
2727
|
|
|
2719
|
-
export { ANDROID_URL, type AdFormData, type AdResource, type AdType, type AdminUpdateResourceType, type AppSettingsFormData, type AppSettingsType, type AssociateType, type BadgeBasename, type BadgeId, type BaseGameMap, type BaseGameType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageReaction, type ChatMessageReplyPreview, type ChatMessageSeen, type ChatMessageType, type ChatType, type CluiImageBasename, type CluiImageId, type ContactUsFormData, type CreateAdFormData, type CreateAppSettingsFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreatePartnerFormData, type CreatePostFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateSchoolFormData, type CreateUnregisteredVendorFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DailyClueBaseGame, type DailyClueGameData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumBillingPeriod, EnumChatReportReason, EnumChatType, EnumEventDateStatus, EnumEventType, EnumFoodFlavor, EnumFoodType, EnumGameStatus, EnumGameType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPartnerType, EnumPaymentMethod, EnumPostContentType, EnumPostType, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumSubscriptionStatus, EnumUserLicence, EnumUserRole, EnumVendorType, EnumVerificationType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventListItemType, type EventStatusType, type EventType, type FormDateField, type FormField, type GameDate, type GameDocType, type GameHistory, type GameLeaderboard, type GamePlacement, type GamePlacementClue, type GameType, type GeocodeLocation, type GlobalGameData, type GoogleAddressComponent, type GoogleImportedMarket, IMAGE_EXTENSION, IOS_URL, type IconBasename, type IconId, type ImageObjectType, ImageTypeEnum, type LocationGeoType, type LocationType, type LoginFormData, type LogoBasename, type LogoId, type MarketingMaterialRequestInputType, type MiniQuizAnswer, type MiniQuizAnsweredQuestion, type MiniQuizBaseGame, type MiniQuizGameData, type MiniQuizQuestion, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, type OtherImagesBasename, type OtherImagesId, type OwnerType, PROMO_CODE_PREFIX, type ParticipantType, type PartnerFormData, type PartnerType, type PaymentInfoType, type PlacePrediction, type PostContentData, type PostContentFormData, type PostContentGame, type PostContentImage, type PostContentList, type PostContentTextarea, type PostContentType, type PostContentVideo, type PostFileInput, type PostFormData, type PostType, type PosterAssetId, type PosterImageBasename, type PosterInputType, type PosterUsageType, type PromoCodeType, type RefundPolicy, type Region, type RegisterFormData, type RelationDate, type RelationType, type ReportChatUser, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceActivityEntry, type ResourceActivityInputType, type ResourceActivityType, type ResourceByUser, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceDetails, type ResourceImageType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, SCHOOL_MAX_STUDENT_COUNT, SCHOOL_MIN_STUDENT_COUNT, type SchoolCampaignType, type SchoolFormData, type SchoolRegisteredUserType, type SchoolReturnType, type SchoolType, type SocialMediaType, type StallType, type StripeSubscription, type Subcategory, type SubcategoryItems, type SubscriptionPlanData, type SubscriptionPlansResponse, type SubscriptionPricingData, type SubscriptionStatusData, type TermsAgreement, USER_STORAGE_KEY, type UnregisteredVendorFormData, type UnregisteredVendorInvitationType, type UnregisteredVendorType, type UseGetEventsByRegionOptions, type UserActivity, type UserActivityEvent, type UserFormData, type UserLicenceType, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorCalendarData, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorProductList, type VendorType, availableCategories, availableRegionOptions, availableRegionTypes, availableTagTypes, badgeFiles, badgeIds, badges, capitalizeFirstLetter, categoryColors, cluemartSocialMedia, cluiFiles, cluiIds, cluiImages, companyContactFields, computeDailyClueState, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultLocation, defaultPartnerFormValues, defaultUnregisteredVendorFormValues, defaultVendorFormValues, defaultVendorInfoFormValues, emailField, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatDate, formatTimestamp, gameScreenIdentifierList, gameTypeToDisplayName, getCurrentAndFutureDates, globalDefaultValues, iconFiles, iconIds, icons, isFutureDatesBeforeThreshold, isIsoDateString, licenseNiceNames, lightColors, loginFields, logoFiles, logoIds, logos, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, nzStartOfDay, otherImages, otherImagesFiles, otherImagesIds, packagingOptions, partnerBasicInfoFields, paymentMethodOptions, posterFiles, posterIds, posters, priceUnits, producedIngOptions, productLabelGroups, profileFields, refundPolicyOptions, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, seededShuffle, socialMediaFields, sortDatesChronologically, stallTypeOptions, statusOptions, tagOptions, timeFormat, toNZTime, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminPermanentlyDeleteResource, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useAppSettingsForm, useCancelSubscription, useContactUs, useContactUsForm, useCrawlGoogleMarkets, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePrivateChat, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateSchool, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteSchool, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useEventForm, useEventInfoForm, useGetAd, useGetAds, useGetAdsByRegion, useGetAppSettings, useGetChat, useGetChatSubscription, useGetChatsByRegion, useGetEvent, useGetEventByPlaceId, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetGame, useGetGameLeaderboard, useGetGames, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetPostsByType, useGetRelation, useGetRelationByEventAndVendor, useGetReportedChatUsers, useGetResourceActivity, useGetResourceConnections, useGetSchool, useGetSchools, useGetSubscriptionPlans, useGetSubscriptionStatus, useGetUnregisteredVendor, useGetUnregisteredVendors, useGetUnregisteredVendorsByInviterId, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserPartners, useGetUserResources, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLeaveGame, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkChatMessagesSeen, useMarkNotificationRead, usePartnerForm, usePostForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useReportChatUser, useRequestMarketingMaterial, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSchoolForm, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSelectStandardPackage, useSendChatMessage, useStartGame, useToggleChatMessageLike, useUpdateAd, useUpdateAppSettings, useUpdateDailyClueGame, useUpdateEvent, useUpdateEventInfo, useUpdateGoogleImportedMarkets, useUpdateMiniQuizGame, useUpdatePartner, useUpdatePost, useUpdateRelation, useUpdateSchool, useUpdateSubscriptionPlan, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, useVendorForm, useVendorInfoForm, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMenuFields, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
|
|
2728
|
+
export { ANDROID_URL, type AdFormData, type AdResource, type AdType, type AdminUpdateResourceType, type AppSettingsFormData, type AppSettingsType, type AssociateType, type BadgeBasename, type BadgeId, type BaseGameMap, type BaseGameType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageReaction, type ChatMessageReplyPreview, type ChatMessageSeen, type ChatMessageType, type ChatType, type CluiImageBasename, type CluiImageId, type ContactUsFormData, type CreateAdFormData, type CreateAppSettingsFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreatePartnerFormData, type CreatePostFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateSchoolFormData, type CreateUnregisteredVendorFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DailyClueBaseGame, type DailyClueGameData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumBillingPeriod, EnumChatReportReason, EnumChatType, EnumEventDateStatus, EnumEventType, EnumFoodFlavor, EnumFoodType, EnumGameStatus, EnumGameType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPartnerType, EnumPaymentMethod, EnumPostContentType, EnumPostType, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumSubscriptionStatus, EnumUserLicence, EnumUserRole, EnumVendorType, EnumVerificationType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventListItemType, type EventStatusType, type EventType, type FormDateField, type FormField, type GameDate, type GameDocType, type GameHistory, type GameLeaderboard, type GamePlacement, type GamePlacementClue, type GameType, type GeocodeLocation, type GlobalGameData, type GoogleAddressComponent, type GoogleImportedMarket, IMAGE_EXTENSION, IOS_URL, type IconBasename, type IconId, type ImageObjectType, ImageTypeEnum, type LocationGeoType, type LocationType, type LoginFormData, type LogoBasename, type LogoId, type MarketingMaterialRequestInputType, type MiniQuizAnswer, type MiniQuizAnsweredQuestion, type MiniQuizBaseGame, type MiniQuizGameData, type MiniQuizQuestion, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, type OtherImagesBasename, type OtherImagesId, type OwnerType, PROMO_CODE_PREFIX, type ParticipantType, type PartnerFormData, type PartnerType, type PaymentInfoType, type PlacePrediction, type PostContentData, type PostContentFormData, type PostContentGame, type PostContentImage, type PostContentList, type PostContentTextarea, type PostContentType, type PostContentVideo, type PostFileInput, type PostFormData, type PostType, type PosterAssetId, type PosterImageBasename, type PosterInputType, type PosterUsageType, type PromoCodeType, type RefundPolicy, type Region, type RegisterFormData, type RelationDate, type RelationType, type ReportChatUser, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceActivityEntry, type ResourceActivityInputType, type ResourceActivityType, type ResourceByUser, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceDetails, type ResourceImageType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, SCHOOL_MAX_STUDENT_COUNT, SCHOOL_MIN_STUDENT_COUNT, type SchoolCampaignType, type SchoolFormData, type SchoolRegisteredUserType, type SchoolReturnType, type SchoolType, type SocialMediaType, type StallType, type StripeSubscription, type Subcategory, type SubcategoryItems, type SubscriptionPlanData, type SubscriptionPlansResponse, type SubscriptionPricingData, type SubscriptionStatusData, type TermsAgreement, USER_STORAGE_KEY, type UnregisteredVendorFormData, type UnregisteredVendorInvitationType, type UnregisteredVendorType, type UseGetEventsByRegionOptions, type UserActivity, type UserActivityEvent, type UserFormData, type UserLicenceType, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorCalendarData, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorProductList, type VendorType, availableCategories, availableRegionOptions, availableRegionTypes, availableTagTypes, badgeFiles, badgeIds, badges, capitalizeFirstLetter, categoryColors, cluemartSocialMedia, cluiFiles, cluiIds, cluiImages, companyContactFields, computeDailyClueState, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultLocation, defaultPartnerFormValues, defaultUnregisteredVendorFormValues, defaultVendorFormValues, defaultVendorInfoFormValues, emailField, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatDate, formatTimestamp, gameScreenIdentifierList, gameTypeToDisplayName, getCurrentAndFutureDates, globalDefaultValues, iconFiles, iconIds, icons, isFutureDatesBeforeThreshold, isIsoDateString, licenseNiceNames, lightColors, loginFields, logoFiles, logoIds, logos, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, nzStartOfDay, otherImages, otherImagesFiles, otherImagesIds, packagingOptions, partnerBasicInfoFields, paymentMethodOptions, posterFiles, posterIds, posters, priceUnits, producedIngOptions, productLabelGroups, profileFields, refundPolicyOptions, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, seededShuffle, socialMediaFields, sortDatesChronologically, stallTypeOptions, statusOptions, tagOptions, timeFormat, toNZTime, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminPermanentlyDeleteResource, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useAppSettingsForm, useCancelSubscription, useContactUs, useContactUsForm, useCrawlGoogleMarkets, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePrivateChat, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateSchool, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteSchool, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useEventForm, useEventInfoForm, useGetAd, useGetAds, useGetAdsByRegion, useGetAppSettings, useGetChat, useGetChatSubscription, useGetChatsByRegion, useGetEvent, useGetEventByPlaceId, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetGame, useGetGameLeaderboard, useGetGames, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetPostsByType, useGetRelation, useGetRelationByEventAndVendor, useGetReportedChatUsers, useGetResourceActivity, useGetResourceConnections, useGetSchool, useGetSchools, useGetSubscriptionPlans, useGetSubscriptionStatus, useGetUnregisteredVendor, useGetUnregisteredVendors, useGetUnregisteredVendorsByInviterId, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserPartners, useGetUserResources, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLeaveGame, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkChatMessagesSeen, useMarkNotificationRead, usePartnerForm, usePostForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useReportChatUser, useRequestMarketingMaterial, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSchoolForm, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSelectStandardPackage, useSendChatMessage, useStartGame, useToggleChatMessageLike, useUnregisteredVendorForm, useUpdateAd, useUpdateAppSettings, useUpdateDailyClueGame, useUpdateEvent, useUpdateEventInfo, useUpdateGoogleImportedMarkets, useUpdateMiniQuizGame, useUpdatePartner, useUpdatePost, useUpdateRelation, useUpdateSchool, useUpdateSubscriptionPlan, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, useVendorForm, useVendorInfoForm, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMenuFields, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
|
package/dist/index.d.ts
CHANGED
|
@@ -397,6 +397,7 @@ interface UnregisteredVendorFormData {
|
|
|
397
397
|
dateTime: DateTimeType[];
|
|
398
398
|
inviterId: string;
|
|
399
399
|
name: string;
|
|
400
|
+
region: string;
|
|
400
401
|
}
|
|
401
402
|
type CreateUnregisteredVendorFormData = CreateFormData<UnregisteredVendorFormData>;
|
|
402
403
|
type UnregisteredVendorInvitationType = Pick<UnregisteredVendorFormData, "dateTime" | "inviterId">;
|
|
@@ -2528,6 +2529,14 @@ declare function useVendorForm(data?: VendorFormData): CreateVendorFormData;
|
|
|
2528
2529
|
|
|
2529
2530
|
declare function useVendorInfoForm(data?: VendorInfoFormData): CreateVendorInfoFormData;
|
|
2530
2531
|
|
|
2532
|
+
/**
|
|
2533
|
+
* Custom hook to manage the vendor form state and validation.
|
|
2534
|
+
*
|
|
2535
|
+
* @param {UnregisteredVendorFormData} data - The initial form data.
|
|
2536
|
+
* @returns {CreateUnregisteredVendorFormData} - The form methods and state.
|
|
2537
|
+
*/
|
|
2538
|
+
declare function useUnregisteredVendorForm(data?: UnregisteredVendorFormData): CreateUnregisteredVendorFormData;
|
|
2539
|
+
|
|
2531
2540
|
/**
|
|
2532
2541
|
* Custom hook to manage the event form state and validation.
|
|
2533
2542
|
*
|
|
@@ -2716,4 +2725,4 @@ declare const ANDROID_URL = "https://play.google.com/store/apps/details?id=com.t
|
|
|
2716
2725
|
declare const SCHOOL_MIN_STUDENT_COUNT = 300;
|
|
2717
2726
|
declare const SCHOOL_MAX_STUDENT_COUNT = 0;
|
|
2718
2727
|
|
|
2719
|
-
export { ANDROID_URL, type AdFormData, type AdResource, type AdType, type AdminUpdateResourceType, type AppSettingsFormData, type AppSettingsType, type AssociateType, type BadgeBasename, type BadgeId, type BaseGameMap, type BaseGameType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageReaction, type ChatMessageReplyPreview, type ChatMessageSeen, type ChatMessageType, type ChatType, type CluiImageBasename, type CluiImageId, type ContactUsFormData, type CreateAdFormData, type CreateAppSettingsFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreatePartnerFormData, type CreatePostFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateSchoolFormData, type CreateUnregisteredVendorFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DailyClueBaseGame, type DailyClueGameData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumBillingPeriod, EnumChatReportReason, EnumChatType, EnumEventDateStatus, EnumEventType, EnumFoodFlavor, EnumFoodType, EnumGameStatus, EnumGameType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPartnerType, EnumPaymentMethod, EnumPostContentType, EnumPostType, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumSubscriptionStatus, EnumUserLicence, EnumUserRole, EnumVendorType, EnumVerificationType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventListItemType, type EventStatusType, type EventType, type FormDateField, type FormField, type GameDate, type GameDocType, type GameHistory, type GameLeaderboard, type GamePlacement, type GamePlacementClue, type GameType, type GeocodeLocation, type GlobalGameData, type GoogleAddressComponent, type GoogleImportedMarket, IMAGE_EXTENSION, IOS_URL, type IconBasename, type IconId, type ImageObjectType, ImageTypeEnum, type LocationGeoType, type LocationType, type LoginFormData, type LogoBasename, type LogoId, type MarketingMaterialRequestInputType, type MiniQuizAnswer, type MiniQuizAnsweredQuestion, type MiniQuizBaseGame, type MiniQuizGameData, type MiniQuizQuestion, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, type OtherImagesBasename, type OtherImagesId, type OwnerType, PROMO_CODE_PREFIX, type ParticipantType, type PartnerFormData, type PartnerType, type PaymentInfoType, type PlacePrediction, type PostContentData, type PostContentFormData, type PostContentGame, type PostContentImage, type PostContentList, type PostContentTextarea, type PostContentType, type PostContentVideo, type PostFileInput, type PostFormData, type PostType, type PosterAssetId, type PosterImageBasename, type PosterInputType, type PosterUsageType, type PromoCodeType, type RefundPolicy, type Region, type RegisterFormData, type RelationDate, type RelationType, type ReportChatUser, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceActivityEntry, type ResourceActivityInputType, type ResourceActivityType, type ResourceByUser, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceDetails, type ResourceImageType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, SCHOOL_MAX_STUDENT_COUNT, SCHOOL_MIN_STUDENT_COUNT, type SchoolCampaignType, type SchoolFormData, type SchoolRegisteredUserType, type SchoolReturnType, type SchoolType, type SocialMediaType, type StallType, type StripeSubscription, type Subcategory, type SubcategoryItems, type SubscriptionPlanData, type SubscriptionPlansResponse, type SubscriptionPricingData, type SubscriptionStatusData, type TermsAgreement, USER_STORAGE_KEY, type UnregisteredVendorFormData, type UnregisteredVendorInvitationType, type UnregisteredVendorType, type UseGetEventsByRegionOptions, type UserActivity, type UserActivityEvent, type UserFormData, type UserLicenceType, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorCalendarData, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorProductList, type VendorType, availableCategories, availableRegionOptions, availableRegionTypes, availableTagTypes, badgeFiles, badgeIds, badges, capitalizeFirstLetter, categoryColors, cluemartSocialMedia, cluiFiles, cluiIds, cluiImages, companyContactFields, computeDailyClueState, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultLocation, defaultPartnerFormValues, defaultUnregisteredVendorFormValues, defaultVendorFormValues, defaultVendorInfoFormValues, emailField, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatDate, formatTimestamp, gameScreenIdentifierList, gameTypeToDisplayName, getCurrentAndFutureDates, globalDefaultValues, iconFiles, iconIds, icons, isFutureDatesBeforeThreshold, isIsoDateString, licenseNiceNames, lightColors, loginFields, logoFiles, logoIds, logos, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, nzStartOfDay, otherImages, otherImagesFiles, otherImagesIds, packagingOptions, partnerBasicInfoFields, paymentMethodOptions, posterFiles, posterIds, posters, priceUnits, producedIngOptions, productLabelGroups, profileFields, refundPolicyOptions, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, seededShuffle, socialMediaFields, sortDatesChronologically, stallTypeOptions, statusOptions, tagOptions, timeFormat, toNZTime, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminPermanentlyDeleteResource, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useAppSettingsForm, useCancelSubscription, useContactUs, useContactUsForm, useCrawlGoogleMarkets, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePrivateChat, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateSchool, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteSchool, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useEventForm, useEventInfoForm, useGetAd, useGetAds, useGetAdsByRegion, useGetAppSettings, useGetChat, useGetChatSubscription, useGetChatsByRegion, useGetEvent, useGetEventByPlaceId, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetGame, useGetGameLeaderboard, useGetGames, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetPostsByType, useGetRelation, useGetRelationByEventAndVendor, useGetReportedChatUsers, useGetResourceActivity, useGetResourceConnections, useGetSchool, useGetSchools, useGetSubscriptionPlans, useGetSubscriptionStatus, useGetUnregisteredVendor, useGetUnregisteredVendors, useGetUnregisteredVendorsByInviterId, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserPartners, useGetUserResources, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLeaveGame, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkChatMessagesSeen, useMarkNotificationRead, usePartnerForm, usePostForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useReportChatUser, useRequestMarketingMaterial, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSchoolForm, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSelectStandardPackage, useSendChatMessage, useStartGame, useToggleChatMessageLike, useUpdateAd, useUpdateAppSettings, useUpdateDailyClueGame, useUpdateEvent, useUpdateEventInfo, useUpdateGoogleImportedMarkets, useUpdateMiniQuizGame, useUpdatePartner, useUpdatePost, useUpdateRelation, useUpdateSchool, useUpdateSubscriptionPlan, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, useVendorForm, useVendorInfoForm, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMenuFields, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
|
|
2728
|
+
export { ANDROID_URL, type AdFormData, type AdResource, type AdType, type AdminUpdateResourceType, type AppSettingsFormData, type AppSettingsType, type AssociateType, type BadgeBasename, type BadgeId, type BaseGameMap, type BaseGameType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageReaction, type ChatMessageReplyPreview, type ChatMessageSeen, type ChatMessageType, type ChatType, type CluiImageBasename, type CluiImageId, type ContactUsFormData, type CreateAdFormData, type CreateAppSettingsFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreatePartnerFormData, type CreatePostFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateSchoolFormData, type CreateUnregisteredVendorFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DailyClueBaseGame, type DailyClueGameData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumBillingPeriod, EnumChatReportReason, EnumChatType, EnumEventDateStatus, EnumEventType, EnumFoodFlavor, EnumFoodType, EnumGameStatus, EnumGameType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPartnerType, EnumPaymentMethod, EnumPostContentType, EnumPostType, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumSubscriptionStatus, EnumUserLicence, EnumUserRole, EnumVendorType, EnumVerificationType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventListItemType, type EventStatusType, type EventType, type FormDateField, type FormField, type GameDate, type GameDocType, type GameHistory, type GameLeaderboard, type GamePlacement, type GamePlacementClue, type GameType, type GeocodeLocation, type GlobalGameData, type GoogleAddressComponent, type GoogleImportedMarket, IMAGE_EXTENSION, IOS_URL, type IconBasename, type IconId, type ImageObjectType, ImageTypeEnum, type LocationGeoType, type LocationType, type LoginFormData, type LogoBasename, type LogoId, type MarketingMaterialRequestInputType, type MiniQuizAnswer, type MiniQuizAnsweredQuestion, type MiniQuizBaseGame, type MiniQuizGameData, type MiniQuizQuestion, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, type OtherImagesBasename, type OtherImagesId, type OwnerType, PROMO_CODE_PREFIX, type ParticipantType, type PartnerFormData, type PartnerType, type PaymentInfoType, type PlacePrediction, type PostContentData, type PostContentFormData, type PostContentGame, type PostContentImage, type PostContentList, type PostContentTextarea, type PostContentType, type PostContentVideo, type PostFileInput, type PostFormData, type PostType, type PosterAssetId, type PosterImageBasename, type PosterInputType, type PosterUsageType, type PromoCodeType, type RefundPolicy, type Region, type RegisterFormData, type RelationDate, type RelationType, type ReportChatUser, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceActivityEntry, type ResourceActivityInputType, type ResourceActivityType, type ResourceByUser, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceDetails, type ResourceImageType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, SCHOOL_MAX_STUDENT_COUNT, SCHOOL_MIN_STUDENT_COUNT, type SchoolCampaignType, type SchoolFormData, type SchoolRegisteredUserType, type SchoolReturnType, type SchoolType, type SocialMediaType, type StallType, type StripeSubscription, type Subcategory, type SubcategoryItems, type SubscriptionPlanData, type SubscriptionPlansResponse, type SubscriptionPricingData, type SubscriptionStatusData, type TermsAgreement, USER_STORAGE_KEY, type UnregisteredVendorFormData, type UnregisteredVendorInvitationType, type UnregisteredVendorType, type UseGetEventsByRegionOptions, type UserActivity, type UserActivityEvent, type UserFormData, type UserLicenceType, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorCalendarData, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorProductList, type VendorType, availableCategories, availableRegionOptions, availableRegionTypes, availableTagTypes, badgeFiles, badgeIds, badges, capitalizeFirstLetter, categoryColors, cluemartSocialMedia, cluiFiles, cluiIds, cluiImages, companyContactFields, computeDailyClueState, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultLocation, defaultPartnerFormValues, defaultUnregisteredVendorFormValues, defaultVendorFormValues, defaultVendorInfoFormValues, emailField, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatDate, formatTimestamp, gameScreenIdentifierList, gameTypeToDisplayName, getCurrentAndFutureDates, globalDefaultValues, iconFiles, iconIds, icons, isFutureDatesBeforeThreshold, isIsoDateString, licenseNiceNames, lightColors, loginFields, logoFiles, logoIds, logos, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, nzStartOfDay, otherImages, otherImagesFiles, otherImagesIds, packagingOptions, partnerBasicInfoFields, paymentMethodOptions, posterFiles, posterIds, posters, priceUnits, producedIngOptions, productLabelGroups, profileFields, refundPolicyOptions, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, seededShuffle, socialMediaFields, sortDatesChronologically, stallTypeOptions, statusOptions, tagOptions, timeFormat, toNZTime, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminPermanentlyDeleteResource, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useAppSettingsForm, useCancelSubscription, useContactUs, useContactUsForm, useCrawlGoogleMarkets, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePrivateChat, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateSchool, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteSchool, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useEventForm, useEventInfoForm, useGetAd, useGetAds, useGetAdsByRegion, useGetAppSettings, useGetChat, useGetChatSubscription, useGetChatsByRegion, useGetEvent, useGetEventByPlaceId, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetGame, useGetGameLeaderboard, useGetGames, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetPostsByType, useGetRelation, useGetRelationByEventAndVendor, useGetReportedChatUsers, useGetResourceActivity, useGetResourceConnections, useGetSchool, useGetSchools, useGetSubscriptionPlans, useGetSubscriptionStatus, useGetUnregisteredVendor, useGetUnregisteredVendors, useGetUnregisteredVendorsByInviterId, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserPartners, useGetUserResources, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLeaveGame, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkChatMessagesSeen, useMarkNotificationRead, usePartnerForm, usePostForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useReportChatUser, useRequestMarketingMaterial, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSchoolForm, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSelectStandardPackage, useSendChatMessage, useStartGame, useToggleChatMessageLike, useUnregisteredVendorForm, useUpdateAd, useUpdateAppSettings, useUpdateDailyClueGame, useUpdateEvent, useUpdateEventInfo, useUpdateGoogleImportedMarkets, useUpdateMiniQuizGame, useUpdatePartner, useUpdatePost, useUpdateRelation, useUpdateSchool, useUpdateSubscriptionPlan, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, useVendorForm, useVendorInfoForm, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMenuFields, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
|
package/dist/index.mjs
CHANGED
|
@@ -3102,6 +3102,7 @@ var UNREGISTERED_VENDOR = gql4`
|
|
|
3102
3102
|
...UnregisteredVendorInvitationFields
|
|
3103
3103
|
}
|
|
3104
3104
|
name
|
|
3105
|
+
region
|
|
3105
3106
|
updatedAt
|
|
3106
3107
|
}
|
|
3107
3108
|
${UNREGISTERED_VENDOR_INVITATION_FRAGMENT}
|
|
@@ -6826,7 +6827,8 @@ var unregisteredVendorSchema = yup3.object().shape({
|
|
|
6826
6827
|
categoryIds: yup3.array().of(yup3.string().defined()).min(1, "Category list must contain at least one item").required("Categories are required"),
|
|
6827
6828
|
dateTime: yup3.array().of(dateTimeSchema).min(1, "DateTime list must contain at least one item").required("DateTime is required"),
|
|
6828
6829
|
inviterId: yup3.string().required("Inviter ID is required"),
|
|
6829
|
-
name: yup3.string().label("Stallholder Name").trim().min(3, "Name must be at least 3 characters").required("Name is required")
|
|
6830
|
+
name: yup3.string().label("Stallholder Name").trim().min(3, "Name must be at least 3 characters").required("Name is required"),
|
|
6831
|
+
region: yup3.string().label("Region").required("Region is required")
|
|
6830
6832
|
});
|
|
6831
6833
|
var vendorInfoSchema = yup3.object().shape({
|
|
6832
6834
|
product: yup3.object().shape({
|
|
@@ -7179,7 +7181,8 @@ var defaultUnregisteredVendorFormValues = {
|
|
|
7179
7181
|
categoryIds: [],
|
|
7180
7182
|
dateTime: [],
|
|
7181
7183
|
inviterId: "",
|
|
7182
|
-
name: ""
|
|
7184
|
+
name: "",
|
|
7185
|
+
region: ""
|
|
7183
7186
|
};
|
|
7184
7187
|
var defaultVendorInfoFormValues = {
|
|
7185
7188
|
compliance: { foodBeverageLicense: false, liabilityInsurance: false },
|
|
@@ -7377,11 +7380,11 @@ function useVendorInfoForm(data) {
|
|
|
7377
7380
|
};
|
|
7378
7381
|
}
|
|
7379
7382
|
|
|
7380
|
-
// src/hooks/
|
|
7383
|
+
// src/hooks/vendor/useUnregisteredVendorForm.ts
|
|
7381
7384
|
import { yupResolver as yupResolver3 } from "@hookform/resolvers/yup";
|
|
7382
7385
|
import * as React3 from "react";
|
|
7383
7386
|
import { useForm as useForm3 } from "react-hook-form";
|
|
7384
|
-
function
|
|
7387
|
+
function useUnregisteredVendorForm(data) {
|
|
7385
7388
|
const {
|
|
7386
7389
|
control,
|
|
7387
7390
|
formState,
|
|
@@ -7391,10 +7394,59 @@ function useEventForm(data) {
|
|
|
7391
7394
|
setValue,
|
|
7392
7395
|
watch
|
|
7393
7396
|
} = useForm3({
|
|
7394
|
-
defaultValues:
|
|
7395
|
-
resolver: yupResolver3(
|
|
7397
|
+
defaultValues: defaultUnregisteredVendorFormValues,
|
|
7398
|
+
resolver: yupResolver3(unregisteredVendorSchema)
|
|
7396
7399
|
});
|
|
7397
7400
|
React3.useEffect(() => {
|
|
7401
|
+
if (data) {
|
|
7402
|
+
reset({
|
|
7403
|
+
categoryIds: data.categoryIds,
|
|
7404
|
+
dateTime: data.dateTime,
|
|
7405
|
+
inviterId: data.inviterId,
|
|
7406
|
+
name: data.name,
|
|
7407
|
+
region: data.region
|
|
7408
|
+
});
|
|
7409
|
+
} else {
|
|
7410
|
+
reset(defaultUnregisteredVendorFormValues);
|
|
7411
|
+
}
|
|
7412
|
+
}, [data]);
|
|
7413
|
+
const { categoryIds, dateTime, inviterId, name, region } = getValues();
|
|
7414
|
+
return {
|
|
7415
|
+
control,
|
|
7416
|
+
fields: {
|
|
7417
|
+
categoryIds,
|
|
7418
|
+
dateTime,
|
|
7419
|
+
inviterId,
|
|
7420
|
+
name,
|
|
7421
|
+
region
|
|
7422
|
+
},
|
|
7423
|
+
formState,
|
|
7424
|
+
getValues,
|
|
7425
|
+
handleSubmit,
|
|
7426
|
+
reset,
|
|
7427
|
+
setValue,
|
|
7428
|
+
watch
|
|
7429
|
+
};
|
|
7430
|
+
}
|
|
7431
|
+
|
|
7432
|
+
// src/hooks/event/useEventForm.ts
|
|
7433
|
+
import { yupResolver as yupResolver4 } from "@hookform/resolvers/yup";
|
|
7434
|
+
import * as React4 from "react";
|
|
7435
|
+
import { useForm as useForm4 } from "react-hook-form";
|
|
7436
|
+
function useEventForm(data) {
|
|
7437
|
+
const {
|
|
7438
|
+
control,
|
|
7439
|
+
formState,
|
|
7440
|
+
getValues,
|
|
7441
|
+
handleSubmit,
|
|
7442
|
+
reset,
|
|
7443
|
+
setValue,
|
|
7444
|
+
watch
|
|
7445
|
+
} = useForm4({
|
|
7446
|
+
defaultValues: defaultEventFormValues,
|
|
7447
|
+
resolver: yupResolver4(eventSchema)
|
|
7448
|
+
});
|
|
7449
|
+
React4.useEffect(() => {
|
|
7398
7450
|
if (data) {
|
|
7399
7451
|
reset({
|
|
7400
7452
|
...mapBaseResourceTypeToFormData(data),
|
|
@@ -7480,9 +7532,9 @@ function useEventForm(data) {
|
|
|
7480
7532
|
}
|
|
7481
7533
|
|
|
7482
7534
|
// src/hooks/event/useEventInfoForm.ts
|
|
7483
|
-
import { yupResolver as
|
|
7484
|
-
import * as
|
|
7485
|
-
import { useForm as
|
|
7535
|
+
import { yupResolver as yupResolver5 } from "@hookform/resolvers/yup";
|
|
7536
|
+
import * as React5 from "react";
|
|
7537
|
+
import { useForm as useForm5 } from "react-hook-form";
|
|
7486
7538
|
function useEventInfoForm(data) {
|
|
7487
7539
|
const {
|
|
7488
7540
|
control,
|
|
@@ -7492,11 +7544,11 @@ function useEventInfoForm(data) {
|
|
|
7492
7544
|
reset,
|
|
7493
7545
|
setValue,
|
|
7494
7546
|
watch
|
|
7495
|
-
} =
|
|
7547
|
+
} = useForm5({
|
|
7496
7548
|
defaultValues: defaultEventInfoFormValues,
|
|
7497
|
-
resolver:
|
|
7549
|
+
resolver: yupResolver5(eventInfoSchema)
|
|
7498
7550
|
});
|
|
7499
|
-
|
|
7551
|
+
React5.useEffect(() => {
|
|
7500
7552
|
if (data) {
|
|
7501
7553
|
reset({
|
|
7502
7554
|
_id: data._id,
|
|
@@ -7547,9 +7599,9 @@ function useEventInfoForm(data) {
|
|
|
7547
7599
|
}
|
|
7548
7600
|
|
|
7549
7601
|
// src/hooks/useUserForm.ts
|
|
7550
|
-
import { yupResolver as
|
|
7551
|
-
import * as
|
|
7552
|
-
import { useForm as
|
|
7602
|
+
import { yupResolver as yupResolver6 } from "@hookform/resolvers/yup";
|
|
7603
|
+
import * as React6 from "react";
|
|
7604
|
+
import { useForm as useForm6 } from "react-hook-form";
|
|
7553
7605
|
var defaultValues = {
|
|
7554
7606
|
active: false,
|
|
7555
7607
|
avatar: null,
|
|
@@ -7572,11 +7624,11 @@ function useUserForm(data) {
|
|
|
7572
7624
|
reset,
|
|
7573
7625
|
setValue,
|
|
7574
7626
|
watch
|
|
7575
|
-
} =
|
|
7627
|
+
} = useForm6({
|
|
7576
7628
|
defaultValues,
|
|
7577
|
-
resolver:
|
|
7629
|
+
resolver: yupResolver6(userSchema)
|
|
7578
7630
|
});
|
|
7579
|
-
|
|
7631
|
+
React6.useEffect(() => {
|
|
7580
7632
|
if (data) {
|
|
7581
7633
|
reset({
|
|
7582
7634
|
_id: data._id,
|
|
@@ -7636,8 +7688,8 @@ function useUserForm(data) {
|
|
|
7636
7688
|
}
|
|
7637
7689
|
|
|
7638
7690
|
// src/hooks/auth/useLoginForm.ts
|
|
7639
|
-
import { yupResolver as
|
|
7640
|
-
import { useForm as
|
|
7691
|
+
import { yupResolver as yupResolver7 } from "@hookform/resolvers/yup";
|
|
7692
|
+
import { useForm as useForm7 } from "react-hook-form";
|
|
7641
7693
|
var defaultValues2 = {
|
|
7642
7694
|
email: "",
|
|
7643
7695
|
password: ""
|
|
@@ -7651,9 +7703,9 @@ function useLoginForm() {
|
|
|
7651
7703
|
reset,
|
|
7652
7704
|
setValue,
|
|
7653
7705
|
watch
|
|
7654
|
-
} =
|
|
7706
|
+
} = useForm7({
|
|
7655
7707
|
defaultValues: defaultValues2,
|
|
7656
|
-
resolver:
|
|
7708
|
+
resolver: yupResolver7(loginSchema)
|
|
7657
7709
|
});
|
|
7658
7710
|
const { email, password } = getValues();
|
|
7659
7711
|
return {
|
|
@@ -7672,8 +7724,8 @@ function useLoginForm() {
|
|
|
7672
7724
|
}
|
|
7673
7725
|
|
|
7674
7726
|
// src/hooks/auth/useRegisterForm.ts
|
|
7675
|
-
import { yupResolver as
|
|
7676
|
-
import { useForm as
|
|
7727
|
+
import { yupResolver as yupResolver8 } from "@hookform/resolvers/yup";
|
|
7728
|
+
import { useForm as useForm8 } from "react-hook-form";
|
|
7677
7729
|
var defaultValues3 = {
|
|
7678
7730
|
email: "",
|
|
7679
7731
|
firstName: "",
|
|
@@ -7692,9 +7744,9 @@ function useRegisterForm() {
|
|
|
7692
7744
|
reset,
|
|
7693
7745
|
setValue,
|
|
7694
7746
|
watch
|
|
7695
|
-
} =
|
|
7747
|
+
} = useForm8({
|
|
7696
7748
|
defaultValues: defaultValues3,
|
|
7697
|
-
resolver:
|
|
7749
|
+
resolver: yupResolver8(registerSchema)
|
|
7698
7750
|
});
|
|
7699
7751
|
const {
|
|
7700
7752
|
email,
|
|
@@ -7726,8 +7778,8 @@ function useRegisterForm() {
|
|
|
7726
7778
|
}
|
|
7727
7779
|
|
|
7728
7780
|
// src/hooks/auth/useRequestPasswordResetForm.ts
|
|
7729
|
-
import { yupResolver as
|
|
7730
|
-
import { useForm as
|
|
7781
|
+
import { yupResolver as yupResolver9 } from "@hookform/resolvers/yup";
|
|
7782
|
+
import { useForm as useForm9 } from "react-hook-form";
|
|
7731
7783
|
var defaultValues4 = {
|
|
7732
7784
|
email: ""
|
|
7733
7785
|
};
|
|
@@ -7740,9 +7792,9 @@ function useRequestPasswordResetForm() {
|
|
|
7740
7792
|
reset,
|
|
7741
7793
|
setValue,
|
|
7742
7794
|
watch
|
|
7743
|
-
} =
|
|
7795
|
+
} = useForm9({
|
|
7744
7796
|
defaultValues: defaultValues4,
|
|
7745
|
-
resolver:
|
|
7797
|
+
resolver: yupResolver9(requestPasswordResetSchema)
|
|
7746
7798
|
});
|
|
7747
7799
|
const { email } = getValues();
|
|
7748
7800
|
return {
|
|
@@ -7760,8 +7812,8 @@ function useRequestPasswordResetForm() {
|
|
|
7760
7812
|
}
|
|
7761
7813
|
|
|
7762
7814
|
// src/hooks/auth/useValidateVerificationTokenForm.ts
|
|
7763
|
-
import { yupResolver as
|
|
7764
|
-
import { useForm as
|
|
7815
|
+
import { yupResolver as yupResolver10 } from "@hookform/resolvers/yup";
|
|
7816
|
+
import { useForm as useForm10 } from "react-hook-form";
|
|
7765
7817
|
var defaultValues5 = {
|
|
7766
7818
|
email: "",
|
|
7767
7819
|
verificationToken: ""
|
|
@@ -7775,9 +7827,9 @@ function useValidateVerificationTokenForm() {
|
|
|
7775
7827
|
reset,
|
|
7776
7828
|
setValue,
|
|
7777
7829
|
watch
|
|
7778
|
-
} =
|
|
7830
|
+
} = useForm10({
|
|
7779
7831
|
defaultValues: defaultValues5,
|
|
7780
|
-
resolver:
|
|
7832
|
+
resolver: yupResolver10(validateVerificationTokenSchema)
|
|
7781
7833
|
});
|
|
7782
7834
|
const { email, verificationToken } = getValues();
|
|
7783
7835
|
return {
|
|
@@ -7796,8 +7848,8 @@ function useValidateVerificationTokenForm() {
|
|
|
7796
7848
|
}
|
|
7797
7849
|
|
|
7798
7850
|
// src/hooks/auth/useResetPasswordForm.ts
|
|
7799
|
-
import { yupResolver as
|
|
7800
|
-
import { useForm as
|
|
7851
|
+
import { yupResolver as yupResolver11 } from "@hookform/resolvers/yup";
|
|
7852
|
+
import { useForm as useForm11 } from "react-hook-form";
|
|
7801
7853
|
var defaultValues6 = {
|
|
7802
7854
|
confirmPassword: "",
|
|
7803
7855
|
email: "",
|
|
@@ -7812,9 +7864,9 @@ function useResetPasswordForm() {
|
|
|
7812
7864
|
reset,
|
|
7813
7865
|
setValue,
|
|
7814
7866
|
watch
|
|
7815
|
-
} =
|
|
7867
|
+
} = useForm11({
|
|
7816
7868
|
defaultValues: defaultValues6,
|
|
7817
|
-
resolver:
|
|
7869
|
+
resolver: yupResolver11(resetPasswordSchema)
|
|
7818
7870
|
});
|
|
7819
7871
|
const { confirmPassword, email, password } = getValues();
|
|
7820
7872
|
return {
|
|
@@ -7834,9 +7886,9 @@ function useResetPasswordForm() {
|
|
|
7834
7886
|
}
|
|
7835
7887
|
|
|
7836
7888
|
// src/hooks/useContactUsForm.ts
|
|
7837
|
-
import { yupResolver as
|
|
7838
|
-
import
|
|
7839
|
-
import { useForm as
|
|
7889
|
+
import { yupResolver as yupResolver12 } from "@hookform/resolvers/yup";
|
|
7890
|
+
import React7 from "react";
|
|
7891
|
+
import { useForm as useForm12 } from "react-hook-form";
|
|
7840
7892
|
|
|
7841
7893
|
// src/yupSchema/contactUs.ts
|
|
7842
7894
|
import * as yup10 from "yup";
|
|
@@ -7863,11 +7915,11 @@ function useContactUsForm(data) {
|
|
|
7863
7915
|
reset,
|
|
7864
7916
|
setValue,
|
|
7865
7917
|
watch
|
|
7866
|
-
} =
|
|
7918
|
+
} = useForm12({
|
|
7867
7919
|
defaultValues: defaultValues7,
|
|
7868
|
-
resolver:
|
|
7920
|
+
resolver: yupResolver12(contactUsSchema)
|
|
7869
7921
|
});
|
|
7870
|
-
|
|
7922
|
+
React7.useEffect(() => {
|
|
7871
7923
|
if (data) {
|
|
7872
7924
|
reset({
|
|
7873
7925
|
email: data.email,
|
|
@@ -7898,9 +7950,9 @@ function useContactUsForm(data) {
|
|
|
7898
7950
|
}
|
|
7899
7951
|
|
|
7900
7952
|
// src/hooks/useAdForm.ts
|
|
7901
|
-
import { yupResolver as
|
|
7902
|
-
import
|
|
7903
|
-
import { useForm as
|
|
7953
|
+
import { yupResolver as yupResolver13 } from "@hookform/resolvers/yup";
|
|
7954
|
+
import React8 from "react";
|
|
7955
|
+
import { useForm as useForm13 } from "react-hook-form";
|
|
7904
7956
|
var defaultValues8 = {
|
|
7905
7957
|
active: true,
|
|
7906
7958
|
end: /* @__PURE__ */ new Date(),
|
|
@@ -7934,11 +7986,11 @@ function useAdForm(data) {
|
|
|
7934
7986
|
reset,
|
|
7935
7987
|
setValue,
|
|
7936
7988
|
watch
|
|
7937
|
-
} =
|
|
7989
|
+
} = useForm13({
|
|
7938
7990
|
defaultValues: defaultValues8,
|
|
7939
|
-
resolver:
|
|
7991
|
+
resolver: yupResolver13(adSchema)
|
|
7940
7992
|
});
|
|
7941
|
-
|
|
7993
|
+
React8.useEffect(() => {
|
|
7942
7994
|
if (data) {
|
|
7943
7995
|
reset({
|
|
7944
7996
|
active: data.active,
|
|
@@ -7975,9 +8027,9 @@ function useAdForm(data) {
|
|
|
7975
8027
|
}
|
|
7976
8028
|
|
|
7977
8029
|
// src/hooks/partner/usePartnerForm.ts
|
|
7978
|
-
import { yupResolver as
|
|
7979
|
-
import * as
|
|
7980
|
-
import { useForm as
|
|
8030
|
+
import { yupResolver as yupResolver14 } from "@hookform/resolvers/yup";
|
|
8031
|
+
import * as React9 from "react";
|
|
8032
|
+
import { useForm as useForm14 } from "react-hook-form";
|
|
7981
8033
|
function usePartnerForm(data) {
|
|
7982
8034
|
const {
|
|
7983
8035
|
control,
|
|
@@ -7987,11 +8039,11 @@ function usePartnerForm(data) {
|
|
|
7987
8039
|
reset,
|
|
7988
8040
|
setValue,
|
|
7989
8041
|
watch
|
|
7990
|
-
} =
|
|
8042
|
+
} = useForm14({
|
|
7991
8043
|
defaultValues: defaultPartnerFormValues,
|
|
7992
|
-
resolver:
|
|
8044
|
+
resolver: yupResolver14(partnerSchema)
|
|
7993
8045
|
});
|
|
7994
|
-
|
|
8046
|
+
React9.useEffect(() => {
|
|
7995
8047
|
if (data) {
|
|
7996
8048
|
reset({
|
|
7997
8049
|
...mapBaseResourceTypeToFormData(data),
|
|
@@ -8059,9 +8111,9 @@ function usePartnerForm(data) {
|
|
|
8059
8111
|
}
|
|
8060
8112
|
|
|
8061
8113
|
// src/hooks/usePostForm.ts
|
|
8062
|
-
import { yupResolver as
|
|
8063
|
-
import
|
|
8064
|
-
import { useForm as
|
|
8114
|
+
import { yupResolver as yupResolver15 } from "@hookform/resolvers/yup";
|
|
8115
|
+
import React10 from "react";
|
|
8116
|
+
import { useForm as useForm15 } from "react-hook-form";
|
|
8065
8117
|
var defaultValues9 = {
|
|
8066
8118
|
active: true,
|
|
8067
8119
|
caption: "",
|
|
@@ -8082,11 +8134,11 @@ function usePostForm(data) {
|
|
|
8082
8134
|
reset,
|
|
8083
8135
|
setValue,
|
|
8084
8136
|
watch
|
|
8085
|
-
} =
|
|
8137
|
+
} = useForm15({
|
|
8086
8138
|
defaultValues: defaultValues9,
|
|
8087
|
-
resolver:
|
|
8139
|
+
resolver: yupResolver15(postSchema)
|
|
8088
8140
|
});
|
|
8089
|
-
|
|
8141
|
+
React10.useEffect(() => {
|
|
8090
8142
|
if (data) {
|
|
8091
8143
|
reset({
|
|
8092
8144
|
active: data.active,
|
|
@@ -8137,9 +8189,9 @@ function usePostForm(data) {
|
|
|
8137
8189
|
}
|
|
8138
8190
|
|
|
8139
8191
|
// src/hooks/useAppSettingsForm.ts
|
|
8140
|
-
import { yupResolver as
|
|
8141
|
-
import
|
|
8142
|
-
import { useForm as
|
|
8192
|
+
import { yupResolver as yupResolver16 } from "@hookform/resolvers/yup";
|
|
8193
|
+
import React11 from "react";
|
|
8194
|
+
import { useForm as useForm16 } from "react-hook-form";
|
|
8143
8195
|
var defaultValues10 = {
|
|
8144
8196
|
appVersion: "",
|
|
8145
8197
|
isOfflineMode: false
|
|
@@ -8153,11 +8205,11 @@ function useAppSettingsForm(data) {
|
|
|
8153
8205
|
reset,
|
|
8154
8206
|
setValue,
|
|
8155
8207
|
watch
|
|
8156
|
-
} =
|
|
8208
|
+
} = useForm16({
|
|
8157
8209
|
defaultValues: defaultValues10,
|
|
8158
|
-
resolver:
|
|
8210
|
+
resolver: yupResolver16(appSettingsSchema)
|
|
8159
8211
|
});
|
|
8160
|
-
|
|
8212
|
+
React11.useEffect(() => {
|
|
8161
8213
|
if (data) {
|
|
8162
8214
|
reset({
|
|
8163
8215
|
appVersion: data.appVersion,
|
|
@@ -8184,9 +8236,9 @@ function useAppSettingsForm(data) {
|
|
|
8184
8236
|
}
|
|
8185
8237
|
|
|
8186
8238
|
// src/hooks/useSchoolForm.ts
|
|
8187
|
-
import { yupResolver as
|
|
8188
|
-
import { useEffect as
|
|
8189
|
-
import { useForm as
|
|
8239
|
+
import { yupResolver as yupResolver17 } from "@hookform/resolvers/yup";
|
|
8240
|
+
import { useEffect as useEffect8 } from "react";
|
|
8241
|
+
import { useForm as useForm17 } from "react-hook-form";
|
|
8190
8242
|
|
|
8191
8243
|
// src/yupSchema/school.ts
|
|
8192
8244
|
import * as yup11 from "yup";
|
|
@@ -8226,11 +8278,11 @@ function useSchoolForm(data) {
|
|
|
8226
8278
|
reset,
|
|
8227
8279
|
setValue,
|
|
8228
8280
|
watch
|
|
8229
|
-
} =
|
|
8281
|
+
} = useForm17({
|
|
8230
8282
|
defaultValues: defaultSchoolFormValues,
|
|
8231
|
-
resolver:
|
|
8283
|
+
resolver: yupResolver17(schoolSchema)
|
|
8232
8284
|
});
|
|
8233
|
-
|
|
8285
|
+
useEffect8(() => {
|
|
8234
8286
|
if (data) {
|
|
8235
8287
|
reset({
|
|
8236
8288
|
_id: data._id,
|
|
@@ -8720,6 +8772,7 @@ export {
|
|
|
8720
8772
|
useSendChatMessage,
|
|
8721
8773
|
useStartGame,
|
|
8722
8774
|
useToggleChatMessageLike,
|
|
8775
|
+
useUnregisteredVendorForm,
|
|
8723
8776
|
useUpdateAd,
|
|
8724
8777
|
useUpdateAppSettings,
|
|
8725
8778
|
useUpdateDailyClueGame,
|