@timardex/cluemart-shared 1.2.13 → 1.2.15

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");
@@ -349,9 +349,11 @@ var EVENT = import_client3.gql`
349
349
  ...PosterUsageFields
350
350
  }
351
351
  region
352
- relationIds
353
- relationDates {
354
- ...RelationDates
352
+ relations {
353
+ relationId
354
+ relationDates {
355
+ ...RelationDates
356
+ }
355
357
  }
356
358
  socialMedia {
357
359
  ...SocialMediaFields
@@ -424,96 +426,8 @@ var GET_EVENT_INFO = import_client3.gql`
424
426
  `;
425
427
 
426
428
  // src/graphql/queries/vendor.ts
427
- var import_client5 = require("@apollo/client");
428
-
429
- // src/graphql/queries/relation.ts
430
429
  var import_client4 = require("@apollo/client");
431
- var RELATION_DATES_FRAGMENT2 = import_client4.gql`
432
- fragment RelationDates on RelationDateType {
433
- lastUpdateBy {
434
- resourceId
435
- userEmail
436
- }
437
- paymentReference
438
- stallType {
439
- ...StallTypeFields
440
- }
441
- startDate
442
- startTime
443
- status
444
- }
445
- ${STALL_TYPE_FIELDS_FRAGMENT}
446
- `;
447
- var RELATION_FIELDS_FRAGMENT = import_client4.gql`
448
- fragment RelationFields on RelationType {
449
- _id
450
- active
451
- apiMessage
452
- chatId
453
- createdAt
454
- lastUpdateBy
455
- eventId
456
- relationDates {
457
- ...RelationDates
458
- }
459
- relationType
460
- vendorId
461
- updatedAt
462
- }
463
- ${RELATION_DATES_FRAGMENT2}
464
- `;
465
- var GET_RELATION = import_client4.gql`
466
- query getRelation($_id: ID!) {
467
- relation(_id: $_id) {
468
- ...RelationFields
469
- }
470
- }
471
- ${RELATION_FIELDS_FRAGMENT}
472
- `;
473
- var GET_RELATION_BY_EVENT_AND_VENDOR = import_client4.gql`
474
- query getRelationByEventAndVendor($eventId: ID!, $vendorId: ID!) {
475
- relationByEventAndVendor(eventId: $eventId, vendorId: $vendorId) {
476
- ...RelationFields
477
- }
478
- }
479
- ${RELATION_FIELDS_FRAGMENT}
480
- `;
481
- var GET_EVENT_RELATIONS = import_client4.gql`
482
- query getEventRelations($eventId: ID!) {
483
- eventRelations(eventId: $eventId) {
484
- ...RelationFields
485
- }
486
- }
487
- ${RELATION_FIELDS_FRAGMENT}
488
- `;
489
- var GET_VENDOR_RELATIONS = import_client4.gql`
490
- query getVendorRelations($vendorId: ID!) {
491
- vendorRelations(vendorId: $vendorId) {
492
- ...RelationFields
493
- }
494
- }
495
- ${RELATION_FIELDS_FRAGMENT}
496
- `;
497
- var GET_RESOURCE_CONNECTIONS = import_client4.gql`
498
- query getResourceConnections(
499
- $resourceId: ID!
500
- $resourceType: ResourceTypeEnum!
501
- ) {
502
- resourceConnections(resourceId: $resourceId, resourceType: $resourceType) {
503
- events {
504
- ...EventFields
505
- }
506
- vendors {
507
- ...VendorFields
508
- }
509
- }
510
- }
511
- ${VENDOR}
512
- ${EVENT}
513
- `;
514
-
515
- // src/graphql/queries/vendor.ts
516
- var VENDOR_LOCATION_FIELDS_FRAGMENT = import_client5.gql`
430
+ var VENDOR_LOCATION_FIELDS_FRAGMENT = import_client4.gql`
517
431
  fragment VendorLocationFields on VendorLocationType {
518
432
  city
519
433
  coordinates
@@ -525,7 +439,7 @@ var VENDOR_LOCATION_FIELDS_FRAGMENT = import_client5.gql`
525
439
  type
526
440
  }
527
441
  `;
528
- var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client5.gql`
442
+ var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client4.gql`
529
443
  fragment VendorDateTimeFields on VendorDateTimeType {
530
444
  endDate
531
445
  endTime
@@ -533,7 +447,7 @@ var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client5.gql`
533
447
  startTime
534
448
  }
535
449
  `;
536
- var VENDOR_MENU_FIELDS_FRAGMENT = import_client5.gql`
450
+ var VENDOR_MENU_FIELDS_FRAGMENT = import_client4.gql`
537
451
  fragment VendorMenuFields on VendorMenuType {
538
452
  description
539
453
  name
@@ -541,7 +455,7 @@ var VENDOR_MENU_FIELDS_FRAGMENT = import_client5.gql`
541
455
  productGroups
542
456
  }
543
457
  `;
544
- var VENDOR = import_client5.gql`
458
+ var VENDOR = import_client4.gql`
545
459
  fragment VendorFields on VendorType {
546
460
  _id
547
461
  active
@@ -595,9 +509,11 @@ var VENDOR = import_client5.gql`
595
509
  ...PosterUsageFields
596
510
  }
597
511
  region
598
- relationIds
599
- relationDates {
600
- ...RelationDates
512
+ relations {
513
+ relationId
514
+ relationDates {
515
+ ...RelationDates
516
+ }
601
517
  }
602
518
  socialMedia {
603
519
  ...SocialMediaFields
@@ -619,15 +535,15 @@ var VENDOR = import_client5.gql`
619
535
  ${VENDOR_MENU_FIELDS_FRAGMENT}
620
536
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
621
537
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
622
- ${RELATION_DATES_FRAGMENT2}
538
+ ${RELATION_DATES_FRAGMENT}
623
539
  `;
624
- var VENDOR_ATTRIBUTES_FRAGMENT = import_client5.gql`
540
+ var VENDOR_ATTRIBUTES_FRAGMENT = import_client4.gql`
625
541
  fragment VendorAttributesFields on VendorAttributesType {
626
542
  details
627
543
  isRequired
628
544
  }
629
545
  `;
630
- var VENDOR_INFO = import_client5.gql`
546
+ var VENDOR_INFO = import_client4.gql`
631
547
  fragment VendorInfoFields on VendorInfoType {
632
548
  _id
633
549
  compliance {
@@ -668,7 +584,7 @@ var VENDOR_INFO = import_client5.gql`
668
584
  ${VENDOR_ATTRIBUTES_FRAGMENT}
669
585
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
670
586
  `;
671
- var GET_VENDORS = import_client5.gql`
587
+ var GET_VENDORS = import_client4.gql`
672
588
  query getVendors {
673
589
  vendors {
674
590
  ...VendorFields
@@ -676,7 +592,7 @@ var GET_VENDORS = import_client5.gql`
676
592
  }
677
593
  ${VENDOR}
678
594
  `;
679
- var GET_VENDOR = import_client5.gql`
595
+ var GET_VENDOR = import_client4.gql`
680
596
  query getVendor($_id: ID!) {
681
597
  vendor(_id: $_id) {
682
598
  ...VendorFields
@@ -684,7 +600,7 @@ var GET_VENDOR = import_client5.gql`
684
600
  }
