@timardex/cluemart-shared 1.3.69 → 1.3.71

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,8 +1,8 @@
1
1
  import * as _apollo_client from '@apollo/client';
2
2
  import { EnumResourceType } from '../enums/index.mjs';
3
3
  import { C as ChatType, N as NotificationType, a as NotificationCount, R as ResourceActivityType } from '../resourceActivities-CJRTZROh.mjs';
4
- import { E as EventType, b as EventInfoType, c as RelationType, d as ResourceConnectionsType, V as VendorType, e as VendorInfoType, U as UnregisteredVendorType, f as UserActivityEventType, g as UserLicenceType } from '../global-BT6II8Dq.mjs';
5
- import { T as TesterType, U as UserType, A as AdType, E as EnumAdStatus, S as SubscriptionStatusData, P as PartnerType, a as PostType, b as EnumPostType, c as AppSettingsType } from '../post-D1JWtkFg.mjs';
4
+ import { E as EventType, b as EventInfoType, c as RelationType, d as ResourceConnectionsType, V as VendorType, e as VendorInfoType, U as UnregisteredVendorType, f as EventListItemType, g as UserLicenceType } from '../global-BAP95-Jh.mjs';
5
+ import { T as TesterType, U as UserType, A as AdType, E as EnumAdStatus, S as SubscriptionStatusData, P as PartnerType, a as PostType, b as EnumPostType, c as AppSettingsType } from '../post-8m11ia1u.mjs';
6
6
  import 'react-hook-form';
7
7
 
8
8
  declare const useAdminUpdateResourceType: () => {
@@ -640,13 +640,13 @@ declare const useGetUserActivities: () => {
640
640
  vendors: VendorType[];
641
641
  };
642
642
  going: {
643
- events: UserActivityEventType[];
643
+ events: EventListItemType[];
644
644
  };
645
645
  interested: {
646
- events: UserActivityEventType[];
646
+ events: EventListItemType[];
647
647
  };
648
648
  present: {
649
- events: UserActivityEventType[];
649
+ events: EventListItemType[];
650
650
  };
651
651
  };
652
652
  }>>;
@@ -656,13 +656,13 @@ declare const useGetUserActivities: () => {
656
656
  vendors: VendorType[];
657
657
  };
658
658
  going: {
659
- events: UserActivityEventType[];
659
+ events: EventListItemType[];
660
660
  };
661
661
  interested: {
662
- events: UserActivityEventType[];
662
+ events: EventListItemType[];
663
663
  };
664
664
  present: {
665
- events: UserActivityEventType[];
665
+ events: EventListItemType[];
666
666
  };
667
667
  };
668
668
  };
@@ -1,8 +1,8 @@
1
1
  import * as _apollo_client from '@apollo/client';
2
2
  import { EnumResourceType } from '../enums/index.js';
3
3
  import { C as ChatType, N as NotificationType, a as NotificationCount, R as ResourceActivityType } from '../resourceActivities-CVwxvGeC.js';
4
- import { E as EventType, b as EventInfoType, c as RelationType, d as ResourceConnectionsType, V as VendorType, e as VendorInfoType, U as UnregisteredVendorType, f as UserActivityEventType, g as UserLicenceType } from '../global-Di91-yYC.js';
5
- import { T as TesterType, U as UserType, A as AdType, E as EnumAdStatus, S as SubscriptionStatusData, P as PartnerType, a as PostType, b as EnumPostType, c as AppSettingsType } from '../post-AmkOYBMx.js';
4
+ import { E as EventType, b as EventInfoType, c as RelationType, d as ResourceConnectionsType, V as VendorType, e as VendorInfoType, U as UnregisteredVendorType, f as EventListItemType, g as UserLicenceType } from '../global-CZFlP3JK.js';
5
+ import { T as TesterType, U as UserType, A as AdType, E as EnumAdStatus, S as SubscriptionStatusData, P as PartnerType, a as PostType, b as EnumPostType, c as AppSettingsType } from '../post-U8yX-D4F.js';
6
6
  import 'react-hook-form';
