@timardex/cluemart-shared 1.2.93 → 1.2.94

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.
@@ -26,6 +26,7 @@ __export(graphql_exports, {
26
26
  useAddUserInterestResource: () => useAddUserInterestResource,
27
27
  useAddUserPresentResource: () => useAddUserPresentResource,
28
28
  useAdminUpdateResourceType: () => useAdminUpdateResourceType,
29
+ useAdminUpdateTester: () => useAdminUpdateTester,
29
30
  useCancelSubscription: () => useCancelSubscription,
30
31
  useContactUs: () => useContactUs,
31
32
  useCreateAd: () => useCreateAd,
@@ -121,7 +122,7 @@ __export(graphql_exports, {
121
122
  module.exports = __toCommonJS(graphql_exports);
122
123
 
123
124
  // src/graphql/hooks/admin/hooksMutation.ts
124
- var import_client5 = require("@apollo/client");
125
+ var import_client6 = require("@apollo/client");
125
126
 
126
127
  // src/graphql/mutations/admin.ts
127
128
  var import_client = require("@apollo/client");
@@ -134,6 +135,14 @@ var ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = import_client.gql`
134
135
  }
135
136
  }
136
137
  `;
138
+ var ADMIN_UPDATE_TESTER_MUTATION = import_client.gql`
139
+ mutation adminUpdateTester($input: AdminUpdateTesterInputType!) {
140
+ adminUpdateTester(input: $input) {
141
+ _id
142
+ approved
143
+ }
144
+ }
145
+ `;
137
146
 
138
147
  // src/graphql/queries/event.ts
139
148
  var import_client3 = require("@apollo/client");
@@ -492,9 +501,103 @@ var GET_EVENT_INFO = import_client3.gql`
492
501
  ${EVENT_INFO}
493
502
  `;
494
503
 
495
- // src/graphql/queries/vendor.ts
504
+ // src/graphql/queries/tester.ts
496
505
  var import_client4 = require("@apollo/client");
497
- var VENDOR_LOCATION_FIELDS_FRAGMENT = import_client4.gql`
506
+ var TESTER_VENDOR_FIELDS_FRAGMENT = import_client4.gql`
507
+ fragment TesterVendorFields on TesterVendorType {
508
+ categories {
509
+ ...CategoryFields
510
+ }
511
+ productsOrServices
512
+ marketsAttended {
513
+ name
514
+ city
515
+ }
516
+ sellingFrequency
517
+ yearlySellingApprox
518
+ questionary {
519
+ uploadStallProfileFirstWeek
520
+ applyToAtLeastOneMarket
521
+ tryVisitorFeatures
522
+ completeFeedbackQuestionnaire
523
+ sendPhotoForSocialMedia
524
+ appearInVideoIntroduction
525
+ socialMediaFeatureReason
526
+ excitementAboutApp
527
+ usefulnessExpectations
528
+ testingPeriodConcerns
529
+ }
530
+ }
531
+ ${CATEGORY_FIELDS_FRAGMENT}
532
+ `;
533
+ var TESTER_EVENT_FIELDS_FRAGMENT = import_client4.gql`
534
+ fragment TesterEventFields on TesterEventType {
535
+ organizedMarketCount
536
+ markets {
537
+ name
538
+ cityOrVenue
539
+ frequency
540
+ averageStallCount
541
+ }
542
+ questionary {
543
+ allowMarketingAppearance
544
+ completeFinalQuestionnaire
545
+ dailyCoordinationNeeds
546
+ interestedInCharityInitiative
547
+ inviteAtLeastFiveStallholders
548
+ manageApplicationsAndCommunication
549
+ organizerExpectations
550
+ registerMarketsFirstWeek
551
+ spaceForClueMart
552
+ }
553
+ }
554
+ `;
555
+ var TESTER_FIELDS_FRAGMENT = import_client4.gql`
556
+ fragment TesterFields on TesterType {
557
+ _id
558
+ active
559
+ approved
560
+ businessName
561
+ createdAt
562
+ email
563
+ firstName
564
+ lastName
565
+ mobilePhone
566
+ osType
567
+ privacyConsent
568
+ region
569
+ resourceType
570
+ updatedAt
571
+ vendor {
572
+ ...TesterVendorFields
573
+ }
574
+ event {
575
+ ...TesterEventFields
576
+ }
577
+ }
578
+ ${TESTER_VENDOR_FIELDS_FRAGMENT}
579
+ ${TESTER_EVENT_FIELDS_FRAGMENT}
580
+ `;
581
+ var GET_TESTERS = import_client4.gql`
582
+ query getTesters {
583
+ testers {
584
+ ...TesterFields
585
+ }
586
+ }
587
+ ${TESTER_FIELDS_FRAGMENT}
588
+ `;
589
+ var GET_TESTER = import_client4.gql`
590
+ query getTester($_id: ID!) {
591
+ tester(_id: $_id) {
592
+ ...TesterFields
593
+ }
594
+ }
595
+ ${TESTER_FIELDS_FRAGMENT}
596
+ `;
597
+
598
+ // src/graphql/queries/vendor.ts
599
+ var import_client5 = require("@apollo/client");
600
+ var VENDOR_LOCATION_FIELDS_FRAGMENT = import_client5.gql`
498
601
  fragment VendorLocationFields on VendorLocationType {
499
602
  city
500
603
  coordinates
@@ -506,7 +609,7 @@ var VENDOR_LOCATION_FIELDS_FRAGMENT = import_client4.gql`
506
609
  type
507
610
  }
508
611
  `;
509
- var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client4.gql`
612
+ var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client5.gql`
510
613
  fragment VendorDateTimeFields on VendorDateTimeType {
511
614
  dateStatus
512
615
  endDate
@@ -515,7 +618,7 @@ var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client4.gql`
515
618
  startTime
516
619
  }
517
620
  `;
518
- var VENDOR_MENU_FIELDS_FRAGMENT = import_client4.gql`
621
+ var VENDOR_MENU_FIELDS_FRAGMENT = import_client5.gql`
519
622
  fragment VendorMenuFields on VendorMenuType {
520
623
  description
521
624
  name
@@ -523,7 +626,7 @@ var VENDOR_MENU_FIELDS_FRAGMENT = import_client4.gql`
523
626
  productGroups
524
627
  }
525
628
  `;
526
- var VENDOR = import_client4.gql`
629
+ var VENDOR = import_client5.gql`
527
630
  fragment VendorFields on VendorType {
528
631
  _id
529
632
  active
@@ -606,13 +709,13 @@ var VENDOR = import_client4.gql`
606
709
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
607
710
  ${RELATION_DATES_FRAGMENT}
608
711
  `;
609
- var VENDOR_ATTRIBUTES_FRAGMENT = import_client4.gql`
712
+ var VENDOR_ATTRIBUTES_FRAGMENT = import_client5.gql`
610
713
  fragment VendorAttributesFields on VendorAttributesType {
611
714
  details
612
715
  isRequired
613
716
  }
614
717
  `;
615
- var VENDOR_INFO = import_client4.gql`
718
+ var VENDOR_INFO = import_client5.gql`
616
719
  fragment VendorInfoFields on VendorInfoType {
617
720
  _id
618
721
  compliance {
@@ -653,7 +756,7 @@ var VENDOR_INFO = import_client4.gql`
653
756
  ${VENDOR_ATTRIBUTES_FRAGMENT}
654
757
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
655
758
  `;
656
- var GET_VENDORS = import_client4.gql`
759
+ var GET_VENDORS = import_client5.gql`
657
760
  query getVendors {
658
761
  vendors {
659
762
  ...VendorFields
@@ -661,7 +764,7 @@ var GET_VENDORS = import_client4.gql`
661
764
  }
662
765
  ${VENDOR}
663
766
  `;
664
- var GET_VENDOR = import_client4.gql`
767
+ var GET_VENDOR = import_client5.gql`
665
768
  query getVendor($_id: ID!) {
666
769
  vendor(_id: $_id) {
667
770
  ...VendorFields
@@ -669,7 +772,7 @@ var GET_VENDOR = import_client4.gql`
669
772
  }
670
773
  ${VENDOR}
671
774
  `;
672
- var GET_VENDORS_BY_REGION = import_client4.gql`
775
+ var GET_VENDORS_BY_REGION = import_client5.gql`
673
776
  query getVendorsByRegion($region: String!) {
674
777
  vendorsByRegion(region: $region) {
675
778
  ...VendorFields
@@ -677,7 +780,7 @@ var GET_VENDORS_BY_REGION = import_client4.gql`
677
780
  }
678
781
  ${VENDOR}
679
782
  `;
680
- var SEARCH_VENDORS = import_client4.gql`
783
+ var SEARCH_VENDORS = import_client5.gql`
681
784
  query searchVendors($search: String!, $region: String) {
682
785
  vendorSearch(search: $search, region: $region) {
683
786
  ...VendorFields
@@ -685,7 +788,7 @@ var SEARCH_VENDORS = import_client4.gql`
685
788
  }
686
789
  ${VENDOR}
687
790
  `;
688
- var GET_VENDOR_INFO = import_client4.gql`
791
+ var GET_VENDOR_INFO = import_client5.gql`
689
792
  query getVendorInfo($vendorId: ID!) {
690
793
  vendorInfo(vendorId: $vendorId) {
691
794
  ...VendorInfoFields
@@ -696,7 +799,7 @@ var GET_VENDOR_INFO = import_client4.gql`
696
799
 
697
800
  // src/graphql/hooks/admin/hooksMutation.ts
698
801
  var useAdminUpdateResourceType = () => {
699
- const [adminUpdateResourceType, { loading, error }] = (0, import_client5.useMutation)(ADMIN_UPDATE_RESOURCE_TYPE_MUTATION, {
802
+ const [adminUpdateResourceType, { loading, error }] = (0, import_client6.useMutation)(ADMIN_UPDATE_RESOURCE_TYPE_MUTATION, {
700
803
  awaitRefetchQueries: true,
701
804
  refetchQueries: (mutationResult) => {
702
805
  const adminUpdateResourceType2 = mutationResult?.data?.adminUpdateResourceType;
@@ -718,13 +821,33 @@ var useAdminUpdateResourceType = () => {
718
821
  loading
719
822
  };
720
823
  };
824
+ var useAdminUpdateTester = () => {
825
+ const [adminUpdateTester, { loading, error }] = (0, import_client6.useMutation)(ADMIN_UPDATE_TESTER_MUTATION, {
826
+ awaitRefetchQueries: true,
827
+ refetchQueries: (mutationResult) => {
828
+ const adminUpdateTester2 = mutationResult?.data?.adminUpdateTester;
829
+ const testerId = adminUpdateTester2?._id;
830
+ return [
831
+ {
832
+ query: GET_TESTER,
833
+ variables: { _id: testerId }
834
+ }
835
+ ];
836
+ }
837
+ });
838
+ return {
839
+ adminUpdateTester,
840
+ error,
841
+ loading
842
+ };
843
+ };
721
844
 
722
845
  // src/graphql/hooks/auth.ts
723
- var import_client7 = require("@apollo/client");
846
+ var import_client8 = require("@apollo/client");
724
847
 
725
848
  // src/graphql/mutations/auth.ts
726
- var import_client6 = require("@apollo/client");
727
- var REGISTER_MUTATION = import_client6.gql`
849
+ var import_client7 = require("@apollo/client");
850
+ var REGISTER_MUTATION = import_client7.gql`
728
851
  mutation register($input: RegisterInputType!) {
729
852
  register(input: $input) {
730
853
  message
@@ -737,7 +860,7 @@ var REGISTER_MUTATION = import_client6.gql`
737
860
  }
738
861
  ${USER_FIELDS_FRAGMENT}
739
862
  `;
740
- var LOGIN_MUTATION = import_client6.gql`
863
+ var LOGIN_MUTATION = import_client7.gql`
741
864
  mutation login($input: LoginInputType!) {
742
865
  login(input: $input) {
743
866
  message
@@ -750,14 +873,14 @@ var LOGIN_MUTATION = import_client6.gql`
750
873
  }
751
874
  ${USER_FIELDS_FRAGMENT}
752
875
  `;
753
- var LOGOUT_MUTATION = import_client6.gql`
876
+ var LOGOUT_MUTATION = import_client7.gql`
754
877
  mutation logout {
755
878
  logout {
756
879
  message
757
880
  }
758
881
  }
759
882
  `;
760
- var REFRESH_TOKEN_MUTATION = import_client6.gql`
883
+ var REFRESH_TOKEN_MUTATION = import_client7.gql`
761
884
  mutation refreshToken($input: RefreshTokenInputType!) {
762
885
  refreshToken(input: $input) {
763
886
  refreshToken
@@ -765,21 +888,21 @@ var REFRESH_TOKEN_MUTATION = import_client6.gql`
765
888
  }
766
889
  }
767
890
  `;
768
- var RESET_PASSWORD_MUTATION = import_client6.gql`
891
+ var RESET_PASSWORD_MUTATION = import_client7.gql`
769
892
  mutation resetPassword($input: ResetPasswordInputType!) {
770
893
  resetPassword(input: $input) {
771
894
  message
772
895
  }
773
896
  }
774
897
  `;
775
- var REQUEST_PASSWORD_RESET_MUTATION = import_client6.gql`
898
+ var REQUEST_PASSWORD_RESET_MUTATION = import_client7.gql`
776
899
  mutation requestPasswordReset($input: RequestPasswordResetInputType!) {
777
900
  requestPasswordReset(input: $input) {
778
901
  message
779
902
  }
780
903
  }
781
904
  `;
782
- var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client6.gql`
905
+ var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client7.gql`
783
906
  mutation validateVerificationToken(
784
907
  $input: ValidateVerificationTokenInputType!
785
908
  ) {
@@ -791,51 +914,51 @@ var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client6.gql`
791
914
 
792
915
  // src/graphql/hooks/auth.ts
793
916
  var useRegister = () => {
794
- const [register, { loading, error }] = (0, import_client7.useMutation)(REGISTER_MUTATION);
917
+ const [register, { loading, error }] = (0, import_client8.useMutation)(REGISTER_MUTATION);
795
918
  return { error, loading, register };
796
919
  };
797
920
  var useLogin = () => {
798
- const [login, { loading, error }] = (0, import_client7.useMutation)(LOGIN_MUTATION);
921
+ const [login, { loading, error }] = (0, import_client8.useMutation)(LOGIN_MUTATION);
799
922
  return { error, loading, login };
800
923
  };
801
924
  var useLogout = () => {
802
- const [logout, { loading, error }] = (0, import_client7.useMutation)(LOGOUT_MUTATION);
925
+ const [logout, { loading, error }] = (0, import_client8.useMutation)(LOGOUT_MUTATION);
803
926
  return { error, loading, logout };
804
927
  };
805
928
  var useRefreshToken = () => {
806
- const [refreshToken, { loading, error }] = (0, import_client7.useMutation)(
929
+ const [refreshToken, { loading, error }] = (0, import_client8.useMutation)(
807
930
  REFRESH_TOKEN_MUTATION
808
931
  );
809
932
  return { error, loading, refreshToken };
810
933
  };
811
934
  var useRequestPasswordReset = () => {
812
- const [requestPasswordReset, { loading, error }] = (0, import_client7.useMutation)(
935
+ const [requestPasswordReset, { loading, error }] = (0, import_client8.useMutation)(
813
936
  REQUEST_PASSWORD_RESET_MUTATION
814
937
  );
815
938
  return { error, loading, requestPasswordReset };
816
939
  };
817
940
  var useValidateVerificationToken = () => {
818
- const [validateVerificationToken, { loading, error }] = (0, import_client7.useMutation)(
941
+ const [validateVerificationToken, { loading, error }] = (0, import_client8.useMutation)(
819
942
  VALIDATE_VERIFICATION_TOKEN_MUTATION
820
943
  );
821
944
  return { error, loading, validateVerificationToken };
822
945
  };
823
946
  var useResetPassword = () => {
824
- const [resetPassword, { loading, error }] = (0, import_client7.useMutation)(
947
+ const [resetPassword, { loading, error }] = (0, import_client8.useMutation)(
825
948
  RESET_PASSWORD_MUTATION
826
949
  );
827
950
  return { error, loading, resetPassword };
828
951
  };
829
952
 
830
953
  // src/graphql/hooks/chat/hooksMutation.ts
831
- var import_client10 = require("@apollo/client");
954
+ var import_client11 = require("@apollo/client");
832
955
 
833
956
  // src/graphql/mutations/chat.ts
834
- var import_client9 = require("@apollo/client");
957
+ var import_client10 = require("@apollo/client");
835
958
 
836
959
  // src/graphql/queries/chat.ts
837
- var import_client8 = require("@apollo/client");
838
- var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client8.gql`
960
+ var import_client9 = require("@apollo/client");
961
+ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client9.gql`
839
962
  fragment ChatMessageFields on ChatMessageType {
840
963
  _id
841
964
  content
@@ -844,7 +967,7 @@ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client8.gql`
844
967
  updatedAt
845
968
  }
846
969
  `;
847
- var CHAT_PARTICIPANT = import_client8.gql`
970
+ var CHAT_PARTICIPANT = import_client9.gql`
848
971
  fragment ChatParticipantFields on ChatParticipantType {
849
972
  active
850
973
  userAvatar
@@ -853,7 +976,7 @@ var CHAT_PARTICIPANT = import_client8.gql`
853
976
  userName
854
977
  }
855
978
  `;
856
- var CHAT_FIELDS_FRAGMENT = import_client8.gql`
979
+ var CHAT_FIELDS_FRAGMENT = import_client9.gql`
857
980
  fragment ChatFields on ChatType {
858
981
  _id
859
982
  active
@@ -872,7 +995,7 @@ var CHAT_FIELDS_FRAGMENT = import_client8.gql`
872
995
  ${CHAT_MESSAGE_FIELDS_FRAGMENT}
873
996
  ${CHAT_PARTICIPANT}
874
997
  `;
875
- var CHAT = import_client8.gql`
998
+ var CHAT = import_client9.gql`
876
999
  query chat($_id: ID!) {
877
1000
  chat(_id: $_id) {
878
1001
  ...ChatFields
@@ -880,7 +1003,7 @@ var CHAT = import_client8.gql`
880
1003
  }
881
1004
  ${CHAT_FIELDS_FRAGMENT}
882
1005
  `;
883
- var USER_CHATS = import_client8.gql`
1006
+ var USER_CHATS = import_client9.gql`
884
1007
  query userChats {
885
1008
  userChats {
886
1009
  ...ChatFields
@@ -890,7 +1013,7 @@ var USER_CHATS = import_client8.gql`
890
1013
  `;
891
1014
 
892
1015
  // src/graphql/mutations/chat.ts
893
- var SEND_CHAT_MESSAGE_MUTATION = import_client9.gql`
1016
+ var SEND_CHAT_MESSAGE_MUTATION = import_client10.gql`
894
1017
  mutation sendChatMessage($_id: ID!, $input: ChatMessageInputType!) {
895
1018
  sendChatMessage(_id: $_id, input: $input) {
896
1019
  ...ChatFields
@@ -898,12 +1021,12 @@ var SEND_CHAT_MESSAGE_MUTATION = import_client9.gql`
898
1021
  }
899
1022
  ${CHAT_FIELDS_FRAGMENT}
900
1023
  `;
901
- var DELETE_CHAT_MUTATION = import_client9.gql`
1024
+ var DELETE_CHAT_MUTATION = import_client10.gql`
902
1025
  mutation deleteChat($_id: ID!) {
903
1026
  deleteChat(_id: $_id)
904
1027
  }
905
1028
  `;
906
- var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client9.gql`
1029
+ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client10.gql`
907
1030
  mutation addParticipantToChat($chatId: ID!, $userId: ID!) {
908
1031
  addParticipantToChat(chatId: $chatId, userId: $userId) {
909
1032
  ...ChatFields
@@ -911,7 +1034,7 @@ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client9.gql`
911
1034
  }
912
1035
  ${CHAT_FIELDS_FRAGMENT}
913
1036
  `;
914
- var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client9.gql`
1037
+ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client10.gql`
915
1038
  mutation removeParticipantFromChat($chatId: ID!, $userId: ID!) {
916
1039
  removeParticipantFromChat(chatId: $chatId, userId: $userId)
917
1040
  }
@@ -919,7 +1042,7 @@ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client9.gql`
919
1042
 
920
1043
  // src/graphql/hooks/chat/hooksMutation.ts
921
1044
  var useSendChatMessage = () => {
922
- const [sendChatMessage, { loading, error }] = (0, import_client10.useMutation)(SEND_CHAT_MESSAGE_MUTATION, {
1045
+ const [sendChatMessage, { loading, error }] = (0, import_client11.useMutation)(SEND_CHAT_MESSAGE_MUTATION, {
923
1046
  awaitRefetchQueries: true,
924
1047
  refetchQueries: (mutationResult) => {
925
1048
  const chatId = mutationResult?.data?.sendChatMessage?._id;
@@ -934,14 +1057,14 @@ var useSendChatMessage = () => {
934
1057
  return { error, loading, sendChatMessage };
935
1058
  };
936
1059
  var useDeleteChat = () => {
937
- const [deleteChat, { loading, error }] = (0, import_client10.useMutation)(DELETE_CHAT_MUTATION, {
1060
+ const [deleteChat, { loading, error }] = (0, import_client11.useMutation)(DELETE_CHAT_MUTATION, {
938
1061
  awaitRefetchQueries: true,
939
1062
  refetchQueries: [{ query: USER_CHATS }]
940
1063
  });
941
1064
  return { deleteChat, error, loading };
942
1065
  };
943
1066
  var useAddParticipantToChat = () => {
944
- const [addParticipantToChat, { loading, error }] = (0, import_client10.useMutation)(ADD_PARTICIPANT_TO_CHAT_MUTATION, {
1067
+ const [addParticipantToChat, { loading, error }] = (0, import_client11.useMutation)(ADD_PARTICIPANT_TO_CHAT_MUTATION, {
945
1068
  awaitRefetchQueries: true,
946
1069
  refetchQueries: (mutationResult) => {
947
1070
  const chatId = mutationResult?.data?.addParticipantToChat?._id;
@@ -959,7 +1082,7 @@ var useAddParticipantToChat = () => {
959
1082
  return { addParticipantToChat, error, loading };
960
1083
  };
961
1084
  var useRemoveParticipantFromChat = () => {
962
- const [removeParticipantFromChat, { loading, error }] = (0, import_client10.useMutation)(
1085
+ const [removeParticipantFromChat, { loading, error }] = (0, import_client11.useMutation)(
963
1086
  REMOVE_PARTICIPANT_FROM_CHAT_MUTATION,
964
1087
  {
965
1088
  awaitRefetchQueries: true,
@@ -970,11 +1093,11 @@ var useRemoveParticipantFromChat = () => {
970
1093
  };
971
1094
 
972
1095
  // src/graphql/hooks/chat/hooksQuery.ts
973
- var import_client12 = require("@apollo/client");
1096
+ var import_client13 = require("@apollo/client");
974
1097
 
975
1098
  // src/graphql/subscriptions/chat.ts
976
- var import_client11 = require("@apollo/client");
977
- var GET_CHAT_MESSAGE = import_client11.gql`
1099
+ var import_client12 = require("@apollo/client");
1100
+ var GET_CHAT_MESSAGE = import_client12.gql`
978
1101
  subscription {
979
1102
  getChatMessage {
980
1103
  ...ChatFields
@@ -985,7 +1108,7 @@ var GET_CHAT_MESSAGE = import_client11.gql`
985
1108
 
986
1109
  // src/graphql/hooks/chat/hooksQuery.ts
987
1110
  var useGetChat = (_id) => {
988
- const { loading, error, data, refetch } = (0, import_client12.useQuery)(CHAT, {
1111
+ const { loading, error, data, refetch } = (0, import_client13.useQuery)(CHAT, {
989
1112
  fetchPolicy: "network-only",
990
1113
  skip: !_id,
991
1114
  variables: { _id }
@@ -994,7 +1117,7 @@ var useGetChat = (_id) => {
994
1117
  return { chat, error, loading, refetch };
995
1118
  };
996
1119
  var useGetUserChats = () => {
997
- const { loading, error, data, refetch } = (0, import_client12.useQuery)(
1120
+ const { loading, error, data, refetch } = (0, import_client13.useQuery)(
998
1121
  USER_CHATS,
999
1122
  {
1000
1123
  fetchPolicy: "network-only"
@@ -1004,7 +1127,7 @@ var useGetUserChats = () => {
1004
1127
  return { error, loading, refetch, userChats };
1005
1128
  };
1006
1129
  var useGetChatSubscription = () => {
1007
- const { data, loading, error } = (0, import_client12.useSubscription)(
1130
+ const { data, loading, error } = (0, import_client13.useSubscription)(
1008
1131
  GET_CHAT_MESSAGE
1009
1132
  );
1010
1133
  const chat = data?.getChat;
@@ -1012,11 +1135,11 @@ var useGetChatSubscription = () => {
1012
1135
  };
1013
1136
 
1014
1137
  // src/graphql/hooks/contactUs.ts
1015
- var import_client14 = require("@apollo/client");
1138
+ var import_client15 = require("@apollo/client");
1016
1139
 
1017
1140
  // src/graphql/mutations/contactUs.ts
1018
- var import_client13 = require("@apollo/client");
1019
- var CONTACT_US_MUTATION = import_client13.gql`
1141
+ var import_client14 = require("@apollo/client");
1142
+ var CONTACT_US_MUTATION = import_client14.gql`
1020
1143
  mutation contactUs($input: ContactUsInputType!) {
1021
1144
  contactUs(input: $input) {
1022
1145
  message
@@ -1026,16 +1149,16 @@ var CONTACT_US_MUTATION = import_client13.gql`
1026
1149
 
1027
1150
  // src/graphql/hooks/contactUs.ts
1028
1151
  var useContactUs = () => {
1029
- const [contactUs, { loading, error }] = (0, import_client14.useMutation)(CONTACT_US_MUTATION);
1152
+ const [contactUs, { loading, error }] = (0, import_client15.useMutation)(CONTACT_US_MUTATION);
1030
1153
  return { contactUs, error, loading };
1031
1154
  };
1032
1155
 
1033
1156
  // src/graphql/hooks/event/hooksMutation.ts
1034
- var import_client18 = require("@apollo/client");
1157
+ var import_client19 = require("@apollo/client");
1035
1158
 
1036
1159
  // src/graphql/mutations/event.ts
1037
- var import_client15 = require("@apollo/client");
1038
- var CREATE_EVENT_MUTATION = import_client15.gql`
1160
+ var import_client16 = require("@apollo/client");
1161
+ var CREATE_EVENT_MUTATION = import_client16.gql`
1039
1162
  mutation createEvent($input: EventInputType!) {
1040
1163
  createEvent(input: $input) {
1041
1164
  ...EventFields
@@ -1043,7 +1166,7 @@ var CREATE_EVENT_MUTATION = import_client15.gql`
1043
1166
  }
1044
1167
  ${EVENT}
1045
1168
  `;
1046
- var UPDATE_EVENT_MUTATION = import_client15.gql`
1169
+ var UPDATE_EVENT_MUTATION = import_client16.gql`
1047
1170
  mutation updateEvent($_id: ID!, $input: EventInputType!) {
1048
1171
  updateEvent(_id: $_id, input: $input) {
1049
1172
  ...EventFields
@@ -1051,12 +1174,12 @@ var UPDATE_EVENT_MUTATION = import_client15.gql`
1051
1174
  }
1052
1175
  ${EVENT}
1053
1176
  `;
1054
- var DELETE_EVENT_MUTATION = import_client15.gql`
1177
+ var DELETE_EVENT_MUTATION = import_client16.gql`
1055
1178
  mutation deleteEvent($_id: ID!) {
1056
1179
  deleteEvent(_id: $_id)
1057
1180
  }
1058
1181
  `;
1059
- var CREATE_EVENT_INFO_MUTATION = import_client15.gql`
1182
+ var CREATE_EVENT_INFO_MUTATION = import_client16.gql`
1060
1183
  mutation createEventInfo($input: EventInfoInputType!) {
1061
1184
  createEventInfo(input: $input) {
1062
1185
  ...EventInfoFields
@@ -1064,7 +1187,7 @@ var CREATE_EVENT_INFO_MUTATION = import_client15.gql`
1064
1187
  }
1065
1188
  ${EVENT_INFO}
1066
1189
  `;
1067
- var UPDATE_EVENT_INFO_MUTATION = import_client15.gql`
1190
+ var UPDATE_EVENT_INFO_MUTATION = import_client16.gql`
1068
1191
  mutation updateEventInfo($_id: ID!, $input: EventInfoInputType!) {
1069
1192
  updateEventInfo(_id: $_id, input: $input) {
1070
1193
  ...EventInfoFields
@@ -1074,11 +1197,11 @@ var UPDATE_EVENT_INFO_MUTATION = import_client15.gql`
1074
1197
  `;
1075
1198
 
1076
1199
  // src/graphql/queries/user.ts
1077
- var import_client17 = require("@apollo/client");
1200
+ var import_client18 = require("@apollo/client");
1078
1201
 
1079
1202
  // src/graphql/queries/partner.ts
1080
- var import_client16 = require("@apollo/client");
1081
- var PARTNER = import_client16.gql`
1203
+ var import_client17 = require("@apollo/client");
1204
+ var PARTNER = import_client17.gql`
1082
1205
  fragment PartnerFields on PartnerType {
1083
1206
  _id
1084
1207
  active
@@ -1131,7 +1254,7 @@ var PARTNER = import_client16.gql`
1131
1254
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
1132
1255
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
1133
1256
  `;
1134
- var GET_PARTNERS = import_client16.gql`
1257
+ var GET_PARTNERS = import_client17.gql`
1135
1258
  query getPartners {
1136
1259
  partners {
1137
1260
  ...PartnerFields
@@ -1139,7 +1262,7 @@ var GET_PARTNERS = import_client16.gql`
1139
1262
  }
1140
1263
  ${PARTNER}
1141
1264
  `;
1142
- var GET_PARTNER = import_client16.gql`
1265
+ var GET_PARTNER = import_client17.gql`
1143
1266
  query getPartner($_id: ID!) {
1144
1267
  partner(_id: $_id) {
1145
1268
  ...PartnerFields
@@ -1147,7 +1270,7 @@ var GET_PARTNER = import_client16.gql`
1147
1270
  }
1148
1271
  ${PARTNER}
1149
1272
  `;
1150
- var GET_PARTNERS_BY_REGION = import_client16.gql`
1273
+ var GET_PARTNERS_BY_REGION = import_client17.gql`
1151
1274
  query getPartnersByRegion($region: String!) {
1152
1275
  partnersByRegion(region: $region) {
1153
1276
  ...PartnerFields
@@ -1155,7 +1278,7 @@ var GET_PARTNERS_BY_REGION = import_client16.gql`
1155
1278
  }
1156
1279
  ${PARTNER}
1157
1280
  `;
1158
- var SEARCH_PARTNERS = import_client16.gql`
1281
+ var SEARCH_PARTNERS = import_client17.gql`
1159
1282
  query searchPartners($search: String!, $region: String) {
1160
1283
  partnersSearch(search: $search, region: $region) {
1161
1284
  ...PartnerFields
@@ -1165,7 +1288,7 @@ var SEARCH_PARTNERS = import_client16.gql`
1165
1288
  `;
1166
1289
 
1167
1290
  // src/graphql/queries/user.ts
1168
- var GET_USERS = import_client17.gql`
1291
+ var GET_USERS = import_client18.gql`
1169
1292
  query getUsers {
1170
1293
  users {
1171
1294
  ...UserFields
@@ -1173,7 +1296,7 @@ var GET_USERS = import_client17.gql`
1173
1296
  }
1174
1297
  ${USER_FIELDS_FRAGMENT}
1175
1298
  `;
1176
- var GET_USER = import_client17.gql`
1299
+ var GET_USER = import_client18.gql`
1177
1300
  query getUser($_id: ID!) {
1178
1301
  user(_id: $_id) {
1179
1302
  ...UserFields
@@ -1181,7 +1304,7 @@ var GET_USER = import_client17.gql`
1181
1304
  }
1182
1305
  ${USER_FIELDS_FRAGMENT}
1183
1306
  `;
1184
- var GET_USER_EVENTS = import_client17.gql`
1307
+ var GET_USER_EVENTS = import_client18.gql`
1185
1308
  query getUserEvents {
1186
1309
  userEvents {
1187
1310
  ...EventFields
@@ -1189,7 +1312,7 @@ var GET_USER_EVENTS = import_client17.gql`
1189
1312
  }
1190
1313
  ${EVENT}
1191
1314
  `;
1192
- var GET_USER_VENDORS = import_client17.gql`
1315
+ var GET_USER_VENDORS = import_client18.gql`
1193
1316
  query getUserVendors {
1194
1317
  userVendors {
1195
1318
  ...VendorFields
@@ -1197,7 +1320,7 @@ var GET_USER_VENDORS = import_client17.gql`
1197
1320
  }
1198
1321
  ${VENDOR}
1199
1322
  `;
1200
- var GET_USER_PARTNERS = import_client17.gql`
1323
+ var GET_USER_PARTNERS = import_client18.gql`
1201
1324
  query getUserPartners {
1202
1325
  userPartners {
1203
1326
  ...PartnerFields
@@ -1205,7 +1328,7 @@ var GET_USER_PARTNERS = import_client17.gql`
1205
1328
  }
1206
1329
  ${PARTNER}
1207
1330
  `;
1208
- var GET_USER_ACTIVITIES = import_client17.gql`
1331
+ var GET_USER_ACTIVITIES = import_client18.gql`
1209
1332
  query getUserActivities {
1210
1333
  userActivities {
1211
1334
  favourites {
@@ -1239,28 +1362,28 @@ var GET_USER_ACTIVITIES = import_client17.gql`
1239
1362
 
1240
1363
  // src/graphql/hooks/event/hooksMutation.ts
1241
1364
  var useCreateEvent = () => {
1242
- const [createEvent, { loading, error }] = (0, import_client18.useMutation)(CREATE_EVENT_MUTATION, {
1365
+ const [createEvent, { loading, error }] = (0, import_client19.useMutation)(CREATE_EVENT_MUTATION, {
1243
1366
  awaitRefetchQueries: true,
1244
1367
  refetchQueries: [{ query: GET_USER_EVENTS }]
1245
1368
  });
1246
1369
  return { createEvent, error, loading };
1247
1370
  };
1248
1371
  var useUpdateEvent = () => {
1249
- const [updateEvent, { loading, error }] = (0, import_client18.useMutation)(UPDATE_EVENT_MUTATION, {
1372
+ const [updateEvent, { loading, error }] = (0, import_client19.useMutation)(UPDATE_EVENT_MUTATION, {
1250
1373
  awaitRefetchQueries: true,
1251
1374
  refetchQueries: [{ query: GET_USER_EVENTS }]
1252
1375
  });
1253
1376
  return { error, loading, updateEvent };
1254
1377
  };
1255
1378
  var useDeleteEvent = () => {
1256
- const [deleteEvent, { loading, error }] = (0, import_client18.useMutation)(DELETE_EVENT_MUTATION, {
1379
+ const [deleteEvent, { loading, error }] = (0, import_client19.useMutation)(DELETE_EVENT_MUTATION, {
1257
1380
  awaitRefetchQueries: true,
1258
1381
  refetchQueries: [{ query: GET_USER_EVENTS }]
1259
1382
  });
1260
1383
  return { deleteEvent, error, loading };
1261
1384
  };
1262
1385
  var useCreateEventInfo = () => {
1263
- const [createEventInfo, { loading, error }] = (0, import_client18.useMutation)(CREATE_EVENT_INFO_MUTATION, {
1386
+ const [createEventInfo, { loading, error }] = (0, import_client19.useMutation)(CREATE_EVENT_INFO_MUTATION, {
1264
1387
  awaitRefetchQueries: true,
1265
1388
  refetchQueries: (mutationResult) => {
1266
1389
  const eventId = mutationResult?.data?.createEventInfo?.eventId;
@@ -1284,7 +1407,7 @@ var useCreateEventInfo = () => {
1284
1407
  return { createEventInfo, error, loading };
1285
1408
  };
1286
1409
  var useUpdateEventInfo = () => {
1287
- const [updateEventInfo, { loading, error }] = (0, import_client18.useMutation)(UPDATE_EVENT_INFO_MUTATION, {
1410
+ const [updateEventInfo, { loading, error }] = (0, import_client19.useMutation)(UPDATE_EVENT_INFO_MUTATION, {
1288
1411
  awaitRefetchQueries: true,
1289
1412
  refetchQueries: (mutationResult) => {
1290
1413
  const eventId = mutationResult?.data?.updateEventInfo?.eventId;
@@ -1307,9 +1430,9 @@ var useUpdateEventInfo = () => {
1307
1430
  };
1308
1431
 
1309
1432
  // src/graphql/hooks/event/hooksQuery.ts
1310
- var import_client19 = require("@apollo/client");
1433
+ var import_client20 = require("@apollo/client");
1311
1434
  var useGetEvents = () => {
1312
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(
1435
+ const { loading, error, data, refetch } = (0, import_client20.useQuery)(
1313
1436
  GET_EVENTS,
1314
1437
  {
1315
1438
  fetchPolicy: "network-only"
@@ -1319,7 +1442,7 @@ var useGetEvents = () => {
1319
1442
  return { error, events, loading, refetch };
1320
1443
  };
1321
1444
  var useGetEvent = (_id) => {
1322
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(
1445
+ const { loading, error, data, refetch } = (0, import_client20.useQuery)(
1323
1446
  GET_EVENT,
1324
1447
  {
1325
1448
  fetchPolicy: "network-only",
@@ -1331,7 +1454,7 @@ var useGetEvent = (_id) => {
1331
1454
  return { error, event, loading, refetch };
1332
1455
  };
1333
1456
  var useGetEventsByRegion = (region) => {
1334
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENTS_BY_REGION, {
1457
+ const { loading, error, data, refetch } = (0, import_client20.useQuery)(GET_EVENTS_BY_REGION, {
1335
1458
  fetchPolicy: "no-cache",
1336
1459
  skip: !region,
1337
1460
  variables: { region }
@@ -1340,7 +1463,7 @@ var useGetEventsByRegion = (region) => {
1340
1463
  return { error, eventsByRegion, loading, refetch };
1341
1464
  };
1342
1465
  var useSearchEvents = (search, region) => {
1343
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(SEARCH_EVENTS, {
1466
+ const { loading, error, data, refetch } = (0, import_client20.useQuery)(SEARCH_EVENTS, {
1344
1467
  fetchPolicy: "network-only",
1345
1468
  skip: search.length < 3,
1346
1469
  variables: { region, search }
@@ -1349,7 +1472,7 @@ var useSearchEvents = (search, region) => {
1349
1472
  return { error, eventsSearch, loading, refetch };
1350
1473
  };
1351
1474
  var useGetEventsNearMe = (location) => {
1352
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENTS_NEAR_ME, {
1475
+ const { loading, error, data, refetch } = (0, import_client20.useQuery)(GET_EVENTS_NEAR_ME, {
1353
1476
  fetchPolicy: "network-only",
1354
1477
  skip: !location.latitude || !location.longitude,
1355
1478
  variables: {
@@ -1363,7 +1486,7 @@ var useGetEventsNearMe = (location) => {
1363
1486
  return { error, eventsNearMe, loading, refetch };
1364
1487
  };
1365
1488
  var useGetEventInfo = (eventId) => {
1366
- const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENT_INFO, {
1489
+ const { loading, error, data, refetch } = (0, import_client20.useQuery)(GET_EVENT_INFO, {
1367
1490
  fetchPolicy: "network-only",
1368
1491
  skip: !eventId,
1369
1492
  variables: { eventId }
@@ -1373,14 +1496,14 @@ var useGetEventInfo = (eventId) => {
1373
1496
  };
1374
1497
 
1375
1498
  // src/graphql/hooks/notifications/hooksMutation.ts
1376
- var import_client22 = require("@apollo/client");
1499
+ var import_client23 = require("@apollo/client");
1377
1500
 
1378
1501
  // src/graphql/mutations/notification.ts
1379
- var import_client21 = require("@apollo/client");
1502
+ var import_client22 = require("@apollo/client");
1380
1503
 
1381
1504
  // src/graphql/queries/notification.ts
1382
- var import_client20 = require("@apollo/client");
1383
- var NOTIFICATION_FRAGMENT = import_client20.gql`
1505
+ var import_client21 = require("@apollo/client");
1506
+ var NOTIFICATION_FRAGMENT = import_client21.gql`
1384
1507
  fragment NotificationFields on Notification {
1385
1508
  _id
1386
1509
  userId
@@ -1397,7 +1520,7 @@ var NOTIFICATION_FRAGMENT = import_client20.gql`
1397
1520
  updatedAt
1398
1521
  }
1399
1522
  `;
1400
- var GET_USER_NOTIFICATIONS = import_client20.gql`
1523
+ var GET_USER_NOTIFICATIONS = import_client21.gql`
1401
1524
  query getUserNotifications($limit: Int, $offset: Int) {
1402
1525
  userNotifications(limit: $limit, offset: $offset) {
1403
1526
  ...NotificationFields
@@ -1405,7 +1528,7 @@ var GET_USER_NOTIFICATIONS = import_client20.gql`
1405
1528
  }
1406
1529
  ${NOTIFICATION_FRAGMENT}
1407
1530
  `;
1408
- var GET_NOTIFICATION_COUNT = import_client20.gql`
1531
+ var GET_NOTIFICATION_COUNT = import_client21.gql`
1409
1532
  query getNotificationCount {
1410
1533
  notificationCount {
1411
1534
  total
@@ -1415,7 +1538,7 @@ var GET_NOTIFICATION_COUNT = import_client20.gql`
1415
1538
  `;
1416
1539
 
1417
1540
  // src/graphql/mutations/notification.ts
1418
- var CREATE_BULK_NOTIFICATIONS = import_client21.gql`
1541
+ var CREATE_BULK_NOTIFICATIONS = import_client22.gql`
1419
1542
  mutation createBulkNotifications($input: CreateBulkNotificationInput!) {
1420
1543
  createBulkNotifications(input: $input) {
1421
1544
  ...NotificationFields
@@ -1423,7 +1546,7 @@ var CREATE_BULK_NOTIFICATIONS = import_client21.gql`
1423
1546
  }
1424
1547
  ${NOTIFICATION_FRAGMENT}
1425
1548
  `;
1426
- var MARK_NOTIFICATION_READ = import_client21.gql`
1549
+ var MARK_NOTIFICATION_READ = import_client22.gql`
1427
1550
  mutation markNotificationRead($_id: ID!) {
1428
1551
  markNotificationRead(_id: $_id) {
1429
1552
  ...NotificationFields
@@ -1431,17 +1554,17 @@ var MARK_NOTIFICATION_READ = import_client21.gql`
1431
1554
  }
1432
1555
  ${NOTIFICATION_FRAGMENT}
1433
1556
  `;
1434
- var MARK_ALL_NOTIFICATIONS_READ = import_client21.gql`
1557
+ var MARK_ALL_NOTIFICATIONS_READ = import_client22.gql`
1435
1558
  mutation markAllNotificationsRead {
1436
1559
  markAllNotificationsRead
1437
1560
  }
1438
1561
  `;
1439
- var DELETE_NOTIFICATION = import_client21.gql`
1562
+ var DELETE_NOTIFICATION = import_client22.gql`
1440
1563
  mutation deleteNotification($_id: ID!) {
1441
1564
  deleteNotification(_id: $_id)
1442
1565
  }
1443
1566
  `;
1444
- var DELETE_ALL_NOTIFICATIONS = import_client21.gql`
1567
+ var DELETE_ALL_NOTIFICATIONS = import_client22.gql`
1445
1568
  mutation deleteAllNotifications {
1446
1569
  deleteAllNotifications
1447
1570
  }
@@ -1449,13 +1572,13 @@ var DELETE_ALL_NOTIFICATIONS = import_client21.gql`
1449
1572
 
1450
1573
  // src/graphql/hooks/notifications/hooksMutation.ts
1451
1574
  var useCreateBulkNotifications = () => {
1452
- const [createBulkNotifications, { loading, error }] = (0, import_client22.useMutation)(
1575
+ const [createBulkNotifications, { loading, error }] = (0, import_client23.useMutation)(
1453
1576
  CREATE_BULK_NOTIFICATIONS
1454
1577
  );
1455
1578
  return { createBulkNotifications, error, loading };
1456
1579
  };
1457
1580
  var useMarkNotificationRead = () => {
1458
- const [markNotificationRead, { loading, error }] = (0, import_client22.useMutation)(
1581
+ const [markNotificationRead, { loading, error }] = (0, import_client23.useMutation)(
1459
1582
  MARK_NOTIFICATION_READ,
1460
1583
  {
1461
1584
  refetchQueries: [
@@ -1471,7 +1594,7 @@ var useMarkNotificationRead = () => {
1471
1594
  return { error, loading, markNotificationRead };
1472
1595
  };
1473
1596
  var useMarkAllNotificationsRead = () => {
1474
- const [markAllNotificationsRead, { loading, error }] = (0, import_client22.useMutation)(
1597
+ const [markAllNotificationsRead, { loading, error }] = (0, import_client23.useMutation)(
1475
1598
  MARK_ALL_NOTIFICATIONS_READ,
1476
1599
  {
1477
1600
  refetchQueries: [
@@ -1487,7 +1610,7 @@ var useMarkAllNotificationsRead = () => {
1487
1610
  return { error, loading, markAllNotificationsRead };
1488
1611
  };
1489
1612
  var useDeleteNotification = () => {
1490
- const [deleteNotification, { loading, error }] = (0, import_client22.useMutation)(
1613
+ const [deleteNotification, { loading, error }] = (0, import_client23.useMutation)(
1491
1614
  DELETE_NOTIFICATION,
1492
1615
  {
1493
1616
  refetchQueries: [
@@ -1503,7 +1626,7 @@ var useDeleteNotification = () => {
1503
1626
  return { deleteNotification, error, loading };
1504
1627
  };
1505
1628
  var useDeleteAllNotifications = () => {
1506
- const [deleteAllNotifications, { loading, error }] = (0, import_client22.useMutation)(
1629
+ const [deleteAllNotifications, { loading, error }] = (0, import_client23.useMutation)(
1507
1630
  DELETE_ALL_NOTIFICATIONS,
1508
1631
  {
1509
1632
  refetchQueries: [
@@ -1520,9 +1643,9 @@ var useDeleteAllNotifications = () => {
1520
1643
  };
1521
1644
 
1522
1645
  // src/graphql/hooks/notifications/hooksQuery.ts
1523
- var import_client23 = require("@apollo/client");
1646
+ var import_client24 = require("@apollo/client");
1524
1647
  var useGetUserNotifications = (limit, offset) => {
1525
- const { data, loading, error, refetch } = (0, import_client23.useQuery)(GET_USER_NOTIFICATIONS, {
1648
+ const { data, loading, error, refetch } = (0, import_client24.useQuery)(GET_USER_NOTIFICATIONS, {
1526
1649
  fetchPolicy: "no-cache",
1527
1650
  variables: { limit, offset }
1528
1651
  });
@@ -1534,7 +1657,7 @@ var useGetUserNotifications = (limit, offset) => {
1534
1657
  };
1535
1658
  };
1536
1659
  var useGetNotificationCount = () => {
1537
- const { data, loading, error, refetch } = (0, import_client23.useQuery)(GET_NOTIFICATION_COUNT, {
1660
+ const { data, loading, error, refetch } = (0, import_client24.useQuery)(GET_NOTIFICATION_COUNT, {
1538
1661
  fetchPolicy: "no-cache"
1539
1662
  });
1540
1663
  return {
@@ -1546,11 +1669,11 @@ var useGetNotificationCount = () => {
1546
1669
  };
1547
1670
 
1548
1671
  // src/graphql/hooks/notifications/hooksSubscription.ts
1549
- var import_client25 = require("@apollo/client");
1672
+ var import_client26 = require("@apollo/client");
1550
1673
 
1551
1674
  // src/graphql/subscriptions/notification.ts
1552
- var import_client24 = require("@apollo/client");
1553
- var GET_NOTIFICATIONS_SUBSCRIPTION = import_client24.gql`
1675
+ var import_client25 = require("@apollo/client");
1676
+ var GET_NOTIFICATIONS_SUBSCRIPTION = import_client25.gql`
1554
1677
  subscription {
1555
1678
  getUserNotifications {
1556
1679
  ...NotificationFields
@@ -1558,7 +1681,7 @@ var GET_NOTIFICATIONS_SUBSCRIPTION = import_client24.gql`
1558
1681
  }
1559
1682
  ${NOTIFICATION_FRAGMENT}
1560
1683
  `;
1561
- var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client24.gql`
1684
+ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client25.gql`
1562
1685
  subscription {
1563
1686
  getNotificationCount {
1564
1687
  total
@@ -1569,7 +1692,7 @@ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client24.gql`
1569
1692
 
1570
1693
  // src/graphql/hooks/notifications/hooksSubscription.ts
1571
1694
  var useGetUserNotificationsSubscription = () => {
1572
- const { data, loading, error } = (0, import_client25.useSubscription)(GET_NOTIFICATIONS_SUBSCRIPTION, {
1695
+ const { data, loading, error } = (0, import_client26.useSubscription)(GET_NOTIFICATIONS_SUBSCRIPTION, {
1573
1696
  fetchPolicy: "no-cache",
1574
1697
  shouldResubscribe: true
1575
1698
  });
@@ -1580,7 +1703,7 @@ var useGetUserNotificationsSubscription = () => {
1580
1703
  };
1581
1704
  };
1582
1705
  var useGetNotificationCountSubscription = () => {
1583
- const { data, loading, error } = (0, import_client25.useSubscription)(GET_NOTIFICATION_COUNT_SUBSCRIPTION, {
1706
+ const { data, loading, error } = (0, import_client26.useSubscription)(GET_NOTIFICATION_COUNT_SUBSCRIPTION, {
1584
1707
  fetchPolicy: "no-cache",
1585
1708
  shouldResubscribe: true
1586
1709
  });
@@ -1592,11 +1715,11 @@ var useGetNotificationCountSubscription = () => {
1592
1715
  };
1593
1716
 
1594
1717
  // src/graphql/hooks/poster.ts
1595
- var import_client27 = require("@apollo/client");
1718
+ var import_client28 = require("@apollo/client");
1596
1719
 
1597
1720
  // src/graphql/mutations/poster.ts
1598
- var import_client26 = require("@apollo/client");
1599
- var CREATE_POSTER_MUTATION = import_client26.gql`
1721
+ var import_client27 = require("@apollo/client");
1722
+ var CREATE_POSTER_MUTATION = import_client27.gql`
1600
1723
  mutation createPoster($input: PosterInputType!) {
1601
1724
  createPoster(input: $input) {
1602
1725
  message
@@ -1610,7 +1733,7 @@ var CREATE_POSTER_MUTATION = import_client26.gql`
1610
1733
 
1611
1734
  // src/graphql/hooks/poster.ts
1612
1735
  var useCreatePoster = () => {
1613
- const [createPoster, { loading, error }] = (0, import_client27.useMutation)(
1736
+ const [createPoster, { loading, error }] = (0, import_client28.useMutation)(
1614
1737
  CREATE_POSTER_MUTATION,
1615
1738
  {
1616
1739
  refetchQueries: [{ query: GET_USER_EVENTS }, { query: GET_USER_VENDORS }]
@@ -1620,11 +1743,11 @@ var useCreatePoster = () => {
1620
1743
  };
1621
1744
 
1622
1745
  // src/graphql/hooks/pushToken.ts
1623
- var import_client29 = require("@apollo/client");
1746
+ var import_client30 = require("@apollo/client");
1624
1747
 
1625
1748
  // src/graphql/mutations/pushToken.ts
1626
- var import_client28 = require("@apollo/client");
1627
- var CREATE_PUSH_TOKEN_MUTATION = import_client28.gql`
1749
+ var import_client29 = require("@apollo/client");
1750
+ var CREATE_PUSH_TOKEN_MUTATION = import_client29.gql`
1628
1751
  mutation createPushToken($input: PushTokenInput!) {
1629
1752
  createPushToken(input: $input) {
1630
1753
  success
@@ -1634,21 +1757,21 @@ var CREATE_PUSH_TOKEN_MUTATION = import_client28.gql`
1634
1757
 
1635
1758
  // src/graphql/hooks/pushToken.ts
1636
1759
  var useCreatePushToken = () => {
1637
- const [createPushToken, { loading, error }] = (0, import_client29.useMutation)(
1760
+ const [createPushToken, { loading, error }] = (0, import_client30.useMutation)(
1638
1761
  CREATE_PUSH_TOKEN_MUTATION
1639
1762
  );
1640
1763
  return { createPushToken, error, loading };
1641
1764
  };
1642
1765
 
1643
1766
  // src/graphql/hooks/relation/hooksMutation.ts
1644
- var import_client32 = require("@apollo/client");
1767
+ var import_client33 = require("@apollo/client");
1645
1768
 
1646
1769
  // src/graphql/mutations/relation.ts
1647
- var import_client31 = require("@apollo/client");
1770
+ var import_client32 = require("@apollo/client");
1648
1771
 
1649
1772
  // src/graphql/queries/relation.ts
1650
- var import_client30 = require("@apollo/client");
1651
- var RELATION_FIELDS_FRAGMENT = import_client30.gql`
1773
+ var import_client31 = require("@apollo/client");
1774
+ var RELATION_FIELDS_FRAGMENT = import_client31.gql`
1652
1775
  fragment RelationFields on RelationType {
1653
1776
  _id
1654
1777
  active
@@ -1666,7 +1789,7 @@ var RELATION_FIELDS_FRAGMENT = import_client30.gql`
1666
1789
  }
1667
1790
  ${RELATION_DATES_FRAGMENT}
1668
1791
  `;
1669
- var GET_RELATION = import_client30.gql`
1792
+ var GET_RELATION = import_client31.gql`
1670
1793
  query getRelation($_id: ID!) {
1671
1794
  relation(_id: $_id) {
1672
1795
  ...RelationFields
@@ -1674,7 +1797,7 @@ var GET_RELATION = import_client30.gql`
1674
1797
  }
1675
1798
  ${RELATION_FIELDS_FRAGMENT}
1676
1799
  `;
1677
- var GET_RELATION_BY_EVENT_AND_VENDOR = import_client30.gql`
1800
+ var GET_RELATION_BY_EVENT_AND_VENDOR = import_client31.gql`
1678
1801
  query getRelationByEventAndVendor($eventId: ID!, $vendorId: ID!) {
1679
1802
  relationByEventAndVendor(eventId: $eventId, vendorId: $vendorId) {
1680
1803
  ...RelationFields
@@ -1682,7 +1805,7 @@ var GET_RELATION_BY_EVENT_AND_VENDOR = import_client30.gql`
1682
1805
  }
1683
1806
  ${RELATION_FIELDS_FRAGMENT}
1684
1807
  `;
1685
- var GET_EVENT_RELATIONS = import_client30.gql`
1808
+ var GET_EVENT_RELATIONS = import_client31.gql`
1686
1809
  query getEventRelations($eventId: ID!) {
1687
1810
  eventRelations(eventId: $eventId) {
1688
1811
  ...RelationFields
@@ -1690,7 +1813,7 @@ var GET_EVENT_RELATIONS = import_client30.gql`
1690
1813
  }
1691
1814
  ${RELATION_FIELDS_FRAGMENT}
1692
1815
  `;
1693
- var GET_VENDOR_RELATIONS = import_client30.gql`
1816
+ var GET_VENDOR_RELATIONS = import_client31.gql`
1694
1817
  query getVendorRelations($vendorId: ID!) {
1695
1818
  vendorRelations(vendorId: $vendorId) {
1696
1819
  ...RelationFields
@@ -1698,7 +1821,7 @@ var GET_VENDOR_RELATIONS = import_client30.gql`
1698
1821
  }
1699
1822
  ${RELATION_FIELDS_FRAGMENT}
1700
1823
  `;
1701
- var GET_RESOURCE_CONNECTIONS = import_client30.gql`
1824
+ var GET_RESOURCE_CONNECTIONS = import_client31.gql`
1702
1825
  query getResourceConnections(
1703
1826
  $resourceId: ID!
1704
1827
  $resourceType: ResourceTypeEnum!
@@ -1717,7 +1840,7 @@ var GET_RESOURCE_CONNECTIONS = import_client30.gql`
1717
1840
  `;
1718
1841
 
1719
1842
  // src/graphql/mutations/relation.ts
1720
- var CREATE_RELATION_MUTATION = import_client31.gql`
1843
+ var CREATE_RELATION_MUTATION = import_client32.gql`
1721
1844
  mutation createRelation($input: RelationInputType!) {
1722
1845
  createRelation(input: $input) {
1723
1846
  ...RelationFields
@@ -1725,7 +1848,7 @@ var CREATE_RELATION_MUTATION = import_client31.gql`
1725
1848
  }
1726
1849
  ${RELATION_FIELDS_FRAGMENT}
1727
1850
  `;
1728
- var UPDATE_RELATION_MUTATION = import_client31.gql`
1851
+ var UPDATE_RELATION_MUTATION = import_client32.gql`
1729
1852
  mutation updateRelation($_id: ID!, $input: RelationInputType!) {
1730
1853
  updateRelation(_id: $_id, input: $input) {
1731
1854
  ...RelationFields
@@ -1733,7 +1856,7 @@ var UPDATE_RELATION_MUTATION = import_client31.gql`
1733
1856
  }
1734
1857
  ${RELATION_FIELDS_FRAGMENT}
1735
1858
  `;
1736
- var DELETE_RELATION_MUTATION = import_client31.gql`
1859
+ var DELETE_RELATION_MUTATION = import_client32.gql`
1737
1860
  mutation deleteRelation($_id: ID!) {
1738
1861
  deleteRelation(_id: $_id) {
1739
1862
  ...RelationFields
@@ -1744,7 +1867,7 @@ var DELETE_RELATION_MUTATION = import_client31.gql`
1744
1867
 
1745
1868
  // src/graphql/hooks/relation/hooksMutation.ts
1746
1869
  var useCreateRelation = () => {
1747
- const [createRelation, { loading, error }] = (0, import_client32.useMutation)(CREATE_RELATION_MUTATION, {
1870
+ const [createRelation, { loading, error }] = (0, import_client33.useMutation)(CREATE_RELATION_MUTATION, {
1748
1871
  awaitRefetchQueries: true,
1749
1872
  refetchQueries: (mutationResult) => {
1750
1873
  const createRelation2 = mutationResult?.data?.createRelation;
@@ -1790,7 +1913,7 @@ var useCreateRelation = () => {
1790
1913
  return { createRelation, error, loading };
1791
1914
  };
1792
1915
  var useUpdateRelation = () => {
1793
- const [updateRelation, { loading, error }] = (0, import_client32.useMutation)(UPDATE_RELATION_MUTATION, {
1916
+ const [updateRelation, { loading, error }] = (0, import_client33.useMutation)(UPDATE_RELATION_MUTATION, {
1794
1917
  awaitRefetchQueries: true,
1795
1918
  refetchQueries: (mutationResult) => {
1796
1919
  const updateRelation2 = mutationResult?.data?.updateRelation;
@@ -1833,7 +1956,7 @@ var useUpdateRelation = () => {
1833
1956
  return { error, loading, updateRelation };
1834
1957
  };
1835
1958
  var useDeleteRelation = () => {
1836
- const [deleteRelation, { loading, error }] = (0, import_client32.useMutation)(DELETE_RELATION_MUTATION, {
1959
+ const [deleteRelation, { loading, error }] = (0, import_client33.useMutation)(DELETE_RELATION_MUTATION, {
1837
1960
  awaitRefetchQueries: true,
1838
1961
  refetchQueries: (mutationResult) => {
1839
1962
  const deleteRelation2 = mutationResult?.data?.deleteRelation;
@@ -1872,9 +1995,9 @@ var useDeleteRelation = () => {
1872
1995
  };
1873
1996
 
1874
1997
  // src/graphql/hooks/relation/hooksQuery.ts
1875
- var import_client33 = require("@apollo/client");
1998
+ var import_client34 = require("@apollo/client");
1876
1999
  var useGetRelation = (_id) => {
1877
- const { loading, error, data, refetch } = (0, import_client33.useQuery)(GET_RELATION, {
2000
+ const { loading, error, data, refetch } = (0, import_client34.useQuery)(GET_RELATION, {
1878
2001
  fetchPolicy: "network-only",
1879
2002
  skip: !_id,
1880
2003
  variables: { _id }
@@ -1883,7 +2006,7 @@ var useGetRelation = (_id) => {
1883
2006
  return { error, loading, refetch, relation };
1884
2007
  };
1885
2008
  var useGetRelationByEventAndVendor = (eventId, vendorId) => {
1886
- const { loading, error, data, refetch } = (0, import_client33.useQuery)(GET_RELATION_BY_EVENT_AND_VENDOR, {
2009
+ const { loading, error, data, refetch } = (0, import_client34.useQuery)(GET_RELATION_BY_EVENT_AND_VENDOR, {
1887
2010
  fetchPolicy: "network-only",
1888
2011
  skip: !eventId || !vendorId,
1889
2012
  variables: { eventId, vendorId }
@@ -1892,7 +2015,7 @@ var useGetRelationByEventAndVendor = (eventId, vendorId) => {
1892
2015
  return { error, loading, refetch, relationByEventAndVendor };
1893
2016
  };
1894
2017
  var useGetEventRelations = (eventId) => {
1895
- const { loading, error, data, refetch } = (0, import_client33.useQuery)(GET_EVENT_RELATIONS, {
2018
+ const { loading, error, data, refetch } = (0, import_client34.useQuery)(GET_EVENT_RELATIONS, {
1896
2019
  fetchPolicy: "network-only",
1897
2020
  skip: !eventId,
1898
2021
  variables: { eventId }
@@ -1901,7 +2024,7 @@ var useGetEventRelations = (eventId) => {
1901
2024
  return { error, eventRelations, loading, refetch };
1902
2025
  };
1903
2026
  var useGetVendorRelations = (vendorId) => {
1904
- const { loading, error, data, refetch } = (0, import_client33.useQuery)(GET_VENDOR_RELATIONS, {
2027
+ const { loading, error, data, refetch } = (0, import_client34.useQuery)(GET_VENDOR_RELATIONS, {
1905
2028
  fetchPolicy: "network-only",
1906
2029
  skip: !vendorId,
1907
2030
  variables: { vendorId }
@@ -1910,7 +2033,7 @@ var useGetVendorRelations = (vendorId) => {
1910
2033
  return { error, loading, refetch, vendorRelations };
1911
2034
  };
1912
2035
  var useGetResourceConnections = (resourceId, resourceType) => {
1913
- const { loading, error, data, refetch } = (0, import_client33.useQuery)(GET_RESOURCE_CONNECTIONS, {
2036
+ const { loading, error, data, refetch } = (0, import_client34.useQuery)(GET_RESOURCE_CONNECTIONS, {
1914
2037
  fetchPolicy: "network-only",
1915
2038
  variables: { resourceId, resourceType }
1916
2039
  });
@@ -1919,11 +2042,11 @@ var useGetResourceConnections = (resourceId, resourceType) => {
1919
2042
  };
1920
2043
 
1921
2044
  // src/graphql/hooks/vendor/hooksMutation.ts
1922
- var import_client35 = require("@apollo/client");
2045
+ var import_client36 = require("@apollo/client");
1923
2046
 
1924
2047
  // src/graphql/mutations/vendor.ts
1925
- var import_client34 = require("@apollo/client");
1926
- var CREATE_VENDOR_MUTATION = import_client34.gql`
2048
+ var import_client35 = require("@apollo/client");
2049
+ var CREATE_VENDOR_MUTATION = import_client35.gql`
1927
2050
  mutation createVendor($input: VendorInputType!) {
1928
2051
  createVendor(input: $input) {
1929
2052
  ...VendorFields
@@ -1931,7 +2054,7 @@ var CREATE_VENDOR_MUTATION = import_client34.gql`
1931
2054
  }
1932
2055
  ${VENDOR}
1933
2056
  `;
1934
- var UPDATE_VENDOR_MUTATION = import_client34.gql`
2057
+ var UPDATE_VENDOR_MUTATION = import_client35.gql`
1935
2058
  mutation updateVendor($_id: ID!, $input: VendorInputType!) {
1936
2059
  updateVendor(_id: $_id, input: $input) {
1937
2060
  ...VendorFields
@@ -1939,12 +2062,12 @@ var UPDATE_VENDOR_MUTATION = import_client34.gql`
1939
2062
  }
1940
2063
  ${VENDOR}
1941
2064
  `;
1942
- var DELETE_VENDOR_MUTATION = import_client34.gql`
2065
+ var DELETE_VENDOR_MUTATION = import_client35.gql`
1943
2066
  mutation deleteVendor($_id: ID!) {
1944
2067
  deleteVendor(_id: $_id)
1945
2068
  }
1946
2069
  `;
1947
- var CREATE_VENDOR_INFO_MUTATION = import_client34.gql`
2070
+ var CREATE_VENDOR_INFO_MUTATION = import_client35.gql`
1948
2071
  mutation createVendorInfo($input: VendorInfoInputType!) {
1949
2072
  createVendorInfo(input: $input) {
1950
2073
  ...VendorInfoFields
@@ -1952,7 +2075,7 @@ var CREATE_VENDOR_INFO_MUTATION = import_client34.gql`
1952
2075
  }
1953
2076
  ${VENDOR_INFO}
1954
2077
  `;
1955
- var UPDATE_VENDOR_INFO_MUTATION = import_client34.gql`
2078
+ var UPDATE_VENDOR_INFO_MUTATION = import_client35.gql`
1956
2079
  mutation updateVendorInfo($_id: ID!, $input: VendorInfoInputType!) {
1957
2080
  updateVendorInfo(_id: $_id, input: $input) {
1958
2081
  ...VendorInfoFields
@@ -1963,7 +2086,7 @@ var UPDATE_VENDOR_INFO_MUTATION = import_client34.gql`
1963
2086
 
1964
2087
  // src/graphql/hooks/vendor/hooksMutation.ts
1965
2088
  var useCreateVendor = () => {
1966
- const [createVendor, { loading, error }] = (0, import_client35.useMutation)(
2089
+ const [createVendor, { loading, error }] = (0, import_client36.useMutation)(
1967
2090
  CREATE_VENDOR_MUTATION,
1968
2091
  {
1969
2092
  awaitRefetchQueries: true,
@@ -1973,7 +2096,7 @@ var useCreateVendor = () => {
1973
2096
  return { createVendor, error, loading };
1974
2097
  };
1975
2098
  var useUpdateVendor = () => {
1976
- const [updateVendor, { loading, error }] = (0, import_client35.useMutation)(
2099
+ const [updateVendor, { loading, error }] = (0, import_client36.useMutation)(
1977
2100
  UPDATE_VENDOR_MUTATION,
1978
2101
  {
1979
2102
  awaitRefetchQueries: true,
@@ -1983,7 +2106,7 @@ var useUpdateVendor = () => {
1983
2106
  return { error, loading, updateVendor };
1984
2107
  };
1985
2108
  var useDeleteVendor = () => {
1986
- const [deleteVendor, { loading, error }] = (0, import_client35.useMutation)(
2109
+ const [deleteVendor, { loading, error }] = (0, import_client36.useMutation)(
1987
2110
  DELETE_VENDOR_MUTATION,
1988
2111
  {
1989
2112
  awaitRefetchQueries: true,
@@ -1993,7 +2116,7 @@ var useDeleteVendor = () => {
1993
2116
  return { deleteVendor, error, loading };
1994
2117
  };
1995
2118
  var useCreateVendorInfo = () => {
1996
- const [createVendorInfo, { loading, error }] = (0, import_client35.useMutation)(CREATE_VENDOR_INFO_MUTATION, {
2119
+ const [createVendorInfo, { loading, error }] = (0, import_client36.useMutation)(CREATE_VENDOR_INFO_MUTATION, {
1997
2120
  awaitRefetchQueries: true,
1998
2121
  refetchQueries: (mutationResult) => {
1999
2122
  const vendorId = mutationResult?.data?.createVendorInfo?.vendorId;
@@ -2017,7 +2140,7 @@ var useCreateVendorInfo = () => {
2017
2140
  return { createVendorInfo, error, loading };
2018
2141
  };
2019
2142
  var useUpdateVendorInfo = () => {
2020
- const [updateVendorInfo, { loading, error }] = (0, import_client35.useMutation)(UPDATE_VENDOR_INFO_MUTATION, {
2143
+ const [updateVendorInfo, { loading, error }] = (0, import_client36.useMutation)(UPDATE_VENDOR_INFO_MUTATION, {
2021
2144
  awaitRefetchQueries: true,
2022
2145
  refetchQueries: (mutationResult) => {
2023
2146
  const vendorId = mutationResult?.data?.updateVendorInfo?.vendorId;
@@ -2035,9 +2158,9 @@ var useUpdateVendorInfo = () => {
2035
2158
  };
2036
2159
 
2037
2160
  // src/graphql/hooks/vendor/hooksQuery.ts
2038
- var import_client36 = require("@apollo/client");
2161
+ var import_client37 = require("@apollo/client");
2039
2162
  var useGetVendors = () => {
2040
- const { loading, error, data, refetch } = (0, import_client36.useQuery)(
2163
+ const { loading, error, data, refetch } = (0, import_client37.useQuery)(
2041
2164
  GET_VENDORS,
2042
2165
  {
2043
2166
  fetchPolicy: "network-only"
@@ -2052,7 +2175,7 @@ var useGetVendors = () => {
2052
2175
  };
2053
2176
  };
2054
2177
  var useGetVendor = (_id) => {
2055
- const { loading, error, data, refetch } = (0, import_client36.useQuery)(
2178
+ const { loading, error, data, refetch } = (0, import_client37.useQuery)(
2056
2179
  GET_VENDOR,
2057
2180
  {
2058
2181
  fetchPolicy: "network-only",
@@ -2064,7 +2187,7 @@ var useGetVendor = (_id) => {
2064
2187
  return { error, loading, refetch, vendor };
2065
2188
  };
2066
2189
  var useGetVendorsByRegion = (region) => {
2067
- const { loading, error, data, refetch } = (0, import_client36.useQuery)(GET_VENDORS_BY_REGION, {
2190
+ const { loading, error, data, refetch } = (0, import_client37.useQuery)(GET_VENDORS_BY_REGION, {
2068
2191
  fetchPolicy: "no-cache",
2069
2192
  skip: !region,
2070
2193
  variables: { region }
@@ -2073,7 +2196,7 @@ var useGetVendorsByRegion = (region) => {
2073
2196
  return { error, loading, refetch, vendorsByRegion };
2074
2197
  };
2075
2198
  var useSearchVendors = (search, region) => {
2076
- const { loading, error, data, refetch } = (0, import_client36.useQuery)(SEARCH_VENDORS, {
2199
+ const { loading, error, data, refetch } = (0, import_client37.useQuery)(SEARCH_VENDORS, {
2077
2200
  fetchPolicy: "network-only",
2078
2201
  skip: search.length < 3,
2079
2202
  variables: { region, search }
@@ -2082,7 +2205,7 @@ var useSearchVendors = (search, region) => {
2082
2205
  return { error, loading, refetch, vendorSearch };
2083
2206
  };
2084
2207
  var useGetVendorInfo = (vendorId) => {
2085
- const { loading, error, data, refetch } = (0, import_client36.useQuery)(GET_VENDOR_INFO, {
2208
+ const { loading, error, data, refetch } = (0, import_client37.useQuery)(GET_VENDOR_INFO, {
2086
2209
  fetchPolicy: "network-only",
2087
2210
  skip: !vendorId,
2088
2211
  variables: { vendorId }
@@ -2101,102 +2224,6 @@ var import_client39 = require("@apollo/client");
2101
2224
 
2102
2225
  // src/graphql/mutations/tester.ts
2103
2226
  var import_client38 = require("@apollo/client");
2104
-
2105
- // src/graphql/queries/tester.ts
2106
- var import_client37 = require("@apollo/client");
2107
- var TESTER_VENDOR_FIELDS_FRAGMENT = import_client37.gql`
2108
- fragment TesterVendorFields on TesterVendorType {
2109
- categories {
2110
- ...CategoryFields
2111
- }
2112
- productsOrServices
2113
- marketsAttended {
2114
- name
2115
- city
2116
- }
2117
- sellingFrequency
2118
- yearlySellingApprox
2119
- questionary {
2120
- uploadStallProfileFirstWeek
2121
- applyToAtLeastOneMarket
2122
- tryVisitorFeatures
2123
- completeFeedbackQuestionnaire
2124
- sendPhotoForSocialMedia
2125
- appearInVideoIntroduction
2126
- socialMediaFeatureReason
2127
- excitementAboutApp
2128
- usefulnessExpectations
2129
- testingPeriodConcerns
2130
- }
2131
- }
2132
- ${CATEGORY_FIELDS_FRAGMENT}
2133
- `;
2134
- var TESTER_EVENT_FIELDS_FRAGMENT = import_client37.gql`
2135
- fragment TesterEventFields on TesterEventType {
2136
- organizedMarketCount
2137
- markets {
2138
- name
2139
- cityOrVenue
2140
- frequency
2141
- averageStallCount
2142
- }
2143
- questionary {
2144
- allowMarketingAppearance
2145
- completeFinalQuestionnaire
2146
- dailyCoordinationNeeds
2147
- interestedInCharityInitiative
2148
- inviteAtLeastFiveStallholders
2149
- manageApplicationsAndCommunication
2150
- organizerExpectations
2151
- registerMarketsFirstWeek
2152
- spaceForClueMart
2153
- }
2154
- }
2155
- `;
2156
- var TESTER_FIELDS_FRAGMENT = import_client37.gql`
2157
- fragment TesterFields on TesterType {
2158
- _id
2159
- active
2160
- approved
2161
- businessName
2162
- createdAt
2163
- email
2164
- firstName
2165
- lastName
2166
- mobilePhone
2167
- osType
2168
- privacyConsent
2169
- region
2170
- resourceType
2171
- updatedAt
2172
- vendor {
2173
- ...TesterVendorFields
2174
- }
2175
- event {
2176
- ...TesterEventFields
2177
- }
2178
- }
2179
- ${TESTER_VENDOR_FIELDS_FRAGMENT}
2180
- ${TESTER_EVENT_FIELDS_FRAGMENT}
2181
- `;
2182
- var GET_TESTERS = import_client37.gql`
2183
- query getTesters {
2184
- testers {
2185
- ...TesterFields
2186
- }
2187
- }
2188
- ${TESTER_FIELDS_FRAGMENT}
2189
- `;
2190
- var GET_TESTER = import_client37.gql`
2191
- query getTester($_id: ID!) {
2192
- tester(_id: $_id) {
2193
- ...TesterFields
2194
- }
2195
- }
2196
- ${TESTER_FIELDS_FRAGMENT}
2197
- `;
2198
-
2199
- // src/graphql/mutations/tester.ts
2200
2227
  var CREATE_TESTER_MUTATION = import_client38.gql`
2201
2228
  mutation createTester($input: TesterInputType!) {
2202
2229
  createTester(input: $input) {
@@ -2987,6 +3014,7 @@ var useSearchPartners = (search, region) => {
2987
3014
  useAddUserInterestResource,
2988
3015
  useAddUserPresentResource,
2989
3016
  useAdminUpdateResourceType,
3017
+ useAdminUpdateTester,
2990
3018
  useCancelSubscription,
2991
3019
  useContactUs,
2992
3020
  useCreateAd,