@timardex/cluemart-shared 1.1.45 → 1.1.46
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/{ad-B21qYQnr.d.mts → ad-C6n6ilvr.d.mts} +1 -3
- package/dist/{ad-BCIa8Y7R.d.ts → ad-u9tGdnYq.d.ts} +1 -3
- package/dist/{auth-DQYGyhEP.d.ts → auth-CK5s0Vul.d.ts} +1 -1
- package/dist/{auth-z5LodR6x.d.mts → auth-DUprPCyL.d.mts} +1 -1
- package/dist/formFields/index.cjs +18 -6
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.d.mts +4 -2
- package/dist/formFields/index.d.ts +4 -2
- package/dist/formFields/index.mjs +17 -6
- package/dist/formFields/index.mjs.map +1 -1
- package/dist/{global-DxMzj0X4.d.mts → global-BjomA4mq.d.mts} +8 -0
- package/dist/{global-Bk7T1QES.d.ts → global-D_LR6aTg.d.ts} +8 -0
- package/dist/graphql/index.cjs +8 -1
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +3 -3
- package/dist/graphql/index.d.ts +3 -3
- package/dist/graphql/index.mjs +8 -1
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +27 -6
- 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 +27 -6
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +53 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +11 -3
- package/dist/index.d.ts +11 -3
- package/dist/index.mjs +52 -13
- package/dist/index.mjs.map +1 -1
- package/dist/{notification-Dz9mBkA4.d.ts → notification-BVakO_81.d.ts} +1 -1
- package/dist/{notification-h1-RzQsS.d.mts → notification-C8M4dRL1.d.mts} +1 -1
- package/dist/types/index.d.mts +4 -4
- package/dist/types/index.d.ts +4 -4
- 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
|
@@ -146,6 +146,10 @@ interface MarketInfoFormData {
|
|
|
146
146
|
packInTime: number;
|
|
147
147
|
paymentDueHours: number;
|
|
148
148
|
paymentInfo: PaymentInfoType[];
|
|
149
|
+
phoneNumber: {
|
|
150
|
+
mobilePhone?: string | null;
|
|
151
|
+
landlinePhone?: string | null;
|
|
152
|
+
};
|
|
149
153
|
requirements?: Requirement[];
|
|
150
154
|
}
|
|
151
155
|
interface MarketFormData extends BaseResourceTypeFormData {
|
|
@@ -200,6 +204,10 @@ type StallholderInfoFormData = {
|
|
|
200
204
|
gazebo: StallholderAttributes;
|
|
201
205
|
packaging: string[];
|
|
202
206
|
paymentMethod: EnumPaymentMethod;
|
|
207
|
+
phoneNumber: {
|
|
208
|
+
mobilePhone?: string | null;
|
|
209
|
+
landlinePhone?: string | null;
|
|
210
|
+
};
|
|
203
211
|
priceRange: {
|
|
204
212
|
max: number;
|
|
205
213
|
min: number;
|
|
@@ -499,7 +507,6 @@ type UserFormData = {
|
|
|
499
507
|
firstName: string;
|
|
500
508
|
lastName: string;
|
|
501
509
|
password: string;
|
|
502
|
-
phoneNumber?: string;
|
|
503
510
|
platform?: EnumOSPlatform;
|
|
504
511
|
preferredRegion: string;
|
|
505
512
|
role: EnumUserRole;
|
|
@@ -521,7 +528,6 @@ interface UserType {
|
|
|
521
528
|
markets: string[] | null;
|
|
522
529
|
password: string;
|
|
523
530
|
platform: EnumOSPlatform | null;
|
|
524
|
-
phoneNumber: string | null;
|
|
525
531
|
preferredRegion: string;
|
|
526
532
|
refreshToken: string | null;
|
|
527
533
|
role: EnumUserRole;
|
|
@@ -633,6 +639,8 @@ declare const testersFields: FormField[];
|
|
|
633
639
|
|
|
634
640
|
declare const contactUsFields: FormField[];
|
|
635
641
|
|
|
642
|
+
declare const phoneNumberFields: FormField[];
|
|
643
|
+
|
|
636
644
|
declare const useAdminUpdateResourceType: () => {
|
|
637
645
|
adminUpdateResourceType: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
638
646
|
error: _apollo_client.ApolloError | undefined;
|
|
@@ -1279,4 +1287,4 @@ declare const availableRegionOptions: OptionItem[];
|
|
|
1279
1287
|
declare const paymentMethodOptions: OptionItem[];
|
|
1280
1288
|
declare function normalizeUrl(url: string): string;
|
|
1281
1289
|
|
|
1282
|
-
export { type AdFormData, type AdType, type AdminUpdateResourceType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateFormData, type CreateLoginFormData, type CreateMarketFormData, type CreateMarketInfoFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateStallholderFormData, type CreateStallholderInfoFormData, type CreateTestersFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type DateTimeType, type DateTimeWithPriceType, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumChatType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, 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 NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, type OwnerType, type ParticipantType, type PaymentInfoType, type PlacePrediction, type PosterInputType, type Region, type RegisterFormData, type RelationDate, 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 SocialMediaType, type StallType, type StallholderAttributes, type StallholderFormData, type StallholderInfoFormData, type StallholderInfoType, type StallholderLocation, type StallholderType, type Subcategory, type SubcategoryItems, type TesterType, type TestersFormData, USER_STORAGE_KEY, type UserFormData, type UserType, type ValidateVerificationTokenFormData, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, contactUsFields, darkColors, dateFormat, defaultMarketFormValues, defaultMarketInfoFormValues, defaultRegion, defaultStallholderFormValues, defaultStallholderInfoFormValues, fonts, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, marketBasicInfoFields, marketEndDateFields, marketInfo, marketInfoPaymentInfo, marketStartDateFields, normalizeUrl, packagingOptions, paymentMethodOptions, producedIngOptions, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, stallholderBasicInfoFields, stallholderElectricity, stallholderEndDateFields, stallholderFullAddress, stallholderGazebo, stallholderLocationDescription, stallholderMultiLocation, stallholderPackaging, stallholderPaymentMethod, stallholderPriceRange, stallholderProducedIn, stallholderStallSize, stallholderStartDateFields, stallholderTable, statusOptions, tagOptions, testersFields, timeFormat, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAdminUpdateResourceType, useContactUs, useContactUsForm, useCreateAd, useCreateBulkNotifications, useCreateMarket, useCreateMarketInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateStallholder, useCreateStallholderInfo, useCreateTester, useCreateUser, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteMarket, useDeleteNotification, useDeleteRelation, useDeleteStallholder, useDeleteTester, useDeleteUser, useGetAd, useGetAds, useGetAdsByRegion, useGetChat, useGetChatSubscription, useGetMarket, useGetMarketInfo, useGetMarketRelations, useGetMarkets, useGetMarketsByRegion, useGetMarketsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetRelation, useGetRelationByMarketAndStallholder, useGetResourceConnections, useGetStallholder, useGetStallholderInfo, useGetStallholderRelations, useGetStallholders, useGetStallholdersByRegion, useGetTester, useGetTesters, useGetUser, useGetUserChats, useGetUserFavourites, useGetUserMarkets, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserStallholder, useGetUsers, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useMarketForm, useMarketInfoForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchMarkets, useSearchStallholders, useSendChatMessage, useStallholderForm, useStallholderInfoForm, useTestersForm, useUpdateAd, useUpdateMarket, useUpdateMarketInfo, useUpdateRelation, useUpdateStallholder, useUpdateStallholderInfo, useUpdateTester, useUpdateUser, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, validateVerificationTokenFields };
|
|
1290
|
+
export { type AdFormData, type AdType, type AdminUpdateResourceType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateFormData, type CreateLoginFormData, type CreateMarketFormData, type CreateMarketInfoFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateStallholderFormData, type CreateStallholderInfoFormData, type CreateTestersFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type DateTimeType, type DateTimeWithPriceType, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumChatType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, 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 NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, type OwnerType, type ParticipantType, type PaymentInfoType, type PlacePrediction, type PosterInputType, type Region, type RegisterFormData, type RelationDate, 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 SocialMediaType, type StallType, type StallholderAttributes, type StallholderFormData, type StallholderInfoFormData, type StallholderInfoType, type StallholderLocation, type StallholderType, type Subcategory, type SubcategoryItems, type TesterType, type TestersFormData, USER_STORAGE_KEY, type UserFormData, type UserType, type ValidateVerificationTokenFormData, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, contactUsFields, darkColors, dateFormat, defaultMarketFormValues, defaultMarketInfoFormValues, defaultRegion, defaultStallholderFormValues, defaultStallholderInfoFormValues, fonts, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, marketBasicInfoFields, marketEndDateFields, marketInfo, marketInfoPaymentInfo, marketStartDateFields, normalizeUrl, packagingOptions, paymentMethodOptions, phoneNumberFields, producedIngOptions, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, stallholderBasicInfoFields, stallholderElectricity, stallholderEndDateFields, stallholderFullAddress, stallholderGazebo, stallholderLocationDescription, stallholderMultiLocation, stallholderPackaging, stallholderPaymentMethod, stallholderPriceRange, stallholderProducedIn, stallholderStallSize, stallholderStartDateFields, stallholderTable, statusOptions, tagOptions, testersFields, timeFormat, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAdminUpdateResourceType, useContactUs, useContactUsForm, useCreateAd, useCreateBulkNotifications, useCreateMarket, useCreateMarketInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateStallholder, useCreateStallholderInfo, useCreateTester, useCreateUser, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteMarket, useDeleteNotification, useDeleteRelation, useDeleteStallholder, useDeleteTester, useDeleteUser, useGetAd, useGetAds, useGetAdsByRegion, useGetChat, useGetChatSubscription, useGetMarket, useGetMarketInfo, useGetMarketRelations, useGetMarkets, useGetMarketsByRegion, useGetMarketsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetRelation, useGetRelationByMarketAndStallholder, useGetResourceConnections, useGetStallholder, useGetStallholderInfo, useGetStallholderRelations, useGetStallholders, useGetStallholdersByRegion, useGetTester, useGetTesters, useGetUser, useGetUserChats, useGetUserFavourites, useGetUserMarkets, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserStallholder, useGetUsers, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useMarketForm, useMarketInfoForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchMarkets, useSearchStallholders, useSendChatMessage, useStallholderForm, useStallholderInfoForm, useTestersForm, useUpdateAd, useUpdateMarket, useUpdateMarketInfo, useUpdateRelation, useUpdateStallholder, useUpdateStallholderInfo, useUpdateTester, useUpdateUser, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, validateVerificationTokenFields };
|
package/dist/index.d.ts
CHANGED
|
@@ -146,6 +146,10 @@ interface MarketInfoFormData {
|
|
|
146
146
|
packInTime: number;
|
|
147
147
|
paymentDueHours: number;
|
|
148
148
|
paymentInfo: PaymentInfoType[];
|
|
149
|
+
phoneNumber: {
|
|
150
|
+
mobilePhone?: string | null;
|
|
151
|
+
landlinePhone?: string | null;
|
|
152
|
+
};
|
|
149
153
|
requirements?: Requirement[];
|
|
150
154
|
}
|
|
151
155
|
interface MarketFormData extends BaseResourceTypeFormData {
|
|
@@ -200,6 +204,10 @@ type StallholderInfoFormData = {
|
|
|
200
204
|
gazebo: StallholderAttributes;
|
|
201
205
|
packaging: string[];
|
|
202
206
|
paymentMethod: EnumPaymentMethod;
|
|
207
|
+
phoneNumber: {
|
|
208
|
+
mobilePhone?: string | null;
|
|
209
|
+
landlinePhone?: string | null;
|
|
210
|
+
};
|
|
203
211
|
priceRange: {
|
|
204
212
|
max: number;
|
|
205
213
|
min: number;
|
|
@@ -499,7 +507,6 @@ type UserFormData = {
|
|
|
499
507
|
firstName: string;
|
|
500
508
|
lastName: string;
|
|
501
509
|
password: string;
|
|
502
|
-
phoneNumber?: string;
|
|
503
510
|
platform?: EnumOSPlatform;
|
|
504
511
|
preferredRegion: string;
|
|
505
512
|
role: EnumUserRole;
|
|
@@ -521,7 +528,6 @@ interface UserType {
|
|
|
521
528
|
markets: string[] | null;
|
|
522
529
|
password: string;
|
|
523
530
|
platform: EnumOSPlatform | null;
|
|
524
|
-
phoneNumber: string | null;
|
|
525
531
|
preferredRegion: string;
|
|
526
532
|
refreshToken: string | null;
|
|
527
533
|
role: EnumUserRole;
|
|
@@ -633,6 +639,8 @@ declare const testersFields: FormField[];
|
|
|
633
639
|
|
|
634
640
|
declare const contactUsFields: FormField[];
|
|
635
641
|
|
|
642
|
+
declare const phoneNumberFields: FormField[];
|
|
643
|
+
|
|
636
644
|
declare const useAdminUpdateResourceType: () => {
|
|
637
645
|
adminUpdateResourceType: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
638
646
|
error: _apollo_client.ApolloError | undefined;
|
|
@@ -1279,4 +1287,4 @@ declare const availableRegionOptions: OptionItem[];
|
|
|
1279
1287
|
declare const paymentMethodOptions: OptionItem[];
|
|
1280
1288
|
declare function normalizeUrl(url: string): string;
|
|
1281
1289
|
|
|
1282
|
-
export { type AdFormData, type AdType, type AdminUpdateResourceType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateFormData, type CreateLoginFormData, type CreateMarketFormData, type CreateMarketInfoFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateStallholderFormData, type CreateStallholderInfoFormData, type CreateTestersFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type DateTimeType, type DateTimeWithPriceType, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumChatType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, 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 NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, type OwnerType, type ParticipantType, type PaymentInfoType, type PlacePrediction, type PosterInputType, type Region, type RegisterFormData, type RelationDate, 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 SocialMediaType, type StallType, type StallholderAttributes, type StallholderFormData, type StallholderInfoFormData, type StallholderInfoType, type StallholderLocation, type StallholderType, type Subcategory, type SubcategoryItems, type TesterType, type TestersFormData, USER_STORAGE_KEY, type UserFormData, type UserType, type ValidateVerificationTokenFormData, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, contactUsFields, darkColors, dateFormat, defaultMarketFormValues, defaultMarketInfoFormValues, defaultRegion, defaultStallholderFormValues, defaultStallholderInfoFormValues, fonts, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, marketBasicInfoFields, marketEndDateFields, marketInfo, marketInfoPaymentInfo, marketStartDateFields, normalizeUrl, packagingOptions, paymentMethodOptions, producedIngOptions, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, stallholderBasicInfoFields, stallholderElectricity, stallholderEndDateFields, stallholderFullAddress, stallholderGazebo, stallholderLocationDescription, stallholderMultiLocation, stallholderPackaging, stallholderPaymentMethod, stallholderPriceRange, stallholderProducedIn, stallholderStallSize, stallholderStartDateFields, stallholderTable, statusOptions, tagOptions, testersFields, timeFormat, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAdminUpdateResourceType, useContactUs, useContactUsForm, useCreateAd, useCreateBulkNotifications, useCreateMarket, useCreateMarketInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateStallholder, useCreateStallholderInfo, useCreateTester, useCreateUser, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteMarket, useDeleteNotification, useDeleteRelation, useDeleteStallholder, useDeleteTester, useDeleteUser, useGetAd, useGetAds, useGetAdsByRegion, useGetChat, useGetChatSubscription, useGetMarket, useGetMarketInfo, useGetMarketRelations, useGetMarkets, useGetMarketsByRegion, useGetMarketsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetRelation, useGetRelationByMarketAndStallholder, useGetResourceConnections, useGetStallholder, useGetStallholderInfo, useGetStallholderRelations, useGetStallholders, useGetStallholdersByRegion, useGetTester, useGetTesters, useGetUser, useGetUserChats, useGetUserFavourites, useGetUserMarkets, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserStallholder, useGetUsers, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useMarketForm, useMarketInfoForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchMarkets, useSearchStallholders, useSendChatMessage, useStallholderForm, useStallholderInfoForm, useTestersForm, useUpdateAd, useUpdateMarket, useUpdateMarketInfo, useUpdateRelation, useUpdateStallholder, useUpdateStallholderInfo, useUpdateTester, useUpdateUser, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, validateVerificationTokenFields };
|
|
1290
|
+
export { type AdFormData, type AdType, type AdminUpdateResourceType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateFormData, type CreateLoginFormData, type CreateMarketFormData, type CreateMarketInfoFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateStallholderFormData, type CreateStallholderInfoFormData, type CreateTestersFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type DateTimeType, type DateTimeWithPriceType, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumChatType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, 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 NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, type OwnerType, type ParticipantType, type PaymentInfoType, type PlacePrediction, type PosterInputType, type Region, type RegisterFormData, type RelationDate, 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 SocialMediaType, type StallType, type StallholderAttributes, type StallholderFormData, type StallholderInfoFormData, type StallholderInfoType, type StallholderLocation, type StallholderType, type Subcategory, type SubcategoryItems, type TesterType, type TestersFormData, USER_STORAGE_KEY, type UserFormData, type UserType, type ValidateVerificationTokenFormData, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, contactUsFields, darkColors, dateFormat, defaultMarketFormValues, defaultMarketInfoFormValues, defaultRegion, defaultStallholderFormValues, defaultStallholderInfoFormValues, fonts, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, marketBasicInfoFields, marketEndDateFields, marketInfo, marketInfoPaymentInfo, marketStartDateFields, normalizeUrl, packagingOptions, paymentMethodOptions, phoneNumberFields, producedIngOptions, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, stallholderBasicInfoFields, stallholderElectricity, stallholderEndDateFields, stallholderFullAddress, stallholderGazebo, stallholderLocationDescription, stallholderMultiLocation, stallholderPackaging, stallholderPaymentMethod, stallholderPriceRange, stallholderProducedIn, stallholderStallSize, stallholderStartDateFields, stallholderTable, statusOptions, tagOptions, testersFields, timeFormat, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAdminUpdateResourceType, useContactUs, useContactUsForm, useCreateAd, useCreateBulkNotifications, useCreateMarket, useCreateMarketInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateStallholder, useCreateStallholderInfo, useCreateTester, useCreateUser, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteMarket, useDeleteNotification, useDeleteRelation, useDeleteStallholder, useDeleteTester, useDeleteUser, useGetAd, useGetAds, useGetAdsByRegion, useGetChat, useGetChatSubscription, useGetMarket, useGetMarketInfo, useGetMarketRelations, useGetMarkets, useGetMarketsByRegion, useGetMarketsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetRelation, useGetRelationByMarketAndStallholder, useGetResourceConnections, useGetStallholder, useGetStallholderInfo, useGetStallholderRelations, useGetStallholders, useGetStallholdersByRegion, useGetTester, useGetTesters, useGetUser, useGetUserChats, useGetUserFavourites, useGetUserMarkets, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserStallholder, useGetUsers, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useMarketForm, useMarketInfoForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchMarkets, useSearchStallholders, useSendChatMessage, useStallholderForm, useStallholderInfoForm, useTestersForm, useUpdateAd, useUpdateMarket, useUpdateMarketInfo, useUpdateRelation, useUpdateStallholder, useUpdateStallholderInfo, useUpdateTester, useUpdateUser, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, validateVerificationTokenFields };
|
package/dist/index.mjs
CHANGED
|
@@ -785,12 +785,6 @@ var profileFields = [
|
|
|
785
785
|
name: "lastName",
|
|
786
786
|
placeholder: "Last Name"
|
|
787
787
|
},
|
|
788
|
-
{
|
|
789
|
-
helperText: "Enter your phone number",
|
|
790
|
-
keyboardType: "phone-pad",
|
|
791
|
-
name: "phoneNumber",
|
|
792
|
-
placeholder: "Phone Number"
|
|
793
|
-
},
|
|
794
788
|
{
|
|
795
789
|
helperText: "Enter your new password",
|
|
796
790
|
keyboardType: "default",
|
|
@@ -1786,6 +1780,22 @@ var contactUsFields = [
|
|
|
1786
1780
|
}
|
|
1787
1781
|
];
|
|
1788
1782
|
|
|
1783
|
+
// src/formFields/global.ts
|
|
1784
|
+
var phoneNumberFields = [
|
|
1785
|
+
{
|
|
1786
|
+
helperText: "Enter your mobile phone number",
|
|
1787
|
+
keyboardType: "phone-pad",
|
|
1788
|
+
name: "mobilePhone",
|
|
1789
|
+
placeholder: "Mobile Phone Number"
|
|
1790
|
+
},
|
|
1791
|
+
{
|
|
1792
|
+
helperText: "Enter your landline phone number",
|
|
1793
|
+
keyboardType: "phone-pad",
|
|
1794
|
+
name: "landlinePhone",
|
|
1795
|
+
placeholder: "Landline Phone Number"
|
|
1796
|
+
}
|
|
1797
|
+
];
|
|
1798
|
+
|
|
1789
1799
|
// src/graphql/hooks/admin/hooksMutation.ts
|
|
1790
1800
|
import { useMutation } from "@apollo/client";
|
|
1791
1801
|
|
|
@@ -1857,7 +1867,6 @@ var USER_FIELDS_FRAGMENT = gql2`
|
|
|
1857
1867
|
licences
|
|
1858
1868
|
markets
|
|
1859
1869
|
platform
|
|
1860
|
-
phoneNumber
|
|
1861
1870
|
preferredRegion
|
|
1862
1871
|
refreshToken
|
|
1863
1872
|
role
|
|
@@ -1921,6 +1930,10 @@ var MARKET_INFO = gql3`
|
|
|
1921
1930
|
link
|
|
1922
1931
|
paymentMethod
|
|
1923
1932
|
}
|
|
1933
|
+
phoneNumber {
|
|
1934
|
+
landlinePhone
|
|
1935
|
+
mobilePhone
|
|
1936
|
+
}
|
|
1924
1937
|
requirements {
|
|
1925
1938
|
category
|
|
1926
1939
|
label
|
|
@@ -2109,6 +2122,10 @@ var STALLHOLDER_INFO = gql4`
|
|
|
2109
2122
|
}
|
|
2110
2123
|
packaging
|
|
2111
2124
|
paymentMethod
|
|
2125
|
+
phoneNumber {
|
|
2126
|
+
landlinePhone
|
|
2127
|
+
mobilePhone
|
|
2128
|
+
}
|
|
2112
2129
|
priceRange {
|
|
2113
2130
|
max
|
|
2114
2131
|
min
|
|
@@ -4275,12 +4292,21 @@ var categorySchema = yup.array().of(
|
|
|
4275
4292
|
).min(1, "At least one subcategory is required").required("Subcategories are required")
|
|
4276
4293
|
})
|
|
4277
4294
|
);
|
|
4295
|
+
var mobileRegex = /^02\d{7,9}$/;
|
|
4296
|
+
var landlineRegex = /^(0(3|4|6|7|9)[0-9]{7})$/;
|
|
4297
|
+
var phoneSchema = yup.object({
|
|
4298
|
+
mobilePhone: yup.string().nullable().matches(mobileRegex, "Mobile must start with 02 and be 9\u201311 digits"),
|
|
4299
|
+
landlinePhone: yup.string().nullable().matches(
|
|
4300
|
+
landlineRegex,
|
|
4301
|
+
"Landline must start with 03, 04, 06, 07, or 09 (not 090) and have 7 digits after area code"
|
|
4302
|
+
)
|
|
4303
|
+
});
|
|
4278
4304
|
|
|
4279
4305
|
// src/yupSchema/market.ts
|
|
4280
4306
|
import * as yup2 from "yup";
|
|
4281
4307
|
var nzBankAccountRegex = /^\d{2}-\d{4}-\d{7}-\d{2}$/;
|
|
4282
4308
|
var marketSchema = globalResourceSchema.shape({
|
|
4283
|
-
dateTime: yup2.array().of(dateTimeSchema).min(1, "At least one Market date required").required("DateTime is required").test(
|
|
4309
|
+
dateTime: yup2.array().of(dateTimeSchema).min(1, "At least one Market date required").max(50, "You can only add up to 50 Market dates").required("DateTime is required").test(
|
|
4284
4310
|
"unique-start-date-time",
|
|
4285
4311
|
"Start Date and Time must be unique",
|
|
4286
4312
|
function(value) {
|
|
@@ -4329,7 +4355,8 @@ var marketInfoSchema = yup2.object().shape({
|
|
|
4329
4355
|
marketId: yup2.string().trim().required("Market ID is required"),
|
|
4330
4356
|
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")),
|
|
4331
4357
|
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")),
|
|
4332
|
-
paymentInfo: yup2.array().of(paymentInfoSchema).min(1, "At least one payment info is required").required("Payment info is required")
|
|
4358
|
+
paymentInfo: yup2.array().of(paymentInfoSchema).min(1, "At least one payment info is required").required("Payment info is required"),
|
|
4359
|
+
phoneNumber: phoneSchema
|
|
4333
4360
|
});
|
|
4334
4361
|
|
|
4335
4362
|
// src/yupSchema/stallholder.ts
|
|
@@ -4356,6 +4383,7 @@ var stallholderInfoSchema = yup3.object().shape({
|
|
|
4356
4383
|
}),
|
|
4357
4384
|
packaging: yup3.array().of(yup3.string().defined()).min(1, "Packaging list must contain at least one item").required("Packaging is required"),
|
|
4358
4385
|
paymentMethod: yup3.mixed().oneOf(Object.values(EnumPaymentMethod)).required("Please select a Payment method"),
|
|
4386
|
+
phoneNumber: phoneSchema,
|
|
4359
4387
|
priceRange: yup3.object().shape({
|
|
4360
4388
|
max: yup3.number().min(1).required("Max price is required").test(
|
|
4361
4389
|
"is-greater",
|
|
@@ -4594,6 +4622,10 @@ var defaultMarketInfoFormValues = {
|
|
|
4594
4622
|
// e.g., 2 hours before market opens
|
|
4595
4623
|
paymentDueHours: 24,
|
|
4596
4624
|
paymentInfo: [],
|
|
4625
|
+
phoneNumber: {
|
|
4626
|
+
landlinePhone: "",
|
|
4627
|
+
mobilePhone: ""
|
|
4628
|
+
},
|
|
4597
4629
|
requirements: []
|
|
4598
4630
|
};
|
|
4599
4631
|
var defaultStallholderFormValues = {
|
|
@@ -4611,6 +4643,10 @@ var defaultStallholderInfoFormValues = {
|
|
|
4611
4643
|
gazebo: { details: null, isRequired: false },
|
|
4612
4644
|
packaging: [],
|
|
4613
4645
|
paymentMethod: "",
|
|
4646
|
+
phoneNumber: {
|
|
4647
|
+
landlinePhone: "",
|
|
4648
|
+
mobilePhone: ""
|
|
4649
|
+
},
|
|
4614
4650
|
priceRange: { max: 0, min: 0 },
|
|
4615
4651
|
producedIn: [],
|
|
4616
4652
|
stallholderId: "",
|
|
@@ -4740,6 +4776,7 @@ function useStallholderInfoForm(data) {
|
|
|
4740
4776
|
gazebo: data.gazebo,
|
|
4741
4777
|
packaging: data.packaging,
|
|
4742
4778
|
paymentMethod: data.paymentMethod,
|
|
4779
|
+
phoneNumber: data.phoneNumber,
|
|
4743
4780
|
priceRange: data.priceRange,
|
|
4744
4781
|
producedIn: data.producedIn,
|
|
4745
4782
|
stallholderId: data.stallholderId,
|
|
@@ -4758,6 +4795,7 @@ function useStallholderInfoForm(data) {
|
|
|
4758
4795
|
gazebo,
|
|
4759
4796
|
packaging,
|
|
4760
4797
|
paymentMethod,
|
|
4798
|
+
phoneNumber,
|
|
4761
4799
|
priceRange,
|
|
4762
4800
|
producedIn,
|
|
4763
4801
|
stallholderId,
|
|
@@ -4774,6 +4812,7 @@ function useStallholderInfoForm(data) {
|
|
|
4774
4812
|
gazebo,
|
|
4775
4813
|
packaging,
|
|
4776
4814
|
paymentMethod,
|
|
4815
|
+
phoneNumber,
|
|
4777
4816
|
priceRange,
|
|
4778
4817
|
producedIn,
|
|
4779
4818
|
stallholderId,
|
|
@@ -4896,6 +4935,7 @@ function useMarketInfoForm(data) {
|
|
|
4896
4935
|
packInTime: data.packInTime,
|
|
4897
4936
|
paymentDueHours: data.paymentDueHours,
|
|
4898
4937
|
paymentInfo: data.paymentInfo,
|
|
4938
|
+
phoneNumber: data.phoneNumber,
|
|
4899
4939
|
requirements: data.requirements
|
|
4900
4940
|
});
|
|
4901
4941
|
} else {
|
|
@@ -4910,6 +4950,7 @@ function useMarketInfoForm(data) {
|
|
|
4910
4950
|
packInTime,
|
|
4911
4951
|
paymentDueHours,
|
|
4912
4952
|
paymentInfo,
|
|
4953
|
+
phoneNumber,
|
|
4913
4954
|
requirements
|
|
4914
4955
|
} = getValues();
|
|
4915
4956
|
return {
|
|
@@ -4922,6 +4963,7 @@ function useMarketInfoForm(data) {
|
|
|
4922
4963
|
packInTime,
|
|
4923
4964
|
paymentDueHours,
|
|
4924
4965
|
paymentInfo,
|
|
4966
|
+
phoneNumber,
|
|
4925
4967
|
requirements
|
|
4926
4968
|
},
|
|
4927
4969
|
formState: { errors },
|
|
@@ -4945,7 +4987,6 @@ var defaultValues = {
|
|
|
4945
4987
|
firstName: "",
|
|
4946
4988
|
lastName: "",
|
|
4947
4989
|
password: "",
|
|
4948
|
-
phoneNumber: "",
|
|
4949
4990
|
preferredRegion: "",
|
|
4950
4991
|
role: "customer" /* CUSTOMER */
|
|
4951
4992
|
};
|
|
@@ -4974,7 +5015,6 @@ function useUserForm(data) {
|
|
|
4974
5015
|
firstName: data.firstName,
|
|
4975
5016
|
lastName: data.lastName,
|
|
4976
5017
|
password: data.password,
|
|
4977
|
-
phoneNumber: data.phoneNumber,
|
|
4978
5018
|
preferredRegion: data.preferredRegion,
|
|
4979
5019
|
role: data.role
|
|
4980
5020
|
});
|
|
@@ -4992,7 +5032,6 @@ function useUserForm(data) {
|
|
|
4992
5032
|
firstName,
|
|
4993
5033
|
lastName,
|
|
4994
5034
|
password,
|
|
4995
|
-
phoneNumber,
|
|
4996
5035
|
preferredRegion,
|
|
4997
5036
|
role
|
|
4998
5037
|
} = getValues();
|
|
@@ -5008,7 +5047,6 @@ function useUserForm(data) {
|
|
|
5008
5047
|
firstName,
|
|
5009
5048
|
lastName,
|
|
5010
5049
|
password,
|
|
5011
|
-
phoneNumber,
|
|
5012
5050
|
preferredRegion,
|
|
5013
5051
|
role
|
|
5014
5052
|
},
|
|
@@ -5546,6 +5584,7 @@ export {
|
|
|
5546
5584
|
normalizeUrl,
|
|
5547
5585
|
packagingOptions,
|
|
5548
5586
|
paymentMethodOptions,
|
|
5587
|
+
phoneNumberFields,
|
|
5549
5588
|
producedIngOptions,
|
|
5550
5589
|
profileFields,
|
|
5551
5590
|
registerFields,
|