7
7
 
8
8
  declare const useAdminUpdateResourceType: () => {
@@ -640,13 +640,13 @@ declare const useGetUserActivities: () => {
640
640
  vendors: VendorType[];
641
641
  };
642
642
  going: {
643
- events: UserActivityEventType[];
643
+ events: EventListItemType[];
644
644
  };
645
645
  interested: {
646
- events: UserActivityEventType[];
646
+ events: EventListItemType[];
647
647
  };
648
648
  present: {
649
- events: UserActivityEventType[];
649
+ events: EventListItemType[];
650
650
  };
651
651
  };
652
652
  }>>;
@@ -656,13 +656,13 @@ declare const useGetUserActivities: () => {
656
656
  vendors: VendorType[];
657
657
  };
658
658
  going: {
659
- events: UserActivityEventType[];
659
+ events: EventListItemType[];
660
660
  };
661
661
  interested: {
662
- events: UserActivityEventType[];
662
+ events: EventListItemType[];
663
663
  };
664
664
  present: {
665
- events: UserActivityEventType[];
665
+ events: EventListItemType[];
666
666
  };
667
667
  };
668
668
  };
@@ -242,6 +242,42 @@ var LOCATION_FIELDS_FRAGMENT = gql2`
242
242
  type
243
243
  }
244
244
  `;
245
+ var EVENT_LIST_ITEM = gql2`
246
+ fragment EventListItemFields on EventListItemType {
247
+ _id
248
+ active
249
+ claimed
250
+ cover {
251
+ ...ResourceImageFields
252
+ }
253
+ createdAt
254
+ dateTime {
255
+ ...EventDateTimeFields
256
+ }
257
+ deletedAt
258
+ description
259
+ eventType
260
+ googlePlaceId
261
+ images {
262
+ ...ResourceImageFields
263
+ }
264
+ location {
265
+ ...LocationFields
266
+ }
267
+ logo {
268
+ ...ResourceImageFields
269
+ }
270
+ name
271
+ rainOrShine
272
+ rating
273
+ region
274
+ reviewCount
275
+ updatedAt
276
+ }
277
+ ${EVENT_DATETIME_FIELDS_FRAGMENT}
278
+ ${LOCATION_FIELDS_FRAGMENT}
279
+ ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
280
+ `;
245
281
 
246
282
  // src/graphql/queries/event.ts
247
283
  var EVENT_INFO = gql3`
@@ -344,46 +380,10 @@ var EVENT = gql3`
344
380
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
345
381
  ${RELATION_DATES_FRAGMENT}
346
382
  `;
347
- var EVENT_LIST_ITEM = gql3`
348
- fragment EventListItemFields on EventListItemType {
349
- _id
350
- active
351
- claimed
352
- cover {
353
- ...ResourceImageFields
354
- }
355
- createdAt
356
- dateTime {
357
- ...EventDateTimeFields
358
- }
359
- deletedAt
360
- description
361
- eventType
362
- googlePlaceId
363
- images {
364
- ...ResourceImageFields
365
- }
366
- location {
367
- ...LocationFields
368
- }
369
- logo {
370
- ...ResourceImageFields
371
- }
372
- name
373
- rainOrShine
374
- rating
375
- region
376
- reviewCount
377
- updatedAt
378
- }
379
- ${EVENT_DATETIME_FIELDS_FRAGMENT}
380
- ${LOCATION_FIELDS_FRAGMENT}
381
- ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
382
- `;
383
383
  var GET_EVENTS = gql3`
384
384
  query getEvents {
385
385
  events {
386
- ...EventFields
386
+ ...EventListItemFields
387
387
  }
388
388
  }
389
389
  ${EVENT_LIST_ITEM}
@@ -399,7 +399,7 @@ var GET_EVENT = gql3`
399
399
  var GET_EVENTS_BY_REGION = gql3`
400
400
  query getEventsByRegion($region: String!) {
401
401
  eventsByRegion(region: $region) {
402
- ...EventFields
402
+ ...EventListItemFields
403
403
  }
404
404
  }
