@timardex/cluemart-shared 1.3.69 → 1.3.70

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-BT6II8Dq.mjs';
1
+ import { z as CreateFormData, T as TermsAgreement } from './global-CbccsHaO.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-Di91-yYC.js';
1
+ import { z as CreateFormData, T as TermsAgreement } from './global-tKKfQw2k.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-BT6II8Dq.mjs';
1
+ import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-CbccsHaO.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-Di91-yYC.js';
1
+ import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-tKKfQw2k.js';
2
2
  import 'react-hook-form';
3
3
  import '../enums/index.js';
4
4
 
@@ -89,40 +89,26 @@ interface EventListItemType {
89
89
  _id: string;
90
90
  active: boolean;
91
91
  claimed: boolean;
92
- cover: ResourceImageType;
92
+ cover?: ResourceImageType | null;
93
93
  createdAt: Date;
94
94
  dateTime: DateTimeType[];
95
95
  deletedAt: Date | null;
96
- description: string | null;
96
+ description?: string | null;
97
97
  eventType: EnumEventType;
98
- googlePlaceId?: string;
98
+ googlePlaceId?: string | null;
99
99
  images?: ResourceImageType[] | null;
100
100
  location: LocationType;
101
101
  logo?: ResourceImageType | null;
102
102
  name: string;
103
103
  rainOrShine: boolean;
104
- rating?: number;
104
+ rating?: number | null;
105
105
  region: string;
106
- reviewCount?: number;
106
+ reviewCount?: number | null;
107
107
  updatedAt: Date | null;
108
108
  }
109
109
  type EventInfoType = Omit<EventInfoFormData, "_id"> & {
110
110
  _id: string;
111
111
  };
112
- type UserActivityEventType = {
113
- _id: string;
114
- active: boolean;
115
- cover: ResourceImageType;
116
- dateTime: DateTimeType;
117
- description: string;
118
- eventType: EnumEventType;
119
- location: LocationType;
120
- logo?: ResourceImageType | null;
121
- name: string;
122
- rainOrShine: boolean;
123
- region: string;
124
- socialMedia?: SocialMediaType[] | null;
125
- };
126
112
 
127
113
  type VendorLocation = {
128
114
  dateTime: Nullable<DateTimeType> | null;
@@ -394,4 +380,4 @@ interface CreateFormData<T extends FieldValues> {
394
380
  watch: UseFormWatch<T>;
395
381
  }
396
382
 
397
- 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, EventListItemType as K, LocationType as L, MapMultiLocation as M, Nullable as N, OptionItem as O, PosterUsageType as P, RelationDate as Q, Requirement as R, StallType as S, TermsAgreement as T, UnregisteredVendorType as U, VendorType as V, VendorLocation as W, VendorMenuType as X, VendorAttributes as Y, UnregisteredVendorInvitationType as Z, CreateUnregisteredVendorFormData as _, FormDateField as a, EventInfoType as b, RelationType as c, ResourceConnectionsType as d, VendorInfoType as e, UserActivityEventType 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, DeviceInfo as q, ResourceContactDetailsType as r, ResourceImageType as s, SocialMediaType as t, OwnerType as u, BaseResourceType as v, Region as w, SubcategoryItems as x, Subcategory as y, CreateFormData as z };
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, DeviceInfo as q, ResourceContactDetailsType as r, ResourceImageType as s, SocialMediaType as t, OwnerType as u, BaseResourceType as v, Region as w, SubcategoryItems as x, Subcategory as y, CreateFormData as z };
@@ -89,40 +89,26 @@ interface EventListItemType {
89
89
  _id: string;
90
90
  active: boolean;
91
91
  claimed: boolean;
92
- cover: ResourceImageType;
92
+ cover?: ResourceImageType | null;
93
93
  createdAt: Date;
94
94
  dateTime: DateTimeType[];
95
95
  deletedAt: Date | null;
96
- description: string | null;
96
+ description?: string | null;
97
97
  eventType: EnumEventType;
98
- googlePlaceId?: string;
98
+ googlePlaceId?: string | null;
99
99
  images?: ResourceImageType[] | null;
100
100
  location: LocationType;
101
101
  logo?: ResourceImageType | null;
102
102
  name: string;
103
103
  rainOrShine: boolean;
104
- rating?: number;
104
+ rating?: number | null;
105
105
  region: string;
106
- reviewCount?: number;
106
+ reviewCount?: number | null;
107
107
  updatedAt: Date | null;
108
108
  }
