@timardex/cluemart-shared 1.3.37 → 1.3.38

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 { w as CreateFormData, T as TermsAgreement } from './global-ZjNLEVhq.js';
1
+ import { w as CreateFormData, T as TermsAgreement } from './global-jmCVxHjD.js';
2
2
  import { EnumOSPlatform } from './enums/index.js';
3
3
 
4
4
  type ContactUsFormData = {
@@ -1,4 +1,4 @@
1
- import { w as CreateFormData, T as TermsAgreement } from './global-CfCbqhR0.mjs';
1
+ import { w as CreateFormData, T as TermsAgreement } from './global-OV8Kw7GZ.mjs';
2
2
  import { EnumOSPlatform } from './enums/index.mjs';
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-CfCbqhR0.mjs';
1
+ import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-OV8Kw7GZ.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-ZjNLEVhq.js';
1
+ import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-jmCVxHjD.js';
2
2
  import 'react-hook-form';
3
3
  import '../enums/index.js';
4
4
 
@@ -88,6 +88,19 @@ interface EventType extends BaseResourceType {
88
88
  type EventInfoType = Omit<EventInfoFormData, "_id"> & {
89
89
  _id: string;
90
90
  };
91
+ type UserActivityEventType = {
92
+ _id: string;
93
+ active: boolean;
94
+ cover: ResourceImageType;
95
+ dateTime: DateTimeType;
96
+ eventType: EnumEventType;
97
+ location: LocationType;
98
+ logo?: ResourceImageType;
99
+ name: string;
100
+ rainOrShine: boolean;
101
+ region: string;
102
+ socialMedia?: SocialMediaType[];
103
+ };
91
104
 
92
105
  type VendorLocation = {
93
106
  dateTime: Nullable<DateTimeType> | null;
@@ -340,4 +353,4 @@ interface CreateFormData<T extends FieldValues> {
340
353
  watch: UseFormWatch<T>;
341
354
  }
342
355
 
343
- export type { AssociateType as A, BaseResourceTypeFormData as B, Category as C, DeviceInfo as D, EventType as E, FormField as F, GeocodeLocation as G, VendorLocation as H, ImageObjectType as I, VendorMenuType as J, VendorAttributes as K, LocationType as L, MapMultiLocation as M, Nullable as N, OptionItem as O, PosterUsageType as P, Requirement as R, StallType as S, TermsAgreement as T, UserLicenceType as U, 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, ResourceContactDetailsType as n, ResourceImageType as o, SocialMediaType as p, OwnerType as q, BaseResourceType as r, DateTimeType as s, Region as t, SubcategoryItems as u, Subcategory as v, CreateFormData as w, DateTimeWithPriceType as x, PaymentInfoType as y, RelationDate as z };
356
+ export type { AssociateType as A, BaseResourceTypeFormData as B, Category as C, DeviceInfo as D, EventType as E, FormField as F, GeocodeLocation as G, RelationDate as H, ImageObjectType as I, VendorLocation as J, VendorMenuType as K, LocationType as L, MapMultiLocation as M, Nullable as N, OptionItem as O, PosterUsageType as P, VendorAttributes as Q, Requirement as R, StallType as S, TermsAgreement as T, UserLicenceType as U, 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, ResourceContactDetailsType as n, ResourceImageType as o, SocialMediaType as p, OwnerType as q, BaseResourceType as r, DateTimeType as s, Region as t, SubcategoryItems as u, Subcategory as v, CreateFormData as w, DateTimeWithPriceType as x, PaymentInfoType as y, UserActivityEventType as z };
@@ -88,6 +88,19 @@ interface EventType extends BaseResourceType {
88
88
  type EventInfoType = Omit<EventInfoFormData, "_id"> & {
89
89
  _id: string;
90
90
  };
91
+ type UserActivityEventType = {
92
+ _id: string;
93
+ active: boolean;
94
+ cover: ResourceImageType;
95
+ dateTime: DateTimeType;
96
+ eventType: EnumEventType;
97
+ location: LocationType;
98
+ logo?: ResourceImageType;
99
+ name: string;
100
+ rainOrShine: boolean;
101
+ region: string;
102
+ socialMedia?: SocialMediaType[];
103
+ };
91
104
 
92
105
  type VendorLocation = {
93
106
  dateTime: Nullable<DateTimeType> | null;
@@ -340,4 +353,4 @@ interface CreateFormData<T extends FieldValues> {
340
353
  watch: UseFormWatch<T>;
341
354
  }
342
355
 
343
- export type { AssociateType as A, BaseResourceTypeFormData as B, Category as C, DeviceInfo as D, EventType as E, FormField as F, GeocodeLocation as G, VendorLocation as H, ImageObjectType as I, VendorMenuType as J, VendorAttributes as K, LocationType as L, MapMultiLocation as M, Nullable as N, OptionItem as O, PosterUsageType as P, Requirement as R, StallType as S, TermsAgreement as T, UserLicenceType as U, 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, ResourceContactDetailsType as n, ResourceImageType as o, SocialMediaType as p, OwnerType as q, BaseResourceType as r, DateTimeType as s, Region as t, SubcategoryItems as u, Subcategory as v, CreateFormData as w, DateTimeWithPriceType as x, PaymentInfoType as y, RelationDate as z };
356
+ export type { AssociateType as A, BaseResourceTypeFormData as B, Category as C, DeviceInfo as D, EventType as E, FormField as F, GeocodeLocation as G, RelationDate as H, ImageObjectType as I, VendorLocation as J, VendorMenuType as K, LocationType as L, MapMultiLocation as M, Nullable as N, OptionItem as O, PosterUsageType as P, VendorAttributes as Q, Requirement as R, StallType as S, TermsAgreement as T, UserLicenceType as U, 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, ResourceContactDetailsType as n, ResourceImageType as o, SocialMediaType as p, OwnerType as q, BaseResourceType as r, DateTimeType as s, Region as t, SubcategoryItems as u, Subcategory as v, CreateFormData as w, DateTimeWithPriceType as x, PaymentInfoType as y, UserActivityEventType as z };
@@ -1317,6 +1317,32 @@ var SEARCH_PARTNERS = import_client17.gql`
1317
1317
  `;
1318
1318
 
1319
1319
  // src/graphql/queries/user.ts
1320
+ var USER_ACTIVITY_EVENT_FRAGMENT = import_client18.gql`
1321
+ fragment UserActivityEventFields on UserActivityEventType {
1322
+ _id
1323
+ active
1324
+ cover {
1325
+ ...ResourceImageFields
1326
+ }
1327
+ dateTime
1328
+ eventType
1329
+ location {
1330
+ ...LocationFields
1331
+ }
1332
+ logo {
1333
+ ...ResourceImageFields
1334
+ }
1335
+ name
1336
+ rainOrShine
1337
+ region
1338
+ socialMedia {
1339
+ ...SocialMediaFields
1340
+ }
1341
+ }
1342
+ ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
1343
+ ${LOCATION_FIELDS_FRAGMENT}
1344
+ ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
1345
+ `;
1320
1346
  var GET_USERS = import_client18.gql`
1321
1347
  query getUsers {
1322
1348
  users {
@@ -1370,23 +1396,24 @@ var GET_USER_ACTIVITIES = import_client18.gql`
1370
1396
  }
1371
1397
  going {
1372
1398
  events {
1373
- ...EventFields
1399
+ ...UserActivityEventFields
1374
1400
  }
1375
1401
  }
1376
1402
  interested {
1377
1403
  events {
1378
- ...EventFields
1404
+ ...UserActivityEventFields
1379
1405
  }
1380
1406
  }
1381
1407
  present {
1382
1408
  events {
1383
- ...EventFields
1409
+ ...UserActivityEventFields
1384
1410
  }
1385
1411
  }
1386
1412
  }
1387
1413
  }
1388
1414
  ${EVENT}
1389
1415
  ${VENDOR}
1416
+ ${USER_ACTIVITY_EVENT_FRAGMENT}
1390
1417
  `;
1391
1418
 
1392
1419
  // src/graphql/hooks/event/hooksMutation.ts