405
405
  ${EVENT_LIST_ITEM}
@@ -407,7 +407,7 @@ var GET_EVENTS_BY_REGION = gql3`
407
407
  var SEARCH_EVENTS = gql3`
408
408
  query searchEvents($search: String!, $region: String) {
409
409
  eventsSearch(search: $search, region: $region) {
410
- ...EventFields
410
+ ...EventListItemFields
411
411
  }
412
412
  }
413
413
  ${EVENT_LIST_ITEM}
@@ -415,7 +415,7 @@ var SEARCH_EVENTS = gql3`
415
415
  var GET_EVENTS_NEAR_ME = gql3`
416
416
  query getEventsNearMe($latitude: Float!, $longitude: Float!, $radius: Int) {
417
417
  eventsNearMe(latitude: $latitude, longitude: $longitude, radius: $radius) {
418
- ...EventFields
418
+ ...EventListItemFields
419
419
  }
420
420
  }
421
421
  ${EVENT_LIST_ITEM}
@@ -1288,36 +1288,6 @@ var SEARCH_PARTNERS = gql12`
1288
1288
  `;
1289
1289
 
1290
1290
  // src/graphql/queries/user.ts
1291
- var USER_ACTIVITY_EVENT_FRAGMENT = gql13`
1292
- fragment UserActivityEventFields on UserActivityEventType {
1293
- _id
1294
- active
1295
- cover {
1296
- ...ResourceImageFields
1297
- }
1298
- dateTime {
1299
- ...EventDateTimeFields
1300
- }
1301
- description
1302
- eventType
1303
- location {
1304
- ...LocationFields
1305
- }
1306
- logo {
1307
- ...ResourceImageFields
1308
- }
1309
- name
1310
- rainOrShine
1311
- region
1312
- socialMedia {
1313
- ...SocialMediaFields
1314
- }
1315
- }
1316
- ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
1317
- ${LOCATION_FIELDS_FRAGMENT}
1318
- ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
1319
- ${EVENT_DATETIME_FIELDS_FRAGMENT}
1320
- `;
1321
1291
  var GET_USERS = gql13`
1322
1292
  query getUsers {
1323
1293
  users {
@@ -1363,7 +1333,7 @@ var GET_USER_ACTIVITIES = gql13`
1363
1333
  userActivities {
1364
1334
  favourites {
1365
1335
  events {
1366
- ...EventFields
1336
+ ...EventListItemFields
1367
1337
  }
1368
1338
  vendors {
1369
1339
  ...VendorFields
@@ -1371,24 +1341,23 @@ var GET_USER_ACTIVITIES = gql13`
1371
1341
  }
1372
1342
  going {
1373
1343
  events {
1374
- ...UserActivityEventFields
1344
+ ...EventListItemFields
1375
1345
  }
1376
1346
  }
1377
1347
  interested {
1378
1348
  events {
1379
- ...UserActivityEventFields
1349
+ ...EventListItemFields
1380
1350
  }
1381
1351
  }
1382
1352
  present {
1383
1353
  events {
1384
- ...UserActivityEventFields
1354
+ ...EventListItemFields
1385
1355
  }
1386
1356
  }
1387
1357
  }
1388
1358
  }
1389
1359
  ${EVENT_LIST_ITEM}
1390
1360
  ${VENDOR}
1391
- ${USER_ACTIVITY_EVENT_FRAGMENT}
1392
1361
  `;
1393
1362
 
1394
1363
  // src/graphql/hooks/event/hooksMutation.ts
@@ -1859,7 +1828,7 @@ var GET_RESOURCE_CONNECTIONS = gql19`
1859
1828
  ) {
1860
1829
  resourceConnections(resourceId: $resourceId, resourceType: $resourceType) {
1861
1830
  events {
1862
- ...EventFields
1831
+ ...EventListItemFields
1863
1832
  }
1864
1833
  vendors {
1865
1834
  ...VendorFields