@timardex/cluemart-shared 1.2.72 → 1.2.74

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.
@@ -121,7 +121,7 @@ __export(graphql_exports, {
121
121
  module.exports = __toCommonJS(graphql_exports);
122
122
 
123
123
  // src/graphql/hooks/admin/hooksMutation.ts
124
- var import_react = require("@apollo/client/react");
124
+ var import_client5 = require("@apollo/client");
125
125
 
126
126
  // src/graphql/mutations/admin.ts
127
127
  var import_client = require("@apollo/client");
@@ -203,7 +203,7 @@ var TERMS_AGREEMENT_FIELDS_FRAGMENT = import_client2.gql`
203
203
  }
204
204
  `;
205
205
  var LICENCE_FIELDS_FRAGMENT = import_client2.gql`
206
- fragment LicenceFields on LicenceType {
206
+ fragment LicenceFields on UserLicenceType {
207
207
  expiryDate
208
208
  issuedDate
209
209
  licenceType
@@ -697,7 +697,7 @@ var GET_VENDOR_INFO = import_client4.gql`
697
697
 
698
698
  // src/graphql/hooks/admin/hooksMutation.ts
699
699
  var useAdminUpdateResourceType = () => {
700
- const [adminUpdateResourceType, { loading, error }] = (0, import_react.useMutation)(ADMIN_UPDATE_RESOURCE_TYPE_MUTATION, {
700
+ const [adminUpdateResourceType, { loading, error }] = (0, import_client5.useMutation)(ADMIN_UPDATE_RESOURCE_TYPE_MUTATION, {
701
701
  awaitRefetchQueries: true,
702
702
  refetchQueries: (mutationResult) => {
703
703
  const adminUpdateResourceType2 = mutationResult?.data?.adminUpdateResourceType;
@@ -721,11 +721,11 @@ var useAdminUpdateResourceType = () => {
721
721
  };
722
722
 
723
723
  // src/graphql/hooks/auth.ts
724
- var import_react2 = require("@apollo/client/react");
724
+ var import_client7 = require("@apollo/client");
725
725
 
726
726
  // src/graphql/mutations/auth.ts
727
- var import_client5 = require("@apollo/client");
728
- var REGISTER_MUTATION = import_client5.gql`
727
+ var import_client6 = require("@apollo/client");
728
+ var REGISTER_MUTATION = import_client6.gql`
729
729
  mutation register($input: RegisterInputType!) {
730
730
  register(input: $input) {
731
731
  message
@@ -738,7 +738,7 @@ var REGISTER_MUTATION = import_client5.gql`
738
738
  }
739
739
  ${USER_FIELDS_FRAGMENT}
740
740
  `;
741
- var LOGIN_MUTATION = import_client5.gql`
741
+ var LOGIN_MUTATION = import_client6.gql`
742
742
  mutation login($input: LoginInputType!) {
743
743
  login(input: $input) {
744
744
  message
@@ -751,14 +751,14 @@ var LOGIN_MUTATION = import_client5.gql`
751
751
  }
752
752
  ${USER_FIELDS_FRAGMENT}
753
753
  `;
754
- var LOGOUT_MUTATION = import_client5.gql`
754
+ var LOGOUT_MUTATION = import_client6.gql`
755
755
  mutation logout {
756
756
  logout {
757
757
  message
758
758
  }
759
759
  }
760
760
  `;
761
- var REFRESH_TOKEN_MUTATION = import_client5.gql`
761
+ var REFRESH_TOKEN_MUTATION = import_client6.gql`
762
762
  mutation refreshToken($input: RefreshTokenInputType!) {
763
763
  refreshToken(input: $input) {
764
764
  refreshToken
@@ -766,21 +766,21 @@ var REFRESH_TOKEN_MUTATION = import_client5.gql`
766
766
  }
767
767
  }
768
768
  `;
769
- var RESET_PASSWORD_MUTATION = import_client5.gql`
769
+ var RESET_PASSWORD_MUTATION = import_client6.gql`
770
770
  mutation resetPassword($input: ResetPasswordInputType!) {
771
771
  resetPassword(input: $input) {
772
772
  message
773
773
  }
774
774
  }
775
775
  `;
776
- var REQUEST_PASSWORD_RESET_MUTATION = import_client5.gql`
776
+ var REQUEST_PASSWORD_RESET_MUTATION = import_client6.gql`
777
777
  mutation requestPasswordReset($input: RequestPasswordResetInputType!) {
778
778
  requestPasswordReset(input: $input) {
779
779
  message
780
780
  }
781
781
  }
782
782
  `;
783
- var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client5.gql`
783
+ var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client6.gql`
784
784
  mutation validateVerificationToken(
785
785
  $input: ValidateVerificationTokenInputType!
786
786
  ) {
@@ -792,51 +792,51 @@ var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client5.gql`
792
792
 
793
793
  // src/graphql/hooks/auth.ts
794
794
  var useRegister = () => {
795
- const [register, { loading, error }] = (0, import_react2.useMutation)(REGISTER_MUTATION);
795
+ const [register, { loading, error }] = (0, import_client7.useMutation)(REGISTER_MUTATION);
796
796
  return { error, loading, register };
797
797
  };
798
798
  var useLogin = () => {
799
- const [login, { loading, error }] = (0, import_react2.useMutation)(LOGIN_MUTATION);
799
+ const [login, { loading, error }] = (0, import_client7.useMutation)(LOGIN_MUTATION);
800
800
  return { error, loading, login };
801
801
  };
802
802
  var useLogout = () => {
803
- const [logout, { loading, error }] = (0, import_react2.useMutation)(LOGOUT_MUTATION);
803
+ const [logout, { loading, error }] = (0, import_client7.useMutation)(LOGOUT_MUTATION);
804
804
  return { error, loading, logout };
805
805
  };
806
806
  var useRefreshToken = () => {
807
- const [refreshToken, { loading, error }] = (0, import_react2.useMutation)(
807
+ const [refreshToken, { loading, error }] = (0, import_client7.useMutation)(
808
808
  REFRESH_TOKEN_MUTATION
809
809
  );
810
810
  return { error, loading, refreshToken };
811
811
  };
812
812
  var useRequestPasswordReset = () => {
813
- const [requestPasswordReset, { loading, error }] = (0, import_react2.useMutation)(
813
+ const [requestPasswordReset, { loading, error }] = (0, import_client7.useMutation)(
814
814
  REQUEST_PASSWORD_RESET_MUTATION
815
815
  );
816
816
  return { error, loading, requestPasswordReset };
817
817
  };
818
818
  var useValidateVerificationToken = () => {
819
- const [validateVerificationToken, { loading, error }] = (0, import_react2.useMutation)(
819
+ const [validateVerificationToken, { loading, error }] = (0, import_client7.useMutation)(
820
820
  VALIDATE_VERIFICATION_TOKEN_MUTATION
821
821
  );
822
822
  return { error, loading, validateVerificationToken };
823
823
  };
824
824
  var useResetPassword = () => {
825
- const [resetPassword, { loading, error }] = (0, import_react2.useMutation)(
825
+ const [resetPassword, { loading, error }] = (0, import_client7.useMutation)(
826
826
  RESET_PASSWORD_MUTATION
827
827
  );
828
828
  return { error, loading, resetPassword };
829
829
  };
830
830
 
831
831
  // src/graphql/hooks/chat/hooksMutation.ts
832
- var import_react3 = require("@apollo/client/react");
832
+ var import_client10 = require("@apollo/client");
833
833
 
834
834
  // src/graphql/mutations/chat.ts
835
- var import_client7 = require("@apollo/client");
835
+ var import_client9 = require("@apollo/client");
836
836
 
837
837
  // src/graphql/queries/chat.ts
838
- var import_client6 = require("@apollo/client");
839
- var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client6.gql`
838
+ var import_client8 = require("@apollo/client");
839
+ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client8.gql`
840
840
  fragment ChatMessageFields on ChatMessageType {
841
841
  _id
842
842
  content
@@ -845,7 +845,7 @@ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client6.gql`
845
845
  updatedAt
846
846
  }
847
847
  `;
848
- var CHAT_PARTICIPANT = import_client6.gql`
848
+ var CHAT_PARTICIPANT = import_client8.gql`
849
849
  fragment ChatParticipantFields on ChatParticipantType {
850
850
  active
851
851
  userAvatar
@@ -854,7 +854,7 @@ var CHAT_PARTICIPANT = import_client6.gql`
854
854
  userName
855
855
  }
856
856
  `;
857
- var CHAT_FIELDS_FRAGMENT = import_client6.gql`
857
+ var CHAT_FIELDS_FRAGMENT = import_client8.gql`
858
858
  fragment ChatFields on ChatType {
859
859
  _id
860
860
  active
@@ -878,7 +878,7 @@ var CHAT_FIELDS_FRAGMENT = import_client6.gql`
878
878
  ${CHAT_MESSAGE_FIELDS_FRAGMENT}
879
879
  ${CHAT_PARTICIPANT}
880
880
  `;
881
- var CHAT = import_client6.gql`
881
+ var CHAT = import_client8.gql`
882
882
  query chat($_id: ID!) {
883
883
  chat(_id: $_id) {
884
884
  ...ChatFields
@@ -886,7 +886,7 @@ var CHAT = import_client6.gql`
886
886
  }
887
887
  ${CHAT_FIELDS_FRAGMENT}
888
888
  `;
889
- var USER_CHATS = import_client6.gql`
889
+ var USER_CHATS = import_client8.gql`
890
890
  query userChats {
891
891
  userChats {
892
892
  ...ChatFields
@@ -896,7 +896,7 @@ var USER_CHATS = import_client6.gql`
896
896
  `;
897
897
 
898
898
  // src/graphql/mutations/chat.ts
899
- var SEND_CHAT_MESSAGE_MUTATION = import_client7.gql`
899
+ var SEND_CHAT_MESSAGE_MUTATION = import_client9.gql`
900
900
  mutation sendChatMessage($_id: ID!, $input: ChatMessageInputType!) {
901
901
  sendChatMessage(_id: $_id, input: $input) {
902
902
  ...ChatFields
@@ -904,12 +904,12 @@ var SEND_CHAT_MESSAGE_MUTATION = import_client7.gql`
904
904
  }
905
905
  ${CHAT_FIELDS_FRAGMENT}
906
906
  `;
907
- var DELETE_CHAT_MUTATION = import_client7.gql`
907
+ var DELETE_CHAT_MUTATION = import_client9.gql`
908
908
  mutation deleteChat($_id: ID!) {
909
909
  deleteChat(_id: $_id)
910
910
  }
911
911
  `;
912
- var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client7.gql`
912
+ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client9.gql`
913
913
  mutation addParticipantToChat($chatId: ID!, $userId: ID!) {
914
914
  addParticipantToChat(chatId: $chatId, userId: $userId) {
915
915
  ...ChatFields
@@ -917,7 +917,7 @@ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client7.gql`
917
917
  }
918
918
  ${CHAT_FIELDS_FRAGMENT}
919
919
  `;
920
- var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client7.gql`
920
+ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client9.gql`
921
921
  mutation removeParticipantFromChat($chatId: ID!, $userId: ID!) {
922
922
  removeParticipantFromChat(chatId: $chatId, userId: $userId)
923
923
  }
@@ -925,7 +925,7 @@ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client7.gql`
925
925
 
926
926
  // src/graphql/hooks/chat/hooksMutation.ts
927
927
  var useSendChatMessage = () => {
928
- const [sendChatMessage, { loading, error }] = (0, import_react3.useMutation)(SEND_CHAT_MESSAGE_MUTATION, {
928
+ const [sendChatMessage, { loading, error }] = (0, import_client10.useMutation)(SEND_CHAT_MESSAGE_MUTATION, {
929
929
  awaitRefetchQueries: true,
930
930
  refetchQueries: (mutationResult) => {
931
931
  const chatId = mutationResult?.data?.sendChatMessage?._id;
@@ -940,14 +940,14 @@ var useSendChatMessage = () => {
940
940
  return { error, loading, sendChatMessage };
941
941
  };
942
942
  var useDeleteChat = () => {
943
- const [deleteChat, { loading, error }] = (0, import_react3.useMutation)(DELETE_CHAT_MUTATION, {
943
+ const [deleteChat, { loading, error }] = (0, import_client10.useMutation)(DELETE_CHAT_MUTATION, {
944
944
  awaitRefetchQueries: true,
945
945
  refetchQueries: [{ query: USER_CHATS }]
946
946
  });
947
947
  return { deleteChat, error, loading };
948
948
  };
949
949
  var useAddParticipantToChat = () => {
950
- const [addParticipantToChat, { loading, error }] = (0, import_react3.useMutation)(ADD_PARTICIPANT_TO_CHAT_MUTATION, {
950
+ const [addParticipantToChat, { loading, error }] = (0, import_client10.useMutation)(ADD_PARTICIPANT_TO_CHAT_MUTATION, {
951
951
  awaitRefetchQueries: true,
952
952
  refetchQueries: (mutationResult) => {
953
953
  const chatId = mutationResult?.data?.addParticipantToChat?._id;
@@ -965,7 +965,7 @@ var useAddParticipantToChat = () => {
965
965
  return { addParticipantToChat, error, loading };
966
966
  };
967
967
  var useRemoveParticipantFromChat = () => {
968
- const [removeParticipantFromChat, { loading, error }] = (0, import_react3.useMutation)(
968
+ const [removeParticipantFromChat, { loading, error }] = (0, import_client10.useMutation)(
969
969
  REMOVE_PARTICIPANT_FROM_CHAT_MUTATION,
970
970
  {
971
971
  awaitRefetchQueries: true,
@@ -976,11 +976,11 @@ var useRemoveParticipantFromChat = () => {
976
976
  };
977
977
 
978
978
  // src/graphql/hooks/chat/hooksQuery.ts
979
- var import_react4 = require("@apollo/client/react");
979
+ var import_client12 = require("@apollo/client");
980
980
 
981
981
  // src/graphql/subscriptions/chat.ts
982
- var import_client8 = require("@apollo/client");
983
- var GET_CHAT_MESSAGE = import_client8.gql`
982
+ var import_client11 = require("@apollo/client");
983
+ var GET_CHAT_MESSAGE = import_client11.gql`
984
984
  subscription {
985
985
  getChatMessage {
986
986
  ...ChatFields
@@ -991,7 +991,7 @@ var GET_CHAT_MESSAGE = import_client8.gql`
991
991
 
992
992
  // src/graphql/hooks/chat/hooksQuery.ts
993
993
  var useGetChat = (_id) => {
994
- const { loading, error, data, refetch } = (0, import_react4.useQuery)(CHAT, {
994
+ const { loading, error, data, refetch } = (0, import_client12.useQuery)(CHAT, {
995
995
  fetchPolicy: "network-only",
996
996
  skip: !_id,
997
997
  variables: { _id }
@@ -1000,7 +1000,7 @@ var useGetChat = (_id) => {
1000
1000
  return { chat, error, loading, refetch };
1001
1001
  };
1002
1002
  var useGetUserChats = () => {
1003
- const { loading, error, data, refetch } = (0, import_react4.useQuery)(
1003
+ const { loading, error, data, refetch } = (0, import_client12.useQuery)(
1004
1004
  USER_CHATS,
1005
1005
  {
1006
1006
  fetchPolicy: "network-only"
@@ -1010,7 +1010,7 @@ var useGetUserChats = () => {
1010
1010
  return { error, loading, refetch, userChats };
1011
1011
  };
1012
1012
  var useGetChatSubscription = () => {
1013
- const { data, loading, error } = (0, import_react4.useSubscription)(
1013
+ const { data, loading, error } = (0, import_client12.useSubscription)(
1014
1014
  GET_CHAT_MESSAGE
1015
1015
  );
1016
1016
  const chat = data?.getChat;
@@ -1018,11 +1018,11 @@ var useGetChatSubscription = () => {
1018
1018
  };
1019
1019
 
1020
1020
  // src/graphql/hooks/contactUs.ts
1021
- var import_react5 = require("@apollo/client/react");
1021
+ var import_client14 = require("@apollo/client");
1022
1022
 
1023
1023
  // src/graphql/mutations/contactUs.ts
1024
- var import_client9 = require("@apollo/client");
1025
- var CONTACT_US_MUTATION = import_client9.gql`
1024
+ var import_client13 = require("@apollo/client");
1025
+ var CONTACT_US_MUTATION = import_client13.gql`
1026
1026
  mutation contactUs($input: ContactUsInputType!) {
1027
1027
  contactUs(input: $input) {
1028
1028
  message
@@ -1032,16 +1032,16 @@ var CONTACT_US_MUTATION = import_client9.gql`
1032
1032
 
1033
1033
  // src/graphql/hooks/contactUs.ts
1034
1034
  var useContactUs = () => {
1035
- const [contactUs, { loading, error }] = (0, import_react5.useMutation)(CONTACT_US_MUTATION);
1035
+ const [contactUs, { loading, error }] = (0, import_client14.useMutation)(CONTACT_US_MUTATION);
1036
1036
  return { contactUs, error, loading };
1037
1037
  };
1038
1038
 
1039
1039
  // src/graphql/hooks/event/hooksMutation.ts
1040
- var import_react6 = require("@apollo/client/react");
1040
+ var import_client18 = require("@apollo/client");
1041
1041
 
1042
1042
  // src/graphql/mutations/event.ts
1043
- var import_client10 = require("@apollo/client");
1044
- var CREATE_EVENT_MUTATION = import_client10.gql`
1043
+ var import_client15 = require("@apollo/client");
1044
+ var CREATE_EVENT_MUTATION = import_client15.gql`
1045
1045
  mutation createEvent($input: EventInputType!) {
1046
1046
  createEvent(input: $input) {
1047
1047
  ...EventFields
@@ -1049,7 +1049,7 @@ var CREATE_EVENT_MUTATION = import_client10.gql`
1049
1049
  }
1050
1050
  ${EVENT}
1051
1051
  `;
1052
- var UPDATE_EVENT_MUTATION = import_client10.gql`
1052
+ var UPDATE_EVENT_MUTATION = import_client15.gql`
1053
1053
  mutation updateEvent($_id: ID!, $input: EventInputType!) {
1054
1054
  updateEvent(_id: $_id, input: $input) {
1055
1055
  ...EventFields
@@ -1057,12 +1057,12 @@ var UPDATE_EVENT_MUTATION = import_client10.gql`
1057
1057
  }
1058
1058
  ${EVENT}
1059
1059
  `;
1060
- var DELETE_EVENT_MUTATION = import_client10.gql`
1060
+ var DELETE_EVENT_MUTATION = import_client15.gql`
1061
1061
  mutation deleteEvent($_id: ID!) {
1062
1062
  deleteEvent(_id: $_id)
1063
1063
  }
1064
1064
  `;
1065
- var CREATE_EVENT_INFO_MUTATION = import_client10.gql`
1065
+ var CREATE_EVENT_INFO_MUTATION = import_client15.gql`
1066
1066
  mutation createEventInfo($input: EventInfoInputType!) {
1067
1067
  createEventInfo(input: $input) {
1068
1068
  ...EventInfoFields
@@ -1070,7 +1070,7 @@ var CREATE_EVENT_INFO_MUTATION = import_client10.gql`
1070
1070
  }
1071
1071
  ${EVENT_INFO}
1072
1072
  `;
1073
- var UPDATE_EVENT_INFO_MUTATION = import_client10.gql`
1073
+ var UPDATE_EVENT_INFO_MUTATION = import_client15.gql`
1074
1074
  mutation updateEventInfo($_id: ID!, $input: EventInfoInputType!) {
1075
1075
  updateEventInfo(_id: $_id, input: $input) {
1076
1076
  ...EventInfoFields
@@ -1080,11 +1080,11 @@ var UPDATE_EVENT_INFO_MUTATION = import_client10.gql`
1080
1080
  `;
1081
1081
 
1082
1082
  // src/graphql/queries/user.ts
1083
- var import_client12 = require("@apollo/client");
1083
+ var import_client17 = require("@apollo/client");
1084
1084
 
1085
1085
  // src/graphql/queries/partner.ts
1086
- var import_client11 = require("@apollo/client");
1087
- var PARTNER = import_client11.gql`
1086
+ var import_client16 = require("@apollo/client");
1087
+ var PARTNER = import_client16.gql`
1088
1088
  fragment PartnerFields on PartnerType {
1089
1089
  _id
1090
1090
  active
@@ -1138,7 +1138,7 @@ var PARTNER = import_client11.gql`
1138
1138
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
1139
1139
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
1140
1140
  `;
1141
- var GET_PARTNERS = import_client11.gql`
1141
+ var GET_PARTNERS = import_client16.gql`
1142
1142
  query getPartners {
1143
1143
  partners {
1144
1144
  ...PartnerFields
@@ -1146,7 +1146,7 @@ var GET_PARTNERS = import_client11.gql`
1146
1146
  }
1147
1147
  ${PARTNER}
1148
1148
  `;
1149
- var GET_PARTNER = import_client11.gql`
1149
+ var GET_PARTNER = import_client16.gql`
1150
1150
  query getPartner($_id: ID!) {
1151
1151
  partner(_id: $_id) {
1152
1152
  ...PartnerFields
@@ -1154,7 +1154,7 @@ var GET_PARTNER = import_client11.gql`
1154
1154
  }
1155
1155
  ${PARTNER}
1156
1156
  `;
1157
- var GET_PARTNERS_BY_REGION = import_client11.gql`
1157
+ var GET_PARTNERS_BY_REGION = import_client16.gql`
1158
1158
  query getPartnersByRegion($region: String!) {
1159
1159
  partnersByRegion(region: $region) {
1160
1160
  ...PartnerFields
@@ -1162,7 +1162,7 @@ var GET_PARTNERS_BY_REGION = import_client11.gql`
1162
1162
  }
1163
1163
  ${PARTNER}
1164
1164
  `;
1165
- var SEARCH_PARTNERS = import_client11.gql`
1165
+ var SEARCH_PARTNERS = import_client16.gql`
1166
1166
  query searchPartners($search: String!, $region: String) {
1167
1167
  partnersSearch(search: $search, region: $region) {
1168
1168
  ...PartnerFields
@@ -1172,7 +1172,7 @@ var SEARCH_PARTNERS = import_client11.gql`
1172
1172
  `;
1173
1173
 
1174
1174
  // src/graphql/queries/user.ts
1175
- var GET_USERS = import_client12.gql`
1175
+ var GET_USERS = import_client17.gql`
1176
1176
  query getUsers {
1177
1177
  users {
1178
1178
  ...UserFields
@@ -1180,7 +1180,7 @@ var GET_USERS = import_client12.gql`
1180
1180
  }
1181
1181
  ${USER_FIELDS_FRAGMENT}
1182
1182
  `;
1183
- var GET_USER = import_client12.gql`
1183
+ var GET_USER = import_client17.gql`
1184
1184
  query getUser($_id: ID!) {
1185
1185
  user(_id: $_id) {
1186
1186
  ...UserFields
@@ -1188,7 +1188,7 @@ var GET_USER = import_client12.gql`
1188
1188
  }
1189
1189
  ${USER_FIELDS_FRAGMENT}
1190
1190
  `;
1191
- var GET_USER_EVENTS = import_client12.gql`
1191
+ var GET_USER_EVENTS = import_client17.gql`
1192
1192
  query getUserEvents {
1193
1193
  userEvents {
1194
1194
  ...EventFields
@@ -1196,7 +1196,7 @@ var GET_USER_EVENTS = import_client12.gql`
1196
1196
  }
1197
1197
  ${EVENT}
1198
1198
  `;
1199
- var GET_USER_VENDORS = import_client12.gql`
1199
+ var GET_USER_VENDORS = import_client17.gql`
1200
1200
  query getUserVendors {
1201
1201
  userVendors {
1202
1202
  ...VendorFields
@@ -1204,7 +1204,7 @@ var GET_USER_VENDORS = import_client12.gql`
1204
1204
  }
1205
1205
  ${VENDOR}
1206
1206
  `;
1207
- var GET_USER_PARTNERS = import_client12.gql`
1207
+ var GET_USER_PARTNERS = import_client17.gql`
1208
1208
  query getUserPartners {
1209
1209
  userPartners {
1210
1210
  ...PartnerFields
@@ -1212,7 +1212,7 @@ var GET_USER_PARTNERS = import_client12.gql`
1212
1212
  }
1213
1213
  ${PARTNER}
1214
1214
  `;
1215
- var GET_USER_ACTIVITIES = import_client12.gql`
1215
+ var GET_USER_ACTIVITIES = import_client17.gql`
1216
1216
  query getUserActivities {
1217
1217
  userActivities {
1218
1218
  favourites {
@@ -1246,28 +1246,28 @@ var GET_USER_ACTIVITIES = import_client12.gql`
1246
1246
 
1247
1247
  // src/graphql/hooks/event/hooksMutation.ts
1248
1248
  var useCreateEvent = () => {
1249
- const [createEvent, { loading, error }] = (0, import_react6.useMutation)(CREATE_EVENT_MUTATION, {
1249
+ const [createEvent, { loading, error }] = (0, import_client18.useMutation)(CREATE_EVENT_MUTATION, {
1250
1250
  awaitRefetchQueries: true,
1251
1251
  refetchQueries: [{ query: GET_USER_EVENTS }]
1252
1252
  });
1253
1253
  return { createEvent, error, loading };
1254
1254
  };
1255
1255
  var useUpdateEvent = () => {
1256
- const [updateEvent, { loading, error }] = (0, import_react6.useMutation)(UPDATE_EVENT_MUTATION, {
1256
+ const [updateEvent, { loading, error }] = (0, import_client18.useMutation)(UPDATE_EVENT_MUTATION, {
1257
1257
  awaitRefetchQueries: true,
1258
1258
  refetchQueries: [{ query: GET_USER_EVENTS }]
1259
1259
  });
1260
1260
  return { error, loading, updateEvent };
1261
1261
  };
1262
1262
  var useDeleteEvent = () => {
1263
- const [deleteEvent, { loading, error }] = (0, import_react6.useMutation)(DELETE_EVENT_MUTATION, {
1263
+ const [deleteEvent, { loading, error }] = (0, import_client18.useMutation)(DELETE_EVENT_MUTATION, {
1264
1264
  awaitRefetchQueries: true,
1265
1265
  refetchQueries: [{ query: GET_USER_EVENTS }]
1266
1266
  });
1267
1267
  return { deleteEvent, error, loading };
1268
1268
  };
1269
1269
  var useCreateEventInfo = () => {
1270
- const [createEventInfo, { loading, error }] = (0, import_react6.useMutation)(CREATE_EVENT_INFO_MUTATION, {
1270
+ const [createEventInfo, { loading, error }] = (0, import_client18.useMutation)(CREATE_EVENT_INFO_MUTATION, {
1271
1271
  awaitRefetchQueries: true,
1272
1272
  refetchQueries: (mutationResult) => {
1273
1273
  const eventId = mutationResult?.data?.createEventInfo?.eventId;
@@ -1291,7 +1291,7 @@ var useCreateEventInfo = () => {
1291
1291
  return { createEventInfo, error, loading };
1292
1292
  };
1293
1293
  var useUpdateEventInfo = () => {
1294
- const [updateEventInfo, { loading, error }] = (0, import_react6.useMutation)(UPDATE_EVENT_INFO_MUTATION, {
1294
+ const [updateEventInfo, { loading, error }] = (0, import_client18.useMutation)(UPDATE_EVENT_INFO_MUTATION, {
1295
1295
  awaitRefetchQueries: true,
1296
1296
  refetchQueries: (mutationResult) => {
1297
1297
  const eventId = mutationResult?.data?.updateEventInfo?.eventId;
@@ -1314,9 +1314,9 @@ var useUpdateEventInfo = () => {
1314
1314
  };
1315
1315
 
1316
1316
  // src/graphql/hooks/event/hooksQuery.ts
1317
- var import_react7 = require("@apollo/client/react");
1317
+ var import_client19 = require("@apollo/client");
1318
1318
  var useGetEvents = () => {
1319
- const { loading, error, data, refetch } = (0, import_react7.useQuery)(
1319
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(
1320
1320
  GET_EVENTS,
1321
1321
  {
1322
1322
  fetchPolicy: "network-only"
@@ -1326,7 +1326,7 @@ var useGetEvents = () => {
1326
1326
  return { error, events, loading, refetch };
1327
1327
  };
1328
1328
  var useGetEvent = (_id) => {
1329
- const { loading, error, data, refetch } = (0, import_react7.useQuery)(
1329
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(
1330
1330
  GET_EVENT,
1331
1331
  {
1332
1332
  fetchPolicy: "network-only",
@@ -1338,7 +1338,7 @@ var useGetEvent = (_id) => {
1338
1338
  return { error, event, loading, refetch };
1339
1339
  };
1340
1340
  var useGetEventsByRegion = (region) => {
1341
- const { loading, error, data, refetch } = (0, import_react7.useQuery)(GET_EVENTS_BY_REGION, {
1341
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENTS_BY_REGION, {
1342
1342
  fetchPolicy: "no-cache",
1343
1343
  skip: !region,
1344
1344
  variables: { region }
@@ -1347,7 +1347,7 @@ var useGetEventsByRegion = (region) => {
1347
1347
  return { error, eventsByRegion, loading, refetch };
1348
1348
  };
1349
1349
  var useSearchEvents = (search, region) => {
1350
- const { loading, error, data, refetch } = (0, import_react7.useQuery)(SEARCH_EVENTS, {
1350
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(SEARCH_EVENTS, {
1351
1351
  fetchPolicy: "network-only",
1352
1352
  skip: search.length < 3,
1353
1353
  variables: { region, search }
@@ -1356,7 +1356,7 @@ var useSearchEvents = (search, region) => {
1356
1356
  return { error, eventsSearch, loading, refetch };
1357
1357
  };
1358
1358
  var useGetEventsNearMe = (location) => {
1359
- const { loading, error, data, refetch } = (0, import_react7.useQuery)(GET_EVENTS_NEAR_ME, {
1359
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENTS_NEAR_ME, {
1360
1360
  fetchPolicy: "network-only",
1361
1361
  skip: !location.latitude || !location.longitude,
1362
1362
  variables: {
@@ -1370,7 +1370,7 @@ var useGetEventsNearMe = (location) => {
1370
1370
  return { error, eventsNearMe, loading, refetch };
1371
1371
  };
1372
1372
  var useGetEventInfo = (eventId) => {
1373
- const { loading, error, data, refetch } = (0, import_react7.useQuery)(GET_EVENT_INFO, {
1373
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENT_INFO, {
1374
1374
  fetchPolicy: "network-only",
1375
1375
  skip: !eventId,
1376
1376
  variables: { eventId }
@@ -1380,14 +1380,14 @@ var useGetEventInfo = (eventId) => {
1380
1380
  };
1381
1381
 
1382
1382
  // src/graphql/hooks/notifications/hooksMutation.ts
1383
- var import_react8 = require("@apollo/client/react");
1383
+ var import_client22 = require("@apollo/client");
1384
1384
 
1385
1385
  // src/graphql/mutations/notification.ts
1386
- var import_client14 = require("@apollo/client");
1386
+ var import_client21 = require("@apollo/client");
1387
1387
 
1388
1388
  // src/graphql/queries/notification.ts
1389
- var import_client13 = require("@apollo/client");
1390
- var NOTIFICATION_FRAGMENT = import_client13.gql`
1389
+ var import_client20 = require("@apollo/client");
1390
+ var NOTIFICATION_FRAGMENT = import_client20.gql`
1391
1391
  fragment NotificationFields on Notification {
1392
1392
  _id
1393
1393
  userId
@@ -1404,7 +1404,7 @@ var NOTIFICATION_FRAGMENT = import_client13.gql`
1404
1404
  updatedAt
1405
1405
  }
1406
1406
  `;
1407
- var GET_USER_NOTIFICATIONS = import_client13.gql`
1407
+ var GET_USER_NOTIFICATIONS = import_client20.gql`
1408
1408
  query getUserNotifications($limit: Int, $offset: Int) {
1409
1409
  userNotifications(limit: $limit, offset: $offset) {
1410
1410
  ...NotificationFields
@@ -1412,7 +1412,7 @@ var GET_USER_NOTIFICATIONS = import_client13.gql`
1412
1412
  }
1413
1413
  ${NOTIFICATION_FRAGMENT}
1414
1414
  `;
1415
- var GET_NOTIFICATION_COUNT = import_client13.gql`
1415
+ var GET_NOTIFICATION_COUNT = import_client20.gql`
1416
1416
  query getNotificationCount {
1417
1417
  notificationCount {
1418
1418
  total
@@ -1422,7 +1422,7 @@ var GET_NOTIFICATION_COUNT = import_client13.gql`
1422
1422
  `;
1423
1423
 
1424
1424
  // src/graphql/mutations/notification.ts
1425
- var CREATE_BULK_NOTIFICATIONS = import_client14.gql`
1425
+ var CREATE_BULK_NOTIFICATIONS = import_client21.gql`
1426
1426
  mutation createBulkNotifications($input: CreateBulkNotificationInput!) {
1427
1427
  createBulkNotifications(input: $input) {
1428
1428
  ...NotificationFields
@@ -1430,7 +1430,7 @@ var CREATE_BULK_NOTIFICATIONS = import_client14.gql`
1430
1430
  }
1431
1431
  ${NOTIFICATION_FRAGMENT}
1432
1432
  `;
1433
- var MARK_NOTIFICATION_READ = import_client14.gql`
1433
+ var MARK_NOTIFICATION_READ = import_client21.gql`
1434
1434
  mutation markNotificationRead($_id: ID!) {
1435
1435
  markNotificationRead(_id: $_id) {
1436
1436
  ...NotificationFields
@@ -1438,17 +1438,17 @@ var MARK_NOTIFICATION_READ = import_client14.gql`
1438
1438
  }
1439
1439
  ${NOTIFICATION_FRAGMENT}
1440
1440
  `;
1441
- var MARK_ALL_NOTIFICATIONS_READ = import_client14.gql`
1441
+ var MARK_ALL_NOTIFICATIONS_READ = import_client21.gql`
1442
1442
  mutation markAllNotificationsRead {
1443
1443
  markAllNotificationsRead
1444
1444
  }
1445
1445
  `;
1446
- var DELETE_NOTIFICATION = import_client14.gql`
1446
+ var DELETE_NOTIFICATION = import_client21.gql`
1447
1447
  mutation deleteNotification($_id: ID!) {
1448
1448
  deleteNotification(_id: $_id)
1449
1449
  }
1450
1450
  `;
1451
- var DELETE_ALL_NOTIFICATIONS = import_client14.gql`
1451
+ var DELETE_ALL_NOTIFICATIONS = import_client21.gql`
1452
1452
  mutation deleteAllNotifications {
1453
1453
  deleteAllNotifications
1454
1454
  }
@@ -1456,13 +1456,13 @@ var DELETE_ALL_NOTIFICATIONS = import_client14.gql`
1456
1456
 
1457
1457
  // src/graphql/hooks/notifications/hooksMutation.ts
1458
1458
  var useCreateBulkNotifications = () => {
1459
- const [createBulkNotifications, { loading, error }] = (0, import_react8.useMutation)(
1459
+ const [createBulkNotifications, { loading, error }] = (0, import_client22.useMutation)(
1460
1460
  CREATE_BULK_NOTIFICATIONS
1461
1461
  );
1462
1462
  return { createBulkNotifications, error, loading };
1463
1463
  };
1464
1464
  var useMarkNotificationRead = () => {
1465
- const [markNotificationRead, { loading, error }] = (0, import_react8.useMutation)(
1465
+ const [markNotificationRead, { loading, error }] = (0, import_client22.useMutation)(
1466
1466
  MARK_NOTIFICATION_READ,
1467
1467
  {
1468
1468
  refetchQueries: [
@@ -1478,7 +1478,7 @@ var useMarkNotificationRead = () => {
1478
1478
  return { error, loading, markNotificationRead };
1479
1479
  };
1480
1480
  var useMarkAllNotificationsRead = () => {
1481
- const [markAllNotificationsRead, { loading, error }] = (0, import_react8.useMutation)(
1481
+ const [markAllNotificationsRead, { loading, error }] = (0, import_client22.useMutation)(
1482
1482
  MARK_ALL_NOTIFICATIONS_READ,
1483
1483
  {
1484
1484
  refetchQueries: [
@@ -1494,7 +1494,7 @@ var useMarkAllNotificationsRead = () => {
1494
1494
  return { error, loading, markAllNotificationsRead };
1495
1495
  };
1496
1496
  var useDeleteNotification = () => {
1497
- const [deleteNotification, { loading, error }] = (0, import_react8.useMutation)(
1497
+ const [deleteNotification, { loading, error }] = (0, import_client22.useMutation)(
1498
1498
  DELETE_NOTIFICATION,
1499
1499
  {
1500
1500
  refetchQueries: [
@@ -1510,7 +1510,7 @@ var useDeleteNotification = () => {
1510
1510
  return { deleteNotification, error, loading };
1511
1511
  };
1512
1512
  var useDeleteAllNotifications = () => {
1513
- const [deleteAllNotifications, { loading, error }] = (0, import_react8.useMutation)(
1513
+ const [deleteAllNotifications, { loading, error }] = (0, import_client22.useMutation)(
1514
1514
  DELETE_ALL_NOTIFICATIONS,
1515
1515
  {
1516
1516
  refetchQueries: [
@@ -1527,9 +1527,9 @@ var useDeleteAllNotifications = () => {
1527
1527
  };
1528
1528
 
1529
1529
  // src/graphql/hooks/notifications/hooksQuery.ts
1530
- var import_react9 = require("@apollo/client/react");
1530
+ var import_client23 = require("@apollo/client");
1531
1531
  var useGetUserNotifications = (limit, offset) => {
1532
- const { data, loading, error, refetch } = (0, import_react9.useQuery)(GET_USER_NOTIFICATIONS, {
1532
+ const { data, loading, error, refetch } = (0, import_client23.useQuery)(GET_USER_NOTIFICATIONS, {
1533
1533
  fetchPolicy: "no-cache",
1534
1534
  variables: { limit, offset }
1535
1535
  });
@@ -1541,7 +1541,7 @@ var useGetUserNotifications = (limit, offset) => {
1541
1541
  };
1542
1542
  };
1543
1543
  var useGetNotificationCount = () => {
1544
- const { data, loading, error, refetch } = (0, import_react9.useQuery)(GET_NOTIFICATION_COUNT, {
1544
+ const { data, loading, error, refetch } = (0, import_client23.useQuery)(GET_NOTIFICATION_COUNT, {
1545
1545
  fetchPolicy: "no-cache"
1546
1546
  });
1547
1547
  return {
@@ -1553,11 +1553,11 @@ var useGetNotificationCount = () => {
1553
1553
  };
1554
1554
 
1555
1555
  // src/graphql/hooks/notifications/hooksSubscription.ts
1556
- var import_react10 = require("@apollo/client/react");
1556
+ var import_client25 = require("@apollo/client");
1557
1557
 
1558
1558
  // src/graphql/subscriptions/notification.ts
1559
- var import_client15 = require("@apollo/client");
1560
- var GET_NOTIFICATIONS_SUBSCRIPTION = import_client15.gql`
1559
+ var import_client24 = require("@apollo/client");
1560
+ var GET_NOTIFICATIONS_SUBSCRIPTION = import_client24.gql`
1561
1561
  subscription {
1562
1562
  getUserNotifications {
1563
1563
  ...NotificationFields
@@ -1565,7 +1565,7 @@ var GET_NOTIFICATIONS_SUBSCRIPTION = import_client15.gql`
1565
1565
  }
1566
1566
  ${NOTIFICATION_FRAGMENT}
1567
1567
  `;
1568
- var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client15.gql`
1568
+ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client24.gql`
1569
1569
  subscription {
1570
1570
  getNotificationCount {
1571
1571
  total
@@ -1576,7 +1576,7 @@ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client15.gql`
1576
1576
 
1577
1577
  // src/graphql/hooks/notifications/hooksSubscription.ts
1578
1578
  var useGetUserNotificationsSubscription = () => {
1579
- const { data, loading, error } = (0, import_react10.useSubscription)(GET_NOTIFICATIONS_SUBSCRIPTION, {
1579
+ const { data, loading, error } = (0, import_client25.useSubscription)(GET_NOTIFICATIONS_SUBSCRIPTION, {
1580
1580
  fetchPolicy: "no-cache",
1581
1581
  shouldResubscribe: true
1582
1582
  });
@@ -1587,7 +1587,7 @@ var useGetUserNotificationsSubscription = () => {
1587
1587
  };
1588
1588
  };
1589
1589
  var useGetNotificationCountSubscription = () => {
1590
- const { data, loading, error } = (0, import_react10.useSubscription)(GET_NOTIFICATION_COUNT_SUBSCRIPTION, {
1590
+ const { data, loading, error } = (0, import_client25.useSubscription)(GET_NOTIFICATION_COUNT_SUBSCRIPTION, {
1591
1591
  fetchPolicy: "no-cache",
1592
1592
  shouldResubscribe: true
1593
1593
  });
@@ -1599,11 +1599,11 @@ var useGetNotificationCountSubscription = () => {
1599
1599
  };
1600
1600
 
1601
1601
  // src/graphql/hooks/poster.ts
1602
- var import_react11 = require("@apollo/client/react");
1602
+ var import_client27 = require("@apollo/client");
1603
1603
 
1604
1604
  // src/graphql/mutations/poster.ts
1605
- var import_client16 = require("@apollo/client");
1606
- var CREATE_POSTER_MUTATION = import_client16.gql`
1605
+ var import_client26 = require("@apollo/client");
1606
+ var CREATE_POSTER_MUTATION = import_client26.gql`
1607
1607
  mutation createPoster($input: PosterInputType!) {
1608
1608
  createPoster(input: $input) {
1609
1609
  message
@@ -1617,7 +1617,7 @@ var CREATE_POSTER_MUTATION = import_client16.gql`
1617
1617
 
1618
1618
  // src/graphql/hooks/poster.ts
1619
1619
  var useCreatePoster = () => {
1620
- const [createPoster, { loading, error }] = (0, import_react11.useMutation)(
1620
+ const [createPoster, { loading, error }] = (0, import_client27.useMutation)(
1621
1621
  CREATE_POSTER_MUTATION,
1622
1622
  {
1623
1623
  refetchQueries: [{ query: GET_USER_EVENTS }, { query: GET_USER_VENDORS }]
@@ -1627,11 +1627,11 @@ var useCreatePoster = () => {
1627
1627
  };
1628
1628
 
1629
1629
  // src/graphql/hooks/pushToken.ts
1630
- var import_react12 = require("@apollo/client/react");
1630
+ var import_client29 = require("@apollo/client");
1631
1631
 
1632
1632
  // src/graphql/mutations/pushToken.ts
1633
- var import_client17 = require("@apollo/client");
1634
- var CREATE_PUSH_TOKEN_MUTATION = import_client17.gql`
1633
+ var import_client28 = require("@apollo/client");
1634
+ var CREATE_PUSH_TOKEN_MUTATION = import_client28.gql`
1635
1635
  mutation createPushToken($input: PushTokenInput!) {
1636
1636
  createPushToken(input: $input) {
1637
1637
  success
@@ -1641,21 +1641,21 @@ var CREATE_PUSH_TOKEN_MUTATION = import_client17.gql`
1641
1641
 
1642
1642
  // src/graphql/hooks/pushToken.ts
1643
1643
  var useCreatePushToken = () => {
1644
- const [createPushToken, { loading, error }] = (0, import_react12.useMutation)(
1644
+ const [createPushToken, { loading, error }] = (0, import_client29.useMutation)(
1645
1645
  CREATE_PUSH_TOKEN_MUTATION
1646
1646
  );
1647
1647
  return { createPushToken, error, loading };
1648
1648
  };
1649
1649
 
1650
1650
  // src/graphql/hooks/relation/hooksMutation.ts
1651
- var import_react13 = require("@apollo/client/react");
1651
+ var import_client32 = require("@apollo/client");
1652
1652
 
1653
1653
  // src/graphql/mutations/relation.ts
1654
- var import_client19 = require("@apollo/client");
1654
+ var import_client31 = require("@apollo/client");
1655
1655
 
1656
1656
  // src/graphql/queries/relation.ts
1657
- var import_client18 = require("@apollo/client");
1658
- var RELATION_FIELDS_FRAGMENT = import_client18.gql`
1657
+ var import_client30 = require("@apollo/client");
1658
+ var RELATION_FIELDS_FRAGMENT = import_client30.gql`
1659
1659
  fragment RelationFields on RelationType {
1660
1660
  _id
1661
1661
  active
@@ -1672,7 +1672,7 @@ var RELATION_FIELDS_FRAGMENT = import_client18.gql`
1672
1672
  }
1673
1673
  ${RELATION_DATES_FRAGMENT}
1674
1674
  `;
1675
- var GET_RELATION = import_client18.gql`
1675
+ var GET_RELATION = import_client30.gql`
1676
1676
  query getRelation($_id: ID!) {
1677
1677
  relation(_id: $_id) {
1678
1678
  ...RelationFields
@@ -1680,7 +1680,7 @@ var GET_RELATION = import_client18.gql`
1680
1680
  }
1681
1681
  ${RELATION_FIELDS_FRAGMENT}
1682
1682
  `;
1683
- var GET_RELATION_BY_EVENT_AND_VENDOR = import_client18.gql`
1683
+ var GET_RELATION_BY_EVENT_AND_VENDOR = import_client30.gql`
1684
1684
  query getRelationByEventAndVendor($eventId: ID!, $vendorId: ID!) {
1685
1685
  relationByEventAndVendor(eventId: $eventId, vendorId: $vendorId) {
1686
1686
  ...RelationFields
@@ -1688,7 +1688,7 @@ var GET_RELATION_BY_EVENT_AND_VENDOR = import_client18.gql`
1688
1688
  }
1689
1689
  ${RELATION_FIELDS_FRAGMENT}
1690
1690
  `;
1691
- var GET_EVENT_RELATIONS = import_client18.gql`
1691
+ var GET_EVENT_RELATIONS = import_client30.gql`
1692
1692
  query getEventRelations($eventId: ID!) {
1693
1693
  eventRelations(eventId: $eventId) {
1694
1694
  ...RelationFields
@@ -1696,7 +1696,7 @@ var GET_EVENT_RELATIONS = import_client18.gql`
1696
1696
  }
1697
1697
  ${RELATION_FIELDS_FRAGMENT}
1698
1698
  `;
1699
- var GET_VENDOR_RELATIONS = import_client18.gql`
1699
+ var GET_VENDOR_RELATIONS = import_client30.gql`
1700
1700
  query getVendorRelations($vendorId: ID!) {
1701
1701
  vendorRelations(vendorId: $vendorId) {
1702
1702
  ...RelationFields
@@ -1704,7 +1704,7 @@ var GET_VENDOR_RELATIONS = import_client18.gql`
1704
1704
  }
1705
1705
  ${RELATION_FIELDS_FRAGMENT}
1706
1706
  `;
1707
- var GET_RESOURCE_CONNECTIONS = import_client18.gql`
1707
+ var GET_RESOURCE_CONNECTIONS = import_client30.gql`
1708
1708
  query getResourceConnections(
1709
1709
  $resourceId: ID!
1710
1710
  $resourceType: ResourceTypeEnum!
@@ -1723,7 +1723,7 @@ var GET_RESOURCE_CONNECTIONS = import_client18.gql`
1723
1723
  `;
1724
1724
 
1725
1725
  // src/graphql/mutations/relation.ts
1726
- var CREATE_RELATION_MUTATION = import_client19.gql`
1726
+ var CREATE_RELATION_MUTATION = import_client31.gql`
1727
1727
  mutation createRelation($input: RelationInputType!) {
1728
1728
  createRelation(input: $input) {
1729
1729
  ...RelationFields
@@ -1731,7 +1731,7 @@ var CREATE_RELATION_MUTATION = import_client19.gql`
1731
1731
  }
1732
1732
  ${RELATION_FIELDS_FRAGMENT}
1733
1733
  `;
1734
- var UPDATE_RELATION_MUTATION = import_client19.gql`
1734
+ var UPDATE_RELATION_MUTATION = import_client31.gql`
1735
1735
  mutation updateRelation($_id: ID!, $input: RelationInputType!) {
1736
1736
  updateRelation(_id: $_id, input: $input) {
1737
1737
  ...RelationFields
@@ -1739,7 +1739,7 @@ var UPDATE_RELATION_MUTATION = import_client19.gql`
1739
1739
  }
1740
1740
  ${RELATION_FIELDS_FRAGMENT}
1741
1741
  `;
1742
- var DELETE_RELATION_MUTATION = import_client19.gql`
1742
+ var DELETE_RELATION_MUTATION = import_client31.gql`
1743
1743
  mutation deleteRelation($_id: ID!) {
1744
1744
  deleteRelation(_id: $_id) {
1745
1745
  ...RelationFields
@@ -1750,7 +1750,7 @@ var DELETE_RELATION_MUTATION = import_client19.gql`
1750
1750
 
1751
1751
  // src/graphql/hooks/relation/hooksMutation.ts
1752
1752
  var useCreateRelation = () => {
1753
- const [createRelation, { loading, error }] = (0, import_react13.useMutation)(CREATE_RELATION_MUTATION, {
1753
+ const [createRelation, { loading, error }] = (0, import_client32.useMutation)(CREATE_RELATION_MUTATION, {
1754
1754
  awaitRefetchQueries: true,
1755
1755
  refetchQueries: (mutationResult) => {
1756
1756
  const createRelation2 = mutationResult?.data?.createRelation;
@@ -1796,7 +1796,7 @@ var useCreateRelation = () => {
1796
1796
  return { createRelation, error, loading };
1797
1797
  };
1798
1798
  var useUpdateRelation = () => {
1799
- const [updateRelation, { loading, error }] = (0, import_react13.useMutation)(UPDATE_RELATION_MUTATION, {
1799
+ const [updateRelation, { loading, error }] = (0, import_client32.useMutation)(UPDATE_RELATION_MUTATION, {
1800
1800
  awaitRefetchQueries: true,
1801
1801
  refetchQueries: (mutationResult) => {
1802
1802
  const updateRelation2 = mutationResult?.data?.updateRelation;
@@ -1839,7 +1839,7 @@ var useUpdateRelation = () => {
1839
1839
  return { error, loading, updateRelation };
1840
1840
  };
1841
1841
  var useDeleteRelation = () => {
1842
- const [deleteRelation, { loading, error }] = (0, import_react13.useMutation)(DELETE_RELATION_MUTATION, {
1842
+ const [deleteRelation, { loading, error }] = (0, import_client32.useMutation)(DELETE_RELATION_MUTATION, {
1843
1843
  awaitRefetchQueries: true,
1844
1844
  refetchQueries: (mutationResult) => {
1845
1845
  const deleteRelation2 = mutationResult?.data?.deleteRelation;
@@ -1878,9 +1878,9 @@ var useDeleteRelation = () => {
1878
1878
  };
1879
1879
 
1880
1880
  // src/graphql/hooks/relation/hooksQuery.ts
1881
- var import_react14 = require("@apollo/client/react");
1881
+ var import_client33 = require("@apollo/client");
1882
1882
  var useGetRelation = (_id) => {
1883
- const { loading, error, data, refetch } = (0, import_react14.useQuery)(GET_RELATION, {
1883
+ const { loading, error, data, refetch } = (0, import_client33.useQuery)(GET_RELATION, {
1884
1884
  fetchPolicy: "network-only",
1885
1885
  skip: !_id,
1886
1886
  variables: { _id }
@@ -1889,7 +1889,7 @@ var useGetRelation = (_id) => {
1889
1889
  return { error, loading, refetch, relation };
1890
1890
  };
1891
1891
  var useGetRelationByEventAndVendor = (eventId, vendorId) => {
1892
- const { loading, error, data, refetch } = (0, import_react14.useQuery)(GET_RELATION_BY_EVENT_AND_VENDOR, {
1892
+ const { loading, error, data, refetch } = (0, import_client33.useQuery)(GET_RELATION_BY_EVENT_AND_VENDOR, {
1893
1893
  fetchPolicy: "network-only",
1894
1894
  skip: !eventId || !vendorId,
1895
1895
  variables: { eventId, vendorId }
@@ -1898,7 +1898,7 @@ var useGetRelationByEventAndVendor = (eventId, vendorId) => {
1898
1898
  return { error, loading, refetch, relationByEventAndVendor };
1899
1899
  };
1900
1900
  var useGetEventRelations = (eventId) => {
1901
- const { loading, error, data, refetch } = (0, import_react14.useQuery)(GET_EVENT_RELATIONS, {
1901
+ const { loading, error, data, refetch } = (0, import_client33.useQuery)(GET_EVENT_RELATIONS, {
1902
1902
  fetchPolicy: "network-only",
1903
1903
  skip: !eventId,
1904
1904
  variables: { eventId }
@@ -1907,7 +1907,7 @@ var useGetEventRelations = (eventId) => {
1907
1907
  return { error, eventRelations, loading, refetch };
1908
1908
  };
1909
1909
  var useGetVendorRelations = (vendorId) => {
1910
- const { loading, error, data, refetch } = (0, import_react14.useQuery)(GET_VENDOR_RELATIONS, {
1910
+ const { loading, error, data, refetch } = (0, import_client33.useQuery)(GET_VENDOR_RELATIONS, {
1911
1911
  fetchPolicy: "network-only",
1912
1912
  skip: !vendorId,
1913
1913
  variables: { vendorId }
@@ -1916,7 +1916,7 @@ var useGetVendorRelations = (vendorId) => {
1916
1916
  return { error, loading, refetch, vendorRelations };
1917
1917
  };
1918
1918
  var useGetResourceConnections = (resourceId, resourceType) => {
1919
- const { loading, error, data, refetch } = (0, import_react14.useQuery)(GET_RESOURCE_CONNECTIONS, {
1919
+ const { loading, error, data, refetch } = (0, import_client33.useQuery)(GET_RESOURCE_CONNECTIONS, {
1920
1920
  fetchPolicy: "network-only",
1921
1921
  variables: { resourceId, resourceType }
1922
1922
  });
@@ -1925,11 +1925,11 @@ var useGetResourceConnections = (resourceId, resourceType) => {
1925
1925
  };
1926
1926
 
1927
1927
  // src/graphql/hooks/vendor/hooksMutation.ts
1928
- var import_react15 = require("@apollo/client/react");
1928
+ var import_client35 = require("@apollo/client");
1929
1929
 
1930
1930
  // src/graphql/mutations/vendor.ts
1931
- var import_client20 = require("@apollo/client");
1932
- var CREATE_VENDOR_MUTATION = import_client20.gql`
1931
+ var import_client34 = require("@apollo/client");
1932
+ var CREATE_VENDOR_MUTATION = import_client34.gql`
1933
1933
  mutation createVendor($input: VendorInputType!) {
1934
1934
  createVendor(input: $input) {
1935
1935
  ...VendorFields
@@ -1937,7 +1937,7 @@ var CREATE_VENDOR_MUTATION = import_client20.gql`
1937
1937
  }
1938
1938
  ${VENDOR}
1939
1939
  `;
1940
- var UPDATE_VENDOR_MUTATION = import_client20.gql`
1940
+ var UPDATE_VENDOR_MUTATION = import_client34.gql`
1941
1941
  mutation updateVendor($_id: ID!, $input: VendorInputType!) {
1942
1942
  updateVendor(_id: $_id, input: $input) {
1943
1943
  ...VendorFields
@@ -1945,12 +1945,12 @@ var UPDATE_VENDOR_MUTATION = import_client20.gql`
1945
1945
  }
1946
1946
  ${VENDOR}
1947
1947
  `;
1948
- var DELETE_VENDOR_MUTATION = import_client20.gql`
1948
+ var DELETE_VENDOR_MUTATION = import_client34.gql`
1949
1949
  mutation deleteVendor($_id: ID!) {
1950
1950
  deleteVendor(_id: $_id)
1951
1951
  }
1952
1952
  `;
1953
- var CREATE_VENDOR_INFO_MUTATION = import_client20.gql`
1953
+ var CREATE_VENDOR_INFO_MUTATION = import_client34.gql`
1954
1954
  mutation createVendorInfo($input: VendorInfoInputType!) {
1955
1955
  createVendorInfo(input: $input) {
1956
1956
  ...VendorInfoFields
@@ -1958,7 +1958,7 @@ var CREATE_VENDOR_INFO_MUTATION = import_client20.gql`
1958
1958
  }
1959
1959
  ${VENDOR_INFO}
1960
1960
  `;
1961
- var UPDATE_VENDOR_INFO_MUTATION = import_client20.gql`
1961
+ var UPDATE_VENDOR_INFO_MUTATION = import_client34.gql`
1962
1962
  mutation updateVendorInfo($_id: ID!, $input: VendorInfoInputType!) {
1963
1963
  updateVendorInfo(_id: $_id, input: $input) {
1964
1964
  ...VendorInfoFields
@@ -1969,7 +1969,7 @@ var UPDATE_VENDOR_INFO_MUTATION = import_client20.gql`
1969
1969
 
1970
1970
  // src/graphql/hooks/vendor/hooksMutation.ts
1971
1971
  var useCreateVendor = () => {
1972
- const [createVendor, { loading, error }] = (0, import_react15.useMutation)(
1972
+ const [createVendor, { loading, error }] = (0, import_client35.useMutation)(
1973
1973
  CREATE_VENDOR_MUTATION,
1974
1974
  {
1975
1975
  awaitRefetchQueries: true,
@@ -1979,7 +1979,7 @@ var useCreateVendor = () => {
1979
1979
  return { createVendor, error, loading };
1980
1980
  };
1981
1981
  var useUpdateVendor = () => {
1982
- const [updateVendor, { loading, error }] = (0, import_react15.useMutation)(
1982
+ const [updateVendor, { loading, error }] = (0, import_client35.useMutation)(
1983
1983
  UPDATE_VENDOR_MUTATION,
1984
1984
  {
1985
1985
  awaitRefetchQueries: true,
@@ -1989,7 +1989,7 @@ var useUpdateVendor = () => {
1989
1989
  return { error, loading, updateVendor };
1990
1990
  };
1991
1991
  var useDeleteVendor = () => {
1992
- const [deleteVendor, { loading, error }] = (0, import_react15.useMutation)(
1992
+ const [deleteVendor, { loading, error }] = (0, import_client35.useMutation)(
1993
1993
  DELETE_VENDOR_MUTATION,
1994
1994
  {
1995
1995
  awaitRefetchQueries: true,
@@ -1999,7 +1999,7 @@ var useDeleteVendor = () => {
1999
1999
  return { deleteVendor, error, loading };
2000
2000
  };
2001
2001
  var useCreateVendorInfo = () => {
2002
- const [createVendorInfo, { loading, error }] = (0, import_react15.useMutation)(CREATE_VENDOR_INFO_MUTATION, {
2002
+ const [createVendorInfo, { loading, error }] = (0, import_client35.useMutation)(CREATE_VENDOR_INFO_MUTATION, {
2003
2003
  awaitRefetchQueries: true,
2004
2004
  refetchQueries: (mutationResult) => {
2005
2005
  const vendorId = mutationResult?.data?.createVendorInfo?.vendorId;
@@ -2023,7 +2023,7 @@ var useCreateVendorInfo = () => {
2023
2023
  return { createVendorInfo, error, loading };
2024
2024
  };
2025
2025
  var useUpdateVendorInfo = () => {
2026
- const [updateVendorInfo, { loading, error }] = (0, import_react15.useMutation)(UPDATE_VENDOR_INFO_MUTATION, {
2026
+ const [updateVendorInfo, { loading, error }] = (0, import_client35.useMutation)(UPDATE_VENDOR_INFO_MUTATION, {
2027
2027
  awaitRefetchQueries: true,
2028
2028
  refetchQueries: (mutationResult) => {
2029
2029
  const vendorId = mutationResult?.data?.updateVendorInfo?.vendorId;
@@ -2041,9 +2041,9 @@ var useUpdateVendorInfo = () => {
2041
2041
  };
2042
2042
 
2043
2043
  // src/graphql/hooks/vendor/hooksQuery.ts
2044
- var import_react16 = require("@apollo/client/react");
2044
+ var import_client36 = require("@apollo/client");
2045
2045
  var useGetVendors = () => {
2046
- const { loading, error, data, refetch } = (0, import_react16.useQuery)(
2046
+ const { loading, error, data, refetch } = (0, import_client36.useQuery)(
2047
2047
  GET_VENDORS,
2048
2048
  {
2049
2049
  fetchPolicy: "network-only"
@@ -2058,7 +2058,7 @@ var useGetVendors = () => {
2058
2058
  };
2059
2059
  };
2060
2060
  var useGetVendor = (_id) => {
2061
- const { loading, error, data, refetch } = (0, import_react16.useQuery)(
2061
+ const { loading, error, data, refetch } = (0, import_client36.useQuery)(
2062
2062
  GET_VENDOR,
2063
2063
  {
2064
2064
  fetchPolicy: "network-only",
@@ -2070,7 +2070,7 @@ var useGetVendor = (_id) => {
2070
2070
  return { error, loading, refetch, vendor };
2071
2071
  };
2072
2072
  var useGetVendorsByRegion = (region) => {
2073
- const { loading, error, data, refetch } = (0, import_react16.useQuery)(GET_VENDORS_BY_REGION, {
2073
+ const { loading, error, data, refetch } = (0, import_client36.useQuery)(GET_VENDORS_BY_REGION, {
2074
2074
  fetchPolicy: "no-cache",
2075
2075
  skip: !region,
2076
2076
  variables: { region }
@@ -2079,7 +2079,7 @@ var useGetVendorsByRegion = (region) => {
2079
2079
  return { error, loading, refetch, vendorsByRegion };
2080
2080
  };
2081
2081
  var useSearchVendors = (search, region) => {
2082
- const { loading, error, data, refetch } = (0, import_react16.useQuery)(SEARCH_VENDORS, {
2082
+ const { loading, error, data, refetch } = (0, import_client36.useQuery)(SEARCH_VENDORS, {
2083
2083
  fetchPolicy: "network-only",
2084
2084
  skip: search.length < 3,
2085
2085
  variables: { region, search }
@@ -2088,7 +2088,7 @@ var useSearchVendors = (search, region) => {
2088
2088
  return { error, loading, refetch, vendorSearch };
2089
2089
  };
2090
2090
  var useGetVendorInfo = (vendorId) => {
2091
- const { loading, error, data, refetch } = (0, import_react16.useQuery)(GET_VENDOR_INFO, {
2091
+ const { loading, error, data, refetch } = (0, import_client36.useQuery)(GET_VENDOR_INFO, {
2092
2092
  fetchPolicy: "network-only",
2093
2093
  skip: !vendorId,
2094
2094
  variables: { vendorId }
@@ -2103,14 +2103,14 @@ var useGetVendorInfo = (vendorId) => {
2103
2103
  };
2104
2104
 
2105
2105
  // src/graphql/hooks/tester/hooksMutation.ts
2106
- var import_react17 = require("@apollo/client/react");
2106
+ var import_client39 = require("@apollo/client");
2107
2107
 
2108
2108
  // src/graphql/mutations/tester.ts
2109
- var import_client22 = require("@apollo/client");
2109
+ var import_client38 = require("@apollo/client");
2110
2110
 
2111
2111
  // src/graphql/queries/tester.ts
2112
- var import_client21 = require("@apollo/client");
2113
- var TESTER_FIELDS_FRAGMENT = import_client21.gql`
2112
+ var import_client37 = require("@apollo/client");
2113
+ var TESTER_FIELDS_FRAGMENT = import_client37.gql`
2114
2114
  fragment TesterFields on TesterType {
2115
2115
  _id
2116
2116
  active
@@ -2130,7 +2130,7 @@ var TESTER_FIELDS_FRAGMENT = import_client21.gql`
2130
2130
  }
2131
2131
  ${CATEGORY_FIELDS_FRAGMENT}
2132
2132
  `;
2133
- var GET_TESTERS = import_client21.gql`
2133
+ var GET_TESTERS = import_client37.gql`
2134
2134
  query getTesters {
2135
2135
  testers {
2136
2136
  ...TesterFields
@@ -2138,7 +2138,7 @@ var GET_TESTERS = import_client21.gql`
2138
2138
  }
2139
2139
  ${TESTER_FIELDS_FRAGMENT}
2140
2140
  `;
2141
- var GET_TESTER = import_client21.gql`
2141
+ var GET_TESTER = import_client37.gql`
2142
2142
  query getTester($_id: ID!) {
2143
2143
  tester(_id: $_id) {
2144
2144
  ...TesterFields
@@ -2148,7 +2148,7 @@ var GET_TESTER = import_client21.gql`
2148
2148
  `;
2149
2149
 
2150
2150
  // src/graphql/mutations/tester.ts
2151
- var CREATE_TESTER_MUTATION = import_client22.gql`
2151
+ var CREATE_TESTER_MUTATION = import_client38.gql`
2152
2152
  mutation createTester($input: TesterInputType!) {
2153
2153
  createTester(input: $input) {
2154
2154
  ...TesterFields
@@ -2156,7 +2156,7 @@ var CREATE_TESTER_MUTATION = import_client22.gql`
2156
2156
  }
2157
2157
  ${TESTER_FIELDS_FRAGMENT}
2158
2158
  `;
2159
- var UPDATE_TESTER_MUTATION = import_client22.gql`
2159
+ var UPDATE_TESTER_MUTATION = import_client38.gql`
2160
2160
  mutation updateTester($_id: ID!, $input: TesterInputType!) {
2161
2161
  updateTester(_id: $_id, input: $input) {
2162
2162
  ...TesterFields
@@ -2164,7 +2164,7 @@ var UPDATE_TESTER_MUTATION = import_client22.gql`
2164
2164
  }
2165
2165
  ${TESTER_FIELDS_FRAGMENT}
2166
2166
  `;
2167
- var DELETE_TESTER_MUTATION = import_client22.gql`
2167
+ var DELETE_TESTER_MUTATION = import_client38.gql`
2168
2168
  mutation deleteTester($_id: ID!) {
2169
2169
  deleteTester(_id: $_id)
2170
2170
  }
@@ -2172,7 +2172,7 @@ var DELETE_TESTER_MUTATION = import_client22.gql`
2172
2172
 
2173
2173
  // src/graphql/hooks/tester/hooksMutation.ts
2174
2174
  var useCreateTester = () => {
2175
- const [createTester, { data, loading, error }] = (0, import_react17.useMutation)(
2175
+ const [createTester, { data, loading, error }] = (0, import_client39.useMutation)(
2176
2176
  CREATE_TESTER_MUTATION
2177
2177
  );
2178
2178
  return {
@@ -2183,7 +2183,7 @@ var useCreateTester = () => {
2183
2183
  };
2184
2184
  };
2185
2185
  var useUpdateTester = () => {
2186
- const [updateTester, { data, loading, error }] = (0, import_react17.useMutation)(
2186
+ const [updateTester, { data, loading, error }] = (0, import_client39.useMutation)(
2187
2187
  UPDATE_TESTER_MUTATION
2188
2188
  );
2189
2189
  return {
@@ -2194,16 +2194,16 @@ var useUpdateTester = () => {
2194
2194
  };
2195
2195
  };
2196
2196
  var useDeleteTester = () => {
2197
- const [deleteTester, { loading, error }] = (0, import_react17.useMutation)(
2197
+ const [deleteTester, { loading, error }] = (0, import_client39.useMutation)(
2198
2198
  DELETE_TESTER_MUTATION
2199
2199
  );
2200
2200
  return { deleteTester, error, loading };
2201
2201
  };
2202
2202
 
2203
2203
  // src/graphql/hooks/tester/hooksQuery.ts
2204
- var import_react18 = require("@apollo/client/react");
2204
+ var import_client40 = require("@apollo/client");
2205
2205
  var useGetTesters = () => {
2206
- const { data, loading, error, refetch } = (0, import_react18.useQuery)(
2206
+ const { data, loading, error, refetch } = (0, import_client40.useQuery)(
2207
2207
  GET_TESTERS
2208
2208
  );
2209
2209
  const testers = data?.testers || [];
@@ -2215,7 +2215,7 @@ var useGetTesters = () => {
2215
2215
  };
2216
2216
  };
2217
2217
  var useGetTester = (_id) => {
2218
- const { data, loading, error, refetch } = (0, import_react18.useQuery)(
2218
+ const { data, loading, error, refetch } = (0, import_client40.useQuery)(
2219
2219
  GET_TESTER,
2220
2220
  {
2221
2221
  skip: !_id,
@@ -2227,11 +2227,11 @@ var useGetTester = (_id) => {
2227
2227
  };
2228
2228
 
2229
2229
  // src/graphql/hooks/user/hooksMutation.ts
2230
- var import_react19 = require("@apollo/client/react");
2230
+ var import_client42 = require("@apollo/client");
2231
2231
 
2232
2232
  // src/graphql/mutations/user.ts
2233
- var import_client23 = require("@apollo/client");
2234
- var CREATE_USER_MUTATION = import_client23.gql`
2233
+ var import_client41 = require("@apollo/client");
2234
+ var CREATE_USER_MUTATION = import_client41.gql`
2235
2235
  mutation createUser($input: UserInputType!) {
2236
2236
  createUser(input: $input) {
2237
2237
  ...UserFields
@@ -2239,7 +2239,7 @@ var CREATE_USER_MUTATION = import_client23.gql`
2239
2239
  }
2240
2240
  ${USER_FIELDS_FRAGMENT}
2241
2241
  `;
2242
- var UPDATE_USER_MUTATION = import_client23.gql`
2242
+ var UPDATE_USER_MUTATION = import_client41.gql`
2243
2243
  mutation updateUser($_id: ID!, $input: UserInputType!) {
2244
2244
  updateUser(_id: $_id, input: $input) {
2245
2245
  ...UserFields
@@ -2247,12 +2247,12 @@ var UPDATE_USER_MUTATION = import_client23.gql`
2247
2247
  }
2248
2248
  ${USER_FIELDS_FRAGMENT}
2249
2249
  `;
2250
- var DELETE_USER_MUTATION = import_client23.gql`
2250
+ var DELETE_USER_MUTATION = import_client41.gql`
2251
2251
  mutation deleteUser($email: String!) {
2252
2252
  deleteUser(email: $email)
2253
2253
  }
2254
2254
  `;
2255
- var ADD_USER_FAVOURITE_RESOURCE_MUTATION = import_client23.gql`
2255
+ var ADD_USER_FAVOURITE_RESOURCE_MUTATION = import_client41.gql`
2256
2256
  mutation addUserFavouriteResource(
2257
2257
  $resourceId: ID!
2258
2258
  $resourceType: ResourceTypeEnum!
@@ -2266,7 +2266,7 @@ var ADD_USER_FAVOURITE_RESOURCE_MUTATION = import_client23.gql`
2266
2266
  }
2267
2267
  ${USER_FIELDS_FRAGMENT}
2268
2268
  `;
2269
- var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = import_client23.gql`
2269
+ var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = import_client41.gql`
2270
2270
  mutation removeUserFavouriteResource(
2271
2271
  $resourceId: ID!
2272
2272
  $resourceType: ResourceTypeEnum!
@@ -2280,7 +2280,7 @@ var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = import_client23.gql`
2280
2280
  }
2281
2281
  ${USER_FIELDS_FRAGMENT}
2282
2282
  `;
2283
- var SELECT_PACKAGE_MUTATION = import_client23.gql`
2283
+ var SELECT_PACKAGE_MUTATION = import_client41.gql`
2284
2284
  mutation selectPackage(
2285
2285
  $selectedLicence: LicencesEnumType!
2286
2286
  $removedLicence: LicencesEnumType
@@ -2297,7 +2297,7 @@ var SELECT_PACKAGE_MUTATION = import_client23.gql`
2297
2297
  }
2298
2298
  ${LICENCE_FIELDS_FRAGMENT}
2299
2299
  `;
2300
- var ADD_USER_INTEREST_RESOURCE_MUTATION = import_client23.gql`
2300
+ var ADD_USER_INTEREST_RESOURCE_MUTATION = import_client41.gql`
2301
2301
  mutation addUserInterestResource($input: UserActivityInputType!) {
2302
2302
  addUserInterestResource(input: $input) {
2303
2303
  ...UserFields
@@ -2305,7 +2305,7 @@ var ADD_USER_INTEREST_RESOURCE_MUTATION = import_client23.gql`
2305
2305
  }
2306
2306
  ${USER_FIELDS_FRAGMENT}
2307
2307
  `;
2308
- var REMOVE_USER_INTEREST_RESOURCE_MUTATION = import_client23.gql`
2308
+ var REMOVE_USER_INTEREST_RESOURCE_MUTATION = import_client41.gql`
2309
2309
  mutation removeUserInterestResource($input: UserActivityInputType!) {
2310
2310
  removeUserInterestResource(input: $input) {
2311
2311
  ...UserFields
@@ -2313,7 +2313,7 @@ var REMOVE_USER_INTEREST_RESOURCE_MUTATION = import_client23.gql`
2313
2313
  }
2314
2314
  ${USER_FIELDS_FRAGMENT}
2315
2315
  `;
2316
- var ADD_USER_GOING_RESOURCE_MUTATION = import_client23.gql`
2316
+ var ADD_USER_GOING_RESOURCE_MUTATION = import_client41.gql`
2317
2317
  mutation addUserGoingResource($input: UserActivityInputType!) {
2318
2318
  addUserGoingResource(input: $input) {
2319
2319
  ...UserFields
@@ -2321,7 +2321,7 @@ var ADD_USER_GOING_RESOURCE_MUTATION = import_client23.gql`
2321
2321
  }
2322
2322
  ${USER_FIELDS_FRAGMENT}
2323
2323
  `;
2324
- var REMOVE_USER_GOING_RESOURCE_MUTATION = import_client23.gql`
2324
+ var REMOVE_USER_GOING_RESOURCE_MUTATION = import_client41.gql`
2325
2325
  mutation removeUserGoingResource($input: UserActivityInputType!) {
2326
2326
  removeUserGoingResource(input: $input) {
2327
2327
  ...UserFields
@@ -2329,7 +2329,7 @@ var REMOVE_USER_GOING_RESOURCE_MUTATION = import_client23.gql`
2329
2329
  }
2330
2330
  ${USER_FIELDS_FRAGMENT}
2331
2331
  `;
2332
- var ADD_USER_PRESENT_RESOURCE_MUTATION = import_client23.gql`
2332
+ var ADD_USER_PRESENT_RESOURCE_MUTATION = import_client41.gql`
2333
2333
  mutation addUserPresentResource($input: UserActivityInputType!) {
2334
2334
  addUserPresentResource(input: $input) {
2335
2335
  ...UserFields
@@ -2337,7 +2337,7 @@ var ADD_USER_PRESENT_RESOURCE_MUTATION = import_client23.gql`
2337
2337
  }
2338
2338
  ${USER_FIELDS_FRAGMENT}
2339
2339
  `;
2340
- var REMOVE_USER_PRESENT_RESOURCE_MUTATION = import_client23.gql`
2340
+ var REMOVE_USER_PRESENT_RESOURCE_MUTATION = import_client41.gql`
2341
2341
  mutation removeUserPresentResource($input: UserActivityInputType!) {
2342
2342
  removeUserPresentResource(input: $input) {
2343
2343
  ...UserFields
@@ -2348,11 +2348,11 @@ var REMOVE_USER_PRESENT_RESOURCE_MUTATION = import_client23.gql`
2348
2348
 
2349
2349
  // src/graphql/hooks/user/hooksMutation.ts
2350
2350
  var useCreateUser = () => {
2351
- const [createUser, { loading, error }] = (0, import_react19.useMutation)(CREATE_USER_MUTATION);
2351
+ const [createUser, { loading, error }] = (0, import_client42.useMutation)(CREATE_USER_MUTATION);
2352
2352
  return { createUser, error, loading };
2353
2353
  };
2354
2354
  var useUpdateUser = () => {
2355
- const [updateUser, { loading, error }] = (0, import_react19.useMutation)(UPDATE_USER_MUTATION, {
2355
+ const [updateUser, { loading, error }] = (0, import_client42.useMutation)(UPDATE_USER_MUTATION, {
2356
2356
  awaitRefetchQueries: true,
2357
2357
  refetchQueries: (mutationResult) => {
2358
2358
  const userId = mutationResult?.data?.updateUser?._id;
@@ -2363,11 +2363,11 @@ var useUpdateUser = () => {
2363
2363
  return { error, loading, updateUser };
2364
2364
  };
2365
2365
  var useDeleteUser = () => {
2366
- const [deleteUser, { loading, error }] = (0, import_react19.useMutation)(DELETE_USER_MUTATION);
2366
+ const [deleteUser, { loading, error }] = (0, import_client42.useMutation)(DELETE_USER_MUTATION);
2367
2367
  return { deleteUser, error, loading };
2368
2368
  };
2369
2369
  var useAddUserFavouriteResource = () => {
2370
- const [addUserFavouriteResource, { loading, error }] = (0, import_react19.useMutation)(
2370
+ const [addUserFavouriteResource, { loading, error }] = (0, import_client42.useMutation)(
2371
2371
  ADD_USER_FAVOURITE_RESOURCE_MUTATION,
2372
2372
  {
2373
2373
  awaitRefetchQueries: true,
@@ -2377,7 +2377,7 @@ var useAddUserFavouriteResource = () => {
2377
2377
  return { addUserFavouriteResource, error, loading };
2378
2378
  };
2379
2379
  var useRemoveUserFavouriteResource = () => {
2380
- const [removeUserFavouriteResource, { loading, error }] = (0, import_react19.useMutation)(
2380
+ const [removeUserFavouriteResource, { loading, error }] = (0, import_client42.useMutation)(
2381
2381
  REMOVE_USER_FAVOURITE_RESOURCE_MUTATION,
2382
2382
  {
2383
2383
  awaitRefetchQueries: true,
@@ -2387,7 +2387,7 @@ var useRemoveUserFavouriteResource = () => {
2387
2387
  return { error, loading, removeUserFavouriteResource };
2388
2388
  };
2389
2389
  var useSelectPackage = () => {
2390
- const [selectPackage, { loading, error }] = (0, import_react19.useMutation)(SELECT_PACKAGE_MUTATION, {
2390
+ const [selectPackage, { loading, error }] = (0, import_client42.useMutation)(SELECT_PACKAGE_MUTATION, {
2391
2391
  awaitRefetchQueries: true,
2392
2392
  refetchQueries: (mutationResult) => {
2393
2393
  const userId = mutationResult?.data?.selectPackage?.userId;
@@ -2402,7 +2402,7 @@ var useSelectPackage = () => {
2402
2402
  return { error, loading, selectPackage };
2403
2403
  };
2404
2404
  var useAddUserInterestResource = () => {
2405
- const [addUserInterestResource, { loading, error }] = (0, import_react19.useMutation)(
2405
+ const [addUserInterestResource, { loading, error }] = (0, import_client42.useMutation)(
2406
2406
  ADD_USER_INTEREST_RESOURCE_MUTATION,
2407
2407
  {
2408
2408
  awaitRefetchQueries: true,
@@ -2412,7 +2412,7 @@ var useAddUserInterestResource = () => {
2412
2412
  return { addUserInterestResource, error, loading };
2413
2413
  };
2414
2414
  var useRemoveUserInterestResource = () => {
2415
- const [removeUserInterestResource, { loading, error }] = (0, import_react19.useMutation)(
2415
+ const [removeUserInterestResource, { loading, error }] = (0, import_client42.useMutation)(
2416
2416
  REMOVE_USER_INTEREST_RESOURCE_MUTATION,
2417
2417
  {
2418
2418
  awaitRefetchQueries: true,
@@ -2422,7 +2422,7 @@ var useRemoveUserInterestResource = () => {
2422
2422
  return { error, loading, removeUserInterestResource };
2423
2423
  };
2424
2424
  var useAddUserGoingResource = () => {
2425
- const [addUserGoingResource, { loading, error }] = (0, import_react19.useMutation)(
2425
+ const [addUserGoingResource, { loading, error }] = (0, import_client42.useMutation)(
2426
2426
  ADD_USER_GOING_RESOURCE_MUTATION,
2427
2427
  {
2428
2428
  awaitRefetchQueries: true,
@@ -2432,7 +2432,7 @@ var useAddUserGoingResource = () => {
2432
2432
  return { addUserGoingResource, error, loading };
2433
2433
  };
2434
2434
  var useRemoveUserGoingResource = () => {
2435
- const [removeUserGoingResource, { loading, error }] = (0, import_react19.useMutation)(
2435
+ const [removeUserGoingResource, { loading, error }] = (0, import_client42.useMutation)(
2436
2436
  REMOVE_USER_GOING_RESOURCE_MUTATION,
2437
2437
  {
2438
2438
  awaitRefetchQueries: true,
@@ -2442,7 +2442,7 @@ var useRemoveUserGoingResource = () => {
2442
2442
  return { error, loading, removeUserGoingResource };
2443
2443
  };
2444
2444
  var useAddUserPresentResource = () => {
2445
- const [addUserPresentResource, { loading, error }] = (0, import_react19.useMutation)(
2445
+ const [addUserPresentResource, { loading, error }] = (0, import_client42.useMutation)(
2446
2446
  ADD_USER_PRESENT_RESOURCE_MUTATION,
2447
2447
  {
2448
2448
  awaitRefetchQueries: true,
@@ -2452,7 +2452,7 @@ var useAddUserPresentResource = () => {
2452
2452
  return { addUserPresentResource, error, loading };
2453
2453
  };
2454
2454
  var useRemoveUserPresentResource = () => {
2455
- const [removeUserPresentResource, { loading, error }] = (0, import_react19.useMutation)(
2455
+ const [removeUserPresentResource, { loading, error }] = (0, import_client42.useMutation)(
2456
2456
  REMOVE_USER_PRESENT_RESOURCE_MUTATION,
2457
2457
  {
2458
2458
  awaitRefetchQueries: true,
@@ -2463,9 +2463,9 @@ var useRemoveUserPresentResource = () => {
2463
2463
  };
2464
2464
 
2465
2465
  // src/graphql/hooks/user/hooksQuery.ts
2466
- var import_react20 = require("@apollo/client/react");
2466
+ var import_client43 = require("@apollo/client");
2467
2467
  var useGetUsers = () => {
2468
- const { loading, error, data, refetch } = (0, import_react20.useQuery)(
2468
+ const { loading, error, data, refetch } = (0, import_client43.useQuery)(
2469
2469
  GET_USERS,
2470
2470
  {
2471
2471
  fetchPolicy: "network-only"
@@ -2475,7 +2475,7 @@ var useGetUsers = () => {
2475
2475
  return { error, loading, refetch, users };
2476
2476
  };
2477
2477
  var useGetUser = (_id) => {
2478
- const { loading, error, data, refetch } = (0, import_react20.useQuery)(
2478
+ const { loading, error, data, refetch } = (0, import_client43.useQuery)(
2479
2479
  GET_USER,
2480
2480
  {
2481
2481
  variables: { _id }
@@ -2485,21 +2485,21 @@ var useGetUser = (_id) => {
2485
2485
  return { error, loading, refetch, user };
2486
2486
  };
2487
2487
  var useGetUserEvents = () => {
2488
- const { loading, error, data, refetch } = (0, import_react20.useQuery)(GET_USER_EVENTS, {
2488
+ const { loading, error, data, refetch } = (0, import_client43.useQuery)(GET_USER_EVENTS, {
2489
2489
  fetchPolicy: "network-only"
2490
2490
  });
2491
2491
  const userEvents = data?.userEvents || [];
2492
2492
  return { error, loading, refetch, userEvents };
2493
2493
  };
2494
2494
  var useGetUserVendors = () => {
2495
- const { loading, error, data, refetch } = (0, import_react20.useQuery)(GET_USER_VENDORS, {
2495
+ const { loading, error, data, refetch } = (0, import_client43.useQuery)(GET_USER_VENDORS, {
2496
2496
  fetchPolicy: "network-only"
2497
2497
  });
2498
2498
  const userVendors = data?.userVendors || [];
2499
2499
  return { error, loading, refetch, userVendors };
2500
2500
  };
2501
2501
  var useGetUserActivities = () => {
2502
- const { loading, error, data, refetch } = (0, import_react20.useQuery)(GET_USER_ACTIVITIES, {
2502
+ const { loading, error, data, refetch } = (0, import_client43.useQuery)(GET_USER_ACTIVITIES, {
2503
2503
  fetchPolicy: "network-only"
2504
2504
  });
2505
2505
  const userActivities = {
@@ -2521,14 +2521,14 @@ var useGetUserActivities = () => {
2521
2521
  };
2522
2522
 
2523
2523
  // src/graphql/hooks/ad/hooksMutation.ts
2524
- var import_react21 = require("@apollo/client/react");
2524
+ var import_client46 = require("@apollo/client");
2525
2525
 
2526
2526
  // src/graphql/mutations/ad.ts
2527
- var import_client25 = require("@apollo/client");
2527
+ var import_client45 = require("@apollo/client");
2528
2528
 
2529
2529
  // src/graphql/queries/ad.ts
2530
- var import_client24 = require("@apollo/client");
2531
- var AD_FIELDS_FRAGMENT = import_client24.gql`
2530
+ var import_client44 = require("@apollo/client");
2531
+ var AD_FIELDS_FRAGMENT = import_client44.gql`
2532
2532
  fragment AdFields on AdType {
2533
2533
  _id
2534
2534
  active
@@ -2556,7 +2556,7 @@ var AD_FIELDS_FRAGMENT = import_client24.gql`
2556
2556
  }
2557
2557
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
2558
2558
  `;
2559
- var GET_ADS = import_client24.gql`
2559
+ var GET_ADS = import_client44.gql`
2560
2560
  query getAds {
2561
2561
  ads {
2562
2562
  ...AdFields
@@ -2564,7 +2564,7 @@ var GET_ADS = import_client24.gql`
2564
2564
  }
2565
2565
  ${AD_FIELDS_FRAGMENT}
2566
2566
  `;
2567
- var GET_AD = import_client24.gql`
2567
+ var GET_AD = import_client44.gql`
2568
2568
  query getAd($_id: ID!) {
2569
2569
  ad(_id: $_id) {
2570
2570
  ...AdFields
@@ -2572,7 +2572,7 @@ var GET_AD = import_client24.gql`
2572
2572
  }
2573
2573
  ${AD_FIELDS_FRAGMENT}
2574
2574
  `;
2575
- var GET_ADS_BY_REGION = import_client24.gql`
2575
+ var GET_ADS_BY_REGION = import_client44.gql`
2576
2576
  query getAdsByRegion($region: String!, $status: AdStatusTypeEnum) {
2577
2577
  adsByRegion(region: $region, status: $status) {
2578
2578
  ...AdFields
@@ -2582,7 +2582,7 @@ var GET_ADS_BY_REGION = import_client24.gql`
2582
2582
  `;
2583
2583
 
2584
2584
  // src/graphql/mutations/ad.ts
2585
- var CREATE_AD_MUTATION = import_client25.gql`
2585
+ var CREATE_AD_MUTATION = import_client45.gql`
2586
2586
  mutation createAd($input: AdInputType!) {
2587
2587
  createAd(input: $input) {
2588
2588
  ...AdFields
@@ -2590,7 +2590,7 @@ var CREATE_AD_MUTATION = import_client25.gql`
2590
2590
  }
2591
2591
  ${AD_FIELDS_FRAGMENT}
2592
2592
  `;
2593
- var UPDATE_AD_MUTATION = import_client25.gql`
2593
+ var UPDATE_AD_MUTATION = import_client45.gql`
2594
2594
  mutation updateAd($_id: ID!, $input: AdInputType!) {
2595
2595
  updateAd(_id: $_id, input: $input) {
2596
2596
  ...AdFields
@@ -2598,7 +2598,7 @@ var UPDATE_AD_MUTATION = import_client25.gql`
2598
2598
  }
2599
2599
  ${AD_FIELDS_FRAGMENT}
2600
2600
  `;
2601
- var DELETE_AD_MUTATION = import_client25.gql`
2601
+ var DELETE_AD_MUTATION = import_client45.gql`
2602
2602
  mutation deleteAd($_id: ID!) {
2603
2603
  deleteAd(_id: $_id)
2604
2604
  }
@@ -2606,7 +2606,7 @@ var DELETE_AD_MUTATION = import_client25.gql`
2606
2606
 
2607
2607
  // src/graphql/hooks/ad/hooksMutation.ts
2608
2608
  var useCreateAd = () => {
2609
- const [createAd, { loading, error }] = (0, import_react21.useMutation)(CREATE_AD_MUTATION, {
2609
+ const [createAd, { loading, error }] = (0, import_client46.useMutation)(CREATE_AD_MUTATION, {
2610
2610
  awaitRefetchQueries: true,
2611
2611
  refetchQueries: [{ query: GET_ADS }]
2612
2612
  });
@@ -2617,7 +2617,7 @@ var useCreateAd = () => {
2617
2617
  };
2618
2618
  };
2619
2619
  var useUpdateAd = () => {
2620
- const [updateAd, { loading, error }] = (0, import_react21.useMutation)(UPDATE_AD_MUTATION, {
2620
+ const [updateAd, { loading, error }] = (0, import_client46.useMutation)(UPDATE_AD_MUTATION, {
2621
2621
  awaitRefetchQueries: true,
2622
2622
  refetchQueries: [{ query: GET_ADS }]
2623
2623
  });
@@ -2628,7 +2628,7 @@ var useUpdateAd = () => {
2628
2628
  };
2629
2629
  };
2630
2630
  var useDeleteAd = () => {
2631
- const [deleteAd, { loading, error }] = (0, import_react21.useMutation)(DELETE_AD_MUTATION, {
2631
+ const [deleteAd, { loading, error }] = (0, import_client46.useMutation)(DELETE_AD_MUTATION, {
2632
2632
  awaitRefetchQueries: true,
2633
2633
  refetchQueries: [{ query: GET_ADS }]
2634
2634
  });
@@ -2640,9 +2640,9 @@ var useDeleteAd = () => {
2640
2640
  };
2641
2641
 
2642
2642
  // src/graphql/hooks/ad/hooksQuery.ts
2643
- var import_react22 = require("@apollo/client/react");
2643
+ var import_client47 = require("@apollo/client");
2644
2644
  var useGetAds = () => {
2645
- const { data, loading, error, refetch } = (0, import_react22.useQuery)(
2645
+ const { data, loading, error, refetch } = (0, import_client47.useQuery)(
2646
2646
  GET_ADS,
2647
2647
  {
2648
2648
  fetchPolicy: "no-cache"
@@ -2656,7 +2656,7 @@ var useGetAds = () => {
2656
2656
  };
2657
2657
  };
2658
2658
  var useGetAd = (_id) => {
2659
- const { data, loading, error, refetch } = (0, import_react22.useQuery)(GET_AD, {
2659
+ const { data, loading, error, refetch } = (0, import_client47.useQuery)(GET_AD, {
2660
2660
  fetchPolicy: "no-cache",
2661
2661
  skip: !_id,
2662
2662
  variables: { _id }
@@ -2669,7 +2669,7 @@ var useGetAd = (_id) => {
2669
2669
  };
2670
2670
  };
2671
2671
  var useGetAdsByRegion = (region, status) => {
2672
- const { data, loading, error, refetch } = (0, import_react22.useQuery)(GET_ADS_BY_REGION, {
2672
+ const { data, loading, error, refetch } = (0, import_client47.useQuery)(GET_ADS_BY_REGION, {
2673
2673
  fetchPolicy: "no-cache",
2674
2674
  skip: !region,
2675
2675
  variables: { region, status }
@@ -2683,11 +2683,11 @@ var useGetAdsByRegion = (region, status) => {
2683
2683
  };
2684
2684
 
2685
2685
  // src/graphql/hooks/resourceActivities/hooksMutation.ts
2686
- var import_react23 = require("@apollo/client/react");
2686
+ var import_client49 = require("@apollo/client");
2687
2687
 
2688
2688
  // src/graphql/mutations/resourceActivities.ts
2689
- var import_client26 = require("@apollo/client");
2690
- var CREATE_RESOURCE_ACTIVITY_MUTATION = import_client26.gql`
2689
+ var import_client48 = require("@apollo/client");
2690
+ var CREATE_RESOURCE_ACTIVITY_MUTATION = import_client48.gql`
2691
2691
  mutation createResourceActivity($input: ResourceActivityInputType!) {
2692
2692
  createResourceActivity(input: $input)
2693
2693
  }
@@ -2695,18 +2695,18 @@ var CREATE_RESOURCE_ACTIVITY_MUTATION = import_client26.gql`
2695
2695
 
2696
2696
  // src/graphql/hooks/resourceActivities/hooksMutation.ts
2697
2697
  var useCreateResourceActivity = () => {
2698
- const [createResourceActivity, { loading, error }] = (0, import_react23.useMutation)(
2698
+ const [createResourceActivity, { loading, error }] = (0, import_client49.useMutation)(
2699
2699
  CREATE_RESOURCE_ACTIVITY_MUTATION
2700
2700
  );
2701
2701
  return { createResourceActivity, error, loading };
2702
2702
  };
2703
2703
 
2704
2704
  // src/graphql/hooks/resourceActivities/hooksQuery.ts
2705
- var import_react24 = require("@apollo/client/react");
2705
+ var import_client51 = require("@apollo/client");
2706
2706
 
2707
2707
  // src/graphql/queries/resourceActivities.ts
2708
- var import_client27 = require("@apollo/client");
2709
- var RESOURCE_ACTIVITIES_FIELDS_FRAGMENT = import_client27.gql`
2708
+ var import_client50 = require("@apollo/client");
2709
+ var RESOURCE_ACTIVITIES_FIELDS_FRAGMENT = import_client50.gql`
2710
2710
  fragment ResourceActivitiesFields on ResourceActivitiesType {
2711
2711
  resourceId
2712
2712
  resourceType
@@ -2725,7 +2725,7 @@ var RESOURCE_ACTIVITIES_FIELDS_FRAGMENT = import_client27.gql`
2725
2725
  }
2726
2726
  }
2727
2727
  `;
2728
- var GET_RESOURCE_ACTIVITIES = import_client27.gql`
2728
+ var GET_RESOURCE_ACTIVITIES = import_client50.gql`
2729
2729
  query getResourceActivities(
2730
2730
  $resourceType: ResourceTypeEnum!
2731
2731
  $resourceId: ID!
@@ -2739,7 +2739,7 @@ var GET_RESOURCE_ACTIVITIES = import_client27.gql`
2739
2739
 
2740
2740
  // src/graphql/hooks/resourceActivities/hooksQuery.ts
2741
2741
  var useGetResourceActivities = (resourceId, resourceType) => {
2742
- const { data, loading, error, refetch } = (0, import_react24.useQuery)(GET_RESOURCE_ACTIVITIES, {
2742
+ const { data, loading, error, refetch } = (0, import_client51.useQuery)(GET_RESOURCE_ACTIVITIES, {
2743
2743
  fetchPolicy: "network-only",
2744
2744
  variables: { resourceId, resourceType }
2745
2745
  });
@@ -2752,11 +2752,11 @@ var useGetResourceActivities = (resourceId, resourceType) => {
2752
2752
  };
2753
2753
 
2754
2754
  // src/graphql/hooks/stripe/hooksMutation.ts
2755
- var import_react25 = require("@apollo/client/react");
2755
+ var import_client53 = require("@apollo/client");
2756
2756
 
2757
2757
  // src/graphql/mutations/stripe.ts
2758
- var import_client28 = require("@apollo/client");
2759
- var CREATE_CHECKOUT_SESSION_MUTATION = import_client28.gql`
2758
+ var import_client52 = require("@apollo/client");
2759
+ var CREATE_CHECKOUT_SESSION_MUTATION = import_client52.gql`
2760
2760
  mutation createCheckoutSession($planId: LicencesEnumType!) {
2761
2761
  createCheckoutSession(planId: $planId) {
2762
2762
  sessionId
@@ -2764,12 +2764,12 @@ var CREATE_CHECKOUT_SESSION_MUTATION = import_client28.gql`
2764
2764
  }
2765
2765
  }
2766
2766
  `;
2767
- var CANCEL_SUBSCRIPTION_MUTATION = import_client28.gql`
2767
+ var CANCEL_SUBSCRIPTION_MUTATION = import_client52.gql`
2768
2768
  mutation cancelSubscription {
2769
2769
  cancelSubscription
2770
2770
  }
2771
2771
  `;
2772
- var UPDATE_SUBSCRIPTION_PLAN_MUTATION = import_client28.gql`
2772
+ var UPDATE_SUBSCRIPTION_PLAN_MUTATION = import_client52.gql`
2773
2773
  mutation updateSubscriptionPlan($newPlanId: LicencesEnumType!) {
2774
2774
  updateSubscriptionPlan(newPlanId: $newPlanId) {
2775
2775
  subscriptionId
@@ -2782,30 +2782,30 @@ var UPDATE_SUBSCRIPTION_PLAN_MUTATION = import_client28.gql`
2782
2782
 
2783
2783
  // src/graphql/hooks/stripe/hooksMutation.ts
2784
2784
  var useCreateCheckoutSession = () => {
2785
- const [createCheckoutSession, { loading, error }] = (0, import_react25.useMutation)(
2785
+ const [createCheckoutSession, { loading, error }] = (0, import_client53.useMutation)(
2786
2786
  CREATE_CHECKOUT_SESSION_MUTATION
2787
2787
  );
2788
2788
  return { createCheckoutSession, error, loading };
2789
2789
  };
2790
2790
  var useCancelSubscription = () => {
2791
- const [cancelSubscription, { loading, error }] = (0, import_react25.useMutation)(
2791
+ const [cancelSubscription, { loading, error }] = (0, import_client53.useMutation)(
2792
2792
  CANCEL_SUBSCRIPTION_MUTATION
2793
2793
  );
2794
2794
  return { cancelSubscription, error, loading };
2795
2795
  };
2796
2796
  var useUpdateSubscriptionPlan = () => {
2797
- const [updateSubscriptionPlan, { loading, error }] = (0, import_react25.useMutation)(
2797
+ const [updateSubscriptionPlan, { loading, error }] = (0, import_client53.useMutation)(
2798
2798
  UPDATE_SUBSCRIPTION_PLAN_MUTATION
2799
2799
  );
2800
2800
  return { error, loading, updateSubscriptionPlan };
2801
2801
  };
2802
2802
 
2803
2803
  // src/graphql/hooks/stripe/hooksQuery.ts
2804
- var import_react26 = require("@apollo/client/react");
2804
+ var import_client55 = require("@apollo/client");
2805
2805
 
2806
2806
  // src/graphql/queries/stripe.ts
2807
- var import_client29 = require("@apollo/client");
2808
- var GET_SUBSCRIPTION_STATUS = import_client29.gql`
2807
+ var import_client54 = require("@apollo/client");
2808
+ var GET_SUBSCRIPTION_STATUS = import_client54.gql`
2809
2809
  query getSubscriptionStatus {
2810
2810
  getSubscriptionStatus {
2811
2811
  subscriptionId
@@ -2818,7 +2818,7 @@ var GET_SUBSCRIPTION_STATUS = import_client29.gql`
2818
2818
 
2819
2819
  // src/graphql/hooks/stripe/hooksQuery.ts
2820
2820
  var useGetSubscriptionStatus = () => {
2821
- const { data, loading, error, refetch } = (0, import_react26.useQuery)(GET_SUBSCRIPTION_STATUS);
2821
+ const { data, loading, error, refetch } = (0, import_client55.useQuery)(GET_SUBSCRIPTION_STATUS);
2822
2822
  return {
2823
2823
  data: data?.getSubscriptionStatus,
2824
2824
  error,
@@ -2828,11 +2828,11 @@ var useGetSubscriptionStatus = () => {
2828
2828
  };
2829
2829
 
2830
2830
  // src/graphql/hooks/partner/hooksMutation.ts
2831
- var import_react27 = require("@apollo/client/react");
2831
+ var import_client57 = require("@apollo/client");
2832
2832
 
2833
2833
  // src/graphql/mutations/partner.ts
2834
- var import_client30 = require("@apollo/client");
2835
- var CREATE_PARTNER_MUTATION = import_client30.gql`
2834
+ var import_client56 = require("@apollo/client");
2835
+ var CREATE_PARTNER_MUTATION = import_client56.gql`
2836
2836
  mutation createPartner($input: PartnerInputType!) {
2837
2837
  createPartner(input: $input) {
2838
2838
  ...PartnerFields
@@ -2840,7 +2840,7 @@ var CREATE_PARTNER_MUTATION = import_client30.gql`
2840
2840
  }
2841
2841
  ${PARTNER}
2842
2842
  `;
2843
- var UPDATE_PARTNER_MUTATION = import_client30.gql`
2843
+ var UPDATE_PARTNER_MUTATION = import_client56.gql`
2844
2844
  mutation updatePartner($_id: ID!, $input: PartnerInputType!) {
2845
2845
  updatePartner(_id: $_id, input: $input) {
2846
2846
  ...PartnerFields
@@ -2848,7 +2848,7 @@ var UPDATE_PARTNER_MUTATION = import_client30.gql`
2848
2848
  }
2849
2849
  ${PARTNER}
2850
2850
  `;
2851
- var DELETE_PARTNER_MUTATION = import_client30.gql`
2851
+ var DELETE_PARTNER_MUTATION = import_client56.gql`
2852
2852
  mutation deletePartner($_id: ID!) {
2853
2853
  deletePartner(_id: $_id)
2854
2854
  }
@@ -2856,7 +2856,7 @@ var DELETE_PARTNER_MUTATION = import_client30.gql`
2856
2856
 
2857
2857
  // src/graphql/hooks/partner/hooksMutation.ts
2858
2858
  var useCreatePartner = () => {
2859
- const [createPartner, { loading, error }] = (0, import_react27.useMutation)(
2859
+ const [createPartner, { loading, error }] = (0, import_client57.useMutation)(
2860
2860
  CREATE_PARTNER_MUTATION,
2861
2861
  {
2862
2862
  awaitRefetchQueries: true,
@@ -2866,7 +2866,7 @@ var useCreatePartner = () => {
2866
2866
  return { createPartner, error, loading };
2867
2867
  };
2868
2868
  var useUpdatePartner = () => {
2869
- const [updatePartner, { loading, error }] = (0, import_react27.useMutation)(
2869
+ const [updatePartner, { loading, error }] = (0, import_client57.useMutation)(
2870
2870
  UPDATE_PARTNER_MUTATION,
2871
2871
  {
2872
2872
  awaitRefetchQueries: true,
@@ -2876,7 +2876,7 @@ var useUpdatePartner = () => {
2876
2876
  return { error, loading, updatePartner };
2877
2877
  };
2878
2878
  var useDeletePartner = () => {
2879
- const [deletePartner, { loading, error }] = (0, import_react27.useMutation)(
2879
+ const [deletePartner, { loading, error }] = (0, import_client57.useMutation)(
2880
2880
  DELETE_PARTNER_MUTATION,
2881
2881
  {
2882
2882
  awaitRefetchQueries: true,
@@ -2887,9 +2887,9 @@ var useDeletePartner = () => {
2887
2887
  };
2888
2888
 
2889
2889
  // src/graphql/hooks/partner/hooksQuery.ts
2890
- var import_react28 = require("@apollo/client/react");
2890
+ var import_client58 = require("@apollo/client");
2891
2891
  var useGetPartners = () => {
2892
- const { loading, error, data, refetch } = (0, import_react28.useQuery)(GET_PARTNERS, {
2892
+ const { loading, error, data, refetch } = (0, import_client58.useQuery)(GET_PARTNERS, {
2893
2893
  fetchPolicy: "network-only"
2894
2894
  });
2895
2895
  const partners = data?.partners || [];
@@ -2901,7 +2901,7 @@ var useGetPartners = () => {
2901
2901
  };
2902
2902
  };
2903
2903
  var useGetPartner = (_id) => {
2904
- const { loading, error, data, refetch } = (0, import_react28.useQuery)(
2904
+ const { loading, error, data, refetch } = (0, import_client58.useQuery)(
2905
2905
  GET_PARTNER,
2906
2906
  {
2907
2907
  fetchPolicy: "network-only",
@@ -2913,7 +2913,7 @@ var useGetPartner = (_id) => {
2913
2913
  return { error, loading, partner, refetch };
2914
2914
  };
2915
2915
  var useGetPartnersByRegion = (region) => {
2916
- const { loading, error, data, refetch } = (0, import_react28.useQuery)(GET_PARTNERS_BY_REGION, {
2916
+ const { loading, error, data, refetch } = (0, import_client58.useQuery)(GET_PARTNERS_BY_REGION, {
2917
2917
  fetchPolicy: "no-cache",
2918
2918
  skip: !region,
2919
2919
  variables: { region }
@@ -2922,7 +2922,7 @@ var useGetPartnersByRegion = (region) => {
2922
2922
  return { error, loading, partnersByRegion, refetch };
2923
2923
  };
2924
2924
  var useSearchPartners = (search, region) => {
2925
- const { loading, error, data, refetch } = (0, import_react28.useQuery)(SEARCH_PARTNERS, {
2925
+ const { loading, error, data, refetch } = (0, import_client58.useQuery)(SEARCH_PARTNERS, {
2926
2926
  fetchPolicy: "network-only",
2927
2927
  skip: search.length < 3,
2928
2928
  variables: { region, search }