@timardex/cluemart-shared 1.0.8 → 1.0.11
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.cjs +236 -69
- package/dist/index.d.mts +60 -30
- package/dist/index.d.ts +60 -30
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +211 -50
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -87,6 +87,7 @@ type RegisterFormData = {
|
|
|
87
87
|
firstName: string;
|
|
88
88
|
lastName: string;
|
|
89
89
|
password: string;
|
|
90
|
+
preferredRegion: string;
|
|
90
91
|
role: EnumUserRole;
|
|
91
92
|
};
|
|
92
93
|
interface CreateRegisterFormData {
|
|
@@ -100,23 +101,24 @@ interface CreateRegisterFormData {
|
|
|
100
101
|
setValue: UseFormSetValue<RegisterFormData>;
|
|
101
102
|
watch: UseFormWatch<RegisterFormData>;
|
|
102
103
|
}
|
|
103
|
-
type
|
|
104
|
+
type RequestPasswordResetFormData = {
|
|
104
105
|
email: string;
|
|
105
106
|
};
|
|
106
|
-
interface
|
|
107
|
-
control: Control<
|
|
108
|
-
fields:
|
|
107
|
+
interface CreateRequestPasswordResetFormData {
|
|
108
|
+
control: Control<RequestPasswordResetFormData, any>;
|
|
109
|
+
fields: RequestPasswordResetFormData;
|
|
109
110
|
formState: {
|
|
110
|
-
errors: FieldErrors<
|
|
111
|
+
errors: FieldErrors<RequestPasswordResetFormData>;
|
|
111
112
|
};
|
|
112
|
-
handleSubmit: UseFormHandleSubmit<
|
|
113
|
-
reset: UseFormReset<
|
|
114
|
-
setValue: UseFormSetValue<
|
|
115
|
-
watch: UseFormWatch<
|
|
113
|
+
handleSubmit: UseFormHandleSubmit<RequestPasswordResetFormData, any>;
|
|
114
|
+
reset: UseFormReset<RequestPasswordResetFormData>;
|
|
115
|
+
setValue: UseFormSetValue<RequestPasswordResetFormData>;
|
|
116
|
+
watch: UseFormWatch<RequestPasswordResetFormData>;
|
|
116
117
|
}
|
|
117
118
|
type ResetPasswordFormData = {
|
|
118
|
-
password: string;
|
|
119
119
|
confirmPassword: string;
|
|
120
|
+
email: string;
|
|
121
|
+
password: string;
|
|
120
122
|
};
|
|
121
123
|
interface CreateResetPasswordFormData {
|
|
122
124
|
control: Control<ResetPasswordFormData, any>;
|
|
@@ -124,24 +126,25 @@ interface CreateResetPasswordFormData {
|
|
|
124
126
|
formState: {
|
|
125
127
|
errors: FieldErrors<ResetPasswordFormData>;
|
|
126
128
|
};
|
|
127
|
-
handleSubmit: UseFormHandleSubmit<ResetPasswordFormData,
|
|
129
|
+
handleSubmit: UseFormHandleSubmit<ResetPasswordFormData, any>;
|
|
128
130
|
reset: UseFormReset<ResetPasswordFormData>;
|
|
129
131
|
setValue: UseFormSetValue<ResetPasswordFormData>;
|
|
130
132
|
watch: UseFormWatch<ResetPasswordFormData>;
|
|
131
133
|
}
|
|
132
|
-
type
|
|
134
|
+
type ValidateTokenFormData = {
|
|
135
|
+
email: string;
|
|
133
136
|
token: string;
|
|
134
137
|
};
|
|
135
|
-
interface
|
|
136
|
-
control: Control<
|
|
137
|
-
fields:
|
|
138
|
+
interface CreateValidateTokenFormData {
|
|
139
|
+
control: Control<ValidateTokenFormData, any>;
|
|
140
|
+
fields: ValidateTokenFormData;
|
|
138
141
|
formState: {
|
|
139
|
-
errors: FieldErrors<
|
|
142
|
+
errors: FieldErrors<ValidateTokenFormData>;
|
|
140
143
|
};
|
|
141
|
-
handleSubmit: UseFormHandleSubmit<
|
|
142
|
-
reset: UseFormReset<
|
|
143
|
-
setValue: UseFormSetValue<
|
|
144
|
-
watch: UseFormWatch<
|
|
144
|
+
handleSubmit: UseFormHandleSubmit<ValidateTokenFormData, any>;
|
|
145
|
+
reset: UseFormReset<ValidateTokenFormData>;
|
|
146
|
+
setValue: UseFormSetValue<ValidateTokenFormData>;
|
|
147
|
+
watch: UseFormWatch<ValidateTokenFormData>;
|
|
145
148
|
}
|
|
146
149
|
|
|
147
150
|
interface ChatInput {
|
|
@@ -357,6 +360,7 @@ type UserFormData = {
|
|
|
357
360
|
firstName: string;
|
|
358
361
|
lastName: string;
|
|
359
362
|
password: string;
|
|
363
|
+
preferredRegion: string;
|
|
360
364
|
role: EnumUserRole;
|
|
361
365
|
};
|
|
362
366
|
interface CreateUserFormData {
|
|
@@ -385,6 +389,7 @@ interface UserType {
|
|
|
385
389
|
licences: EnumUserLicence[] | null;
|
|
386
390
|
markets: string[] | null;
|
|
387
391
|
password: string;
|
|
392
|
+
preferredRegion: string;
|
|
388
393
|
role: EnumUserRole;
|
|
389
394
|
stallholder: string | null;
|
|
390
395
|
updatedAt: string;
|
|
@@ -563,6 +568,8 @@ declare function sortDatesByProximity(dates: {
|
|
|
563
568
|
startDate: string;
|
|
564
569
|
startTime: string;
|
|
565
570
|
}[];
|
|
571
|
+
declare const availableRegionTypes: EnumRegions[];
|
|
572
|
+
declare const availableRegionOptions: OptionItem[];
|
|
566
573
|
|
|
567
574
|
interface PlacePrediction {
|
|
568
575
|
place_id: string;
|
|
@@ -625,6 +632,12 @@ declare function useLoginForm(): CreateLoginFormData;
|
|
|
625
632
|
*/
|
|
626
633
|
declare function useRegisterForm(): CreateRegisterFormData;
|
|
627
634
|
|
|
635
|
+
declare function useRequestPasswordResetForm(): CreateRequestPasswordResetFormData;
|
|
636
|
+
|
|
637
|
+
declare function useValidateTokenForm(): CreateValidateTokenFormData;
|
|
638
|
+
|
|
639
|
+
declare function useResetPasswordForm(): CreateResetPasswordFormData;
|
|
640
|
+
|
|
628
641
|
declare const globalDefaultValues: BaseResourceTypeFormData;
|
|
629
642
|
declare const defaultMarketFormValues: MarketFormData;
|
|
630
643
|
declare const defaultStallholderFormValues: StallholderFormData;
|
|
@@ -843,6 +856,7 @@ declare const userSchema: yup.ObjectSchema<{
|
|
|
843
856
|
firstName: string;
|
|
844
857
|
lastName: string;
|
|
845
858
|
password: string;
|
|
859
|
+
preferredRegion: string;
|
|
846
860
|
confirmPassword: string;
|
|
847
861
|
role: NonNullable<EnumUserRole | undefined>;
|
|
848
862
|
}, yup.AnyObject, {
|
|
@@ -851,6 +865,7 @@ declare const userSchema: yup.ObjectSchema<{
|
|
|
851
865
|
firstName: undefined;
|
|
852
866
|
lastName: undefined;
|
|
853
867
|
password: undefined;
|
|
868
|
+
preferredRegion: undefined;
|
|
854
869
|
confirmPassword: undefined;
|
|
855
870
|
role: undefined;
|
|
856
871
|
}, "">;
|
|
@@ -867,29 +882,35 @@ declare const registerSchema: yup.ObjectSchema<{
|
|
|
867
882
|
firstName: string;
|
|
868
883
|
lastName: string;
|
|
869
884
|
password: string;
|
|
885
|
+
preferredRegion: string;
|
|
870
886
|
role: NonNullable<EnumUserRole | undefined>;
|
|
871
887
|
}, yup.AnyObject, {
|
|
872
888
|
email: undefined;
|
|
873
889
|
firstName: undefined;
|
|
874
890
|
lastName: undefined;
|
|
875
891
|
password: undefined;
|
|
892
|
+
preferredRegion: undefined;
|
|
876
893
|
role: undefined;
|
|
877
894
|
}, "">;
|
|
878
|
-
declare const
|
|
895
|
+
declare const requestPasswordResetSchema: yup.ObjectSchema<{
|
|
879
896
|
email: string;
|
|
880
897
|
}, yup.AnyObject, {
|
|
881
898
|
email: undefined;
|
|
882
899
|
}, "">;
|
|
883
900
|
declare const resetPasswordSchema: yup.ObjectSchema<{
|
|
901
|
+
email: string;
|
|
884
902
|
password: string;
|
|
885
903
|
confirmPassword: string;
|
|
886
904
|
}, yup.AnyObject, {
|
|
905
|
+
email: undefined;
|
|
887
906
|
password: undefined;
|
|
888
907
|
confirmPassword: undefined;
|
|
889
908
|
}, "">;
|
|
890
|
-
declare const
|
|
909
|
+
declare const validateTokenSchema: yup.ObjectSchema<{
|
|
910
|
+
email: string;
|
|
891
911
|
token: string;
|
|
892
912
|
}, yup.AnyObject, {
|
|
913
|
+
email: undefined;
|
|
893
914
|
token: undefined;
|
|
894
915
|
}, "">;
|
|
895
916
|
|
|
@@ -903,15 +924,20 @@ declare const useRegister: () => {
|
|
|
903
924
|
loading: boolean;
|
|
904
925
|
register: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
905
926
|
};
|
|
906
|
-
declare const
|
|
927
|
+
declare const useRequestPasswordReset: () => {
|
|
928
|
+
error: _apollo_client.ApolloError | undefined;
|
|
929
|
+
loading: boolean;
|
|
930
|
+
requestPasswordReset: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
931
|
+
};
|
|
932
|
+
declare const useValidateToken: () => {
|
|
907
933
|
error: _apollo_client.ApolloError | undefined;
|
|
908
|
-
forgotPassword: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
909
934
|
loading: boolean;
|
|
935
|
+
validateToken: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
910
936
|
};
|
|
911
|
-
declare const
|
|
937
|
+
declare const useResetPassword: () => {
|
|
912
938
|
error: _apollo_client.ApolloError | undefined;
|
|
913
939
|
loading: boolean;
|
|
914
|
-
|
|
940
|
+
resetPassword: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
915
941
|
};
|
|
916
942
|
|
|
917
943
|
declare const useCreateChat: () => {
|
|
@@ -1113,6 +1139,11 @@ declare const useGetNotification: () => {
|
|
|
1113
1139
|
loading: boolean;
|
|
1114
1140
|
notification: NotificationType;
|
|
1115
1141
|
};
|
|
1142
|
+
declare const useGetChatSubscription: () => {
|
|
1143
|
+
chat: ChatType;
|
|
1144
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1145
|
+
loading: boolean;
|
|
1146
|
+
};
|
|
1116
1147
|
|
|
1117
1148
|
declare const useCreateUser: () => {
|
|
1118
1149
|
createUser: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
@@ -1175,9 +1206,7 @@ declare const stallholderFullAddress: FormField;
|
|
|
1175
1206
|
declare const stallholderStartDateFields: FormDateField[];
|
|
1176
1207
|
declare const stallholderEndDateFields: FormDateField[];
|
|
1177
1208
|
declare const stallholderLocationDescription: FormField;
|
|
1178
|
-
declare const availableRegionTypes: EnumRegions[];
|
|
1179
1209
|
declare const availableCityOptions: OptionItem[];
|
|
1180
|
-
declare const availableRegionOptions: OptionItem[];
|
|
1181
1210
|
|
|
1182
1211
|
declare const stallholderElectricity: {
|
|
1183
1212
|
details: FormField;
|
|
@@ -1216,12 +1245,13 @@ declare const rejectionPolicyOptions: OptionItem[];
|
|
|
1216
1245
|
|
|
1217
1246
|
declare const loginFields: FormField[];
|
|
1218
1247
|
declare const registerFields: FormField[];
|
|
1219
|
-
declare const
|
|
1248
|
+
declare const requestPasswordResetFields: FormField[];
|
|
1220
1249
|
declare const resetPasswordFields: FormField[];
|
|
1250
|
+
declare const validateTokenFields: FormField[];
|
|
1221
1251
|
|
|
1222
1252
|
declare const profileFields: FormField[];
|
|
1223
1253
|
|
|
1224
1254
|
declare const availableCategories: Category[];
|
|
1225
1255
|
declare const categoryColors: Record<string, string>;
|
|
1226
1256
|
|
|
1227
|
-
export { type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatInput, type ChatMessageInput, type ChatMessageType, type ChatType, type
|
|
1257
|
+
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, EnumInviteStatus, EnumNotification, 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 OptionItem, type PlacePrediction, 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, dateTimeSchema, defaultMarketFormValues, defaultRegion, defaultStallholderApplyFormValues, defaultStallholderFormValues, emailSchema, endDateAfterStartDateTest, endDateNotInPastTest, endTimeMustBeAfterStartTimeTest, formatDate, formatTimestamp, getCurrentAndFutureDates, getFutureDatesAfterThreshold, globalDefaultValues, globalResourceSchema, locationSchema, loginFields, loginSchema, mapArrayToOptions, marketBasicInfoFields, marketEndDateFields, marketSchema, marketStartDateFields, packagingOptions, passwordSchema, paymentMethodOptions, producedIngOptions, profileFields, registerFields, registerSchema, rejectionPolicyOptions, removeTypename, requestPasswordResetFields, requestPasswordResetSchema, resetPasswordFields, resetPasswordSchema, sortDatesByProximity, stallApplicationInfo, 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, 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -87,6 +87,7 @@ type RegisterFormData = {
|
|
|
87
87
|
firstName: string;
|
|
88
88
|
lastName: string;
|
|
89
89
|
password: string;
|
|
90
|
+
preferredRegion: string;
|
|
90
91
|
role: EnumUserRole;
|
|
91
92
|
};
|
|
92
93
|
interface CreateRegisterFormData {
|
|
@@ -100,23 +101,24 @@ interface CreateRegisterFormData {
|
|
|
100
101
|
setValue: UseFormSetValue<RegisterFormData>;
|
|
101
102
|
watch: UseFormWatch<RegisterFormData>;
|
|
102
103
|
}
|
|
103
|
-
type
|
|
104
|
+
type RequestPasswordResetFormData = {
|
|
104
105
|
email: string;
|
|
105
106
|
};
|
|
106
|
-
interface
|
|
107
|
-
control: Control<
|
|
108
|
-
fields:
|
|
107
|
+
interface CreateRequestPasswordResetFormData {
|
|
108
|
+
control: Control<RequestPasswordResetFormData, any>;
|
|
109
|
+
fields: RequestPasswordResetFormData;
|
|
109
110
|
formState: {
|
|
110
|
-
errors: FieldErrors<
|
|
111
|
+
errors: FieldErrors<RequestPasswordResetFormData>;
|
|
111
112
|
};
|
|
112
|
-
handleSubmit: UseFormHandleSubmit<
|
|
113
|
-
reset: UseFormReset<
|
|
114
|
-
setValue: UseFormSetValue<
|
|
115
|
-
watch: UseFormWatch<
|
|
113
|
+
handleSubmit: UseFormHandleSubmit<RequestPasswordResetFormData, any>;
|
|
114
|
+
reset: UseFormReset<RequestPasswordResetFormData>;
|
|
115
|
+
setValue: UseFormSetValue<RequestPasswordResetFormData>;
|
|
116
|
+
watch: UseFormWatch<RequestPasswordResetFormData>;
|
|
116
117
|
}
|
|
117
118
|
type ResetPasswordFormData = {
|
|
118
|
-
password: string;
|
|
119
119
|
confirmPassword: string;
|
|
120
|
+
email: string;
|
|
121
|
+
password: string;
|
|
120
122
|
};
|
|
121
123
|
interface CreateResetPasswordFormData {
|
|
122
124
|
control: Control<ResetPasswordFormData, any>;
|
|
@@ -124,24 +126,25 @@ interface CreateResetPasswordFormData {
|
|
|
124
126
|
formState: {
|
|
125
127
|
errors: FieldErrors<ResetPasswordFormData>;
|
|
126
128
|
};
|
|
127
|
-
handleSubmit: UseFormHandleSubmit<ResetPasswordFormData,
|
|
129
|
+
handleSubmit: UseFormHandleSubmit<ResetPasswordFormData, any>;
|
|
128
130
|
reset: UseFormReset<ResetPasswordFormData>;
|
|
129
131
|
setValue: UseFormSetValue<ResetPasswordFormData>;
|
|
130
132
|
watch: UseFormWatch<ResetPasswordFormData>;
|
|
131
133
|
}
|
|
132
|
-
type
|
|
134
|
+
type ValidateTokenFormData = {
|
|
135
|
+
email: string;
|
|
133
136
|
token: string;
|
|
134
137
|
};
|
|
135
|
-
interface
|
|
136
|
-
control: Control<
|
|
137
|
-
fields:
|
|
138
|
+
interface CreateValidateTokenFormData {
|
|
139
|
+
control: Control<ValidateTokenFormData, any>;
|
|
140
|
+
fields: ValidateTokenFormData;
|
|
138
141
|
formState: {
|
|
139
|
-
errors: FieldErrors<
|
|
142
|
+
errors: FieldErrors<ValidateTokenFormData>;
|
|
140
143
|
};
|
|
141
|
-
handleSubmit: UseFormHandleSubmit<
|
|
142
|
-
reset: UseFormReset<
|
|
143
|
-
setValue: UseFormSetValue<
|
|
144
|
-
watch: UseFormWatch<
|
|
144
|
+
handleSubmit: UseFormHandleSubmit<ValidateTokenFormData, any>;
|
|
145
|
+
reset: UseFormReset<ValidateTokenFormData>;
|
|
146
|
+
setValue: UseFormSetValue<ValidateTokenFormData>;
|
|
147
|
+
watch: UseFormWatch<ValidateTokenFormData>;
|
|
145
148
|
}
|
|
146
149
|
|
|
147
150
|
interface ChatInput {
|
|
@@ -357,6 +360,7 @@ type UserFormData = {
|
|
|
357
360
|
firstName: string;
|
|
358
361
|
lastName: string;
|
|
359
362
|
password: string;
|
|
363
|
+
preferredRegion: string;
|
|
360
364
|
role: EnumUserRole;
|
|
361
365
|
};
|
|
362
366
|
interface CreateUserFormData {
|
|
@@ -385,6 +389,7 @@ interface UserType {
|
|
|
385
389
|
licences: EnumUserLicence[] | null;
|
|
386
390
|
markets: string[] | null;
|
|
387
391
|
password: string;
|
|
392
|
+
preferredRegion: string;
|
|
388
393
|
role: EnumUserRole;
|
|
389
394
|
stallholder: string | null;
|
|
390
395
|
updatedAt: string;
|
|
@@ -563,6 +568,8 @@ declare function sortDatesByProximity(dates: {
|
|
|
563
568
|
startDate: string;
|
|
564
569
|
startTime: string;
|
|
565
570
|
}[];
|
|
571
|
+
declare const availableRegionTypes: EnumRegions[];
|
|
572
|
+
declare const availableRegionOptions: OptionItem[];
|
|
566
573
|
|
|
567
574
|
interface PlacePrediction {
|
|
568
575
|
place_id: string;
|
|
@@ -625,6 +632,12 @@ declare function useLoginForm(): CreateLoginFormData;
|
|
|
625
632
|
*/
|
|
626
633
|
declare function useRegisterForm(): CreateRegisterFormData;
|
|
627
634
|
|
|
635
|
+
declare function useRequestPasswordResetForm(): CreateRequestPasswordResetFormData;
|
|
636
|
+
|
|
637
|
+
declare function useValidateTokenForm(): CreateValidateTokenFormData;
|
|
638
|
+
|
|
639
|
+
declare function useResetPasswordForm(): CreateResetPasswordFormData;
|
|
640
|
+
|
|
628
641
|
declare const globalDefaultValues: BaseResourceTypeFormData;
|
|
629
642
|
declare const defaultMarketFormValues: MarketFormData;
|
|
630
643
|
declare const defaultStallholderFormValues: StallholderFormData;
|
|
@@ -843,6 +856,7 @@ declare const userSchema: yup.ObjectSchema<{
|
|
|
843
856
|
firstName: string;
|
|
844
857
|
lastName: string;
|
|
845
858
|
password: string;
|
|
859
|
+
preferredRegion: string;
|
|
846
860
|
confirmPassword: string;
|
|
847
861
|
role: NonNullable<EnumUserRole | undefined>;
|
|
848
862
|
}, yup.AnyObject, {
|
|
@@ -851,6 +865,7 @@ declare const userSchema: yup.ObjectSchema<{
|
|
|
851
865
|
firstName: undefined;
|
|
852
866
|
lastName: undefined;
|
|
853
867
|
password: undefined;
|
|
868
|
+
preferredRegion: undefined;
|
|
854
869
|
confirmPassword: undefined;
|
|
855
870
|
role: undefined;
|
|
856
871
|
}, "">;
|
|
@@ -867,29 +882,35 @@ declare const registerSchema: yup.ObjectSchema<{
|
|
|
867
882
|
firstName: string;
|
|
868
883
|
lastName: string;
|
|
869
884
|
password: string;
|
|
885
|
+
preferredRegion: string;
|
|
870
886
|
role: NonNullable<EnumUserRole | undefined>;
|
|
871
887
|
}, yup.AnyObject, {
|
|
872
888
|
email: undefined;
|
|
873
889
|
firstName: undefined;
|
|
874
890
|
lastName: undefined;
|
|
875
891
|
password: undefined;
|
|
892
|
+
preferredRegion: undefined;
|
|
876
893
|
role: undefined;
|
|
877
894
|
}, "">;
|
|
878
|
-
declare const
|
|
895
|
+
declare const requestPasswordResetSchema: yup.ObjectSchema<{
|
|
879
896
|
email: string;
|
|
880
897
|
}, yup.AnyObject, {
|
|
881
898
|
email: undefined;
|
|
882
899
|
}, "">;
|
|
883
900
|
declare const resetPasswordSchema: yup.ObjectSchema<{
|
|
901
|
+
email: string;
|
|
884
902
|
password: string;
|
|
885
903
|
confirmPassword: string;
|
|
886
904
|
}, yup.AnyObject, {
|
|
905
|
+
email: undefined;
|
|
887
906
|
password: undefined;
|
|
888
907
|
confirmPassword: undefined;
|
|
889
908
|
}, "">;
|
|
890
|
-
declare const
|
|
909
|
+
declare const validateTokenSchema: yup.ObjectSchema<{
|
|
910
|
+
email: string;
|
|
891
911
|
token: string;
|
|
892
912
|
}, yup.AnyObject, {
|
|
913
|
+
email: undefined;
|
|
893
914
|
token: undefined;
|
|
894
915
|
}, "">;
|
|
895
916
|
|
|
@@ -903,15 +924,20 @@ declare const useRegister: () => {
|
|
|
903
924
|
loading: boolean;
|
|
904
925
|
register: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
905
926
|
};
|
|
906
|
-
declare const
|
|
927
|
+
declare const useRequestPasswordReset: () => {
|
|
928
|
+
error: _apollo_client.ApolloError | undefined;
|
|
929
|
+
loading: boolean;
|
|
930
|
+
requestPasswordReset: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
931
|
+
};
|
|
932
|
+
declare const useValidateToken: () => {
|
|
907
933
|
error: _apollo_client.ApolloError | undefined;
|
|
908
|
-
forgotPassword: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
909
934
|
loading: boolean;
|
|
935
|
+
validateToken: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
910
936
|
};
|
|
911
|
-
declare const
|
|
937
|
+
declare const useResetPassword: () => {
|
|
912
938
|
error: _apollo_client.ApolloError | undefined;
|
|
913
939
|
loading: boolean;
|
|
914
|
-
|
|
940
|
+
resetPassword: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
915
941
|
};
|
|
916
942
|
|
|
917
943
|
declare const useCreateChat: () => {
|
|
@@ -1113,6 +1139,11 @@ declare const useGetNotification: () => {
|
|
|
1113
1139
|
loading: boolean;
|
|
1114
1140
|
notification: NotificationType;
|
|
1115
1141
|
};
|
|
1142
|
+
declare const useGetChatSubscription: () => {
|
|
1143
|
+
chat: ChatType;
|
|
1144
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1145
|
+
loading: boolean;
|
|
1146
|
+
};
|
|
1116
1147
|
|
|
1117
1148
|
declare const useCreateUser: () => {
|
|
1118
1149
|
createUser: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
@@ -1175,9 +1206,7 @@ declare const stallholderFullAddress: FormField;
|
|
|
1175
1206
|
declare const stallholderStartDateFields: FormDateField[];
|
|
1176
1207
|
declare const stallholderEndDateFields: FormDateField[];
|
|
1177
1208
|
declare const stallholderLocationDescription: FormField;
|
|
1178
|
-
declare const availableRegionTypes: EnumRegions[];
|
|
1179
1209
|
declare const availableCityOptions: OptionItem[];
|
|
1180
|
-
declare const availableRegionOptions: OptionItem[];
|
|
1181
1210
|
|
|
1182
1211
|
declare const stallholderElectricity: {
|
|
1183
1212
|
details: FormField;
|
|
@@ -1216,12 +1245,13 @@ declare const rejectionPolicyOptions: OptionItem[];
|
|
|
1216
1245
|
|
|
1217
1246
|
declare const loginFields: FormField[];
|
|
1218
1247
|
declare const registerFields: FormField[];
|
|
1219
|
-
declare const
|
|
1248
|
+
declare const requestPasswordResetFields: FormField[];
|
|
1220
1249
|
declare const resetPasswordFields: FormField[];
|
|
1250
|
+
declare const validateTokenFields: FormField[];
|
|
1221
1251
|
|
|
1222
1252
|
declare const profileFields: FormField[];
|
|
1223
1253
|
|
|
1224
1254
|
declare const availableCategories: Category[];
|
|
1225
1255
|
declare const categoryColors: Record<string, string>;
|
|
1226
1256
|
|
|
1227
|
-
export { type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatInput, type ChatMessageInput, type ChatMessageType, type ChatType, type
|
|
1257
|
+
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, EnumInviteStatus, EnumNotification, 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 OptionItem, type PlacePrediction, 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, dateTimeSchema, defaultMarketFormValues, defaultRegion, defaultStallholderApplyFormValues, defaultStallholderFormValues, emailSchema, endDateAfterStartDateTest, endDateNotInPastTest, endTimeMustBeAfterStartTimeTest, formatDate, formatTimestamp, getCurrentAndFutureDates, getFutureDatesAfterThreshold, globalDefaultValues, globalResourceSchema, locationSchema, loginFields, loginSchema, mapArrayToOptions, marketBasicInfoFields, marketEndDateFields, marketSchema, marketStartDateFields, packagingOptions, passwordSchema, paymentMethodOptions, producedIngOptions, profileFields, registerFields, registerSchema, rejectionPolicyOptions, removeTypename, requestPasswordResetFields, requestPasswordResetSchema, resetPasswordFields, resetPasswordSchema, sortDatesByProximity, stallApplicationInfo, 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, 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 };
|