@timardex/cluemart-shared 1.0.38 → 1.0.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-OXXSIU3M.mjs → chunk-4BZVTRCC.mjs} +7 -1
- package/dist/chunk-4BZVTRCC.mjs.map +1 -0
- package/dist/{chunk-NWMPRKZ7.mjs → chunk-WGEUNGLF.mjs} +11 -11
- package/dist/chunk-WGEUNGLF.mjs.map +1 -0
- package/dist/enums/index.cjs +7 -0
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.mts +5 -1
- package/dist/enums/index.d.ts +5 -1
- package/dist/enums/index.mjs +3 -1
- package/dist/formFields/index.cjs +32 -8
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.d.mts +3 -1
- package/dist/formFields/index.d.ts +3 -1
- package/dist/formFields/index.mjs +25 -2
- package/dist/formFields/index.mjs.map +1 -1
- package/dist/graphql/index.cjs +121 -0
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +33 -1
- package/dist/graphql/index.d.ts +33 -1
- package/dist/graphql/index.mjs +116 -0
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +89 -12
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +4 -1
- package/dist/hooks/index.d.ts +4 -1
- package/dist/hooks/index.mjs +75 -7
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +231 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +69 -1
- package/dist/index.d.ts +69 -1
- package/dist/index.mjs +225 -14
- package/dist/index.mjs.map +1 -1
- package/dist/testers-ClXZAzaf.d.mts +33 -0
- package/dist/testers-VmDJdd6R.d.ts +33 -0
- package/dist/utils/index.cjs +8 -8
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-NWMPRKZ7.mjs.map +0 -1
- package/dist/chunk-OXXSIU3M.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -127,6 +127,10 @@ declare enum EnumResourceType {
|
|
|
127
127
|
MARKET = "market",
|
|
128
128
|
STALLHOLDER = "stallholder"
|
|
129
129
|
}
|
|
130
|
+
declare enum EnumOSType {
|
|
131
|
+
ANDROID = "Android",
|
|
132
|
+
IOS = "iOS"
|
|
133
|
+
}
|
|
130
134
|
declare enum EnumRelationResource {
|
|
131
135
|
MARKET_INVITE_STALLHOLDER = "market_invite_stallholder",
|
|
132
136
|
STALLHOLDER_APPLICATION_TO_MARKET = "stallholder_application_to_market"
|
|
@@ -668,6 +672,37 @@ declare const defaultStallholderFormValues: StallholderFormData;
|
|
|
668
672
|
declare const defaultStallholderApplyFormValues: StallholderApplyFormFormData;
|
|
669
673
|
declare function mapBaseResourceTypeToFormData(data: MarketFormData | StallholderFormData): BaseResourceTypeFormData;
|
|
670
674
|
|
|
675
|
+
type TestersFormData = {
|
|
676
|
+
email: string;
|
|
677
|
+
firstName: string;
|
|
678
|
+
lastName: string;
|
|
679
|
+
osType: EnumOSType;
|
|
680
|
+
resourceType: EnumResourceType;
|
|
681
|
+
};
|
|
682
|
+
interface CreateTestersFormData {
|
|
683
|
+
control: Control<TestersFormData, any>;
|
|
684
|
+
fields: TestersFormData;
|
|
685
|
+
formState: {
|
|
686
|
+
errors: FieldErrors<TestersFormData>;
|
|
687
|
+
};
|
|
688
|
+
handleSubmit: UseFormHandleSubmit<TestersFormData, any>;
|
|
689
|
+
reset: UseFormReset<TestersFormData>;
|
|
690
|
+
setValue: UseFormSetValue<TestersFormData>;
|
|
691
|
+
watch: UseFormWatch<TestersFormData>;
|
|
692
|
+
}
|
|
693
|
+
type TesterType = {
|
|
694
|
+
_id: string;
|
|
695
|
+
firstName: string;
|
|
696
|
+
lastName: string;
|
|
697
|
+
email: string;
|
|
698
|
+
osType: EnumOSType;
|
|
699
|
+
resourceType: EnumResourceType;
|
|
700
|
+
createdAt: string;
|
|
701
|
+
updatedAt: string;
|
|
702
|
+
};
|
|
703
|
+
|
|
704
|
+
declare function useTestersForm(data?: TestersFormData): CreateTestersFormData;
|
|
705
|
+
|
|
671
706
|
declare const useRegister: () => {
|
|
672
707
|
error: _apollo_client.ApolloError | undefined;
|
|
673
708
|
loading: boolean;
|
|
@@ -992,6 +1027,37 @@ declare const useGetUserNotifications: () => {
|
|
|
992
1027
|
userNotifications: boolean;
|
|
993
1028
|
};
|
|
994
1029
|
|
|
1030
|
+
declare const useCreateTester: () => {
|
|
1031
|
+
createTester: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
1032
|
+
data: any;
|
|
1033
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1034
|
+
loading: boolean;
|
|
1035
|
+
};
|
|
1036
|
+
declare const useUpdateTester: () => {
|
|
1037
|
+
data: any;
|
|
1038
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1039
|
+
loading: boolean;
|
|
1040
|
+
updateTester: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
1041
|
+
};
|
|
1042
|
+
declare const useDeleteTester: () => {
|
|
1043
|
+
deleteTester: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
1044
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1045
|
+
loading: boolean;
|
|
1046
|
+
};
|
|
1047
|
+
|
|
1048
|
+
declare const useGetTesters: () => {
|
|
1049
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1050
|
+
loading: boolean;
|
|
1051
|
+
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
1052
|
+
testers: TesterType[];
|
|
1053
|
+
};
|
|
1054
|
+
declare const useGetTester: (_id: string) => {
|
|
1055
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1056
|
+
loading: boolean;
|
|
1057
|
+
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
1058
|
+
tester: TesterType;
|
|
1059
|
+
};
|
|
1060
|
+
|
|
995
1061
|
declare const stallholderBasicInfoFields: FormField[];
|
|
996
1062
|
declare const stallholderMultiLocation: FormField;
|
|
997
1063
|
declare const stallholderFullAddress: FormField;
|
|
@@ -1054,10 +1120,12 @@ declare const categoryColors: Record<string, string>;
|
|
|
1054
1120
|
|
|
1055
1121
|
declare const socialMediaFields: FormField[];
|
|
1056
1122
|
|
|
1123
|
+
declare const testersFields: FormField[];
|
|
1124
|
+
|
|
1057
1125
|
declare const SAVED_PASSWORD_KEY = "savedPassword";
|
|
1058
1126
|
declare const SAVED_EMAIL_KEY = "savedEmail";
|
|
1059
1127
|
declare const SAVED_TOKEN_KEY = "savedToken";
|
|
1060
1128
|
declare const SAVED_REFRESH_TOKEN_KEY = "savedRefreshToken";
|
|
1061
1129
|
declare const USER_STORAGE_KEY = "authUser";
|
|
1062
1130
|
|
|
1063
|
-
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 CreateValidateVerificationTokenFormData, type DateTimeType, type DateTimeWithPriceType, EnumInviteStatus, EnumNotification, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumResourceTypeIcon, EnumSocialMedia, EnumUserLicence, EnumUserRole, type FormDateField, type FormField, type GeocodeLocation, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type MarketFormData, type MarketInfoFormData, type MarketInfoType, type MarketType, type MarketWithConnectionDatesType, type NotificationType, type Nullable, type OptionItem, type PaymentTargetType, type PlacePrediction, type PosterInputType, type Region, type RegisterFormData, type RelationDate, type RelationLog, type RelationType, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceConnectionsType, type ResourceImageType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SatllholderWithConnectionDatesType, type SiteType, type SocialMediaType, type StallholderApplyFormFormData, type StallholderApplyFormType, type StallholderAttributes, type StallholderFormData, type StallholderLocation, type StallholderType, type Subcategory, USER_STORAGE_KEY, type UserFormData, type UserType, type ValidateVerificationTokenFormData, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, dateFormat, defaultMarketFormValues, defaultMarketInfoFormValues, defaultRegion, defaultStallholderApplyFormValues, defaultStallholderFormValues, formatDate, formatTimestamp, getCurrentAndFutureDates, getFutureDatesAfterThreshold, globalDefaultValues, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, marketBasicInfoFields, marketEndDateFields, marketInfo, marketInfoPaymentTarget, marketPriceByDateFields, marketStartDateFields, normalizeUrl, packagingOptions, paymentMethodOptions, producedIngOptions, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, siteTypeOptions, socialMediaFields, sortDatesByProximity, stallholderBasicInfoFields, stallholderElectricity, stallholderEndDateFields, stallholderFullAddress, stallholderGazebo, stallholderLocationDescription, stallholderMultiLocation, stallholderPackaging, stallholderPaymentMethod, stallholderPriceRange, stallholderProducedIn, stallholderStallSize, stallholderStartDateFields, stallholderTable, statusOptions, tagOptions, 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, useGetUserStallholder, useGetUsers, useLocationSearch, useLogin, useLoginForm, useLogout, useMarketForm, useMarketInfoForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchMarkets, useSearchStallholders, useSendChatMessage, useStallholderApplyForm, useStallholderForm, useUpdateMarket, useUpdateMarketInfo, useUpdateRelation, useUpdateStallholder, useUpdateStallholderApplyForm, useUpdateUser, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, validateVerificationTokenFields };
|
|
1131
|
+
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 CreateValidateVerificationTokenFormData, type DateTimeType, type DateTimeWithPriceType, EnumInviteStatus, EnumNotification, EnumOSType, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumResourceTypeIcon, EnumSocialMedia, EnumUserLicence, EnumUserRole, type FormDateField, type FormField, type GeocodeLocation, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type MarketFormData, type MarketInfoFormData, type MarketInfoType, type MarketType, type MarketWithConnectionDatesType, type NotificationType, type Nullable, type OptionItem, type PaymentTargetType, type PlacePrediction, type PosterInputType, type Region, type RegisterFormData, type RelationDate, type RelationLog, type RelationType, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceConnectionsType, type ResourceImageType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SatllholderWithConnectionDatesType, type SiteType, type SocialMediaType, type StallholderApplyFormFormData, type StallholderApplyFormType, type StallholderAttributes, type StallholderFormData, type StallholderLocation, type StallholderType, type Subcategory, USER_STORAGE_KEY, type UserFormData, type UserType, type ValidateVerificationTokenFormData, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, dateFormat, defaultMarketFormValues, defaultMarketInfoFormValues, defaultRegion, defaultStallholderApplyFormValues, defaultStallholderFormValues, formatDate, formatTimestamp, getCurrentAndFutureDates, getFutureDatesAfterThreshold, globalDefaultValues, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, marketBasicInfoFields, marketEndDateFields, marketInfo, marketInfoPaymentTarget, marketPriceByDateFields, marketStartDateFields, normalizeUrl, packagingOptions, paymentMethodOptions, producedIngOptions, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, siteTypeOptions, socialMediaFields, sortDatesByProximity, stallholderBasicInfoFields, stallholderElectricity, stallholderEndDateFields, stallholderFullAddress, stallholderGazebo, stallholderLocationDescription, stallholderMultiLocation, stallholderPackaging, stallholderPaymentMethod, stallholderPriceRange, stallholderProducedIn, stallholderStallSize, stallholderStartDateFields, stallholderTable, statusOptions, tagOptions, testersFields, timeFormat, truncateText, useAddParticipantToChat, useAddUserFavouriteResource, useCreateChat, useCreateMarket, useCreateMarketInfo, useCreatePoster, useCreateRelation, useCreateStallholder, useCreateStallholderApplyForm, useCreateTester, useCreateUser, useDeleteChat, useDeleteMarket, useDeleteRelation, useDeleteStallholder, useDeleteTester, useGetChat, useGetChatSubscription, useGetMarket, useGetMarketInfo, useGetMarketRelations, useGetMarkets, useGetMarketsByRegion, useGetMarketsNearMe, useGetNotification, useGetRelation, useGetRelationByMarketAndStallholder, useGetResourceConnections, useGetStallholder, useGetStallholderApplyForm, useGetStallholderRelations, useGetStallholders, useGetStallholdersByRegion, useGetTester, useGetTesters, useGetUser, useGetUserChats, useGetUserFavourites, useGetUserMarkets, useGetUserNotifications, useGetUserStallholder, useGetUsers, useLocationSearch, useLogin, useLoginForm, useLogout, useMarketForm, useMarketInfoForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchMarkets, useSearchStallholders, useSendChatMessage, useStallholderApplyForm, useStallholderForm, useTestersForm, useUpdateMarket, useUpdateMarketInfo, useUpdateRelation, useUpdateStallholder, useUpdateStallholderApplyForm, useUpdateTester, useUpdateUser, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, validateVerificationTokenFields };
|
package/dist/index.d.ts
CHANGED
|
@@ -127,6 +127,10 @@ declare enum EnumResourceType {
|
|
|
127
127
|
MARKET = "market",
|
|
128
128
|
STALLHOLDER = "stallholder"
|
|
129
129
|
}
|
|
130
|
+
declare enum EnumOSType {
|
|
131
|
+
ANDROID = "Android",
|
|
132
|
+
IOS = "iOS"
|
|
133
|
+
}
|
|
130
134
|
declare enum EnumRelationResource {
|
|
131
135
|
MARKET_INVITE_STALLHOLDER = "market_invite_stallholder",
|
|
132
136
|
STALLHOLDER_APPLICATION_TO_MARKET = "stallholder_application_to_market"
|
|
@@ -668,6 +672,37 @@ declare const defaultStallholderFormValues: StallholderFormData;
|
|
|
668
672
|
declare const defaultStallholderApplyFormValues: StallholderApplyFormFormData;
|
|
669
673
|
declare function mapBaseResourceTypeToFormData(data: MarketFormData | StallholderFormData): BaseResourceTypeFormData;
|
|
670
674
|
|
|
675
|
+
type TestersFormData = {
|
|
676
|
+
email: string;
|
|
677
|
+
firstName: string;
|
|
678
|
+
lastName: string;
|
|
679
|
+
osType: EnumOSType;
|
|
680
|
+
resourceType: EnumResourceType;
|
|
681
|
+
};
|
|
682
|
+
interface CreateTestersFormData {
|
|
683
|
+
control: Control<TestersFormData, any>;
|
|
684
|
+
fields: TestersFormData;
|
|
685
|
+
formState: {
|
|
686
|
+
errors: FieldErrors<TestersFormData>;
|
|
687
|
+
};
|
|
688
|
+
handleSubmit: UseFormHandleSubmit<TestersFormData, any>;
|
|
689
|
+
reset: UseFormReset<TestersFormData>;
|
|
690
|
+
setValue: UseFormSetValue<TestersFormData>;
|
|
691
|
+
watch: UseFormWatch<TestersFormData>;
|
|
692
|
+
}
|
|
693
|
+
type TesterType = {
|
|
694
|
+
_id: string;
|
|
695
|
+
firstName: string;
|
|
696
|
+
lastName: string;
|
|
697
|
+
email: string;
|
|
698
|
+
osType: EnumOSType;
|
|
699
|
+
resourceType: EnumResourceType;
|
|
700
|
+
createdAt: string;
|
|
701
|
+
updatedAt: string;
|
|
702
|
+
};
|
|
703
|
+
|
|
704
|
+
declare function useTestersForm(data?: TestersFormData): CreateTestersFormData;
|
|
705
|
+
|
|
671
706
|
declare const useRegister: () => {
|
|
672
707
|
error: _apollo_client.ApolloError | undefined;
|
|
673
708
|
loading: boolean;
|
|
@@ -992,6 +1027,37 @@ declare const useGetUserNotifications: () => {
|
|
|
992
1027
|
userNotifications: boolean;
|
|
993
1028
|
};
|
|
994
1029
|
|
|
1030
|
+
declare const useCreateTester: () => {
|
|
1031
|
+
createTester: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
1032
|
+
data: any;
|
|
1033
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1034
|
+
loading: boolean;
|
|
1035
|
+
};
|
|
1036
|
+
declare const useUpdateTester: () => {
|
|
1037
|
+
data: any;
|
|
1038
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1039
|
+
loading: boolean;
|
|
1040
|
+
updateTester: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
1041
|
+
};
|
|
1042
|
+
declare const useDeleteTester: () => {
|
|
1043
|
+
deleteTester: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
1044
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1045
|
+
loading: boolean;
|
|
1046
|
+
};
|
|
1047
|
+
|
|
1048
|
+
declare const useGetTesters: () => {
|
|
1049
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1050
|
+
loading: boolean;
|
|
1051
|
+
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
1052
|
+
testers: TesterType[];
|
|
1053
|
+
};
|
|
1054
|
+
declare const useGetTester: (_id: string) => {
|
|
1055
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1056
|
+
loading: boolean;
|
|
1057
|
+
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
1058
|
+
tester: TesterType;
|
|
1059
|
+
};
|
|
1060
|
+
|
|
995
1061
|
declare const stallholderBasicInfoFields: FormField[];
|
|
996
1062
|
declare const stallholderMultiLocation: FormField;
|
|
997
1063
|
declare const stallholderFullAddress: FormField;
|
|
@@ -1054,10 +1120,12 @@ declare const categoryColors: Record<string, string>;
|
|
|
1054
1120
|
|
|
1055
1121
|
declare const socialMediaFields: FormField[];
|
|
1056
1122
|
|
|
1123
|
+
declare const testersFields: FormField[];
|
|
1124
|
+
|
|
1057
1125
|
declare const SAVED_PASSWORD_KEY = "savedPassword";
|
|
1058
1126
|
declare const SAVED_EMAIL_KEY = "savedEmail";
|
|
1059
1127
|
declare const SAVED_TOKEN_KEY = "savedToken";
|
|
1060
1128
|
declare const SAVED_REFRESH_TOKEN_KEY = "savedRefreshToken";
|
|
1061
1129
|
declare const USER_STORAGE_KEY = "authUser";
|
|
1062
1130
|
|
|
1063
|
-
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 CreateValidateVerificationTokenFormData, type DateTimeType, type DateTimeWithPriceType, EnumInviteStatus, EnumNotification, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumResourceTypeIcon, EnumSocialMedia, EnumUserLicence, EnumUserRole, type FormDateField, type FormField, type GeocodeLocation, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type MarketFormData, type MarketInfoFormData, type MarketInfoType, type MarketType, type MarketWithConnectionDatesType, type NotificationType, type Nullable, type OptionItem, type PaymentTargetType, type PlacePrediction, type PosterInputType, type Region, type RegisterFormData, type RelationDate, type RelationLog, type RelationType, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceConnectionsType, type ResourceImageType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SatllholderWithConnectionDatesType, type SiteType, type SocialMediaType, type StallholderApplyFormFormData, type StallholderApplyFormType, type StallholderAttributes, type StallholderFormData, type StallholderLocation, type StallholderType, type Subcategory, USER_STORAGE_KEY, type UserFormData, type UserType, type ValidateVerificationTokenFormData, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, dateFormat, defaultMarketFormValues, defaultMarketInfoFormValues, defaultRegion, defaultStallholderApplyFormValues, defaultStallholderFormValues, formatDate, formatTimestamp, getCurrentAndFutureDates, getFutureDatesAfterThreshold, globalDefaultValues, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, marketBasicInfoFields, marketEndDateFields, marketInfo, marketInfoPaymentTarget, marketPriceByDateFields, marketStartDateFields, normalizeUrl, packagingOptions, paymentMethodOptions, producedIngOptions, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, siteTypeOptions, socialMediaFields, sortDatesByProximity, stallholderBasicInfoFields, stallholderElectricity, stallholderEndDateFields, stallholderFullAddress, stallholderGazebo, stallholderLocationDescription, stallholderMultiLocation, stallholderPackaging, stallholderPaymentMethod, stallholderPriceRange, stallholderProducedIn, stallholderStallSize, stallholderStartDateFields, stallholderTable, statusOptions, tagOptions, 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, useGetUserStallholder, useGetUsers, useLocationSearch, useLogin, useLoginForm, useLogout, useMarketForm, useMarketInfoForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchMarkets, useSearchStallholders, useSendChatMessage, useStallholderApplyForm, useStallholderForm, useUpdateMarket, useUpdateMarketInfo, useUpdateRelation, useUpdateStallholder, useUpdateStallholderApplyForm, useUpdateUser, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, validateVerificationTokenFields };
|
|
1131
|
+
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 CreateValidateVerificationTokenFormData, type DateTimeType, type DateTimeWithPriceType, EnumInviteStatus, EnumNotification, EnumOSType, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumResourceTypeIcon, EnumSocialMedia, EnumUserLicence, EnumUserRole, type FormDateField, type FormField, type GeocodeLocation, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type MarketFormData, type MarketInfoFormData, type MarketInfoType, type MarketType, type MarketWithConnectionDatesType, type NotificationType, type Nullable, type OptionItem, type PaymentTargetType, type PlacePrediction, type PosterInputType, type Region, type RegisterFormData, type RelationDate, type RelationLog, type RelationType, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceConnectionsType, type ResourceImageType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SatllholderWithConnectionDatesType, type SiteType, type SocialMediaType, type StallholderApplyFormFormData, type StallholderApplyFormType, type StallholderAttributes, type StallholderFormData, type StallholderLocation, type StallholderType, type Subcategory, USER_STORAGE_KEY, type UserFormData, type UserType, type ValidateVerificationTokenFormData, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, dateFormat, defaultMarketFormValues, defaultMarketInfoFormValues, defaultRegion, defaultStallholderApplyFormValues, defaultStallholderFormValues, formatDate, formatTimestamp, getCurrentAndFutureDates, getFutureDatesAfterThreshold, globalDefaultValues, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, marketBasicInfoFields, marketEndDateFields, marketInfo, marketInfoPaymentTarget, marketPriceByDateFields, marketStartDateFields, normalizeUrl, packagingOptions, paymentMethodOptions, producedIngOptions, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, siteTypeOptions, socialMediaFields, sortDatesByProximity, stallholderBasicInfoFields, stallholderElectricity, stallholderEndDateFields, stallholderFullAddress, stallholderGazebo, stallholderLocationDescription, stallholderMultiLocation, stallholderPackaging, stallholderPaymentMethod, stallholderPriceRange, stallholderProducedIn, stallholderStallSize, stallholderStartDateFields, stallholderTable, statusOptions, tagOptions, testersFields, timeFormat, truncateText, useAddParticipantToChat, useAddUserFavouriteResource, useCreateChat, useCreateMarket, useCreateMarketInfo, useCreatePoster, useCreateRelation, useCreateStallholder, useCreateStallholderApplyForm, useCreateTester, useCreateUser, useDeleteChat, useDeleteMarket, useDeleteRelation, useDeleteStallholder, useDeleteTester, useGetChat, useGetChatSubscription, useGetMarket, useGetMarketInfo, useGetMarketRelations, useGetMarkets, useGetMarketsByRegion, useGetMarketsNearMe, useGetNotification, useGetRelation, useGetRelationByMarketAndStallholder, useGetResourceConnections, useGetStallholder, useGetStallholderApplyForm, useGetStallholderRelations, useGetStallholders, useGetStallholdersByRegion, useGetTester, useGetTesters, useGetUser, useGetUserChats, useGetUserFavourites, useGetUserMarkets, useGetUserNotifications, useGetUserStallholder, useGetUsers, useLocationSearch, useLogin, useLoginForm, useLogout, useMarketForm, useMarketInfoForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchMarkets, useSearchStallholders, useSendChatMessage, useStallholderApplyForm, useStallholderForm, useTestersForm, useUpdateMarket, useUpdateMarketInfo, useUpdateRelation, useUpdateStallholder, useUpdateStallholderApplyForm, useUpdateTester, useUpdateUser, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, validateVerificationTokenFields };
|
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// src/utils/index.ts
|
|
2
|
-
import dayjs
|
|
3
|
-
import customParseFormat from "dayjs/plugin/customParseFormat";
|
|
4
|
-
import isSameOrAfter from "dayjs/plugin/isSameOrAfter";
|
|
5
|
-
import timezone from "dayjs/plugin/timezone";
|
|
6
|
-
import utc from "dayjs/plugin/utc";
|
|
2
|
+
import dayjs from "dayjs";
|
|
3
|
+
import customParseFormat from "dayjs/plugin/customParseFormat.js";
|
|
4
|
+
import isSameOrAfter from "dayjs/plugin/isSameOrAfter.js";
|
|
5
|
+
import timezone from "dayjs/plugin/timezone.js";
|
|
6
|
+
import utc from "dayjs/plugin/utc.js";
|
|
7
7
|
|
|
8
8
|
// src/enums/index.ts
|
|
9
9
|
var EnumInviteStatus = /* @__PURE__ */ ((EnumInviteStatus2) => {
|
|
@@ -29,6 +29,11 @@ var EnumResourceType = /* @__PURE__ */ ((EnumResourceType2) => {
|
|
|
29
29
|
EnumResourceType2["STALLHOLDER"] = "stallholder";
|
|
30
30
|
return EnumResourceType2;
|
|
31
31
|
})(EnumResourceType || {});
|
|
32
|
+
var EnumOSType = /* @__PURE__ */ ((EnumOSType2) => {
|
|
33
|
+
EnumOSType2["ANDROID"] = "Android";
|
|
34
|
+
EnumOSType2["IOS"] = "iOS";
|
|
35
|
+
return EnumOSType2;
|
|
36
|
+
})(EnumOSType || {});
|
|
32
37
|
var EnumRelationResource = /* @__PURE__ */ ((EnumRelationResource2) => {
|
|
33
38
|
EnumRelationResource2["MARKET_INVITE_STALLHOLDER"] = "market_invite_stallholder";
|
|
34
39
|
EnumRelationResource2["STALLHOLDER_APPLICATION_TO_MARKET"] = "stallholder_application_to_market";
|
|
@@ -98,10 +103,10 @@ var EnumSocialMedia = /* @__PURE__ */ ((EnumSocialMedia2) => {
|
|
|
98
103
|
// src/utils/index.ts
|
|
99
104
|
var dateFormat = "DD-MM-YYYY";
|
|
100
105
|
var timeFormat = "HH:mm";
|
|
101
|
-
extend(customParseFormat);
|
|
102
|
-
extend(utc);
|
|
103
|
-
extend(timezone);
|
|
104
|
-
extend(isSameOrAfter);
|
|
106
|
+
dayjs.extend(customParseFormat);
|
|
107
|
+
dayjs.extend(utc);
|
|
108
|
+
dayjs.extend(timezone);
|
|
109
|
+
dayjs.extend(isSameOrAfter);
|
|
105
110
|
var formatDate = (dateStr, display = "datetime", timeStr) => {
|
|
106
111
|
const dateTimeStr = timeStr ? `${dateStr} ${timeStr}` : dateStr;
|
|
107
112
|
const dateTime = timeStr ? dayjs(dateTimeStr, `${dateFormat} ${timeFormat}`) : dayjs(dateStr, dateFormat);
|
|
@@ -284,9 +289,9 @@ import * as React from "react";
|
|
|
284
289
|
import { useForm } from "react-hook-form";
|
|
285
290
|
|
|
286
291
|
// src/yupSchema/global.ts
|
|
287
|
-
import dayjs2
|
|
288
|
-
import customParseFormat2 from "dayjs/plugin/customParseFormat";
|
|
289
|
-
import isSameOrAfter2 from "dayjs/plugin/isSameOrAfter";
|
|
292
|
+
import dayjs2 from "dayjs";
|
|
293
|
+
import customParseFormat2 from "dayjs/plugin/customParseFormat.js";
|
|
294
|
+
import isSameOrAfter2 from "dayjs/plugin/isSameOrAfter.js";
|
|
290
295
|
import * as yup from "yup";
|
|
291
296
|
var normalizedUrlTransform = () => yup.string().trim().transform(
|
|
292
297
|
(value) => typeof value === "string" ? value.toLowerCase() : value
|
|
@@ -305,8 +310,8 @@ var noLeadingZeros = (fieldName, options = {}) => {
|
|
|
305
310
|
return true;
|
|
306
311
|
};
|
|
307
312
|
};
|
|
308
|
-
|
|
309
|
-
|
|
313
|
+
dayjs2.extend(isSameOrAfter2);
|
|
314
|
+
dayjs2.extend(customParseFormat2);
|
|
310
315
|
var now = dayjs2();
|
|
311
316
|
var endDateNotInPastTest = yup.string().test("not-in-past", "End date cannot be in the past", (value) => {
|
|
312
317
|
return value ? dayjs2(value, dateFormat, true).isSameOrAfter(now, "day") : false;
|
|
@@ -566,6 +571,16 @@ var validateVerificationTokenSchema = yup5.object().shape({
|
|
|
566
571
|
verificationToken: yup5.string().required("Verification code is required").matches(/^\d{5}$/, "Verification code must be exactly 5 digits")
|
|
567
572
|
});
|
|
568
573
|
|
|
574
|
+
// src/yupSchema/testers.ts
|
|
575
|
+
import * as yup6 from "yup";
|
|
576
|
+
var testersSchema = yup6.object().shape({
|
|
577
|
+
email: emailSchema,
|
|
578
|
+
firstName: yup6.string().required("First name is required"),
|
|
579
|
+
lastName: yup6.string().required("Last name is required"),
|
|
580
|
+
osType: yup6.mixed().oneOf(Object.values(EnumOSType)).required("OS Type is required"),
|
|
581
|
+
resourceType: yup6.mixed().oneOf(Object.values(EnumResourceType)).required("Resource Type is required")
|
|
582
|
+
});
|
|
583
|
+
|
|
569
584
|
// src/hooks/utils.ts
|
|
570
585
|
var globalDefaultValues = {
|
|
571
586
|
active: false,
|
|
@@ -1252,6 +1267,61 @@ function useResetPasswordForm() {
|
|
|
1252
1267
|
};
|
|
1253
1268
|
}
|
|
1254
1269
|
|
|
1270
|
+
// src/hooks/useTestersForm.ts
|
|
1271
|
+
import { yupResolver as yupResolver11 } from "@hookform/resolvers/yup";
|
|
1272
|
+
import React6 from "react";
|
|
1273
|
+
import { useForm as useForm11 } from "react-hook-form";
|
|
1274
|
+
var defaultValues7 = {
|
|
1275
|
+
email: "",
|
|
1276
|
+
firstName: "",
|
|
1277
|
+
lastName: "",
|
|
1278
|
+
osType: "iOS" /* IOS */,
|
|
1279
|
+
resourceType: "market" /* MARKET */
|
|
1280
|
+
};
|
|
1281
|
+
function useTestersForm(data) {
|
|
1282
|
+
const {
|
|
1283
|
+
control,
|
|
1284
|
+
formState: { errors },
|
|
1285
|
+
getValues,
|
|
1286
|
+
handleSubmit,
|
|
1287
|
+
reset,
|
|
1288
|
+
setValue,
|
|
1289
|
+
watch
|
|
1290
|
+
} = useForm11({
|
|
1291
|
+
defaultValues: defaultValues7,
|
|
1292
|
+
resolver: yupResolver11(testersSchema)
|
|
1293
|
+
});
|
|
1294
|
+
React6.useEffect(() => {
|
|
1295
|
+
if (data) {
|
|
1296
|
+
reset({
|
|
1297
|
+
email: data.email,
|
|
1298
|
+
firstName: data.firstName,
|
|
1299
|
+
lastName: data.lastName,
|
|
1300
|
+
osType: data.osType,
|
|
1301
|
+
resourceType: data.resourceType
|
|
1302
|
+
});
|
|
1303
|
+
} else {
|
|
1304
|
+
reset(defaultValues7);
|
|
1305
|
+
}
|
|
1306
|
+
}, [data]);
|
|
1307
|
+
const { email, firstName, lastName, osType, resourceType } = getValues();
|
|
1308
|
+
return {
|
|
1309
|
+
control,
|
|
1310
|
+
fields: {
|
|
1311
|
+
email,
|
|
1312
|
+
firstName,
|
|
1313
|
+
lastName,
|
|
1314
|
+
osType,
|
|
1315
|
+
resourceType
|
|
1316
|
+
},
|
|
1317
|
+
formState: { errors },
|
|
1318
|
+
handleSubmit,
|
|
1319
|
+
reset,
|
|
1320
|
+
setValue,
|
|
1321
|
+
watch
|
|
1322
|
+
};
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1255
1325
|
// src/graphql/hooks/auth.ts
|
|
1256
1326
|
import { useMutation } from "@apollo/client";
|
|
1257
1327
|
|
|
@@ -2914,6 +2984,117 @@ var useGetUserNotifications = () => {
|
|
|
2914
2984
|
return { error, loading, refetch, userNotifications };
|
|
2915
2985
|
};
|
|
2916
2986
|
|
|
2987
|
+
// src/graphql/hooks/testers/hooksMutation.ts
|
|
2988
|
+
import { useMutation as useMutation8 } from "@apollo/client";
|
|
2989
|
+
|
|
2990
|
+
// src/graphql/mutations/testers.ts
|
|
2991
|
+
import { gql as gql17 } from "@apollo/client";
|
|
2992
|
+
|
|
2993
|
+
// src/graphql/queries/testers.ts
|
|
2994
|
+
import { gql as gql16 } from "@apollo/client";
|
|
2995
|
+
var TESTER_FIELDS_FRAGMENT = gql16`
|
|
2996
|
+
fragment TesterFields on TesterType {
|
|
2997
|
+
_id
|
|
2998
|
+
firstName
|
|
2999
|
+
lastName
|
|
3000
|
+
email
|
|
3001
|
+
osType
|
|
3002
|
+
resourceType
|
|
3003
|
+
createdAt
|
|
3004
|
+
updatedAt
|
|
3005
|
+
}
|
|
3006
|
+
`;
|
|
3007
|
+
var GET_TESTERS = gql16`
|
|
3008
|
+
query getTesters {
|
|
3009
|
+
testers {
|
|
3010
|
+
...TesterFields
|
|
3011
|
+
}
|
|
3012
|
+
}
|
|
3013
|
+
${TESTER_FIELDS_FRAGMENT}
|
|
3014
|
+
`;
|
|
3015
|
+
var GET_TESTER = gql16`
|
|
3016
|
+
query getTester($_id: ID!) {
|
|
3017
|
+
tester(_id: $_id) {
|
|
3018
|
+
...TesterFields
|
|
3019
|
+
}
|
|
3020
|
+
}
|
|
3021
|
+
${TESTER_FIELDS_FRAGMENT}
|
|
3022
|
+
`;
|
|
3023
|
+
|
|
3024
|
+
// src/graphql/mutations/testers.ts
|
|
3025
|
+
var CREATE_TESTER_MUTATION = gql17`
|
|
3026
|
+
mutation createTester($input: CreateTesterInputType!) {
|
|
3027
|
+
createTester(input: $input) {
|
|
3028
|
+
...TesterFields
|
|
3029
|
+
}
|
|
3030
|
+
}
|
|
3031
|
+
${TESTER_FIELDS_FRAGMENT}
|
|
3032
|
+
`;
|
|
3033
|
+
var UPDATE_TESTER_MUTATION = gql17`
|
|
3034
|
+
mutation updateTester($_id: ID!, $input: UpdateTesterInputType!) {
|
|
3035
|
+
updateTester(_id: $_id, input: $input) {
|
|
3036
|
+
...TesterFields
|
|
3037
|
+
}
|
|
3038
|
+
}
|
|
3039
|
+
${TESTER_FIELDS_FRAGMENT}
|
|
3040
|
+
`;
|
|
3041
|
+
var DELETE_TESTER_MUTATION = gql17`
|
|
3042
|
+
mutation deleteTester($_id: ID!) {
|
|
3043
|
+
deleteTester(_id: $_id)
|
|
3044
|
+
}
|
|
3045
|
+
`;
|
|
3046
|
+
|
|
3047
|
+
// src/graphql/hooks/testers/hooksMutation.ts
|
|
3048
|
+
var useCreateTester = () => {
|
|
3049
|
+
const [createTester, { data, loading, error }] = useMutation8(
|
|
3050
|
+
CREATE_TESTER_MUTATION
|
|
3051
|
+
);
|
|
3052
|
+
return {
|
|
3053
|
+
createTester,
|
|
3054
|
+
data,
|
|
3055
|
+
error,
|
|
3056
|
+
loading
|
|
3057
|
+
};
|
|
3058
|
+
};
|
|
3059
|
+
var useUpdateTester = () => {
|
|
3060
|
+
const [updateTester, { data, loading, error }] = useMutation8(
|
|
3061
|
+
UPDATE_TESTER_MUTATION
|
|
3062
|
+
);
|
|
3063
|
+
return {
|
|
3064
|
+
data,
|
|
3065
|
+
error,
|
|
3066
|
+
loading,
|
|
3067
|
+
updateTester
|
|
3068
|
+
};
|
|
3069
|
+
};
|
|
3070
|
+
var useDeleteTester = () => {
|
|
3071
|
+
const [deleteTester, { loading, error }] = useMutation8(
|
|
3072
|
+
DELETE_TESTER_MUTATION
|
|
3073
|
+
);
|
|
3074
|
+
return { deleteTester, error, loading };
|
|
3075
|
+
};
|
|
3076
|
+
|
|
3077
|
+
// src/graphql/hooks/testers/hooksQuery.ts
|
|
3078
|
+
import { useQuery as useQuery6 } from "@apollo/client";
|
|
3079
|
+
var useGetTesters = () => {
|
|
3080
|
+
const { data, loading, error, refetch } = useQuery6(GET_TESTERS);
|
|
3081
|
+
const testers = data?.testers;
|
|
3082
|
+
return {
|
|
3083
|
+
error,
|
|
3084
|
+
loading,
|
|
3085
|
+
refetch,
|
|
3086
|
+
testers
|
|
3087
|
+
};
|
|
3088
|
+
};
|
|
3089
|
+
var useGetTester = (_id) => {
|
|
3090
|
+
const { data, loading, error, refetch } = useQuery6(GET_TESTER, {
|
|
3091
|
+
skip: !_id,
|
|
3092
|
+
variables: { _id }
|
|
3093
|
+
});
|
|
3094
|
+
const tester = data?.tester;
|
|
3095
|
+
return { error, loading, refetch, tester };
|
|
3096
|
+
};
|
|
3097
|
+
|
|
2917
3098
|
// src/formFields/stallholder/stallholder.ts
|
|
2918
3099
|
var stallholderBasicInfoFields = [
|
|
2919
3100
|
{
|
|
@@ -3884,6 +4065,28 @@ var socialMediaFields = socialMedia.map((link) => ({
|
|
|
3884
4065
|
placeholder: link.placeholder
|
|
3885
4066
|
}));
|
|
3886
4067
|
|
|
4068
|
+
// src/formFields/testers.ts
|
|
4069
|
+
var testersFields = [
|
|
4070
|
+
{
|
|
4071
|
+
helperText: "Enter your first name",
|
|
4072
|
+
keyboardType: "default",
|
|
4073
|
+
name: "firstName",
|
|
4074
|
+
placeholder: "First Name"
|
|
4075
|
+
},
|
|
4076
|
+
{
|
|
4077
|
+
helperText: "Enter your last name",
|
|
4078
|
+
keyboardType: "default",
|
|
4079
|
+
name: "lastName",
|
|
4080
|
+
placeholder: "Last Name"
|
|
4081
|
+
},
|
|
4082
|
+
{
|
|
4083
|
+
helperText: "Enter your email address",
|
|
4084
|
+
keyboardType: "email-address",
|
|
4085
|
+
name: "email",
|
|
4086
|
+
placeholder: "Email"
|
|
4087
|
+
}
|
|
4088
|
+
];
|
|
4089
|
+
|
|
3887
4090
|
// src/storage/index.ts
|
|
3888
4091
|
var SAVED_PASSWORD_KEY = "savedPassword";
|
|
3889
4092
|
var SAVED_EMAIL_KEY = "savedEmail";
|
|
@@ -3893,6 +4096,7 @@ var USER_STORAGE_KEY = "authUser";
|
|
|
3893
4096
|
export {
|
|
3894
4097
|
EnumInviteStatus,
|
|
3895
4098
|
EnumNotification,
|
|
4099
|
+
EnumOSType,
|
|
3896
4100
|
EnumPaymentMethod,
|
|
3897
4101
|
EnumRegions,
|
|
3898
4102
|
EnumRelationResource,
|
|
@@ -3963,6 +4167,7 @@ export {
|
|
|
3963
4167
|
stallholderTable,
|
|
3964
4168
|
statusOptions,
|
|
3965
4169
|
tagOptions,
|
|
4170
|
+
testersFields,
|
|
3966
4171
|
timeFormat,
|
|
3967
4172
|
truncateText,
|
|
3968
4173
|
useAddParticipantToChat,
|
|
@@ -3974,11 +4179,13 @@ export {
|
|
|
3974
4179
|
useCreateRelation,
|
|
3975
4180
|
useCreateStallholder,
|
|
3976
4181
|
useCreateStallholderApplyForm,
|
|
4182
|
+
useCreateTester,
|
|
3977
4183
|
useCreateUser,
|
|
3978
4184
|
useDeleteChat,
|
|
3979
4185
|
useDeleteMarket,
|
|
3980
4186
|
useDeleteRelation,
|
|
3981
4187
|
useDeleteStallholder,
|
|
4188
|
+
useDeleteTester,
|
|
3982
4189
|
useGetChat,
|
|
3983
4190
|
useGetChatSubscription,
|
|
3984
4191
|
useGetMarket,
|
|
@@ -3996,6 +4203,8 @@ export {
|
|
|
3996
4203
|
useGetStallholderRelations,
|
|
3997
4204
|
useGetStallholders,
|
|
3998
4205
|
useGetStallholdersByRegion,
|
|
4206
|
+
useGetTester,
|
|
4207
|
+
useGetTesters,
|
|
3999
4208
|
useGetUser,
|
|
4000
4209
|
useGetUserChats,
|
|
4001
4210
|
useGetUserFavourites,
|
|
@@ -4023,11 +4232,13 @@ export {
|
|
|
4023
4232
|
useSendChatMessage,
|
|
4024
4233
|
useStallholderApplyForm,
|
|
4025
4234
|
useStallholderForm,
|
|
4235
|
+
useTestersForm,
|
|
4026
4236
|
useUpdateMarket,
|
|
4027
4237
|
useUpdateMarketInfo,
|
|
4028
4238
|
useUpdateRelation,
|
|
4029
4239
|
useUpdateStallholder,
|
|
4030
4240
|
useUpdateStallholderApplyForm,
|
|
4241
|
+
useUpdateTester,
|
|
4031
4242
|
useUpdateUser,
|
|
4032
4243
|
useUserForm,
|
|
4033
4244
|
useValidateVerificationToken,
|