@timardex/cluemart-shared 1.0.0

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.
@@ -0,0 +1,1160 @@
1
+ import { Control, FieldErrors, UseFormHandleSubmit, UseFormReset, UseFormSetValue, UseFormWatch } from 'react-hook-form';
2
+ import * as yup from 'yup';
3
+ import * as _apollo_client from '@apollo/client';
4
+
5
+ declare enum EnumInviteStatus {
6
+ ACCEPTED = "ACCEPTED",
7
+ COMPLETED = "COMPLETED",
8
+ PENDING = "PENDING",
9
+ REJECTED = "REJECTED",
10
+ NO_STATUS = "NO_STATUS"
11
+ }
12
+ declare enum EnumRejectionPolicy {
13
+ SINGLE_DATE_ALLOWED = "single_date_allowed",
14
+ MULTI_DATE_ALLOWED = "multi_date_allowed"
15
+ }
16
+ declare enum EnumResourceType {
17
+ MARKET = "market",
18
+ STALLHOLDER = "stallholder"
19
+ }
20
+ declare enum EnumRelationResource {
21
+ CREATED_MARKET = "created_market",
22
+ CREATED_STALLHOLDER = "created_stallholder",
23
+ STALLHOLDER_APPLICATION_TO_MARKET = "stallholder_application_to_market",
24
+ MARKET_INVITE_STALLHOLDER = "market_invite_stallholder"
25
+ }
26
+ declare enum EnumResourceTypeIcon {
27
+ MARKET = "compass",
28
+ STALLHOLDER = "store"
29
+ }
30
+ declare enum EnumRegions {
31
+ Auckland = "Auckland",
32
+ BayOfPlenty = "Bay of Plenty",
33
+ Canterbury = "Canterbury",
34
+ Gisborne = "Gisborne",
35
+ HawkesBay = "Hawke's Bay",
36
+ ManawatuWanganui = "Manawatu-Wanganui",
37
+ Marlborough = "Marlborough",
38
+ Nelson = "Nelson",
39
+ Northland = "Northland",
40
+ Otago = "Otago",
41
+ Southland = "Southland",
42
+ Taranaki = "Taranaki",
43
+ Tasman = "Tasman",
44
+ Waikato = "Waikato",
45
+ Wellington = "Wellington",
46
+ WestCoast = "West Coast"
47
+ }
48
+ declare enum ImageTypeEnum {
49
+ AVATAR = "avatar",
50
+ COVER = "cover",
51
+ IMAGE = "image",
52
+ LOGO = "logo"
53
+ }
54
+ declare enum EnumUserLicence {
55
+ ENTERPRISE_MARKET = "enterprise_market",
56
+ ENTERPRISE_STALLHOLDER = "enterprise_stallholder",
57
+ PRO_MARKET = "pro_market",
58
+ PRO_STALLHOLDER = "pro_stallholder",
59
+ STANDARD_MARKET = "standard_market",
60
+ STANDARD_STALLHOLDER = "standard_stallholder"
61
+ }
62
+ declare enum EnumUserRole {
63
+ ADMIN = "admin",
64
+ CUSTOMER = "customer"
65
+ }
66
+
67
+ type RelationLog = {
68
+ createdAt?: string;
69
+ updatedAt?: string;
70
+ updatedBy: {
71
+ resourceId: string;
72
+ resourceName: string;
73
+ resourceType: EnumResourceType;
74
+ startDate: string;
75
+ toStatus: EnumInviteStatus;
76
+ };
77
+ };
78
+ type RelationDate = {
79
+ lastUpdateBy: string;
80
+ startDate: string;
81
+ status: EnumInviteStatus;
82
+ };
83
+ interface RelationType {
84
+ _id?: string;
85
+ createdAt?: string;
86
+ lastUpdateBy: EnumResourceType;
87
+ marketId: string;
88
+ relationDates: RelationDate[];
89
+ relationLogs?: RelationLog[] | null;
90
+ relationType: EnumRelationResource;
91
+ stallholderId: string;
92
+ updatedAt?: string;
93
+ }
94
+
95
+ interface MarketFormData extends BaseResourceTypeFormData {
96
+ dateTime: DateTimeType[];
97
+ location: LocationType;
98
+ provider: string;
99
+ stallApplicationInfo: {
100
+ applicationDeadlineHours: number;
101
+ rejectionPolicy: EnumRejectionPolicy;
102
+ stallCapacity: number;
103
+ };
104
+ tags?: string[] | null;
105
+ }
106
+ interface CreateMarketFormData {
107
+ control: Control<MarketFormData, any>;
108
+ fields: MarketFormData;
109
+ formState: {
110
+ errors: FieldErrors<MarketFormData>;
111
+ };
112
+ handleSubmit: UseFormHandleSubmit<MarketFormData, any>;
113
+ reset: UseFormReset<MarketFormData>;
114
+ setValue: UseFormSetValue<MarketFormData>;
115
+ watch: UseFormWatch<MarketFormData>;
116
+ }
117
+ interface MarketType extends BaseResourceType {
118
+ dateTime: MarketFormData["dateTime"];
119
+ location: MarketFormData["location"];
120
+ provider: string;
121
+ stallApplicationInfo: MarketFormData["stallApplicationInfo"];
122
+ tags: string[] | null;
123
+ }
124
+ interface MarketWithConnectionDatesType extends MarketType {
125
+ relationDates: RelationDate[] | undefined;
126
+ }
127
+
128
+ type StallholderLocation = {
129
+ dateTime: {
130
+ startDate?: string | null;
131
+ startTime?: string | null;
132
+ endDate?: string | null;
133
+ endTime?: string | null;
134
+ } | null;
135
+ description?: string | null;
136
+ location: {
137
+ city?: string | null;
138
+ coordinates?: number[] | null;
139
+ country?: string | null;
140
+ fullAddress?: string | null;
141
+ latitude?: number | null;
142
+ longitude?: number | null;
143
+ region?: string | null;
144
+ type?: "Point" | null;
145
+ } | null;
146
+ resourceId?: MapMultiLocation["resourceId"];
147
+ resourceName?: MapMultiLocation["resourceName"];
148
+ resourceType?: MapMultiLocation["resourceType"];
149
+ };
150
+ interface StallholderFormData extends BaseResourceTypeFormData {
151
+ categories: Category[];
152
+ locations?: StallholderLocation[] | null;
153
+ multiLocation: boolean;
154
+ products: string[];
155
+ specialities?: string[] | null;
156
+ }
157
+ interface CreateStallholderFormData {
158
+ control: Control<StallholderFormData, any>;
159
+ fields: StallholderFormData;
160
+ formState: {
161
+ errors: FieldErrors<StallholderFormData>;
162
+ };
163
+ handleSubmit: UseFormHandleSubmit<StallholderFormData, any>;
164
+ reset: UseFormReset<StallholderFormData>;
165
+ setValue: UseFormSetValue<StallholderFormData>;
166
+ watch: UseFormWatch<StallholderFormData>;
167
+ }
168
+ type StallholderAttributes = {
169
+ details?: string | null;
170
+ isRequired: boolean;
171
+ };
172
+ type StallholderApplyFormFormData = {
173
+ _id?: string;
174
+ active: boolean;
175
+ electricity: StallholderAttributes;
176
+ foodSafetyGradeFiles?: string[] | null;
177
+ foodSafetyGradeFilesUpload?: string[] | null;
178
+ gazebo: StallholderAttributes;
179
+ packaging: string[];
180
+ paymentMethod: string;
181
+ priceRange: {
182
+ max: number;
183
+ min: number;
184
+ };
185
+ producedIn: string[];
186
+ stallSize: {
187
+ depth: number;
188
+ width: number;
189
+ };
190
+ table: StallholderAttributes;
191
+ };
192
+ interface CreateStallholderApplyFormFormData {
193
+ control: Control<StallholderApplyFormFormData, any>;
194
+ fields: StallholderApplyFormFormData;
195
+ formState: {
196
+ errors: FieldErrors<StallholderApplyFormFormData>;
197
+ };
198
+ handleSubmit: UseFormHandleSubmit<StallholderApplyFormFormData, any>;
199
+ reset: UseFormReset<StallholderApplyFormFormData>;
200
+ setValue: UseFormSetValue<StallholderApplyFormFormData>;
201
+ watch: UseFormWatch<StallholderApplyFormFormData>;
202
+ }
203
+ interface StallholderType extends BaseResourceType {
204
+ applyFormId: string;
205
+ categories: StallholderFormData["categories"];
206
+ locations: StallholderLocation[] | null;
207
+ multiLocation: boolean;
208
+ products: StallholderFormData["products"];
209
+ specialities: string[] | null;
210
+ }
211
+ interface StallholderApplyFormType {
212
+ _id: string;
213
+ active: boolean;
214
+ electricity: {
215
+ details: string | null;
216
+ isRequired: boolean;
217
+ };
218
+ foodSafetyGradeFiles: string[] | null;
219
+ gazebo: {
220
+ details: string | null;
221
+ isRequired: boolean;
222
+ };
223
+ packaging: string[];
224
+ paymentMethod: string;
225
+ priceRange: {
226
+ max: number;
227
+ min: number;
228
+ };
229
+ producedIn: string[];
230
+ stallholderId: string;
231
+ stallSize: {
232
+ depth: number;
233
+ width: number;
234
+ };
235
+ table: {
236
+ details: string | null;
237
+ isRequired: boolean;
238
+ };
239
+ }
240
+ interface SatllholderWithConnectionDatesType extends StallholderType {
241
+ relationDates: RelationDate[] | undefined;
242
+ }
243
+
244
+ type UserFormData = {
245
+ _id?: string;
246
+ active: boolean;
247
+ avatar?: ResourceImageType | null;
248
+ avatarUpload?: ResourceImageType | null;
249
+ confirmPassword: string;
250
+ email: string;
251
+ firstName: string;
252
+ lastName: string;
253
+ password: string;
254
+ role: EnumUserRole;
255
+ };
256
+ interface CreateUserFormData {
257
+ control: Control<UserFormData, any>;
258
+ fields: UserFormData;
259
+ formState: {
260
+ errors: FieldErrors<UserFormData>;
261
+ };
262
+ handleSubmit: UseFormHandleSubmit<UserFormData, any>;
263
+ reset: UseFormReset<UserFormData>;
264
+ setValue: UseFormSetValue<UserFormData>;
265
+ watch: UseFormWatch<UserFormData>;
266
+ }
267
+ interface UserType {
268
+ _id: string;
269
+ active: boolean;
270
+ avatar: ResourceImageType | null;
271
+ createdAt: string;
272
+ email: string;
273
+ favourites: {
274
+ markets: string[];
275
+ stallholders: string[];
276
+ };
277
+ firstName: string;
278
+ lastName: string;
279
+ licences: EnumUserLicence[] | null;
280
+ markets: string[] | null;
281
+ password: string;
282
+ role: EnumUserRole;
283
+ stallholder: string | null;
284
+ updatedAt: string;
285
+ }
286
+
287
+ type ResourceImageType = {
288
+ source: string;
289
+ title: string;
290
+ };
291
+ interface BaseResourceTypeFormData {
292
+ _id?: string;
293
+ active: boolean;
294
+ cover: ResourceImageType;
295
+ coverUpload?: ResourceImageType | null;
296
+ description: string;
297
+ images?: ResourceImageType[] | null;
298
+ imagesUpload?: ResourceImageType[] | null;
299
+ logo?: ResourceImageType | null;
300
+ logoUpload?: ResourceImageType | null;
301
+ name: string;
302
+ promoCode?: string | null;
303
+ region: string;
304
+ }
305
+ interface BaseResourceType {
306
+ _id: string;
307
+ active: boolean;
308
+ cover: ResourceImageType;
309
+ createdAt: string;
310
+ description: string;
311
+ images: ResourceImageType[] | null;
312
+ logo: ResourceImageType | null;
313
+ name: string;
314
+ owner: Pick<UserType, "_id" | "email" | "licences">;
315
+ promoCode: string | null;
316
+ region: string;
317
+ relationIds: string[] | null;
318
+ updatedAt: string;
319
+ }
320
+ type LocationType = {
321
+ city: string;
322
+ coordinates: number[];
323
+ country: string;
324
+ fullAddress: string;
325
+ latitude: number;
326
+ longitude: number;
327
+ region: string;
328
+ type: "Point";
329
+ };
330
+ type DateTimeType = {
331
+ endDate: string;
332
+ endTime: string;
333
+ startDate: string;
334
+ startTime: string;
335
+ };
336
+ type Region = {
337
+ latitude: number;
338
+ latitudeDelta: number;
339
+ longitude: number;
340
+ longitudeDelta: number;
341
+ };
342
+ type GeocodeLocation = Pick<LocationType, "latitude" | "longitude">;
343
+ type MapMultiLocation = {
344
+ dateTime: DateTimeType | null;
345
+ location: LocationType | null;
346
+ resourceId?: string;
347
+ resourceName?: string;
348
+ resourceType?: EnumResourceType;
349
+ };
350
+ interface FormField {
351
+ disabled?: boolean;
352
+ helperText?: string;
353
+ isTextArea?: boolean;
354
+ keyboardType?: "default" | "email-address" | "number-pad";
355
+ name: string;
356
+ placeholder: string;
357
+ secureTextEntry?: boolean;
358
+ }
359
+ interface FormDateField {
360
+ dateMode: "date" | "time";
361
+ helperText?: string;
362
+ name: "endDate" | "endTime" | "startDate" | "startTime";
363
+ placeholder: string;
364
+ }
365
+ interface Subcategory {
366
+ id: string;
367
+ name: string;
368
+ items?: string[] | null;
369
+ }
370
+ interface Category {
371
+ id: string;
372
+ name: string;
373
+ subcategories?: Subcategory[] | null;
374
+ }
375
+ type OptionItem = {
376
+ value: string;
377
+ label: string;
378
+ };
379
+ type ImageObjectType = {
380
+ uri: string;
381
+ type: string;
382
+ name: string;
383
+ };
384
+ type NotificationType = {
385
+ createdBy: string;
386
+ important: boolean;
387
+ message: string;
388
+ notifyUser: string | null;
389
+ resourceId: string;
390
+ resourceType: EnumRelationResource;
391
+ };
392
+ interface ResourceConnectionsType {
393
+ markets: MarketWithConnectionDatesType[] | null;
394
+ stallholders: SatllholderWithConnectionDatesType[] | null;
395
+ }
396
+
397
+ type LoginFormData = {
398
+ email: string;
399
+ password: string;
400
+ };
401
+ interface CreateLoginFormData {
402
+ control: Control<LoginFormData, any>;
403
+ fields: LoginFormData;
404
+ formState: {
405
+ errors: FieldErrors<LoginFormData>;
406
+ };
407
+ handleSubmit: UseFormHandleSubmit<LoginFormData, any>;
408
+ reset: UseFormReset<LoginFormData>;
409
+ setValue: UseFormSetValue<LoginFormData>;
410
+ watch: UseFormWatch<LoginFormData>;
411
+ }
412
+ type RegisterFormData = {
413
+ email: string;
414
+ firstName: string;
415
+ lastName: string;
416
+ password: string;
417
+ role: EnumUserRole;
418
+ };
419
+ interface CreateRegisterFormData {
420
+ control: Control<RegisterFormData, any>;
421
+ fields: RegisterFormData;
422
+ formState: {
423
+ errors: FieldErrors<RegisterFormData>;
424
+ };
425
+ handleSubmit: UseFormHandleSubmit<RegisterFormData, any>;
426
+ reset: UseFormReset<RegisterFormData>;
427
+ setValue: UseFormSetValue<RegisterFormData>;
428
+ watch: UseFormWatch<RegisterFormData>;
429
+ }
430
+ type ForgotPasswordFormData = {
431
+ email: string;
432
+ };
433
+ interface CreateForgotPasswordFormData {
434
+ control: Control<ForgotPasswordFormData, any>;
435
+ fields: ForgotPasswordFormData;
436
+ formState: {
437
+ errors: FieldErrors<ForgotPasswordFormData>;
438
+ };
439
+ handleSubmit: UseFormHandleSubmit<ForgotPasswordFormData, undefined>;
440
+ reset: UseFormReset<ForgotPasswordFormData>;
441
+ setValue: UseFormSetValue<ForgotPasswordFormData>;
442
+ watch: UseFormWatch<ForgotPasswordFormData>;
443
+ }
444
+ type ResetPasswordFormData = {
445
+ password: string;
446
+ confirmPassword: string;
447
+ };
448
+ interface CreateResetPasswordFormData {
449
+ control: Control<ResetPasswordFormData, any>;
450
+ fields: ResetPasswordFormData;
451
+ formState: {
452
+ errors: FieldErrors<ResetPasswordFormData>;
453
+ };
454
+ handleSubmit: UseFormHandleSubmit<ResetPasswordFormData, undefined>;
455
+ reset: UseFormReset<ResetPasswordFormData>;
456
+ setValue: UseFormSetValue<ResetPasswordFormData>;
457
+ watch: UseFormWatch<ResetPasswordFormData>;
458
+ }
459
+ type VerifyEmailFormData = {
460
+ token: string;
461
+ };
462
+ interface CreateVerifyEmailFormData {
463
+ control: Control<VerifyEmailFormData, any>;
464
+ fields: VerifyEmailFormData;
465
+ formState: {
466
+ errors: FieldErrors<VerifyEmailFormData>;
467
+ };
468
+ handleSubmit: UseFormHandleSubmit<VerifyEmailFormData, undefined>;
469
+ reset: UseFormReset<VerifyEmailFormData>;
470
+ setValue: UseFormSetValue<VerifyEmailFormData>;
471
+ watch: UseFormWatch<VerifyEmailFormData>;
472
+ }
473
+
474
+ declare const dateFormat = "DD-MM-YYYY";
475
+ declare const timeFormat = "HH:mm";
476
+ type DateFormat = "date" | "time" | "datetime";
477
+ /**
478
+ * Format a date string to a more readable format.
479
+ * @param dateStr - the date string
480
+ * @param timeStr - optional time string
481
+ * @param display - 'date' | 'time' | 'datetime'
482
+ * @returns formatted string based on display option
483
+ */
484
+ declare const formatDate: (dateStr: string, display?: DateFormat, timeStr?: string) => string;
485
+ declare const getCurrentAndFutureDates: (dates: {
486
+ startDate: string;
487
+ startTime: string;
488
+ }[]) => {
489
+ startDate: string;
490
+ startTime: string;
491
+ }[];
492
+ declare const getFutureDatesAfterThreshold: (dates: {
493
+ startDate: string;
494
+ startTime: string;
495
+ }[], minHoursFromNow?: number) => {
496
+ startDate: string;
497
+ startTime: string;
498
+ }[];
499
+ declare const formatTimestamp: (timestamp: string) => string;
500
+ declare const GOOGLE_API_KEY = "AIzaSyC8UkMGkrF6lIInF9yHxaVQQvlN-zqCfMc";
501
+ declare const defaultRegion: Region;
502
+ /**
503
+ * Function to remove __typename from an object or array of objects.
504
+ * @param obj - The object or array to clean.
505
+ * @returns - The cleaned object or array.
506
+ */
507
+ declare const removeTypename: (obj: any) => any;
508
+ /**
509
+ * Truncate text to a specified length and append ellipsis if necessary.
510
+ * @param text
511
+ * @param maxLength
512
+ * @returns
513
+ */
514
+ declare const truncateText: (text: string, maxLength?: number) => string;
515
+ /**
516
+ * Convert an array of strings to an array of objects with label and value properties.
517
+ * @param items - The array of strings to convert.
518
+ * @returns - The converted array of objects.
519
+ */
520
+ declare const mapArrayToOptions: (items: string[]) => OptionItem[];
521
+ declare const capitalizeFirstLetter: (str: string) => string;
522
+ declare const statusOptions: {
523
+ label: EnumInviteStatus;
524
+ value: EnumInviteStatus;
525
+ }[];
526
+ /**
527
+ * Sort an array of date strings by their proximity to the current date.
528
+ * @param dates - The array of date strings to sort.
529
+ * @returns - The sorted array of date strings.
530
+ */
531
+ declare function sortDatesByProximity(dates: {
532
+ startDate: string;
533
+ startTime: string;
534
+ }[]): {
535
+ startDate: string;
536
+ startTime: string;
537
+ }[];
538
+
539
+ interface PlacePrediction {
540
+ place_id: string;
541
+ description: string;
542
+ }
543
+ interface UseLocation {
544
+ getPredictions: (text: string) => Promise<PlacePrediction[] | undefined>;
545
+ getPlaceDetails: (placeId: string) => Promise<LocationType | undefined>;
546
+ }
547
+ /**
548
+ * Custom hook to manage location search functionality.
549
+ *
550
+ * @returns {UseLocation} - The functions to get predictions and place details.
551
+ */
552
+ declare const useLocationSearch: () => UseLocation;
553
+
554
+ /**
555
+ * Custom hook to manage the stallholder form state and validation.
556
+ *
557
+ * @param {StallholderFormData} data - The initial form data.
558
+ * @returns {CreateStallholderFormData} - The form methods and state.
559
+ */
560
+ declare function useStallholderForm(data?: StallholderFormData): CreateStallholderFormData;
561
+
562
+ /**
563
+ * Custom hook to manage the stallholder apply form state and validation.
564
+ *
565
+ * @param {StallholderApplyFormFormData} data - The initial form data.
566
+ * @returns {CreateStallholderApplyFormFormData} - The form methods and state.
567
+ */
568
+ declare function useStallholderApplyForm(data?: StallholderApplyFormFormData): CreateStallholderApplyFormFormData;
569
+
570
+ /**
571
+ * Custom hook to manage the market form state and validation.
572
+ *
573
+ * @param {MarketFormData} data - The initial form data.
574
+ * @returns {CreateMarketFormData} - The form methods and state.
575
+ */
576
+ declare function useMarketForm(data?: MarketFormData): CreateMarketFormData;
577
+
578
+ /**
579
+ * Custom hook to manage the user form state and validation.
580
+ *
581
+ * @param {UserFormData} data - The initial form data.
582
+ * @returns {CreateUserFormData} - The form methods and state.
583
+ */
584
+ declare function useUserForm(data?: UserFormData): CreateUserFormData;
585
+
586
+ /**
587
+ * Custom hook to manage the login form state and validation.
588
+ *
589
+ * @returns {CreateLoginFormData} - The form methods and state.
590
+ */
591
+ declare function useLoginForm(): CreateLoginFormData;
592
+
593
+ /**
594
+ * Custom hook to manage the register form state and validation.
595
+ *
596
+ * @returns {CreateRegisterFormData} - The form methods and state.
597
+ */
598
+ declare function useRegisterForm(): CreateRegisterFormData;
599
+
600
+ declare const globalDefaultValues: BaseResourceTypeFormData;
601
+ declare const defaultMarketFormValues: MarketFormData;
602
+ declare const defaultStallholderFormValues: StallholderFormData;
603
+ declare const defaultStallholderApplyFormValues: StallholderApplyFormFormData;
604
+
605
+ declare const endDateNotInPastTest: yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
606
+ declare const startDateNotInPastTest: yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
607
+ declare const endDateAfterStartDateTest: yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
608
+ declare const endTimeMustBeAfterStartTimeTest: yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
609
+ declare const startTimeCannotBeInPastTest: yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
610
+ declare const dateTimeSchema: yup.ObjectSchema<{
611
+ endDate: string;
612
+ endTime: string;
613
+ startDate: string;
614
+ startTime: string;
615
+ }, yup.AnyObject, {
616
+ endDate: undefined;
617
+ endTime: undefined;
618
+ startDate: undefined;
619
+ startTime: undefined;
620
+ }, "">;
621
+ declare const locationSchema: yup.ObjectSchema<{
622
+ city: string;
623
+ coordinates: number[];
624
+ country: string;
625
+ fullAddress: string;
626
+ latitude: number;
627
+ longitude: number;
628
+ region: string;
629
+ type: "Point";
630
+ }, yup.AnyObject, {
631
+ city: undefined;
632
+ coordinates: "";
633
+ country: undefined;
634
+ fullAddress: undefined;
635
+ latitude: undefined;
636
+ longitude: undefined;
637
+ region: undefined;
638
+ type: "Point";
639
+ }, "">;
640
+ declare const emailSchema: yup.StringSchema<string, yup.AnyObject, undefined, "">;
641
+ declare const passwordSchema: yup.StringSchema<string, yup.AnyObject, undefined, "">;
642
+ declare const globalResourceSchema: yup.ObjectSchema<{
643
+ active: NonNullable<boolean | undefined>;
644
+ cover: {
645
+ source: string;
646
+ title: string;
647
+ };
648
+ description: string;
649
+ name: string;
650
+ region: string;
651
+ }, yup.AnyObject, {
652
+ active: undefined;
653
+ cover: {
654
+ source: undefined;
655
+ title: undefined;
656
+ };
657
+ description: undefined;
658
+ name: undefined;
659
+ region: undefined;
660
+ }, "">;
661
+
662
+ declare const marketSchema: yup.ObjectSchema<{
663
+ active: NonNullable<boolean | undefined>;
664
+ cover: {
665
+ source: string;
666
+ title: string;
667
+ };
668
+ description: string;
669
+ name: string;
670
+ region: string;
671
+ dateTime: {
672
+ endDate: string;
673
+ endTime: string;
674
+ startDate: string;
675
+ startTime: string;
676
+ }[];
677
+ location: {
678
+ region: string;
679
+ latitude: number;
680
+ longitude: number;
681
+ city: string;
682
+ coordinates: number[];
683
+ country: string;
684
+ fullAddress: string;
685
+ type: "Point";
686
+ };
687
+ provider: string;
688
+ stallApplicationInfo: {
689
+ applicationDeadlineHours: number;
690
+ rejectionPolicy: NonNullable<EnumRejectionPolicy | undefined>;
691
+ stallCapacity: number;
692
+ };
693
+ tags: string[] | null | undefined;
694
+ }, yup.AnyObject, {
695
+ active: undefined;
696
+ cover: {
697
+ source: undefined;
698
+ title: undefined;
699
+ };
700
+ description: undefined;
701
+ name: undefined;
702
+ region: undefined;
703
+ dateTime: "";
704
+ location: {
705
+ city: undefined;
706
+ coordinates: "";
707
+ country: undefined;
708
+ fullAddress: undefined;
709
+ latitude: undefined;
710
+ longitude: undefined;
711
+ region: undefined;
712
+ type: "Point";
713
+ };
714
+ provider: undefined;
715
+ stallApplicationInfo: {
716
+ applicationDeadlineHours: undefined;
717
+ rejectionPolicy: undefined;
718
+ stallCapacity: undefined;
719
+ };
720
+ tags: "";
721
+ }, "">;
722
+
723
+ declare const stallHolderSchema: yup.ObjectSchema<{
724
+ active: NonNullable<boolean | undefined>;
725
+ cover: {
726
+ source: string;
727
+ title: string;
728
+ };
729
+ description: string;
730
+ name: string;
731
+ region: string;
732
+ categories: {
733
+ subcategories?: {
734
+ items?: string[] | null | undefined;
735
+ name: string;
736
+ id: string;
737
+ }[] | null | undefined;
738
+ name: string;
739
+ id: string;
740
+ }[];
741
+ multiLocation: NonNullable<boolean | undefined>;
742
+ products: string[];
743
+ }, yup.AnyObject, {
744
+ active: undefined;
745
+ cover: {
746
+ source: undefined;
747
+ title: undefined;
748
+ };
749
+ description: undefined;
750
+ name: undefined;
751
+ region: undefined;
752
+ categories: "";
753
+ multiLocation: undefined;
754
+ products: "";
755
+ }, "">;
756
+ declare const stallholderApplyFormSchema: yup.ObjectSchema<{
757
+ active: NonNullable<boolean | undefined>;
758
+ electricity: {
759
+ details?: string | null | undefined;
760
+ isRequired: NonNullable<boolean | undefined>;
761
+ };
762
+ foodSafetyGradeFiles: string[] | null | undefined;
763
+ foodSafetyGradeFilesUpload: string[] | null | undefined;
764
+ gazebo: {
765
+ details?: string | null | undefined;
766
+ isRequired: NonNullable<boolean | undefined>;
767
+ };
768
+ packaging: string[];
769
+ paymentMethod: string;
770
+ priceRange: {
771
+ max: number;
772
+ min: number;
773
+ };
774
+ producedIn: string[];
775
+ stallSize: {
776
+ depth: number;
777
+ width: number;
778
+ };
779
+ table: {
780
+ details?: string | null | undefined;
781
+ isRequired: NonNullable<boolean | undefined>;
782
+ };
783
+ }, yup.AnyObject, {
784
+ active: undefined;
785
+ electricity: {
786
+ details: undefined;
787
+ isRequired: undefined;
788
+ };
789
+ foodSafetyGradeFiles: "";
790
+ foodSafetyGradeFilesUpload: "";
791
+ gazebo: {
792
+ details: undefined;
793
+ isRequired: undefined;
794
+ };
795
+ packaging: "";
796
+ paymentMethod: undefined;
797
+ priceRange: {
798
+ max: undefined;
799
+ min: undefined;
800
+ };
801
+ producedIn: "";
802
+ stallSize: {
803
+ depth: undefined;
804
+ width: undefined;
805
+ };
806
+ table: {
807
+ details: undefined;
808
+ isRequired: undefined;
809
+ };
810
+ }, "">;
811
+
812
+ declare const userSchema: yup.ObjectSchema<{
813
+ active: NonNullable<boolean | undefined>;
814
+ email: string;
815
+ firstName: string;
816
+ lastName: string;
817
+ password: string;
818
+ confirmPassword: string;
819
+ role: NonNullable<EnumUserRole | undefined>;
820
+ }, yup.AnyObject, {
821
+ active: undefined;
822
+ email: undefined;
823
+ firstName: undefined;
824
+ lastName: undefined;
825
+ password: undefined;
826
+ confirmPassword: undefined;
827
+ role: undefined;
828
+ }, "">;
829
+
830
+ declare const loginSchema: yup.ObjectSchema<{
831
+ email: string;
832
+ password: string;
833
+ }, yup.AnyObject, {
834
+ email: undefined;
835
+ password: undefined;
836
+ }, "">;
837
+ declare const registerSchema: yup.ObjectSchema<{
838
+ email: string;
839
+ firstName: string;
840
+ lastName: string;
841
+ password: string;
842
+ role: NonNullable<EnumUserRole | undefined>;
843
+ }, yup.AnyObject, {
844
+ email: undefined;
845
+ firstName: undefined;
846
+ lastName: undefined;
847
+ password: undefined;
848
+ role: undefined;
849
+ }, "">;
850
+ declare const forgotPasswordSchema: yup.ObjectSchema<{
851
+ email: string;
852
+ }, yup.AnyObject, {
853
+ email: undefined;
854
+ }, "">;
855
+ declare const resetPasswordSchema: yup.ObjectSchema<{
856
+ password: string;
857
+ confirmPassword: string;
858
+ }, yup.AnyObject, {
859
+ password: undefined;
860
+ confirmPassword: undefined;
861
+ }, "">;
862
+ declare const validateEmailSchema: yup.ObjectSchema<{
863
+ token: string;
864
+ }, yup.AnyObject, {
865
+ token: undefined;
866
+ }, "">;
867
+
868
+ declare const useLogin: () => {
869
+ error: _apollo_client.ApolloError | undefined;
870
+ loading: boolean;
871
+ login: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
872
+ };
873
+ declare const useRegister: () => {
874
+ error: _apollo_client.ApolloError | undefined;
875
+ loading: boolean;
876
+ register: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
877
+ };
878
+ declare const useForgotPassword: () => {
879
+ error: _apollo_client.ApolloError | undefined;
880
+ forgotPassword: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
881
+ loading: boolean;
882
+ };
883
+ declare const useVerifyEmail: () => {
884
+ error: _apollo_client.ApolloError | undefined;
885
+ loading: boolean;
886
+ verifyEmail: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
887
+ };
888
+
889
+ declare const useCreateMarket: () => {
890
+ createMarket: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
891
+ error: _apollo_client.ApolloError | undefined;
892
+ loading: boolean;
893
+ };
894
+ declare const useUpdateMarket: () => {
895
+ error: _apollo_client.ApolloError | undefined;
896
+ loading: boolean;
897
+ updateMarket: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
898
+ };
899
+ declare const useDeleteMarket: () => {
900
+ deleteMarket: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
901
+ error: _apollo_client.ApolloError | undefined;
902
+ loading: boolean;
903
+ };
904
+
905
+ declare const useGetMarkets: () => {
906
+ error: _apollo_client.ApolloError | undefined;
907
+ loading: boolean;
908
+ markets: MarketType[];
909
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
910
+ };
911
+ declare const useGetMarket: (_id: string) => {
912
+ error: _apollo_client.ApolloError | undefined;
913
+ loading: boolean;
914
+ market: MarketType;
915
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
916
+ };
917
+ declare const useGetMarketsByRegion: (region: string) => {
918
+ error: _apollo_client.ApolloError | undefined;
919
+ loading: boolean;
920
+ markets: MarketType[];
921
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
922
+ };
923
+ declare const useSearchMarkets: (search: string, region: string) => {
924
+ error: _apollo_client.ApolloError | undefined;
925
+ loading: boolean;
926
+ markets: MarketType[];
927
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
928
+ };
929
+ declare const useGetMarketsNearMe: (location: {
930
+ latitude: number;
931
+ longitude: number;
932
+ radius?: number;
933
+ }) => {
934
+ error: _apollo_client.ApolloError | undefined;
935
+ loading: boolean;
936
+ markets: MarketType[];
937
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
938
+ };
939
+
940
+ declare const useCreateRelation: () => {
941
+ createRelation: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
942
+ error: _apollo_client.ApolloError | undefined;
943
+ loading: boolean;
944
+ };
945
+ declare const useUpdateRelation: () => {
946
+ error: _apollo_client.ApolloError | undefined;
947
+ loading: boolean;
948
+ updateRelation: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
949
+ };
950
+ declare const useDeleteRelation: () => {
951
+ deleteRelation: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
952
+ error: _apollo_client.ApolloError | undefined;
953
+ loading: boolean;
954
+ };
955
+
956
+ declare const useGetRelation: (id: string) => {
957
+ error: _apollo_client.ApolloError | undefined;
958
+ loading: boolean;
959
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
960
+ relation: RelationType;
961
+ };
962
+ declare const useGetRelationByMarketAndStallholder: (marketId: string, stallholderId: string) => {
963
+ error: _apollo_client.ApolloError | undefined;
964
+ loading: boolean;
965
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
966
+ relationByMarketAndStallholder: RelationType;
967
+ };
968
+ declare const useGetMarketRelations: (marketId: string) => {
969
+ error: _apollo_client.ApolloError | undefined;
970
+ loading: boolean;
971
+ marketRelations: RelationType[];
972
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
973
+ };
974
+ declare const useGetStallholderRelations: (stallholderId: string) => {
975
+ error: _apollo_client.ApolloError | undefined;
976
+ loading: boolean;
977
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
978
+ stallholderRelations: RelationType[];
979
+ };
980
+ declare const useGetResourceConnections: (resourceId: string, resourceType: EnumResourceType) => {
981
+ error: _apollo_client.ApolloError | undefined;
982
+ loading: boolean;
983
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
984
+ resourceConnections: ResourceConnectionsType;
985
+ };
986
+
987
+ declare const useCreateStallholder: () => {
988
+ createStallholder: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
989
+ error: _apollo_client.ApolloError | undefined;
990
+ loading: boolean;
991
+ };
992
+ declare const useUpdateStallholder: () => {
993
+ error: _apollo_client.ApolloError | undefined;
994
+ loading: boolean;
995
+ updateStallholder: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
996
+ };
997
+ declare const useDeleteStallholder: () => {
998
+ deleteStallholder: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
999
+ error: _apollo_client.ApolloError | undefined;
1000
+ loading: boolean;
1001
+ };
1002
+ declare const useCreateStallholderApplyForm: () => {
1003
+ createStallholderApplyForm: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
1004
+ error: _apollo_client.ApolloError | undefined;
1005
+ loading: boolean;
1006
+ };
1007
+ declare const useUpdateStallholderApplyForm: () => {
1008
+ error: _apollo_client.ApolloError | undefined;
1009
+ loading: boolean;
1010
+ updateStallholderApplyForm: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
1011
+ };
1012
+
1013
+ declare const useGetStallholders: () => {
1014
+ error: _apollo_client.ApolloError | undefined;
1015
+ loading: boolean;
1016
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
1017
+ stallholders: StallholderType[];
1018
+ };
1019
+ declare const useGetStallholder: (_id: string) => {
1020
+ error: _apollo_client.ApolloError | undefined;
1021
+ loading: boolean;
1022
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
1023
+ stallholder: StallholderType;
1024
+ };
1025
+ declare const useGetStallholdersByRegion: (region: string) => {
1026
+ error: _apollo_client.ApolloError | undefined;
1027
+ loading: boolean;
1028
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
1029
+ stallholders: StallholderType[];
1030
+ };
1031
+ declare const useSearchStallholders: (search: string, region: string) => {
1032
+ error: _apollo_client.ApolloError | undefined;
1033
+ loading: boolean;
1034
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
1035
+ stallholders: StallholderType[];
1036
+ };
1037
+ declare const useGetStallholderApplyForm: (stallholderId: string) => {
1038
+ applyForm: StallholderApplyFormType;
1039
+ error: _apollo_client.ApolloError | undefined;
1040
+ loading: boolean;
1041
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
1042
+ };
1043
+
1044
+ declare const useGetNotification: () => {
1045
+ error: _apollo_client.ApolloError | undefined;
1046
+ loading: boolean;
1047
+ notification: NotificationType;
1048
+ };
1049
+
1050
+ declare const useCreateUser: () => {
1051
+ createUser: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
1052
+ error: _apollo_client.ApolloError | undefined;
1053
+ loading: boolean;
1054
+ };
1055
+ declare const useUpdateUser: () => {
1056
+ error: _apollo_client.ApolloError | undefined;
1057
+ loading: boolean;
1058
+ updateUser: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
1059
+ };
1060
+ declare const useAddUserFavouriteResource: () => {
1061
+ addUserFavouriteResource: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
1062
+ error: _apollo_client.ApolloError | undefined;
1063
+ loading: boolean;
1064
+ };
1065
+ declare const useRemoveUserFavouriteResource: () => {
1066
+ error: _apollo_client.ApolloError | undefined;
1067
+ loading: boolean;
1068
+ removeUserFavouriteResource: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
1069
+ };
1070
+
1071
+ declare const useGetUsers: () => {
1072
+ error: _apollo_client.ApolloError | undefined;
1073
+ loading: boolean;
1074
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
1075
+ users: UserType[];
1076
+ };
1077
+ declare const useGetUser: (id: string) => {
1078
+ error: _apollo_client.ApolloError | undefined;
1079
+ loading: boolean;
1080
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
1081
+ user: UserType;
1082
+ };
1083
+ declare const useGetUserMarkets: () => {
1084
+ error: _apollo_client.ApolloError | undefined;
1085
+ loading: boolean;
1086
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
1087
+ userMarkets: MarketType[];
1088
+ };
1089
+ declare const useGetUserFavourites: () => {
1090
+ error: _apollo_client.ApolloError | undefined;
1091
+ loading: boolean;
1092
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
1093
+ userFavourites: {
1094
+ markets: MarketType[];
1095
+ stallholders: StallholderType[];
1096
+ };
1097
+ };
1098
+ declare const useGetUserNotifications: () => {
1099
+ error: _apollo_client.ApolloError | undefined;
1100
+ loading: boolean;
1101
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
1102
+ userNotifications: boolean;
1103
+ };
1104
+
1105
+ declare const stallholderBasicInfoFields: FormField[];
1106
+ declare const stallholderMultiLocation: FormField;
1107
+ declare const stallholderFullAddress: FormField;
1108
+ declare const stallholderStartDateFields: FormDateField[];
1109
+ declare const stallholderEndDateFields: FormDateField[];
1110
+ declare const stallholderLocationDescription: FormField;
1111
+ declare const availableRegionTypes: EnumRegions[];
1112
+ declare const availableCityOptions: OptionItem[];
1113
+ declare const availableRegionOptions: OptionItem[];
1114
+
1115
+ declare const stallholderElectricity: {
1116
+ details: FormField;
1117
+ isRequired: FormField;
1118
+ };
1119
+ declare const stallholderGazebo: {
1120
+ details: FormField;
1121
+ isRequired: FormField;
1122
+ };
1123
+ declare const stallholderTable: {
1124
+ details: FormField;
1125
+ isRequired: FormField;
1126
+ };
1127
+ declare const stallholderPriceRange: {
1128
+ max: FormField;
1129
+ min: FormField;
1130
+ };
1131
+ declare const stallholderStallSize: {
1132
+ depth: FormField;
1133
+ width: FormField;
1134
+ };
1135
+ declare const stallholderPackaging: FormField;
1136
+ declare const stallholderPaymentMethod: FormField;
1137
+ declare const stallholderProducedIn: FormField;
1138
+ declare const packagingOptions: OptionItem[];
1139
+ declare const producedIngOptions: OptionItem[];
1140
+ declare const paymentMethodOptions: OptionItem[];
1141
+
1142
+ declare const marketBasicInfoFields: FormField[];
1143
+ declare const stallApplicationInfo: FormField[];
1144
+ declare const marketStartDateFields: FormDateField[];
1145
+ declare const marketEndDateFields: FormDateField[];
1146
+ declare const availableTagTypes: string[];
1147
+ declare const tagOptions: OptionItem[];
1148
+ declare const rejectionPolicyOptions: OptionItem[];
1149
+
1150
+ declare const loginFields: FormField[];
1151
+ declare const registerFields: FormField[];
1152
+ declare const forgotPasswordFields: FormField[];
1153
+ declare const resetPasswordFields: FormField[];
1154
+
1155
+ declare const profileFields: FormField[];
1156
+
1157
+ declare const availableCategories: Category[];
1158
+ declare const categoryColors: Record<string, string>;
1159
+
1160
+ export { type BaseResourceType, type BaseResourceTypeFormData, type Category, type CreateForgotPasswordFormData, type CreateLoginFormData, type CreateMarketFormData, type CreateRegisterFormData, type CreateResetPasswordFormData, type CreateStallholderApplyFormFormData, type CreateStallholderFormData, type CreateUserFormData, type CreateVerifyEmailFormData, type DateTimeType, EnumInviteStatus, EnumRegions, EnumRejectionPolicy, EnumRelationResource, EnumResourceType, EnumResourceTypeIcon, EnumUserLicence, EnumUserRole, type ForgotPasswordFormData, type FormDateField, type FormField, GOOGLE_API_KEY, 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 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 VerifyEmailFormData, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, dateFormat, dateTimeSchema, defaultMarketFormValues, defaultRegion, defaultStallholderApplyFormValues, defaultStallholderFormValues, emailSchema, endDateAfterStartDateTest, endDateNotInPastTest, endTimeMustBeAfterStartTimeTest, forgotPasswordFields, forgotPasswordSchema, formatDate, formatTimestamp, getCurrentAndFutureDates, getFutureDatesAfterThreshold, globalDefaultValues, globalResourceSchema, locationSchema, loginFields, loginSchema, mapArrayToOptions, marketBasicInfoFields, marketEndDateFields, marketSchema, marketStartDateFields, packagingOptions, passwordSchema, paymentMethodOptions, producedIngOptions, profileFields, registerFields, registerSchema, rejectionPolicyOptions, removeTypename, 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, useAddUserFavouriteResource, useCreateMarket, useCreateRelation, useCreateStallholder, useCreateStallholderApplyForm, useCreateUser, useDeleteMarket, useDeleteRelation, useDeleteStallholder, useForgotPassword, useGetMarket, useGetMarketRelations, useGetMarkets, useGetMarketsByRegion, useGetMarketsNearMe, useGetNotification, useGetRelation, useGetRelationByMarketAndStallholder, useGetResourceConnections, useGetStallholder, useGetStallholderApplyForm, useGetStallholderRelations, useGetStallholders, useGetStallholdersByRegion, useGetUser, useGetUserFavourites, useGetUserMarkets, useGetUserNotifications, useGetUsers, useLocationSearch, useLogin, useLoginForm, useMarketForm, useRegister, useRegisterForm, useRemoveUserFavouriteResource, useSearchMarkets, useSearchStallholders, useStallholderApplyForm, useStallholderForm, useUpdateMarket, useUpdateRelation, useUpdateStallholder, useUpdateStallholderApplyForm, useUpdateUser, useUserForm, useVerifyEmail, userSchema, validateEmailSchema };