@timardex/cluemart-shared 1.4.34 → 1.4.36
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/{chunk-FWQCXOHJ.mjs → chunk-3XCNU5MU.mjs} +5 -4
- package/dist/{chunk-FWQCXOHJ.mjs.map → chunk-3XCNU5MU.mjs.map} +1 -1
- package/dist/{chunk-B3564QBA.mjs → chunk-B5HXAEH4.mjs} +1 -2
- package/dist/{chunk-B3564QBA.mjs.map → chunk-B5HXAEH4.mjs.map} +1 -1
- package/dist/{chunk-VK7YXMD5.mjs → chunk-JKQ4GVSJ.mjs} +7 -7
- package/dist/{chunk-VK7YXMD5.mjs.map → chunk-JKQ4GVSJ.mjs.map} +1 -1
- package/dist/formFields/index.cjs +6 -6
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.mjs +1 -1
- package/dist/graphql/index.cjs +4 -3
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +1 -1
- package/dist/graphql/index.d.ts +1 -1
- package/dist/graphql/index.mjs +1 -1
- package/dist/hooks/index.cjs +21 -5
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.mjs +20 -4
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +27 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +6 -9
- package/dist/index.d.ts +6 -9
- package/dist/index.mjs +27 -11
- package/dist/index.mjs.map +1 -1
- package/dist/{post-BFyga46l.d.mts → post-DklGTzDA.d.mts} +6 -9
- package/dist/{post-zekOa7mw.d.ts → post-vmmaQ9XX.d.ts} +6 -9
- package/dist/types/index.cjs +0 -1
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1056,7 +1056,6 @@ declare enum EnumPostType {
|
|
|
1056
1056
|
DAILY_POLL = "daily_poll"
|
|
1057
1057
|
}
|
|
1058
1058
|
declare enum EnumPostContentType {
|
|
1059
|
-
COVER = "cover",
|
|
1060
1059
|
IMAGE = "image",
|
|
1061
1060
|
LIST = "list",
|
|
1062
1061
|
TEXTAREA = "textarea",
|
|
@@ -1066,10 +1065,6 @@ type PostFileInput = {
|
|
|
1066
1065
|
source: File;
|
|
1067
1066
|
title?: string;
|
|
1068
1067
|
};
|
|
1069
|
-
type PostContentCover = {
|
|
1070
|
-
cover: ResourceImageType;
|
|
1071
|
-
coverUpload?: PostFileInput | null;
|
|
1072
|
-
};
|
|
1073
1068
|
type PostContentTextarea = {
|
|
1074
1069
|
textarea: {
|
|
1075
1070
|
title?: string;
|
|
@@ -1094,7 +1089,7 @@ type PostContentList = {
|
|
|
1094
1089
|
}[];
|
|
1095
1090
|
};
|
|
1096
1091
|
};
|
|
1097
|
-
type PostContentData =
|
|
1092
|
+
type PostContentData = PostContentTextarea | PostContentImage | PostContentVideo | PostContentList;
|
|
1098
1093
|
type PostContentFormData = {
|
|
1099
1094
|
contentData?: PostContentData | null;
|
|
1100
1095
|
contentOrder?: number | null;
|
|
@@ -1104,6 +1099,8 @@ interface PostFormData {
|
|
|
1104
1099
|
active: boolean;
|
|
1105
1100
|
caption: string;
|
|
1106
1101
|
content: PostContentFormData[];
|
|
1102
|
+
cover?: ResourceImageType | null;
|
|
1103
|
+
coverUpload?: PostFileInput | null;
|
|
1107
1104
|
postType: EnumPostType;
|
|
1108
1105
|
resource?: {
|
|
1109
1106
|
resourceId: string;
|
|
@@ -1114,9 +1111,9 @@ interface PostFormData {
|
|
|
1114
1111
|
}
|
|
1115
1112
|
type CreatePostFormData = CreateFormData<PostFormData>;
|
|
1116
1113
|
type PostContentType = Omit<PostContentFormData, "contentData"> & {
|
|
1117
|
-
contentData: Omit<PostContentData, "imagesUpload"
|
|
1114
|
+
contentData: Omit<PostContentData, "imagesUpload">;
|
|
1118
1115
|
};
|
|
1119
|
-
type PostType = Omit<PostFormData, "content"> & {
|
|
1116
|
+
type PostType = Omit<PostFormData, "content" | "coverUpload"> & {
|
|
1120
1117
|
_id: string;
|
|
1121
1118
|
content: PostContentType[];
|
|
1122
1119
|
createdAt: Date;
|
|
@@ -2431,4 +2428,4 @@ declare const cluemartSocialMedia: SocialMediaType[];
|
|
|
2431
2428
|
declare const IOS_URL = "https://apps.apple.com/nz/app/cluemart/id6747251008";
|
|
2432
2429
|
declare const ANDROID_URL = "https://play.google.com/store/apps/details?id=com.timardex.cluemart";
|
|
2433
2430
|
|
|
2434
|
-
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 CreateTesterFormData, 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 MapMultiLocation, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, OrganizedMarketCount, OrganizerMarketFrequency, type OwnerType, type ParticipantType, type PartnerFormData, type PartnerType, type PaymentInfoType, type PlacePrediction, type
|
|
2431
|
+
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 CreateTesterFormData, 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 MapMultiLocation, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, OrganizedMarketCount, OrganizerMarketFrequency, 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 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 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, type TesterEvent, type TesterFormData, type TesterType, type TesterVendor, USER_STORAGE_KEY, type UnregisteredVendorFormData, type UnregisteredVendorInvitationType, type UnregisteredVendorType, type UserActivity, type UserActivityEvent, type UserFormData, type UserLicenceType, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorLocation, type VendorMenuType, VendorSellingFrequency, 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, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, statusOptions, tagOptions, testersFields, timeFormat, toNZTime, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminResendTesterVerificationEmail, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useAdminUpdateTester, useAppSettingsForm, useCancelSubscription, useContactUs, useContactUsForm, useCrawlGoogleMarkets, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteTester, 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, useGetTester, useGetTesters, 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, useTesterForm, useToggleChatMessageLike, useUpdateAd, useUpdateAppSettings, useUpdateEvent, useUpdateEventInfo, useUpdatePartner, useUpdatePost, useUpdateRelation, useUpdateSubscriptionPlan, useUpdateTester, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, useVendorForm, useVendorInfoForm, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMenuFields, vendorMultiLocation, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
|
package/dist/index.d.ts
CHANGED
|
@@ -1056,7 +1056,6 @@ declare enum EnumPostType {
|
|
|
1056
1056
|
DAILY_POLL = "daily_poll"
|
|
1057
1057
|
}
|
|
1058
1058
|
declare enum EnumPostContentType {
|
|
1059
|
-
COVER = "cover",
|
|
1060
1059
|
IMAGE = "image",
|
|
1061
1060
|
LIST = "list",
|
|
1062
1061
|
TEXTAREA = "textarea",
|
|
@@ -1066,10 +1065,6 @@ type PostFileInput = {
|
|
|
1066
1065
|
source: File;
|
|
1067
1066
|
title?: string;
|
|
1068
1067
|
};
|
|
1069
|
-
type PostContentCover = {
|
|
1070
|
-
cover: ResourceImageType;
|
|
1071
|
-
coverUpload?: PostFileInput | null;
|
|
1072
|
-
};
|
|
1073
1068
|
type PostContentTextarea = {
|
|
1074
1069
|
textarea: {
|
|
1075
1070
|
title?: string;
|
|
@@ -1094,7 +1089,7 @@ type PostContentList = {
|
|
|
1094
1089
|
}[];
|
|
1095
1090
|
};
|
|
1096
1091
|
};
|
|
1097
|
-
type PostContentData =
|
|
1092
|
+
type PostContentData = PostContentTextarea | PostContentImage | PostContentVideo | PostContentList;
|
|
1098
1093
|
type PostContentFormData = {
|
|
1099
1094
|
contentData?: PostContentData | null;
|
|
1100
1095
|
contentOrder?: number | null;
|
|
@@ -1104,6 +1099,8 @@ interface PostFormData {
|
|
|
1104
1099
|
active: boolean;
|
|
1105
1100
|
caption: string;
|
|
1106
1101
|
content: PostContentFormData[];
|
|
1102
|
+
cover?: ResourceImageType | null;
|
|
1103
|
+
coverUpload?: PostFileInput | null;
|
|
1107
1104
|
postType: EnumPostType;
|
|
1108
1105
|
resource?: {
|
|
1109
1106
|
resourceId: string;
|
|
@@ -1114,9 +1111,9 @@ interface PostFormData {
|
|
|
1114
1111
|
}
|
|
1115
1112
|
type CreatePostFormData = CreateFormData<PostFormData>;
|
|
1116
1113
|
type PostContentType = Omit<PostContentFormData, "contentData"> & {
|
|
1117
|
-
contentData: Omit<PostContentData, "imagesUpload"
|
|
1114
|
+
contentData: Omit<PostContentData, "imagesUpload">;
|
|
1118
1115
|
};
|
|
1119
|
-
type PostType = Omit<PostFormData, "content"> & {
|
|
1116
|
+
type PostType = Omit<PostFormData, "content" | "coverUpload"> & {
|
|
1120
1117
|
_id: string;
|
|
1121
1118
|
content: PostContentType[];
|
|
1122
1119
|
createdAt: Date;
|
|
@@ -2431,4 +2428,4 @@ declare const cluemartSocialMedia: SocialMediaType[];
|
|
|
2431
2428
|
declare const IOS_URL = "https://apps.apple.com/nz/app/cluemart/id6747251008";
|
|
2432
2429
|
declare const ANDROID_URL = "https://play.google.com/store/apps/details?id=com.timardex.cluemart";
|
|
2433
2430
|
|
|
2434
|
-
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 CreateTesterFormData, 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 MapMultiLocation, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, OrganizedMarketCount, OrganizerMarketFrequency, type OwnerType, type ParticipantType, type PartnerFormData, type PartnerType, type PaymentInfoType, type PlacePrediction, type
|
|
2431
|
+
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 CreateTesterFormData, 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 MapMultiLocation, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, OrganizedMarketCount, OrganizerMarketFrequency, 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 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 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, type TesterEvent, type TesterFormData, type TesterType, type TesterVendor, USER_STORAGE_KEY, type UnregisteredVendorFormData, type UnregisteredVendorInvitationType, type UnregisteredVendorType, type UserActivity, type UserActivityEvent, type UserFormData, type UserLicenceType, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorLocation, type VendorMenuType, VendorSellingFrequency, 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, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, statusOptions, tagOptions, testersFields, timeFormat, toNZTime, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminResendTesterVerificationEmail, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useAdminUpdateTester, useAppSettingsForm, useCancelSubscription, useContactUs, useContactUsForm, useCrawlGoogleMarkets, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteTester, 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, useGetTester, useGetTesters, 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, useTesterForm, useToggleChatMessageLike, useUpdateAd, useUpdateAppSettings, useUpdateEvent, useUpdateEventInfo, useUpdatePartner, useUpdatePost, useUpdateRelation, useUpdateSubscriptionPlan, useUpdateTester, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, useVendorForm, useVendorInfoForm, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMenuFields, vendorMultiLocation, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
|
package/dist/index.mjs
CHANGED
|
@@ -307,17 +307,17 @@ var vendorMenuFields = [
|
|
|
307
307
|
name: "name",
|
|
308
308
|
placeholder: "Item name"
|
|
309
309
|
},
|
|
310
|
-
{
|
|
311
|
-
helperText: "Item Description",
|
|
312
|
-
isTextArea: true,
|
|
313
|
-
name: "description",
|
|
314
|
-
placeholder: "Item Description"
|
|
315
|
-
},
|
|
316
310
|
{
|
|
317
311
|
helperText: "Price",
|
|
318
312
|
keyboardType: "decimal-pad",
|
|
319
313
|
name: "price",
|
|
320
314
|
placeholder: "Price"
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
helperText: "Item Description",
|
|
318
|
+
isTextArea: true,
|
|
319
|
+
name: "description",
|
|
320
|
+
placeholder: "Item Description"
|
|
321
321
|
}
|
|
322
322
|
];
|
|
323
323
|
var productLabelGroups = [
|
|
@@ -5564,9 +5564,6 @@ import { gql as gql32 } from "@apollo/client";
|
|
|
5564
5564
|
import { gql as gql31 } from "@apollo/client";
|
|
5565
5565
|
var POST_CONTENT_DATA_FIELDS_FRAGMENT = gql31`
|
|
5566
5566
|
fragment PostContentDataFields on PostContentData {
|
|
5567
|
-
cover {
|
|
5568
|
-
...ResourceImageFields
|
|
5569
|
-
}
|
|
5570
5567
|
textarea {
|
|
5571
5568
|
title
|
|
5572
5569
|
data
|
|
@@ -5605,6 +5602,9 @@ var POST_FIELDS_FRAGMENT = gql31`
|
|
|
5605
5602
|
content {
|
|
5606
5603
|
...PostContentFields
|
|
5607
5604
|
}
|
|
5605
|
+
cover {
|
|
5606
|
+
...ResourceImageFields
|
|
5607
|
+
}
|
|
5608
5608
|
createdAt
|
|
5609
5609
|
deletedAt
|
|
5610
5610
|
postType
|
|
@@ -5617,6 +5617,7 @@ var POST_FIELDS_FRAGMENT = gql31`
|
|
|
5617
5617
|
updatedAt
|
|
5618
5618
|
}
|
|
5619
5619
|
${POST_CONTENT_FIELDS_FRAGMENT}
|
|
5620
|
+
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
5620
5621
|
`;
|
|
5621
5622
|
var GET_POSTS = gql31`
|
|
5622
5623
|
query getPosts {
|
|
@@ -6528,7 +6529,6 @@ var EnumPostType = /* @__PURE__ */ ((EnumPostType2) => {
|
|
|
6528
6529
|
return EnumPostType2;
|
|
6529
6530
|
})(EnumPostType || {});
|
|
6530
6531
|
var EnumPostContentType = /* @__PURE__ */ ((EnumPostContentType2) => {
|
|
6531
|
-
EnumPostContentType2["COVER"] = "cover";
|
|
6532
6532
|
EnumPostContentType2["IMAGE"] = "image";
|
|
6533
6533
|
EnumPostContentType2["LIST"] = "list";
|
|
6534
6534
|
EnumPostContentType2["TEXTAREA"] = "textarea";
|
|
@@ -7639,6 +7639,8 @@ var defaultValues10 = {
|
|
|
7639
7639
|
active: true,
|
|
7640
7640
|
caption: "",
|
|
7641
7641
|
content: [],
|
|
7642
|
+
cover: null,
|
|
7643
|
+
coverUpload: null,
|
|
7642
7644
|
postType: "",
|
|
7643
7645
|
resource: null,
|
|
7644
7646
|
tags: [],
|
|
@@ -7663,6 +7665,8 @@ function usePostForm(data) {
|
|
|
7663
7665
|
active: data.active,
|
|
7664
7666
|
caption: data.caption,
|
|
7665
7667
|
content: data.content,
|
|
7668
|
+
cover: data.cover,
|
|
7669
|
+
coverUpload: data.coverUpload,
|
|
7666
7670
|
postType: data.postType,
|
|
7667
7671
|
resource: data.resource,
|
|
7668
7672
|
tags: data.tags,
|
|
@@ -7672,13 +7676,25 @@ function usePostForm(data) {
|
|
|
7672
7676
|
reset(defaultValues10);
|
|
7673
7677
|
}
|
|
7674
7678
|
}, [data]);
|
|
7675
|
-
const {
|
|
7679
|
+
const {
|
|
7680
|
+
active,
|
|
7681
|
+
caption,
|
|
7682
|
+
content,
|
|
7683
|
+
cover,
|
|
7684
|
+
coverUpload,
|
|
7685
|
+
postType,
|
|
7686
|
+
resource,
|
|
7687
|
+
tags,
|
|
7688
|
+
title
|
|
7689
|
+
} = getValues();
|
|
7676
7690
|
return {
|
|
7677
7691
|
control,
|
|
7678
7692
|
fields: {
|
|
7679
7693
|
active,
|
|
7680
7694
|
caption,
|
|
7681
7695
|
content,
|
|
7696
|
+
cover,
|
|
7697
|
+
coverUpload,
|
|
7682
7698
|
postType,
|
|
7683
7699
|
resource,
|
|
7684
7700
|
tags,
|