@timardex/cluemart-shared 1.4.47 → 1.4.49
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-Dn--6hv6.d.ts → auth-D8UFPzrV.d.ts} +1 -1
- package/dist/{auth-B4xQkspX.d.mts → auth-DjhyuSc4.d.mts} +1 -1
- package/dist/{chunk-YVLKDO3W.mjs → chunk-KIWJIODL.mjs} +1 -7
- package/dist/chunk-KIWJIODL.mjs.map +1 -0
- package/dist/{chunk-KWA2LDKT.mjs → chunk-WEZAIHRP.mjs} +20 -15
- package/dist/chunk-WEZAIHRP.mjs.map +1 -0
- package/dist/formFields/index.cjs +0 -7
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.d.mts +2 -3
- package/dist/formFields/index.d.ts +2 -3
- package/dist/formFields/index.mjs +1 -3
- package/dist/{global-BaRkbNJY.d.mts → global-B0Dwutyj.d.mts} +13 -9
- package/dist/{global-BaQqe4tO.d.ts → global-S6dWKuAO.d.ts} +13 -9
- package/dist/graphql/index.cjs +19 -14
- 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 +25 -24
- 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 +8 -12
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +25 -31
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +13 -10
- package/dist/index.d.ts +13 -10
- package/dist/index.mjs +25 -30
- package/dist/index.mjs.map +1 -1
- package/dist/{post-DdO574BP.d.mts → post-Ca65D14n.d.mts} +1 -1
- package/dist/{post-BNREQyX4.d.ts → post-YKX0RPhh.d.ts} +1 -1
- package/dist/{resourceActivities-74LABQJf.d.ts → resourceActivities-BdyamlH1.d.ts} +1 -1
- package/dist/{resourceActivities-sCfrMmT_.d.mts → resourceActivities-CUAw8UJq.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-KWA2LDKT.mjs.map +0 -1
- package/dist/chunk-YVLKDO3W.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -331,10 +331,10 @@ type EventInfoType = Omit<EventInfoFormData, "_id"> & {
|
|
|
331
331
|
_id: string;
|
|
332
332
|
};
|
|
333
333
|
|
|
334
|
-
type
|
|
334
|
+
type VendorCalendarData = Omit<ResourceDetails, "dateTime" | "eventStatus"> & {
|
|
335
335
|
dateTime: DateTimeType;
|
|
336
336
|
};
|
|
337
|
-
type
|
|
337
|
+
type VendorProductType = {
|
|
338
338
|
description: string | null;
|
|
339
339
|
name: string | null;
|
|
340
340
|
price: number | null;
|
|
@@ -346,11 +346,16 @@ interface VendorFormData extends BaseResourceTypeFormData {
|
|
|
346
346
|
private: boolean;
|
|
347
347
|
corporate: boolean;
|
|
348
348
|
};
|
|
349
|
+
calendar?: {
|
|
350
|
+
active?: boolean | null;
|
|
351
|
+
calendarData?: VendorCalendarData[] | null;
|
|
352
|
+
} | null;
|
|
349
353
|
categories: Category[];
|
|
350
354
|
foodTruck: boolean;
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
355
|
+
products?: {
|
|
356
|
+
active?: boolean | null;
|
|
357
|
+
productsData?: VendorProductType[] | null;
|
|
358
|
+
} | null;
|
|
354
359
|
vendorType: EnumVendorType;
|
|
355
360
|
}
|
|
356
361
|
type CreateVendorFormData = CreateFormData<VendorFormData>;
|
|
@@ -395,11 +400,10 @@ interface VendorType extends BaseResourceType {
|
|
|
395
400
|
private: boolean;
|
|
396
401
|
corporate: boolean;
|
|
397
402
|
};
|
|
403
|
+
calendar: VendorFormData["calendar"] | null;
|
|
398
404
|
categories: VendorFormData["categories"];
|
|
399
405
|
foodTruck: boolean;
|
|
400
|
-
|
|
401
|
-
multiLocation: boolean;
|
|
402
|
-
products: VendorMenuType[] | null;
|
|
406
|
+
products: VendorFormData["products"] | null;
|
|
403
407
|
vendorInfoId: string;
|
|
404
408
|
vendorType: EnumVendorType;
|
|
405
409
|
relations: {
|
|
@@ -609,7 +613,6 @@ interface CreateFormData<T extends FieldValues> {
|
|
|
609
613
|
}
|
|
610
614
|
|
|
611
615
|
declare const vendorBasicInfoFields: FormField[];
|
|
612
|
-
declare const vendorMultiLocation: FormField;
|
|
613
616
|
declare const vendorFullAddress: FormField;
|
|
614
617
|
declare const vendorStartDateFields: FormDateField[];
|
|
615
618
|
declare const vendorEndDateFields: FormDateField[];
|
|
@@ -2296,4 +2299,4 @@ declare const cluemartSocialMedia: SocialMediaType[];
|
|
|
2296
2299
|
declare const IOS_URL = "https://apps.apple.com/nz/app/cluemart/id6747251008";
|
|
2297
2300
|
declare const ANDROID_URL = "https://play.google.com/store/apps/details?id=com.timardex.cluemart";
|
|
2298
2301
|
|
|
2299
|
-
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 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 UserActivity, type UserActivityEvent, type UserFormData, type UserLicenceType, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type
|
|
2302
|
+
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 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 UserActivity, type UserActivityEvent, type UserFormData, type UserLicenceType, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorCalendarData, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorProductType, 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, 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, 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, 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
|
@@ -331,10 +331,10 @@ type EventInfoType = Omit<EventInfoFormData, "_id"> & {
|
|
|
331
331
|
_id: string;
|
|
332
332
|
};
|
|
333
333
|
|
|
334
|
-
type
|
|
334
|
+
type VendorCalendarData = Omit<ResourceDetails, "dateTime" | "eventStatus"> & {
|
|
335
335
|
dateTime: DateTimeType;
|
|
336
336
|
};
|
|
337
|
-
type
|
|
337
|
+
type VendorProductType = {
|
|
338
338
|
description: string | null;
|
|
339
339
|
name: string | null;
|
|
340
340
|
price: number | null;
|
|
@@ -346,11 +346,16 @@ interface VendorFormData extends BaseResourceTypeFormData {
|
|
|
346
346
|
private: boolean;
|
|
347
347
|
corporate: boolean;
|
|
348
348
|
};
|
|
349
|
+
calendar?: {
|
|
350
|
+
active?: boolean | null;
|
|
351
|
+
calendarData?: VendorCalendarData[] | null;
|
|
352
|
+
} | null;
|
|
349
353
|
categories: Category[];
|
|
350
354
|
foodTruck: boolean;
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
355
|
+
products?: {
|
|
356
|
+
active?: boolean | null;
|
|
357
|
+
productsData?: VendorProductType[] | null;
|
|
358
|
+
} | null;
|
|
354
359
|
vendorType: EnumVendorType;
|
|
355
360
|
}
|
|
356
361
|
type CreateVendorFormData = CreateFormData<VendorFormData>;
|
|
@@ -395,11 +400,10 @@ interface VendorType extends BaseResourceType {
|
|
|
395
400
|
private: boolean;
|
|
396
401
|
corporate: boolean;
|
|
397
402
|
};
|
|
403
|
+
calendar: VendorFormData["calendar"] | null;
|
|
398
404
|
categories: VendorFormData["categories"];
|
|
399
405
|
foodTruck: boolean;
|
|
400
|
-
|
|
401
|
-
multiLocation: boolean;
|
|
402
|
-
products: VendorMenuType[] | null;
|
|
406
|
+
products: VendorFormData["products"] | null;
|
|
403
407
|
vendorInfoId: string;
|
|
404
408
|
vendorType: EnumVendorType;
|
|
405
409
|
relations: {
|
|
@@ -609,7 +613,6 @@ interface CreateFormData<T extends FieldValues> {
|
|
|
609
613
|
}
|
|
610
614
|
|
|
611
615
|
declare const vendorBasicInfoFields: FormField[];
|
|
612
|
-
declare const vendorMultiLocation: FormField;
|
|
613
616
|
declare const vendorFullAddress: FormField;
|
|
614
617
|
declare const vendorStartDateFields: FormDateField[];
|
|
615
618
|
declare const vendorEndDateFields: FormDateField[];
|
|
@@ -2296,4 +2299,4 @@ declare const cluemartSocialMedia: SocialMediaType[];
|
|
|
2296
2299
|
declare const IOS_URL = "https://apps.apple.com/nz/app/cluemart/id6747251008";
|
|
2297
2300
|
declare const ANDROID_URL = "https://play.google.com/store/apps/details?id=com.timardex.cluemart";
|
|
2298
2301
|
|
|
2299
|
-
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 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 UserActivity, type UserActivityEvent, type UserFormData, type UserLicenceType, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type
|
|
2302
|
+
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 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 UserActivity, type UserActivityEvent, type UserFormData, type UserLicenceType, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorCalendarData, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorProductType, 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, 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, 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, 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
|
@@ -242,11 +242,6 @@ var vendorBasicInfoFields = [
|
|
|
242
242
|
placeholder: "Description"
|
|
243
243
|
}
|
|
244
244
|
];
|
|
245
|
-
var vendorMultiLocation = {
|
|
246
|
-
helperText: "Usefull when you are not only selling products on Events but also providing services at other locations.",
|
|
247
|
-
name: "multiLocation",
|
|
248
|
-
placeholder: "Multi location"
|
|
249
|
-
};
|
|
250
245
|
var vendorFullAddress = {
|
|
251
246
|
helperText: "Enter address",
|
|
252
247
|
name: "fullAddress",
|
|
@@ -2721,8 +2716,8 @@ var VENDOR_DATETIME_FIELDS_FRAGMENT = gql4`
|
|
|
2721
2716
|
startTime
|
|
2722
2717
|
}
|
|
2723
2718
|
`;
|
|
2724
|
-
var
|
|
2725
|
-
fragment
|
|
2719
|
+
var VENDOR_PRODUCT_FIELDS_FRAGMENT = gql4`
|
|
2720
|
+
fragment VendorProductFields on VendorProductType {
|
|
2726
2721
|
description
|
|
2727
2722
|
name
|
|
2728
2723
|
price
|
|
@@ -2746,6 +2741,18 @@ var VENDOR = gql4`
|
|
|
2746
2741
|
categories {
|
|
2747
2742
|
...CategoryFields
|
|
2748
2743
|
}
|
|
2744
|
+
calendar {
|
|
2745
|
+
active
|
|
2746
|
+
calendarData {
|
|
2747
|
+
dateTime {
|
|
2748
|
+
...VendorDateTimeFields
|
|
2749
|
+
}
|
|
2750
|
+
description
|
|
2751
|
+
location {
|
|
2752
|
+
...LocationFields
|
|
2753
|
+
}
|
|
2754
|
+
}
|
|
2755
|
+
}
|
|
2749
2756
|
contactDetails {
|
|
2750
2757
|
...ContactDetailsFields
|
|
2751
2758
|
}
|
|
@@ -2759,25 +2766,18 @@ var VENDOR = gql4`
|
|
|
2759
2766
|
images {
|
|
2760
2767
|
...ResourceImageFields
|
|
2761
2768
|
}
|
|
2762
|
-
locations {
|
|
2763
|
-
dateTime {
|
|
2764
|
-
...VendorDateTimeFields
|
|
2765
|
-
}
|
|
2766
|
-
description
|
|
2767
|
-
location {
|
|
2768
|
-
...LocationFields
|
|
2769
|
-
}
|
|
2770
|
-
}
|
|
2771
2769
|
logo {
|
|
2772
2770
|
...ResourceImageFields
|
|
2773
2771
|
}
|
|
2774
|
-
multiLocation
|
|
2775
2772
|
name
|
|
2776
2773
|
owner {
|
|
2777
2774
|
...OwnerFields
|
|
2778
2775
|
}
|
|
2779
2776
|
products {
|
|
2780
|
-
|
|
2777
|
+
active
|
|
2778
|
+
productsData {
|
|
2779
|
+
...VendorProductFields
|
|
2780
|
+
}
|
|
2781
2781
|
}
|
|
2782
2782
|
promoCodes
|
|
2783
2783
|
posterUsage {
|
|
@@ -2809,7 +2809,7 @@ var VENDOR = gql4`
|
|
|
2809
2809
|
${SOCIAL_MEDIA_FIELDS_FRAGMENT}
|
|
2810
2810
|
${POSTER_USAGE_FIELDS_FRAGMENT}
|
|
2811
2811
|
${ASSOCIATES_FIELDS_FRAGMENT}
|
|
2812
|
-
${
|
|
2812
|
+
${VENDOR_PRODUCT_FIELDS_FRAGMENT}
|
|
2813
2813
|
${CONTACT_DETAILS_FIELDS_FRAGMENT}
|
|
2814
2814
|
${TERMS_AGREEMENT_FIELDS_FRAGMENT}
|
|
2815
2815
|
${RELATION_DATES_FRAGMENT}
|
|
@@ -6034,8 +6034,9 @@ var vendroMenuSchema = yup3.object().shape({
|
|
|
6034
6034
|
var vendorSchema = globalResourceSchema.shape({
|
|
6035
6035
|
categories: categorySchema.min(1, "Category list must contain at least one item").required("Categories are required"),
|
|
6036
6036
|
foodTruck: yup3.boolean().label("Food Truck").required("Please specify if the vendor is a food truck"),
|
|
6037
|
-
|
|
6038
|
-
|
|
6037
|
+
products: yup3.object().shape({
|
|
6038
|
+
productsData: yup3.array().of(vendroMenuSchema).nullable().optional()
|
|
6039
|
+
}).nullable().optional(),
|
|
6039
6040
|
vendorType: yup3.mixed().oneOf(Object.values(EnumVendorType)).required("Please select a Vendor type")
|
|
6040
6041
|
});
|
|
6041
6042
|
var unregisteredVendorSchema = yup3.object().shape({
|
|
@@ -6393,8 +6394,6 @@ var defaultVendorFormValues = {
|
|
|
6393
6394
|
},
|
|
6394
6395
|
categories: [],
|
|
6395
6396
|
foodTruck: false,
|
|
6396
|
-
locations: null,
|
|
6397
|
-
multiLocation: false,
|
|
6398
6397
|
products: null,
|
|
6399
6398
|
vendorType: "Stallholder" /* STALLHOLDER */
|
|
6400
6399
|
};
|
|
@@ -6466,10 +6465,9 @@ function useVendorForm(data) {
|
|
|
6466
6465
|
reset({
|
|
6467
6466
|
...mapBaseResourceTypeToFormData(data),
|
|
6468
6467
|
availability: data.availability,
|
|
6468
|
+
calendar: data.calendar,
|
|
6469
6469
|
categories: data.categories,
|
|
6470
6470
|
foodTruck: data.foodTruck,
|
|
6471
|
-
locations: data.locations,
|
|
6472
|
-
multiLocation: data.multiLocation,
|
|
6473
6471
|
products: data.products,
|
|
6474
6472
|
vendorType: data.vendorType
|
|
6475
6473
|
});
|
|
@@ -6483,6 +6481,7 @@ function useVendorForm(data) {
|
|
|
6483
6481
|
associates,
|
|
6484
6482
|
availability,
|
|
6485
6483
|
categories,
|
|
6484
|
+
calendar,
|
|
6486
6485
|
contactDetails,
|
|
6487
6486
|
cover,
|
|
6488
6487
|
coverUpload,
|
|
@@ -6490,10 +6489,8 @@ function useVendorForm(data) {
|
|
|
6490
6489
|
description,
|
|
6491
6490
|
images,
|
|
6492
6491
|
imagesUpload,
|
|
6493
|
-
locations,
|
|
6494
6492
|
logo,
|
|
6495
6493
|
logoUpload,
|
|
6496
|
-
multiLocation,
|
|
6497
6494
|
name,
|
|
6498
6495
|
owner,
|
|
6499
6496
|
products,
|
|
@@ -6510,6 +6507,7 @@ function useVendorForm(data) {
|
|
|
6510
6507
|
active,
|
|
6511
6508
|
associates,
|
|
6512
6509
|
availability,
|
|
6510
|
+
calendar,
|
|
6513
6511
|
categories,
|
|
6514
6512
|
contactDetails,
|
|
6515
6513
|
cover,
|
|
@@ -6518,10 +6516,8 @@ function useVendorForm(data) {
|
|
|
6518
6516
|
foodTruck,
|
|
6519
6517
|
images,
|
|
6520
6518
|
imagesUpload,
|
|
6521
|
-
locations,
|
|
6522
6519
|
logo,
|
|
6523
6520
|
logoUpload,
|
|
6524
|
-
multiLocation,
|
|
6525
6521
|
name,
|
|
6526
6522
|
owner,
|
|
6527
6523
|
products,
|
|
@@ -7721,7 +7717,6 @@ export {
|
|
|
7721
7717
|
vendorGazebo,
|
|
7722
7718
|
vendorLocationDescription,
|
|
7723
7719
|
vendorMenuFields,
|
|
7724
|
-
vendorMultiLocation,
|
|
7725
7720
|
vendorPackaging,
|
|
7726
7721
|
vendorPriceRange,
|
|
7727
7722
|
vendorProducedIn,
|