685
601
  ${VENDOR}
686
602
  `;
687
- var GET_VENDORS_BY_REGION = import_client5.gql`
603
+ var GET_VENDORS_BY_REGION = import_client4.gql`
688
604
  query getVendorsByRegion($region: String!) {
689
605
  vendorsByRegion(region: $region) {
690
606
  ...VendorFields
@@ -692,7 +608,7 @@ var GET_VENDORS_BY_REGION = import_client5.gql`
692
608
  }
693
609
  ${VENDOR}
694
610
  `;
695
- var SEARCH_VENDORS = import_client5.gql`
611
+ var SEARCH_VENDORS = import_client4.gql`
696
612
  query searchVendors($search: String!, $region: String) {
697
613
  vendorSearch(search: $search, region: $region) {
698
614
  ...VendorFields
@@ -700,7 +616,7 @@ var SEARCH_VENDORS = import_client5.gql`
700
616
  }
701
617
  ${VENDOR}
702
618
  `;
703
- var GET_VENDOR_INFO = import_client5.gql`
619
+ var GET_VENDOR_INFO = import_client4.gql`
704
620
  query getVendorInfo($vendorId: ID!) {
705
621
  vendorInfo(vendorId: $vendorId) {
706
622
  ...VendorInfoFields
@@ -711,7 +627,7 @@ var GET_VENDOR_INFO = import_client5.gql`
711
627
 
712
628
  // src/graphql/hooks/admin/hooksMutation.ts
