@timardex/cluemart-shared 1.0.12 → 1.0.14
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 +176 -100
- package/dist/index.d.mts +55 -17
- package/dist/index.d.ts +55 -17
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +149 -78
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,17 +1,27 @@
|
|
|
1
1
|
import { Control, FieldErrors, UseFormHandleSubmit, UseFormReset, UseFormSetValue, UseFormWatch } from 'react-hook-form';
|
|
2
2
|
import * as yup from 'yup';
|
|
3
|
+
import { TestFunction } from 'yup';
|
|
3
4
|
import * as _apollo_client from '@apollo/client';
|
|
4
5
|
|
|
5
6
|
declare enum EnumInviteStatus {
|
|
6
|
-
ACCEPTED = "
|
|
7
|
-
COMPLETED = "
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
ACCEPTED = "Accepted",
|
|
8
|
+
COMPLETED = "Completed",
|
|
9
|
+
EXPIRED = "Expired",
|
|
10
|
+
NO_STATUS = "No Status",
|
|
11
|
+
PENDING = "Pending",
|
|
12
|
+
REJECTED = "Rejected",
|
|
13
|
+
WAITING = "waiting"
|
|
11
14
|
}
|
|
12
15
|
declare enum EnumRejectionPolicy {
|
|
13
|
-
SINGLE_DATE_ALLOWED = "
|
|
14
|
-
MULTI_DATE_ALLOWED = "
|
|
16
|
+
SINGLE_DATE_ALLOWED = "Single date allowed",
|
|
17
|
+
MULTI_DATE_ALLOWED = "Multi date allowed"
|
|
18
|
+
}
|
|
19
|
+
declare enum EnumPaymentMethod {
|
|
20
|
+
CASH = "Cash",
|
|
21
|
+
EFTPOS = "Eftpos",
|
|
22
|
+
BANK_TRANSFER = "Bank Transfer",
|
|
23
|
+
PAYPAL = "PayPal",
|
|
24
|
+
STRIPE = "Stripe"
|
|
15
25
|
}
|
|
16
26
|
declare enum EnumResourceType {
|
|
17
27
|
MARKET = "market",
|
|
@@ -192,6 +202,7 @@ type RelationDate = {
|
|
|
192
202
|
};
|
|
193
203
|
interface RelationType {
|
|
194
204
|
_id?: string;
|
|
205
|
+
apiMessage?: string;
|
|
195
206
|
createdAt?: string;
|
|
196
207
|
lastUpdateBy: EnumResourceType;
|
|
197
208
|
marketId: string;
|
|
@@ -205,15 +216,19 @@ interface RelationType {
|
|
|
205
216
|
type DateTimeWithPrice = DateTimeType & {
|
|
206
217
|
marketPrice: number;
|
|
207
218
|
};
|
|
219
|
+
type StallApplicationInfoType = {
|
|
220
|
+
applicationDeadlineHours: number;
|
|
221
|
+
paymentDueHours: number;
|
|
222
|
+
paymentMethod: EnumPaymentMethod;
|
|
223
|
+
paymentTarget: string;
|
|
224
|
+
rejectionPolicy: EnumRejectionPolicy;
|
|
225
|
+
stallCapacity: number;
|
|
226
|
+
};
|
|
208
227
|
interface MarketFormData extends BaseResourceTypeFormData {
|
|
209
228
|
dateTime: DateTimeWithPrice[];
|
|
210
229
|
location: LocationType;
|
|
211
230
|
provider: string;
|
|
212
|
-
stallApplicationInfo:
|
|
213
|
-
applicationDeadlineHours: number;
|
|
214
|
-
rejectionPolicy: EnumRejectionPolicy;
|
|
215
|
-
stallCapacity: number;
|
|
216
|
-
};
|
|
231
|
+
stallApplicationInfo: StallApplicationInfoType;
|
|
217
232
|
tags?: string[] | null;
|
|
218
233
|
}
|
|
219
234
|
interface CreateMarketFormData {
|
|
@@ -276,7 +291,7 @@ type StallholderApplyFormFormData = {
|
|
|
276
291
|
foodSafetyGradeFilesUpload?: string[] | null;
|
|
277
292
|
gazebo: StallholderAttributes;
|
|
278
293
|
packaging: string[];
|
|
279
|
-
paymentMethod:
|
|
294
|
+
paymentMethod: EnumPaymentMethod;
|
|
280
295
|
priceRange: {
|
|
281
296
|
max: number;
|
|
282
297
|
min: number;
|
|
@@ -320,7 +335,7 @@ interface StallholderApplyFormType {
|
|
|
320
335
|
isRequired: boolean;
|
|
321
336
|
};
|
|
322
337
|
packaging: string[];
|
|
323
|
-
paymentMethod:
|
|
338
|
+
paymentMethod: EnumPaymentMethod;
|
|
324
339
|
priceRange: {
|
|
325
340
|
max: number;
|
|
326
341
|
min: number;
|
|
@@ -498,6 +513,11 @@ interface ResourceConnectionsType {
|
|
|
498
513
|
stallholders: SatllholderWithConnectionDatesType[] | null;
|
|
499
514
|
}
|
|
500
515
|
|
|
516
|
+
interface PosterInputType {
|
|
517
|
+
resourceId: string;
|
|
518
|
+
resourceType: EnumResourceType;
|
|
519
|
+
}
|
|
520
|
+
|
|
501
521
|
declare const dateFormat = "DD-MM-YYYY";
|
|
502
522
|
declare const timeFormat = "HH:mm";
|
|
503
523
|
type DateFormat = "date" | "time" | "datetime";
|
|
@@ -557,6 +577,7 @@ declare function sortDatesByProximity<T extends {
|
|
|
557
577
|
}>(dates: T[]): T[];
|
|
558
578
|
declare const availableRegionTypes: EnumRegions[];
|
|
559
579
|
declare const availableRegionOptions: OptionItem[];
|
|
580
|
+
declare const paymentMethodOptions: OptionItem[];
|
|
560
581
|
|
|
561
582
|
interface PlacePrediction {
|
|
562
583
|
place_id: string;
|
|
@@ -630,6 +651,10 @@ declare const defaultMarketFormValues: MarketFormData;
|
|
|
630
651
|
declare const defaultStallholderFormValues: StallholderFormData;
|
|
631
652
|
declare const defaultStallholderApplyFormValues: StallholderApplyFormFormData;
|
|
632
653
|
|
|
654
|
+
type NoLeadingZerosOptions = {
|
|
655
|
+
allowDecimal?: boolean;
|
|
656
|
+
};
|
|
657
|
+
declare const noLeadingZeros: (fieldName: string, options?: NoLeadingZerosOptions) => TestFunction<number | undefined>;
|
|
633
658
|
declare const endDateNotInPastTest: yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
|
|
634
659
|
declare const startDateNotInPastTest: yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
|
|
635
660
|
declare const endDateAfterStartDateTest: yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
|
|
@@ -717,7 +742,10 @@ declare const marketSchema: yup.ObjectSchema<{
|
|
|
717
742
|
};
|
|
718
743
|
provider: string;
|
|
719
744
|
stallApplicationInfo: {
|
|
745
|
+
paymentMethod: NonNullable<EnumPaymentMethod | undefined>;
|
|
720
746
|
applicationDeadlineHours: number;
|
|
747
|
+
paymentDueHours: number;
|
|
748
|
+
paymentTarget: string;
|
|
721
749
|
rejectionPolicy: NonNullable<EnumRejectionPolicy | undefined>;
|
|
722
750
|
stallCapacity: number;
|
|
723
751
|
};
|
|
@@ -745,6 +773,9 @@ declare const marketSchema: yup.ObjectSchema<{
|
|
|
745
773
|
provider: undefined;
|
|
746
774
|
stallApplicationInfo: {
|
|
747
775
|
applicationDeadlineHours: undefined;
|
|
776
|
+
paymentDueHours: undefined;
|
|
777
|
+
paymentMethod: undefined;
|
|
778
|
+
paymentTarget: undefined;
|
|
748
779
|
rejectionPolicy: undefined;
|
|
749
780
|
stallCapacity: undefined;
|
|
750
781
|
};
|
|
@@ -797,7 +828,7 @@ declare const stallholderApplyFormSchema: yup.ObjectSchema<{
|
|
|
797
828
|
isRequired: NonNullable<boolean | undefined>;
|
|
798
829
|
};
|
|
799
830
|
packaging: string[];
|
|
800
|
-
paymentMethod:
|
|
831
|
+
paymentMethod: NonNullable<EnumPaymentMethod | undefined>;
|
|
801
832
|
priceRange: {
|
|
802
833
|
max: number;
|
|
803
834
|
min: number;
|
|
@@ -1020,6 +1051,12 @@ declare const useGetMarketsNearMe: (location: {
|
|
|
1020
1051
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
1021
1052
|
};
|
|
1022
1053
|
|
|
1054
|
+
declare const useCreatePoster: () => {
|
|
1055
|
+
createPoster: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
1056
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1057
|
+
loading: boolean;
|
|
1058
|
+
};
|
|
1059
|
+
|
|
1023
1060
|
declare const useCreateRelation: () => {
|
|
1024
1061
|
createRelation: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
1025
1062
|
error: _apollo_client.ApolloError | undefined;
|
|
@@ -1223,10 +1260,11 @@ declare const stallholderPaymentMethod: FormField;
|
|
|
1223
1260
|
declare const stallholderProducedIn: FormField;
|
|
1224
1261
|
declare const packagingOptions: OptionItem[];
|
|
1225
1262
|
declare const producedIngOptions: OptionItem[];
|
|
1226
|
-
declare const paymentMethodOptions: OptionItem[];
|
|
1227
1263
|
|
|
1228
1264
|
declare const marketBasicInfoFields: FormField[];
|
|
1229
1265
|
declare const stallApplicationInfo: FormField[];
|
|
1266
|
+
declare const stallApplicationInfoPaymentTarget: FormField;
|
|
1267
|
+
declare const stallApplicationInfoDropdowns: FormField[];
|
|
1230
1268
|
declare const marketStartDateFields: FormDateField[];
|
|
1231
1269
|
declare const marketPriceByDateFields: FormField[];
|
|
1232
1270
|
declare const marketEndDateFields: FormDateField[];
|
|
@@ -1245,4 +1283,4 @@ declare const profileFields: FormField[];
|
|
|
1245
1283
|
declare const availableCategories: Category[];
|
|
1246
1284
|
declare const categoryColors: Record<string, string>;
|
|
1247
1285
|
|
|
1248
|
-
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, 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 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, marketPriceByDateFields, 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 };
|
|
1286
|
+
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, stallApplicationInfoDropdowns, 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,17 +1,27 @@
|
|
|
1
1
|
import { Control, FieldErrors, UseFormHandleSubmit, UseFormReset, UseFormSetValue, UseFormWatch } from 'react-hook-form';
|
|
2
2
|
import * as yup from 'yup';
|
|
3
|
+
import { TestFunction } from 'yup';
|
|
3
4
|
import * as _apollo_client from '@apollo/client';
|
|
4
5
|
|
|
5
6
|
declare enum EnumInviteStatus {
|
|
6
|
-
ACCEPTED = "
|
|
7
|
-
COMPLETED = "
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
ACCEPTED = "Accepted",
|
|
8
|
+
COMPLETED = "Completed",
|
|
9
|
+
EXPIRED = "Expired",
|
|
10
|
+
NO_STATUS = "No Status",
|
|
11
|
+
PENDING = "Pending",
|
|
12
|
+
REJECTED = "Rejected",
|
|
13
|
+
WAITING = "waiting"
|
|
11
14
|
}
|
|
12
15
|
declare enum EnumRejectionPolicy {
|
|
13
|
-
SINGLE_DATE_ALLOWED = "
|
|
14
|
-
MULTI_DATE_ALLOWED = "
|
|
16
|
+
SINGLE_DATE_ALLOWED = "Single date allowed",
|
|
17
|
+
MULTI_DATE_ALLOWED = "Multi date allowed"
|
|
18
|
+
}
|
|
19
|
+
declare enum EnumPaymentMethod {
|
|
20
|
+
CASH = "Cash",
|
|
21
|
+
EFTPOS = "Eftpos",
|
|
22
|
+
BANK_TRANSFER = "Bank Transfer",
|
|
23
|
+
PAYPAL = "PayPal",
|
|
24
|
+
STRIPE = "Stripe"
|
|
15
25
|
}
|
|
16
26
|
declare enum EnumResourceType {
|
|
17
27
|
MARKET = "market",
|
|
@@ -192,6 +202,7 @@ type RelationDate = {
|
|
|
192
202
|
};
|
|
193
203
|
interface RelationType {
|
|
194
204
|
_id?: string;
|
|
205
|
+
apiMessage?: string;
|
|
195
206
|
createdAt?: string;
|
|
196
207
|
lastUpdateBy: EnumResourceType;
|
|
197
208
|
marketId: string;
|
|
@@ -205,15 +216,19 @@ interface RelationType {
|
|
|
205
216
|
type DateTimeWithPrice = DateTimeType & {
|
|
206
217
|
marketPrice: number;
|
|
207
218
|
};
|
|
219
|
+
type StallApplicationInfoType = {
|
|
220
|
+
applicationDeadlineHours: number;
|
|
221
|
+
paymentDueHours: number;
|
|
222
|
+
paymentMethod: EnumPaymentMethod;
|
|
223
|
+
paymentTarget: string;
|
|
224
|
+
rejectionPolicy: EnumRejectionPolicy;
|
|
225
|
+
stallCapacity: number;
|
|
226
|
+
};
|
|
208
227
|
interface MarketFormData extends BaseResourceTypeFormData {
|
|
209
228
|
dateTime: DateTimeWithPrice[];
|
|
210
229
|
location: LocationType;
|
|
211
230
|
provider: string;
|
|
212
|
-
stallApplicationInfo:
|
|
213
|
-
applicationDeadlineHours: number;
|
|
214
|
-
rejectionPolicy: EnumRejectionPolicy;
|
|
215
|
-
stallCapacity: number;
|
|
216
|
-
};
|
|
231
|
+
stallApplicationInfo: StallApplicationInfoType;
|
|
217
232
|
tags?: string[] | null;
|
|
218
233
|
}
|
|
219
234
|
interface CreateMarketFormData {
|
|
@@ -276,7 +291,7 @@ type StallholderApplyFormFormData = {
|
|
|
276
291
|
foodSafetyGradeFilesUpload?: string[] | null;
|
|
277
292
|
gazebo: StallholderAttributes;
|
|
278
293
|
packaging: string[];
|
|
279
|
-
paymentMethod:
|
|
294
|
+
paymentMethod: EnumPaymentMethod;
|
|
280
295
|
priceRange: {
|
|
281
296
|
max: number;
|
|
282
297
|
min: number;
|
|
@@ -320,7 +335,7 @@ interface StallholderApplyFormType {
|
|
|
320
335
|
isRequired: boolean;
|
|
321
336
|
};
|
|
322
337
|
packaging: string[];
|
|
323
|
-
paymentMethod:
|
|
338
|
+
paymentMethod: EnumPaymentMethod;
|
|
324
339
|
priceRange: {
|
|
325
340
|
max: number;
|
|
326
341
|
min: number;
|
|
@@ -498,6 +513,11 @@ interface ResourceConnectionsType {
|
|
|
498
513
|
stallholders: SatllholderWithConnectionDatesType[] | null;
|
|
499
514
|
}
|
|
500
515
|
|
|
516
|
+
interface PosterInputType {
|
|
517
|
+
resourceId: string;
|
|
518
|
+
resourceType: EnumResourceType;
|
|
519
|
+
}
|
|
520
|
+
|
|
501
521
|
declare const dateFormat = "DD-MM-YYYY";
|
|
502
522
|
declare const timeFormat = "HH:mm";
|
|
503
523
|
type DateFormat = "date" | "time" | "datetime";
|
|
@@ -557,6 +577,7 @@ declare function sortDatesByProximity<T extends {
|
|
|
557
577
|
}>(dates: T[]): T[];
|
|
558
578
|
declare const availableRegionTypes: EnumRegions[];
|
|
559
579
|
declare const availableRegionOptions: OptionItem[];
|
|
580
|
+
declare const paymentMethodOptions: OptionItem[];
|
|
560
581
|
|
|
561
582
|
interface PlacePrediction {
|
|
562
583
|
place_id: string;
|
|
@@ -630,6 +651,10 @@ declare const defaultMarketFormValues: MarketFormData;
|
|
|
630
651
|
declare const defaultStallholderFormValues: StallholderFormData;
|
|
631
652
|
declare const defaultStallholderApplyFormValues: StallholderApplyFormFormData;
|
|
632
653
|
|
|
654
|
+
type NoLeadingZerosOptions = {
|
|
655
|
+
allowDecimal?: boolean;
|
|
656
|
+
};
|
|
657
|
+
declare const noLeadingZeros: (fieldName: string, options?: NoLeadingZerosOptions) => TestFunction<number | undefined>;
|
|
633
658
|
declare const endDateNotInPastTest: yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
|
|
634
659
|
declare const startDateNotInPastTest: yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
|
|
635
660
|
declare const endDateAfterStartDateTest: yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
|
|
@@ -717,7 +742,10 @@ declare const marketSchema: yup.ObjectSchema<{
|
|
|
717
742
|
};
|
|
718
743
|
provider: string;
|
|
719
744
|
stallApplicationInfo: {
|
|
745
|
+
paymentMethod: NonNullable<EnumPaymentMethod | undefined>;
|
|
720
746
|
applicationDeadlineHours: number;
|
|
747
|
+
paymentDueHours: number;
|
|
748
|
+
paymentTarget: string;
|
|
721
749
|
rejectionPolicy: NonNullable<EnumRejectionPolicy | undefined>;
|
|
722
750
|
stallCapacity: number;
|
|
723
751
|
};
|
|
@@ -745,6 +773,9 @@ declare const marketSchema: yup.ObjectSchema<{
|
|
|
745
773
|
provider: undefined;
|
|
746
774
|
stallApplicationInfo: {
|
|
747
775
|
applicationDeadlineHours: undefined;
|
|
776
|
+
paymentDueHours: undefined;
|
|
777
|
+
paymentMethod: undefined;
|
|
778
|
+
paymentTarget: undefined;
|
|
748
779
|
rejectionPolicy: undefined;
|
|
749
780
|
stallCapacity: undefined;
|
|
750
781
|
};
|
|
@@ -797,7 +828,7 @@ declare const stallholderApplyFormSchema: yup.ObjectSchema<{
|
|
|
797
828
|
isRequired: NonNullable<boolean | undefined>;
|
|
798
829
|
};
|
|
799
830
|
packaging: string[];
|
|
800
|
-
paymentMethod:
|
|
831
|
+
paymentMethod: NonNullable<EnumPaymentMethod | undefined>;
|
|
801
832
|
priceRange: {
|
|
802
833
|
max: number;
|
|
803
834
|
min: number;
|
|
@@ -1020,6 +1051,12 @@ declare const useGetMarketsNearMe: (location: {
|
|
|
1020
1051
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
1021
1052
|
};
|
|
1022
1053
|
|
|
1054
|
+
declare const useCreatePoster: () => {
|
|
1055
|
+
createPoster: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
1056
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1057
|
+
loading: boolean;
|
|
1058
|
+
};
|
|
1059
|
+
|
|
1023
1060
|
declare const useCreateRelation: () => {
|
|
1024
1061
|
createRelation: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
1025
1062
|
error: _apollo_client.ApolloError | undefined;
|
|
@@ -1223,10 +1260,11 @@ declare const stallholderPaymentMethod: FormField;
|
|
|
1223
1260
|
declare const stallholderProducedIn: FormField;
|
|
1224
1261
|
declare const packagingOptions: OptionItem[];
|
|
1225
1262
|
declare const producedIngOptions: OptionItem[];
|
|
1226
|
-
declare const paymentMethodOptions: OptionItem[];
|
|
1227
1263
|
|
|
1228
1264
|
declare const marketBasicInfoFields: FormField[];
|
|
1229
1265
|
declare const stallApplicationInfo: FormField[];
|
|
1266
|
+
declare const stallApplicationInfoPaymentTarget: FormField;
|
|
1267
|
+
declare const stallApplicationInfoDropdowns: FormField[];
|
|
1230
1268
|
declare const marketStartDateFields: FormDateField[];
|
|
1231
1269
|
declare const marketPriceByDateFields: FormField[];
|
|
1232
1270
|
declare const marketEndDateFields: FormDateField[];
|
|
@@ -1245,4 +1283,4 @@ declare const profileFields: FormField[];
|
|
|
1245
1283
|
declare const availableCategories: Category[];
|
|
1246
1284
|
declare const categoryColors: Record<string, string>;
|
|
1247
1285
|
|
|
1248
|
-
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, 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 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, marketPriceByDateFields, 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 };
|
|
1286
|
+
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, stallApplicationInfoDropdowns, 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 };
|