109
109
  type EventInfoType = Omit<EventInfoFormData, "_id"> & {
110
110
  _id: string;
111
111
  };
112
- type UserActivityEventType = {
113
- _id: string;
114
- active: boolean;
115
- cover: ResourceImageType;
116
- dateTime: DateTimeType;
117
- description: string;
118
- eventType: EnumEventType;
119
- location: LocationType;
120
- logo?: ResourceImageType | null;
121
- name: string;
122
- rainOrShine: boolean;
123
- region: string;
124
- socialMedia?: SocialMediaType[] | null;
125
- };
126
112
 
127
113
  type VendorLocation = {
128
114
  dateTime: Nullable<DateTimeType> | null;
@@ -394,4 +380,4 @@ interface CreateFormData<T extends FieldValues> {
394
380
  watch: UseFormWatch<T>;
395
381
  }
396
382
 
397
- 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, EventListItemType as K, LocationType as L, MapMultiLocation as M, Nullable as N, OptionItem as O, PosterUsageType as P, RelationDate as Q, Requirement as R, StallType as S, TermsAgreement as T, UnregisteredVendorType as U, VendorType as V, VendorLocation as W, VendorMenuType as X, VendorAttributes as Y, UnregisteredVendorInvitationType as Z, CreateUnregisteredVendorFormData as _, FormDateField as a, EventInfoType as b, RelationType as c, ResourceConnectionsType as d, VendorInfoType as e, UserActivityEventType 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, DeviceInfo as q, ResourceContactDetailsType as r, ResourceImageType as s, SocialMediaType as t, OwnerType as u, BaseResourceType as v, Region as w, SubcategoryItems as x, Subcategory as y, CreateFormData as z };
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, DeviceInfo as q, ResourceContactDetailsType as r, ResourceImageType as s, SocialMediaType as t, OwnerType as u, BaseResourceType as v, Region as w, SubcategoryItems as x, Subcategory as y, CreateFormData as z };
@@ -380,6 +380,42 @@ var LOCATION_FIELDS_FRAGMENT = import_client2.gql`
380
380
  type
381
381
  }
382
382
  `;
383
+ var EVENT_LIST_ITEM = import_client2.gql`
384
+ fragment EventListItemFields on EventListItemType {
385
+ _id
386
+ active
387
+ claimed
388
+ cover {
389
+ ...ResourceImageFields
390
+ }
391
+ createdAt
392
+ dateTime {
393
+ ...EventDateTimeFields
394
+ }
395
+ deletedAt
396
+ description
397
+ eventType
398
+ googlePlaceId
399
+ images {
400
+ ...ResourceImageFields
401
+ }
402
+ location {
403
+ ...LocationFields
404
+ }
405
+ logo {
406
+ ...ResourceImageFields
407
+ }
408
+ name
409
+ rainOrShine
410
+ rating
411
+ region
412
+ reviewCount
413
+ updatedAt
414
+ }
415
+ ${EVENT_DATETIME_FIELDS_FRAGMENT}
416
+ ${LOCATION_FIELDS_FRAGMENT}
417
+ ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
418
+ `;
383
419
 
384
420
  // src/graphql/queries/event.ts
385
421
  var EVENT_INFO = import_client3.gql`
@@ -482,46 +518,10 @@ var EVENT = import_client3.gql`
482
518
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
483
519
  ${RELATION_DATES_FRAGMENT}
484
520
  `;
485
- var EVENT_LIST_ITEM = import_client3.gql`
486
- fragment EventListItemFields on EventListItemType {
487
- _id
488
- active
489
- claimed
490
- cover {
491
- ...ResourceImageFields
492
- }
493
- createdAt
494
- dateTime {
495
- ...EventDateTimeFields
496
- }
497
- deletedAt
498
- description
499
- eventType
500
- googlePlaceId
501
- images {
502
- ...ResourceImageFields
503
- }
504
- location {
505
- ...LocationFields
506
- }
507
- logo {
508
- ...ResourceImageFields
509
- }
510
- name
511
- rainOrShine
512
- rating
513
- region
514
- reviewCount
515
- updatedAt
516
- }
517
- ${EVENT_DATETIME_FIELDS_FRAGMENT}
518
- ${LOCATION_FIELDS_FRAGMENT}
519
- ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
520
- `;
521
521
  var GET_EVENTS = import_client3.gql`
522
522
  query getEvents {
523
523
  events {
524
- ...EventFields
524
+ ...EventListItemFields
525
525
  }
526
526
  }
