@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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FieldValues, Control, FieldErrors, UseFormHandleSubmit, UseFormReset, UseFormSetValue, UseFormWatch } from 'react-hook-form';
|
|
2
|
-
import { EnumResourceType, EnumInviteStatus, EnumRelationResource, EnumEventType, EnumPaymentMethod, EnumSocialMedia } from './enums/index.
|
|
2
|
+
import { EnumResourceType, EnumInviteStatus, EnumRelationResource, EnumEventType, EnumPaymentMethod, EnumVendorType, EnumSocialMedia } from './enums/index.mjs';
|
|
3
3
|
|
|
4
4
|
type RelationDate = {
|
|
5
5
|
lastUpdateBy: string;
|
|
@@ -20,7 +20,7 @@ interface RelationType {
|
|
|
20
20
|
eventId: string;
|
|
21
21
|
relationDates: RelationDate[];
|
|
22
22
|
relationType: EnumRelationResource;
|
|
23
|
-
|
|
23
|
+
vendorId: string;
|
|
24
24
|
updatedAt?: string;
|
|
25
25
|
}
|
|
26
26
|
|
|
@@ -84,7 +84,7 @@ interface EventWithConnectionDatesType extends EventType {
|
|
|
84
84
|
relationDates: RelationDate[] | undefined;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
type
|
|
87
|
+
type VendorLocation = {
|
|
88
88
|
dateTime: Nullable<DateTimeType> | null;
|
|
89
89
|
description?: string | null;
|
|
90
90
|
location: Nullable<LocationType> | null;
|
|
@@ -92,51 +92,53 @@ type StallholderLocation = {
|
|
|
92
92
|
resourceName?: MapMultiLocation["resourceName"];
|
|
93
93
|
resourceType?: MapMultiLocation["resourceType"];
|
|
94
94
|
};
|
|
95
|
-
interface
|
|
95
|
+
interface VendorFormData extends BaseResourceTypeFormData {
|
|
96
96
|
categories: Category[];
|
|
97
|
-
locations?:
|
|
97
|
+
locations?: VendorLocation[] | null;
|
|
98
98
|
multiLocation: boolean;
|
|
99
99
|
products?: string[] | null;
|
|
100
100
|
specialities?: string[] | null;
|
|
101
|
+
vendorType: EnumVendorType;
|
|
101
102
|
}
|
|
102
|
-
type
|
|
103
|
-
type
|
|
103
|
+
type CreateVendorFormData = CreateFormData<VendorFormData>;
|
|
104
|
+
type VendorAttributes = {
|
|
104
105
|
details?: string | null;
|
|
105
106
|
isRequired: boolean;
|
|
106
107
|
};
|
|
107
|
-
type
|
|
108
|
+
type VendorInfoFormData = {
|
|
108
109
|
_id?: string;
|
|
109
110
|
contactDetails?: ResourceContactDetailsType | null;
|
|
110
|
-
electricity:
|
|
111
|
+
electricity: VendorAttributes;
|
|
111
112
|
foodSafetyGradeFiles?: string[] | null;
|
|
112
113
|
foodSafetyGradeFilesUpload?: string[] | null;
|
|
113
|
-
gazebo:
|
|
114
|
+
gazebo: VendorAttributes;
|
|
114
115
|
packaging: string[];
|
|
115
116
|
priceRange: {
|
|
116
117
|
max: number;
|
|
117
118
|
min: number;
|
|
118
119
|
};
|
|
119
120
|
producedIn: string[];
|
|
120
|
-
|
|
121
|
+
vendorId: string;
|
|
121
122
|
stallSize: {
|
|
122
123
|
depth: number;
|
|
123
124
|
width: number;
|
|
124
125
|
};
|
|
125
|
-
table:
|
|
126
|
+
table: VendorAttributes;
|
|
126
127
|
};
|
|
127
|
-
type
|
|
128
|
-
interface
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
locations: StallholderLocation[] | null;
|
|
128
|
+
type CreateVendorInfoFormData = CreateFormData<VendorInfoFormData>;
|
|
129
|
+
interface VendorType extends BaseResourceType {
|
|
130
|
+
categories: VendorFormData["categories"];
|
|
131
|
+
locations: VendorLocation[] | null;
|
|
132
132
|
multiLocation: boolean;
|
|
133
133
|
products: string[] | null;
|
|
134
134
|
specialities: string[] | null;
|
|
135
|
+
vendorInfoId: string;
|
|
136
|
+
vendorType: EnumVendorType;
|
|
135
137
|
}
|
|
136
|
-
type
|
|
138
|
+
type VendorInfoType = Omit<VendorInfoFormData, "_id" | "foodSafetyGradeFilesUpload"> & {
|
|
137
139
|
_id: string;
|
|
138
140
|
};
|
|
139
|
-
interface
|
|
141
|
+
interface VendorWithConnectionDatesType extends VendorType {
|
|
140
142
|
relationDates: RelationDate[] | undefined;
|
|
141
143
|
}
|
|
142
144
|
|
|
@@ -258,7 +260,7 @@ type ImageObjectType = {
|
|
|
258
260
|
};
|
|
259
261
|
interface ResourceConnectionsType {
|
|
260
262
|
events: EventWithConnectionDatesType[] | null;
|
|
261
|
-
|
|
263
|
+
vendors: VendorWithConnectionDatesType[] | null;
|
|
262
264
|
}
|
|
263
265
|
interface CreateFormData<T extends FieldValues> {
|
|
264
266
|
control: Control<T, any>;
|
|
@@ -277,4 +279,4 @@ type ResourceContactDetailsType = {
|
|
|
277
279
|
mobilePhone?: string | null;
|
|
278
280
|
};
|
|
279
281
|
|
|
280
|
-
export type {
|
|
282
|
+
export type { VendorLocation as A, BaseResourceTypeFormData as B, Category as C, DateTimeType as D, EventType as E, FormField as F, GeocodeLocation as G, VendorAttributes as H, ImageObjectType as I, VendorWithConnectionDatesType as J, LocationType as L, MapMultiLocation as M, Nullable as N, OptionItem as O, PosterUsageType as P, Requirement as R, StallType as S, VendorType as V, FormDateField as a, EventInfoType as b, RelationType as c, ResourceConnectionsType as d, VendorInfoType as e, VendorFormData as f, CreateVendorFormData as g, VendorInfoFormData as h, CreateVendorInfoFormData as i, EventFormData as j, CreateEventFormData as k, EventInfoFormData as l, CreateEventInfoFormData as m, ResourceImageType as n, SocialMediaType as o, OwnerType as p, BaseResourceType as q, Region as r, SubcategoryItems as s, Subcategory as t, CreateFormData as u, ResourceContactDetailsType as v, DateTimeWithPriceType as w, PaymentInfoType as x, EventWithConnectionDatesType as y, RelationDate as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FieldValues, Control, FieldErrors, UseFormHandleSubmit, UseFormReset, UseFormSetValue, UseFormWatch } from 'react-hook-form';
|
|
2
|
-
import { EnumResourceType, EnumInviteStatus, EnumRelationResource, EnumEventType, EnumPaymentMethod, EnumSocialMedia } from './enums/index.
|
|
2
|
+
import { EnumResourceType, EnumInviteStatus, EnumRelationResource, EnumEventType, EnumPaymentMethod, EnumVendorType, EnumSocialMedia } from './enums/index.js';
|
|
3
3
|
|
|
4
4
|
type RelationDate = {
|
|
5
5
|
lastUpdateBy: string;
|
|
@@ -20,7 +20,7 @@ interface RelationType {
|
|
|
20
20
|
eventId: string;
|
|
21
21
|
relationDates: RelationDate[];
|
|
22
22
|
relationType: EnumRelationResource;
|
|
23
|
-
|
|
23
|
+
vendorId: string;
|
|
24
24
|
updatedAt?: string;
|
|
25
25
|
}
|
|
26
26
|
|
|
@@ -84,7 +84,7 @@ interface EventWithConnectionDatesType extends EventType {
|
|
|
84
84
|
relationDates: RelationDate[] | undefined;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
type
|
|
87
|
+
type VendorLocation = {
|
|
88
88
|
dateTime: Nullable<DateTimeType> | null;
|
|
89
89
|
description?: string | null;
|
|
90
90
|
location: Nullable<LocationType> | null;
|
|
@@ -92,51 +92,53 @@ type StallholderLocation = {
|
|
|
92
92
|
resourceName?: MapMultiLocation["resourceName"];
|
|
93
93
|
resourceType?: MapMultiLocation["resourceType"];
|
|
94
94
|
};
|
|
95
|
-
interface
|
|
95
|
+
interface VendorFormData extends BaseResourceTypeFormData {
|
|
96
96
|
categories: Category[];
|
|
97
|
-
locations?:
|
|
97
|
+
locations?: VendorLocation[] | null;
|
|
98
98
|
multiLocation: boolean;
|
|
99
99
|
products?: string[] | null;
|
|
100
100
|
specialities?: string[] | null;
|
|
101
|
+
vendorType: EnumVendorType;
|
|
101
102
|
}
|
|
102
|
-
type
|
|
103
|
-
type
|
|
103
|
+
type CreateVendorFormData = CreateFormData<VendorFormData>;
|
|
104
|
+
type VendorAttributes = {
|
|
104
105
|
details?: string | null;
|
|
105
106
|
isRequired: boolean;
|
|
106
107
|
};
|
|
107
|
-
type
|
|
108
|
+
type VendorInfoFormData = {
|
|
108
109
|
_id?: string;
|
|
109
110
|
contactDetails?: ResourceContactDetailsType | null;
|
|
110
|
-
electricity:
|
|
111
|
+
electricity: VendorAttributes;
|
|
111
112
|
foodSafetyGradeFiles?: string[] | null;
|
|
112
113
|
foodSafetyGradeFilesUpload?: string[] | null;
|
|
113
|
-
gazebo:
|
|
114
|
+
gazebo: VendorAttributes;
|
|
114
115
|
packaging: string[];
|
|
115
116
|
priceRange: {
|
|
116
117
|
max: number;
|
|
117
118
|
min: number;
|
|
118
119
|
};
|
|
119
120
|
producedIn: string[];
|
|
120
|
-
|
|
121
|
+
vendorId: string;
|
|
121
122
|
stallSize: {
|
|
122
123
|
depth: number;
|
|
123
124
|
width: number;
|
|
124
125
|
};
|
|
125
|
-
table:
|
|
126
|
+
table: VendorAttributes;
|
|
126
127
|
};
|
|
127
|
-
type
|
|
128
|
-
interface
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
locations: StallholderLocation[] | null;
|
|
128
|
+
type CreateVendorInfoFormData = CreateFormData<VendorInfoFormData>;
|
|
129
|
+
interface VendorType extends BaseResourceType {
|
|
130
|
+
categories: VendorFormData["categories"];
|
|
131
|
+
locations: VendorLocation[] | null;
|
|
132
132
|
multiLocation: boolean;
|
|
133
133
|
products: string[] | null;
|
|
134
134
|
specialities: string[] | null;
|
|
135
|
+
vendorInfoId: string;
|
|
136
|
+
vendorType: EnumVendorType;
|
|
135
137
|
}
|
|
136
|
-
type
|
|
138
|
+
type VendorInfoType = Omit<VendorInfoFormData, "_id" | "foodSafetyGradeFilesUpload"> & {
|
|
137
139
|
_id: string;
|
|
138
140
|
};
|
|
139
|
-
interface
|
|
141
|
+
interface VendorWithConnectionDatesType extends VendorType {
|
|
140
142
|
relationDates: RelationDate[] | undefined;
|
|
141
143
|
}
|
|
142
144
|
|
|
@@ -258,7 +260,7 @@ type ImageObjectType = {
|
|
|
258
260
|
};
|
|
259
261
|
interface ResourceConnectionsType {
|
|
260
262
|
events: EventWithConnectionDatesType[] | null;
|
|
261
|
-
|
|
263
|
+
vendors: VendorWithConnectionDatesType[] | null;
|
|
262
264
|
}
|
|
263
265
|
interface CreateFormData<T extends FieldValues> {
|
|
264
266
|
control: Control<T, any>;
|
|
@@ -277,4 +279,4 @@ type ResourceContactDetailsType = {
|
|
|
277
279
|
mobilePhone?: string | null;
|
|
278
280
|
};
|
|
279
281
|
|
|
280
|
-
export type {
|
|
282
|
+
export type { VendorLocation as A, BaseResourceTypeFormData as B, Category as C, DateTimeType as D, EventType as E, FormField as F, GeocodeLocation as G, VendorAttributes as H, ImageObjectType as I, VendorWithConnectionDatesType as J, LocationType as L, MapMultiLocation as M, Nullable as N, OptionItem as O, PosterUsageType as P, Requirement as R, StallType as S, VendorType as V, FormDateField as a, EventInfoType as b, RelationType as c, ResourceConnectionsType as d, VendorInfoType as e, VendorFormData as f, CreateVendorFormData as g, VendorInfoFormData as h, CreateVendorInfoFormData as i, EventFormData as j, CreateEventFormData as k, EventInfoFormData as l, CreateEventInfoFormData as m, ResourceImageType as n, SocialMediaType as o, OwnerType as p, BaseResourceType as q, Region as r, SubcategoryItems as s, Subcategory as t, CreateFormData as u, ResourceContactDetailsType as v, DateTimeWithPriceType as w, PaymentInfoType as x, EventWithConnectionDatesType as y, RelationDate as z };
|