@timardex/cluemart-shared 1.2.93 → 1.2.95

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