@timardex/cluemart-shared 1.0.17 → 1.0.18

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/index.d.mts CHANGED
@@ -214,8 +214,9 @@ interface RelationType {
214
214
  interface DateTimeWithPriceType extends DateTimeType {
215
215
  marketPrice: number;
216
216
  }
217
- interface MarketInfoType {
217
+ interface MarketInfoFormData {
218
218
  _id?: string;
219
+ active: boolean;
219
220
  applicationDeadlineHours: number;
220
221
  dateTime: DateTimeWithPriceType[];
221
222
  paymentDueHours: number;
@@ -235,15 +236,15 @@ interface MarketFormData extends BaseResourceTypeFormData {
235
236
  tags?: string[] | null;
236
237
  }
237
238
  interface CreateMarketInfoFormData {
238
- control: Control<MarketInfoType, any>;
239
- fields: MarketInfoType;
239
+ control: Control<MarketInfoFormData, any>;
240
+ fields: MarketInfoFormData;
240
241
  formState: {
241
- errors: FieldErrors<MarketInfoType>;
242
+ errors: FieldErrors<MarketInfoFormData>;
242
243
  };
243
- handleSubmit: UseFormHandleSubmit<MarketInfoType, any>;
244
- reset: UseFormReset<MarketInfoType>;
245
- setValue: UseFormSetValue<MarketInfoType>;
246
- watch: UseFormWatch<MarketInfoType>;
244
+ handleSubmit: UseFormHandleSubmit<MarketInfoFormData, any>;
245
+ reset: UseFormReset<MarketInfoFormData>;
246
+ setValue: UseFormSetValue<MarketInfoFormData>;
247
+ watch: UseFormWatch<MarketInfoFormData>;
247
248
  }
248
249
  interface CreateMarketFormData {
249
250
  control: Control<MarketFormData, any>;
@@ -259,9 +260,26 @@ interface CreateMarketFormData {
259
260
  interface MarketType extends BaseResourceType {
260
261
  dateTime: MarketFormData["dateTime"];
261
262
  location: MarketFormData["location"];
263
+ marketInfoId: string;
262
264
  provider: string;
263
265
  tags: string[] | null;
264
266
  }
267
+ interface MarketInfoType {
268
+ _id: string;
269
+ active: boolean;
270
+ applicationDeadlineHours: number;
271
+ dateTime: DateTimeWithPriceType[];
272
+ marketId: string;
273
+ paymentDueHours: number;
274
+ paymentMethod: EnumPaymentMethod;
275
+ paymentTarget: {
276
+ accountHolderName?: string;
277
+ accountNumber?: string;
278
+ link?: string;
279
+ };
280
+ rejectionPolicy: EnumRejectionPolicy;
281
+ stallCapacity: number;
282
+ }
265
283
  interface MarketWithConnectionDatesType extends MarketType {
266
284
  relationDates: RelationDate[] | undefined;
267
285
  }
@@ -634,10 +652,10 @@ declare function useMarketForm(data?: MarketFormData): CreateMarketFormData;
634
652
  /**
635
653
  * Custom hook to manage the market form state and validation.
636
654
  *
637
- * @param {MarketInfoType} data - The initial form data.
655
+ * @param {MarketInfoFormData} data - The initial form data.
638
656
  * @returns {CreateMarketInfoFormData} - The form methods and state.
639
657
  */
640
- declare function useMarketInfoForm(data?: MarketInfoType): CreateMarketInfoFormData;
658
+ declare function useMarketInfoForm(data?: MarketInfoFormData): CreateMarketInfoFormData;
641
659
 
642
660
  /**
643
661
  * Custom hook to manage the user form state and validation.
@@ -669,7 +687,7 @@ declare function useResetPasswordForm(): CreateResetPasswordFormData;
669
687
 
670
688
  declare const globalDefaultValues: BaseResourceTypeFormData;
671
689
  declare const defaultMarketFormValues: MarketFormData;
672
- declare const defaultMarketInfoFormValues: MarketInfoType;
690
+ declare const defaultMarketInfoFormValues: MarketInfoFormData;
673
691
  declare const defaultStallholderFormValues: StallholderFormData;
674
692
  declare const defaultStallholderApplyFormValues: StallholderApplyFormFormData;
675
693
 
@@ -1037,4 +1055,4 @@ declare const profileFields: FormField[];
1037
1055
  declare const availableCategories: Category[];
1038
1056
  declare const categoryColors: Record<string, string>;
1039
1057
 
1040
- export { type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatInput, type ChatMessageInput, type ChatMessageType, type ChatType, type CreateLoginFormData, type CreateMarketFormData, type CreateMarketInfoFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateStallholderApplyFormFormData, type CreateStallholderFormData, type CreateUserFormData, type CreateValidateTokenFormData, type DateTimeType, EnumInviteStatus, EnumNotification, EnumPaymentMethod, EnumRegions, EnumRejectionPolicy, EnumRelationResource, EnumResourceType, EnumResourceTypeIcon, EnumUserLicence, EnumUserRole, type FormDateField, type FormField, type GeocodeLocation, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type MarketFormData, type MarketInfoType, type MarketType, type MarketWithConnectionDatesType, type NotificationType, type Nullable, type OptionItem, type PlacePrediction, type PosterInputType, type Region, type RegisterFormData, type RelationDate, type RelationLog, type RelationType, type RequestPasswordResetFormData, type ResetPasswordFormData, type ResourceConnectionsType, type ResourceImageType, type SatllholderWithConnectionDatesType, type StallholderApplyFormFormData, type StallholderApplyFormType, type StallholderAttributes, type StallholderFormData, type StallholderLocation, type StallholderType, type Subcategory, type UserFormData, type UserType, type ValidateTokenFormData, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, dateFormat, defaultMarketFormValues, defaultMarketInfoFormValues, defaultRegion, defaultStallholderApplyFormValues, defaultStallholderFormValues, formatDate, formatTimestamp, getCurrentAndFutureDates, getFutureDatesAfterThreshold, globalDefaultValues, loginFields, mapArrayToOptions, marketBasicInfoFields, marketEndDateFields, marketPriceByDateFields, marketStartDateFields, packagingOptions, paymentMethodOptions, producedIngOptions, profileFields, registerFields, rejectionPolicyOptions, removeTypename, requestPasswordResetFields, resetPasswordFields, sortDatesByProximity, stallApplicationInfo, stallApplicationInfoPaymentTarget, stallholderBasicInfoFields, stallholderElectricity, stallholderEndDateFields, stallholderFullAddress, stallholderGazebo, stallholderLocationDescription, stallholderMultiLocation, stallholderPackaging, stallholderPaymentMethod, stallholderPriceRange, stallholderProducedIn, stallholderStallSize, stallholderStartDateFields, stallholderTable, statusOptions, tagOptions, timeFormat, truncateText, useAddParticipantToChat, useAddUserFavouriteResource, useCreateChat, useCreateMarket, useCreateMarketInfo, useCreatePoster, useCreateRelation, useCreateStallholder, useCreateStallholderApplyForm, useCreateUser, useDeleteChat, useDeleteMarket, useDeleteRelation, useDeleteStallholder, useGetChat, useGetChatSubscription, useGetMarket, useGetMarketInfo, useGetMarketRelations, useGetMarkets, useGetMarketsByRegion, useGetMarketsNearMe, useGetNotification, useGetRelation, useGetRelationByMarketAndStallholder, useGetResourceConnections, useGetStallholder, useGetStallholderApplyForm, useGetStallholderRelations, useGetStallholders, useGetStallholdersByRegion, useGetUser, useGetUserChats, useGetUserFavourites, useGetUserMarkets, useGetUserNotifications, useGetUsers, useLocationSearch, useLogin, useLoginForm, useMarketForm, useMarketInfoForm, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchMarkets, useSearchStallholders, useSendChatMessage, useStallholderApplyForm, useStallholderForm, useUpdateMarket, useUpdateMarketInfo, useUpdateRelation, useUpdateStallholder, useUpdateStallholderApplyForm, useUpdateUser, useUserForm, useValidateToken, useValidateTokenForm, validateTokenFields };
1058
+ export { type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatInput, type ChatMessageInput, type ChatMessageType, type ChatType, type CreateLoginFormData, type CreateMarketFormData, type CreateMarketInfoFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateStallholderApplyFormFormData, type CreateStallholderFormData, type CreateUserFormData, type CreateValidateTokenFormData, type DateTimeType, EnumInviteStatus, EnumNotification, EnumPaymentMethod, EnumRegions, EnumRejectionPolicy, EnumRelationResource, EnumResourceType, EnumResourceTypeIcon, 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 PlacePrediction, type PosterInputType, type Region, type RegisterFormData, type RelationDate, type RelationLog, type RelationType, type RequestPasswordResetFormData, type ResetPasswordFormData, type ResourceConnectionsType, type ResourceImageType, type SatllholderWithConnectionDatesType, type StallholderApplyFormFormData, type StallholderApplyFormType, type StallholderAttributes, type StallholderFormData, type StallholderLocation, type StallholderType, type Subcategory, type UserFormData, type UserType, type ValidateTokenFormData, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, dateFormat, defaultMarketFormValues, defaultMarketInfoFormValues, defaultRegion, defaultStallholderApplyFormValues, defaultStallholderFormValues, formatDate, formatTimestamp, getCurrentAndFutureDates, getFutureDatesAfterThreshold, globalDefaultValues, loginFields, mapArrayToOptions, marketBasicInfoFields, marketEndDateFields, marketPriceByDateFields, marketStartDateFields, packagingOptions, paymentMethodOptions, producedIngOptions, profileFields, registerFields, rejectionPolicyOptions, removeTypename, requestPasswordResetFields, resetPasswordFields, sortDatesByProximity, stallApplicationInfo, stallApplicationInfoPaymentTarget, stallholderBasicInfoFields, stallholderElectricity, stallholderEndDateFields, stallholderFullAddress, stallholderGazebo, stallholderLocationDescription, stallholderMultiLocation, stallholderPackaging, stallholderPaymentMethod, stallholderPriceRange, stallholderProducedIn, stallholderStallSize, stallholderStartDateFields, stallholderTable, statusOptions, tagOptions, timeFormat, truncateText, useAddParticipantToChat, useAddUserFavouriteResource, useCreateChat, useCreateMarket, useCreateMarketInfo, useCreatePoster, useCreateRelation, useCreateStallholder, useCreateStallholderApplyForm, useCreateUser, useDeleteChat, useDeleteMarket, useDeleteRelation, useDeleteStallholder, useGetChat, useGetChatSubscription, useGetMarket, useGetMarketInfo, useGetMarketRelations, useGetMarkets, useGetMarketsByRegion, useGetMarketsNearMe, useGetNotification, useGetRelation, useGetRelationByMarketAndStallholder, useGetResourceConnections, useGetStallholder, useGetStallholderApplyForm, useGetStallholderRelations, useGetStallholders, useGetStallholdersByRegion, useGetUser, useGetUserChats, useGetUserFavourites, useGetUserMarkets, useGetUserNotifications, useGetUsers, useLocationSearch, useLogin, useLoginForm, useMarketForm, useMarketInfoForm, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchMarkets, useSearchStallholders, useSendChatMessage, useStallholderApplyForm, useStallholderForm, useUpdateMarket, useUpdateMarketInfo, useUpdateRelation, useUpdateStallholder, useUpdateStallholderApplyForm, useUpdateUser, useUserForm, useValidateToken, useValidateTokenForm, validateTokenFields };
package/dist/index.d.ts CHANGED
@@ -214,8 +214,9 @@ interface RelationType {
214
214
  interface DateTimeWithPriceType extends DateTimeType {
215
215
  marketPrice: number;
216
216
  }
217
- interface MarketInfoType {
217
+ interface MarketInfoFormData {
218
218
  _id?: string;
219
+ active: boolean;
219
220
  applicationDeadlineHours: number;
220
221
  dateTime: DateTimeWithPriceType[];
221
222
  paymentDueHours: number;
@@ -235,15 +236,15 @@ interface MarketFormData extends BaseResourceTypeFormData {
235
236
  tags?: string[] | null;
236
237
  }
237
238
  interface CreateMarketInfoFormData {
238
- control: Control<MarketInfoType, any>;
239
- fields: MarketInfoType;
239
+ control: Control<MarketInfoFormData, any>;
240
+ fields: MarketInfoFormData;
240
241
  formState: {
241
- errors: FieldErrors<MarketInfoType>;
242
+ errors: FieldErrors<MarketInfoFormData>;
242
243
  };
243
- handleSubmit: UseFormHandleSubmit<MarketInfoType, any>;
244
- reset: UseFormReset<MarketInfoType>;
245
- setValue: UseFormSetValue<MarketInfoType>;
246
- watch: UseFormWatch<MarketInfoType>;
244
+ handleSubmit: UseFormHandleSubmit<MarketInfoFormData, any>;
245
+ reset: UseFormReset<MarketInfoFormData>;
246
+ setValue: UseFormSetValue<MarketInfoFormData>;
247
+ watch: UseFormWatch<MarketInfoFormData>;
247
248
  }
248
249
  interface CreateMarketFormData {
249
250
  control: Control<MarketFormData, any>;
@@ -259,9 +260,26 @@ interface CreateMarketFormData {
259
260
  interface MarketType extends BaseResourceType {
260
261
  dateTime: MarketFormData["dateTime"];
261
262
  location: MarketFormData["location"];
263
+ marketInfoId: string;
262
264
  provider: string;
263
265
  tags: string[] | null;
264
266
  }
267
+ interface MarketInfoType {
268
+ _id: string;
269
+ active: boolean;
270
+ applicationDeadlineHours: number;
271
+ dateTime: DateTimeWithPriceType[];
272
+ marketId: string;
273
+ paymentDueHours: number;
274
+ paymentMethod: EnumPaymentMethod;
275
+ paymentTarget: {
276
+ accountHolderName?: string;
277
+ accountNumber?: string;
278
+ link?: string;
279
+ };
280
+ rejectionPolicy: EnumRejectionPolicy;
281
+ stallCapacity: number;
282
+ }
265
283
  interface MarketWithConnectionDatesType extends MarketType {
266
284
  relationDates: RelationDate[] | undefined;
267
285
  }
@@ -634,10 +652,10 @@ declare function useMarketForm(data?: MarketFormData): CreateMarketFormData;
634
652
  /**
635
653
  * Custom hook to manage the market form state and validation.
636
654
  *
637
- * @param {MarketInfoType} data - The initial form data.
655
+ * @param {MarketInfoFormData} data - The initial form data.
638
656
  * @returns {CreateMarketInfoFormData} - The form methods and state.
639
657
  */
640
- declare function useMarketInfoForm(data?: MarketInfoType): CreateMarketInfoFormData;
658
+ declare function useMarketInfoForm(data?: MarketInfoFormData): CreateMarketInfoFormData;
641
659
 
642
660
  /**
643
661
  * Custom hook to manage the user form state and validation.
@@ -669,7 +687,7 @@ declare function useResetPasswordForm(): CreateResetPasswordFormData;
669
687
 
670
688
  declare const globalDefaultValues: BaseResourceTypeFormData;
671
689
  declare const defaultMarketFormValues: MarketFormData;
672
- declare const defaultMarketInfoFormValues: MarketInfoType;
690
+ declare const defaultMarketInfoFormValues: MarketInfoFormData;
673
691
  declare const defaultStallholderFormValues: StallholderFormData;
674
692
  declare const defaultStallholderApplyFormValues: StallholderApplyFormFormData;
675
693
 
@@ -1037,4 +1055,4 @@ declare const profileFields: FormField[];
1037
1055
  declare const availableCategories: Category[];
1038
1056
  declare const categoryColors: Record<string, string>;
1039
1057
 
1040
- export { type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatInput, type ChatMessageInput, type ChatMessageType, type ChatType, type CreateLoginFormData, type CreateMarketFormData, type CreateMarketInfoFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateStallholderApplyFormFormData, type CreateStallholderFormData, type CreateUserFormData, type CreateValidateTokenFormData, type DateTimeType, EnumInviteStatus, EnumNotification, EnumPaymentMethod, EnumRegions, EnumRejectionPolicy, EnumRelationResource, EnumResourceType, EnumResourceTypeIcon, EnumUserLicence, EnumUserRole, type FormDateField, type FormField, type GeocodeLocation, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type MarketFormData, type MarketInfoType, type MarketType, type MarketWithConnectionDatesType, type NotificationType, type Nullable, type OptionItem, type PlacePrediction, type PosterInputType, type Region, type RegisterFormData, type RelationDate, type RelationLog, type RelationType, type RequestPasswordResetFormData, type ResetPasswordFormData, type ResourceConnectionsType, type ResourceImageType, type SatllholderWithConnectionDatesType, type StallholderApplyFormFormData, type StallholderApplyFormType, type StallholderAttributes, type StallholderFormData, type StallholderLocation, type StallholderType, type Subcategory, type UserFormData, type UserType, type ValidateTokenFormData, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, dateFormat, defaultMarketFormValues, defaultMarketInfoFormValues, defaultRegion, defaultStallholderApplyFormValues, defaultStallholderFormValues, formatDate, formatTimestamp, getCurrentAndFutureDates, getFutureDatesAfterThreshold, globalDefaultValues, loginFields, mapArrayToOptions, marketBasicInfoFields, marketEndDateFields, marketPriceByDateFields, marketStartDateFields, packagingOptions, paymentMethodOptions, producedIngOptions, profileFields, registerFields, rejectionPolicyOptions, removeTypename, requestPasswordResetFields, resetPasswordFields, sortDatesByProximity, stallApplicationInfo, stallApplicationInfoPaymentTarget, stallholderBasicInfoFields, stallholderElectricity, stallholderEndDateFields, stallholderFullAddress, stallholderGazebo, stallholderLocationDescription, stallholderMultiLocation, stallholderPackaging, stallholderPaymentMethod, stallholderPriceRange, stallholderProducedIn, stallholderStallSize, stallholderStartDateFields, stallholderTable, statusOptions, tagOptions, timeFormat, truncateText, useAddParticipantToChat, useAddUserFavouriteResource, useCreateChat, useCreateMarket, useCreateMarketInfo, useCreatePoster, useCreateRelation, useCreateStallholder, useCreateStallholderApplyForm, useCreateUser, useDeleteChat, useDeleteMarket, useDeleteRelation, useDeleteStallholder, useGetChat, useGetChatSubscription, useGetMarket, useGetMarketInfo, useGetMarketRelations, useGetMarkets, useGetMarketsByRegion, useGetMarketsNearMe, useGetNotification, useGetRelation, useGetRelationByMarketAndStallholder, useGetResourceConnections, useGetStallholder, useGetStallholderApplyForm, useGetStallholderRelations, useGetStallholders, useGetStallholdersByRegion, useGetUser, useGetUserChats, useGetUserFavourites, useGetUserMarkets, useGetUserNotifications, useGetUsers, useLocationSearch, useLogin, useLoginForm, useMarketForm, useMarketInfoForm, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchMarkets, useSearchStallholders, useSendChatMessage, useStallholderApplyForm, useStallholderForm, useUpdateMarket, useUpdateMarketInfo, useUpdateRelation, useUpdateStallholder, useUpdateStallholderApplyForm, useUpdateUser, useUserForm, useValidateToken, useValidateTokenForm, validateTokenFields };
1058
+ export { type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatInput, type ChatMessageInput, type ChatMessageType, type ChatType, type CreateLoginFormData, type CreateMarketFormData, type CreateMarketInfoFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateStallholderApplyFormFormData, type CreateStallholderFormData, type CreateUserFormData, type CreateValidateTokenFormData, type DateTimeType, EnumInviteStatus, EnumNotification, EnumPaymentMethod, EnumRegions, EnumRejectionPolicy, EnumRelationResource, EnumResourceType, EnumResourceTypeIcon, 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 PlacePrediction, type PosterInputType, type Region, type RegisterFormData, type RelationDate, type RelationLog, type RelationType, type RequestPasswordResetFormData, type ResetPasswordFormData, type ResourceConnectionsType, type ResourceImageType, type SatllholderWithConnectionDatesType, type StallholderApplyFormFormData, type StallholderApplyFormType, type StallholderAttributes, type StallholderFormData, type StallholderLocation, type StallholderType, type Subcategory, type UserFormData, type UserType, type ValidateTokenFormData, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, dateFormat, defaultMarketFormValues, defaultMarketInfoFormValues, defaultRegion, defaultStallholderApplyFormValues, defaultStallholderFormValues, formatDate, formatTimestamp, getCurrentAndFutureDates, getFutureDatesAfterThreshold, globalDefaultValues, loginFields, mapArrayToOptions, marketBasicInfoFields, marketEndDateFields, marketPriceByDateFields, marketStartDateFields, packagingOptions, paymentMethodOptions, producedIngOptions, profileFields, registerFields, rejectionPolicyOptions, removeTypename, requestPasswordResetFields, resetPasswordFields, sortDatesByProximity, stallApplicationInfo, stallApplicationInfoPaymentTarget, stallholderBasicInfoFields, stallholderElectricity, stallholderEndDateFields, stallholderFullAddress, stallholderGazebo, stallholderLocationDescription, stallholderMultiLocation, stallholderPackaging, stallholderPaymentMethod, stallholderPriceRange, stallholderProducedIn, stallholderStallSize, stallholderStartDateFields, stallholderTable, statusOptions, tagOptions, timeFormat, truncateText, useAddParticipantToChat, useAddUserFavouriteResource, useCreateChat, useCreateMarket, useCreateMarketInfo, useCreatePoster, useCreateRelation, useCreateStallholder, useCreateStallholderApplyForm, useCreateUser, useDeleteChat, useDeleteMarket, useDeleteRelation, useDeleteStallholder, useGetChat, useGetChatSubscription, useGetMarket, useGetMarketInfo, useGetMarketRelations, useGetMarkets, useGetMarketsByRegion, useGetMarketsNearMe, useGetNotification, useGetRelation, useGetRelationByMarketAndStallholder, useGetResourceConnections, useGetStallholder, useGetStallholderApplyForm, useGetStallholderRelations, useGetStallholders, useGetStallholdersByRegion, useGetUser, useGetUserChats, useGetUserFavourites, useGetUserMarkets, useGetUserNotifications, useGetUsers, useLocationSearch, useLogin, useLoginForm, useMarketForm, useMarketInfoForm, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchMarkets, useSearchStallholders, useSendChatMessage, useStallholderApplyForm, useStallholderForm, useUpdateMarket, useUpdateMarketInfo, useUpdateRelation, useUpdateStallholder, useUpdateStallholderApplyForm, useUpdateUser, useUserForm, useValidateToken, useValidateTokenForm, validateTokenFields };
package/dist/index.mjs CHANGED
@@ -395,6 +395,7 @@ var marketSchema = globalResourceSchema.shape({
395
395
  tags: yup2.array().of(yup2.string().defined()).nullable()
396
396
  });
397
397
  var marketInfoSchema = yup2.object().shape({
398
+ active: yup2.boolean().required("Active is required"),
398
399
  applicationDeadlineHours: yup2.number().typeError("Application deadline hours must be a number").min(1, "Application deadline hours must be at least 1").required("Application deadline hours is required").test("no-leading-zeros", "", noLeadingZeros("Application deadline hours")),
399
400
  dateTime: yup2.array().of(dateTimeWithPriceSchema).required("DateTime is required"),
400
401
  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")),
@@ -585,6 +586,7 @@ var defaultMarketFormValues = {
585
586
  tags: null
586
587
  };
587
588
  var defaultMarketInfoFormValues = {
589
+ active: false,
588
590
  applicationDeadlineHours: 0,
589
591
  dateTime: [
590
592
  {
@@ -902,6 +904,7 @@ function useMarketInfoForm(data) {
902
904
  if (data) {
903
905
  reset({
904
906
  _id: data._id,
907
+ active: data.active,
905
908
  applicationDeadlineHours: data.applicationDeadlineHours,
906
909
  dateTime: data.dateTime,
907
910
  paymentDueHours: data.paymentDueHours,
@@ -916,6 +919,7 @@ function useMarketInfoForm(data) {
916
919
  }, [data]);
917
920
  const {
918
921
  _id,
922
+ active,
919
923
  applicationDeadlineHours,
920
924
  dateTime,
921
925
  paymentDueHours,
@@ -928,6 +932,7 @@ function useMarketInfoForm(data) {
928
932
  control,
929
933
  fields: {
930
934
  _id,
935
+ active,
931
936
  applicationDeadlineHours,
932
937
  dateTime,
933
938
  paymentDueHours,
@@ -1562,6 +1567,7 @@ var MARKET_LOCATION_FIELDS_FRAGMENT = gql5`
1562
1567
  var MARKET_INFO = gql5`
1563
1568
  fragment MarketInfoFields on MarketInfoType {
1564
1569
  _id
1570
+ active
1565
1571
  applicationDeadlineHours
1566
1572
  dateTime {
1567
1573
  endDate
@@ -1570,6 +1576,7 @@ var MARKET_INFO = gql5`
1570
1576
  startDate
1571
1577
  startTime
1572
1578
  }
1579
+ marketId
1573
1580
  paymentDueHours
1574
1581
  paymentMethod
1575
1582
  paymentTarget {