@timardex/cluemart-shared 1.4.64 → 1.4.66
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-tx3-QbA9.d.mts → auth-DP4rp8kt.d.mts} +1 -1
- package/dist/{auth-n3P2BSCb.d.ts → auth-x87uDA8A.d.ts} +1 -1
- package/dist/{chunk-IN5G5WAE.mjs → chunk-DY47LWPZ.mjs} +2 -2
- package/dist/{chunk-END7A5PN.mjs → chunk-N62G35WH.mjs} +1 -1
- package/dist/chunk-N62G35WH.mjs.map +1 -0
- package/dist/{chunk-ONMJIUN6.mjs → chunk-USGCDP2Q.mjs} +12 -14
- package/dist/{chunk-ONMJIUN6.mjs.map → chunk-USGCDP2Q.mjs.map} +1 -1
- package/dist/{chunk-5V6JNIPQ.mjs → chunk-WKBWAH6Y.mjs} +3 -3
- package/dist/{chunk-5V6JNIPQ.mjs.map → chunk-WKBWAH6Y.mjs.map} +1 -1
- package/dist/formFields/index.cjs +2 -2
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.d.mts +1 -1
- package/dist/formFields/index.d.ts +1 -1
- package/dist/formFields/index.mjs +2 -2
- package/dist/{global-DVDoQmBT.d.ts → global-Cdcu76UE.d.ts} +1 -1
- package/dist/{global-BCvKcmiT.d.mts → global-GMlnFp7I.d.mts} +1 -1
- package/dist/graphql/index.cjs +11 -13
- 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 +60 -102
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +3 -3
- package/dist/hooks/index.d.ts +3 -3
- package/dist/hooks/index.mjs +37 -77
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +60 -102
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +12 -11
- package/dist/index.d.ts +12 -11
- package/dist/index.mjs +60 -102
- package/dist/index.mjs.map +1 -1
- package/dist/{post-ByxIVi36.d.ts → post-CKBw7-Mb.d.ts} +13 -12
- package/dist/{post-CvS5wUjm.d.mts → post-D6bduN9H.d.mts} +13 -12
- package/dist/{resourceActivities-UOB8Bo7j.d.ts → resourceActivities-Qpi5PTJD.d.ts} +1 -1
- package/dist/{resourceActivities-BKd6q2ey.d.mts → resourceActivities-sdIDFwub.d.mts} +1 -1
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +5 -5
- package/dist/types/index.d.ts +5 -5
- package/dist/types/index.mjs +1 -1
- package/dist/utils/index.cjs +2 -2
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-END7A5PN.mjs.map +0 -1
- /package/dist/{chunk-IN5G5WAE.mjs.map → chunk-DY47LWPZ.mjs.map} +0 -0
package/dist/index.d.mts
CHANGED
|
@@ -909,24 +909,25 @@ declare enum EnumAdStyle {
|
|
|
909
909
|
BLOOM = "Bloom",
|
|
910
910
|
RISE = "Rise"
|
|
911
911
|
}
|
|
912
|
-
|
|
913
|
-
|
|
912
|
+
type AdResource = {
|
|
913
|
+
adDescription: string;
|
|
914
|
+
adImage: string;
|
|
914
915
|
adStyle: EnumAdStyle;
|
|
916
|
+
adTitle: string;
|
|
915
917
|
adType: EnumAdType;
|
|
916
|
-
clui?: string | null;
|
|
917
|
-
end: Date;
|
|
918
|
-
resourceCover: string;
|
|
919
|
-
resourceDescription: string;
|
|
920
918
|
resourceId: string;
|
|
921
|
-
resourceLogo?: string | null;
|
|
922
919
|
resourceName: string;
|
|
923
920
|
resourceRegion: string;
|
|
924
921
|
resourceType: EnumResourceType;
|
|
925
|
-
|
|
926
|
-
|
|
922
|
+
};
|
|
923
|
+
interface AdFormData {
|
|
924
|
+
active: boolean;
|
|
925
|
+
end: Date;
|
|
926
|
+
resource: AdResource;
|
|
927
|
+
showOn: EnumAdShowOn[];
|
|
927
928
|
start?: Date;
|
|
928
929
|
status: EnumAdStatus;
|
|
929
|
-
targetRegion
|
|
930
|
+
targetRegion: string[];
|
|
930
931
|
}
|
|
931
932
|
type CreateAdFormData = CreateFormData<AdFormData>;
|
|
932
933
|
interface AdType extends AdFormData {
|
|
@@ -2349,4 +2350,4 @@ declare const cluemartSocialMedia: SocialMediaType[];
|
|
|
2349
2350
|
declare const IOS_URL = "https://apps.apple.com/nz/app/cluemart/id6747251008";
|
|
2350
2351
|
declare const ANDROID_URL = "https://play.google.com/store/apps/details?id=com.timardex.cluemart";
|
|
2351
2352
|
|
|
2352
|
-
export { ANDROID_URL, type AdFormData, type AdType, type AdminUpdateResourceType, type AppSettingsFormData, type AppSettingsType, type AssociateType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageReaction, type ChatMessageReplyPreview, type ChatMessageSeen, type ChatMessageType, type ChatType, 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 CreateUnregisteredVendorFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumBillingPeriod, EnumChatReportReason, EnumChatType, EnumEventDateStatus, EnumEventType, EnumFoodFlavor, EnumFoodType, 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 GeocodeLocation, type GoogleAddressComponent, type GoogleImportedMarket, IOS_URL, type ImageObjectType, ImageTypeEnum, type LocationGeoType, type LocationType, type LoginFormData, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, type OwnerType, type ParticipantType, type PartnerFormData, type PartnerType, type PaymentInfoType, type PlacePrediction, type PostContentData, type PostContentFormData, type PostContentImage, type PostContentList, type PostContentTextarea, type PostContentType, type PostContentVideo, type PostFileInput, type PostFormData, type PostType, type PosterInputType, type PosterUsageType, 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, 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, capitalizeFirstLetter, categoryColors, cluemartSocialMedia, companyContactFields, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultPartnerFormValues, defaultUnregisteredVendorFormValues, defaultVendorFormValues, defaultVendorInfoFormValues, emailField, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, licenseNiceNames, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, packagingOptions, partnerBasicInfoFields, paymentMethodOptions, priceUnits, producedIngOptions, productLabelGroups, profileFields, refundPolicyOptions, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, 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, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useEventForm, useEventInfoForm, useGetAd, useGetAds, useGetAdsByRegion, useGetAppSettings, useGetChat, useGetChatSubscription, useGetChatsByRegion, useGetEvent, useGetEventByPlaceId, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetPostsByType, useGetRelation, useGetRelationByEventAndVendor, useGetReportedChatUsers, useGetResourceActivity, useGetResourceConnections, useGetSubscriptionPlans, useGetSubscriptionStatus, useGetUnregisteredVendor, useGetUnregisteredVendors, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserPartners, useGetUserResources, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkChatMessagesSeen, useMarkNotificationRead, usePartnerForm, usePostForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useReportChatUser, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSelectStandardPackage, useSendChatMessage, useToggleChatMessageLike, useUpdateAd, useUpdateAppSettings, useUpdateEvent, useUpdateEventInfo, useUpdateGoogleImportedMarkets, useUpdatePartner, useUpdatePost, useUpdateRelation, 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 };
|
|
2353
|
+
export { ANDROID_URL, type AdFormData, type AdResource, type AdType, type AdminUpdateResourceType, type AppSettingsFormData, type AppSettingsType, type AssociateType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageReaction, type ChatMessageReplyPreview, type ChatMessageSeen, type ChatMessageType, type ChatType, 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 CreateUnregisteredVendorFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumBillingPeriod, EnumChatReportReason, EnumChatType, EnumEventDateStatus, EnumEventType, EnumFoodFlavor, EnumFoodType, 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 GeocodeLocation, type GoogleAddressComponent, type GoogleImportedMarket, IOS_URL, type ImageObjectType, ImageTypeEnum, type LocationGeoType, type LocationType, type LoginFormData, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, type OwnerType, type ParticipantType, type PartnerFormData, type PartnerType, type PaymentInfoType, type PlacePrediction, type PostContentData, type PostContentFormData, type PostContentImage, type PostContentList, type PostContentTextarea, type PostContentType, type PostContentVideo, type PostFileInput, type PostFormData, type PostType, type PosterInputType, type PosterUsageType, 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, 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, capitalizeFirstLetter, categoryColors, cluemartSocialMedia, companyContactFields, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultPartnerFormValues, defaultUnregisteredVendorFormValues, defaultVendorFormValues, defaultVendorInfoFormValues, emailField, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, licenseNiceNames, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, packagingOptions, partnerBasicInfoFields, paymentMethodOptions, priceUnits, producedIngOptions, productLabelGroups, profileFields, refundPolicyOptions, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, 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, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useEventForm, useEventInfoForm, useGetAd, useGetAds, useGetAdsByRegion, useGetAppSettings, useGetChat, useGetChatSubscription, useGetChatsByRegion, useGetEvent, useGetEventByPlaceId, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetPostsByType, useGetRelation, useGetRelationByEventAndVendor, useGetReportedChatUsers, useGetResourceActivity, useGetResourceConnections, useGetSubscriptionPlans, useGetSubscriptionStatus, useGetUnregisteredVendor, useGetUnregisteredVendors, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserPartners, useGetUserResources, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkChatMessagesSeen, useMarkNotificationRead, usePartnerForm, usePostForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useReportChatUser, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSelectStandardPackage, useSendChatMessage, useToggleChatMessageLike, useUpdateAd, useUpdateAppSettings, useUpdateEvent, useUpdateEventInfo, useUpdateGoogleImportedMarkets, useUpdatePartner, useUpdatePost, useUpdateRelation, 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
|
@@ -909,24 +909,25 @@ declare enum EnumAdStyle {
|
|
|
909
909
|
BLOOM = "Bloom",
|
|
910
910
|
RISE = "Rise"
|
|
911
911
|
}
|
|
912
|
-
|
|
913
|
-
|
|
912
|
+
type AdResource = {
|
|
913
|
+
adDescription: string;
|
|
914
|
+
adImage: string;
|
|
914
915
|
adStyle: EnumAdStyle;
|
|
916
|
+
adTitle: string;
|
|
915
917
|
adType: EnumAdType;
|
|
916
|
-
clui?: string | null;
|
|
917
|
-
end: Date;
|
|
918
|
-
resourceCover: string;
|
|
919
|
-
resourceDescription: string;
|
|
920
918
|
resourceId: string;
|
|
921
|
-
resourceLogo?: string | null;
|
|
922
919
|
resourceName: string;
|
|
923
920
|
resourceRegion: string;
|
|
924
921
|
resourceType: EnumResourceType;
|
|
925
|
-
|
|
926
|
-
|
|
922
|
+
};
|
|
923
|
+
interface AdFormData {
|
|
924
|
+
active: boolean;
|
|
925
|
+
end: Date;
|
|
926
|
+
resource: AdResource;
|
|
927
|
+
showOn: EnumAdShowOn[];
|
|
927
928
|
start?: Date;
|
|
928
929
|
status: EnumAdStatus;
|
|
929
|
-
targetRegion
|
|
930
|
+
targetRegion: string[];
|
|
930
931
|
}
|
|
931
932
|
type CreateAdFormData = CreateFormData<AdFormData>;
|
|
932
933
|
interface AdType extends AdFormData {
|
|
@@ -2349,4 +2350,4 @@ declare const cluemartSocialMedia: SocialMediaType[];
|
|
|
2349
2350
|
declare const IOS_URL = "https://apps.apple.com/nz/app/cluemart/id6747251008";
|
|
2350
2351
|
declare const ANDROID_URL = "https://play.google.com/store/apps/details?id=com.timardex.cluemart";
|
|
2351
2352
|
|
|
2352
|
-
export { ANDROID_URL, type AdFormData, type AdType, type AdminUpdateResourceType, type AppSettingsFormData, type AppSettingsType, type AssociateType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageReaction, type ChatMessageReplyPreview, type ChatMessageSeen, type ChatMessageType, type ChatType, 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 CreateUnregisteredVendorFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumBillingPeriod, EnumChatReportReason, EnumChatType, EnumEventDateStatus, EnumEventType, EnumFoodFlavor, EnumFoodType, 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 GeocodeLocation, type GoogleAddressComponent, type GoogleImportedMarket, IOS_URL, type ImageObjectType, ImageTypeEnum, type LocationGeoType, type LocationType, type LoginFormData, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, type OwnerType, type ParticipantType, type PartnerFormData, type PartnerType, type PaymentInfoType, type PlacePrediction, type PostContentData, type PostContentFormData, type PostContentImage, type PostContentList, type PostContentTextarea, type PostContentType, type PostContentVideo, type PostFileInput, type PostFormData, type PostType, type PosterInputType, type PosterUsageType, 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, 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, capitalizeFirstLetter, categoryColors, cluemartSocialMedia, companyContactFields, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultPartnerFormValues, defaultUnregisteredVendorFormValues, defaultVendorFormValues, defaultVendorInfoFormValues, emailField, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, licenseNiceNames, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, packagingOptions, partnerBasicInfoFields, paymentMethodOptions, priceUnits, producedIngOptions, productLabelGroups, profileFields, refundPolicyOptions, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, 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, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useEventForm, useEventInfoForm, useGetAd, useGetAds, useGetAdsByRegion, useGetAppSettings, useGetChat, useGetChatSubscription, useGetChatsByRegion, useGetEvent, useGetEventByPlaceId, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetPostsByType, useGetRelation, useGetRelationByEventAndVendor, useGetReportedChatUsers, useGetResourceActivity, useGetResourceConnections, useGetSubscriptionPlans, useGetSubscriptionStatus, useGetUnregisteredVendor, useGetUnregisteredVendors, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserPartners, useGetUserResources, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkChatMessagesSeen, useMarkNotificationRead, usePartnerForm, usePostForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useReportChatUser, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSelectStandardPackage, useSendChatMessage, useToggleChatMessageLike, useUpdateAd, useUpdateAppSettings, useUpdateEvent, useUpdateEventInfo, useUpdateGoogleImportedMarkets, useUpdatePartner, useUpdatePost, useUpdateRelation, 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 };
|
|
2353
|
+
export { ANDROID_URL, type AdFormData, type AdResource, type AdType, type AdminUpdateResourceType, type AppSettingsFormData, type AppSettingsType, type AssociateType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageReaction, type ChatMessageReplyPreview, type ChatMessageSeen, type ChatMessageType, type ChatType, 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 CreateUnregisteredVendorFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumBillingPeriod, EnumChatReportReason, EnumChatType, EnumEventDateStatus, EnumEventType, EnumFoodFlavor, EnumFoodType, 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 GeocodeLocation, type GoogleAddressComponent, type GoogleImportedMarket, IOS_URL, type ImageObjectType, ImageTypeEnum, type LocationGeoType, type LocationType, type LoginFormData, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, type OwnerType, type ParticipantType, type PartnerFormData, type PartnerType, type PaymentInfoType, type PlacePrediction, type PostContentData, type PostContentFormData, type PostContentImage, type PostContentList, type PostContentTextarea, type PostContentType, type PostContentVideo, type PostFileInput, type PostFormData, type PostType, type PosterInputType, type PosterUsageType, 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, 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, capitalizeFirstLetter, categoryColors, cluemartSocialMedia, companyContactFields, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultPartnerFormValues, defaultUnregisteredVendorFormValues, defaultVendorFormValues, defaultVendorInfoFormValues, emailField, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, licenseNiceNames, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, packagingOptions, partnerBasicInfoFields, paymentMethodOptions, priceUnits, producedIngOptions, productLabelGroups, profileFields, refundPolicyOptions, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, 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, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useEventForm, useEventInfoForm, useGetAd, useGetAds, useGetAdsByRegion, useGetAppSettings, useGetChat, useGetChatSubscription, useGetChatsByRegion, useGetEvent, useGetEventByPlaceId, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetPostsByType, useGetRelation, useGetRelationByEventAndVendor, useGetReportedChatUsers, useGetResourceActivity, useGetResourceConnections, useGetSubscriptionPlans, useGetSubscriptionStatus, useGetUnregisteredVendor, useGetUnregisteredVendors, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserPartners, useGetUserResources, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkChatMessagesSeen, useMarkNotificationRead, usePartnerForm, usePostForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useReportChatUser, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSelectStandardPackage, useSendChatMessage, useToggleChatMessageLike, useUpdateAd, useUpdateAppSettings, useUpdateEvent, useUpdateEventInfo, useUpdateGoogleImportedMarkets, useUpdatePartner, useUpdatePost, useUpdateRelation, 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
|
@@ -555,8 +555,8 @@ var licenseNiceNames = {
|
|
|
555
555
|
["pro_vendor" /* PRO_VENDOR */]: "Pro Stallholder",
|
|
556
556
|
["standard_event" /* STANDARD_EVENT */]: "Standard Event",
|
|
557
557
|
["standard_vendor" /* STANDARD_VENDOR */]: "Standard Stallholder",
|
|
558
|
-
["pro_plus_event" /* PRO_PLUS_EVENT */]: "Pro+ Event",
|
|
559
|
-
["pro_plus_vendor" /* PRO_PLUS_VENDOR */]: "Pro+ Stallholder",
|
|
558
|
+
["pro_plus_event" /* PRO_PLUS_EVENT */]: "Pro+Ads Event",
|
|
559
|
+
["pro_plus_vendor" /* PRO_PLUS_VENDOR */]: "Pro+Ads Stallholder",
|
|
560
560
|
["standard_partner" /* STANDARD_PARTNER */]: "Partner"
|
|
561
561
|
};
|
|
562
562
|
var cluemartSocialMedia = [
|
|
@@ -4949,29 +4949,27 @@ var AD_FIELDS_FRAGMENT = gql22`
|
|
|
4949
4949
|
fragment AdFields on AdType {
|
|
4950
4950
|
_id
|
|
4951
4951
|
active
|
|
4952
|
-
adStyle
|
|
4953
|
-
adType
|
|
4954
4952
|
clicks
|
|
4955
4953
|
createdAt
|
|
4956
4954
|
end
|
|
4957
4955
|
impressions
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4956
|
+
resource {
|
|
4957
|
+
adDescription
|
|
4958
|
+
adImage
|
|
4959
|
+
adStyle
|
|
4960
|
+
adTitle
|
|
4961
|
+
adType
|
|
4962
|
+
resourceId
|
|
4963
|
+
resourceName
|
|
4964
|
+
resourceRegion
|
|
4965
|
+
resourceType
|
|
4968
4966
|
}
|
|
4967
|
+
showOn
|
|
4969
4968
|
start
|
|
4970
4969
|
status
|
|
4971
4970
|
targetRegion
|
|
4972
4971
|
updatedAt
|
|
4973
4972
|
}
|
|
4974
|
-
${SOCIAL_MEDIA_FIELDS_FRAGMENT}
|
|
4975
4973
|
`;
|
|
4976
4974
|
var GET_ADS = gql22`
|
|
4977
4975
|
query getAds {
|
|
@@ -6246,12 +6244,12 @@ var validateVerificationTokenSchema = yup5.object().shape({
|
|
|
6246
6244
|
import * as yup6 from "yup";
|
|
6247
6245
|
|
|
6248
6246
|
// src/types/ad.ts
|
|
6249
|
-
var EnumAdShowOn = /* @__PURE__ */ ((
|
|
6250
|
-
|
|
6251
|
-
|
|
6252
|
-
|
|
6253
|
-
|
|
6254
|
-
return
|
|
6247
|
+
var EnumAdShowOn = /* @__PURE__ */ ((EnumAdShowOn3) => {
|
|
6248
|
+
EnumAdShowOn3["EVENTS_PAGE"] = "Events_page";
|
|
6249
|
+
EnumAdShowOn3["FRONT_PAGE"] = "Front_page";
|
|
6250
|
+
EnumAdShowOn3["PARTNERS_PAGE"] = "Partners_page";
|
|
6251
|
+
EnumAdShowOn3["VENDORS_PAGE"] = "Vendors_page";
|
|
6252
|
+
return EnumAdShowOn3;
|
|
6255
6253
|
})(EnumAdShowOn || {});
|
|
6256
6254
|
var EnumAdStatus = /* @__PURE__ */ ((EnumAdStatus2) => {
|
|
6257
6255
|
EnumAdStatus2["ACTIVE"] = "Active";
|
|
@@ -6259,23 +6257,20 @@ var EnumAdStatus = /* @__PURE__ */ ((EnumAdStatus2) => {
|
|
|
6259
6257
|
EnumAdStatus2["EXPIRED"] = "Expired";
|
|
6260
6258
|
return EnumAdStatus2;
|
|
6261
6259
|
})(EnumAdStatus || {});
|
|
6262
|
-
var EnumAdType = /* @__PURE__ */ ((
|
|
6263
|
-
|
|
6264
|
-
|
|
6265
|
-
return
|
|
6260
|
+
var EnumAdType = /* @__PURE__ */ ((EnumAdType3) => {
|
|
6261
|
+
EnumAdType3["SPONSORED"] = "Sponsored";
|
|
6262
|
+
EnumAdType3["FREE"] = "Free";
|
|
6263
|
+
return EnumAdType3;
|
|
6266
6264
|
})(EnumAdType || {});
|
|
6267
|
-
var EnumAdStyle = /* @__PURE__ */ ((
|
|
6268
|
-
|
|
6269
|
-
|
|
6270
|
-
return
|
|
6265
|
+
var EnumAdStyle = /* @__PURE__ */ ((EnumAdStyle3) => {
|
|
6266
|
+
EnumAdStyle3["BLOOM"] = "Bloom";
|
|
6267
|
+
EnumAdStyle3["RISE"] = "Rise";
|
|
6268
|
+
return EnumAdStyle3;
|
|
6271
6269
|
})(EnumAdStyle || {});
|
|
6272
6270
|
|
|
6273
6271
|
// src/yupSchema/ad.ts
|
|
6274
6272
|
var adSchema = yup6.object().shape({
|
|
6275
6273
|
active: yup6.boolean().required("Active status is required"),
|
|
6276
|
-
adStyle: yup6.mixed().oneOf(Object.values(EnumAdStyle), "Please select a valid ad style").required("Ad style is required"),
|
|
6277
|
-
adType: yup6.mixed().oneOf(Object.values(EnumAdType), "Please select a valid ad type").required("Ad type is required"),
|
|
6278
|
-
clui: yup6.string().nullable().notRequired(),
|
|
6279
6274
|
end: yup6.date().required("End date is required").test("is-future-date", "End date must be in the future", (value) => {
|
|
6280
6275
|
if (!value) return false;
|
|
6281
6276
|
const endDate = new Date(value);
|
|
@@ -6293,18 +6288,18 @@ var adSchema = yup6.object().shape({
|
|
|
6293
6288
|
}
|
|
6294
6289
|
)
|
|
6295
6290
|
}),
|
|
6296
|
-
|
|
6297
|
-
|
|
6298
|
-
|
|
6299
|
-
|
|
6300
|
-
|
|
6301
|
-
|
|
6302
|
-
|
|
6303
|
-
|
|
6304
|
-
|
|
6305
|
-
"Please select
|
|
6306
|
-
).required("
|
|
6307
|
-
|
|
6291
|
+
resource: yup6.object().shape({
|
|
6292
|
+
adDescription: yup6.string().trim().required("Ad description is required").max(100, "Ad description must be at most 100 characters"),
|
|
6293
|
+
adImage: yup6.string().required("Ad image is required"),
|
|
6294
|
+
adStyle: yup6.mixed().oneOf(Object.values(EnumAdStyle), "Please select a valid ad style").required("Ad style is required"),
|
|
6295
|
+
adTitle: yup6.string().trim().required("Ad title is required").max(50, "Ad title must be at most 50 characters"),
|
|
6296
|
+
adType: yup6.mixed().oneOf(Object.values(EnumAdType), "Please select a valid ad type").required("Ad type is required"),
|
|
6297
|
+
resourceId: yup6.string().required("Resource ID is required"),
|
|
6298
|
+
resourceName: yup6.string().required("Resource name is required"),
|
|
6299
|
+
resourceRegion: yup6.string().required("Resource region is required"),
|
|
6300
|
+
resourceType: yup6.mixed().oneOf(Object.values(EnumResourceType), "Please select Event or Vendor").required("Resource Type is required")
|
|
6301
|
+
}).required("Resource information is required"),
|
|
6302
|
+
showOn: yup6.array().of(yup6.mixed().oneOf(Object.values(EnumAdShowOn)).required()).min(1, "At least one display location is required").required("Display location is required"),
|
|
6308
6303
|
status: yup6.mixed().oneOf(Object.values(EnumAdStatus)).required("Ad status is required"),
|
|
6309
6304
|
start: yup6.date().when("status", {
|
|
6310
6305
|
is: (status) => status !== "Active" /* ACTIVE */,
|
|
@@ -6314,7 +6309,7 @@ var adSchema = yup6.object().shape({
|
|
|
6314
6309
|
}),
|
|
6315
6310
|
otherwise: () => yup6.date().nullable().notRequired()
|
|
6316
6311
|
}),
|
|
6317
|
-
targetRegion: yup6.string().
|
|
6312
|
+
targetRegion: yup6.array().of(yup6.string().required()).min(1, "At least one target region is required").required("Target region is required")
|
|
6318
6313
|
});
|
|
6319
6314
|
|
|
6320
6315
|
// src/yupSchema/partner.ts
|
|
@@ -7161,27 +7156,27 @@ import React7 from "react";
|
|
|
7161
7156
|
import { useForm as useForm12 } from "react-hook-form";
|
|
7162
7157
|
var defaultValues8 = {
|
|
7163
7158
|
active: true,
|
|
7164
|
-
adStyle: "Bloom" /* BLOOM */,
|
|
7165
|
-
// default to bloom
|
|
7166
|
-
adType: "Sponsored" /* SPONSORED */,
|
|
7167
|
-
// default to sponsored
|
|
7168
|
-
clui: null,
|
|
7169
7159
|
end: /* @__PURE__ */ new Date(),
|
|
7170
|
-
|
|
7171
|
-
|
|
7172
|
-
|
|
7173
|
-
|
|
7174
|
-
|
|
7175
|
-
|
|
7176
|
-
|
|
7177
|
-
|
|
7178
|
-
|
|
7160
|
+
resource: {
|
|
7161
|
+
adDescription: "",
|
|
7162
|
+
adImage: "",
|
|
7163
|
+
adStyle: "",
|
|
7164
|
+
// default to bloom
|
|
7165
|
+
adTitle: "",
|
|
7166
|
+
adType: "",
|
|
7167
|
+
// default to sponsored
|
|
7168
|
+
resourceId: "",
|
|
7169
|
+
resourceName: "",
|
|
7170
|
+
resourceRegion: "",
|
|
7171
|
+
resourceType: ""
|
|
7172
|
+
// default to event
|
|
7173
|
+
},
|
|
7174
|
+
showOn: [""],
|
|
7179
7175
|
// default to front page
|
|
7180
|
-
socialMedia: [],
|
|
7181
7176
|
start: /* @__PURE__ */ new Date(),
|
|
7182
7177
|
status: "Paused" /* PAUSED */,
|
|
7183
7178
|
// default to paused
|
|
7184
|
-
targetRegion:
|
|
7179
|
+
targetRegion: []
|
|
7185
7180
|
};
|
|
7186
7181
|
function useAdForm(data) {
|
|
7187
7182
|
const {
|
|
@@ -7200,18 +7195,9 @@ function useAdForm(data) {
|
|
|
7200
7195
|
if (data) {
|
|
7201
7196
|
reset({
|
|
7202
7197
|
active: data.active,
|
|
7203
|
-
adStyle: data.adStyle,
|
|
7204
|
-
adType: data.adType,
|
|
7205
|
-
clui: data.clui,
|
|
7206
7198
|
end: data.end,
|
|
7207
|
-
|
|
7208
|
-
|
|
7209
|
-
resourceId: data.resourceId,
|
|
7210
|
-
resourceLogo: data.resourceLogo,
|
|
7211
|
-
resourceName: data.resourceName,
|
|
7212
|
-
resourceRegion: data.resourceRegion,
|
|
7213
|
-
resourceType: data.resourceType,
|
|
7214
|
-
socialMedia: data.socialMedia,
|
|
7199
|
+
resource: data.resource,
|
|
7200
|
+
showOn: data.showOn,
|
|
7215
7201
|
start: data.start,
|
|
7216
7202
|
status: data.status,
|
|
7217
7203
|
targetRegion: data.targetRegion
|
|
@@ -7220,42 +7206,14 @@ function useAdForm(data) {
|
|
|
7220
7206
|
reset(defaultValues8);
|
|
7221
7207
|
}
|
|
7222
7208
|
}, [data]);
|
|
7223
|
-
const {
|
|
7224
|
-
active,
|
|
7225
|
-
adStyle,
|
|
7226
|
-
adType,
|
|
7227
|
-
clui,
|
|
7228
|
-
end,
|
|
7229
|
-
resourceCover,
|
|
7230
|
-
resourceDescription,
|
|
7231
|
-
resourceId,
|
|
7232
|
-
resourceLogo,
|
|
7233
|
-
resourceName,
|
|
7234
|
-
resourceRegion,
|
|
7235
|
-
resourceType,
|
|
7236
|
-
showOn,
|
|
7237
|
-
socialMedia: socialMedia2,
|
|
7238
|
-
start,
|
|
7239
|
-
status,
|
|
7240
|
-
targetRegion
|
|
7241
|
-
} = getValues();
|
|
7209
|
+
const { active, end, resource, showOn, start, status, targetRegion } = getValues();
|
|
7242
7210
|
return {
|
|
7243
7211
|
control,
|
|
7244
7212
|
fields: {
|
|
7245
7213
|
active,
|
|
7246
|
-
adStyle,
|
|
7247
|
-
adType,
|
|
7248
|
-
clui,
|
|
7249
7214
|
end,
|
|
7250
|
-
|
|
7251
|
-
resourceDescription,
|
|
7252
|
-
resourceId,
|
|
7253
|
-
resourceLogo,
|
|
7254
|
-
resourceName,
|
|
7255
|
-
resourceRegion,
|
|
7256
|
-
resourceType,
|
|
7215
|
+
resource,
|
|
7257
7216
|
showOn,
|
|
7258
|
-
socialMedia: socialMedia2,
|
|
7259
7217
|
start,
|
|
7260
7218
|
status,
|
|
7261
7219
|
targetRegion
|