@timardex/cluemart-shared 1.0.51 → 1.0.52
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/formFields/index.cjs +3 -3
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.d.mts +3 -3
- package/dist/formFields/index.d.ts +3 -3
- package/dist/formFields/index.mjs +2 -2
- package/dist/formFields/index.mjs.map +1 -1
- package/dist/{global-BUKNOhE_.d.ts → global-BQGczJrr.d.ts} +3 -3
- package/dist/{global-PEJ9GGhs.d.mts → global-CLUyvAvC.d.mts} +3 -3
- package/dist/graphql/index.cjs +1 -1
- 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/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +6 -6
- 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 +6 -6
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +10 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.mjs +9 -9
- package/dist/index.mjs.map +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -226,7 +226,7 @@ type SiteType = {
|
|
|
226
226
|
interface DateTimeWithPriceType extends DateTimeType {
|
|
227
227
|
siteTypes: SiteType[];
|
|
228
228
|
}
|
|
229
|
-
type
|
|
229
|
+
type PaymentInfoType = {
|
|
230
230
|
accountHolderName?: string;
|
|
231
231
|
accountNumber?: string;
|
|
232
232
|
link?: string;
|
|
@@ -245,7 +245,7 @@ interface MarketInfoFormData {
|
|
|
245
245
|
packInTime: number;
|
|
246
246
|
packOutTime: number;
|
|
247
247
|
paymentDueHours: number;
|
|
248
|
-
|
|
248
|
+
paymentInfo: PaymentInfoType[];
|
|
249
249
|
requirements?: Requirement[];
|
|
250
250
|
}
|
|
251
251
|
interface MarketFormData extends BaseResourceTypeFormData {
|
|
@@ -1128,7 +1128,7 @@ declare const availableTagTypes: {
|
|
|
1128
1128
|
declare const tagOptions: OptionItem[];
|
|
1129
1129
|
|
|
1130
1130
|
declare const marketInfo: FormField[];
|
|
1131
|
-
declare const
|
|
1131
|
+
declare const marketInfoPaymentInfo: FormField[];
|
|
1132
1132
|
declare const requirementsOptions: Requirement[];
|
|
1133
1133
|
declare const siteTypeOptions: SiteType[];
|
|
1134
1134
|
|
|
@@ -1155,4 +1155,4 @@ declare const SAVED_TOKEN_KEY = "savedToken";
|
|
|
1155
1155
|
declare const SAVED_REFRESH_TOKEN_KEY = "savedRefreshToken";
|
|
1156
1156
|
declare const USER_STORAGE_KEY = "authUser";
|
|
1157
1157
|
|
|
1158
|
-
export { type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatInput, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateContactUsFormData, type CreateLoginFormData, type CreateMarketFormData, type CreateMarketInfoFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateStallholderApplyFormFormData, type CreateStallholderFormData, type CreateTestersFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type DateTimeType, type DateTimeWithPriceType, EnumInviteStatus, EnumNotification, EnumOSType, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumResourceTypeIcon, EnumSocialMedia, EnumUserLicence, EnumUserRole, type FormDateField, type FormField, type GeocodeLocation, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type MarketFormData, type MarketInfoFormData, type MarketInfoType, type MarketType, type MarketWithConnectionDatesType, type NotificationType, type Nullable, type OptionItem, type
|
|
1158
|
+
export { type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatInput, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateContactUsFormData, type CreateLoginFormData, type CreateMarketFormData, type CreateMarketInfoFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateStallholderApplyFormFormData, type CreateStallholderFormData, type CreateTestersFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type DateTimeType, type DateTimeWithPriceType, EnumInviteStatus, EnumNotification, EnumOSType, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumResourceTypeIcon, EnumSocialMedia, EnumUserLicence, EnumUserRole, type FormDateField, type FormField, type GeocodeLocation, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type MarketFormData, type MarketInfoFormData, type MarketInfoType, type MarketType, type MarketWithConnectionDatesType, type NotificationType, type Nullable, type OptionItem, type PaymentInfoType, type PlacePrediction, type PosterInputType, type Region, type RegisterFormData, type RelationDate, type RelationLog, type RelationType, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceConnectionsType, type ResourceImageType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SatllholderWithConnectionDatesType, type SiteType, type SocialMediaType, type StallholderApplyFormFormData, type StallholderApplyFormType, type StallholderAttributes, type StallholderFormData, type StallholderLocation, type StallholderType, type Subcategory, type TesterType, type TestersFormData, USER_STORAGE_KEY, type UserFormData, type UserType, type ValidateVerificationTokenFormData, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, contactUsFields, dateFormat, defaultMarketFormValues, defaultMarketInfoFormValues, defaultRegion, defaultStallholderApplyFormValues, defaultStallholderFormValues, formatDate, formatTimestamp, getCurrentAndFutureDates, getFutureDatesAfterThreshold, globalDefaultValues, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, marketBasicInfoFields, marketEndDateFields, marketInfo, marketInfoPaymentInfo, marketStartDateFields, normalizeUrl, packagingOptions, paymentMethodOptions, producedIngOptions, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, siteTypeOptions, socialMediaFields, sortDatesByProximity, stallholderBasicInfoFields, stallholderElectricity, stallholderEndDateFields, stallholderFullAddress, stallholderGazebo, stallholderLocationDescription, stallholderMultiLocation, stallholderPackaging, stallholderPaymentMethod, stallholderPriceRange, stallholderProducedIn, stallholderStallSize, stallholderStartDateFields, stallholderTable, statusOptions, tagOptions, testersFields, timeFormat, truncateText, useAddParticipantToChat, useAddUserFavouriteResource, useContactUs, useContactUsForm, useCreateChat, useCreateMarket, useCreateMarketInfo, useCreatePoster, useCreateRelation, useCreateStallholder, useCreateStallholderApplyForm, useCreateTester, useCreateUser, useDeleteChat, useDeleteMarket, useDeleteRelation, useDeleteStallholder, useDeleteTester, useGetChat, useGetChatSubscription, useGetMarket, useGetMarketInfo, useGetMarketRelations, useGetMarkets, useGetMarketsByRegion, useGetMarketsNearMe, useGetNotification, useGetRelation, useGetRelationByMarketAndStallholder, useGetResourceConnections, useGetStallholder, useGetStallholderApplyForm, useGetStallholderRelations, useGetStallholders, useGetStallholdersByRegion, useGetTester, useGetTesters, useGetUser, useGetUserChats, useGetUserFavourites, useGetUserMarkets, useGetUserNotifications, useGetUserStallholder, useGetUsers, useLocationSearch, useLogin, useLoginForm, useLogout, useMarketForm, useMarketInfoForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchMarkets, useSearchStallholders, useSendChatMessage, useStallholderApplyForm, useStallholderForm, useTestersForm, useUpdateMarket, useUpdateMarketInfo, useUpdateRelation, useUpdateStallholder, useUpdateStallholderApplyForm, useUpdateTester, useUpdateUser, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, validateVerificationTokenFields };
|
package/dist/index.d.ts
CHANGED
|
@@ -226,7 +226,7 @@ type SiteType = {
|
|
|
226
226
|
interface DateTimeWithPriceType extends DateTimeType {
|
|
227
227
|
siteTypes: SiteType[];
|
|
228
228
|
}
|
|
229
|
-
type
|
|
229
|
+
type PaymentInfoType = {
|
|
230
230
|
accountHolderName?: string;
|
|
231
231
|
accountNumber?: string;
|
|
232
232
|
link?: string;
|
|
@@ -245,7 +245,7 @@ interface MarketInfoFormData {
|
|
|
245
245
|
packInTime: number;
|
|
246
246
|
packOutTime: number;
|
|
247
247
|
paymentDueHours: number;
|
|
248
|
-
|
|
248
|
+
paymentInfo: PaymentInfoType[];
|
|
249
249
|
requirements?: Requirement[];
|
|
250
250
|
}
|
|
251
251
|
interface MarketFormData extends BaseResourceTypeFormData {
|
|
@@ -1128,7 +1128,7 @@ declare const availableTagTypes: {
|
|
|
1128
1128
|
declare const tagOptions: OptionItem[];
|
|
1129
1129
|
|
|
1130
1130
|
declare const marketInfo: FormField[];
|
|
1131
|
-
declare const
|
|
1131
|
+
declare const marketInfoPaymentInfo: FormField[];
|
|
1132
1132
|
declare const requirementsOptions: Requirement[];
|
|
1133
1133
|
declare const siteTypeOptions: SiteType[];
|
|
1134
1134
|
|
|
@@ -1155,4 +1155,4 @@ declare const SAVED_TOKEN_KEY = "savedToken";
|
|
|
1155
1155
|
declare const SAVED_REFRESH_TOKEN_KEY = "savedRefreshToken";
|
|
1156
1156
|
declare const USER_STORAGE_KEY = "authUser";
|
|
1157
1157
|
|
|
1158
|
-
export { type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatInput, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateContactUsFormData, type CreateLoginFormData, type CreateMarketFormData, type CreateMarketInfoFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateStallholderApplyFormFormData, type CreateStallholderFormData, type CreateTestersFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type DateTimeType, type DateTimeWithPriceType, EnumInviteStatus, EnumNotification, EnumOSType, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumResourceTypeIcon, EnumSocialMedia, EnumUserLicence, EnumUserRole, type FormDateField, type FormField, type GeocodeLocation, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type MarketFormData, type MarketInfoFormData, type MarketInfoType, type MarketType, type MarketWithConnectionDatesType, type NotificationType, type Nullable, type OptionItem, type
|
|
1158
|
+
export { type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatInput, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateContactUsFormData, type CreateLoginFormData, type CreateMarketFormData, type CreateMarketInfoFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateStallholderApplyFormFormData, type CreateStallholderFormData, type CreateTestersFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type DateTimeType, type DateTimeWithPriceType, EnumInviteStatus, EnumNotification, EnumOSType, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumResourceTypeIcon, EnumSocialMedia, EnumUserLicence, EnumUserRole, type FormDateField, type FormField, type GeocodeLocation, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type MarketFormData, type MarketInfoFormData, type MarketInfoType, type MarketType, type MarketWithConnectionDatesType, type NotificationType, type Nullable, type OptionItem, type PaymentInfoType, type PlacePrediction, type PosterInputType, type Region, type RegisterFormData, type RelationDate, type RelationLog, type RelationType, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceConnectionsType, type ResourceImageType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SatllholderWithConnectionDatesType, type SiteType, type SocialMediaType, type StallholderApplyFormFormData, type StallholderApplyFormType, type StallholderAttributes, type StallholderFormData, type StallholderLocation, type StallholderType, type Subcategory, type TesterType, type TestersFormData, USER_STORAGE_KEY, type UserFormData, type UserType, type ValidateVerificationTokenFormData, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, contactUsFields, dateFormat, defaultMarketFormValues, defaultMarketInfoFormValues, defaultRegion, defaultStallholderApplyFormValues, defaultStallholderFormValues, formatDate, formatTimestamp, getCurrentAndFutureDates, getFutureDatesAfterThreshold, globalDefaultValues, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, marketBasicInfoFields, marketEndDateFields, marketInfo, marketInfoPaymentInfo, marketStartDateFields, normalizeUrl, packagingOptions, paymentMethodOptions, producedIngOptions, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, siteTypeOptions, socialMediaFields, sortDatesByProximity, stallholderBasicInfoFields, stallholderElectricity, stallholderEndDateFields, stallholderFullAddress, stallholderGazebo, stallholderLocationDescription, stallholderMultiLocation, stallholderPackaging, stallholderPaymentMethod, stallholderPriceRange, stallholderProducedIn, stallholderStallSize, stallholderStartDateFields, stallholderTable, statusOptions, tagOptions, testersFields, timeFormat, truncateText, useAddParticipantToChat, useAddUserFavouriteResource, useContactUs, useContactUsForm, useCreateChat, useCreateMarket, useCreateMarketInfo, useCreatePoster, useCreateRelation, useCreateStallholder, useCreateStallholderApplyForm, useCreateTester, useCreateUser, useDeleteChat, useDeleteMarket, useDeleteRelation, useDeleteStallholder, useDeleteTester, useGetChat, useGetChatSubscription, useGetMarket, useGetMarketInfo, useGetMarketRelations, useGetMarkets, useGetMarketsByRegion, useGetMarketsNearMe, useGetNotification, useGetRelation, useGetRelationByMarketAndStallholder, useGetResourceConnections, useGetStallholder, useGetStallholderApplyForm, useGetStallholderRelations, useGetStallholders, useGetStallholdersByRegion, useGetTester, useGetTesters, useGetUser, useGetUserChats, useGetUserFavourites, useGetUserMarkets, useGetUserNotifications, useGetUserStallholder, useGetUsers, useLocationSearch, useLogin, useLoginForm, useLogout, useMarketForm, useMarketInfoForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchMarkets, useSearchStallholders, useSendChatMessage, useStallholderApplyForm, useStallholderForm, useTestersForm, useUpdateMarket, useUpdateMarketInfo, useUpdateRelation, useUpdateStallholder, useUpdateStallholderApplyForm, useUpdateTester, useUpdateUser, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, validateVerificationTokenFields };
|
package/dist/index.mjs
CHANGED
|
@@ -429,7 +429,7 @@ var marketSchema = globalResourceSchema.shape({
|
|
|
429
429
|
provider: yup2.string().label("Provider").trim().min(3).required("Provider is required"),
|
|
430
430
|
tags: yup2.array().of(yup2.string().defined()).min(1, "Tags are required").required("Tags are required")
|
|
431
431
|
});
|
|
432
|
-
var
|
|
432
|
+
var paymentInfoSchema = yup2.object({
|
|
433
433
|
paymentMethod: yup2.mixed().oneOf(Object.values(EnumPaymentMethod)).required("Please select a Payment method"),
|
|
434
434
|
accountHolderName: yup2.string().when("paymentMethod", {
|
|
435
435
|
is: "bank_transfer" /* BANK_TRANSFER */,
|
|
@@ -457,7 +457,7 @@ var marketInfoSchema = yup2.object().shape({
|
|
|
457
457
|
packInTime: yup2.number().typeError("Pack in time must be a number").min(1, "Pack in time must be at least 1").required("Pack in time is required").test("no-leading-zeros", "", noLeadingZeros("Pack in time")),
|
|
458
458
|
packOutTime: yup2.number().typeError("Pack out time must be a number").min(1, "Pack out time must be at least 1").required("Pack out time is required").test("no-leading-zeros", "", noLeadingZeros("Pack out time")),
|
|
459
459
|
paymentDueHours: yup2.number().typeError("Payment due hours must be a number").min(1, "Payment due hours must be at least 1").required("Payment due hours is required").test("no-leading-zeros", "", noLeadingZeros("Payment due hours")),
|
|
460
|
-
|
|
460
|
+
paymentInfo: yup2.array().of(paymentInfoSchema).min(1, "At least one payment info is required").required("Payment info is required")
|
|
461
461
|
});
|
|
462
462
|
|
|
463
463
|
// src/yupSchema/stallholder.ts
|
|
@@ -651,7 +651,7 @@ var defaultMarketInfoFormValues = {
|
|
|
651
651
|
packOutTime: 0,
|
|
652
652
|
// e.g., 1 hour after market closes
|
|
653
653
|
paymentDueHours: 0,
|
|
654
|
-
|
|
654
|
+
paymentInfo: [],
|
|
655
655
|
requirements: []
|
|
656
656
|
};
|
|
657
657
|
var defaultStallholderFormValues = {
|
|
@@ -951,7 +951,7 @@ function useMarketInfoForm(data) {
|
|
|
951
951
|
packInTime: data.packInTime,
|
|
952
952
|
packOutTime: data.packOutTime,
|
|
953
953
|
paymentDueHours: data.paymentDueHours,
|
|
954
|
-
|
|
954
|
+
paymentInfo: data.paymentInfo,
|
|
955
955
|
requirements: data.requirements
|
|
956
956
|
});
|
|
957
957
|
} else {
|
|
@@ -966,7 +966,7 @@ function useMarketInfoForm(data) {
|
|
|
966
966
|
packInTime,
|
|
967
967
|
packOutTime,
|
|
968
968
|
paymentDueHours,
|
|
969
|
-
|
|
969
|
+
paymentInfo,
|
|
970
970
|
requirements
|
|
971
971
|
} = getValues();
|
|
972
972
|
return {
|
|
@@ -979,7 +979,7 @@ function useMarketInfoForm(data) {
|
|
|
979
979
|
packInTime,
|
|
980
980
|
packOutTime,
|
|
981
981
|
paymentDueHours,
|
|
982
|
-
|
|
982
|
+
paymentInfo,
|
|
983
983
|
requirements
|
|
984
984
|
},
|
|
985
985
|
formState: { errors },
|
|
@@ -1776,7 +1776,7 @@ var MARKET_INFO = gql5`
|
|
|
1776
1776
|
packInTime
|
|
1777
1777
|
packOutTime
|
|
1778
1778
|
paymentDueHours
|
|
1779
|
-
|
|
1779
|
+
paymentInfo {
|
|
1780
1780
|
accountHolderName
|
|
1781
1781
|
accountNumber
|
|
1782
1782
|
link
|
|
@@ -3445,7 +3445,7 @@ var marketInfo = [
|
|
|
3445
3445
|
placeholder: "Pack Out Time (in hours)"
|
|
3446
3446
|
}
|
|
3447
3447
|
];
|
|
3448
|
-
var
|
|
3448
|
+
var marketInfoPaymentInfo = [
|
|
3449
3449
|
{
|
|
3450
3450
|
helperText: "Account holder name *",
|
|
3451
3451
|
name: "accountHolderName",
|
|
@@ -4241,7 +4241,7 @@ export {
|
|
|
4241
4241
|
marketBasicInfoFields,
|
|
4242
4242
|
marketEndDateFields,
|
|
4243
4243
|
marketInfo,
|
|
4244
|
-
|
|
4244
|
+
marketInfoPaymentInfo,
|
|
4245
4245
|
marketStartDateFields,
|
|
4246
4246
|
normalizeUrl,
|
|
4247
4247
|
packagingOptions,
|