@timardex/cluemart-shared 1.5.576 → 1.5.577
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-71Q_K5cL.d.ts} +1 -1
- package/dist/{auth-UNbE8epf.d.mts → auth-wxdjNbHv.d.mts} +1 -1
- package/dist/formFields/index.d.mts +1 -1
- package/dist/formFields/index.d.ts +1 -1
- package/dist/{global-XQu859k6.d.mts → global-C1K1nbMW.d.mts} +1 -1
- package/dist/{global-D9nzYfrl.d.ts → global-C_2jiw0X.d.ts} +1 -1
- package/dist/graphql/index.d.mts +3 -3
- package/dist/graphql/index.d.ts +3 -3
- package/dist/hooks/index.cjs +111 -62
- 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 +120 -72
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +111 -62
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.mjs +120 -72
- package/dist/index.mjs.map +1 -1
- package/dist/{post-B7xBaeuB.d.ts → post-Bfv08ew6.d.ts} +1 -1
- package/dist/{post-DmW522tH.d.mts → post-sAvu92I6.d.mts} +1 -1
- package/dist/{resourceActivities-CJQ-ezLX.d.ts → resourceActivities-BPsBLSh7.d.ts} +1 -1
- package/dist/{resourceActivities-DjZ3Hvzu.d.mts → resourceActivities-DPdlpw6m.d.mts} +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/index.d.mts
CHANGED
|
@@ -2528,6 +2528,14 @@ declare function useVendorForm(data?: VendorFormData): CreateVendorFormData;
|
|
|
2528
2528
|
|
|
2529
2529
|
declare function useVendorInfoForm(data?: VendorInfoFormData): CreateVendorInfoFormData;
|
|
2530
2530
|
|
|
2531
|
+
/**
|
|
2532
|
+
* Custom hook to manage the vendor form state and validation.
|
|
2533
|
+
*
|
|
2534
|
+
* @param {UnregisteredVendorFormData} data - The initial form data.
|
|
2535
|
+
* @returns {CreateUnregisteredVendorFormData} - The form methods and state.
|
|
2536
|
+
*/
|
|
2537
|
+
declare function useUnregisteredVendorForm(data?: UnregisteredVendorFormData): CreateUnregisteredVendorFormData;
|
|
2538
|
+
|
|
2531
2539
|
/**
|
|
2532
2540
|
* Custom hook to manage the event form state and validation.
|
|
2533
2541
|
*
|
|
@@ -2716,4 +2724,4 @@ declare const ANDROID_URL = "https://play.google.com/store/apps/details?id=com.t
|
|
|
2716
2724
|
declare const SCHOOL_MIN_STUDENT_COUNT = 300;
|
|
2717
2725
|
declare const SCHOOL_MAX_STUDENT_COUNT = 0;
|
|
2718
2726
|
|
|
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 };
|
|
2727
|
+
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
|
@@ -2528,6 +2528,14 @@ declare function useVendorForm(data?: VendorFormData): CreateVendorFormData;
|
|
|
2528
2528
|
|
|
2529
2529
|
declare function useVendorInfoForm(data?: VendorInfoFormData): CreateVendorInfoFormData;
|
|
2530
2530
|
|
|
2531
|
+
/**
|
|
2532
|
+
* Custom hook to manage the vendor form state and validation.
|
|
2533
|
+
*
|
|
2534
|
+
* @param {UnregisteredVendorFormData} data - The initial form data.
|
|
2535
|
+
* @returns {CreateUnregisteredVendorFormData} - The form methods and state.
|
|
2536
|
+
*/
|
|
2537
|
+
declare function useUnregisteredVendorForm(data?: UnregisteredVendorFormData): CreateUnregisteredVendorFormData;
|
|
2538
|
+
|
|
2531
2539
|
/**
|
|
2532
2540
|
* Custom hook to manage the event form state and validation.
|
|
2533
2541
|
*
|
|
@@ -2716,4 +2724,4 @@ declare const ANDROID_URL = "https://play.google.com/store/apps/details?id=com.t
|
|
|
2716
2724
|
declare const SCHOOL_MIN_STUDENT_COUNT = 300;
|
|
2717
2725
|
declare const SCHOOL_MAX_STUDENT_COUNT = 0;
|
|
2718
2726
|
|
|
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 };
|
|
2727
|
+
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
|
@@ -7377,11 +7377,11 @@ function useVendorInfoForm(data) {
|
|
|
7377
7377
|
};
|
|
7378
7378
|
}
|
|
7379
7379
|
|
|
7380
|
-
// src/hooks/
|
|
7380
|
+
// src/hooks/vendor/useUnregisteredVendorForm.ts
|
|
7381
7381
|
import { yupResolver as yupResolver3 } from "@hookform/resolvers/yup";
|
|
7382
7382
|
import * as React3 from "react";
|
|
7383
7383
|
import { useForm as useForm3 } from "react-hook-form";
|
|
7384
|
-
function
|
|
7384
|
+
function useUnregisteredVendorForm(data) {
|
|
7385
7385
|
const {
|
|
7386
7386
|
control,
|
|
7387
7387
|
formState,
|
|
@@ -7391,10 +7391,57 @@ function useEventForm(data) {
|
|
|
7391
7391
|
setValue,
|
|
7392
7392
|
watch
|
|
7393
7393
|
} = useForm3({
|
|
7394
|
-
defaultValues:
|
|
7395
|
-
resolver: yupResolver3(
|
|
7394
|
+
defaultValues: defaultUnregisteredVendorFormValues,
|
|
7395
|
+
resolver: yupResolver3(unregisteredVendorSchema)
|
|
7396
7396
|
});
|
|
7397
7397
|
React3.useEffect(() => {
|
|
7398
|
+
if (data) {
|
|
7399
|
+
reset({
|
|
7400
|
+
categoryIds: data.categoryIds,
|
|
7401
|
+
dateTime: data.dateTime,
|
|
7402
|
+
inviterId: data.inviterId,
|
|
7403
|
+
name: data.name
|
|
7404
|
+
});
|
|
7405
|
+
} else {
|
|
7406
|
+
reset(defaultUnregisteredVendorFormValues);
|
|
7407
|
+
}
|
|
7408
|
+
}, [data]);
|
|
7409
|
+
const { categoryIds, dateTime, inviterId, name } = getValues();
|
|
7410
|
+
return {
|
|
7411
|
+
control,
|
|
7412
|
+
fields: {
|
|
7413
|
+
categoryIds,
|
|
7414
|
+
dateTime,
|
|
7415
|
+
inviterId,
|
|
7416
|
+
name
|
|
7417
|
+
},
|
|
7418
|
+
formState,
|
|
7419
|
+
getValues,
|
|
7420
|
+
handleSubmit,
|
|
7421
|
+
reset,
|
|
7422
|
+
setValue,
|
|
7423
|
+
watch
|
|
7424
|
+
};
|
|
7425
|
+
}
|
|
7426
|
+
|
|
7427
|
+
// src/hooks/event/useEventForm.ts
|
|
7428
|
+
import { yupResolver as yupResolver4 } from "@hookform/resolvers/yup";
|
|
7429
|
+
import * as React4 from "react";
|
|
7430
|
+
import { useForm as useForm4 } from "react-hook-form";
|
|
7431
|
+
function useEventForm(data) {
|
|
7432
|
+
const {
|
|
7433
|
+
control,
|
|
7434
|
+
formState,
|
|
7435
|
+
getValues,
|
|
7436
|
+
handleSubmit,
|
|
7437
|
+
reset,
|
|
7438
|
+
setValue,
|
|
7439
|
+
watch
|
|
7440
|
+
} = useForm4({
|
|
7441
|
+
defaultValues: defaultEventFormValues,
|
|
7442
|
+
resolver: yupResolver4(eventSchema)
|
|
7443
|
+
});
|
|
7444
|
+
React4.useEffect(() => {
|
|
7398
7445
|
if (data) {
|
|
7399
7446
|
reset({
|
|
7400
7447
|
...mapBaseResourceTypeToFormData(data),
|
|
@@ -7480,9 +7527,9 @@ function useEventForm(data) {
|
|
|
7480
7527
|
}
|
|
7481
7528
|
|
|
7482
7529
|
// src/hooks/event/useEventInfoForm.ts
|
|
7483
|
-
import { yupResolver as
|
|
7484
|
-
import * as
|
|
7485
|
-
import { useForm as
|
|
7530
|
+
import { yupResolver as yupResolver5 } from "@hookform/resolvers/yup";
|
|
7531
|
+
import * as React5 from "react";
|
|
7532
|
+
import { useForm as useForm5 } from "react-hook-form";
|
|
7486
7533
|
function useEventInfoForm(data) {
|
|
7487
7534
|
const {
|
|
7488
7535
|
control,
|
|
@@ -7492,11 +7539,11 @@ function useEventInfoForm(data) {
|
|
|
7492
7539
|
reset,
|
|
7493
7540
|
setValue,
|
|
7494
7541
|
watch
|
|
7495
|
-
} =
|
|
7542
|
+
} = useForm5({
|
|
7496
7543
|
defaultValues: defaultEventInfoFormValues,
|
|
7497
|
-
resolver:
|
|
7544
|
+
resolver: yupResolver5(eventInfoSchema)
|
|
7498
7545
|
});
|
|
7499
|
-
|
|
7546
|
+
React5.useEffect(() => {
|
|
7500
7547
|
if (data) {
|
|
7501
7548
|
reset({
|
|
7502
7549
|
_id: data._id,
|
|
@@ -7547,9 +7594,9 @@ function useEventInfoForm(data) {
|
|
|
7547
7594
|
}
|
|
7548
7595
|
|
|
7549
7596
|
// src/hooks/useUserForm.ts
|
|
7550
|
-
import { yupResolver as
|
|
7551
|
-
import * as
|
|
7552
|
-
import { useForm as
|
|
7597
|
+
import { yupResolver as yupResolver6 } from "@hookform/resolvers/yup";
|
|
7598
|
+
import * as React6 from "react";
|
|
7599
|
+
import { useForm as useForm6 } from "react-hook-form";
|
|
7553
7600
|
var defaultValues = {
|
|
7554
7601
|
active: false,
|
|
7555
7602
|
avatar: null,
|
|
@@ -7572,11 +7619,11 @@ function useUserForm(data) {
|
|
|
7572
7619
|
reset,
|
|
7573
7620
|
setValue,
|
|
7574
7621
|
watch
|
|
7575
|
-
} =
|
|
7622
|
+
} = useForm6({
|
|
7576
7623
|
defaultValues,
|
|
7577
|
-
resolver:
|
|
7624
|
+
resolver: yupResolver6(userSchema)
|
|
7578
7625
|
});
|
|
7579
|
-
|
|
7626
|
+
React6.useEffect(() => {
|
|
7580
7627
|
if (data) {
|
|
7581
7628
|
reset({
|
|
7582
7629
|
_id: data._id,
|
|
@@ -7636,8 +7683,8 @@ function useUserForm(data) {
|
|
|
7636
7683
|
}
|
|
7637
7684
|
|
|
7638
7685
|
// src/hooks/auth/useLoginForm.ts
|
|
7639
|
-
import { yupResolver as
|
|
7640
|
-
import { useForm as
|
|
7686
|
+
import { yupResolver as yupResolver7 } from "@hookform/resolvers/yup";
|
|
7687
|
+
import { useForm as useForm7 } from "react-hook-form";
|
|
7641
7688
|
var defaultValues2 = {
|
|
7642
7689
|
email: "",
|
|
7643
7690
|
password: ""
|
|
@@ -7651,9 +7698,9 @@ function useLoginForm() {
|
|
|
7651
7698
|
reset,
|
|
7652
7699
|
setValue,
|
|
7653
7700
|
watch
|
|
7654
|
-
} =
|
|
7701
|
+
} = useForm7({
|
|
7655
7702
|
defaultValues: defaultValues2,
|
|
7656
|
-
resolver:
|
|
7703
|
+
resolver: yupResolver7(loginSchema)
|
|
7657
7704
|
});
|
|
7658
7705
|
const { email, password } = getValues();
|
|
7659
7706
|
return {
|
|
@@ -7672,8 +7719,8 @@ function useLoginForm() {
|
|
|
7672
7719
|
}
|
|
7673
7720
|
|
|
7674
7721
|
// src/hooks/auth/useRegisterForm.ts
|
|
7675
|
-
import { yupResolver as
|
|
7676
|
-
import { useForm as
|
|
7722
|
+
import { yupResolver as yupResolver8 } from "@hookform/resolvers/yup";
|
|
7723
|
+
import { useForm as useForm8 } from "react-hook-form";
|
|
7677
7724
|
var defaultValues3 = {
|
|
7678
7725
|
email: "",
|
|
7679
7726
|
firstName: "",
|
|
@@ -7692,9 +7739,9 @@ function useRegisterForm() {
|
|
|
7692
7739
|
reset,
|
|
7693
7740
|
setValue,
|
|
7694
7741
|
watch
|
|
7695
|
-
} =
|
|
7742
|
+
} = useForm8({
|
|
7696
7743
|
defaultValues: defaultValues3,
|
|
7697
|
-
resolver:
|
|
7744
|
+
resolver: yupResolver8(registerSchema)
|
|
7698
7745
|
});
|
|
7699
7746
|
const {
|
|
7700
7747
|
email,
|
|
@@ -7726,8 +7773,8 @@ function useRegisterForm() {
|
|
|
7726
7773
|
}
|
|
7727
7774
|
|
|
7728
7775
|
// src/hooks/auth/useRequestPasswordResetForm.ts
|
|
7729
|
-
import { yupResolver as
|
|
7730
|
-
import { useForm as
|
|
7776
|
+
import { yupResolver as yupResolver9 } from "@hookform/resolvers/yup";
|
|
7777
|
+
import { useForm as useForm9 } from "react-hook-form";
|
|
7731
7778
|
var defaultValues4 = {
|
|
7732
7779
|
email: ""
|
|
7733
7780
|
};
|
|
@@ -7740,9 +7787,9 @@ function useRequestPasswordResetForm() {
|
|
|
7740
7787
|
reset,
|
|
7741
7788
|
setValue,
|
|
7742
7789
|
watch
|
|
7743
|
-
} =
|
|
7790
|
+
} = useForm9({
|
|
7744
7791
|
defaultValues: defaultValues4,
|
|
7745
|
-
resolver:
|
|
7792
|
+
resolver: yupResolver9(requestPasswordResetSchema)
|
|
7746
7793
|
});
|
|
7747
7794
|
const { email } = getValues();
|
|
7748
7795
|
return {
|
|
@@ -7760,8 +7807,8 @@ function useRequestPasswordResetForm() {
|
|
|
7760
7807
|
}
|
|
7761
7808
|
|
|
7762
7809
|
// src/hooks/auth/useValidateVerificationTokenForm.ts
|
|
7763
|
-
import { yupResolver as
|
|
7764
|
-
import { useForm as
|
|
7810
|
+
import { yupResolver as yupResolver10 } from "@hookform/resolvers/yup";
|
|
7811
|
+
import { useForm as useForm10 } from "react-hook-form";
|
|
7765
7812
|
var defaultValues5 = {
|
|
7766
7813
|
email: "",
|
|
7767
7814
|
verificationToken: ""
|
|
@@ -7775,9 +7822,9 @@ function useValidateVerificationTokenForm() {
|
|
|
7775
7822
|
reset,
|
|
7776
7823
|
setValue,
|
|
7777
7824
|
watch
|
|
7778
|
-
} =
|
|
7825
|
+
} = useForm10({
|
|
7779
7826
|
defaultValues: defaultValues5,
|
|
7780
|
-
resolver:
|
|
7827
|
+
resolver: yupResolver10(validateVerificationTokenSchema)
|
|
7781
7828
|
});
|
|
7782
7829
|
const { email, verificationToken } = getValues();
|
|
7783
7830
|
return {
|
|
@@ -7796,8 +7843,8 @@ function useValidateVerificationTokenForm() {
|
|
|
7796
7843
|
}
|
|
7797
7844
|
|
|
7798
7845
|
// src/hooks/auth/useResetPasswordForm.ts
|
|
7799
|
-
import { yupResolver as
|
|
7800
|
-
import { useForm as
|
|
7846
|
+
import { yupResolver as yupResolver11 } from "@hookform/resolvers/yup";
|
|
7847
|
+
import { useForm as useForm11 } from "react-hook-form";
|
|
7801
7848
|
var defaultValues6 = {
|
|
7802
7849
|
confirmPassword: "",
|
|
7803
7850
|
email: "",
|
|
@@ -7812,9 +7859,9 @@ function useResetPasswordForm() {
|
|
|
7812
7859
|
reset,
|
|
7813
7860
|
setValue,
|
|
7814
7861
|
watch
|
|
7815
|
-
} =
|
|
7862
|
+
} = useForm11({
|
|
7816
7863
|
defaultValues: defaultValues6,
|
|
7817
|
-
resolver:
|
|
7864
|
+
resolver: yupResolver11(resetPasswordSchema)
|
|
7818
7865
|
});
|
|
7819
7866
|
const { confirmPassword, email, password } = getValues();
|
|
7820
7867
|
return {
|
|
@@ -7834,9 +7881,9 @@ function useResetPasswordForm() {
|
|
|
7834
7881
|
}
|
|
7835
7882
|
|
|
7836
7883
|
// src/hooks/useContactUsForm.ts
|
|
7837
|
-
import { yupResolver as
|
|
7838
|
-
import
|
|
7839
|
-
import { useForm as
|
|
7884
|
+
import { yupResolver as yupResolver12 } from "@hookform/resolvers/yup";
|
|
7885
|
+
import React7 from "react";
|
|
7886
|
+
import { useForm as useForm12 } from "react-hook-form";
|
|
7840
7887
|
|
|
7841
7888
|
// src/yupSchema/contactUs.ts
|
|
7842
7889
|
import * as yup10 from "yup";
|
|
@@ -7863,11 +7910,11 @@ function useContactUsForm(data) {
|
|
|
7863
7910
|
reset,
|
|
7864
7911
|
setValue,
|
|
7865
7912
|
watch
|
|
7866
|
-
} =
|
|
7913
|
+
} = useForm12({
|
|
7867
7914
|
defaultValues: defaultValues7,
|
|
7868
|
-
resolver:
|
|
7915
|
+
resolver: yupResolver12(contactUsSchema)
|
|
7869
7916
|
});
|
|
7870
|
-
|
|
7917
|
+
React7.useEffect(() => {
|
|
7871
7918
|
if (data) {
|
|
7872
7919
|
reset({
|
|
7873
7920
|
email: data.email,
|
|
@@ -7898,9 +7945,9 @@ function useContactUsForm(data) {
|
|
|
7898
7945
|
}
|
|
7899
7946
|
|
|
7900
7947
|
// src/hooks/useAdForm.ts
|
|
7901
|
-
import { yupResolver as
|
|
7902
|
-
import
|
|
7903
|
-
import { useForm as
|
|
7948
|
+
import { yupResolver as yupResolver13 } from "@hookform/resolvers/yup";
|
|
7949
|
+
import React8 from "react";
|
|
7950
|
+
import { useForm as useForm13 } from "react-hook-form";
|
|
7904
7951
|
var defaultValues8 = {
|
|
7905
7952
|
active: true,
|
|
7906
7953
|
end: /* @__PURE__ */ new Date(),
|
|
@@ -7934,11 +7981,11 @@ function useAdForm(data) {
|
|
|
7934
7981
|
reset,
|
|
7935
7982
|
setValue,
|
|
7936
7983
|
watch
|
|
7937
|
-
} =
|
|
7984
|
+
} = useForm13({
|
|
7938
7985
|
defaultValues: defaultValues8,
|
|
7939
|
-
resolver:
|
|
7986
|
+
resolver: yupResolver13(adSchema)
|
|
7940
7987
|
});
|
|
7941
|
-
|
|
7988
|
+
React8.useEffect(() => {
|
|
7942
7989
|
if (data) {
|
|
7943
7990
|
reset({
|
|
7944
7991
|
active: data.active,
|
|
@@ -7975,9 +8022,9 @@ function useAdForm(data) {
|
|
|
7975
8022
|
}
|
|
7976
8023
|
|
|
7977
8024
|
// src/hooks/partner/usePartnerForm.ts
|
|
7978
|
-
import { yupResolver as
|
|
7979
|
-
import * as
|
|
7980
|
-
import { useForm as
|
|
8025
|
+
import { yupResolver as yupResolver14 } from "@hookform/resolvers/yup";
|
|
8026
|
+
import * as React9 from "react";
|
|
8027
|
+
import { useForm as useForm14 } from "react-hook-form";
|
|
7981
8028
|
function usePartnerForm(data) {
|
|
7982
8029
|
const {
|
|
7983
8030
|
control,
|
|
@@ -7987,11 +8034,11 @@ function usePartnerForm(data) {
|
|
|
7987
8034
|
reset,
|
|
7988
8035
|
setValue,
|
|
7989
8036
|
watch
|
|
7990
|
-
} =
|
|
8037
|
+
} = useForm14({
|
|
7991
8038
|
defaultValues: defaultPartnerFormValues,
|
|
7992
|
-
resolver:
|
|
8039
|
+
resolver: yupResolver14(partnerSchema)
|
|
7993
8040
|
});
|
|
7994
|
-
|
|
8041
|
+
React9.useEffect(() => {
|
|
7995
8042
|
if (data) {
|
|
7996
8043
|
reset({
|
|
7997
8044
|
...mapBaseResourceTypeToFormData(data),
|
|
@@ -8059,9 +8106,9 @@ function usePartnerForm(data) {
|
|
|
8059
8106
|
}
|
|
8060
8107
|
|
|
8061
8108
|
// src/hooks/usePostForm.ts
|
|
8062
|
-
import { yupResolver as
|
|
8063
|
-
import
|
|
8064
|
-
import { useForm as
|
|
8109
|
+
import { yupResolver as yupResolver15 } from "@hookform/resolvers/yup";
|
|
8110
|
+
import React10 from "react";
|
|
8111
|
+
import { useForm as useForm15 } from "react-hook-form";
|
|
8065
8112
|
var defaultValues9 = {
|
|
8066
8113
|
active: true,
|
|
8067
8114
|
caption: "",
|
|
@@ -8082,11 +8129,11 @@ function usePostForm(data) {
|
|
|
8082
8129
|
reset,
|
|
8083
8130
|
setValue,
|
|
8084
8131
|
watch
|
|
8085
|
-
} =
|
|
8132
|
+
} = useForm15({
|
|
8086
8133
|
defaultValues: defaultValues9,
|
|
8087
|
-
resolver:
|
|
8134
|
+
resolver: yupResolver15(postSchema)
|
|
8088
8135
|
});
|
|
8089
|
-
|
|
8136
|
+
React10.useEffect(() => {
|
|
8090
8137
|
if (data) {
|
|
8091
8138
|
reset({
|
|
8092
8139
|
active: data.active,
|
|
@@ -8137,9 +8184,9 @@ function usePostForm(data) {
|
|
|
8137
8184
|
}
|
|
8138
8185
|
|
|
8139
8186
|
// src/hooks/useAppSettingsForm.ts
|
|
8140
|
-
import { yupResolver as
|
|
8141
|
-
import
|
|
8142
|
-
import { useForm as
|
|
8187
|
+
import { yupResolver as yupResolver16 } from "@hookform/resolvers/yup";
|
|
8188
|
+
import React11 from "react";
|
|
8189
|
+
import { useForm as useForm16 } from "react-hook-form";
|
|
8143
8190
|
var defaultValues10 = {
|
|
8144
8191
|
appVersion: "",
|
|
8145
8192
|
isOfflineMode: false
|
|
@@ -8153,11 +8200,11 @@ function useAppSettingsForm(data) {
|
|
|
8153
8200
|
reset,
|
|
8154
8201
|
setValue,
|
|
8155
8202
|
watch
|
|
8156
|
-
} =
|
|
8203
|
+
} = useForm16({
|
|
8157
8204
|
defaultValues: defaultValues10,
|
|
8158
|
-
resolver:
|
|
8205
|
+
resolver: yupResolver16(appSettingsSchema)
|
|
8159
8206
|
});
|
|
8160
|
-
|
|
8207
|
+
React11.useEffect(() => {
|
|
8161
8208
|
if (data) {
|
|
8162
8209
|
reset({
|
|
8163
8210
|
appVersion: data.appVersion,
|
|
@@ -8184,9 +8231,9 @@ function useAppSettingsForm(data) {
|
|
|
8184
8231
|
}
|
|
8185
8232
|
|
|
8186
8233
|
// src/hooks/useSchoolForm.ts
|
|
8187
|
-
import { yupResolver as
|
|
8188
|
-
import { useEffect as
|
|
8189
|
-
import { useForm as
|
|
8234
|
+
import { yupResolver as yupResolver17 } from "@hookform/resolvers/yup";
|
|
8235
|
+
import { useEffect as useEffect8 } from "react";
|
|
8236
|
+
import { useForm as useForm17 } from "react-hook-form";
|
|
8190
8237
|
|
|
8191
8238
|
// src/yupSchema/school.ts
|
|
8192
8239
|
import * as yup11 from "yup";
|
|
@@ -8226,11 +8273,11 @@ function useSchoolForm(data) {
|
|
|
8226
8273
|
reset,
|
|
8227
8274
|
setValue,
|
|
8228
8275
|
watch
|
|
8229
|
-
} =
|
|
8276
|
+
} = useForm17({
|
|
8230
8277
|
defaultValues: defaultSchoolFormValues,
|
|
8231
|
-
resolver:
|
|
8278
|
+
resolver: yupResolver17(schoolSchema)
|
|
8232
8279
|
});
|
|
8233
|
-
|
|
8280
|
+
useEffect8(() => {
|
|
8234
8281
|
if (data) {
|
|
8235
8282
|
reset({
|
|
8236
8283
|
_id: data._id,
|
|
@@ -8720,6 +8767,7 @@ export {
|
|
|
8720
8767
|
useSendChatMessage,
|
|
8721
8768
|
useStartGame,
|
|
8722
8769
|
useToggleChatMessageLike,
|
|
8770
|
+
useUnregisteredVendorForm,
|
|
8723
8771
|
useUpdateAd,
|
|
8724
8772
|
useUpdateAppSettings,
|
|
8725
8773
|
useUpdateDailyClueGame,
|