@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.
Files changed (55) hide show
  1. package/dist/{ad-5mNvL58V.d.mts → ad-BzjjHQUN.d.mts} +4 -4
  2. package/dist/{ad-DrHJhh2M.d.ts → ad-CWNCM_p1.d.ts} +4 -4
  3. package/dist/{auth-Csul8lXc.d.ts → auth-4m8SpJzV.d.ts} +1 -1
  4. package/dist/{auth-C0eE66vz.d.mts → auth-CxQ0oavy.d.mts} +1 -1
  5. package/dist/{chunk-AXCOUPK2.mjs → chunk-DFEZFUNA.mjs} +19 -12
  6. package/dist/chunk-DFEZFUNA.mjs.map +1 -0
  7. package/dist/{chunk-CCBDLLRT.mjs → chunk-DPBAPKPE.mjs} +2 -2
  8. package/dist/{chunk-YOGSPGDV.mjs → chunk-XXZPSRMS.mjs} +2 -2
  9. package/dist/chunk-XXZPSRMS.mjs.map +1 -0
  10. package/dist/enums/index.cjs +19 -11
  11. package/dist/enums/index.cjs.map +1 -1
  12. package/dist/enums/index.d.mts +17 -12
  13. package/dist/enums/index.d.ts +17 -12
  14. package/dist/enums/index.mjs +3 -1
  15. package/dist/formFields/index.cjs +49 -49
  16. package/dist/formFields/index.cjs.map +1 -1
  17. package/dist/formFields/index.d.mts +15 -15
  18. package/dist/formFields/index.d.ts +15 -15
  19. package/dist/formFields/index.mjs +37 -37
  20. package/dist/formFields/index.mjs.map +1 -1
  21. package/dist/{global-2SIDtEJn.d.ts → global-CIXx7hJi.d.mts} +23 -21
  22. package/dist/{global-CNtWgZW4.d.mts → global-wvYjcFy5.d.ts} +23 -21
  23. package/dist/graphql/index.cjs +224 -237
  24. package/dist/graphql/index.cjs.map +1 -1
  25. package/dist/graphql/index.d.mts +31 -31
  26. package/dist/graphql/index.d.ts +31 -31
  27. package/dist/graphql/index.mjs +212 -225
  28. package/dist/graphql/index.mjs.map +1 -1
  29. package/dist/hooks/index.cjs +56 -51
  30. package/dist/hooks/index.cjs.map +1 -1
  31. package/dist/hooks/index.d.mts +12 -18
  32. package/dist/hooks/index.d.ts +12 -18
  33. package/dist/hooks/index.mjs +48 -48
  34. package/dist/hooks/index.mjs.map +1 -1
  35. package/dist/index.cjs +339 -345
  36. package/dist/index.cjs.map +1 -1
  37. package/dist/index.d.mts +90 -89
  38. package/dist/index.d.ts +90 -89
  39. package/dist/index.mjs +307 -314
  40. package/dist/index.mjs.map +1 -1
  41. package/dist/{resourceViews-COYpf0aX.d.mts → resourceViews-BahGrfXt.d.mts} +2 -2
  42. package/dist/{resourceViews-DEKze3fc.d.ts → resourceViews-DgcX5Moj.d.ts} +2 -2
  43. package/dist/types/index.cjs +1 -1
  44. package/dist/types/index.cjs.map +1 -1
  45. package/dist/types/index.d.mts +4 -4
  46. package/dist/types/index.d.ts +4 -4
  47. package/dist/types/index.mjs +1 -1
  48. package/dist/utils/index.cjs.map +1 -1
  49. package/dist/utils/index.d.mts +1 -1
  50. package/dist/utils/index.d.ts +1 -1
  51. package/dist/utils/index.mjs +2 -2
  52. package/package.json +1 -1
  53. package/dist/chunk-AXCOUPK2.mjs.map +0 -1
  54. package/dist/chunk-YOGSPGDV.mjs.map +0 -1
  55. /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.js';
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
- stallholderId: string;
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 StallholderLocation = {
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 StallholderFormData extends BaseResourceTypeFormData {
95
+ interface VendorFormData extends BaseResourceTypeFormData {
96
96
  categories: Category[];
97
- locations?: StallholderLocation[] | null;
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 CreateStallholderFormData = CreateFormData<StallholderFormData>;
103
- type StallholderAttributes = {
103
+ type CreateVendorFormData = CreateFormData<VendorFormData>;
104
+ type VendorAttributes = {
104
105
  details?: string | null;
105
106
  isRequired: boolean;
106
107
  };
107
- type StallholderInfoFormData = {
108
+ type VendorInfoFormData = {
108
109
  _id?: string;
109
110
  contactDetails?: ResourceContactDetailsType | null;
110
- electricity: StallholderAttributes;
111
+ electricity: VendorAttributes;
111
112
  foodSafetyGradeFiles?: string[] | null;
112
113
  foodSafetyGradeFilesUpload?: string[] | null;
113
- gazebo: StallholderAttributes;
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
- stallholderId: string;
121
+ vendorId: string;
121
122
  stallSize: {
122
123
  depth: number;
123
124
  width: number;
124
125
  };
125
- table: StallholderAttributes;
126
+ table: VendorAttributes;
126
127
  };
127
- type CreateStallholderInfoFormData = CreateFormData<StallholderInfoFormData>;
128
- interface StallholderType extends BaseResourceType {
129
- stallholderInfoId: string;
130
- categories: StallholderFormData["categories"];
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 StallholderInfoType = Omit<StallholderInfoFormData, "_id" | "foodSafetyGradeFilesUpload"> & {
138
+ type VendorInfoType = Omit<VendorInfoFormData, "_id" | "foodSafetyGradeFilesUpload"> & {
137
139
  _id: string;
138
140
  };
139
- interface StallholderWithConnectionDatesType extends StallholderType {
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
- stallholders: StallholderWithConnectionDatesType[] | null;
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 { 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 };
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.mjs';
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
- stallholderId: string;
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 StallholderLocation = {
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 StallholderFormData extends BaseResourceTypeFormData {
95
+ interface VendorFormData extends BaseResourceTypeFormData {
96
96
  categories: Category[];
97
- locations?: StallholderLocation[] | null;
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 CreateStallholderFormData = CreateFormData<StallholderFormData>;
103
- type StallholderAttributes = {
103
+ type CreateVendorFormData = CreateFormData<VendorFormData>;
104
+ type VendorAttributes = {
104
105
  details?: string | null;
105
106
  isRequired: boolean;
106
107
  };
107
- type StallholderInfoFormData = {
108
+ type VendorInfoFormData = {
108
109
  _id?: string;
109
110
  contactDetails?: ResourceContactDetailsType | null;
110
- electricity: StallholderAttributes;
111
+ electricity: VendorAttributes;
111
112
  foodSafetyGradeFiles?: string[] | null;
112
113
  foodSafetyGradeFilesUpload?: string[] | null;
113
- gazebo: StallholderAttributes;
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
- stallholderId: string;
121
+ vendorId: string;
121
122
  stallSize: {
122
123
  depth: number;
123
124
  width: number;
124
125
  };
125
- table: StallholderAttributes;
126
+ table: VendorAttributes;
126
127
  };
127
- type CreateStallholderInfoFormData = CreateFormData<StallholderInfoFormData>;
128
- interface StallholderType extends BaseResourceType {
129
- stallholderInfoId: string;
130
- categories: StallholderFormData["categories"];
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 StallholderInfoType = Omit<StallholderInfoFormData, "_id" | "foodSafetyGradeFilesUpload"> & {
138
+ type VendorInfoType = Omit<VendorInfoFormData, "_id" | "foodSafetyGradeFilesUpload"> & {
137
139
  _id: string;
138
140
  };
139
- interface StallholderWithConnectionDatesType extends StallholderType {
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
- stallholders: StallholderWithConnectionDatesType[] | null;
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 { 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 };
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 };