527
527
  ${EVENT_LIST_ITEM}
@@ -537,7 +537,7 @@ var GET_EVENT = import_client3.gql`
537
537
  var GET_EVENTS_BY_REGION = import_client3.gql`
538
538
  query getEventsByRegion($region: String!) {
539
539
  eventsByRegion(region: $region) {
540
- ...EventFields
540
+ ...EventListItemFields
541
541
  }
542
542
  }
543
543
  ${EVENT_LIST_ITEM}
@@ -545,7 +545,7 @@ var GET_EVENTS_BY_REGION = import_client3.gql`
545
545
  var SEARCH_EVENTS = import_client3.gql`
546
546
  query searchEvents($search: String!, $region: String) {
547
547
  eventsSearch(search: $search, region: $region) {
548
- ...EventFields
548
+ ...EventListItemFields
549
549
  }
550
550
  }
551
551
  ${EVENT_LIST_ITEM}
@@ -553,7 +553,7 @@ var SEARCH_EVENTS = import_client3.gql`
553
553
  var GET_EVENTS_NEAR_ME = import_client3.gql`
554
554
  query getEventsNearMe($latitude: Float!, $longitude: Float!, $radius: Int) {
555
555
  eventsNearMe(latitude: $latitude, longitude: $longitude, radius: $radius) {
556
- ...EventFields
556
+ ...EventListItemFields
557
557
  }
558
558
  }
559
559
  ${EVENT_LIST_ITEM}
@@ -1426,36 +1426,6 @@ var SEARCH_PARTNERS = import_client17.gql`
1426
1426
  `;
1427
1427
 
1428
1428
  // src/graphql/queries/user.ts
1429
- var USER_ACTIVITY_EVENT_FRAGMENT = import_client18.gql`
1430
- fragment UserActivityEventFields on UserActivityEventType {
1431
- _id
1432
- active
1433
- cover {
1434
- ...ResourceImageFields
1435
- }
1436
- dateTime {
1437
- ...EventDateTimeFields
1438
- }
1439
- description
1440
- eventType
1441
- location {
1442
- ...LocationFields
1443
- }
1444
- logo {
1445
- ...ResourceImageFields
1446
- }
1447
- name
1448
- rainOrShine
1449
- region
1450
- socialMedia {
1451
- ...SocialMediaFields
1452
- }
1453
- }
1454
- ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
1455
- ${LOCATION_FIELDS_FRAGMENT}
1456
- ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
1457
- ${EVENT_DATETIME_FIELDS_FRAGMENT}
1458
- `;
1459
1429
  var GET_USERS = import_client18.gql`
1460
1430
  query getUsers {
1461
1431
  users {
@@ -1501,7 +1471,7 @@ var GET_USER_ACTIVITIES = import_client18.gql`
1501
1471
  userActivities {
1502
1472
  favourites {
1503
1473
  events {
1504
- ...EventFields
1474
+ ...EventListItemFields
1505
1475
  }
1506
1476
  vendors {
1507
1477
  ...VendorFields
@@ -1509,24 +1479,23 @@ var GET_USER_ACTIVITIES = import_client18.gql`
1509
1479
  }
1510
1480
  going {
1511
1481
  events {
1512
- ...UserActivityEventFields
1482
+ ...EventListItemFields
1513
1483
  }
1514
1484
  }
1515
1485
  interested {
1516
1486
  events {
1517
- ...UserActivityEventFields
1487
+ ...EventListItemFields
1518
1488
  }
1519
1489
  }
1520
1490
  present {
1521
1491
  events {
1522
- ...UserActivityEventFields
1492
+ ...EventListItemFields
1523
1493
  }
1524
1494
  }
1525
1495
  }
1526
1496
  }
1527
1497
  ${EVENT_LIST_ITEM}
1528
1498
  ${VENDOR}
1529
- ${USER_ACTIVITY_EVENT_FRAGMENT}
1530
1499
  `;
1531
1500
 
1532
1501
  // src/graphql/hooks/event/hooksMutation.ts
@@ -1997,7 +1966,7 @@ var GET_RESOURCE_CONNECTIONS = import_client31.gql`
1997
1966
  ) {
1998
1967
  resourceConnections(resourceId: $resourceId, resourceType: $resourceType) {
1999
1968
  events {
2000
- ...EventFields
1969
+ ...EventListItemFields
2001
1970
  }
2002
1971
  vendors {
2003
1972
  ...VendorFields