@timardex/cluemart-shared 1.1.78 → 1.1.80
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/{ad-BoyPTKzO.d.mts → ad-5mNvL58V.d.mts} +4 -4
- package/dist/{ad-ByaFgKCJ.d.ts → ad-DrHJhh2M.d.ts} +4 -4
- package/dist/{auth-CsMldwsP.d.mts → auth-C0eE66vz.d.mts} +1 -1
- package/dist/{auth-CatvNkT_.d.ts → auth-Csul8lXc.d.ts} +1 -1
- package/dist/{chunk-ERBPRUAF.mjs → chunk-AXCOUPK2.mjs} +20 -12
- package/dist/chunk-AXCOUPK2.mjs.map +1 -0
- package/dist/{chunk-JZMSWUO5.mjs → chunk-CCBDLLRT.mjs} +2 -2
- package/dist/{chunk-JFIG6CV2.mjs → chunk-YOGSPGDV.mjs} +2 -2
- package/dist/chunk-YOGSPGDV.mjs.map +1 -0
- package/dist/enums/index.cjs +20 -11
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.mts +18 -12
- package/dist/enums/index.d.ts +18 -12
- package/dist/enums/index.mjs +3 -1
- package/dist/formFields/index.cjs +26 -26
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.d.mts +7 -7
- package/dist/formFields/index.d.ts +7 -7
- package/dist/formFields/index.mjs +23 -23
- package/dist/formFields/index.mjs.map +1 -1
- package/dist/{global-Dt-vAIF9.d.mts → global-2SIDtEJn.d.ts} +17 -15
- package/dist/{global-BsANkXhj.d.ts → global-CNtWgZW4.d.mts} +17 -15
- package/dist/graphql/index.cjs +251 -248
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +33 -33
- package/dist/graphql/index.d.ts +33 -33
- package/dist/graphql/index.mjs +238 -235
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +48 -36
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +15 -15
- package/dist/hooks/index.d.ts +15 -15
- package/dist/hooks/index.mjs +39 -33
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +337 -320
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +82 -74
- package/dist/index.d.ts +82 -74
- package/dist/index.mjs +313 -297
- package/dist/index.mjs.map +1 -1
- package/dist/{resourceViews-ja9Qif1X.d.mts → resourceViews-COYpf0aX.d.mts} +2 -2
- package/dist/{resourceViews-C2CYUMC0.d.ts → resourceViews-DEKze3fc.d.ts} +2 -2
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +4 -4
- package/dist/types/index.d.ts +4 -4
- package/dist/types/index.mjs +1 -1
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-ERBPRUAF.mjs.map +0 -1
- package/dist/chunk-JFIG6CV2.mjs.map +0 -1
- /package/dist/{chunk-JZMSWUO5.mjs.map → chunk-CCBDLLRT.mjs.map} +0 -0
package/dist/index.d.mts
CHANGED
|
@@ -25,29 +25,35 @@ declare enum EnumPaymentMethod {
|
|
|
25
25
|
STRIPE = "stripe"
|
|
26
26
|
}
|
|
27
27
|
declare enum EnumResourceType {
|
|
28
|
-
|
|
28
|
+
EVENT = "event",
|
|
29
29
|
STALLHOLDER = "stallholder"
|
|
30
30
|
}
|
|
31
|
+
declare enum EnumEventType {
|
|
32
|
+
EXPO = "expo",
|
|
33
|
+
FAIR = "fair",
|
|
34
|
+
FESTIVAL = "festival",
|
|
35
|
+
MARKET = "market"
|
|
36
|
+
}
|
|
31
37
|
declare enum EnumOSPlatform {
|
|
32
38
|
ANDROID = "android",
|
|
33
39
|
IOS = "ios",
|
|
34
40
|
WEB = "web"
|
|
35
41
|
}
|
|
36
42
|
declare enum EnumRelationResource {
|
|
37
|
-
|
|
38
|
-
|
|
43
|
+
EVENT_INVITE_STALLHOLDER = "event_invite_stallholder",
|
|
44
|
+
STALLHOLDER_APPLICATION_TO_EVENT = "stallholder_application_to_event"
|
|
39
45
|
}
|
|
40
46
|
declare enum EnumNotificationResourceType {
|
|
41
|
-
|
|
47
|
+
CREATED_EVENT = "created_event",
|
|
42
48
|
CREATED_STALLHOLDER = "created_stallholder",
|
|
43
|
-
|
|
49
|
+
APPROVED_EVENT = "approved_event",
|
|
44
50
|
APPROVED_STALLHOLDER = "approved_stallholder",
|
|
45
51
|
NEW_CHAT_MESSAGE = "new_chat_message",
|
|
46
|
-
|
|
47
|
-
|
|
52
|
+
EVENT_INVITE_STALLHOLDER = "event_invite_stallholder",
|
|
53
|
+
STALLHOLDER_APPLICATION_TO_EVENT = "stallholder_application_to_event"
|
|
48
54
|
}
|
|
49
55
|
declare enum EnumNotificationType {
|
|
50
|
-
|
|
56
|
+
EVENT = "event",
|
|
51
57
|
STALLHOLDER = "stallholder",
|
|
52
58
|
RELATION = "relation",
|
|
53
59
|
CHAT = "chat",
|
|
@@ -74,11 +80,11 @@ declare enum ImageTypeEnum {
|
|
|
74
80
|
LOGO = "logo"
|
|
75
81
|
}
|
|
76
82
|
declare enum EnumUserLicence {
|
|
77
|
-
|
|
78
|
-
|
|
83
|
+
PRO_EVENT = "pro_event",
|
|
84
|
+
PRO_PLUS_EVENT = "pro_plus_event",
|
|
79
85
|
PRO_PLUS_STALLHOLDER = "pro_plus_stallholder",
|
|
80
86
|
PRO_STALLHOLDER = "pro_stallholder",
|
|
81
|
-
|
|
87
|
+
STANDARD_EVENT = "standard_event",
|
|
82
88
|
STANDARD_STALLHOLDER = "standard_stallholder"
|
|
83
89
|
}
|
|
84
90
|
declare enum EnumUserRole {
|
|
@@ -110,7 +116,7 @@ interface RelationType {
|
|
|
110
116
|
createdAt?: string;
|
|
111
117
|
deletedAt?: string | null;
|
|
112
118
|
lastUpdateBy: EnumResourceType;
|
|
113
|
-
|
|
119
|
+
eventId: string;
|
|
114
120
|
relationDates: RelationDate[];
|
|
115
121
|
relationType: EnumRelationResource;
|
|
116
122
|
stallholderId: string;
|
|
@@ -140,38 +146,40 @@ type Requirement = {
|
|
|
140
146
|
label: string;
|
|
141
147
|
value: boolean;
|
|
142
148
|
};
|
|
143
|
-
interface
|
|
149
|
+
interface EventInfoFormData {
|
|
144
150
|
_id?: string;
|
|
145
151
|
applicationDeadlineHours: number;
|
|
146
152
|
contactDetails?: ResourceContactDetailsType | null;
|
|
147
153
|
dateTime: DateTimeWithPriceType[];
|
|
148
|
-
|
|
154
|
+
eventId: string;
|
|
149
155
|
packInTime: number;
|
|
150
156
|
paymentDueHours: number;
|
|
151
157
|
paymentInfo: PaymentInfoType[];
|
|
152
158
|
requirements?: Requirement[];
|
|
153
159
|
}
|
|
154
|
-
interface
|
|
160
|
+
interface EventFormData extends BaseResourceTypeFormData {
|
|
155
161
|
dateTime: DateTimeType[];
|
|
162
|
+
eventType: EnumEventType;
|
|
156
163
|
location: LocationType;
|
|
157
164
|
provider?: string | null;
|
|
158
165
|
rainOrShine: boolean;
|
|
159
166
|
tags: string[];
|
|
160
167
|
}
|
|
161
|
-
type
|
|
162
|
-
type
|
|
163
|
-
interface
|
|
168
|
+
type CreateEventInfoFormData = CreateFormData<EventInfoFormData>;
|
|
169
|
+
type CreateEventFormData = CreateFormData<EventFormData>;
|
|
170
|
+
interface EventType extends BaseResourceType {
|
|
164
171
|
dateTime: DateTimeType[];
|
|
172
|
+
eventInfoId: string;
|
|
173
|
+
eventType: EnumEventType;
|
|
165
174
|
location: LocationType;
|
|
166
|
-
marketInfoId: string;
|
|
167
175
|
provider: string | null;
|
|
168
176
|
rainOrShine: boolean;
|
|
169
177
|
tags: string[];
|
|
170
178
|
}
|
|
171
|
-
type
|
|
179
|
+
type EventInfoType = Omit<EventInfoFormData, "_id"> & {
|
|
172
180
|
_id: string;
|
|
173
181
|
};
|
|
174
|
-
interface
|
|
182
|
+
interface EventWithConnectionDatesType extends EventType {
|
|
175
183
|
relationDates: RelationDate[] | undefined;
|
|
176
184
|
}
|
|
177
185
|
|
|
@@ -227,7 +235,7 @@ interface StallholderType extends BaseResourceType {
|
|
|
227
235
|
type StallholderInfoType = Omit<StallholderInfoFormData, "_id" | "foodSafetyGradeFilesUpload"> & {
|
|
228
236
|
_id: string;
|
|
229
237
|
};
|
|
230
|
-
interface
|
|
238
|
+
interface StallholderWithConnectionDatesType extends StallholderType {
|
|
231
239
|
relationDates: RelationDate[] | undefined;
|
|
232
240
|
}
|
|
233
241
|
|
|
@@ -348,8 +356,8 @@ type ImageObjectType = {
|
|
|
348
356
|
name: string;
|
|
349
357
|
};
|
|
350
358
|
interface ResourceConnectionsType {
|
|
351
|
-
|
|
352
|
-
stallholders:
|
|
359
|
+
events: EventWithConnectionDatesType[] | null;
|
|
360
|
+
stallholders: StallholderWithConnectionDatesType[] | null;
|
|
353
361
|
}
|
|
354
362
|
interface CreateFormData<T extends FieldValues> {
|
|
355
363
|
control: Control<T, any>;
|
|
@@ -439,7 +447,7 @@ interface ChatType {
|
|
|
439
447
|
messages: ChatMessageType[];
|
|
440
448
|
participants: ParticipantType[];
|
|
441
449
|
resourceInfo: {
|
|
442
|
-
|
|
450
|
+
eventId: string;
|
|
443
451
|
stallholderId: string;
|
|
444
452
|
} | null;
|
|
445
453
|
updatedAt: string;
|
|
@@ -530,13 +538,13 @@ interface UserType {
|
|
|
530
538
|
email: string;
|
|
531
539
|
isTester: boolean;
|
|
532
540
|
favourites: {
|
|
533
|
-
|
|
541
|
+
events: string[];
|
|
534
542
|
stallholders: string[];
|
|
535
543
|
};
|
|
536
544
|
firstName: string;
|
|
537
545
|
lastName: string;
|
|
538
546
|
licences: EnumUserLicence[] | null;
|
|
539
|
-
|
|
547
|
+
events: string[] | null;
|
|
540
548
|
password: string;
|
|
541
549
|
platform: EnumOSPlatform | null;
|
|
542
550
|
preferredRegion: string;
|
|
@@ -548,7 +556,7 @@ interface UserType {
|
|
|
548
556
|
|
|
549
557
|
declare enum EnumAdShowOn {
|
|
550
558
|
FRONT_PAGE = "Front_page",
|
|
551
|
-
|
|
559
|
+
EVENTS_PAGE = "Events_page",
|
|
552
560
|
STALLHOLDERS_PAGE = "Stallholders_page"
|
|
553
561
|
}
|
|
554
562
|
declare enum EnumAdStatus {
|
|
@@ -642,17 +650,17 @@ declare const stallholderProducedIn: FormField;
|
|
|
642
650
|
declare const packagingOptions: OptionItem[];
|
|
643
651
|
declare const producedIngOptions: OptionItem[];
|
|
644
652
|
|
|
645
|
-
declare const
|
|
646
|
-
declare const
|
|
647
|
-
declare const
|
|
653
|
+
declare const eventBasicInfoFields: FormField[];
|
|
654
|
+
declare const eventStartDateFields: FormDateField[];
|
|
655
|
+
declare const eventEndDateFields: FormDateField[];
|
|
648
656
|
declare const availableTagTypes: {
|
|
649
657
|
icon: string;
|
|
650
658
|
label: string;
|
|
651
659
|
}[];
|
|
652
660
|
declare const tagOptions: OptionItem[];
|
|
653
661
|
|
|
654
|
-
declare const
|
|
655
|
-
declare const
|
|
662
|
+
declare const eventInfo: FormField[];
|
|
663
|
+
declare const eventInfoPaymentInfo: FormField[];
|
|
656
664
|
declare const requirementsOptions: Requirement[];
|
|
657
665
|
declare const stallTypeOptions: StallType[];
|
|
658
666
|
|
|
@@ -762,70 +770,70 @@ declare const useContactUs: () => {
|
|
|
762
770
|
loading: boolean;
|
|
763
771
|
};
|
|
764
772
|
|
|
765
|
-
declare const
|
|
766
|
-
|
|
773
|
+
declare const useCreateEvent: () => {
|
|
774
|
+
createEvent: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
767
775
|
error: _apollo_client.ApolloError | undefined;
|
|
768
776
|
loading: boolean;
|
|
769
777
|
};
|
|
770
|
-
declare const
|
|
778
|
+
declare const useUpdateEvent: () => {
|
|
771
779
|
error: _apollo_client.ApolloError | undefined;
|
|
772
780
|
loading: boolean;
|
|
773
|
-
|
|
781
|
+
updateEvent: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
774
782
|
};
|
|
775
|
-
declare const
|
|
776
|
-
|
|
783
|
+
declare const useDeleteEvent: () => {
|
|
784
|
+
deleteEvent: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
777
785
|
error: _apollo_client.ApolloError | undefined;
|
|
778
786
|
loading: boolean;
|
|
779
787
|
};
|
|
780
|
-
declare const
|
|
781
|
-
|
|
788
|
+
declare const useCreateEventInfo: () => {
|
|
789
|
+
createEventInfo: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
782
790
|
error: _apollo_client.ApolloError | undefined;
|
|
783
791
|
loading: boolean;
|
|
784
792
|
};
|
|
785
|
-
declare const
|
|
793
|
+
declare const useUpdateEventInfo: () => {
|
|
786
794
|
error: _apollo_client.ApolloError | undefined;
|
|
787
795
|
loading: boolean;
|
|
788
|
-
|
|
796
|
+
updateEventInfo: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
789
797
|
};
|
|
790
798
|
|
|
791
|
-
declare const
|
|
799
|
+
declare const useGetEvents: () => {
|
|
792
800
|
error: _apollo_client.ApolloError | undefined;
|
|
801
|
+
events: EventType[];
|
|
793
802
|
loading: boolean;
|
|
794
|
-
markets: MarketType[];
|
|
795
803
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
796
804
|
};
|
|
797
|
-
declare const
|
|
805
|
+
declare const useGetEvent: (_id: string) => {
|
|
798
806
|
error: _apollo_client.ApolloError | undefined;
|
|
807
|
+
event: EventType;
|
|
799
808
|
loading: boolean;
|
|
800
|
-
market: MarketType;
|
|
801
809
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
802
810
|
};
|
|
803
|
-
declare const
|
|
811
|
+
declare const useGetEventsByRegion: (region: string) => {
|
|
804
812
|
error: _apollo_client.ApolloError | undefined;
|
|
813
|
+
eventsByRegion: EventType[];
|
|
805
814
|
loading: boolean;
|
|
806
|
-
marketsByRegion: MarketType[];
|
|
807
815
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
808
816
|
};
|
|
809
|
-
declare const
|
|
817
|
+
declare const useSearchEvents: (search: string, region: string) => {
|
|
810
818
|
error: _apollo_client.ApolloError | undefined;
|
|
819
|
+
eventsSearch: EventType[];
|
|
811
820
|
loading: boolean;
|
|
812
|
-
marketsSearch: MarketType[];
|
|
813
821
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
814
822
|
};
|
|
815
|
-
declare const
|
|
823
|
+
declare const useGetEventsNearMe: (location: {
|
|
816
824
|
latitude: number;
|
|
817
825
|
longitude: number;
|
|
818
826
|
radius?: number;
|
|
819
827
|
}) => {
|
|
820
828
|
error: _apollo_client.ApolloError | undefined;
|
|
829
|
+
eventsNearMe: EventType[];
|
|
821
830
|
loading: boolean;
|
|
822
|
-
marketsNearMe: MarketType[];
|
|
823
831
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
824
832
|
};
|
|
825
|
-
declare const
|
|
833
|
+
declare const useGetEventInfo: (eventId: string) => {
|
|
826
834
|
error: _apollo_client.ApolloError | undefined;
|
|
835
|
+
eventInfo: EventInfoType;
|
|
827
836
|
loading: boolean;
|
|
828
|
-
marketInfo: MarketInfoType;
|
|
829
837
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
830
838
|
};
|
|
831
839
|
|
|
@@ -917,16 +925,16 @@ declare const useGetRelation: (_id: string) => {
|
|
|
917
925
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
918
926
|
relation: RelationType;
|
|
919
927
|
};
|
|
920
|
-
declare const
|
|
928
|
+
declare const useGetRelationByEventAndStallholder: (eventId: string, stallholderId: string) => {
|
|
921
929
|
error: _apollo_client.ApolloError | undefined;
|
|
922
930
|
loading: boolean;
|
|
923
931
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
924
|
-
|
|
932
|
+
relationByEventAndStallholder: RelationType;
|
|
925
933
|
};
|
|
926
|
-
declare const
|
|
934
|
+
declare const useGetEventRelations: (eventId: string) => {
|
|
927
935
|
error: _apollo_client.ApolloError | undefined;
|
|
936
|
+
eventRelations: RelationType[];
|
|
928
937
|
loading: boolean;
|
|
929
|
-
marketRelations: RelationType[];
|
|
930
938
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
931
939
|
};
|
|
932
940
|
declare const useGetStallholderRelations: (stallholderId: string) => {
|
|
@@ -1073,11 +1081,11 @@ declare const useGetUser: (_id: string) => {
|
|
|
1073
1081
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
1074
1082
|
user: UserType;
|
|
1075
1083
|
};
|
|
1076
|
-
declare const
|
|
1084
|
+
declare const useGetUserEvents: () => {
|
|
1077
1085
|
error: _apollo_client.ApolloError | undefined;
|
|
1078
1086
|
loading: boolean;
|
|
1079
1087
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
1080
|
-
|
|
1088
|
+
userEvents: EventType[];
|
|
1081
1089
|
};
|
|
1082
1090
|
declare const useGetUserStallholder: () => {
|
|
1083
1091
|
error: _apollo_client.ApolloError | undefined;
|
|
@@ -1090,7 +1098,7 @@ declare const useGetUserFavourites: () => {
|
|
|
1090
1098
|
loading: boolean;
|
|
1091
1099
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
1092
1100
|
userFavourites: {
|
|
1093
|
-
|
|
1101
|
+
events: EventType[];
|
|
1094
1102
|
stallholders: StallholderType[];
|
|
1095
1103
|
};
|
|
1096
1104
|
};
|
|
@@ -1181,20 +1189,20 @@ declare function useStallholderForm(data?: StallholderFormData): CreateStallhold
|
|
|
1181
1189
|
declare function useStallholderInfoForm(data?: StallholderInfoFormData): CreateStallholderInfoFormData;
|
|
1182
1190
|
|
|
1183
1191
|
/**
|
|
1184
|
-
* Custom hook to manage the
|
|
1192
|
+
* Custom hook to manage the event form state and validation.
|
|
1185
1193
|
*
|
|
1186
|
-
* @param {
|
|
1187
|
-
* @returns {
|
|
1194
|
+
* @param {EventFormData} data - The initial form data.
|
|
1195
|
+
* @returns {CreateEventFormData} - The form methods and state.
|
|
1188
1196
|
*/
|
|
1189
|
-
declare function
|
|
1197
|
+
declare function useEventForm(data?: EventFormData): CreateEventFormData;
|
|
1190
1198
|
|
|
1191
1199
|
/**
|
|
1192
|
-
* Custom hook to manage the
|
|
1200
|
+
* Custom hook to manage the event form state and validation.
|
|
1193
1201
|
*
|
|
1194
|
-
* @param {
|
|
1195
|
-
* @returns {
|
|
1202
|
+
* @param {EventInfoFormData} data - The initial form data.
|
|
1203
|
+
* @returns {CreateEventInfoFormData} - The form methods and state.
|
|
1196
1204
|
*/
|
|
1197
|
-
declare function
|
|
1205
|
+
declare function useEventInfoForm(data?: EventInfoFormData): CreateEventInfoFormData;
|
|
1198
1206
|
|
|
1199
1207
|
/**
|
|
1200
1208
|
* Custom hook to manage the user form state and validation.
|
|
@@ -1225,11 +1233,11 @@ declare function useValidateVerificationTokenForm(): CreateValidateVerificationT
|
|
|
1225
1233
|
declare function useResetPasswordForm(): CreateResetPasswordFormData;
|
|
1226
1234
|
|
|
1227
1235
|
declare const globalDefaultValues: BaseResourceTypeFormData;
|
|
1228
|
-
declare const
|
|
1229
|
-
declare const
|
|
1236
|
+
declare const defaultEventFormValues: EventFormData;
|
|
1237
|
+
declare const defaultEventInfoFormValues: EventInfoFormData;
|
|
1230
1238
|
declare const defaultStallholderFormValues: StallholderFormData;
|
|
1231
1239
|
declare const defaultStallholderInfoFormValues: StallholderInfoFormData;
|
|
1232
|
-
declare function mapBaseResourceTypeToFormData(data:
|
|
1240
|
+
declare function mapBaseResourceTypeToFormData(data: EventFormData | StallholderFormData): BaseResourceTypeFormData;
|
|
1233
1241
|
|
|
1234
1242
|
declare function useTestersForm(data?: TestersFormData): CreateTestersFormData;
|
|
1235
1243
|
|
|
@@ -1339,4 +1347,4 @@ declare const availableRegionOptions: OptionItem[];
|
|
|
1339
1347
|
declare const paymentMethodOptions: OptionItem[];
|
|
1340
1348
|
declare function normalizeUrl(url: string): string;
|
|
1341
1349
|
|
|
1342
|
-
export { type AdFormData, type AdType, type AdminUpdateResourceType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type
|
|
1350
|
+
export { type AdFormData, type AdType, type AdminUpdateResourceType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateStallholderFormData, type CreateStallholderInfoFormData, type CreateTestersFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type DateTimeType, type DateTimeWithPriceType, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumChatType, EnumEventType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumUserLicence, EnumUserRole, type EventFormData, type EventInfoFormData, type EventInfoType, type EventType, type EventWithConnectionDatesType, type FormDateField, type FormField, type GeocodeLocation, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, type OwnerType, type ParticipantType, type PaymentInfoType, type PlacePrediction, type PosterInputType, type PosterUsageType, type Region, type RegisterFormData, type RelationDate, type RelationType, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceImageType, type ResourceViewEntry, type ResourceViewInputType, type ResourceViewsType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SocialMediaType, type StallType, type StallholderAttributes, type StallholderFormData, type StallholderInfoFormData, type StallholderInfoType, type StallholderLocation, type StallholderType, type StallholderWithConnectionDatesType, type Subcategory, type SubcategoryItems, type TesterType, type TestersFormData, USER_STORAGE_KEY, type UserFormData, type UserType, type ValidateVerificationTokenFormData, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, companyContactFields, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultRegion, defaultStallholderFormValues, defaultStallholderInfoFormValues, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, packagingOptions, paymentMethodOptions, producedIngOptions, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, stallholderBasicInfoFields, stallholderElectricity, stallholderEndDateFields, stallholderFullAddress, stallholderGazebo, stallholderLocationDescription, stallholderMultiLocation, stallholderPackaging, stallholderPriceRange, stallholderProducedIn, stallholderStallSize, stallholderStartDateFields, stallholderTable, statusOptions, tagOptions, testersFields, timeFormat, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAdminUpdateResourceType, useContactUs, useContactUsForm, useCreateAd, useCreateBulkNotifications, useCreateEvent, useCreateEventInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceViews, useCreateStallholder, useCreateStallholderInfo, useCreateTester, useCreateUser, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeleteRelation, useDeleteStallholder, useDeleteTester, useDeleteUser, useEventForm, useEventInfoForm, useGetAd, useGetAds, useGetAdsByRegion, useGetChat, useGetChatSubscription, useGetEvent, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetRelation, useGetRelationByEventAndStallholder, useGetResourceConnections, useGetResourceViews, useGetStallholder, useGetStallholderInfo, useGetStallholderRelations, useGetStallholders, useGetStallholdersByRegion, useGetTester, useGetTesters, useGetUser, useGetUserChats, useGetUserEvents, useGetUserFavourites, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserStallholder, useGetUsers, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchEvents, useSearchStallholders, useSelectPackage, useSendChatMessage, useStallholderForm, useStallholderInfoForm, useTestersForm, useUpdateAd, useUpdateEvent, useUpdateEventInfo, useUpdateRelation, useUpdateStallholder, useUpdateStallholderInfo, useUpdateTester, useUpdateUser, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, validateVerificationTokenFields };
|