@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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FieldValues, Control, FieldErrors, UseFormHandleSubmit, UseFormReset, UseFormSetValue, UseFormWatch } from 'react-hook-form';
|
|
2
|
-
import { EnumResourceType, EnumInviteStatus, EnumRelationResource, EnumPaymentMethod, EnumSocialMedia } from './enums/index.
|
|
2
|
+
import { EnumResourceType, EnumInviteStatus, EnumRelationResource, EnumEventType, EnumPaymentMethod, EnumSocialMedia } from './enums/index.mjs';
|
|
3
3
|
|
|
4
4
|
type RelationDate = {
|
|
5
5
|
lastUpdateBy: string;
|
|
@@ -17,7 +17,7 @@ interface RelationType {
|
|
|
17
17
|
createdAt?: string;
|
|
18
18
|
deletedAt?: string | null;
|
|
19
19
|
lastUpdateBy: EnumResourceType;
|
|
20
|
-
|
|
20
|
+
eventId: string;
|
|
21
21
|
relationDates: RelationDate[];
|
|
22
22
|
relationType: EnumRelationResource;
|
|
23
23
|
stallholderId: string;
|
|
@@ -47,38 +47,40 @@ type Requirement = {
|
|
|
47
47
|
label: string;
|
|
48
48
|
value: boolean;
|
|
49
49
|
};
|
|
50
|
-
interface
|
|
50
|
+
interface EventInfoFormData {
|
|
51
51
|
_id?: string;
|
|
52
52
|
applicationDeadlineHours: number;
|
|
53
53
|
contactDetails?: ResourceContactDetailsType | null;
|
|
54
54
|
dateTime: DateTimeWithPriceType[];
|
|
55
|
-
|
|
55
|
+
eventId: string;
|
|
56
56
|
packInTime: number;
|
|
57
57
|
paymentDueHours: number;
|
|
58
58
|
paymentInfo: PaymentInfoType[];
|
|
59
59
|
requirements?: Requirement[];
|
|
60
60
|
}
|
|
61
|
-
interface
|
|
61
|
+
interface EventFormData extends BaseResourceTypeFormData {
|
|
62
62
|
dateTime: DateTimeType[];
|
|
63
|
+
eventType: EnumEventType;
|
|
63
64
|
location: LocationType;
|
|
64
65
|
provider?: string | null;
|
|
65
66
|
rainOrShine: boolean;
|
|
66
67
|
tags: string[];
|
|
67
68
|
}
|
|
68
|
-
type
|
|
69
|
-
type
|
|
70
|
-
interface
|
|
69
|
+
type CreateEventInfoFormData = CreateFormData<EventInfoFormData>;
|
|
70
|
+
type CreateEventFormData = CreateFormData<EventFormData>;
|
|
71
|
+
interface EventType extends BaseResourceType {
|
|
71
72
|
dateTime: DateTimeType[];
|
|
73
|
+
eventInfoId: string;
|
|
74
|
+
eventType: EnumEventType;
|
|
72
75
|
location: LocationType;
|
|
73
|
-
marketInfoId: string;
|
|
74
76
|
provider: string | null;
|
|
75
77
|
rainOrShine: boolean;
|
|
76
78
|
tags: string[];
|
|
77
79
|
}
|
|
78
|
-
type
|
|
80
|
+
type EventInfoType = Omit<EventInfoFormData, "_id"> & {
|
|
79
81
|
_id: string;
|
|
80
82
|
};
|
|
81
|
-
interface
|
|
83
|
+
interface EventWithConnectionDatesType extends EventType {
|
|
82
84
|
relationDates: RelationDate[] | undefined;
|
|
83
85
|
}
|
|
84
86
|
|
|
@@ -134,7 +136,7 @@ interface StallholderType extends BaseResourceType {
|
|
|
134
136
|
type StallholderInfoType = Omit<StallholderInfoFormData, "_id" | "foodSafetyGradeFilesUpload"> & {
|
|
135
137
|
_id: string;
|
|
136
138
|
};
|
|
137
|
-
interface
|
|
139
|
+
interface StallholderWithConnectionDatesType extends StallholderType {
|
|
138
140
|
relationDates: RelationDate[] | undefined;
|
|
139
141
|
}
|
|
140
142
|
|
|
@@ -255,8 +257,8 @@ type ImageObjectType = {
|
|
|
255
257
|
name: string;
|
|
256
258
|
};
|
|
257
259
|
interface ResourceConnectionsType {
|
|
258
|
-
|
|
259
|
-
stallholders:
|
|
260
|
+
events: EventWithConnectionDatesType[] | null;
|
|
261
|
+
stallholders: StallholderWithConnectionDatesType[] | null;
|
|
260
262
|
}
|
|
261
263
|
interface CreateFormData<T extends FieldValues> {
|
|
262
264
|
control: Control<T, any>;
|
|
@@ -275,4 +277,4 @@ type ResourceContactDetailsType = {
|
|
|
275
277
|
mobilePhone?: string | null;
|
|
276
278
|
};
|
|
277
279
|
|
|
278
|
-
export type {
|
|
280
|
+
export type { RelationDate as A, BaseResourceTypeFormData as B, Category as C, DateTimeType as D, EventType as E, FormField as F, GeocodeLocation as G, StallholderLocation as H, ImageObjectType as I, StallholderAttributes as J, StallholderWithConnectionDatesType as K, LocationType as L, MapMultiLocation as M, Nullable as N, OptionItem as O, PosterUsageType as P, Requirement as R, StallType as S, FormDateField as a, EventInfoType as b, RelationType as c, ResourceConnectionsType as d, StallholderType as e, StallholderInfoType as f, StallholderFormData as g, CreateStallholderFormData as h, StallholderInfoFormData as i, CreateStallholderInfoFormData as j, EventFormData as k, CreateEventFormData as l, EventInfoFormData as m, CreateEventInfoFormData as n, ResourceImageType as o, SocialMediaType as p, OwnerType as q, BaseResourceType as r, Region as s, SubcategoryItems as t, Subcategory as u, CreateFormData as v, ResourceContactDetailsType as w, DateTimeWithPriceType as x, PaymentInfoType as y, EventWithConnectionDatesType as z };
|