@timardex/cluemart-shared 1.3.72 → 1.3.74

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.
@@ -1,4 +1,4 @@
1
- import { z as CreateFormData, T as TermsAgreement } from './global-BAP95-Jh.mjs';
1
+ import { z as CreateFormData, T as TermsAgreement } from './global-Dzrj3pLv.mjs';
2
2
  import { EnumOSPlatform } from './enums/index.mjs';
3
3
 
4
4
  type ContactUsFormData = {
@@ -1,4 +1,4 @@
1
- import { z as CreateFormData, T as TermsAgreement } from './global-CZFlP3JK.js';
1
+ import { z as CreateFormData, T as TermsAgreement } from './global-6PS2eYYd.js';
2
2
  import { EnumOSPlatform } from './enums/index.js';
3
3
 
4
4
  type ContactUsFormData = {
@@ -1,4 +1,4 @@
1
- import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-BAP95-Jh.mjs';
1
+ import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-Dzrj3pLv.mjs';
2
2
  import 'react-hook-form';
3
3
  import '../enums/index.mjs';
4
4
 
@@ -1,4 +1,4 @@
1
- import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-CZFlP3JK.js';
1
+ import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-6PS2eYYd.js';
2
2
  import 'react-hook-form';
3
3
  import '../enums/index.js';
4
4
 
@@ -1,5 +1,5 @@
1
1
  import { FieldValues, Control, FormState, UseFormHandleSubmit, UseFormReset, UseFormSetValue, UseFormWatch } from 'react-hook-form';
2
- import { EnumInviteStatus, EnumResourceType, EnumRelationResource, EnumEventType, EnumPaymentMethod, EnumVendorType, EnumFoodFlavor, EnumUserLicence, EnumSocialMedia, EnumEventDateStatus } from './enums/index.js';
2
+ import { EnumInviteStatus, EnumResourceType, EnumRelationResource, EnumEventType, EnumPaymentMethod, EnumVendorType, EnumFoodFlavor, EnumEventDateStatus, EnumUserLicence, EnumSocialMedia } from './enums/index.js';
3
3
 
4
4
  type RelationDate = {
5
5
  dateTime: DateTimeType & {
@@ -103,6 +103,10 @@ interface EventListItemType {
103
103
  rainOrShine: boolean;
104
104
  rating?: number | null;
105
105
  region: string;
106
+ relations: {
107
+ relationId: string | null;
108
+ relationDates: RelationDate[] | null;
109
+ }[] | null;
106
110
  reviewCount?: number | null;
107
111
  updatedAt: Date | null;
108
112
  }
@@ -367,7 +371,7 @@ type ImageObjectType = {
367
371
  name: string;
368
372
  };
369
373
  interface ResourceConnectionsType {
370
- events: EventType[] | null;
374
+ events: EventListItemType[] | null;
371
375
  vendors: VendorType[] | null;
372
376
  }
373
377
  interface CreateFormData<T extends FieldValues> {
@@ -380,4 +384,4 @@ interface CreateFormData<T extends FieldValues> {
380
384
  watch: UseFormWatch<T>;
381
385
  }
382
386
 
383
- export type { AssociateType as A, BaseResourceTypeFormData as B, Category as C, DateTimeType as D, EventType as E, FormField as F, GeocodeLocation as G, DateTimeWithPriceType as H, ImageObjectType as I, PaymentInfoType as J, RelationDate as K, LocationType as L, MapMultiLocation as M, Nullable as N, OptionItem as O, PosterUsageType as P, VendorLocation as Q, Requirement as R, StallType as S, TermsAgreement as T, UnregisteredVendorType as U, VendorType as V, VendorMenuType as W, VendorAttributes as X, UnregisteredVendorInvitationType as Y, CreateUnregisteredVendorFormData as Z, FormDateField as a, EventInfoType as b, RelationType as c, ResourceConnectionsType as d, VendorInfoType as e, EventListItemType as f, UserLicenceType as g, VendorFormData as h, CreateVendorFormData as i, VendorInfoFormData as j, CreateVendorInfoFormData as k, EventFormData as l, CreateEventFormData as m, EventInfoFormData as n, CreateEventInfoFormData as o, UnregisteredVendorFormData as p, ResourceImageType as q, DeviceInfo as r, ResourceContactDetailsType as s, SocialMediaType as t, OwnerType as u, BaseResourceType as v, Region as w, SubcategoryItems as x, Subcategory as y, CreateFormData as z };
387
+ export type { AssociateType as A, BaseResourceTypeFormData as B, Category as C, DateTimeType as D, EventListItemType as E, FormField as F, GeocodeLocation as G, DateTimeWithPriceType as H, ImageObjectType as I, PaymentInfoType as J, RelationDate as K, LocationType as L, MapMultiLocation as M, Nullable as N, OptionItem as O, PosterUsageType as P, VendorLocation as Q, Requirement as R, StallType as S, TermsAgreement as T, UnregisteredVendorType as U, VendorType as V, VendorMenuType as W, VendorAttributes as X, UnregisteredVendorInvitationType as Y, CreateUnregisteredVendorFormData as Z, FormDateField as a, EventType as b, EventInfoType as c, RelationType as d, ResourceConnectionsType as e, VendorInfoType as f, UserLicenceType as g, VendorFormData as h, CreateVendorFormData as i, VendorInfoFormData as j, CreateVendorInfoFormData as k, EventFormData as l, CreateEventFormData as m, EventInfoFormData as n, CreateEventInfoFormData as o, UnregisteredVendorFormData as p, ResourceImageType as q, DeviceInfo as r, ResourceContactDetailsType as s, SocialMediaType as t, OwnerType as u, BaseResourceType as v, Region as w, SubcategoryItems as x, Subcategory as y, CreateFormData as z };
@@ -1,5 +1,5 @@
1
1
  import { FieldValues, Control, FormState, UseFormHandleSubmit, UseFormReset, UseFormSetValue, UseFormWatch } from 'react-hook-form';
2
- import { EnumInviteStatus, EnumResourceType, EnumRelationResource, EnumEventType, EnumPaymentMethod, EnumVendorType, EnumFoodFlavor, EnumUserLicence, EnumSocialMedia, EnumEventDateStatus } from './enums/index.mjs';
2
+ import { EnumInviteStatus, EnumResourceType, EnumRelationResource, EnumEventType, EnumPaymentMethod, EnumVendorType, EnumFoodFlavor, EnumEventDateStatus, EnumUserLicence, EnumSocialMedia } from './enums/index.mjs';
3
3
 
4
4
  type RelationDate = {
5
5
  dateTime: DateTimeType & {
@@ -103,6 +103,10 @@ interface EventListItemType {
103
103
  rainOrShine: boolean;
104
104
  rating?: number | null;
105
105
  region: string;
106
+ relations: {
107
+ relationId: string | null;
108
+ relationDates: RelationDate[] | null;
109
+ }[] | null;
106
110
  reviewCount?: number | null;
107
111
  updatedAt: Date | null;
108
112
  }
@@ -367,7 +371,7 @@ type ImageObjectType = {
367
371
  name: string;
368
372
  };
369
373
  interface ResourceConnectionsType {
370
- events: EventType[] | null;
374
+ events: EventListItemType[] | null;
371
375
  vendors: VendorType[] | null;
372
376
  }
373
377
  interface CreateFormData<T extends FieldValues> {
@@ -380,4 +384,4 @@ interface CreateFormData<T extends FieldValues> {
380
384
  watch: UseFormWatch<T>;
381
385
  }
382
386
 
383
- export type { AssociateType as A, BaseResourceTypeFormData as B, Category as C, DateTimeType as D, EventType as E, FormField as F, GeocodeLocation as G, DateTimeWithPriceType as H, ImageObjectType as I, PaymentInfoType as J, RelationDate as K, LocationType as L, MapMultiLocation as M, Nullable as N, OptionItem as O, PosterUsageType as P, VendorLocation as Q, Requirement as R, StallType as S, TermsAgreement as T, UnregisteredVendorType as U, VendorType as V, VendorMenuType as W, VendorAttributes as X, UnregisteredVendorInvitationType as Y, CreateUnregisteredVendorFormData as Z, FormDateField as a, EventInfoType as b, RelationType as c, ResourceConnectionsType as d, VendorInfoType as e, EventListItemType as f, UserLicenceType as g, VendorFormData as h, CreateVendorFormData as i, VendorInfoFormData as j, CreateVendorInfoFormData as k, EventFormData as l, CreateEventFormData as m, EventInfoFormData as n, CreateEventInfoFormData as o, UnregisteredVendorFormData as p, ResourceImageType as q, DeviceInfo as r, ResourceContactDetailsType as s, SocialMediaType as t, OwnerType as u, BaseResourceType as v, Region as w, SubcategoryItems as x, Subcategory as y, CreateFormData as z };
387
+ export type { AssociateType as A, BaseResourceTypeFormData as B, Category as C, DateTimeType as D, EventListItemType as E, FormField as F, GeocodeLocation as G, DateTimeWithPriceType as H, ImageObjectType as I, PaymentInfoType as J, RelationDate as K, LocationType as L, MapMultiLocation as M, Nullable as N, OptionItem as O, PosterUsageType as P, VendorLocation as Q, Requirement as R, StallType as S, TermsAgreement as T, UnregisteredVendorType as U, VendorType as V, VendorMenuType as W, VendorAttributes as X, UnregisteredVendorInvitationType as Y, CreateUnregisteredVendorFormData as Z, FormDateField as a, EventType as b, EventInfoType as c, RelationType as d, ResourceConnectionsType as e, VendorInfoType as f, UserLicenceType as g, VendorFormData as h, CreateVendorFormData as i, VendorInfoFormData as j, CreateVendorInfoFormData as k, EventFormData as l, CreateEventFormData as m, EventInfoFormData as n, CreateEventInfoFormData as o, UnregisteredVendorFormData as p, ResourceImageType as q, DeviceInfo as r, ResourceContactDetailsType as s, SocialMediaType as t, OwnerType as u, BaseResourceType as v, Region as w, SubcategoryItems as x, Subcategory as y, CreateFormData as z };
@@ -409,12 +409,19 @@ var EVENT_LIST_ITEM = import_client2.gql`
409
409
  rainOrShine
410
410
  rating
411
411
  region
412
+ relations {
413
+ relationId
414
+ relationDates {
415
+ ...RelationDates
416
+ }
417
+ }
412
418
  reviewCount
413
419
  updatedAt
414
420
  }
415
421
  ${EVENT_DATETIME_FIELDS_FRAGMENT}
416
422
  ${LOCATION_FIELDS_FRAGMENT}
417
423
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
424
+ ${RELATION_DATES_FRAGMENT}
418
425
  `;
419
426
 
420
427
  // src/graphql/queries/event.ts
@@ -1570,12 +1577,9 @@ var useUpdateEventInfo = () => {
1570
1577
  // src/graphql/hooks/event/hooksQuery.ts
1571
1578
  var import_client20 = require("@apollo/client");
1572
1579
  var useGetEvents = () => {
1573
- const { loading, error, data, refetch } = (0, import_client20.useQuery)(
1574
- GET_EVENTS,
1575
- {
1576
- fetchPolicy: "network-only"
1577
- }
1578
- );
1580
+ const { loading, error, data, refetch } = (0, import_client20.useQuery)(GET_EVENTS, {
1581
+ fetchPolicy: "network-only"
1582
+ });
1579
1583
  const events = data?.events || [];
1580
1584
  return { error, events, loading, refetch };
1581
1585
  };