@timardex/cluemart-shared 1.1.80 → 1.1.82
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-5mNvL58V.d.mts → ad-BzjjHQUN.d.mts} +4 -4
- package/dist/{ad-DrHJhh2M.d.ts → ad-CWNCM_p1.d.ts} +4 -4
- package/dist/{auth-Csul8lXc.d.ts → auth-4m8SpJzV.d.ts} +1 -1
- package/dist/{auth-C0eE66vz.d.mts → auth-CxQ0oavy.d.mts} +1 -1
- package/dist/{chunk-AXCOUPK2.mjs → chunk-DFEZFUNA.mjs} +19 -12
- package/dist/chunk-DFEZFUNA.mjs.map +1 -0
- package/dist/{chunk-CCBDLLRT.mjs → chunk-DPBAPKPE.mjs} +2 -2
- package/dist/{chunk-YOGSPGDV.mjs → chunk-XXZPSRMS.mjs} +2 -2
- package/dist/chunk-XXZPSRMS.mjs.map +1 -0
- package/dist/enums/index.cjs +19 -11
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.mts +17 -12
- package/dist/enums/index.d.ts +17 -12
- package/dist/enums/index.mjs +3 -1
- package/dist/formFields/index.cjs +49 -49
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.d.mts +15 -15
- package/dist/formFields/index.d.ts +15 -15
- package/dist/formFields/index.mjs +37 -37
- package/dist/formFields/index.mjs.map +1 -1
- package/dist/{global-2SIDtEJn.d.ts → global-CIXx7hJi.d.mts} +23 -21
- package/dist/{global-CNtWgZW4.d.mts → global-wvYjcFy5.d.ts} +23 -21
- package/dist/graphql/index.cjs +224 -237
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +31 -31
- package/dist/graphql/index.d.ts +31 -31
- package/dist/graphql/index.mjs +212 -225
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +56 -51
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +12 -18
- package/dist/hooks/index.d.ts +12 -18
- package/dist/hooks/index.mjs +48 -48
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +339 -345
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +90 -89
- package/dist/index.d.ts +90 -89
- package/dist/index.mjs +307 -314
- package/dist/index.mjs.map +1 -1
- package/dist/{resourceViews-COYpf0aX.d.mts → resourceViews-BahGrfXt.d.mts} +2 -2
- package/dist/{resourceViews-DEKze3fc.d.ts → resourceViews-DgcX5Moj.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-AXCOUPK2.mjs.map +0 -1
- package/dist/chunk-YOGSPGDV.mjs.map +0 -1
- /package/dist/{chunk-CCBDLLRT.mjs.map → chunk-DPBAPKPE.mjs.map} +0 -0
package/dist/index.d.mts
CHANGED
|
@@ -26,7 +26,7 @@ declare enum EnumPaymentMethod {
|
|
|
26
26
|
}
|
|
27
27
|
declare enum EnumResourceType {
|
|
28
28
|
EVENT = "event",
|
|
29
|
-
|
|
29
|
+
VENDOR = "vendor"
|
|
30
30
|
}
|
|
31
31
|
declare enum EnumEventType {
|
|
32
32
|
EXPO = "expo",
|
|
@@ -34,27 +34,32 @@ declare enum EnumEventType {
|
|
|
34
34
|
FESTIVAL = "festival",
|
|
35
35
|
MARKET = "market"
|
|
36
36
|
}
|
|
37
|
+
declare enum EnumVendorType {
|
|
38
|
+
STALLHOLDER = "stallholder",
|
|
39
|
+
SHOP = "shop",
|
|
40
|
+
CHARITY = "charity"
|
|
41
|
+
}
|
|
37
42
|
declare enum EnumOSPlatform {
|
|
38
43
|
ANDROID = "android",
|
|
39
44
|
IOS = "ios",
|
|
40
45
|
WEB = "web"
|
|
41
46
|
}
|
|
42
47
|
declare enum EnumRelationResource {
|
|
43
|
-
|
|
44
|
-
|
|
48
|
+
EVENT_INVITE_VENDOR = "event_invite_vendor",
|
|
49
|
+
VENDOR_APPLICATION_TO_EVENT = "vendor_application_to_event"
|
|
45
50
|
}
|
|
46
51
|
declare enum EnumNotificationResourceType {
|
|
47
52
|
CREATED_EVENT = "created_event",
|
|
48
|
-
|
|
53
|
+
CREATED_VENDOR = "created_vendor",
|
|
49
54
|
APPROVED_EVENT = "approved_event",
|
|
50
|
-
|
|
55
|
+
APPROVED_VENDOR = "approved_vendor",
|
|
51
56
|
NEW_CHAT_MESSAGE = "new_chat_message",
|
|
52
|
-
|
|
53
|
-
|
|
57
|
+
EVENT_INVITE_VENDOR = "event_invite_vendor",
|
|
58
|
+
VENDOR_APPLICATION_TO_EVENT = "vendor_application_to_event"
|
|
54
59
|
}
|
|
55
60
|
declare enum EnumNotificationType {
|
|
56
61
|
EVENT = "event",
|
|
57
|
-
|
|
62
|
+
VENDOR = "vendor",
|
|
58
63
|
RELATION = "relation",
|
|
59
64
|
CHAT = "chat",
|
|
60
65
|
SYSTEM = "system"
|
|
@@ -80,11 +85,11 @@ declare enum ImageTypeEnum {
|
|
|
80
85
|
LOGO = "logo"
|
|
81
86
|
}
|
|
82
87
|
declare enum EnumUserLicence {
|
|
83
|
-
|
|
84
|
-
|
|
88
|
+
PRO_MARKET = "pro_market",
|
|
89
|
+
PRO_PLUS_MARKET = "pro_plus_market",
|
|
85
90
|
PRO_PLUS_STALLHOLDER = "pro_plus_stallholder",
|
|
86
91
|
PRO_STALLHOLDER = "pro_stallholder",
|
|
87
|
-
|
|
92
|
+
STANDARD_MARKET = "standard_market",
|
|
88
93
|
STANDARD_STALLHOLDER = "standard_stallholder"
|
|
89
94
|
}
|
|
90
95
|
declare enum EnumUserRole {
|
|
@@ -119,7 +124,7 @@ interface RelationType {
|
|
|
119
124
|
eventId: string;
|
|
120
125
|
relationDates: RelationDate[];
|
|
121
126
|
relationType: EnumRelationResource;
|
|
122
|
-
|
|
127
|
+
vendorId: string;
|
|
123
128
|
updatedAt?: string;
|
|
124
129
|
}
|
|
125
130
|
|
|
@@ -183,7 +188,7 @@ interface EventWithConnectionDatesType extends EventType {
|
|
|
183
188
|
relationDates: RelationDate[] | undefined;
|
|
184
189
|
}
|
|
185
190
|
|
|
186
|
-
type
|
|
191
|
+
type VendorLocation = {
|
|
187
192
|
dateTime: Nullable<DateTimeType> | null;
|
|
188
193
|
description?: string | null;
|
|
189
194
|
location: Nullable<LocationType> | null;
|
|
@@ -191,51 +196,53 @@ type StallholderLocation = {
|
|
|
191
196
|
resourceName?: MapMultiLocation["resourceName"];
|
|
192
197
|
resourceType?: MapMultiLocation["resourceType"];
|
|
193
198
|
};
|
|
194
|
-
interface
|
|
199
|
+
interface VendorFormData extends BaseResourceTypeFormData {
|
|
195
200
|
categories: Category[];
|
|
196
|
-
locations?:
|
|
201
|
+
locations?: VendorLocation[] | null;
|
|
197
202
|
multiLocation: boolean;
|
|
198
203
|
products?: string[] | null;
|
|
199
204
|
specialities?: string[] | null;
|
|
205
|
+
vendorType: EnumVendorType;
|
|
200
206
|
}
|
|
201
|
-
type
|
|
202
|
-
type
|
|
207
|
+
type CreateVendorFormData = CreateFormData<VendorFormData>;
|
|
208
|
+
type VendorAttributes = {
|
|
203
209
|
details?: string | null;
|
|
204
210
|
isRequired: boolean;
|
|
205
211
|
};
|
|
206
|
-
type
|
|
212
|
+
type VendorInfoFormData = {
|
|
207
213
|
_id?: string;
|
|
208
214
|
contactDetails?: ResourceContactDetailsType | null;
|
|
209
|
-
electricity:
|
|
215
|
+
electricity: VendorAttributes;
|
|
210
216
|
foodSafetyGradeFiles?: string[] | null;
|
|
211
217
|
foodSafetyGradeFilesUpload?: string[] | null;
|
|
212
|
-
gazebo:
|
|
218
|
+
gazebo: VendorAttributes;
|
|
213
219
|
packaging: string[];
|
|
214
220
|
priceRange: {
|
|
215
221
|
max: number;
|
|
216
222
|
min: number;
|
|
217
223
|
};
|
|
218
224
|
producedIn: string[];
|
|
219
|
-
|
|
225
|
+
vendorId: string;
|
|
220
226
|
stallSize: {
|
|
221
227
|
depth: number;
|
|
222
228
|
width: number;
|
|
223
229
|
};
|
|
224
|
-
table:
|
|
230
|
+
table: VendorAttributes;
|
|
225
231
|
};
|
|
226
|
-
type
|
|
227
|
-
interface
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
locations: StallholderLocation[] | null;
|
|
232
|
+
type CreateVendorInfoFormData = CreateFormData<VendorInfoFormData>;
|
|
233
|
+
interface VendorType extends BaseResourceType {
|
|
234
|
+
categories: VendorFormData["categories"];
|
|
235
|
+
locations: VendorLocation[] | null;
|
|
231
236
|
multiLocation: boolean;
|
|
232
237
|
products: string[] | null;
|
|
233
238
|
specialities: string[] | null;
|
|
239
|
+
vendorInfoId: string;
|
|
240
|
+
vendorType: EnumVendorType;
|
|
234
241
|
}
|
|
235
|
-
type
|
|
242
|
+
type VendorInfoType = Omit<VendorInfoFormData, "_id" | "foodSafetyGradeFilesUpload"> & {
|
|
236
243
|
_id: string;
|
|
237
244
|
};
|
|
238
|
-
interface
|
|
245
|
+
interface VendorWithConnectionDatesType extends VendorType {
|
|
239
246
|
relationDates: RelationDate[] | undefined;
|
|
240
247
|
}
|
|
241
248
|
|
|
@@ -357,7 +364,7 @@ type ImageObjectType = {
|
|
|
357
364
|
};
|
|
358
365
|
interface ResourceConnectionsType {
|
|
359
366
|
events: EventWithConnectionDatesType[] | null;
|
|
360
|
-
|
|
367
|
+
vendors: VendorWithConnectionDatesType[] | null;
|
|
361
368
|
}
|
|
362
369
|
interface CreateFormData<T extends FieldValues> {
|
|
363
370
|
control: Control<T, any>;
|
|
@@ -376,12 +383,12 @@ type ResourceContactDetailsType = {
|
|
|
376
383
|
mobilePhone?: string | null;
|
|
377
384
|
};
|
|
378
385
|
|
|
379
|
-
declare const
|
|
380
|
-
declare const
|
|
381
|
-
declare const
|
|
382
|
-
declare const
|
|
383
|
-
declare const
|
|
384
|
-
declare const
|
|
386
|
+
declare const vendorBasicInfoFields: FormField[];
|
|
387
|
+
declare const vendorMultiLocation: FormField;
|
|
388
|
+
declare const vendorFullAddress: FormField;
|
|
389
|
+
declare const vendorStartDateFields: FormDateField[];
|
|
390
|
+
declare const vendorEndDateFields: FormDateField[];
|
|
391
|
+
declare const vendorLocationDescription: FormField;
|
|
385
392
|
declare const availableCityOptions: OptionItem[];
|
|
386
393
|
|
|
387
394
|
interface AdminUpdateResourceType {
|
|
@@ -448,7 +455,7 @@ interface ChatType {
|
|
|
448
455
|
participants: ParticipantType[];
|
|
449
456
|
resourceInfo: {
|
|
450
457
|
eventId: string;
|
|
451
|
-
|
|
458
|
+
vendorId: string;
|
|
452
459
|
} | null;
|
|
453
460
|
updatedAt: string;
|
|
454
461
|
deletedAt: string | null;
|
|
@@ -539,7 +546,7 @@ interface UserType {
|
|
|
539
546
|
isTester: boolean;
|
|
540
547
|
favourites: {
|
|
541
548
|
events: string[];
|
|
542
|
-
|
|
549
|
+
vendors: string[];
|
|
543
550
|
};
|
|
544
551
|
firstName: string;
|
|
545
552
|
lastName: string;
|
|
@@ -550,14 +557,14 @@ interface UserType {
|
|
|
550
557
|
preferredRegion: string;
|
|
551
558
|
refreshToken: string | null;
|
|
552
559
|
role: EnumUserRole;
|
|
553
|
-
|
|
560
|
+
vendor: string | null;
|
|
554
561
|
updatedAt: string;
|
|
555
562
|
}
|
|
556
563
|
|
|
557
564
|
declare enum EnumAdShowOn {
|
|
558
565
|
FRONT_PAGE = "Front_page",
|
|
559
566
|
EVENTS_PAGE = "Events_page",
|
|
560
|
-
|
|
567
|
+
VENDORS_PAGE = "Vendors_page"
|
|
561
568
|
}
|
|
562
569
|
declare enum EnumAdStatus {
|
|
563
570
|
ACTIVE = "Active",
|
|
@@ -625,28 +632,28 @@ type ResourceViewInputType = {
|
|
|
625
632
|
};
|
|
626
633
|
};
|
|
627
634
|
|
|
628
|
-
declare const
|
|
635
|
+
declare const vendorElectricity: {
|
|
629
636
|
details: FormField;
|
|
630
637
|
isRequired: FormField;
|
|
631
638
|
};
|
|
632
|
-
declare const
|
|
639
|
+
declare const vendorGazebo: {
|
|
633
640
|
details: FormField;
|
|
634
641
|
isRequired: FormField;
|
|
635
642
|
};
|
|
636
|
-
declare const
|
|
643
|
+
declare const vendorTable: {
|
|
637
644
|
details: FormField;
|
|
638
645
|
isRequired: FormField;
|
|
639
646
|
};
|
|
640
|
-
declare const
|
|
647
|
+
declare const vendorPriceRange: {
|
|
641
648
|
max: FormField;
|
|
642
649
|
min: FormField;
|
|
643
650
|
};
|
|
644
|
-
declare const
|
|
651
|
+
declare const vendorStallSize: {
|
|
645
652
|
depth: FormField;
|
|
646
653
|
width: FormField;
|
|
647
654
|
};
|
|
648
|
-
declare const
|
|
649
|
-
declare const
|
|
655
|
+
declare const vendorPackaging: FormField;
|
|
656
|
+
declare const vendorProducedIn: FormField;
|
|
650
657
|
declare const packagingOptions: OptionItem[];
|
|
651
658
|
declare const producedIngOptions: OptionItem[];
|
|
652
659
|
|
|
@@ -925,11 +932,11 @@ declare const useGetRelation: (_id: string) => {
|
|
|
925
932
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
926
933
|
relation: RelationType;
|
|
927
934
|
};
|
|
928
|
-
declare const
|
|
935
|
+
declare const useGetRelationByEventAndVendor: (eventId: string, vendorId: string) => {
|
|
929
936
|
error: _apollo_client.ApolloError | undefined;
|
|
930
937
|
loading: boolean;
|
|
931
938
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
932
|
-
|
|
939
|
+
relationByEventAndVendor: RelationType;
|
|
933
940
|
};
|
|
934
941
|
declare const useGetEventRelations: (eventId: string) => {
|
|
935
942
|
error: _apollo_client.ApolloError | undefined;
|
|
@@ -937,11 +944,11 @@ declare const useGetEventRelations: (eventId: string) => {
|
|
|
937
944
|
loading: boolean;
|
|
938
945
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
939
946
|
};
|
|
940
|
-
declare const
|
|
947
|
+
declare const useGetVendorRelations: (vendorId: string) => {
|
|
941
948
|
error: _apollo_client.ApolloError | undefined;
|
|
942
949
|
loading: boolean;
|
|
943
950
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
944
|
-
|
|
951
|
+
vendorRelations: RelationType[];
|
|
945
952
|
};
|
|
946
953
|
declare const useGetResourceConnections: (resourceId: string, resourceType: EnumResourceType) => {
|
|
947
954
|
error: _apollo_client.ApolloError | undefined;
|
|
@@ -950,61 +957,61 @@ declare const useGetResourceConnections: (resourceId: string, resourceType: Enum
|
|
|
950
957
|
resourceConnections: ResourceConnectionsType;
|
|
951
958
|
};
|
|
952
959
|
|
|
953
|
-
declare const
|
|
954
|
-
|
|
960
|
+
declare const useCreateVendor: () => {
|
|
961
|
+
createVendor: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
955
962
|
error: _apollo_client.ApolloError | undefined;
|
|
956
963
|
loading: boolean;
|
|
957
964
|
};
|
|
958
|
-
declare const
|
|
965
|
+
declare const useUpdateVendor: () => {
|
|
959
966
|
error: _apollo_client.ApolloError | undefined;
|
|
960
967
|
loading: boolean;
|
|
961
|
-
|
|
968
|
+
updateVendor: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
962
969
|
};
|
|
963
|
-
declare const
|
|
964
|
-
|
|
970
|
+
declare const useDeleteVendor: () => {
|
|
971
|
+
deleteVendor: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
965
972
|
error: _apollo_client.ApolloError | undefined;
|
|
966
973
|
loading: boolean;
|
|
967
974
|
};
|
|
968
|
-
declare const
|
|
969
|
-
|
|
975
|
+
declare const useCreateVendorInfo: () => {
|
|
976
|
+
createVendorInfo: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
970
977
|
error: _apollo_client.ApolloError | undefined;
|
|
971
978
|
loading: boolean;
|
|
972
979
|
};
|
|
973
|
-
declare const
|
|
980
|
+
declare const useUpdateVendorInfo: () => {
|
|
974
981
|
error: _apollo_client.ApolloError | undefined;
|
|
975
982
|
loading: boolean;
|
|
976
|
-
|
|
983
|
+
updateVendorInfo: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
977
984
|
};
|
|
978
985
|
|
|
979
|
-
declare const
|
|
986
|
+
declare const useGetVendors: () => {
|
|
980
987
|
error: _apollo_client.ApolloError | undefined;
|
|
981
988
|
loading: boolean;
|
|
982
989
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
983
|
-
|
|
990
|
+
vendors: VendorType[];
|
|
984
991
|
};
|
|
985
|
-
declare const
|
|
992
|
+
declare const useGetVendor: (_id: string) => {
|
|
986
993
|
error: _apollo_client.ApolloError | undefined;
|
|
987
994
|
loading: boolean;
|
|
988
995
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
989
|
-
|
|
996
|
+
vendor: VendorType;
|
|
990
997
|
};
|
|
991
|
-
declare const
|
|
998
|
+
declare const useGetVendorsByRegion: (region: string) => {
|
|
992
999
|
error: _apollo_client.ApolloError | undefined;
|
|
993
1000
|
loading: boolean;
|
|
994
1001
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
995
|
-
|
|
1002
|
+
vendorsByRegion: VendorType[];
|
|
996
1003
|
};
|
|
997
|
-
declare const
|
|
1004
|
+
declare const useSearchVendors: (search: string, region: string) => {
|
|
998
1005
|
error: _apollo_client.ApolloError | undefined;
|
|
999
1006
|
loading: boolean;
|
|
1000
1007
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
1001
|
-
|
|
1008
|
+
vendorSearch: VendorType[];
|
|
1002
1009
|
};
|
|
1003
|
-
declare const
|
|
1010
|
+
declare const useGetVendorInfo: (vendorId: string) => {
|
|
1004
1011
|
error: _apollo_client.ApolloError | undefined;
|
|
1005
1012
|
loading: boolean;
|
|
1006
1013
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
1007
|
-
|
|
1014
|
+
vendorInfo: VendorInfoType;
|
|
1008
1015
|
};
|
|
1009
1016
|
|
|
1010
1017
|
declare const useCreateTester: () => {
|
|
@@ -1087,11 +1094,11 @@ declare const useGetUserEvents: () => {
|
|
|
1087
1094
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
1088
1095
|
userEvents: EventType[];
|
|
1089
1096
|
};
|
|
1090
|
-
declare const
|
|
1097
|
+
declare const useGetUserVendor: () => {
|
|
1091
1098
|
error: _apollo_client.ApolloError | undefined;
|
|
1092
1099
|
loading: boolean;
|
|
1093
1100
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
1094
|
-
|
|
1101
|
+
userVendor: VendorType;
|
|
1095
1102
|
};
|
|
1096
1103
|
declare const useGetUserFavourites: () => {
|
|
1097
1104
|
error: _apollo_client.ApolloError | undefined;
|
|
@@ -1099,7 +1106,7 @@ declare const useGetUserFavourites: () => {
|
|
|
1099
1106
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
1100
1107
|
userFavourites: {
|
|
1101
1108
|
events: EventType[];
|
|
1102
|
-
|
|
1109
|
+
vendors: VendorType[];
|
|
1103
1110
|
};
|
|
1104
1111
|
};
|
|
1105
1112
|
|
|
@@ -1173,20 +1180,14 @@ interface UseLocation {
|
|
|
1173
1180
|
declare const useLocationSearch: (googleApi: string) => UseLocation;
|
|
1174
1181
|
|
|
1175
1182
|
/**
|
|
1176
|
-
* Custom hook to manage the
|
|
1183
|
+
* Custom hook to manage the vendor form state and validation.
|
|
1177
1184
|
*
|
|
1178
|
-
* @param {
|
|
1179
|
-
* @returns {
|
|
1185
|
+
* @param {VendorFormData} data - The initial form data.
|
|
1186
|
+
* @returns {CreateVendorFormData} - The form methods and state.
|
|
1180
1187
|
*/
|
|
1181
|
-
declare function
|
|
1188
|
+
declare function useVendorForm(data?: VendorFormData): CreateVendorFormData;
|
|
1182
1189
|
|
|
1183
|
-
|
|
1184
|
-
* Custom hook to manage the stallholder apply form state and validation.
|
|
1185
|
-
*
|
|
1186
|
-
* @param {StallholderApplyFormFormData} data - The initial form data.
|
|
1187
|
-
* @returns {CreateStallholderInfoFormData} - The form methods and state.
|
|
1188
|
-
*/
|
|
1189
|
-
declare function useStallholderInfoForm(data?: StallholderInfoFormData): CreateStallholderInfoFormData;
|
|
1190
|
+
declare function useVendorInfoForm(data?: VendorInfoFormData): CreateVendorInfoFormData;
|
|
1190
1191
|
|
|
1191
1192
|
/**
|
|
1192
1193
|
* Custom hook to manage the event form state and validation.
|
|
@@ -1235,9 +1236,9 @@ declare function useResetPasswordForm(): CreateResetPasswordFormData;
|
|
|
1235
1236
|
declare const globalDefaultValues: BaseResourceTypeFormData;
|
|
1236
1237
|
declare const defaultEventFormValues: EventFormData;
|
|
1237
1238
|
declare const defaultEventInfoFormValues: EventInfoFormData;
|
|
1238
|
-
declare const
|
|
1239
|
-
declare const
|
|
1240
|
-
declare function mapBaseResourceTypeToFormData(data: EventFormData |
|
|
1239
|
+
declare const defaultVendorFormValues: VendorFormData;
|
|
1240
|
+
declare const defaultVendorInfoFormValues: VendorInfoFormData;
|
|
1241
|
+
declare function mapBaseResourceTypeToFormData(data: EventFormData | VendorFormData): BaseResourceTypeFormData;
|
|
1241
1242
|
|
|
1242
1243
|
declare function useTestersForm(data?: TestersFormData): CreateTestersFormData;
|
|
1243
1244
|
|
|
@@ -1347,4 +1348,4 @@ declare const availableRegionOptions: OptionItem[];
|
|
|
1347
1348
|
declare const paymentMethodOptions: OptionItem[];
|
|
1348
1349
|
declare function normalizeUrl(url: string): string;
|
|
1349
1350
|
|
|
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
|
|
1351
|
+
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 CreateTestersFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DateTimeType, type DateTimeWithPriceType, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumChatType, EnumEventType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumUserLicence, EnumUserRole, EnumVendorType, 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 Subcategory, type SubcategoryItems, type TesterType, type TestersFormData, USER_STORAGE_KEY, type UserFormData, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorLocation, type VendorType, type VendorWithConnectionDatesType, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, companyContactFields, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultRegion, defaultVendorFormValues, defaultVendorInfoFormValues, 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, statusOptions, tagOptions, testersFields, timeFormat, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAdminUpdateResourceType, useContactUs, useContactUsForm, useCreateAd, useCreateBulkNotifications, useCreateEvent, useCreateEventInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceViews, useCreateTester, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeleteRelation, useDeleteTester, useDeleteUser, useDeleteVendor, useEventForm, useEventInfoForm, useGetAd, useGetAds, useGetAdsByRegion, useGetChat, useGetChatSubscription, useGetEvent, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetRelation, useGetRelationByEventAndVendor, useGetResourceConnections, useGetResourceViews, useGetTester, useGetTesters, useGetUser, useGetUserChats, useGetUserEvents, useGetUserFavourites, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserVendor, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchEvents, useSearchVendors, useSelectPackage, useSendChatMessage, useTestersForm, useUpdateAd, useUpdateEvent, useUpdateEventInfo, useUpdateRelation, useUpdateTester, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, useVendorForm, useVendorInfoForm, validateVerificationTokenFields, vendorBasicInfoFields, vendorElectricity, vendorEndDateFields, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMultiLocation, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
|