@timardex/cluemart-shared 1.0.15 → 1.0.16

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.
Files changed (54) hide show
  1. package/dist/auth-CdcH8nqw.d.mts +84 -0
  2. package/dist/auth-TM_XttY3.d.ts +84 -0
  3. package/dist/chat-NGx5Emrr.d.mts +27 -0
  4. package/dist/chat-NGx5Emrr.d.ts +27 -0
  5. package/dist/chunk-K5NK2CK5.mjs +133 -0
  6. package/dist/chunk-K5NK2CK5.mjs.map +1 -0
  7. package/dist/chunk-L2H5WFGC.mjs +100 -0
  8. package/dist/chunk-L2H5WFGC.mjs.map +1 -0
  9. package/dist/enums/index.cjs +134 -0
  10. package/dist/enums/index.cjs.map +1 -0
  11. package/dist/enums/index.d.mts +75 -0
  12. package/dist/enums/index.d.ts +75 -0
  13. package/dist/enums/index.mjs +27 -0
  14. package/dist/enums/index.mjs.map +1 -0
  15. package/dist/formFields/index.cjs +888 -0
  16. package/dist/formFields/index.cjs.map +1 -0
  17. package/dist/formFields/index.d.mts +60 -0
  18. package/dist/formFields/index.d.ts +60 -0
  19. package/dist/formFields/index.mjs +754 -0
  20. package/dist/formFields/index.mjs.map +1 -0
  21. package/dist/global-B7gB8cvC.d.ts +338 -0
  22. package/dist/global-B8kYikwQ.d.mts +338 -0
  23. package/dist/graphql/index.cjs +1634 -0
  24. package/dist/graphql/index.cjs.map +1 -0
  25. package/dist/graphql/index.d.mts +299 -0
  26. package/dist/graphql/index.d.ts +299 -0
  27. package/dist/graphql/index.mjs +1558 -0
  28. package/dist/graphql/index.mjs.map +1 -0
  29. package/dist/hooks/index.cjs +1090 -0
  30. package/dist/hooks/index.cjs.map +1 -0
  31. package/dist/hooks/index.d.mts +78 -0
  32. package/dist/hooks/index.d.ts +78 -0
  33. package/dist/hooks/index.mjs +970 -0
  34. package/dist/hooks/index.mjs.map +1 -0
  35. package/dist/index.cjs +10 -48
  36. package/dist/index.cjs.map +1 -0
  37. package/dist/index.d.mts +1 -287
  38. package/dist/index.d.ts +1 -287
  39. package/dist/index.mjs +8 -26
  40. package/dist/index.mjs.map +1 -1
  41. package/dist/types/index.cjs +19 -0
  42. package/dist/types/index.cjs.map +1 -0
  43. package/dist/types/index.d.mts +12 -0
  44. package/dist/types/index.d.ts +12 -0
  45. package/dist/types/index.mjs +1 -0
  46. package/dist/types/index.mjs.map +1 -0
  47. package/dist/utils/index.cjs +215 -0
  48. package/dist/utils/index.cjs.map +1 -0
  49. package/dist/utils/index.d.mts +66 -0
  50. package/dist/utils/index.d.ts +66 -0
  51. package/dist/utils/index.mjs +38 -0
  52. package/dist/utils/index.mjs.map +1 -0
  53. package/package.json +37 -4
  54. package/dist/index.js.map +0 -1
package/dist/index.d.mts CHANGED
@@ -1,6 +1,4 @@
1
1
  import { Control, FieldErrors, UseFormHandleSubmit, UseFormReset, UseFormSetValue, UseFormWatch } from 'react-hook-form';
2
- import * as yup from 'yup';
3
- import { TestFunction } from 'yup';
4
2
  import * as _apollo_client from '@apollo/client';
5
3
 
