@timardex/cluemart-shared 1.5.575 → 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-BnhdYD8u.d.ts → auth-71Q_K5cL.d.ts} +1 -1
- package/dist/{auth-BE8W1UaV.d.mts → auth-wxdjNbHv.d.mts} +1 -1
- package/dist/{chunk-H5D67NZJ.mjs → chunk-XK4M3AXN.mjs} +1 -2
- package/dist/chunk-XK4M3AXN.mjs.map +1 -0
- package/dist/formFields/index.d.mts +1 -1
- package/dist/formFields/index.d.ts +1 -1
- package/dist/{global-C2BG0QR0.d.mts → global-C1K1nbMW.d.mts} +1 -2
- package/dist/{global-DYOqTbVA.d.ts → global-C_2jiw0X.d.ts} +1 -2
- package/dist/graphql/index.cjs +0 -1
- 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 +111 -65
- 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 +121 -75
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +111 -65
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +9 -2
- package/dist/index.d.ts +9 -2
- package/dist/index.mjs +120 -75
- package/dist/index.mjs.map +1 -1
- package/dist/{post-w-s2UBp4.d.ts → post-Bfv08ew6.d.ts} +1 -1
- package/dist/{post-goCdDpja.d.mts → post-sAvu92I6.d.mts} +1 -1
- package/dist/{resourceActivities-BGmtVruK.d.ts → resourceActivities-BPsBLSh7.d.ts} +1 -1
- package/dist/{resourceActivities-BaGRb3Fh.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/chunk-H5D67NZJ.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -395,7 +395,6 @@ type VendorInfoType = Omit<VendorInfoFormData, "_id" | "documentsUpload"> & {
|
|
|
395
395
|
interface UnregisteredVendorFormData {
|
|
396
396
|
categoryIds: string[];
|
|
397
397
|
dateTime: DateTimeType[];
|
|
398
|
-
email?: string | null;
|
|
399
398
|
inviterId: string;
|
|
400
399
|
name: string;
|
|
401
400
|
}
|
|
@@ -2529,6 +2528,14 @@ declare function useVendorForm(data?: VendorFormData): CreateVendorFormData;
|
|
|
2529
2528
|
|
|
2530
2529
|
declare function useVendorInfoForm(data?: VendorInfoFormData): CreateVendorInfoFormData;
|
|
2531
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
|
+
|
|
2532
2539
|
/**
|
|
2533
2540
|
* Custom hook to manage the event form state and validation.
|
|
2534
2541
|
*
|
|
@@ -2717,4 +2724,4 @@ declare const ANDROID_URL = "https://play.google.com/store/apps/details?id=com.t
|
|
|
2717
2724
|
declare const SCHOOL_MIN_STUDENT_COUNT = 300;
|
|
2718
2725
|
declare const SCHOOL_MAX_STUDENT_COUNT = 0;
|
|
2719
2726
|
|
|
2720
|
-
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
|
@@ -395,7 +395,6 @@ type VendorInfoType = Omit<VendorInfoFormData, "_id" | "documentsUpload"> & {
|
|
|
395
395
|
interface UnregisteredVendorFormData {
|
|
396
396
|
categoryIds: string[];
|
|
397
397
|
dateTime: DateTimeType[];
|
|
398
|
-
email?: string | null;
|
|
399
398
|
inviterId: string;
|
|
400
399
|
name: string;
|
|
401
400
|
}
|
|
@@ -2529,6 +2528,14 @@ declare function useVendorForm(data?: VendorFormData): CreateVendorFormData;
|
|
|
2529
2528
|
|
|
2530
2529
|
declare function useVendorInfoForm(data?: VendorInfoFormData): CreateVendorInfoFormData;
|
|
2531
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
|
+
|
|
2532
2539
|
/**
|
|
2533
2540
|
* Custom hook to manage the event form state and validation.
|
|
2534
2541
|
*
|
|
@@ -2717,4 +2724,4 @@ declare const ANDROID_URL = "https://play.google.com/store/apps/details?id=com.t
|
|
|
2717
2724
|
declare const SCHOOL_MIN_STUDENT_COUNT = 300;
|
|
2718
2725
|
declare const SCHOOL_MAX_STUDENT_COUNT = 0;
|
|
2719
2726
|
|
|
2720
|
-
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
|
@@ -3098,7 +3098,6 @@ var UNREGISTERED_VENDOR = gql4`
|
|
|
3098
3098
|
claimed
|
|
3099
3099
|
createdAt
|
|
3100
3100
|
deletedAt
|
|
3101
|
-
email
|
|
3102
3101
|
invitations {
|
|
3103
3102
|
...UnregisteredVendorInvitationFields
|
|
3104
3103
|
}
|
|
@@ -6826,7 +6825,6 @@ var vendorSchema = globalResourceSchema.shape({
|
|
|
6826
6825
|
var unregisteredVendorSchema = yup3.object().shape({
|
|
6827
6826
|
categoryIds: yup3.array().of(yup3.string().defined()).min(1, "Category list must contain at least one item").required("Categories are required"),
|
|
6828
6827
|
dateTime: yup3.array().of(dateTimeSchema).min(1, "DateTime list must contain at least one item").required("DateTime is required"),
|
|
6829
|
-
email: emailOptionalSchema,
|
|
6830
6828
|
inviterId: yup3.string().required("Inviter ID is required"),
|
|
6831
6829
|
name: yup3.string().label("Stallholder Name").trim().min(3, "Name must be at least 3 characters").required("Name is required")
|
|
6832
6830
|
});
|
|
@@ -7180,7 +7178,6 @@ var defaultVendorFormValues = {
|
|
|
7180
7178
|
var defaultUnregisteredVendorFormValues = {
|
|
7181
7179
|
categoryIds: [],
|
|
7182
7180
|
dateTime: [],
|
|
7183
|
-
email: "",
|
|
7184
7181
|
inviterId: "",
|
|
7185
7182
|
name: ""
|
|
7186
7183
|
};
|
|
@@ -7380,11 +7377,11 @@ function useVendorInfoForm(data) {
|
|
|
7380
7377
|
};
|
|
7381
7378
|
}
|
|
7382
7379
|
|
|
7383
|
-
// src/hooks/
|
|
7380
|
+
// src/hooks/vendor/useUnregisteredVendorForm.ts
|
|
7384
7381
|
import { yupResolver as yupResolver3 } from "@hookform/resolvers/yup";
|
|
7385
7382
|
import * as React3 from "react";
|
|
7386
7383
|
import { useForm as useForm3 } from "react-hook-form";
|
|
7387
|
-
function
|
|
7384
|
+
function useUnregisteredVendorForm(data) {
|
|
7388
7385
|
const {
|
|
7389
7386
|
control,
|
|
7390
7387
|
formState,
|
|
@@ -7394,10 +7391,57 @@ function useEventForm(data) {
|
|
|
7394
7391
|
setValue,
|
|
7395
7392
|
watch
|
|
7396
7393
|
} = useForm3({
|
|
7397
|
-
defaultValues:
|
|
7398
|
-
resolver: yupResolver3(
|
|
7394
|
+
defaultValues: defaultUnregisteredVendorFormValues,
|
|
7395
|
+
resolver: yupResolver3(unregisteredVendorSchema)
|
|
7399
7396
|
});
|
|
7400
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(() => {
|
|
7401
7445
|
if (data) {
|
|
7402
7446
|
reset({
|
|
7403
7447
|
...mapBaseResourceTypeToFormData(data),
|
|
@@ -7483,9 +7527,9 @@ function useEventForm(data) {
|
|
|
7483
7527
|
}
|
|
7484
7528
|
|
|
7485
7529
|
// src/hooks/event/useEventInfoForm.ts
|
|
7486
|
-
import { yupResolver as
|
|
7487
|
-
import * as
|
|
7488
|
-
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";
|
|
7489
7533
|
function useEventInfoForm(data) {
|
|
7490
7534
|
const {
|
|
7491
7535
|
control,
|
|
@@ -7495,11 +7539,11 @@ function useEventInfoForm(data) {
|
|
|
7495
7539
|
reset,
|
|
7496
7540
|
setValue,
|
|
7497
7541
|
watch
|
|
7498
|
-
} =
|
|
7542
|
+
} = useForm5({
|
|
7499
7543
|
defaultValues: defaultEventInfoFormValues,
|
|
7500
|
-
resolver:
|
|
7544
|
+
resolver: yupResolver5(eventInfoSchema)
|
|
7501
7545
|
});
|
|
7502
|
-
|
|
7546
|
+
React5.useEffect(() => {
|
|
7503
7547
|
if (data) {
|
|
7504
7548
|
reset({
|
|
7505
7549
|
_id: data._id,
|
|
@@ -7550,9 +7594,9 @@ function useEventInfoForm(data) {
|
|
|
7550
7594
|
}
|
|
7551
7595
|
|
|
7552
7596
|
// src/hooks/useUserForm.ts
|
|
7553
|
-
import { yupResolver as
|
|
7554
|
-
import * as
|
|
7555
|
-
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";
|
|
7556
7600
|
var defaultValues = {
|
|
7557
7601
|
active: false,
|
|
7558
7602
|
avatar: null,
|
|
@@ -7575,11 +7619,11 @@ function useUserForm(data) {
|
|
|
7575
7619
|
reset,
|
|
7576
7620
|
setValue,
|
|
7577
7621
|
watch
|
|
7578
|
-
} =
|
|
7622
|
+
} = useForm6({
|
|
7579
7623
|
defaultValues,
|
|
7580
|
-
resolver:
|
|
7624
|
+
resolver: yupResolver6(userSchema)
|
|
7581
7625
|
});
|
|
7582
|
-
|
|
7626
|
+
React6.useEffect(() => {
|
|
7583
7627
|
if (data) {
|
|
7584
7628
|
reset({
|
|
7585
7629
|
_id: data._id,
|
|
@@ -7639,8 +7683,8 @@ function useUserForm(data) {
|
|
|
7639
7683
|
}
|
|
7640
7684
|
|
|
7641
7685
|
// src/hooks/auth/useLoginForm.ts
|
|
7642
|
-
import { yupResolver as
|
|
7643
|
-
import { useForm as
|
|
7686
|
+
import { yupResolver as yupResolver7 } from "@hookform/resolvers/yup";
|
|
7687
|
+
import { useForm as useForm7 } from "react-hook-form";
|
|
7644
7688
|
var defaultValues2 = {
|
|
7645
7689
|
email: "",
|
|
7646
7690
|
password: ""
|
|
@@ -7654,9 +7698,9 @@ function useLoginForm() {
|
|
|
7654
7698
|
reset,
|
|
7655
7699
|
setValue,
|
|
7656
7700
|
watch
|
|
7657
|
-
} =
|
|
7701
|
+
} = useForm7({
|
|
7658
7702
|
defaultValues: defaultValues2,
|
|
7659
|
-
resolver:
|
|
7703
|
+
resolver: yupResolver7(loginSchema)
|
|
7660
7704
|
});
|
|
7661
7705
|
const { email, password } = getValues();
|
|
7662
7706
|
return {
|
|
@@ -7675,8 +7719,8 @@ function useLoginForm() {
|
|
|
7675
7719
|
}
|
|
7676
7720
|
|
|
7677
7721
|
// src/hooks/auth/useRegisterForm.ts
|
|
7678
|
-
import { yupResolver as
|
|
7679
|
-
import { useForm as
|
|
7722
|
+
import { yupResolver as yupResolver8 } from "@hookform/resolvers/yup";
|
|
7723
|
+
import { useForm as useForm8 } from "react-hook-form";
|
|
7680
7724
|
var defaultValues3 = {
|
|
7681
7725
|
email: "",
|
|
7682
7726
|
firstName: "",
|
|
@@ -7695,9 +7739,9 @@ function useRegisterForm() {
|
|
|
7695
7739
|
reset,
|
|
7696
7740
|
setValue,
|
|
7697
7741
|
watch
|
|
7698
|
-
} =
|
|
7742
|
+
} = useForm8({
|
|
7699
7743
|
defaultValues: defaultValues3,
|
|
7700
|
-
resolver:
|
|
7744
|
+
resolver: yupResolver8(registerSchema)
|
|
7701
7745
|
});
|
|
7702
7746
|
const {
|
|
7703
7747
|
email,
|
|
@@ -7729,8 +7773,8 @@ function useRegisterForm() {
|
|
|
7729
7773
|
}
|
|
7730
7774
|
|
|
7731
7775
|
// src/hooks/auth/useRequestPasswordResetForm.ts
|
|
7732
|
-
import { yupResolver as
|
|
7733
|
-
import { useForm as
|
|
7776
|
+
import { yupResolver as yupResolver9 } from "@hookform/resolvers/yup";
|
|
7777
|
+
import { useForm as useForm9 } from "react-hook-form";
|
|
7734
7778
|
var defaultValues4 = {
|
|
7735
7779
|
email: ""
|
|
7736
7780
|
};
|
|
@@ -7743,9 +7787,9 @@ function useRequestPasswordResetForm() {
|
|
|
7743
7787
|
reset,
|
|
7744
7788
|
setValue,
|
|
7745
7789
|
watch
|
|
7746
|
-
} =
|
|
7790
|
+
} = useForm9({
|
|
7747
7791
|
defaultValues: defaultValues4,
|
|
7748
|
-
resolver:
|
|
7792
|
+
resolver: yupResolver9(requestPasswordResetSchema)
|
|
7749
7793
|
});
|
|
7750
7794
|
const { email } = getValues();
|
|
7751
7795
|
return {
|
|
@@ -7763,8 +7807,8 @@ function useRequestPasswordResetForm() {
|
|
|
7763
7807
|
}
|
|
7764
7808
|
|
|
7765
7809
|
// src/hooks/auth/useValidateVerificationTokenForm.ts
|
|
7766
|
-
import { yupResolver as
|
|
7767
|
-
import { useForm as
|
|
7810
|
+
import { yupResolver as yupResolver10 } from "@hookform/resolvers/yup";
|
|
7811
|
+
import { useForm as useForm10 } from "react-hook-form";
|
|
7768
7812
|
var defaultValues5 = {
|
|
7769
7813
|
email: "",
|
|
7770
7814
|
verificationToken: ""
|
|
@@ -7778,9 +7822,9 @@ function useValidateVerificationTokenForm() {
|
|
|
7778
7822
|
reset,
|
|
7779
7823
|
setValue,
|
|
7780
7824
|
watch
|
|
7781
|
-
} =
|
|
7825
|
+
} = useForm10({
|
|
7782
7826
|
defaultValues: defaultValues5,
|
|
7783
|
-
resolver:
|
|
7827
|
+
resolver: yupResolver10(validateVerificationTokenSchema)
|
|
7784
7828
|
});
|
|
7785
7829
|
const { email, verificationToken } = getValues();
|
|
7786
7830
|
return {
|
|
@@ -7799,8 +7843,8 @@ function useValidateVerificationTokenForm() {
|
|
|
7799
7843
|
}
|
|
7800
7844
|
|
|
7801
7845
|
// src/hooks/auth/useResetPasswordForm.ts
|
|
7802
|
-
import { yupResolver as
|
|
7803
|
-
import { useForm as
|
|
7846
|
+
import { yupResolver as yupResolver11 } from "@hookform/resolvers/yup";
|
|
7847
|
+
import { useForm as useForm11 } from "react-hook-form";
|
|
7804
7848
|
var defaultValues6 = {
|
|
7805
7849
|
confirmPassword: "",
|
|
7806
7850
|
email: "",
|
|
@@ -7815,9 +7859,9 @@ function useResetPasswordForm() {
|
|
|
7815
7859
|
reset,
|
|
7816
7860
|
setValue,
|
|
7817
7861
|
watch
|
|
7818
|
-
} =
|
|
7862
|
+
} = useForm11({
|
|
7819
7863
|
defaultValues: defaultValues6,
|
|
7820
|
-
resolver:
|
|
7864
|
+
resolver: yupResolver11(resetPasswordSchema)
|
|
7821
7865
|
});
|
|
7822
7866
|
const { confirmPassword, email, password } = getValues();
|
|
7823
7867
|
return {
|
|
@@ -7837,9 +7881,9 @@ function useResetPasswordForm() {
|
|
|
7837
7881
|
}
|
|
7838
7882
|
|
|
7839
7883
|
// src/hooks/useContactUsForm.ts
|
|
7840
|
-
import { yupResolver as
|
|
7841
|
-
import
|
|
7842
|
-
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";
|
|
7843
7887
|
|
|
7844
7888
|
// src/yupSchema/contactUs.ts
|
|
7845
7889
|
import * as yup10 from "yup";
|
|
@@ -7866,11 +7910,11 @@ function useContactUsForm(data) {
|
|
|
7866
7910
|
reset,
|
|
7867
7911
|
setValue,
|
|
7868
7912
|
watch
|
|
7869
|
-
} =
|
|
7913
|
+
} = useForm12({
|
|
7870
7914
|
defaultValues: defaultValues7,
|
|
7871
|
-
resolver:
|
|
7915
|
+
resolver: yupResolver12(contactUsSchema)
|
|
7872
7916
|
});
|
|
7873
|
-
|
|
7917
|
+
React7.useEffect(() => {
|
|
7874
7918
|
if (data) {
|
|
7875
7919
|
reset({
|
|
7876
7920
|
email: data.email,
|
|
@@ -7901,9 +7945,9 @@ function useContactUsForm(data) {
|
|
|
7901
7945
|
}
|
|
7902
7946
|
|
|
7903
7947
|
// src/hooks/useAdForm.ts
|
|
7904
|
-
import { yupResolver as
|
|
7905
|
-
import
|
|
7906
|
-
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";
|
|
7907
7951
|
var defaultValues8 = {
|
|
7908
7952
|
active: true,
|
|
7909
7953
|
end: /* @__PURE__ */ new Date(),
|
|
@@ -7937,11 +7981,11 @@ function useAdForm(data) {
|
|
|
7937
7981
|
reset,
|
|
7938
7982
|
setValue,
|
|
7939
7983
|
watch
|
|
7940
|
-
} =
|
|
7984
|
+
} = useForm13({
|
|
7941
7985
|
defaultValues: defaultValues8,
|
|
7942
|
-
resolver:
|
|
7986
|
+
resolver: yupResolver13(adSchema)
|
|
7943
7987
|
});
|
|
7944
|
-
|
|
7988
|
+
React8.useEffect(() => {
|
|
7945
7989
|
if (data) {
|
|
7946
7990
|
reset({
|
|
7947
7991
|
active: data.active,
|
|
@@ -7978,9 +8022,9 @@ function useAdForm(data) {
|
|
|
7978
8022
|
}
|
|
7979
8023
|
|
|
7980
8024
|
// src/hooks/partner/usePartnerForm.ts
|
|
7981
|
-
import { yupResolver as
|
|
7982
|
-
import * as
|
|
7983
|
-
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";
|
|
7984
8028
|
function usePartnerForm(data) {
|
|
7985
8029
|
const {
|
|
7986
8030
|
control,
|
|
@@ -7990,11 +8034,11 @@ function usePartnerForm(data) {
|
|
|
7990
8034
|
reset,
|
|
7991
8035
|
setValue,
|
|
7992
8036
|
watch
|
|
7993
|
-
} =
|
|
8037
|
+
} = useForm14({
|
|
7994
8038
|
defaultValues: defaultPartnerFormValues,
|
|
7995
|
-
resolver:
|
|
8039
|
+
resolver: yupResolver14(partnerSchema)
|
|
7996
8040
|
});
|
|
7997
|
-
|
|
8041
|
+
React9.useEffect(() => {
|
|
7998
8042
|
if (data) {
|
|
7999
8043
|
reset({
|
|
8000
8044
|
...mapBaseResourceTypeToFormData(data),
|
|
@@ -8062,9 +8106,9 @@ function usePartnerForm(data) {
|
|
|
8062
8106
|
}
|
|
8063
8107
|
|
|
8064
8108
|
// src/hooks/usePostForm.ts
|
|
8065
|
-
import { yupResolver as
|
|
8066
|
-
import
|
|
8067
|
-
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";
|
|
8068
8112
|
var defaultValues9 = {
|
|
8069
8113
|
active: true,
|
|
8070
8114
|
caption: "",
|
|
@@ -8085,11 +8129,11 @@ function usePostForm(data) {
|
|
|
8085
8129
|
reset,
|
|
8086
8130
|
setValue,
|
|
8087
8131
|
watch
|
|
8088
|
-
} =
|
|
8132
|
+
} = useForm15({
|
|
8089
8133
|
defaultValues: defaultValues9,
|
|
8090
|
-
resolver:
|
|
8134
|
+
resolver: yupResolver15(postSchema)
|
|
8091
8135
|
});
|
|
8092
|
-
|
|
8136
|
+
React10.useEffect(() => {
|
|
8093
8137
|
if (data) {
|
|
8094
8138
|
reset({
|
|
8095
8139
|
active: data.active,
|
|
@@ -8140,9 +8184,9 @@ function usePostForm(data) {
|
|
|
8140
8184
|
}
|
|
8141
8185
|
|
|
8142
8186
|
// src/hooks/useAppSettingsForm.ts
|
|
8143
|
-
import { yupResolver as
|
|
8144
|
-
import
|
|
8145
|
-
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";
|
|
8146
8190
|
var defaultValues10 = {
|
|
8147
8191
|
appVersion: "",
|
|
8148
8192
|
isOfflineMode: false
|
|
@@ -8156,11 +8200,11 @@ function useAppSettingsForm(data) {
|
|
|
8156
8200
|
reset,
|
|
8157
8201
|
setValue,
|
|
8158
8202
|
watch
|
|
8159
|
-
} =
|
|
8203
|
+
} = useForm16({
|
|
8160
8204
|
defaultValues: defaultValues10,
|
|
8161
|
-
resolver:
|
|
8205
|
+
resolver: yupResolver16(appSettingsSchema)
|
|
8162
8206
|
});
|
|
8163
|
-
|
|
8207
|
+
React11.useEffect(() => {
|
|
8164
8208
|
if (data) {
|
|
8165
8209
|
reset({
|
|
8166
8210
|
appVersion: data.appVersion,
|
|
@@ -8187,9 +8231,9 @@ function useAppSettingsForm(data) {
|
|
|
8187
8231
|
}
|
|
8188
8232
|
|
|
8189
8233
|
// src/hooks/useSchoolForm.ts
|
|
8190
|
-
import { yupResolver as
|
|
8191
|
-
import { useEffect as
|
|
8192
|
-
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";
|
|
8193
8237
|
|
|
8194
8238
|
// src/yupSchema/school.ts
|
|
8195
8239
|
import * as yup11 from "yup";
|
|
@@ -8229,11 +8273,11 @@ function useSchoolForm(data) {
|
|
|
8229
8273
|
reset,
|
|
8230
8274
|
setValue,
|
|
8231
8275
|
watch
|
|
8232
|
-
} =
|
|
8276
|
+
} = useForm17({
|
|
8233
8277
|
defaultValues: defaultSchoolFormValues,
|
|
8234
|
-
resolver:
|
|
8278
|
+
resolver: yupResolver17(schoolSchema)
|
|
8235
8279
|
});
|
|
8236
|
-
|
|
8280
|
+
useEffect8(() => {
|
|
8237
8281
|
if (data) {
|
|
8238
8282
|
reset({
|
|
8239
8283
|
_id: data._id,
|
|
@@ -8723,6 +8767,7 @@ export {
|
|
|
8723
8767
|
useSendChatMessage,
|
|
8724
8768
|
useStartGame,
|
|
8725
8769
|
useToggleChatMessageLike,
|
|
8770
|
+
useUnregisteredVendorForm,
|
|
8726
8771
|
useUpdateAd,
|
|
8727
8772
|
useUpdateAppSettings,
|
|
8728
8773
|
useUpdateDailyClueGame,
|