713
629
  var useAdminUpdateResourceType = () => {
714
- const [adminUpdateResourceType, { loading, error }] = (0, import_client6.useMutation)(
630
+ const [adminUpdateResourceType, { loading, error }] = (0, import_client5.useMutation)(
715
631
  ADMIN_UPDATE_RESOURCE_TYPE_MUTATION,
716
632
  {
717
633
  awaitRefetchQueries: true,
@@ -738,11 +654,11 @@ var useAdminUpdateResourceType = () => {
738
654
  };
739
655
 
740
656
  // src/graphql/hooks/auth.ts
741
- var import_client8 = require("@apollo/client");
657
+ var import_client7 = require("@apollo/client");
742
658
 
743
659
  // src/graphql/mutations/auth.ts
744
- var import_client7 = require("@apollo/client");
745
- var REGISTER_MUTATION = import_client7.gql`
660
+ var import_client6 = require("@apollo/client");
661
+ var REGISTER_MUTATION = import_client6.gql`
746
662
  mutation register($input: RegisterInputType!) {
747
663
  register(input: $input) {
748
664
  message
@@ -755,7 +671,7 @@ var REGISTER_MUTATION = import_client7.gql`
755
671
  }
756
672
  ${USER_FIELDS_FRAGMENT}
757
673
  `;
758
- var LOGIN_MUTATION = import_client7.gql`
674
+ var LOGIN_MUTATION = import_client6.gql`
759
675
  mutation login($input: LoginInputType!) {
760
676
  login(input: $input) {
761
677
  message
@@ -768,14 +684,14 @@ var LOGIN_MUTATION = import_client7.gql`
768
684
  }
769
685
  ${USER_FIELDS_FRAGMENT}
770
686
  `;
771
- var LOGOUT_MUTATION = import_client7.gql`
687
+ var LOGOUT_MUTATION = import_client6.gql`
772
688
  mutation logout {
773
689
  logout {
774
690
  message
775
691
  }
776
692
  }
777
693
  `;
778
- var REFRESH_TOKEN_MUTATION = import_client7.gql`
694
+ var REFRESH_TOKEN_MUTATION = import_client6.gql`
779
695
  mutation refreshToken($input: RefreshTokenInputType!) {
780
696
  refreshToken(input: $input) {
781
697
  refreshToken
@@ -783,21 +699,21 @@ var REFRESH_TOKEN_MUTATION = import_client7.gql`
783
699
  }
784
700
  }
785
701
  `;
786
- var RESET_PASSWORD_MUTATION = import_client7.gql`
702
+ var RESET_PASSWORD_MUTATION = import_client6.gql`
787
703
  mutation resetPassword($input: ResetPasswordInputType!) {
788
704
  resetPassword(input: $input) {
789
705
  message
790
706
  }
791
707
  }
792
708
  `;
793
- var REQUEST_PASSWORD_RESET_MUTATION = import_client7.gql`
709
+ var REQUEST_PASSWORD_RESET_MUTATION = import_client6.gql`
794
710
  mutation requestPasswordReset($input: RequestPasswordResetInputType!) {
795
711
  requestPasswordReset(input: $input) {
796
712
  message
797
713
  }
798
714
  }
799
715
  `;
800
- var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client7.gql`
716
+ var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client6.gql`
801
717
  mutation validateVerificationToken(
802
718
  $input: ValidateVerificationTokenInputType!
803
719
  ) {
@@ -809,51 +725,51 @@ var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client7.gql`
809
725
 
810
726
  // src/graphql/hooks/auth.ts
811
727
  var useRegister = () => {
812
- const [register, { loading, error }] = (0, import_client8.useMutation)(REGISTER_MUTATION);
728
+ const [register, { loading, error }] = (0, import_client7.useMutation)(REGISTER_MUTATION);
813
729
  return { error, loading, register };
814
730
  };
815
731
  var useLogin = () => {
816
- const [login, { loading, error }] = (0, import_client8.useMutation)(LOGIN_MUTATION);
732
+ const [login, { loading, error }] = (0, import_client7.useMutation)(LOGIN_MUTATION);
817
733
  return { error, loading, login };
818
734
  };
819
735
  var useLogout = () => {
820
- const [logout, { loading, error }] = (0, import_client8.useMutation)(LOGOUT_MUTATION);
736
+ const [logout, { loading, error }] = (0, import_client7.useMutation)(LOGOUT_MUTATION);
821
737
  return { error, loading, logout };
822
738
  };
823
739
  var useRefreshToken = () => {
824
- const [refreshToken, { loading, error }] = (0, import_client8.useMutation)(
740
+ const [refreshToken, { loading, error }] = (0, import_client7.useMutation)(
825
741
  REFRESH_TOKEN_MUTATION
826
742
  );
827
743
  return { error, loading, refreshToken };
828
744
  };
829
745
  var useRequestPasswordReset = () => {
830
- const [requestPasswordReset, { loading, error }] = (0, import_client8.useMutation)(
746
+ const [requestPasswordReset, { loading, error }] = (0, import_client7.useMutation)(
831
747
  REQUEST_PASSWORD_RESET_MUTATION
832
748
  );
833
749
  return { error, loading, requestPasswordReset };
834
750
  };
835
751
  var useValidateVerificationToken = () => {
836
- const [validateVerificationToken, { loading, error }] = (0, import_client8.useMutation)(
752
+ const [validateVerificationToken, { loading, error }] = (0, import_client7.useMutation)(
837
753
  VALIDATE_VERIFICATION_TOKEN_MUTATION
838
754
  );
839
755
  return { error, loading, validateVerificationToken };
840
756
  };
841
757
  var useResetPassword = () => {
842
- const [resetPassword, { loading, error }] = (0, import_client8.useMutation)(
758
+ const [resetPassword, { loading, error }] = (0, import_client7.useMutation)(
843
759
  RESET_PASSWORD_MUTATION
844
760
  );
845
761
  return { error, loading, resetPassword };
846
762
  };
847
763
 
848
764
  // src/graphql/hooks/chat/hooksMutation.ts
849
- var import_client11 = require("@apollo/client");
765
+ var import_client10 = require("@apollo/client");
850
766
 
851
767
  // src/graphql/mutations/chat.ts
852
- var import_client10 = require("@apollo/client");
768
+ var import_client9 = require("@apollo/client");
853
769
 
854
770
  // src/graphql/queries/chat.ts
855
- var import_client9 = require("@apollo/client");
856
- var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client9.gql`
771
+ var import_client8 = require("@apollo/client");
772
+ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client8.gql`
857
773
  fragment ChatMessageFields on ChatMessageType {
858
774
  _id
859
775
  content
@@ -864,14 +780,14 @@ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client9.gql`
864
780
  updatedAt
865
781
  }
866
782
  `;
867
- var CHAT_PARTICIPANT = import_client9.gql`
783
+ var CHAT_PARTICIPANT = import_client8.gql`
868
784
  fragment ChatParticipantFields on ChatParticipantType {
869
785
  active
870
786
  email
871
787
  userId
872
788
  }
873
789
  `;
874
- var CHAT_FIELDS_FRAGMENT = import_client9.gql`
790
+ var CHAT_FIELDS_FRAGMENT = import_client8.gql`
875
791
  fragment ChatFields on ChatType {
876
792
  _id
877
793
  active
@@ -894,7 +810,7 @@ var CHAT_FIELDS_FRAGMENT = import_client9.gql`
894
810
  ${CHAT_MESSAGE_FIELDS_FRAGMENT}
895
811
  ${CHAT_PARTICIPANT}
896
812
  `;
897
- var CHAT = import_client9.gql`
813
+ var CHAT = import_client8.gql`
898
814
  query chat($_id: ID!) {
899
815
  chat(_id: $_id) {
900
816
  ...ChatFields
@@ -902,7 +818,7 @@ var CHAT = import_client9.gql`
902
818
  }
903
819
  ${CHAT_FIELDS_FRAGMENT}
904
820
  `;
905
- var USER_CHATS = import_client9.gql`
821
+ var USER_CHATS = import_client8.gql`
906
822
  query userChats {
907
823
  userChats {
908
824
  ...ChatFields
@@ -912,7 +828,7 @@ var USER_CHATS = import_client9.gql`
912
828
  `;
913
829
 
914
830
  // src/graphql/mutations/chat.ts
915
- var SEND_CHAT_MESSAGE_MUTATION = import_client10.gql`
831
+ var SEND_CHAT_MESSAGE_MUTATION = import_client9.gql`
916
832
  mutation sendChatMessage($_id: ID!, $input: ChatMessageInputType!) {
917
833
  sendChatMessage(_id: $_id, input: $input) {
918
834
  ...ChatFields
@@ -920,12 +836,12 @@ var SEND_CHAT_MESSAGE_MUTATION = import_client10.gql`
920
836
  }
921
837
  ${CHAT_FIELDS_FRAGMENT}
922
838
  `;
923
- var DELETE_CHAT_MUTATION = import_client10.gql`
839
+ var DELETE_CHAT_MUTATION = import_client9.gql`
924
840
  mutation deleteChat($_id: ID!) {
925
841
  deleteChat(_id: $_id)
926
842
  }
927
843
  `;
928
- var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client10.gql`
844
+ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client9.gql`
929
845
  mutation addParticipantToChat($chatId: ID!, $userId: ID!) {
930
846
  addParticipantToChat(chatId: $chatId, userId: $userId) {
931
847
  ...ChatFields
@@ -933,7 +849,7 @@ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client10.gql`
933
849
  }
934
850
  ${CHAT_FIELDS_FRAGMENT}
935
851
  `;
936
- var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client10.gql`
852
+ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client9.gql`
937
853
  mutation removeParticipantFromChat($chatId: ID!, $userId: ID!) {
938
854
  removeParticipantFromChat(chatId: $chatId, userId: $userId) {
939
855
  ...ChatFields
@@ -944,7 +860,7 @@ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client10.gql`
944
860
 
945
861
  // src/graphql/hooks/chat/hooksMutation.ts
946
862
  var useSendChatMessage = () => {
947
- const [sendChatMessage, { loading, error }] = (0, import_client11.useMutation)(
863
+ const [sendChatMessage, { loading, error }] = (0, import_client10.useMutation)(
948
864
  SEND_CHAT_MESSAGE_MUTATION,
949
865
  {
950
866
  awaitRefetchQueries: true,
@@ -962,14 +878,14 @@ var useSendChatMessage = () => {
962
878
  return { error, loading, sendChatMessage };
963
879
  };
964
880
  var useDeleteChat = () => {
965
- const [deleteChat, { loading, error }] = (0, import_client11.useMutation)(DELETE_CHAT_MUTATION, {
881
+ const [deleteChat, { loading, error }] = (0, import_client10.useMutation)(DELETE_CHAT_MUTATION, {
966
882
  awaitRefetchQueries: true,
967
883
  refetchQueries: [{ query: USER_CHATS }]
968
884
  });
969
885
  return { deleteChat, error, loading };
970
886
  };
971
887
  var useAddParticipantToChat = () => {
972
- const [addParticipantToChat, { loading, error }] = (0, import_client11.useMutation)(
888
+ const [addParticipantToChat, { loading, error }] = (0, import_client10.useMutation)(
973
889
  ADD_PARTICIPANT_TO_CHAT_MUTATION,
974
890
  {
975
891
  awaitRefetchQueries: true,
@@ -990,7 +906,7 @@ var useAddParticipantToChat = () => {
990
906
  return { addParticipantToChat, error, loading };
991
907
  };
992
908
  var useRemoveParticipantFromChat = () => {
993
- const [removeParticipantFromChat, { loading, error }] = (0, import_client11.useMutation)(
909
+ const [removeParticipantFromChat, { loading, error }] = (0, import_client10.useMutation)(
994
910
  REMOVE_PARTICIPANT_FROM_CHAT_MUTATION,
995
911
  {
996
912
  awaitRefetchQueries: true,
@@ -1012,11 +928,11 @@ var useRemoveParticipantFromChat = () => {
1012
928
  };
1013
929
 
1014
930
  // src/graphql/hooks/chat/hooksQuery.ts
1015
- var import_client13 = require("@apollo/client");
931
+ var import_client12 = require("@apollo/client");
1016
932
 
1017
933
  // src/graphql/subscriptions/chat.ts
1018
- var import_client12 = require("@apollo/client");
1019
- var GET_CHAT_MESSAGE = import_client12.gql`
934
+ var import_client11 = require("@apollo/client");
935
+ var GET_CHAT_MESSAGE = import_client11.gql`
1020
936
  subscription {
1021
937
  getChatMessage {
1022
938
  ...ChatFields
@@ -1027,7 +943,7 @@ var GET_CHAT_MESSAGE = import_client12.gql`
1027
943
 
1028
944
  // src/graphql/hooks/chat/hooksQuery.ts
1029
945
  var useGetChat = (_id) => {
1030
- const { loading, error, data, refetch } = (0, import_client13.useQuery)(CHAT, {
946
+ const { loading, error, data, refetch } = (0, import_client12.useQuery)(CHAT, {
1031
947
  fetchPolicy: "network-only",
1032
948
  skip: !_id,
1033
949
  variables: { _id }
@@ -1036,24 +952,24 @@ var useGetChat = (_id) => {
1036
952
  return { chat, error, loading, refetch };
1037
953
  };
1038
954
  var useGetUserChats = () => {
1039
- const { loading, error, data, refetch } = (0, import_client13.useQuery)(USER_CHATS, {
955
+ const { loading, error, data, refetch } = (0, import_client12.useQuery)(USER_CHATS, {
1040
956
  fetchPolicy: "network-only"
1041
957
  });
1042
958
  const userChats = data?.userChats;
1043
959
  return { error, loading, refetch, userChats };
1044
960
  };
1045
961
  var useGetChatSubscription = () => {
1046
- const { data, loading, error } = (0, import_client13.useSubscription)(GET_CHAT_MESSAGE);
962
+ const { data, loading, error } = (0, import_client12.useSubscription)(GET_CHAT_MESSAGE);
1047
963
  const chat = data?.getChat;
1048
964
  return { chat, error, loading };
1049
965
  };
1050
966
 
1051
967
  // src/graphql/hooks/contactUs.ts
1052
- var import_client15 = require("@apollo/client");
968
+ var import_client14 = require("@apollo/client");
1053
969
 
1054
970
  // src/graphql/mutations/contactUs.ts
1055
- var import_client14 = require("@apollo/client");
1056
- var CONTACT_US_MUTATION = import_client14.gql`
971
+ var import_client13 = require("@apollo/client");
972
+ var CONTACT_US_MUTATION = import_client13.gql`
1057
973
  mutation contactUs($input: ContactUsInputType!) {
1058
974
  contactUs(input: $input) {
1059
975
  message
@@ -1063,16 +979,16 @@ var CONTACT_US_MUTATION = import_client14.gql`
1063
979
 
1064
980
  // src/graphql/hooks/contactUs.ts
1065
981
  var useContactUs = () => {
1066
- const [contactUs, { loading, error }] = (0, import_client15.useMutation)(CONTACT_US_MUTATION);
982
+ const [contactUs, { loading, error }] = (0, import_client14.useMutation)(CONTACT_US_MUTATION);
1067
983
  return { contactUs, error, loading };
1068
984
  };
1069
985
 
1070
986
  // src/graphql/hooks/event/hooksMutation.ts
1071
- var import_client18 = require("@apollo/client");
987
+ var import_client17 = require("@apollo/client");
1072
988
 
1073
989
  // src/graphql/mutations/event.ts
1074
- var import_client16 = require("@apollo/client");
1075
- var CREATE_EVENT_MUTATION = import_client16.gql`
990
+ var import_client15 = require("@apollo/client");
991
+ var CREATE_EVENT_MUTATION = import_client15.gql`
1076
992
  mutation createEvent($input: EventInputType!) {
1077
993
  createEvent(input: $input) {
1078
994
  ...EventFields
@@ -1080,7 +996,7 @@ var CREATE_EVENT_MUTATION = import_client16.gql`
1080
996
  }
1081
997
  ${EVENT}
1082
998
  `;
1083
- var UPDATE_EVENT_MUTATION = import_client16.gql`
999
+ var UPDATE_EVENT_MUTATION = import_client15.gql`
1084
1000
  mutation updateEvent($_id: ID!, $input: EventInputType!) {
1085
1001
  updateEvent(_id: $_id, input: $input) {
1086
1002
  ...EventFields
@@ -1088,12 +1004,12 @@ var UPDATE_EVENT_MUTATION = import_client16.gql`
1088
1004
  }
1089
1005
  ${EVENT}
1090
1006
  `;
1091
- var DELETE_EVENT_MUTATION = import_client16.gql`
1007
+ var DELETE_EVENT_MUTATION = import_client15.gql`
1092
1008
  mutation deleteEvent($_id: ID!) {
1093
1009
  deleteEvent(_id: $_id)
1094
1010
  }
1095
1011
  `;
1096
- var CREATE_EVENT_INFO_MUTATION = import_client16.gql`
1012
+ var CREATE_EVENT_INFO_MUTATION = import_client15.gql`
1097
1013
  mutation createEventInfo($input: EventInfoInputType!) {
1098
1014
  createEventInfo(input: $input) {
1099
1015
  ...EventInfoFields
@@ -1101,7 +1017,7 @@ var CREATE_EVENT_INFO_MUTATION = import_client16.gql`
1101
1017
  }
1102
1018
  ${EVENT_INFO}
1103
1019
  `;
1104
- var UPDATE_EVENT_INFO_MUTATION = import_client16.gql`
1020
+ var UPDATE_EVENT_INFO_MUTATION = import_client15.gql`
1105
1021
  mutation updateEventInfo($_id: ID!, $input: EventInfoInputType!) {
1106
1022
  updateEventInfo(_id: $_id, input: $input) {
1107
1023
  ...EventInfoFields
@@ -1111,8 +1027,8 @@ var UPDATE_EVENT_INFO_MUTATION = import_client16.gql`
1111
1027
  `;
1112
1028
 
1113
1029
  // src/graphql/queries/user.ts
1114
- var import_client17 = require("@apollo/client");
1115
- var GET_USERS = import_client17.gql`
1030
+ var import_client16 = require("@apollo/client");
1031
+ var GET_USERS = import_client16.gql`
1116
1032
  query getUsers {
1117
1033
  users {
1118
1034
  ...UserFields
@@ -1120,7 +1036,7 @@ var GET_USERS = import_client17.gql`
1120
1036
  }
1121
1037
  ${USER_FIELDS_FRAGMENT}
1122
1038
  `;
1123
- var GET_USER = import_client17.gql`
1039
+ var GET_USER = import_client16.gql`
1124
1040
  query getUser($_id: ID!) {
1125
1041
  user(_id: $_id) {
1126
1042
  ...UserFields
@@ -1128,7 +1044,7 @@ var GET_USER = import_client17.gql`
1128
1044
  }
1129
1045
  ${USER_FIELDS_FRAGMENT}
1130
1046
  `;
1131
- var GET_USER_EVENTS = import_client17.gql`
1047
+ var GET_USER_EVENTS = import_client16.gql`
1132
1048
  query getUserEvents {
1133
1049
  userEvents {
1134
1050
  ...EventFields
@@ -1136,7 +1052,7 @@ var GET_USER_EVENTS = import_client17.gql`
1136
1052
  }
1137
1053
  ${EVENT}
1138
1054
  `;
1139
- var GET_USER_VENDORS = import_client17.gql`
1055
+ var GET_USER_VENDORS = import_client16.gql`
1140
1056
  query getUserVendors {
1141
1057
  userVendors {
1142
1058
  ...VendorFields
@@ -1144,7 +1060,7 @@ var GET_USER_VENDORS = import_client17.gql`
1144
1060
  }
1145
1061
  ${VENDOR}
1146
1062
  `;
1147
- var GET_USER_FAVOURITES = import_client17.gql`
1063
+ var GET_USER_FAVOURITES = import_client16.gql`
1148
1064
  query getUserFavourites {
1149
1065
  userFavourites {
1150
1066
  events {
@@ -1161,28 +1077,28 @@ var GET_USER_FAVOURITES = import_client17.gql`
1161
1077
 
1162
1078
  // src/graphql/hooks/event/hooksMutation.ts
1163
1079
  var useCreateEvent = () => {
1164
- const [createEvent, { loading, error }] = (0, import_client18.useMutation)(CREATE_EVENT_MUTATION, {
1080
+ const [createEvent, { loading, error }] = (0, import_client17.useMutation)(CREATE_EVENT_MUTATION, {
1165
1081
  awaitRefetchQueries: true,
1166
1082
  refetchQueries: [{ fetchPolicy: "no-cache", query: GET_USER_EVENTS }]
1167
1083
  });
1168
1084
  return { createEvent, error, loading };
1169
1085
  };
1170
1086
  var useUpdateEvent = () => {
1171
- const [updateEvent, { loading, error }] = (0, import_client18.useMutation)(UPDATE_EVENT_MUTATION, {
1087
+ const [updateEvent, { loading, error }] = (0, import_client17.useMutation)(UPDATE_EVENT_MUTATION, {
1172
1088
  awaitRefetchQueries: true,
1173
1089
  refetchQueries: [{ fetchPolicy: "no-cache", query: GET_USER_EVENTS }]
1174
1090
  });
1175
1091
  return { error, loading, updateEvent };
1176
1092
  };
1177
1093
  var useDeleteEvent = () => {
1178
- const [deleteEvent, { loading, error }] = (0, import_client18.useMutation)(DELETE_EVENT_MUTATION, {
1094
+ const [deleteEvent, { loading, error }] = (0, import_client17.useMutation)(DELETE_EVENT_MUTATION, {
1179
1095
  awaitRefetchQueries: true,
1180
1096
  refetchQueries: [{ fetchPolicy: "no-cache", query: GET_USER_EVENTS }]
1181
1097
  });
1182
1098
  return { deleteEvent, error, loading };
1183
1099
  };
1184
1100
  var useCreateEventInfo = () => {
1185
- const [createEventInfo, { loading, error }] = (0, import_client18.useMutation)(
1101
+ const [createEventInfo, { loading, error }] = (0, import_client17.useMutation)(
1186
1102
  CREATE_EVENT_INFO_MUTATION,
1187
1103
  {
1188
1104
  awaitRefetchQueries: true,
@@ -1211,7 +1127,7 @@ var useCreateEventInfo = () => {
1211
1127
  return { createEventInfo, error, loading };
1212
1128
  };
1213
1129
  var useUpdateEventInfo = () => {
1214
- const [updateEventInfo, { loading, error }] = (0, import_client18.useMutation)(
1130
+ const [updateEventInfo, { loading, error }] = (0, import_client17.useMutation)(
1215
1131
  UPDATE_EVENT_INFO_MUTATION,
1216
1132
  {
1217
1133
  awaitRefetchQueries: true,
@@ -1237,16 +1153,16 @@ var useUpdateEventInfo = () => {
1237
1153
  };
1238
1154
 
1239
1155
  // src/graphql/hooks/event/hooksQuery.ts
1240
- var import_client19 = require("@apollo/client");
1156
+ var import_client18 = require("@apollo/client");
1241
1157
  var useGetEvents = () => {
1242
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENTS, {
1158
+ const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_EVENTS, {
1243
1159
  fetchPolicy: "network-only"
1244
1160
  });
1245
1161
  const events = data?.events;
1246
1162
  return { error, events, loading, refetch };
1247
1163
  };
1248
1164
  var useGetEvent = (_id) => {
1249
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENT, {
1165
+ const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_EVENT, {
1250
1166
  fetchPolicy: "network-only",
1251
1167
  skip: !_id,
1252
1168
  variables: { _id }
@@ -1255,7 +1171,7 @@ var useGetEvent = (_id) => {
1255
1171
  return { error, event, loading, refetch };
1256
1172
  };
1257
1173
  var useGetEventsByRegion = (region) => {
1258
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENTS_BY_REGION, {
1174
+ const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_EVENTS_BY_REGION, {
1259
1175
  fetchPolicy: "no-cache",
1260
1176
  skip: !region,
1261
1177
  variables: { region }
@@ -1264,7 +1180,7 @@ var useGetEventsByRegion = (region) => {
1264
1180
  return { error, eventsByRegion, loading, refetch };
1265
1181
  };
1266
1182
  var useSearchEvents = (search, region) => {
1267
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(SEARCH_EVENTS, {
1183
+ const { loading, error, data, refetch } = (0, import_client18.useQuery)(SEARCH_EVENTS, {
1268
1184
  fetchPolicy: "network-only",
1269
1185
  skip: search.length < 3,
1270
1186
  variables: { region, search }
@@ -1273,7 +1189,7 @@ var useSearchEvents = (search, region) => {
1273
1189
  return { error, eventsSearch, loading, refetch };
1274
1190
  };
1275
1191
  var useGetEventsNearMe = (location) => {
1276
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENTS_NEAR_ME, {
1192
+ const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_EVENTS_NEAR_ME, {
1277
1193
  fetchPolicy: "network-only",
1278
1194
  skip: !location.latitude || !location.longitude,
1279
1195
  variables: {
@@ -1287,7 +1203,7 @@ var useGetEventsNearMe = (location) => {
1287
1203
  return { error, eventsNearMe, loading, refetch };
1288
1204
  };
1289
1205
  var useGetEventInfo = (eventId) => {
1290
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENT_INFO, {
1206
+ const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_EVENT_INFO, {
1291
1207
  fetchPolicy: "network-only",
1292
1208
  skip: !eventId,
1293
1209
  variables: { eventId }
@@ -1297,14 +1213,14 @@ var useGetEventInfo = (eventId) => {
1297
1213
  };
1298
1214
 
1299
1215
  // src/graphql/hooks/notifications/hooksMutation.ts
1300
- var import_client22 = require("@apollo/client");
1216
+ var import_client21 = require("@apollo/client");
1301
1217
 
1302
1218
  // src/graphql/mutations/notification.ts
1303
- var import_client21 = require("@apollo/client");
1219
+ var import_client20 = require("@apollo/client");
1304
1220
 
1305
1221
  // src/graphql/queries/notification.ts
1306
- var import_client20 = require("@apollo/client");
1307
- var NOTIFICATION_FRAGMENT = import_client20.gql`
1222
+ var import_client19 = require("@apollo/client");
1223
+ var NOTIFICATION_FRAGMENT = import_client19.gql`
1308
1224
  fragment NotificationFields on Notification {
1309
1225
  _id
1310
1226
  userId
@@ -1321,7 +1237,7 @@ var NOTIFICATION_FRAGMENT = import_client20.gql`
1321
1237
  updatedAt
1322
1238
  }
1323
1239
  `;
1324
- var GET_USER_NOTIFICATIONS = import_client20.gql`
1240
+ var GET_USER_NOTIFICATIONS = import_client19.gql`
1325
1241
  query getUserNotifications($limit: Int, $offset: Int) {
1326
1242
  userNotifications(limit: $limit, offset: $offset) {
1327
1243
  ...NotificationFields
@@ -1329,7 +1245,7 @@ var GET_USER_NOTIFICATIONS = import_client20.gql`
1329
1245
  }
1330
1246
  ${NOTIFICATION_FRAGMENT}
1331
1247
  `;
1332
- var GET_NOTIFICATION_COUNT = import_client20.gql`
1248
+ var GET_NOTIFICATION_COUNT = import_client19.gql`
1333
1249
  query getNotificationCount {
1334
1250
  notificationCount {
1335
1251
  total
@@ -1339,7 +1255,7 @@ var GET_NOTIFICATION_COUNT = import_client20.gql`
1339
1255
  `;
1340
1256
 
1341
1257
  // src/graphql/mutations/notification.ts
1342
- var CREATE_BULK_NOTIFICATIONS = import_client21.gql`
1258
+ var CREATE_BULK_NOTIFICATIONS = import_client20.gql`
1343
1259
  mutation createBulkNotifications($input: CreateBulkNotificationInput!) {
1344
1260
  createBulkNotifications(input: $input) {
1345
1261
  ...NotificationFields
@@ -1347,7 +1263,7 @@ var CREATE_BULK_NOTIFICATIONS = import_client21.gql`
1347
1263
  }
1348
1264
  ${NOTIFICATION_FRAGMENT}
1349
1265
  `;
1350
- var MARK_NOTIFICATION_READ = import_client21.gql`
1266
+ var MARK_NOTIFICATION_READ = import_client20.gql`
1351
1267
  mutation markNotificationRead($_id: ID!) {
1352
1268
  markNotificationRead(_id: $_id) {
1353
1269
  ...NotificationFields
@@ -1355,17 +1271,17 @@ var MARK_NOTIFICATION_READ = import_client21.gql`
1355
1271
  }
1356
1272
  ${NOTIFICATION_FRAGMENT}
1357
1273
  `;
1358
- var MARK_ALL_NOTIFICATIONS_READ = import_client21.gql`
1274
+ var MARK_ALL_NOTIFICATIONS_READ = import_client20.gql`
1359
1275
  mutation markAllNotificationsRead {
1360
1276
  markAllNotificationsRead
1361
1277
  }
1362
1278
  `;
1363
- var DELETE_NOTIFICATION = import_client21.gql`
1279
+ var DELETE_NOTIFICATION = import_client20.gql`
1364
1280
  mutation deleteNotification($_id: ID!) {
1365
1281
  deleteNotification(_id: $_id)
1366
1282
  }
1367
1283
  `;
1368
- var DELETE_ALL_NOTIFICATIONS = import_client21.gql`
1284
+ var DELETE_ALL_NOTIFICATIONS = import_client20.gql`
1369
1285
  mutation deleteAllNotifications {
1370
1286
  deleteAllNotifications
1371
1287
  }
@@ -1373,13 +1289,13 @@ var DELETE_ALL_NOTIFICATIONS = import_client21.gql`
1373
1289
 
1374
1290
  // src/graphql/hooks/notifications/hooksMutation.ts
1375
1291
  var useCreateBulkNotifications = () => {
1376
- const [createBulkNotifications, { loading, error }] = (0, import_client22.useMutation)(
1292
+ const [createBulkNotifications, { loading, error }] = (0, import_client21.useMutation)(
1377
1293
  CREATE_BULK_NOTIFICATIONS
1378
1294
  );
1379
1295
  return { createBulkNotifications, error, loading };
1380
1296
  };
1381
1297
  var useMarkNotificationRead = () => {
1382
- const [markNotificationRead, { loading, error }] = (0, import_client22.useMutation)(
1298
+ const [markNotificationRead, { loading, error }] = (0, import_client21.useMutation)(
1383
1299
  MARK_NOTIFICATION_READ,
1384
1300
  {
1385
1301
  fetchPolicy: "no-cache",
@@ -1396,7 +1312,7 @@ var useMarkNotificationRead = () => {
1396
1312
  return { error, loading, markNotificationRead };
1397
1313
  };
1398
1314
  var useMarkAllNotificationsRead = () => {
1399
- const [markAllNotificationsRead, { loading, error }] = (0, import_client22.useMutation)(
1315
+ const [markAllNotificationsRead, { loading, error }] = (0, import_client21.useMutation)(
1400
1316
  MARK_ALL_NOTIFICATIONS_READ,
1401
1317
  {
1402
1318
  fetchPolicy: "no-cache",
@@ -1413,7 +1329,7 @@ var useMarkAllNotificationsRead = () => {
1413
1329
  return { error, loading, markAllNotificationsRead };
1414
1330
  };
1415
1331
  var useDeleteNotification = () => {
1416
- const [deleteNotification, { loading, error }] = (0, import_client22.useMutation)(
1332
+ const [deleteNotification, { loading, error }] = (0, import_client21.useMutation)(
1417
1333
  DELETE_NOTIFICATION,
1418
1334
  {
1419
1335
  fetchPolicy: "no-cache",
@@ -1430,7 +1346,7 @@ var useDeleteNotification = () => {
1430
1346
  return { deleteNotification, error, loading };
1431
1347
  };
1432
1348
  var useDeleteAllNotifications = () => {
1433
- const [deleteAllNotifications, { loading, error }] = (0, import_client22.useMutation)(
1349
+ const [deleteAllNotifications, { loading, error }] = (0, import_client21.useMutation)(
1434
1350
  DELETE_ALL_NOTIFICATIONS,
1435
1351
  {
1436
1352
  fetchPolicy: "no-cache",
@@ -1448,9 +1364,9 @@ var useDeleteAllNotifications = () => {
1448
1364
  };
1449
1365
 
1450
1366
  // src/graphql/hooks/notifications/hooksQuery.ts
1451
- var import_client23 = require("@apollo/client");
1367
+ var import_client22 = require("@apollo/client");
1452
1368
  var useGetUserNotifications = (limit, offset) => {
1453
- const { data, loading, error, refetch } = (0, import_client23.useQuery)(GET_USER_NOTIFICATIONS, {
1369
+ const { data, loading, error, refetch } = (0, import_client22.useQuery)(GET_USER_NOTIFICATIONS, {
1454
1370
  fetchPolicy: "no-cache",
1455
1371
  variables: { limit, offset }
1456
1372
  });
@@ -1462,7 +1378,7 @@ var useGetUserNotifications = (limit, offset) => {
1462
1378
  };
1463
1379
  };
1464
1380
  var useGetNotificationCount = () => {
1465
- const { data, loading, error, refetch } = (0, import_client23.useQuery)(GET_NOTIFICATION_COUNT, {
1381
+ const { data, loading, error, refetch } = (0, import_client22.useQuery)(GET_NOTIFICATION_COUNT, {
1466
1382
  fetchPolicy: "no-cache"
1467
1383
  });
1468
1384
  return {
@@ -1474,11 +1390,11 @@ var useGetNotificationCount = () => {
1474
1390
  };
1475
1391
 
1476
1392
  // src/graphql/hooks/notifications/hooksSubscription.ts
1477
- var import_client25 = require("@apollo/client");
1393
+ var import_client24 = require("@apollo/client");
1478
1394
 
1479
1395
  // src/graphql/subscriptions/notification.ts
1480
- var import_client24 = require("@apollo/client");
1481
- var GET_NOTIFICATIONS_SUBSCRIPTION = import_client24.gql`
1396
+ var import_client23 = require("@apollo/client");
1397
+ var GET_NOTIFICATIONS_SUBSCRIPTION = import_client23.gql`
1482
1398
  subscription {
1483
1399
  getUserNotifications {
1484
1400
  ...NotificationFields
@@ -1486,7 +1402,7 @@ var GET_NOTIFICATIONS_SUBSCRIPTION = import_client24.gql`
1486
1402
  }
1487
1403
  ${NOTIFICATION_FRAGMENT}
1488
1404
  `;
1489
- var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client24.gql`
1405
+ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client23.gql`
1490
1406
  subscription {
1491
1407
  getNotificationCount {
1492
1408
  total
@@ -1497,7 +1413,7 @@ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client24.gql`
1497
1413
 
1498
1414
  // src/graphql/hooks/notifications/hooksSubscription.ts
1499
1415
  var useGetUserNotificationsSubscription = () => {
1500
- const { data, loading, error } = (0, import_client25.useSubscription)(GET_NOTIFICATIONS_SUBSCRIPTION, {
1416
+ const { data, loading, error } = (0, import_client24.useSubscription)(GET_NOTIFICATIONS_SUBSCRIPTION, {
1501
1417
  fetchPolicy: "no-cache",
1502
1418
  shouldResubscribe: true
1503
1419
  });
@@ -1508,7 +1424,7 @@ var useGetUserNotificationsSubscription = () => {
1508
1424
  };
1509
1425
  };
1510
1426
  var useGetNotificationCountSubscription = () => {
1511
- const { data, loading, error } = (0, import_client25.useSubscription)(GET_NOTIFICATION_COUNT_SUBSCRIPTION, {
1427
+ const { data, loading, error } = (0, import_client24.useSubscription)(GET_NOTIFICATION_COUNT_SUBSCRIPTION, {
1512
1428
  fetchPolicy: "no-cache",
1513
1429
  shouldResubscribe: true
1514
1430
  });
@@ -1520,11 +1436,11 @@ var useGetNotificationCountSubscription = () => {
1520
1436
  };
1521
1437
 
1522
1438
  // src/graphql/hooks/poster.ts
1523
- var import_client27 = require("@apollo/client");
1439
+ var import_client26 = require("@apollo/client");
1524
1440
 
1525
1441
  // src/graphql/mutations/poster.ts
1526
- var import_client26 = require("@apollo/client");
1527
- var CREATE_POSTER_MUTATION = import_client26.gql`
1442
+ var import_client25 = require("@apollo/client");
1443
+ var CREATE_POSTER_MUTATION = import_client25.gql`
1528
1444
  mutation createPoster($input: PosterInputType!) {
1529
1445
  createPoster(input: $input) {
1530
1446
  message
@@ -1538,7 +1454,7 @@ var CREATE_POSTER_MUTATION = import_client26.gql`
1538
1454
 
1539
1455
  // src/graphql/hooks/poster.ts
1540
1456
  var useCreatePoster = () => {
1541
- const [createPoster, { loading, error }] = (0, import_client27.useMutation)(
1457
+ const [createPoster, { loading, error }] = (0, import_client26.useMutation)(
1542
1458
  CREATE_POSTER_MUTATION,
1543
1459
  {
1544
1460
  fetchPolicy: "no-cache",
@@ -1549,11 +1465,11 @@ var useCreatePoster = () => {
1549
1465
  };
1550
1466
 
1551
1467
  // src/graphql/hooks/pushToken.ts
1552
- var import_client29 = require("@apollo/client");
1468
+ var import_client28 = require("@apollo/client");
1553
1469
 
1554
1470
  // src/graphql/mutations/pushToken.ts
1555
- var import_client28 = require("@apollo/client");
1556
- var CREATE_PUSH_TOKEN_MUTATION = import_client28.gql`
1471
+ var import_client27 = require("@apollo/client");
1472
+ var CREATE_PUSH_TOKEN_MUTATION = import_client27.gql`
1557
1473
  mutation createPushToken($input: PushTokenInput!) {
1558
1474
  createPushToken(input: $input) {
1559
1475
  success
@@ -1563,7 +1479,7 @@ var CREATE_PUSH_TOKEN_MUTATION = import_client28.gql`
1563
1479
 
1564
1480
  // src/graphql/hooks/pushToken.ts
1565
1481
  var useCreatePushToken = () => {
1566
- const [createPushToken, { loading, error }] = (0, import_client29.useMutation)(
1482
+ const [createPushToken, { loading, error }] = (0, import_client28.useMutation)(
1567
1483
  CREATE_PUSH_TOKEN_MUTATION
1568
1484
  );
1569
1485
  return { createPushToken, error, loading };
@@ -1574,6 +1490,78 @@ var import_client31 = require("@apollo/client");
1574
1490
 
1575
1491
  // src/graphql/mutations/relation.ts
1576
1492
  var import_client30 = require("@apollo/client");
1493
+
1494
+ // src/graphql/queries/relation.ts
1495
+ var import_client29 = require("@apollo/client");
1496
+ var RELATION_FIELDS_FRAGMENT = import_client29.gql`
1497
+ fragment RelationFields on RelationType {
1498
+ _id
1499
+ active
1500
+ apiMessage
1501
+ chatId
1502
+ createdAt
1503
+ lastUpdateBy
1504
+ eventId
1505
+ relationDates {
1506
+ ...RelationDates
1507
+ }
1508
+ relationType
1509
+ vendorId
1510
+ updatedAt
1511
+ }
1512
+ ${RELATION_DATES_FRAGMENT}
1513
+ `;
1514
+ var GET_RELATION = import_client29.gql`
1515
+ query getRelation($_id: ID!) {
1516
+ relation(_id: $_id) {
1517
+ ...RelationFields
1518
+ }
1519
+ }
1520
+ ${RELATION_FIELDS_FRAGMENT}
1521
+ `;
1522
+ var GET_RELATION_BY_EVENT_AND_VENDOR = import_client29.gql`
1523
+ query getRelationByEventAndVendor($eventId: ID!, $vendorId: ID!) {
1524
+ relationByEventAndVendor(eventId: $eventId, vendorId: $vendorId) {
1525
+ ...RelationFields
1526
+ }
1527
+ }
1528
+ ${RELATION_FIELDS_FRAGMENT}
1529
+ `;
1530
+ var GET_EVENT_RELATIONS = import_client29.gql`
1531
+ query getEventRelations($eventId: ID!) {
1532
+ eventRelations(eventId: $eventId) {
1533
+ ...RelationFields
1534
+ }
1535
+ }
1536
+ ${RELATION_FIELDS_FRAGMENT}
1537
+ `;
1538
+ var GET_VENDOR_RELATIONS = import_client29.gql`
1539
+ query getVendorRelations($vendorId: ID!) {
1540
+ vendorRelations(vendorId: $vendorId) {
1541
+ ...RelationFields
1542
+ }
1543
+ }
1544
+ ${RELATION_FIELDS_FRAGMENT}
1545
+ `;
1546
+ var GET_RESOURCE_CONNECTIONS = import_client29.gql`
1547
+ query getResourceConnections(
1548
+ $resourceId: ID!
1549
+ $resourceType: ResourceTypeEnum!
1550
+ ) {
1551
+ resourceConnections(resourceId: $resourceId, resourceType: $resourceType) {
1552
+ events {
1553
+ ...EventFields
1554
+ }
1555
+ vendors {
1556
+ ...VendorFields
1557
+ }
1558
+ }
1559
+ }
1560
+ ${VENDOR}
1561
+ ${EVENT}
1562
+ `;
1563
+
1564
+ // src/graphql/mutations/relation.ts
1577
1565
  var CREATE_RELATION_MUTATION = import_client30.gql`
1578
1566
  mutation createRelation($input: RelationInputType!) {
1579
1567
  createRelation(input: $input) {