6
4
  declare enum EnumInviteStatus {
@@ -655,290 +653,6 @@ declare const defaultMarketFormValues: MarketFormData;
655
653
  declare const defaultStallholderFormValues: StallholderFormData;
656
654
  declare const defaultStallholderApplyFormValues: StallholderApplyFormFormData;
657
655
 
658
- type NoLeadingZerosOptions = {
659
- allowDecimal?: boolean;
660
- };
661
- declare const noLeadingZeros: (fieldName: string, options?: NoLeadingZerosOptions) => TestFunction<number | undefined>;
662
- declare const endDateNotInPastTest: yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
663
- declare const startDateNotInPastTest: yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
664
- declare const endDateAfterStartDateTest: yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
665
- declare const endTimeMustBeAfterStartTimeTest: yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
666
- declare const startTimeCannotBeInPastTest: yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
667
- declare const dateTimeSchema: yup.ObjectSchema<{
668
- endDate: string;
669
- endTime: string;
670
- marketPrice: number;
671
- startDate: string;
672
- startTime: string;
673
- }, yup.AnyObject, {
674
- endDate: undefined;
675
- endTime: undefined;
676
- marketPrice: undefined;
677
- startDate: undefined;
678
- startTime: undefined;
679
- }, "">;
680
- declare const locationSchema: yup.ObjectSchema<{
681
- city: string;
682
- coordinates: number[];
683
- country: string;
684
- fullAddress: string;
685
- latitude: number;
686
- longitude: number;
687
- region: string;
688
- type: "Point";
689
- }, yup.AnyObject, {
690
- city: undefined;
691
- coordinates: "";
692
- country: undefined;
693
- fullAddress: undefined;
694
- latitude: undefined;
695
- longitude: undefined;
696
- region: undefined;
697
- type: "Point";
698
- }, "">;
699
- declare const emailSchema: yup.StringSchema<string, yup.AnyObject, undefined, "">;
700
- declare const passwordSchema: yup.StringSchema<string, yup.AnyObject, undefined, "">;
701
- declare const globalResourceSchema: yup.ObjectSchema<{
702
- active: NonNullable<boolean | undefined>;
703
- cover: {
704
- source: string;
705
- title: string;
706
- };
707
- description: string;
708
- name: string;
709
- region: string;
710
- }, yup.AnyObject, {
711
- active: undefined;
712
- cover: {
713
- source: undefined;
714
- title: undefined;
715
- };
716
- description: undefined;
717
- name: undefined;
718
- region: undefined;
719
- }, "">;
720
-
721
- declare const marketSchema: yup.ObjectSchema<{
722
- active: NonNullable<boolean | undefined>;
723
- cover: {
724
- source: string;
725
- title: string;
726
- };
727
- description: string;
728
- name: string;
729
- region: string;
730
- dateTime: {
731
- endDate: string;
732
- endTime: string;
733
- startDate: string;
734
- startTime: string;
735
- marketPrice: number;
736
- }[];
737
- location: {
738
- region: string;
739
- latitude: number;
740
- longitude: number;
741
- city: string;
742
- coordinates: number[];
743
- country: string;
744
- fullAddress: string;
745
- type: "Point";
746
- };
747
- provider: string;
748
- stallApplicationInfo: {
749
- paymentMethod: NonNullable<EnumPaymentMethod | undefined>;
750
- applicationDeadlineHours: number;
751
- paymentDueHours: number;
752
- paymentTarget: {};
753
- rejectionPolicy: NonNullable<EnumRejectionPolicy | undefined>;
754
- stallCapacity: number;
755
- };
756
- tags: string[] | null | undefined;
757
- }, yup.AnyObject, {
758
- active: undefined;
759
- cover: {
760
- source: undefined;
761
- title: undefined;
762
- };
763
- description: undefined;
764
- name: undefined;
765
- region: undefined;
766
- dateTime: "";
767
- location: {
768
- city: undefined;
769
- coordinates: "";
770
- country: undefined;
771
- fullAddress: undefined;
772
- latitude: undefined;
773
- longitude: undefined;
774
- region: undefined;
775
- type: "Point";
776
- };
777
- provider: undefined;
778
- stallApplicationInfo: {
779
- applicationDeadlineHours: undefined;
780
- paymentDueHours: undefined;
781
- paymentMethod: undefined;
782
- paymentTarget: {};
783
- rejectionPolicy: undefined;
784
- stallCapacity: undefined;
785
- };
786
- tags: "";
787
- }, "">;
788
-
789
- declare const stallHolderSchema: yup.ObjectSchema<{
790
- active: NonNullable<boolean | undefined>;
791
- cover: {
792
- source: string;
793
- title: string;
794
- };
795
- description: string;
796
- name: string;
797
- region: string;
798
- categories: {
799
- subcategories?: {
800
- items?: string[] | null | undefined;
801
- name: string;
802
- id: string;
803
- }[] | null | undefined;
804
- name: string;
805
- id: string;
806
- }[];
807
- multiLocation: NonNullable<boolean | undefined>;
808
- products: string[];
809
- }, yup.AnyObject, {
810
- active: undefined;
811
- cover: {
812
- source: undefined;
813
- title: undefined;
814
- };
815
- description: undefined;
816
- name: undefined;
817
- region: undefined;
818
- categories: "";
819
- multiLocation: undefined;
820
- products: "";
821
- }, "">;
822
- declare const stallholderApplyFormSchema: yup.ObjectSchema<{
823
- active: NonNullable<boolean | undefined>;
824
- electricity: {
825
- details?: string | null | undefined;
826
- isRequired: NonNullable<boolean | undefined>;
827
- };
828
- foodSafetyGradeFiles: string[] | null | undefined;
829
- foodSafetyGradeFilesUpload: string[] | null | undefined;
830
- gazebo: {
831
- details?: string | null | undefined;
832
- isRequired: NonNullable<boolean | undefined>;
833
- };
834
- packaging: string[];
835
- paymentMethod: NonNullable<EnumPaymentMethod | undefined>;
836
- priceRange: {
837
- max: number;
838
- min: number;
839
- };
840
- producedIn: string[];
841
- stallSize: {
842
- depth: number;
843
- width: number;
844
- };
845
- table: {
846
- details?: string | null | undefined;
847
- isRequired: NonNullable<boolean | undefined>;
848
- };
849
- }, yup.AnyObject, {
850
- active: undefined;
851
- electricity: {
852
- details: undefined;
853
- isRequired: undefined;
854
- };
855
- foodSafetyGradeFiles: "";
856
- foodSafetyGradeFilesUpload: "";
857
- gazebo: {
858
- details: undefined;
859
- isRequired: undefined;
860
- };
861
- packaging: "";
862
- paymentMethod: undefined;
863
- priceRange: {
864
- max: undefined;
865
- min: undefined;
866
- };
867
- producedIn: "";
868
- stallSize: {
869
- depth: undefined;
870
- width: undefined;
871
- };
872
- table: {
873
- details: undefined;
874
- isRequired: undefined;
875
- };
876
- }, "">;
877
-
878
- declare const userSchema: yup.ObjectSchema<{
879
- active: NonNullable<boolean | undefined>;
880
- email: string;
881
- firstName: string;
882
- lastName: string;
883
- password: string;
884
- preferredRegion: string;
885
- confirmPassword: string;
886
- role: NonNullable<EnumUserRole | undefined>;
887
- }, yup.AnyObject, {
888
- active: undefined;
889
- email: undefined;
890
- firstName: undefined;
891
- lastName: undefined;
892
- password: undefined;
893
- preferredRegion: undefined;
894
- confirmPassword: undefined;
895
- role: undefined;
896
- }, "">;
897
-
898
- declare const loginSchema: yup.ObjectSchema<{
899
- email: string;
900
- password: string;
901
- }, yup.AnyObject, {
902
- email: undefined;
903
- password: undefined;
904
- }, "">;
905
- declare const registerSchema: yup.ObjectSchema<{
906
- email: string;
907
- firstName: string;
908
- lastName: string;
909
- password: string;
910
- preferredRegion: string;
911
- role: NonNullable<EnumUserRole | undefined>;
912
- }, yup.AnyObject, {
913
- email: undefined;
914
- firstName: undefined;
915
- lastName: undefined;
916
- password: undefined;
917
- preferredRegion: undefined;
918
- role: undefined;
919
- }, "">;
920
- declare const requestPasswordResetSchema: yup.ObjectSchema<{
921
- email: string;
922
- }, yup.AnyObject, {
923
- email: undefined;
924
- }, "">;
925
- declare const resetPasswordSchema: yup.ObjectSchema<{
926
- email: string;
927
- password: string;
928
- confirmPassword: string;
929
- }, yup.AnyObject, {
930
- email: undefined;
931
- password: undefined;
932
- confirmPassword: undefined;
933
- }, "">;
934
- declare const validateTokenSchema: yup.ObjectSchema<{
935
- email: string;
936
- token: string;
937
- }, yup.AnyObject, {
938
- email: undefined;
939
- token: undefined;
940
- }, "">;
941
-
942
656
  declare const useLogin: () => {
943
657
  error: _apollo_client.ApolloError | undefined;
944
658
  loading: boolean;
@@ -1286,4 +1000,4 @@ declare const profileFields: FormField[];
1286
1000
  declare const availableCategories: Category[];
1287
1001
  declare const categoryColors: Record<string, string>;
1288
1002
 
1289
- export { type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatInput, type ChatMessageInput, type ChatMessageType, type ChatType, type CreateLoginFormData, type CreateMarketFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateStallholderApplyFormFormData, type CreateStallholderFormData, type CreateUserFormData, type CreateValidateTokenFormData, type DateTimeType, type DateTimeWithPrice, 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 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 StallApplicationInfoType, 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, dateTimeSchema, defaultMarketFormValues, defaultRegion, defaultStallholderApplyFormValues, defaultStallholderFormValues, emailSchema, endDateAfterStartDateTest, endDateNotInPastTest, endTimeMustBeAfterStartTimeTest, formatDate, formatTimestamp, getCurrentAndFutureDates, getFutureDatesAfterThreshold, globalDefaultValues, globalResourceSchema, locationSchema, loginFields, loginSchema, mapArrayToOptions, marketBasicInfoFields, marketEndDateFields, marketPriceByDateFields, marketSchema, marketStartDateFields, noLeadingZeros, packagingOptions, passwordSchema, paymentMethodOptions, producedIngOptions, profileFields, registerFields, registerSchema, rejectionPolicyOptions, removeTypename, requestPasswordResetFields, requestPasswordResetSchema, resetPasswordFields, resetPasswordSchema, sortDatesByProximity, stallApplicationInfo, stallApplicationInfoPaymentTarget, stallHolderSchema, stallholderApplyFormSchema, stallholderBasicInfoFields, stallholderElectricity, stallholderEndDateFields, stallholderFullAddress, stallholderGazebo, stallholderLocationDescription, stallholderMultiLocation, stallholderPackaging, stallholderPaymentMethod, stallholderPriceRange, stallholderProducedIn, stallholderStallSize, stallholderStartDateFields, stallholderTable, startDateNotInPastTest, startTimeCannotBeInPastTest, statusOptions, tagOptions, timeFormat, truncateText, useAddParticipantToChat, useAddUserFavouriteResource, useCreateChat, useCreateMarket, useCreatePoster, useCreateRelation, useCreateStallholder, useCreateStallholderApplyForm, useCreateUser, useDeleteChat, useDeleteMarket, useDeleteRelation, useDeleteStallholder, useGetChat, useGetChatSubscription, useGetMarket, useGetMarketRelations, useGetMarkets, useGetMarketsByRegion, useGetMarketsNearMe, useGetNotification, useGetRelation, useGetRelationByMarketAndStallholder, useGetResourceConnections, useGetStallholder, useGetStallholderApplyForm, useGetStallholderRelations, useGetStallholders, useGetStallholdersByRegion, useGetUser, useGetUserChats, useGetUserFavourites, useGetUserMarkets, useGetUserNotifications, useGetUsers, useLocationSearch, useLogin, useLoginForm, useMarketForm, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchMarkets, useSearchStallholders, useSendChatMessage, useStallholderApplyForm, useStallholderForm, useUpdateMarket, useUpdateRelation, useUpdateStallholder, useUpdateStallholderApplyForm, useUpdateUser, useUserForm, useValidateToken, useValidateTokenForm, userSchema, validateTokenFields, validateTokenSchema };
1003
+ export { type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatInput, type ChatMessageInput, type ChatMessageType, type ChatType, type CreateLoginFormData, type CreateMarketFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateStallholderApplyFormFormData, type CreateStallholderFormData, type CreateUserFormData, type CreateValidateTokenFormData, type DateTimeType, type DateTimeWithPrice, 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 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 StallApplicationInfoType, 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, 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, useCreatePoster, useCreateRelation, useCreateStallholder, useCreateStallholderApplyForm, useCreateUser, useDeleteChat, useDeleteMarket, useDeleteRelation, useDeleteStallholder, useGetChat, useGetChatSubscription, useGetMarket, useGetMarketRelations, useGetMarkets, useGetMarketsByRegion, useGetMarketsNearMe, useGetNotification, useGetRelation, useGetRelationByMarketAndStallholder, useGetResourceConnections, useGetStallholder, useGetStallholderApplyForm, useGetStallholderRelations, useGetStallholders, useGetStallholdersByRegion, useGetUser, useGetUserChats, useGetUserFavourites, useGetUserMarkets, useGetUserNotifications, useGetUsers, useLocationSearch, useLogin, useLoginForm, useMarketForm, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchMarkets, useSearchStallholders, useSendChatMessage, useStallholderApplyForm, useStallholderForm, useUpdateMarket, useUpdateRelation, useUpdateStallholder, useUpdateStallholderApplyForm, useUpdateUser, useUserForm, useValidateToken, useValidateTokenForm, validateTokenFields };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,4 @@
1
1
  import { Control, FieldErrors, UseFormHandleSubmit, UseFormReset, UseFormSetValue, UseFormWatch } from 'react-hook-form';
2
- import * as yup from 'yup';
3
- import { TestFunction } from 'yup';
4
2
  import * as _apollo_client from '@apollo/client';
5
3
 
6
4
  declare enum EnumInviteStatus {
@@ -655,290 +653,6 @@ declare const defaultMarketFormValues: MarketFormData;
655
653
  declare const defaultStallholderFormValues: StallholderFormData;
656
654
  declare const defaultStallholderApplyFormValues: StallholderApplyFormFormData;
657
655
 
658
- type NoLeadingZerosOptions = {
659
- allowDecimal?: boolean;
660
- };
661
- declare const noLeadingZeros: (fieldName: string, options?: NoLeadingZerosOptions) => TestFunction<number | undefined>;
662
- declare const endDateNotInPastTest: yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
663
- declare const startDateNotInPastTest: yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
664
- declare const endDateAfterStartDateTest: yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
665
- declare const endTimeMustBeAfterStartTimeTest: yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
666
- declare const startTimeCannotBeInPastTest: yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
667
- declare const dateTimeSchema: yup.ObjectSchema<{
668
- endDate: string;
669
- endTime: string;
670
- marketPrice: number;
671
- startDate: string;
672
- startTime: string;
673
- }, yup.AnyObject, {
674
- endDate: undefined;
675
- endTime: undefined;
676
- marketPrice: undefined;
677
- startDate: undefined;
678
- startTime: undefined;
679
- }, "">;
680
- declare const locationSchema: yup.ObjectSchema<{
681
- city: string;
682
- coordinates: number[];
683
- country: string;
684
- fullAddress: string;
685
- latitude: number;
686
- longitude: number;
687
- region: string;
688
- type: "Point";
689
- }, yup.AnyObject, {
690
- city: undefined;
691
- coordinates: "";
692
- country: undefined;
693
- fullAddress: undefined;
694
- latitude: undefined;
695
- longitude: undefined;
696
- region: undefined;
697
- type: "Point";
698
- }, "">;
699
- declare const emailSchema: yup.StringSchema<string, yup.AnyObject, undefined, "">;
700
- declare const passwordSchema: yup.StringSchema<string, yup.AnyObject, undefined, "">;
701
- declare const globalResourceSchema: yup.ObjectSchema<{
702
- active: NonNullable<boolean | undefined>;
703
- cover: {
704
- source: string;
705
- title: string;
706
- };
707
- description: string;
708
- name: string;
709
- region: string;
710
- }, yup.AnyObject, {
711
- active: undefined;
712
- cover: {
713
- source: undefined;
714
- title: undefined;
715
- };
716
- description: undefined;
717
- name: undefined;
718
- region: undefined;
719
- }, "">;
720
-
721
- declare const marketSchema: yup.ObjectSchema<{
722
- active: NonNullable<boolean | undefined>;
723
- cover: {
724
- source: string;
725
- title: string;
726
- };
727
- description: string;
728
- name: string;
729
- region: string;
730
- dateTime: {
731
- endDate: string;
732
- endTime: string;
733
- startDate: string;
734
- startTime: string;
735
- marketPrice: number;
736
- }[];
737
- location: {
738
- region: string;
739
- latitude: number;
740
- longitude: number;
741
- city: string;
742
- coordinates: number[];
743
- country: string;
744
- fullAddress: string;
745
- type: "Point";
746
- };
747
- provider: string;
748
- stallApplicationInfo: {
749
- paymentMethod: NonNullable<EnumPaymentMethod | undefined>;
750
- applicationDeadlineHours: number;
751
- paymentDueHours: number;
752
- paymentTarget: {};
753
- rejectionPolicy: NonNullable<EnumRejectionPolicy | undefined>;
754
- stallCapacity: number;
755
- };
756
- tags: string[] | null | undefined;
757
- }, yup.AnyObject, {
758
- active: undefined;
759
- cover: {
760
- source: undefined;
761
- title: undefined;
762
- };
763
- description: undefined;
764
- name: undefined;
765
- region: undefined;
766
- dateTime: "";
767
- location: {
768
- city: undefined;
769
- coordinates: "";
770
- country: undefined;
771
- fullAddress: undefined;
772
- latitude: undefined;
773
- longitude: undefined;
774
- region: undefined;
775
- type: "Point";
776
- };
777
- provider: undefined;
778
- stallApplicationInfo: {
779
- applicationDeadlineHours: undefined;
780
- paymentDueHours: undefined;
781
- paymentMethod: undefined;
782
- paymentTarget: {};
783
- rejectionPolicy: undefined;
784
- stallCapacity: undefined;
785
- };
786
- tags: "";
787
- }, "">;
788
-
789
- declare const stallHolderSchema: yup.ObjectSchema<{
790
- active: NonNullable<boolean | undefined>;
791
- cover: {
792
- source: string;
793
- title: string;
794
- };
795
- description: string;
796
- name: string;
797
- region: string;
798
- categories: {
799
- subcategories?: {
800
- items?: string[] | null | undefined;
801
- name: string;
802
- id: string;
803
- }[] | null | undefined;
804
- name: string;
805
- id: string;
806
- }[];
807
- multiLocation: NonNullable<boolean | undefined>;
808
- products: string[];
809
- }, yup.AnyObject, {
810
- active: undefined;
811
- cover: {
812
- source: undefined;
813
- title: undefined;
814
- };
815
- description: undefined;
816
- name: undefined;
817
- region: undefined;
818
- categories: "";
819
- multiLocation: undefined;
820
- products: "";
821
- }, "">;
822
- declare const stallholderApplyFormSchema: yup.ObjectSchema<{
823
- active: NonNullable<boolean | undefined>;
824
- electricity: {
825
- details?: string | null | undefined;
826
- isRequired: NonNullable<boolean | undefined>;
827
- };
828
- foodSafetyGradeFiles: string[] | null | undefined;
829
- foodSafetyGradeFilesUpload: string[] | null | undefined;
830
- gazebo: {
831
- details?: string | null | undefined;
832
- isRequired: NonNullable<boolean | undefined>;
833
- };
834
- packaging: string[];
835
- paymentMethod: NonNullable<EnumPaymentMethod | undefined>;
836
- priceRange: {
837
- max: number;
838
- min: number;
839
- };
840
- producedIn: string[];
841
- stallSize: {
842
- depth: number;
843
- width: number;
844
- };
845
- table: {
846
- details?: string | null | undefined;
847
- isRequired: NonNullable<boolean | undefined>;
848
- };
849
- }, yup.AnyObject, {
850
- active: undefined;
851
- electricity: {
852
- details: undefined;
853
- isRequired: undefined;
854
- };
855
- foodSafetyGradeFiles: "";
856
- foodSafetyGradeFilesUpload: "";
857
- gazebo: {
858
- details: undefined;
859
- isRequired: undefined;
860
- };
861
- packaging: "";
862
- paymentMethod: undefined;
863
- priceRange: {
864
- max: undefined;
865
- min: undefined;
866
- };
867
- producedIn: "";
868
- stallSize: {
869
- depth: undefined;
870
- width: undefined;
871
- };
872
- table: {
873
- details: undefined;
874
- isRequired: undefined;
875
- };
876
- }, "">;
877
-
878
- declare const userSchema: yup.ObjectSchema<{
879
- active: NonNullable<boolean | undefined>;
880
- email: string;
881
- firstName: string;
882
- lastName: string;
883
- password: string;
884
- preferredRegion: string;
885
- confirmPassword: string;
886
- role: NonNullable<EnumUserRole | undefined>;
887
- }, yup.AnyObject, {
888
- active: undefined;
889
- email: undefined;
890
- firstName: undefined;
891
- lastName: undefined;
892
- password: undefined;
893
- preferredRegion: undefined;
894
- confirmPassword: undefined;
895
- role: undefined;
896
- }, "">;
897
-
898
- declare const loginSchema: yup.ObjectSchema<{
899
- email: string;
900
- password: string;
901
- }, yup.AnyObject, {
902
- email: undefined;
903
- password: undefined;
904
- }, "">;
905
- declare const registerSchema: yup.ObjectSchema<{
906
- email: string;
907
- firstName: string;
908
- lastName: string;
909
- password: string;
910
- preferredRegion: string;
911
- role: NonNullable<EnumUserRole | undefined>;
912
- }, yup.AnyObject, {
913
- email: undefined;
914
- firstName: undefined;
915
- lastName: undefined;
916
- password: undefined;
917
- preferredRegion: undefined;
918
- role: undefined;
919
- }, "">;
920
- declare const requestPasswordResetSchema: yup.ObjectSchema<{
921
- email: string;
922
- }, yup.AnyObject, {
923
- email: undefined;
924
- }, "">;
925
- declare const resetPasswordSchema: yup.ObjectSchema<{
926
- email: string;
927
- password: string;
928
- confirmPassword: string;
929
- }, yup.AnyObject, {
930
- email: undefined;
931
- password: undefined;
932
- confirmPassword: undefined;
933
- }, "">;
934
- declare const validateTokenSchema: yup.ObjectSchema<{
935
- email: string;
936
- token: string;
937
- }, yup.AnyObject, {
938
- email: undefined;
939
- token: undefined;
940
- }, "">;
941
-
942
656
  declare const useLogin: () => {
943
657
  error: _apollo_client.ApolloError | undefined;
944
658
  loading: boolean;
@@ -1286,4 +1000,4 @@ declare const profileFields: FormField[];
1286
1000
  declare const availableCategories: Category[];
1287
1001
  declare const categoryColors: Record<string, string>;
1288
1002
 
1289
- export { type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatInput, type ChatMessageInput, type ChatMessageType, type ChatType, type CreateLoginFormData, type CreateMarketFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateStallholderApplyFormFormData, type CreateStallholderFormData, type CreateUserFormData, type CreateValidateTokenFormData, type DateTimeType, type DateTimeWithPrice, 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 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 StallApplicationInfoType, 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, dateTimeSchema, defaultMarketFormValues, defaultRegion, defaultStallholderApplyFormValues, defaultStallholderFormValues, emailSchema, endDateAfterStartDateTest, endDateNotInPastTest, endTimeMustBeAfterStartTimeTest, formatDate, formatTimestamp, getCurrentAndFutureDates, getFutureDatesAfterThreshold, globalDefaultValues, globalResourceSchema, locationSchema, loginFields, loginSchema, mapArrayToOptions, marketBasicInfoFields, marketEndDateFields, marketPriceByDateFields, marketSchema, marketStartDateFields, noLeadingZeros, packagingOptions, passwordSchema, paymentMethodOptions, producedIngOptions, profileFields, registerFields, registerSchema, rejectionPolicyOptions, removeTypename, requestPasswordResetFields, requestPasswordResetSchema, resetPasswordFields, resetPasswordSchema, sortDatesByProximity, stallApplicationInfo, stallApplicationInfoPaymentTarget, stallHolderSchema, stallholderApplyFormSchema, stallholderBasicInfoFields, stallholderElectricity, stallholderEndDateFields, stallholderFullAddress, stallholderGazebo, stallholderLocationDescription, stallholderMultiLocation, stallholderPackaging, stallholderPaymentMethod, stallholderPriceRange, stallholderProducedIn, stallholderStallSize, stallholderStartDateFields, stallholderTable, startDateNotInPastTest, startTimeCannotBeInPastTest, statusOptions, tagOptions, timeFormat, truncateText, useAddParticipantToChat, useAddUserFavouriteResource, useCreateChat, useCreateMarket, useCreatePoster, useCreateRelation, useCreateStallholder, useCreateStallholderApplyForm, useCreateUser, useDeleteChat, useDeleteMarket, useDeleteRelation, useDeleteStallholder, useGetChat, useGetChatSubscription, useGetMarket, useGetMarketRelations, useGetMarkets, useGetMarketsByRegion, useGetMarketsNearMe, useGetNotification, useGetRelation, useGetRelationByMarketAndStallholder, useGetResourceConnections, useGetStallholder, useGetStallholderApplyForm, useGetStallholderRelations, useGetStallholders, useGetStallholdersByRegion, useGetUser, useGetUserChats, useGetUserFavourites, useGetUserMarkets, useGetUserNotifications, useGetUsers, useLocationSearch, useLogin, useLoginForm, useMarketForm, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchMarkets, useSearchStallholders, useSendChatMessage, useStallholderApplyForm, useStallholderForm, useUpdateMarket, useUpdateRelation, useUpdateStallholder, useUpdateStallholderApplyForm, useUpdateUser, useUserForm, useValidateToken, useValidateTokenForm, userSchema, validateTokenFields, validateTokenSchema };
1003
+ export { type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatInput, type ChatMessageInput, type ChatMessageType, type ChatType, type CreateLoginFormData, type CreateMarketFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateStallholderApplyFormFormData, type CreateStallholderFormData, type CreateUserFormData, type CreateValidateTokenFormData, type DateTimeType, type DateTimeWithPrice, 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 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 StallApplicationInfoType, 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, 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, useCreatePoster, useCreateRelation, useCreateStallholder, useCreateStallholderApplyForm, useCreateUser, useDeleteChat, useDeleteMarket, useDeleteRelation, useDeleteStallholder, useGetChat, useGetChatSubscription, useGetMarket, useGetMarketRelations, useGetMarkets, useGetMarketsByRegion, useGetMarketsNearMe, useGetNotification, useGetRelation, useGetRelationByMarketAndStallholder, useGetResourceConnections, useGetStallholder, useGetStallholderApplyForm, useGetStallholderRelations, useGetStallholders, useGetStallholdersByRegion, useGetUser, useGetUserChats, useGetUserFavourites, useGetUserMarkets, useGetUserNotifications, useGetUsers, useLocationSearch, useLogin, useLoginForm, useMarketForm, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchMarkets, useSearchStallholders, useSendChatMessage, useStallholderApplyForm, useStallholderForm, useUpdateMarket, useUpdateRelation, useUpdateStallholder, useUpdateStallholderApplyForm, useUpdateUser, useUserForm, useValidateToken, useValidateTokenForm, validateTokenFields };