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