@timardex/cluemart-shared 1.2.12 → 1.2.14

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.
@@ -104,7 +104,7 @@ __export(graphql_exports, {
104
104
  module.exports = __toCommonJS(graphql_exports);
105
105
 
106
106
  // src/graphql/hooks/admin/hooksMutation.ts
107
- var import_client6 = require("@apollo/client");
107
+ var import_client5 = require("@apollo/client");
108
108
 
109
109
  // src/graphql/mutations/admin.ts
110
110
  var import_client = require("@apollo/client");
@@ -119,7 +119,7 @@ var ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = import_client.gql`
119
119
  `;
120
120
 
121
121
  // src/graphql/queries/event.ts
122
- var import_client5 = require("@apollo/client");
122
+ var import_client3 = require("@apollo/client");
123
123
 
124
124
  // src/graphql/queries/global.ts
125
125
  var import_client2 = require("@apollo/client");
@@ -232,6 +232,22 @@ var STALL_TYPE_FIELDS_FRAGMENT = import_client2.gql`
232
232
  }
233
233
  }
234
234
  `;
235
+ var RELATION_DATES_FRAGMENT = import_client2.gql`
236
+ fragment RelationDates on RelationDateType {
237
+ lastUpdateBy {
238
+ resourceId
239
+ userEmail
240
+ }
241
+ paymentReference
242
+ stallType {
243
+ ...StallTypeFields
244
+ }
245
+ startDate
246
+ startTime
247
+ status
248
+ }
249
+ ${STALL_TYPE_FIELDS_FRAGMENT}
250
+ `;
235
251
  var CONTACT_DETAILS_FIELDS_FRAGMENT = import_client2.gql`
236
252
  fragment ContactDetailsFields on ContactDetailsType {
237
253
  email
@@ -240,13 +256,17 @@ var CONTACT_DETAILS_FIELDS_FRAGMENT = import_client2.gql`
240
256
  }
241
257
  `;
242
258
 
243
- // src/graphql/queries/relation.ts
244
- var import_client4 = require("@apollo/client");
245
-
246
- // src/graphql/queries/vendor.ts
247
- var import_client3 = require("@apollo/client");
248
- var VENDOR_LOCATION_FIELDS_FRAGMENT = import_client3.gql`
249
- fragment VendorLocationFields on VendorLocationType {
259
+ // src/graphql/queries/event.ts
260
+ var EVENT_DATETIME_FIELDS_FRAGMENT = import_client3.gql`
261
+ fragment EventDateTimeFields on EventDateTimeType {
262
+ endDate
263
+ endTime
264
+ startDate
265
+ startTime
266
+ }
267
+ `;
268
+ var EVENT_LOCATION_FIELDS_FRAGMENT = import_client3.gql`
269
+ fragment EventLocationFields on EventLocationType {
250
270
  city
251
271
  coordinates
252
272
  country
@@ -257,72 +277,74 @@ var VENDOR_LOCATION_FIELDS_FRAGMENT = import_client3.gql`
257
277
  type
258
278
  }
259
279
  `;
260
- var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client3.gql`
261
- fragment VendorDateTimeFields on VendorDateTimeType {
262
- endDate
263
- endTime
264
- startDate
265
- startTime
266
- }
267
- `;
268
- var VENDOR_MENU_FIELDS_FRAGMENT = import_client3.gql`
269
- fragment VendorMenuFields on VendorMenuType {
270
- description
271
- name
272
- price
273
- productGroups
280
+ var EVENT_INFO = import_client3.gql`
281
+ fragment EventInfoFields on EventInfoType {
282
+ _id
283
+ applicationDeadlineHours
284
+ dateTime {
285
+ endDate
286
+ endTime
287
+ stallTypes {
288
+ ...StallTypeFields
289
+ }
290
+ startDate
291
+ startTime
292
+ }
293
+ eventId
294
+ packInTime
295
+ paymentDueHours
296
+ paymentInfo {
297
+ accountHolderName
298
+ accountNumber
299
+ link
300
+ paymentMethod
301
+ }
302
+ requirements {
303
+ category
304
+ label
305
+ value
306
+ }
274
307
  }
308
+ ${STALL_TYPE_FIELDS_FRAGMENT}
275
309
  `;
276
- var VENDOR = import_client3.gql`
277
- fragment VendorFields on VendorType {
310
+ var EVENT = import_client3.gql`
311
+ fragment EventFields on EventType {
278
312
  _id
279
313
  active
280
314
  adIds
281
- availability {
282
- corporate
283
- private
284
- school
285
- }
286
- vendorInfoId
287
- categories {
288
- ...CategoryFields
315
+ cover {
316
+ ...ResourceImageFields
289
317
  }
318
+ createdAt
290
319
  contactDetails {
291
320
  ...ContactDetailsFields
292
321
  }
293
- cover {
294
- ...ResourceImageFields
322
+ dateTime {
323
+ ...EventDateTimeFields
295
324
  }
296
- createdAt
297
325
  description
298
326
  deletedAt
299
327
  images {
300
328
  ...ResourceImageFields
301
329
  }
302
- locations {
303
- dateTime {
304
- ...VendorDateTimeFields
305
- }
306
- description
307
- location {
308
- ...VendorLocationFields
309
- }
330
+ eventType
331
+ location {
332
+ ...EventLocationFields
310
333
  }
311
334
  logo {
312
335
  ...ResourceImageFields
313
336
  }
314
- multiLocation
337
+ eventInfoId
315
338
  name
339
+ nzbn
316
340
  owner {
317
341
  ...OwnerFields
318
342
  }
319
343
  partners {
320
344
  ...PartnerFields
321
345
  }
322
- products {
323
- ...VendorMenuFields
324
- }
325
346
  promoCodes
347
+ provider
326
348
  posterUsage {
327
349
  ...PosterUsageFields
328
350
  }
@@ -334,209 +356,77 @@ var VENDOR = import_client3.gql`
334
356
  socialMedia {
335
357
  ...SocialMediaFields
336
358
  }
359
+ rainOrShine
360
+ tags
337
361
  termsAgreement {
338
362
  ...TermsAgreementFields
339
363
  }
340
364
  updatedAt
341
- vendorType
342
365
  }
343
- ${CATEGORY_FIELDS_FRAGMENT}
344
- ${VENDOR_DATETIME_FIELDS_FRAGMENT}
345
- ${VENDOR_LOCATION_FIELDS_FRAGMENT}
366
+ ${EVENT_DATETIME_FIELDS_FRAGMENT}
367
+ ${EVENT_LOCATION_FIELDS_FRAGMENT}
346
368
  ${OWNER_FIELDS_FRAGMENT}
347
369
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
348
370
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
349
371
  ${POSTER_USAGE_FIELDS_FRAGMENT}
350
372
  ${PARTNER_FIELDS_FRAGMENT}
351
- ${VENDOR_MENU_FIELDS_FRAGMENT}
352
373
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
353
374
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
354
375
  ${RELATION_DATES_FRAGMENT}
355
376
  `;
356
- var VENDOR_ATTRIBUTES_FRAGMENT = import_client3.gql`
357
- fragment VendorAttributesFields on VendorAttributesType {
358
- details
359
- isRequired
360
- }
361
- `;
362
- var VENDOR_INFO = import_client3.gql`
363
- fragment VendorInfoFields on VendorInfoType {
364
- _id
365
- compliance {
366
- foodBeverageLicense
367
- liabilityInsurance
368
- }
369
- documents {
370
- ...ResourceImageFields
371
- }
372
- requirements {
373
- electricity {
374
- ...VendorAttributesFields
375
- }
376
- gazebo {
377
- ...VendorAttributesFields
378
- }
379
- table {
380
- ...VendorAttributesFields
381
- }
382
- }
383
- product {
384
- foodFlavors
385
- packaging
386
- priceRange {
387
- max
388
- min
389
- }
390
- producedIn
391
- }
392
- stallInfo {
393
- size {
394
- depth
395
- width
396
- }
397
- }
398
- vendorId
399
- }
400
- ${VENDOR_ATTRIBUTES_FRAGMENT}
401
- ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
402
- `;
403
- var GET_VENDORS = import_client3.gql`
404
- query getVendors {
405
- vendors {
406
- ...VendorFields
407
- }
408
- }
409
- ${VENDOR}
410
- `;
411
- var GET_VENDOR = import_client3.gql`
412
- query getVendor($_id: ID!) {
413
- vendor(_id: $_id) {
414
- ...VendorFields
415
- }
416
- }
417
- ${VENDOR}
418
- `;
419
- var GET_VENDORS_BY_REGION = import_client3.gql`
420
- query getVendorsByRegion($region: String!) {
421
- vendorsByRegion(region: $region) {
422
- ...VendorFields
423
- }
424
- }
425
- ${VENDOR}
426
- `;
427
- var SEARCH_VENDORS = import_client3.gql`
428
- query searchVendors($search: String!, $region: String) {
429
- vendorSearch(search: $search, region: $region) {
430
- ...VendorFields
431
- }
432
- }
433
- ${VENDOR}
434
- `;
435
- var GET_VENDOR_INFO = import_client3.gql`
436
- query getVendorInfo($vendorId: ID!) {
437
- vendorInfo(vendorId: $vendorId) {
438
- ...VendorInfoFields
439
- }
440
- }
441
- ${VENDOR_INFO}
442
- `;
443
-
444
- // src/graphql/queries/relation.ts
445
- var RELATION_DATES_FRAGMENT = import_client4.gql`
446
- fragment RelationDates on RelationDateType {
447
- lastUpdateBy {
448
- resourceId
449
- userEmail
450
- }
451
- paymentReference
452
- stallType {
453
- ...StallTypeFields
454
- }
455
- startDate
456
- startTime
457
- status
458
- }
459
- ${STALL_TYPE_FIELDS_FRAGMENT}
460
- `;
461
- var RELATION_FIELDS_FRAGMENT = import_client4.gql`
462
- fragment RelationFields on RelationType {
463
- _id
464
- active
465
- apiMessage
466
- chatId
467
- createdAt
468
- lastUpdateBy
469
- eventId
470
- relationDates {
471
- ...RelationDates
377
+ var GET_EVENTS = import_client3.gql`
378
+ query getEvents {
379
+ events {
380
+ ...EventFields
472
381
  }
473
- relationType
474
- vendorId
475
- updatedAt
476
382
  }
477
- ${RELATION_DATES_FRAGMENT}
383
+ ${EVENT}
478
384
  `;
479
- var GET_RELATION = import_client4.gql`
480
- query getRelation($_id: ID!) {
481
- relation(_id: $_id) {
482
- ...RelationFields
385
+ var GET_EVENT = import_client3.gql`
386
+ query getEvent($_id: ID!) {
387
+ event(_id: $_id) {
388
+ ...EventFields
483
389
  }
484
390
  }
485
- ${RELATION_FIELDS_FRAGMENT}
391
+ ${EVENT}
486
392
  `;
487
- var GET_RELATION_BY_EVENT_AND_VENDOR = import_client4.gql`
488
- query getRelationByEventAndVendor($eventId: ID!, $vendorId: ID!) {
489
- relationByEventAndVendor(eventId: $eventId, vendorId: $vendorId) {
490
- ...RelationFields
393
+ var GET_EVENTS_BY_REGION = import_client3.gql`
394
+ query getEventsByRegion($region: String!) {
395
+ eventsByRegion(region: $region) {
396
+ ...EventFields
491
397
  }
492
398
  }
493
- ${RELATION_FIELDS_FRAGMENT}
399
+ ${EVENT}
494
400
  `;
495
- var GET_EVENT_RELATIONS = import_client4.gql`
496
- query getEventRelations($eventId: ID!) {
497
- eventRelations(eventId: $eventId) {
498
- ...RelationFields
401
+ var SEARCH_EVENTS = import_client3.gql`
402
+ query searchEvents($search: String!, $region: String) {
403
+ eventsSearch(search: $search, region: $region) {
404
+ ...EventFields
499
405
  }
500
406
  }
501
- ${RELATION_FIELDS_FRAGMENT}
407
+ ${EVENT}
502
408
  `;
503
- var GET_VENDOR_RELATIONS = import_client4.gql`
504
- query getVendorRelations($vendorId: ID!) {
505
- vendorRelations(vendorId: $vendorId) {
506
- ...RelationFields
409
+ var GET_EVENTS_NEAR_ME = import_client3.gql`
410
+ query getEventsNearMe($latitude: Float!, $longitude: Float!, $radius: Int) {
411
+ eventsNearMe(latitude: $latitude, longitude: $longitude, radius: $radius) {
412
+ ...EventFields
507
413
  }
508
414
  }
509
- ${RELATION_FIELDS_FRAGMENT}
415
+ ${EVENT}
510
416
  `;
511
- var GET_RESOURCE_CONNECTIONS = import_client4.gql`
512
- query getResourceConnections(
513
- $resourceId: ID!
514
- $resourceType: ResourceTypeEnum!
515
- ) {
516
- resourceConnections(resourceId: $resourceId, resourceType: $resourceType) {
517
- events {
518
- ...EventFields
519
- }
520
- vendors {
521
- ...VendorFields
522
- }
417
+ var GET_EVENT_INFO = import_client3.gql`
418
+ query getEventInfo($eventId: ID!) {
419
+ eventInfo(eventId: $eventId) {
420
+ ...EventInfoFields
523
421
  }
524
422
  }
525
- ${VENDOR}
526
- ${EVENT}
423
+ ${EVENT_INFO}
527
424
  `;
528
425
 
529
- // src/graphql/queries/event.ts
530
- var EVENT_DATETIME_FIELDS_FRAGMENT2 = import_client5.gql`
531
- fragment EventDateTimeFields on EventDateTimeType {
532
- endDate
533
- endTime
534
- startDate
535
- startTime
536
- }
537
- `;
538
- var EVENT_LOCATION_FIELDS_FRAGMENT2 = import_client5.gql`
539
- fragment EventLocationFields on EventLocationType {
426
+ // src/graphql/queries/vendor.ts
427
+ var import_client4 = require("@apollo/client");
428
+ var VENDOR_LOCATION_FIELDS_FRAGMENT = import_client4.gql`
429
+ fragment VendorLocationFields on VendorLocationType {
540
430
  city
541
431
  coordinates
542
432
  country
@@ -547,74 +437,72 @@ var EVENT_LOCATION_FIELDS_FRAGMENT2 = import_client5.gql`
547
437
  type
548
438
  }
549
439
  `;
550
- var EVENT_INFO = import_client5.gql`
551
- fragment EventInfoFields on EventInfoType {
552
- _id
553
- applicationDeadlineHours
554
- dateTime {
555
- endDate
556
- endTime
557
- stallTypes {
558
- ...StallTypeFields
559
- }
560
- startDate
561
- startTime
562
- }
563
- eventId
564
- packInTime
565
- paymentDueHours
566
- paymentInfo {
567
- accountHolderName
568
- accountNumber
569
- link
570
- paymentMethod
571
- }
572
- requirements {
573
- category
574
- label
575
- value
576
- }
577
- }
578
- ${STALL_TYPE_FIELDS_FRAGMENT}
579
- `;
580
- var EVENT = import_client5.gql`
581
- fragment EventFields on EventType {
440
+ var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client4.gql`
441
+ fragment VendorDateTimeFields on VendorDateTimeType {
442
+ endDate
443
+ endTime
444
+ startDate
445
+ startTime
446
+ }
447
+ `;
448
+ var VENDOR_MENU_FIELDS_FRAGMENT = import_client4.gql`
449
+ fragment VendorMenuFields on VendorMenuType {
450
+ description
451
+ name
452
+ price
453
+ productGroups
454
+ }
455
+ `;
456
+ var VENDOR = import_client4.gql`
457
+ fragment VendorFields on VendorType {
582
458
  _id
583
459
  active
584
460
  adIds
585
- cover {
586
- ...ResourceImageFields
461
+ availability {
462
+ corporate
463
+ private
464
+ school
465
+ }
466
+ vendorInfoId
467
+ categories {
468
+ ...CategoryFields
587
469
  }
588
- createdAt
589
470
  contactDetails {
590
471
  ...ContactDetailsFields
591
472
  }
592
- dateTime {
593
- ...EventDateTimeFields
473
+ cover {
474
+ ...ResourceImageFields
594
475
  }
476
+ createdAt
595
477
  description
596
478
  deletedAt
597
479
  images {
598
480
  ...ResourceImageFields
599
481
  }
600
- eventType
601
- location {
602
- ...EventLocationFields
482
+ locations {
483
+ dateTime {
484
+ ...VendorDateTimeFields
485
+ }
486
+ description
487
+ location {
488
+ ...VendorLocationFields
489
+ }
603
490
  }
604
491
  logo {
605
492
  ...ResourceImageFields
606
493
  }
607
- eventInfoId
494
+ multiLocation
608
495
  name
609
- nzbn
610
496
  owner {
611
497
  ...OwnerFields
612
498
  }
613
499
  partners {
614
500
  ...PartnerFields
615
501
  }
502
+ products {
503
+ ...VendorMenuFields
504
+ }
616
505
  promoCodes
617
- provider
618
506
  posterUsage {
619
507
  ...PosterUsageFields
620
508
  }
@@ -626,76 +514,116 @@ var EVENT = import_client5.gql`
626
514
  socialMedia {
627
515
  ...SocialMediaFields
628
516
  }
629
- rainOrShine
630
- tags
631
517
  termsAgreement {
632
518
  ...TermsAgreementFields
633
519
  }
634
520
  updatedAt
521
+ vendorType
635
522
  }
636
- ${EVENT_DATETIME_FIELDS_FRAGMENT2}
637
- ${EVENT_LOCATION_FIELDS_FRAGMENT2}
523
+ ${CATEGORY_FIELDS_FRAGMENT}
524
+ ${VENDOR_DATETIME_FIELDS_FRAGMENT}
525
+ ${VENDOR_LOCATION_FIELDS_FRAGMENT}
638
526
  ${OWNER_FIELDS_FRAGMENT}
639
527
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
640
528
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
641
529
  ${POSTER_USAGE_FIELDS_FRAGMENT}
642
530
  ${PARTNER_FIELDS_FRAGMENT}
531
+ ${VENDOR_MENU_FIELDS_FRAGMENT}
643
532
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
644
533
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
645
534
  ${RELATION_DATES_FRAGMENT}
646
535
  `;
647
- var GET_EVENTS = import_client5.gql`
648
- query getEvents {
649
- events {
650
- ...EventFields
536
+ var VENDOR_ATTRIBUTES_FRAGMENT = import_client4.gql`
537
+ fragment VendorAttributesFields on VendorAttributesType {
538
+ details
539
+ isRequired
540
+ }
541
+ `;
542
+ var VENDOR_INFO = import_client4.gql`
543
+ fragment VendorInfoFields on VendorInfoType {
544
+ _id
545
+ compliance {
546
+ foodBeverageLicense
547
+ liabilityInsurance
548
+ }
549
+ documents {
550
+ ...ResourceImageFields
551
+ }
552
+ requirements {
553
+ electricity {
554
+ ...VendorAttributesFields
555
+ }
556
+ gazebo {
557
+ ...VendorAttributesFields
558
+ }
559
+ table {
560
+ ...VendorAttributesFields
561
+ }
562
+ }
563
+ product {
564
+ foodFlavors
565
+ packaging
566
+ priceRange {
567
+ max
568
+ min
569
+ }
570
+ producedIn
571
+ }
572
+ stallInfo {
573
+ size {
574
+ depth
575
+ width
576
+ }
651
577
  }
578
+ vendorId
652
579
  }
653
- ${EVENT}
580
+ ${VENDOR_ATTRIBUTES_FRAGMENT}
581
+ ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
654
582
  `;
655
- var GET_EVENT = import_client5.gql`
656
- query getEvent($_id: ID!) {
657
- event(_id: $_id) {
658
- ...EventFields
583
+ var GET_VENDORS = import_client4.gql`
584
+ query getVendors {
585
+ vendors {
586
+ ...VendorFields
659
587
  }
660
588
  }
661
- ${EVENT}
589
+ ${VENDOR}
662
590
  `;
663
- var GET_EVENTS_BY_REGION = import_client5.gql`
664
- query getEventsByRegion($region: String!) {
665
- eventsByRegion(region: $region) {
666
- ...EventFields
591
+ var GET_VENDOR = import_client4.gql`
592
+ query getVendor($_id: ID!) {
593
+ vendor(_id: $_id) {
594
+ ...VendorFields
667
595
  }
668
596
  }
669
- ${EVENT}
597
+ ${VENDOR}
670
598
  `;
671
- var SEARCH_EVENTS = import_client5.gql`
672
- query searchEvents($search: String!, $region: String) {
673
- eventsSearch(search: $search, region: $region) {
674
- ...EventFields
599
+ var GET_VENDORS_BY_REGION = import_client4.gql`
600
+ query getVendorsByRegion($region: String!) {
601
+ vendorsByRegion(region: $region) {
602
+ ...VendorFields
675
603
  }
676
604
  }
677
- ${EVENT}
605
+ ${VENDOR}
678
606
  `;
679
- var GET_EVENTS_NEAR_ME = import_client5.gql`
680
- query getEventsNearMe($latitude: Float!, $longitude: Float!, $radius: Int) {
681
- eventsNearMe(latitude: $latitude, longitude: $longitude, radius: $radius) {
682
- ...EventFields
607
+ var SEARCH_VENDORS = import_client4.gql`
608
+ query searchVendors($search: String!, $region: String) {
609
+ vendorSearch(search: $search, region: $region) {
610
+ ...VendorFields
683
611
  }
684
612
  }
685
- ${EVENT}
613
+ ${VENDOR}
686
614
  `;
687
- var GET_EVENT_INFO = import_client5.gql`
688
- query getEventInfo($eventId: ID!) {
689
- eventInfo(eventId: $eventId) {
690
- ...EventInfoFields
615
+ var GET_VENDOR_INFO = import_client4.gql`
616
+ query getVendorInfo($vendorId: ID!) {
617
+ vendorInfo(vendorId: $vendorId) {
618
+ ...VendorInfoFields
691
619
  }
692
620
  }
693
- ${EVENT_INFO}
621
+ ${VENDOR_INFO}
694
622
  `;
695
623
 
696
624
  // src/graphql/hooks/admin/hooksMutation.ts
697
625
  var useAdminUpdateResourceType = () => {
698
- const [adminUpdateResourceType, { loading, error }] = (0, import_client6.useMutation)(
626
+ const [adminUpdateResourceType, { loading, error }] = (0, import_client5.useMutation)(
699
627
  ADMIN_UPDATE_RESOURCE_TYPE_MUTATION,
700
628
  {
701
629
  awaitRefetchQueries: true,
@@ -722,11 +650,11 @@ var useAdminUpdateResourceType = () => {
722
650
  };
723
651
 
724
652
  // src/graphql/hooks/auth.ts
725
- var import_client8 = require("@apollo/client");
653
+ var import_client7 = require("@apollo/client");
726
654
 
727
655
  // src/graphql/mutations/auth.ts
728
- var import_client7 = require("@apollo/client");
729
- var REGISTER_MUTATION = import_client7.gql`
656
+ var import_client6 = require("@apollo/client");
657
+ var REGISTER_MUTATION = import_client6.gql`
730
658
  mutation register($input: RegisterInputType!) {
731
659
  register(input: $input) {
732
660
  message
@@ -739,7 +667,7 @@ var REGISTER_MUTATION = import_client7.gql`
739
667
  }
740
668
  ${USER_FIELDS_FRAGMENT}
741
669
  `;
742
- var LOGIN_MUTATION = import_client7.gql`
670
+ var LOGIN_MUTATION = import_client6.gql`
743
671
  mutation login($input: LoginInputType!) {
744
672
  login(input: $input) {
745
673
  message
@@ -752,14 +680,14 @@ var LOGIN_MUTATION = import_client7.gql`
752
680
  }
753
681
  ${USER_FIELDS_FRAGMENT}
754
682
  `;
755
- var LOGOUT_MUTATION = import_client7.gql`
683
+ var LOGOUT_MUTATION = import_client6.gql`
756
684
  mutation logout {
757
685
  logout {
758
686
  message
759
687
  }
760
688
  }
761
689
  `;
762
- var REFRESH_TOKEN_MUTATION = import_client7.gql`
690
+ var REFRESH_TOKEN_MUTATION = import_client6.gql`
763
691
  mutation refreshToken($input: RefreshTokenInputType!) {
764
692
  refreshToken(input: $input) {
765
693
  refreshToken
@@ -767,21 +695,21 @@ var REFRESH_TOKEN_MUTATION = import_client7.gql`
767
695
  }
768
696
  }
769
697
  `;
770
- var RESET_PASSWORD_MUTATION = import_client7.gql`
698
+ var RESET_PASSWORD_MUTATION = import_client6.gql`
771
699
  mutation resetPassword($input: ResetPasswordInputType!) {
772
700
  resetPassword(input: $input) {
773
701
  message
774
702
  }
775
703
  }
776
704
  `;
777
- var REQUEST_PASSWORD_RESET_MUTATION = import_client7.gql`
705
+ var REQUEST_PASSWORD_RESET_MUTATION = import_client6.gql`
778
706
  mutation requestPasswordReset($input: RequestPasswordResetInputType!) {
779
707
  requestPasswordReset(input: $input) {
780
708
  message
781
709
  }
782
710
  }
783
711
  `;
784
- var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client7.gql`
712
+ var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client6.gql`
785
713
  mutation validateVerificationToken(
786
714
  $input: ValidateVerificationTokenInputType!
787
715
  ) {
@@ -793,51 +721,51 @@ var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client7.gql`
793
721
 
794
722
  // src/graphql/hooks/auth.ts
795
723
  var useRegister = () => {
796
- const [register, { loading, error }] = (0, import_client8.useMutation)(REGISTER_MUTATION);
724
+ const [register, { loading, error }] = (0, import_client7.useMutation)(REGISTER_MUTATION);
797
725
  return { error, loading, register };
798
726
  };
799
727
  var useLogin = () => {
800
- const [login, { loading, error }] = (0, import_client8.useMutation)(LOGIN_MUTATION);
728
+ const [login, { loading, error }] = (0, import_client7.useMutation)(LOGIN_MUTATION);
801
729
  return { error, loading, login };
802
730
  };
803
731
  var useLogout = () => {
804
- const [logout, { loading, error }] = (0, import_client8.useMutation)(LOGOUT_MUTATION);
732
+ const [logout, { loading, error }] = (0, import_client7.useMutation)(LOGOUT_MUTATION);
805
733
  return { error, loading, logout };
806
734
  };
807
735
  var useRefreshToken = () => {
808
- const [refreshToken, { loading, error }] = (0, import_client8.useMutation)(
736
+ const [refreshToken, { loading, error }] = (0, import_client7.useMutation)(
809
737
  REFRESH_TOKEN_MUTATION
810
738
  );
811
739
  return { error, loading, refreshToken };
812
740
  };
813
741
  var useRequestPasswordReset = () => {
814
- const [requestPasswordReset, { loading, error }] = (0, import_client8.useMutation)(
742
+ const [requestPasswordReset, { loading, error }] = (0, import_client7.useMutation)(
815
743
  REQUEST_PASSWORD_RESET_MUTATION
816
744
  );
817
745
  return { error, loading, requestPasswordReset };
818
746
  };
819
747
  var useValidateVerificationToken = () => {
820
- const [validateVerificationToken, { loading, error }] = (0, import_client8.useMutation)(
748
+ const [validateVerificationToken, { loading, error }] = (0, import_client7.useMutation)(
821
749
  VALIDATE_VERIFICATION_TOKEN_MUTATION
822
750
  );
823
751
  return { error, loading, validateVerificationToken };
824
752
  };
825
753
  var useResetPassword = () => {
826
- const [resetPassword, { loading, error }] = (0, import_client8.useMutation)(
754
+ const [resetPassword, { loading, error }] = (0, import_client7.useMutation)(
827
755
  RESET_PASSWORD_MUTATION
828
756
  );
829
757
  return { error, loading, resetPassword };
830
758
  };
831
759
 
832
760
  // src/graphql/hooks/chat/hooksMutation.ts
833
- var import_client11 = require("@apollo/client");
761
+ var import_client10 = require("@apollo/client");
834
762
 
835
763
  // src/graphql/mutations/chat.ts
836
- var import_client10 = require("@apollo/client");
764
+ var import_client9 = require("@apollo/client");
837
765
 
838
766
  // src/graphql/queries/chat.ts
839
- var import_client9 = require("@apollo/client");
840
- var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client9.gql`
767
+ var import_client8 = require("@apollo/client");
768
+ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client8.gql`
841
769
  fragment ChatMessageFields on ChatMessageType {
842
770
  _id
843
771
  content
@@ -848,14 +776,14 @@ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client9.gql`
848
776
  updatedAt
849
777
  }
850
778
  `;
851
- var CHAT_PARTICIPANT = import_client9.gql`
779
+ var CHAT_PARTICIPANT = import_client8.gql`
852
780
  fragment ChatParticipantFields on ChatParticipantType {
853
781
  active
854
782
  email
855
783
  userId
856
784
  }
857
785
  `;
858
- var CHAT_FIELDS_FRAGMENT = import_client9.gql`
786
+ var CHAT_FIELDS_FRAGMENT = import_client8.gql`
859
787
  fragment ChatFields on ChatType {
860
788
  _id
861
789
  active
@@ -878,7 +806,7 @@ var CHAT_FIELDS_FRAGMENT = import_client9.gql`
878
806
  ${CHAT_MESSAGE_FIELDS_FRAGMENT}
879
807
  ${CHAT_PARTICIPANT}
880
808
  `;
881
- var CHAT = import_client9.gql`
809
+ var CHAT = import_client8.gql`
882
810
  query chat($_id: ID!) {
883
811
  chat(_id: $_id) {
884
812
  ...ChatFields
@@ -886,7 +814,7 @@ var CHAT = import_client9.gql`
886
814
  }
887
815
  ${CHAT_FIELDS_FRAGMENT}
888
816
  `;
889
- var USER_CHATS = import_client9.gql`
817
+ var USER_CHATS = import_client8.gql`
890
818
  query userChats {
891
819
  userChats {
892
820
  ...ChatFields
@@ -896,7 +824,7 @@ var USER_CHATS = import_client9.gql`
896
824
  `;
897
825
 
898
826
  // src/graphql/mutations/chat.ts
899
- var SEND_CHAT_MESSAGE_MUTATION = import_client10.gql`
827
+ var SEND_CHAT_MESSAGE_MUTATION = import_client9.gql`
900
828
  mutation sendChatMessage($_id: ID!, $input: ChatMessageInputType!) {
901
829
  sendChatMessage(_id: $_id, input: $input) {
902
830
  ...ChatFields
@@ -904,12 +832,12 @@ var SEND_CHAT_MESSAGE_MUTATION = import_client10.gql`
904
832
  }
905
833
  ${CHAT_FIELDS_FRAGMENT}
906
834
  `;
907
- var DELETE_CHAT_MUTATION = import_client10.gql`
835
+ var DELETE_CHAT_MUTATION = import_client9.gql`
908
836
  mutation deleteChat($_id: ID!) {
909
837
  deleteChat(_id: $_id)
910
838
  }
911
839
  `;
912
- var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client10.gql`
840
+ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client9.gql`
913
841
  mutation addParticipantToChat($chatId: ID!, $userId: ID!) {
914
842
  addParticipantToChat(chatId: $chatId, userId: $userId) {
915
843
  ...ChatFields
@@ -917,7 +845,7 @@ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client10.gql`
917
845
  }
918
846
  ${CHAT_FIELDS_FRAGMENT}
919
847
  `;
920
- var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client10.gql`
848
+ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client9.gql`
921
849
  mutation removeParticipantFromChat($chatId: ID!, $userId: ID!) {
922
850
  removeParticipantFromChat(chatId: $chatId, userId: $userId) {
923
851
  ...ChatFields
@@ -928,7 +856,7 @@ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client10.gql`
928
856
 
929
857
  // src/graphql/hooks/chat/hooksMutation.ts
930
858
  var useSendChatMessage = () => {
931
- const [sendChatMessage, { loading, error }] = (0, import_client11.useMutation)(
859
+ const [sendChatMessage, { loading, error }] = (0, import_client10.useMutation)(
932
860
  SEND_CHAT_MESSAGE_MUTATION,
933
861
  {
934
862
  awaitRefetchQueries: true,
@@ -946,14 +874,14 @@ var useSendChatMessage = () => {
946
874
  return { error, loading, sendChatMessage };
947
875
  };
948
876
  var useDeleteChat = () => {
949
- const [deleteChat, { loading, error }] = (0, import_client11.useMutation)(DELETE_CHAT_MUTATION, {
877
+ const [deleteChat, { loading, error }] = (0, import_client10.useMutation)(DELETE_CHAT_MUTATION, {
950
878
  awaitRefetchQueries: true,
951
879
  refetchQueries: [{ query: USER_CHATS }]
952
880
  });
953
881
  return { deleteChat, error, loading };
954
882
  };
955
883
  var useAddParticipantToChat = () => {
956
- const [addParticipantToChat, { loading, error }] = (0, import_client11.useMutation)(
884
+ const [addParticipantToChat, { loading, error }] = (0, import_client10.useMutation)(
957
885
  ADD_PARTICIPANT_TO_CHAT_MUTATION,
958
886
  {
959
887
  awaitRefetchQueries: true,
@@ -974,7 +902,7 @@ var useAddParticipantToChat = () => {
974
902
  return { addParticipantToChat, error, loading };
975
903
  };
976
904
  var useRemoveParticipantFromChat = () => {
977
- const [removeParticipantFromChat, { loading, error }] = (0, import_client11.useMutation)(
905
+ const [removeParticipantFromChat, { loading, error }] = (0, import_client10.useMutation)(
978
906
  REMOVE_PARTICIPANT_FROM_CHAT_MUTATION,
979
907
  {
980
908
  awaitRefetchQueries: true,
@@ -996,11 +924,11 @@ var useRemoveParticipantFromChat = () => {
996
924
  };
997
925
 
998
926
  // src/graphql/hooks/chat/hooksQuery.ts
999
- var import_client13 = require("@apollo/client");
927
+ var import_client12 = require("@apollo/client");
1000
928
 
1001
929
  // src/graphql/subscriptions/chat.ts
1002
- var import_client12 = require("@apollo/client");
1003
- var GET_CHAT_MESSAGE = import_client12.gql`
930
+ var import_client11 = require("@apollo/client");
931
+ var GET_CHAT_MESSAGE = import_client11.gql`
1004
932
  subscription {
1005
933
  getChatMessage {
1006
934
  ...ChatFields
@@ -1011,7 +939,7 @@ var GET_CHAT_MESSAGE = import_client12.gql`
1011
939
 
1012
940
  // src/graphql/hooks/chat/hooksQuery.ts
1013
941
  var useGetChat = (_id) => {
1014
- const { loading, error, data, refetch } = (0, import_client13.useQuery)(CHAT, {
942
+ const { loading, error, data, refetch } = (0, import_client12.useQuery)(CHAT, {
1015
943
  fetchPolicy: "network-only",
1016
944
  skip: !_id,
1017
945
  variables: { _id }
@@ -1020,24 +948,24 @@ var useGetChat = (_id) => {
1020
948
  return { chat, error, loading, refetch };
1021
949
  };
1022
950
  var useGetUserChats = () => {
1023
- const { loading, error, data, refetch } = (0, import_client13.useQuery)(USER_CHATS, {
951
+ const { loading, error, data, refetch } = (0, import_client12.useQuery)(USER_CHATS, {
1024
952
  fetchPolicy: "network-only"
1025
953
  });
1026
954
  const userChats = data?.userChats;
1027
955
  return { error, loading, refetch, userChats };
1028
956
  };
1029
957
  var useGetChatSubscription = () => {
1030
- const { data, loading, error } = (0, import_client13.useSubscription)(GET_CHAT_MESSAGE);
958
+ const { data, loading, error } = (0, import_client12.useSubscription)(GET_CHAT_MESSAGE);
1031
959
  const chat = data?.getChat;
1032
960
  return { chat, error, loading };
1033
961
  };
1034
962
 
1035
963
  // src/graphql/hooks/contactUs.ts
1036
- var import_client15 = require("@apollo/client");
964
+ var import_client14 = require("@apollo/client");
1037
965
 
1038
966
  // src/graphql/mutations/contactUs.ts
1039
- var import_client14 = require("@apollo/client");
1040
- var CONTACT_US_MUTATION = import_client14.gql`
967
+ var import_client13 = require("@apollo/client");
968
+ var CONTACT_US_MUTATION = import_client13.gql`
1041
969
  mutation contactUs($input: ContactUsInputType!) {
1042
970
  contactUs(input: $input) {
1043
971
  message
@@ -1047,16 +975,16 @@ var CONTACT_US_MUTATION = import_client14.gql`
1047
975
 
1048
976
  // src/graphql/hooks/contactUs.ts
1049
977
  var useContactUs = () => {
1050
- const [contactUs, { loading, error }] = (0, import_client15.useMutation)(CONTACT_US_MUTATION);
978
+ const [contactUs, { loading, error }] = (0, import_client14.useMutation)(CONTACT_US_MUTATION);
1051
979
  return { contactUs, error, loading };
1052
980
  };
1053
981
 
1054
982
  // src/graphql/hooks/event/hooksMutation.ts
1055
- var import_client18 = require("@apollo/client");
983
+ var import_client17 = require("@apollo/client");
1056
984
 
1057
985
  // src/graphql/mutations/event.ts
1058
- var import_client16 = require("@apollo/client");
1059
- var CREATE_EVENT_MUTATION = import_client16.gql`
986
+ var import_client15 = require("@apollo/client");
987
+ var CREATE_EVENT_MUTATION = import_client15.gql`
1060
988
  mutation createEvent($input: EventInputType!) {
1061
989
  createEvent(input: $input) {
1062
990
  ...EventFields
@@ -1064,7 +992,7 @@ var CREATE_EVENT_MUTATION = import_client16.gql`
1064
992
  }
1065
993
  ${EVENT}
1066
994
  `;
1067
- var UPDATE_EVENT_MUTATION = import_client16.gql`
995
+ var UPDATE_EVENT_MUTATION = import_client15.gql`
1068
996
  mutation updateEvent($_id: ID!, $input: EventInputType!) {
1069
997
  updateEvent(_id: $_id, input: $input) {
1070
998
  ...EventFields
@@ -1072,12 +1000,12 @@ var UPDATE_EVENT_MUTATION = import_client16.gql`
1072
1000
  }
1073
1001
  ${EVENT}
1074
1002
  `;
1075
- var DELETE_EVENT_MUTATION = import_client16.gql`
1003
+ var DELETE_EVENT_MUTATION = import_client15.gql`
1076
1004
  mutation deleteEvent($_id: ID!) {
1077
1005
  deleteEvent(_id: $_id)
1078
1006
  }
1079
1007
  `;
1080
- var CREATE_EVENT_INFO_MUTATION = import_client16.gql`
1008
+ var CREATE_EVENT_INFO_MUTATION = import_client15.gql`
1081
1009
  mutation createEventInfo($input: EventInfoInputType!) {
1082
1010
  createEventInfo(input: $input) {
1083
1011
  ...EventInfoFields
@@ -1085,7 +1013,7 @@ var CREATE_EVENT_INFO_MUTATION = import_client16.gql`
1085
1013
  }
1086
1014
  ${EVENT_INFO}
1087
1015
  `;
1088
- var UPDATE_EVENT_INFO_MUTATION = import_client16.gql`
1016
+ var UPDATE_EVENT_INFO_MUTATION = import_client15.gql`
1089
1017
  mutation updateEventInfo($_id: ID!, $input: EventInfoInputType!) {
1090
1018
  updateEventInfo(_id: $_id, input: $input) {
1091
1019
  ...EventInfoFields
@@ -1095,8 +1023,8 @@ var UPDATE_EVENT_INFO_MUTATION = import_client16.gql`
1095
1023
  `;
1096
1024
 
1097
1025
  // src/graphql/queries/user.ts
1098
- var import_client17 = require("@apollo/client");
1099
- var GET_USERS = import_client17.gql`
1026
+ var import_client16 = require("@apollo/client");
1027
+ var GET_USERS = import_client16.gql`
1100
1028
  query getUsers {
1101
1029
  users {
1102
1030
  ...UserFields
@@ -1104,7 +1032,7 @@ var GET_USERS = import_client17.gql`
1104
1032
  }
1105
1033
  ${USER_FIELDS_FRAGMENT}
1106
1034
  `;
1107
- var GET_USER = import_client17.gql`
1035
+ var GET_USER = import_client16.gql`
1108
1036
  query getUser($_id: ID!) {
1109
1037
  user(_id: $_id) {
1110
1038
  ...UserFields
@@ -1112,7 +1040,7 @@ var GET_USER = import_client17.gql`
1112
1040
  }
1113
1041
  ${USER_FIELDS_FRAGMENT}
1114
1042
  `;
1115
- var GET_USER_EVENTS = import_client17.gql`
1043
+ var GET_USER_EVENTS = import_client16.gql`
1116
1044
  query getUserEvents {
1117
1045
  userEvents {
1118
1046
  ...EventFields
@@ -1120,7 +1048,7 @@ var GET_USER_EVENTS = import_client17.gql`
1120
1048
  }
1121
1049
  ${EVENT}
1122
1050
  `;
1123
- var GET_USER_VENDORS = import_client17.gql`
1051
+ var GET_USER_VENDORS = import_client16.gql`
1124
1052
  query getUserVendors {
1125
1053
  userVendors {
1126
1054
  ...VendorFields
@@ -1128,7 +1056,7 @@ var GET_USER_VENDORS = import_client17.gql`
1128
1056
  }
1129
1057
  ${VENDOR}
1130
1058
  `;
1131
- var GET_USER_FAVOURITES = import_client17.gql`
1059
+ var GET_USER_FAVOURITES = import_client16.gql`
1132
1060
  query getUserFavourites {
1133
1061
  userFavourites {
1134
1062
  events {
@@ -1145,28 +1073,28 @@ var GET_USER_FAVOURITES = import_client17.gql`
1145
1073
 
1146
1074
  // src/graphql/hooks/event/hooksMutation.ts
1147
1075
  var useCreateEvent = () => {
1148
- const [createEvent, { loading, error }] = (0, import_client18.useMutation)(CREATE_EVENT_MUTATION, {
1076
+ const [createEvent, { loading, error }] = (0, import_client17.useMutation)(CREATE_EVENT_MUTATION, {
1149
1077
  awaitRefetchQueries: true,
1150
1078
  refetchQueries: [{ fetchPolicy: "no-cache", query: GET_USER_EVENTS }]
1151
1079
  });
1152
1080
  return { createEvent, error, loading };
1153
1081
  };
1154
1082
  var useUpdateEvent = () => {
1155
- const [updateEvent, { loading, error }] = (0, import_client18.useMutation)(UPDATE_EVENT_MUTATION, {
1083
+ const [updateEvent, { loading, error }] = (0, import_client17.useMutation)(UPDATE_EVENT_MUTATION, {
1156
1084
  awaitRefetchQueries: true,
1157
1085
  refetchQueries: [{ fetchPolicy: "no-cache", query: GET_USER_EVENTS }]
1158
1086
  });
1159
1087
  return { error, loading, updateEvent };
1160
1088
  };
1161
1089
  var useDeleteEvent = () => {
1162
- const [deleteEvent, { loading, error }] = (0, import_client18.useMutation)(DELETE_EVENT_MUTATION, {
1090
+ const [deleteEvent, { loading, error }] = (0, import_client17.useMutation)(DELETE_EVENT_MUTATION, {
1163
1091
  awaitRefetchQueries: true,
1164
1092
  refetchQueries: [{ fetchPolicy: "no-cache", query: GET_USER_EVENTS }]
1165
1093
  });
1166
1094
  return { deleteEvent, error, loading };
1167
1095
  };
1168
1096
  var useCreateEventInfo = () => {
1169
- const [createEventInfo, { loading, error }] = (0, import_client18.useMutation)(
1097
+ const [createEventInfo, { loading, error }] = (0, import_client17.useMutation)(
1170
1098
  CREATE_EVENT_INFO_MUTATION,
1171
1099
  {
1172
1100
  awaitRefetchQueries: true,
@@ -1195,7 +1123,7 @@ var useCreateEventInfo = () => {
1195
1123
  return { createEventInfo, error, loading };
1196
1124
  };
1197
1125
  var useUpdateEventInfo = () => {
1198
- const [updateEventInfo, { loading, error }] = (0, import_client18.useMutation)(
1126
+ const [updateEventInfo, { loading, error }] = (0, import_client17.useMutation)(
1199
1127
  UPDATE_EVENT_INFO_MUTATION,
1200
1128
  {
1201
1129
  awaitRefetchQueries: true,
@@ -1221,16 +1149,16 @@ var useUpdateEventInfo = () => {
1221
1149
  };
1222
1150
 
1223
1151
  // src/graphql/hooks/event/hooksQuery.ts
1224
- var import_client19 = require("@apollo/client");
1152
+ var import_client18 = require("@apollo/client");
1225
1153
  var useGetEvents = () => {
1226
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENTS, {
1154
+ const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_EVENTS, {
1227
1155
  fetchPolicy: "network-only"
1228
1156
  });
1229
1157
  const events = data?.events;
1230
1158
  return { error, events, loading, refetch };
1231
1159
  };
1232
1160
  var useGetEvent = (_id) => {
1233
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENT, {
1161
+ const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_EVENT, {
1234
1162
  fetchPolicy: "network-only",
1235
1163
  skip: !_id,
1236
1164
  variables: { _id }
@@ -1239,7 +1167,7 @@ var useGetEvent = (_id) => {
1239
1167
  return { error, event, loading, refetch };
1240
1168
  };
1241
1169
  var useGetEventsByRegion = (region) => {
1242
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENTS_BY_REGION, {
1170
+ const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_EVENTS_BY_REGION, {
1243
1171
  fetchPolicy: "no-cache",
1244
1172
  skip: !region,
1245
1173
  variables: { region }
@@ -1248,7 +1176,7 @@ var useGetEventsByRegion = (region) => {
1248
1176
  return { error, eventsByRegion, loading, refetch };
1249
1177
  };
1250
1178
  var useSearchEvents = (search, region) => {
1251
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(SEARCH_EVENTS, {
1179
+ const { loading, error, data, refetch } = (0, import_client18.useQuery)(SEARCH_EVENTS, {
1252
1180
  fetchPolicy: "network-only",
1253
1181
  skip: search.length < 3,
1254
1182
  variables: { region, search }
@@ -1257,7 +1185,7 @@ var useSearchEvents = (search, region) => {
1257
1185
  return { error, eventsSearch, loading, refetch };
1258
1186
  };
1259
1187
  var useGetEventsNearMe = (location) => {
1260
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENTS_NEAR_ME, {
1188
+ const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_EVENTS_NEAR_ME, {
1261
1189
  fetchPolicy: "network-only",
1262
1190
  skip: !location.latitude || !location.longitude,
1263
1191
  variables: {
@@ -1271,7 +1199,7 @@ var useGetEventsNearMe = (location) => {
1271
1199
  return { error, eventsNearMe, loading, refetch };
1272
1200
  };
1273
1201
  var useGetEventInfo = (eventId) => {
1274
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENT_INFO, {
1202
+ const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_EVENT_INFO, {
1275
1203
  fetchPolicy: "network-only",
1276
1204
  skip: !eventId,
1277
1205
  variables: { eventId }
@@ -1281,14 +1209,14 @@ var useGetEventInfo = (eventId) => {
1281
1209
  };
1282
1210
 
1283
1211
  // src/graphql/hooks/notifications/hooksMutation.ts
1284
- var import_client22 = require("@apollo/client");
1212
+ var import_client21 = require("@apollo/client");
1285
1213
 
1286
1214
  // src/graphql/mutations/notification.ts
1287
- var import_client21 = require("@apollo/client");
1215
+ var import_client20 = require("@apollo/client");
1288
1216
 
1289
1217
  // src/graphql/queries/notification.ts
1290
- var import_client20 = require("@apollo/client");
1291
- var NOTIFICATION_FRAGMENT = import_client20.gql`
1218
+ var import_client19 = require("@apollo/client");
1219
+ var NOTIFICATION_FRAGMENT = import_client19.gql`
1292
1220
  fragment NotificationFields on Notification {
1293
1221
  _id
1294
1222
  userId
@@ -1305,7 +1233,7 @@ var NOTIFICATION_FRAGMENT = import_client20.gql`
1305
1233
  updatedAt
1306
1234
  }
1307
1235
  `;
1308
- var GET_USER_NOTIFICATIONS = import_client20.gql`
1236
+ var GET_USER_NOTIFICATIONS = import_client19.gql`
1309
1237
  query getUserNotifications($limit: Int, $offset: Int) {
1310
1238
  userNotifications(limit: $limit, offset: $offset) {
1311
1239
  ...NotificationFields
@@ -1313,7 +1241,7 @@ var GET_USER_NOTIFICATIONS = import_client20.gql`
1313
1241
  }
1314
1242
  ${NOTIFICATION_FRAGMENT}
1315
1243
  `;
1316
- var GET_NOTIFICATION_COUNT = import_client20.gql`
1244
+ var GET_NOTIFICATION_COUNT = import_client19.gql`
1317
1245
  query getNotificationCount {
1318
1246
  notificationCount {
1319
1247
  total
@@ -1323,7 +1251,7 @@ var GET_NOTIFICATION_COUNT = import_client20.gql`
1323
1251
  `;
1324
1252
 
1325
1253
  // src/graphql/mutations/notification.ts
1326
- var CREATE_BULK_NOTIFICATIONS = import_client21.gql`
1254
+ var CREATE_BULK_NOTIFICATIONS = import_client20.gql`
1327
1255
  mutation createBulkNotifications($input: CreateBulkNotificationInput!) {
1328
1256
  createBulkNotifications(input: $input) {
1329
1257
  ...NotificationFields
@@ -1331,7 +1259,7 @@ var CREATE_BULK_NOTIFICATIONS = import_client21.gql`
1331
1259
  }
1332
1260
  ${NOTIFICATION_FRAGMENT}
1333
1261
  `;
1334
- var MARK_NOTIFICATION_READ = import_client21.gql`
1262
+ var MARK_NOTIFICATION_READ = import_client20.gql`
1335
1263
  mutation markNotificationRead($_id: ID!) {
1336
1264
  markNotificationRead(_id: $_id) {
1337
1265
  ...NotificationFields
@@ -1339,17 +1267,17 @@ var MARK_NOTIFICATION_READ = import_client21.gql`
1339
1267
  }
1340
1268
  ${NOTIFICATION_FRAGMENT}
1341
1269
  `;
1342
- var MARK_ALL_NOTIFICATIONS_READ = import_client21.gql`
1270
+ var MARK_ALL_NOTIFICATIONS_READ = import_client20.gql`
1343
1271
  mutation markAllNotificationsRead {
1344
1272
  markAllNotificationsRead
1345
1273
  }
1346
1274
  `;
1347
- var DELETE_NOTIFICATION = import_client21.gql`
1275
+ var DELETE_NOTIFICATION = import_client20.gql`
1348
1276
  mutation deleteNotification($_id: ID!) {
1349
1277
  deleteNotification(_id: $_id)
1350
1278
  }
1351
1279
  `;
1352
- var DELETE_ALL_NOTIFICATIONS = import_client21.gql`
1280
+ var DELETE_ALL_NOTIFICATIONS = import_client20.gql`
1353
1281
  mutation deleteAllNotifications {
1354
1282
  deleteAllNotifications
1355
1283
  }
@@ -1357,13 +1285,13 @@ var DELETE_ALL_NOTIFICATIONS = import_client21.gql`
1357
1285
 
1358
1286
  // src/graphql/hooks/notifications/hooksMutation.ts
1359
1287
  var useCreateBulkNotifications = () => {
1360
- const [createBulkNotifications, { loading, error }] = (0, import_client22.useMutation)(
1288
+ const [createBulkNotifications, { loading, error }] = (0, import_client21.useMutation)(
1361
1289
  CREATE_BULK_NOTIFICATIONS
1362
1290
  );
1363
1291
  return { createBulkNotifications, error, loading };
1364
1292
  };
1365
1293
  var useMarkNotificationRead = () => {
1366
- const [markNotificationRead, { loading, error }] = (0, import_client22.useMutation)(
1294
+ const [markNotificationRead, { loading, error }] = (0, import_client21.useMutation)(
1367
1295
  MARK_NOTIFICATION_READ,
1368
1296
  {
1369
1297
  fetchPolicy: "no-cache",
@@ -1380,7 +1308,7 @@ var useMarkNotificationRead = () => {
1380
1308
  return { error, loading, markNotificationRead };
1381
1309
  };
1382
1310
  var useMarkAllNotificationsRead = () => {
1383
- const [markAllNotificationsRead, { loading, error }] = (0, import_client22.useMutation)(
1311
+ const [markAllNotificationsRead, { loading, error }] = (0, import_client21.useMutation)(
1384
1312
  MARK_ALL_NOTIFICATIONS_READ,
1385
1313
  {
1386
1314
  fetchPolicy: "no-cache",
@@ -1397,7 +1325,7 @@ var useMarkAllNotificationsRead = () => {
1397
1325
  return { error, loading, markAllNotificationsRead };
1398
1326
  };
1399
1327
  var useDeleteNotification = () => {
1400
- const [deleteNotification, { loading, error }] = (0, import_client22.useMutation)(
1328
+ const [deleteNotification, { loading, error }] = (0, import_client21.useMutation)(
1401
1329
  DELETE_NOTIFICATION,
1402
1330
  {
1403
1331
  fetchPolicy: "no-cache",
@@ -1414,7 +1342,7 @@ var useDeleteNotification = () => {
1414
1342
  return { deleteNotification, error, loading };
1415
1343
  };
1416
1344
  var useDeleteAllNotifications = () => {
1417
- const [deleteAllNotifications, { loading, error }] = (0, import_client22.useMutation)(
1345
+ const [deleteAllNotifications, { loading, error }] = (0, import_client21.useMutation)(
1418
1346
  DELETE_ALL_NOTIFICATIONS,
1419
1347
  {
1420
1348
  fetchPolicy: "no-cache",
@@ -1432,9 +1360,9 @@ var useDeleteAllNotifications = () => {
1432
1360
  };
1433
1361
 
1434
1362
  // src/graphql/hooks/notifications/hooksQuery.ts
1435
- var import_client23 = require("@apollo/client");
1363
+ var import_client22 = require("@apollo/client");
1436
1364
  var useGetUserNotifications = (limit, offset) => {
1437
- const { data, loading, error, refetch } = (0, import_client23.useQuery)(GET_USER_NOTIFICATIONS, {
1365
+ const { data, loading, error, refetch } = (0, import_client22.useQuery)(GET_USER_NOTIFICATIONS, {
1438
1366
  fetchPolicy: "no-cache",
1439
1367
  variables: { limit, offset }
1440
1368
  });
@@ -1446,7 +1374,7 @@ var useGetUserNotifications = (limit, offset) => {
1446
1374
  };
1447
1375
  };
1448
1376
  var useGetNotificationCount = () => {
1449
- const { data, loading, error, refetch } = (0, import_client23.useQuery)(GET_NOTIFICATION_COUNT, {
1377
+ const { data, loading, error, refetch } = (0, import_client22.useQuery)(GET_NOTIFICATION_COUNT, {
1450
1378
  fetchPolicy: "no-cache"
1451
1379
  });
1452
1380
  return {
@@ -1458,11 +1386,11 @@ var useGetNotificationCount = () => {
1458
1386
  };
1459
1387
 
1460
1388
  // src/graphql/hooks/notifications/hooksSubscription.ts
1461
- var import_client25 = require("@apollo/client");
1389
+ var import_client24 = require("@apollo/client");
1462
1390
 
1463
1391
  // src/graphql/subscriptions/notification.ts
1464
- var import_client24 = require("@apollo/client");
1465
- var GET_NOTIFICATIONS_SUBSCRIPTION = import_client24.gql`
1392
+ var import_client23 = require("@apollo/client");
1393
+ var GET_NOTIFICATIONS_SUBSCRIPTION = import_client23.gql`
1466
1394
  subscription {
1467
1395
  getUserNotifications {
1468
1396
  ...NotificationFields
@@ -1470,7 +1398,7 @@ var GET_NOTIFICATIONS_SUBSCRIPTION = import_client24.gql`
1470
1398
  }
1471
1399
  ${NOTIFICATION_FRAGMENT}
1472
1400
  `;
1473
- var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client24.gql`
1401
+ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client23.gql`
1474
1402
  subscription {
1475
1403
  getNotificationCount {
1476
1404
  total
@@ -1481,7 +1409,7 @@ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client24.gql`
1481
1409
 
1482
1410
  // src/graphql/hooks/notifications/hooksSubscription.ts
1483
1411
  var useGetUserNotificationsSubscription = () => {
1484
- const { data, loading, error } = (0, import_client25.useSubscription)(GET_NOTIFICATIONS_SUBSCRIPTION, {
1412
+ const { data, loading, error } = (0, import_client24.useSubscription)(GET_NOTIFICATIONS_SUBSCRIPTION, {
1485
1413
  fetchPolicy: "no-cache",
1486
1414
  shouldResubscribe: true
1487
1415
  });
@@ -1492,7 +1420,7 @@ var useGetUserNotificationsSubscription = () => {
1492
1420
  };
1493
1421
  };
1494
1422
  var useGetNotificationCountSubscription = () => {
1495
- const { data, loading, error } = (0, import_client25.useSubscription)(GET_NOTIFICATION_COUNT_SUBSCRIPTION, {
1423
+ const { data, loading, error } = (0, import_client24.useSubscription)(GET_NOTIFICATION_COUNT_SUBSCRIPTION, {
1496
1424
  fetchPolicy: "no-cache",
1497
1425
  shouldResubscribe: true
1498
1426
  });
@@ -1504,11 +1432,11 @@ var useGetNotificationCountSubscription = () => {
1504
1432
  };
1505
1433
 
1506
1434
  // src/graphql/hooks/poster.ts
1507
- var import_client27 = require("@apollo/client");
1435
+ var import_client26 = require("@apollo/client");
1508
1436
 
1509
1437
  // src/graphql/mutations/poster.ts
1510
- var import_client26 = require("@apollo/client");
1511
- var CREATE_POSTER_MUTATION = import_client26.gql`
1438
+ var import_client25 = require("@apollo/client");
1439
+ var CREATE_POSTER_MUTATION = import_client25.gql`
1512
1440
  mutation createPoster($input: PosterInputType!) {
1513
1441
  createPoster(input: $input) {
1514
1442
  message
@@ -1522,7 +1450,7 @@ var CREATE_POSTER_MUTATION = import_client26.gql`
1522
1450
 
1523
1451
  // src/graphql/hooks/poster.ts
1524
1452
  var useCreatePoster = () => {
1525
- const [createPoster, { loading, error }] = (0, import_client27.useMutation)(
1453
+ const [createPoster, { loading, error }] = (0, import_client26.useMutation)(
1526
1454
  CREATE_POSTER_MUTATION,
1527
1455
  {
1528
1456
  fetchPolicy: "no-cache",
@@ -1533,11 +1461,11 @@ var useCreatePoster = () => {
1533
1461
  };
1534
1462
 
1535
1463
  // src/graphql/hooks/pushToken.ts
1536
- var import_client29 = require("@apollo/client");
1464
+ var import_client28 = require("@apollo/client");
1537
1465
 
1538
1466
  // src/graphql/mutations/pushToken.ts
1539
- var import_client28 = require("@apollo/client");
1540
- var CREATE_PUSH_TOKEN_MUTATION = import_client28.gql`
1467
+ var import_client27 = require("@apollo/client");
1468
+ var CREATE_PUSH_TOKEN_MUTATION = import_client27.gql`
1541
1469
  mutation createPushToken($input: PushTokenInput!) {
1542
1470
  createPushToken(input: $input) {
1543
1471
  success
@@ -1547,7 +1475,7 @@ var CREATE_PUSH_TOKEN_MUTATION = import_client28.gql`
1547
1475
 
1548
1476
  // src/graphql/hooks/pushToken.ts
1549
1477
  var useCreatePushToken = () => {
1550
- const [createPushToken, { loading, error }] = (0, import_client29.useMutation)(
1478
+ const [createPushToken, { loading, error }] = (0, import_client28.useMutation)(
1551
1479
  CREATE_PUSH_TOKEN_MUTATION
1552
1480
  );
1553
1481
  return { createPushToken, error, loading };
@@ -1558,6 +1486,78 @@ var import_client31 = require("@apollo/client");
1558
1486
 
1559
1487
  // src/graphql/mutations/relation.ts
1560
1488
  var import_client30 = require("@apollo/client");
1489
+
1490
+ // src/graphql/queries/relation.ts
1491
+ var import_client29 = require("@apollo/client");
1492
+ var RELATION_FIELDS_FRAGMENT = import_client29.gql`
1493
+ fragment RelationFields on RelationType {
1494
+ _id
1495
+ active
1496
+ apiMessage
1497
+ chatId
1498
+ createdAt
1499
+ lastUpdateBy
1500
+ eventId
1501
+ relationDates {
1502
+ ...RelationDates
1503
+ }
1504
+ relationType
1505
+ vendorId
1506
+ updatedAt
1507
+ }
1508
+ ${RELATION_DATES_FRAGMENT}
1509
+ `;
1510
+ var GET_RELATION = import_client29.gql`
1511
+ query getRelation($_id: ID!) {
1512
+ relation(_id: $_id) {
1513
+ ...RelationFields
1514
+ }
1515
+ }
1516
+ ${RELATION_FIELDS_FRAGMENT}
1517
+ `;
1518
+ var GET_RELATION_BY_EVENT_AND_VENDOR = import_client29.gql`
1519
+ query getRelationByEventAndVendor($eventId: ID!, $vendorId: ID!) {
1520
+ relationByEventAndVendor(eventId: $eventId, vendorId: $vendorId) {
1521
+ ...RelationFields
1522
+ }
1523
+ }
1524
+ ${RELATION_FIELDS_FRAGMENT}
1525
+ `;
1526
+ var GET_EVENT_RELATIONS = import_client29.gql`
1527
+ query getEventRelations($eventId: ID!) {
1528
+ eventRelations(eventId: $eventId) {
1529
+ ...RelationFields
1530
+ }
1531
+ }
1532
+ ${RELATION_FIELDS_FRAGMENT}
1533
+ `;
1534
+ var GET_VENDOR_RELATIONS = import_client29.gql`
1535
+ query getVendorRelations($vendorId: ID!) {
1536
+ vendorRelations(vendorId: $vendorId) {
1537
+ ...RelationFields
1538
+ }
1539
+ }
1540
+ ${RELATION_FIELDS_FRAGMENT}
1541
+ `;
1542
+ var GET_RESOURCE_CONNECTIONS = import_client29.gql`
1543
+ query getResourceConnections(
1544
+ $resourceId: ID!
1545
+ $resourceType: ResourceTypeEnum!
1546
+ ) {
1547
+ resourceConnections(resourceId: $resourceId, resourceType: $resourceType) {
1548
+ events {
1549
+ ...EventFields
1550
+ }
1551
+ vendors {
1552
+ ...VendorFields
1553
+ }
1554
+ }
1555
+ }
1556
+ ${VENDOR}
1557
+ ${EVENT}
1558
+ `;
1559
+
1560
+ // src/graphql/mutations/relation.ts
1561
1561
  var CREATE_RELATION_MUTATION = import_client30.gql`
1562
1562
  mutation createRelation($input: RelationInputType!) {
1563
1563
  createRelation(input: $input) {