@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.
Files changed (55) hide show
  1. package/dist/{ad-BoyPTKzO.d.mts → ad-5mNvL58V.d.mts} +4 -4
  2. package/dist/{ad-ByaFgKCJ.d.ts → ad-DrHJhh2M.d.ts} +4 -4
  3. package/dist/{auth-CsMldwsP.d.mts → auth-C0eE66vz.d.mts} +1 -1
  4. package/dist/{auth-CatvNkT_.d.ts → auth-Csul8lXc.d.ts} +1 -1
  5. package/dist/{chunk-ERBPRUAF.mjs → chunk-AXCOUPK2.mjs} +20 -12
  6. package/dist/chunk-AXCOUPK2.mjs.map +1 -0
  7. package/dist/{chunk-JZMSWUO5.mjs → chunk-CCBDLLRT.mjs} +2 -2
  8. package/dist/{chunk-JFIG6CV2.mjs → chunk-YOGSPGDV.mjs} +2 -2
  9. package/dist/chunk-YOGSPGDV.mjs.map +1 -0
  10. package/dist/enums/index.cjs +20 -11
  11. package/dist/enums/index.cjs.map +1 -1
  12. package/dist/enums/index.d.mts +18 -12
  13. package/dist/enums/index.d.ts +18 -12
  14. package/dist/enums/index.mjs +3 -1
  15. package/dist/formFields/index.cjs +26 -26
  16. package/dist/formFields/index.cjs.map +1 -1
  17. package/dist/formFields/index.d.mts +7 -7
  18. package/dist/formFields/index.d.ts +7 -7
  19. package/dist/formFields/index.mjs +23 -23
  20. package/dist/formFields/index.mjs.map +1 -1
  21. package/dist/{global-Dt-vAIF9.d.mts → global-2SIDtEJn.d.ts} +17 -15
  22. package/dist/{global-BsANkXhj.d.ts → global-CNtWgZW4.d.mts} +17 -15
  23. package/dist/graphql/index.cjs +251 -248
  24. package/dist/graphql/index.cjs.map +1 -1
  25. package/dist/graphql/index.d.mts +33 -33
  26. package/dist/graphql/index.d.ts +33 -33
  27. package/dist/graphql/index.mjs +238 -235
  28. package/dist/graphql/index.mjs.map +1 -1
  29. package/dist/hooks/index.cjs +48 -36
  30. package/dist/hooks/index.cjs.map +1 -1
  31. package/dist/hooks/index.d.mts +15 -15
  32. package/dist/hooks/index.d.ts +15 -15
  33. package/dist/hooks/index.mjs +39 -33
  34. package/dist/hooks/index.mjs.map +1 -1
  35. package/dist/index.cjs +337 -320
  36. package/dist/index.cjs.map +1 -1
  37. package/dist/index.d.mts +82 -74
  38. package/dist/index.d.ts +82 -74
  39. package/dist/index.mjs +313 -297
  40. package/dist/index.mjs.map +1 -1
  41. package/dist/{resourceViews-ja9Qif1X.d.mts → resourceViews-COYpf0aX.d.mts} +2 -2
  42. package/dist/{resourceViews-C2CYUMC0.d.ts → resourceViews-DEKze3fc.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-ERBPRUAF.mjs.map +0 -1
  54. package/dist/chunk-JFIG6CV2.mjs.map +0 -1
  55. /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.js';
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
- marketId: string;
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 MarketInfoFormData {
50
+ interface EventInfoFormData {
51
51
  _id?: string;
52
52
  applicationDeadlineHours: number;
53
53
  contactDetails?: ResourceContactDetailsType | null;
54
54
  dateTime: DateTimeWithPriceType[];
55
- marketId: string;
55
+ eventId: string;
56
56
  packInTime: number;
57
57
  paymentDueHours: number;
58
58
  paymentInfo: PaymentInfoType[];
59
59
  requirements?: Requirement[];
60
60
  }
61
- interface MarketFormData extends BaseResourceTypeFormData {
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 CreateMarketInfoFormData = CreateFormData<MarketInfoFormData>;
69
- type CreateMarketFormData = CreateFormData<MarketFormData>;
70
- interface MarketType extends BaseResourceType {
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 MarketInfoType = Omit<MarketInfoFormData, "_id"> & {
80
+ type EventInfoType = Omit<EventInfoFormData, "_id"> & {
79
81
  _id: string;
80
82
  };
81
- interface MarketWithConnectionDatesType extends MarketType {
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 SatllholderWithConnectionDatesType extends StallholderType {
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
- markets: MarketWithConnectionDatesType[] | null;
259
- stallholders: SatllholderWithConnectionDatesType[] | null;
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 { MarketWithConnectionDatesType as A, BaseResourceTypeFormData as B, Category as C, DateTimeType as D, RelationDate as E, FormField as F, GeocodeLocation as G, StallholderLocation as H, ImageObjectType as I, StallholderAttributes as J, SatllholderWithConnectionDatesType as K, LocationType as L, MarketType as M, Nullable as N, OptionItem as O, PosterUsageType as P, Requirement as R, StallType as S, FormDateField as a, MarketInfoType 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, MarketFormData as k, CreateMarketFormData as l, MarketInfoFormData as m, CreateMarketInfoFormData as n, ResourceImageType as o, SocialMediaType as p, OwnerType as q, BaseResourceType as r, Region as s, MapMultiLocation as t, SubcategoryItems as u, Subcategory as v, CreateFormData as w, ResourceContactDetailsType as x, DateTimeWithPriceType as y, PaymentInfoType as z };
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 };