@timardex/cluemart-shared 1.0.80 → 1.0.82
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.
- package/dist/{notification-H4hE5cdq.d.mts → contactUs-CQ9xTjlE.d.mts} +1 -38
- package/dist/{notification-H4hE5cdq.d.ts → contactUs-CQ9xTjlE.d.ts} +1 -38
- package/dist/graphql/index.cjs +282 -171
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +29 -9
- package/dist/graphql/index.d.ts +29 -9
- package/dist/graphql/index.mjs +279 -69
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +0 -202
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +2 -25
- package/dist/hooks/index.d.ts +2 -25
- package/dist/hooks/index.mjs +0 -104
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +280 -265
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +33 -35
- package/dist/index.d.ts +33 -35
- package/dist/index.mjs +216 -196
- package/dist/index.mjs.map +1 -1
- package/dist/notification-P3Vnadx_.d.mts +64 -0
- package/dist/notification-P3Vnadx_.d.ts +64 -0
- package/dist/types/index.d.mts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/package.json +1 -1
- package/dist/chat-BUVCf9Tu.d.mts +0 -27
- package/dist/chat-BUVCf9Tu.d.ts +0 -27
- package/dist/chunk-SCXVJDGI.mjs +0 -114
- package/dist/chunk-SCXVJDGI.mjs.map +0 -1
package/dist/graphql/index.cjs
CHANGED
|
@@ -20,13 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// src/graphql/index.ts
|
|
21
21
|
var graphql_exports = {};
|
|
22
22
|
__export(graphql_exports, {
|
|
23
|
-
|
|
24
|
-
CREATE_NOTIFICATION: () => CREATE_NOTIFICATION,
|
|
25
|
-
GET_NOTIFICATION_COUNT: () => GET_NOTIFICATION_COUNT,
|
|
26
|
-
GET_UNREAD_NOTIFICATIONS: () => GET_UNREAD_NOTIFICATIONS,
|
|
27
|
-
GET_USER_NOTIFICATIONS: () => GET_USER_NOTIFICATIONS2,
|
|
28
|
-
MARK_ALL_NOTIFICATIONS_READ: () => MARK_ALL_NOTIFICATIONS_READ,
|
|
29
|
-
MARK_NOTIFICATION_READ: () => MARK_NOTIFICATION_READ,
|
|
23
|
+
GET_CHAT_MESSAGE: () => GET_CHAT_MESSAGE,
|
|
30
24
|
useAddParticipantToChat: () => useAddParticipantToChat,
|
|
31
25
|
useAddUserFavouriteResource: () => useAddUserFavouriteResource,
|
|
32
26
|
useAdminUpdateResourceType: () => useAdminUpdateResourceType,
|
|
@@ -48,6 +42,7 @@ __export(graphql_exports, {
|
|
|
48
42
|
useDeleteTester: () => useDeleteTester,
|
|
49
43
|
useDeleteUser: () => useDeleteUser,
|
|
50
44
|
useGetChat: () => useGetChat,
|
|
45
|
+
useGetChatSubscription: () => useGetChatSubscription,
|
|
51
46
|
useGetMarket: () => useGetMarket,
|
|
52
47
|
useGetMarketInfo: () => useGetMarketInfo,
|
|
53
48
|
useGetMarketRelations: () => useGetMarketRelations,
|
|
@@ -73,6 +68,7 @@ __export(graphql_exports, {
|
|
|
73
68
|
useGetUsers: () => useGetUsers,
|
|
74
69
|
useLogin: () => useLogin,
|
|
75
70
|
useLogout: () => useLogout,
|
|
71
|
+
useNotifications: () => useNotifications,
|
|
76
72
|
useRefreshToken: () => useRefreshToken,
|
|
77
73
|
useRegister: () => useRegister,
|
|
78
74
|
useRemoveParticipantFromChat: () => useRemoveParticipantFromChat,
|
|
@@ -764,9 +760,22 @@ var useRemoveParticipantFromChat = () => {
|
|
|
764
760
|
};
|
|
765
761
|
|
|
766
762
|
// src/graphql/hooks/chat/hooksQuery.ts
|
|
763
|
+
var import_client12 = require("@apollo/client");
|
|
764
|
+
|
|
765
|
+
// src/graphql/subscriptions/chat.ts
|
|
767
766
|
var import_client11 = require("@apollo/client");
|
|
767
|
+
var GET_CHAT_MESSAGE = import_client11.gql`
|
|
768
|
+
subscription {
|
|
769
|
+
getChatMessage {
|
|
770
|
+
...ChatFields
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
${CHAT_FIELDS_FRAGMENT}
|
|
774
|
+
`;
|
|
775
|
+
|
|
776
|
+
// src/graphql/hooks/chat/hooksQuery.ts
|
|
768
777
|
var useGetChat = (_id) => {
|
|
769
|
-
const { loading, error, data, refetch } = (0,
|
|
778
|
+
const { loading, error, data, refetch } = (0, import_client12.useQuery)(CHAT, {
|
|
770
779
|
fetchPolicy: "network-only",
|
|
771
780
|
skip: !_id,
|
|
772
781
|
variables: { _id }
|
|
@@ -775,19 +784,24 @@ var useGetChat = (_id) => {
|
|
|
775
784
|
return { chat, error, loading, refetch };
|
|
776
785
|
};
|
|
777
786
|
var useGetUserChats = () => {
|
|
778
|
-
const { loading, error, data, refetch } = (0,
|
|
787
|
+
const { loading, error, data, refetch } = (0, import_client12.useQuery)(USER_CHATS, {
|
|
779
788
|
fetchPolicy: "network-only"
|
|
780
789
|
});
|
|
781
790
|
const userChats = data?.userChats;
|
|
782
791
|
return { error, loading, refetch, userChats };
|
|
783
792
|
};
|
|
793
|
+
var useGetChatSubscription = () => {
|
|
794
|
+
const { data, loading, error } = (0, import_client12.useSubscription)(GET_CHAT_MESSAGE);
|
|
795
|
+
const chat = data?.getChat;
|
|
796
|
+
return { chat, error, loading };
|
|
797
|
+
};
|
|
784
798
|
|
|
785
799
|
// src/graphql/hooks/contactUs.ts
|
|
786
|
-
var
|
|
800
|
+
var import_client14 = require("@apollo/client");
|
|
787
801
|
|
|
788
802
|
// src/graphql/mutations/contactUs.ts
|
|
789
|
-
var
|
|
790
|
-
var CONTACT_US_MUTATION =
|
|
803
|
+
var import_client13 = require("@apollo/client");
|
|
804
|
+
var CONTACT_US_MUTATION = import_client13.gql`
|
|
791
805
|
mutation contactUs($input: ContactUsInputType!) {
|
|
792
806
|
contactUs(input: $input) {
|
|
793
807
|
message
|
|
@@ -797,16 +811,16 @@ var CONTACT_US_MUTATION = import_client12.gql`
|
|
|
797
811
|
|
|
798
812
|
// src/graphql/hooks/contactUs.ts
|
|
799
813
|
var useContactUs = () => {
|
|
800
|
-
const [contactUs, { loading, error }] = (0,
|
|
814
|
+
const [contactUs, { loading, error }] = (0, import_client14.useMutation)(CONTACT_US_MUTATION);
|
|
801
815
|
return { contactUs, error, loading };
|
|
802
816
|
};
|
|
803
817
|
|
|
804
818
|
// src/graphql/hooks/market/hooksMutation.ts
|
|
805
|
-
var
|
|
819
|
+
var import_client17 = require("@apollo/client");
|
|
806
820
|
|
|
807
821
|
// src/graphql/mutations/market.ts
|
|
808
|
-
var
|
|
809
|
-
var CREATE_MARKET_MUTATION =
|
|
822
|
+
var import_client15 = require("@apollo/client");
|
|
823
|
+
var CREATE_MARKET_MUTATION = import_client15.gql`
|
|
810
824
|
mutation createMarket($input: MarketInputType!) {
|
|
811
825
|
createMarket(input: $input) {
|
|
812
826
|
...MarketFields
|
|
@@ -814,7 +828,7 @@ var CREATE_MARKET_MUTATION = import_client14.gql`
|
|
|
814
828
|
}
|
|
815
829
|
${MARKET}
|
|
816
830
|
`;
|
|
817
|
-
var UPDATE_MARKET_MUTATION =
|
|
831
|
+
var UPDATE_MARKET_MUTATION = import_client15.gql`
|
|
818
832
|
mutation updateMarket($_id: ID!, $input: MarketInputType!) {
|
|
819
833
|
updateMarket(_id: $_id, input: $input) {
|
|
820
834
|
...MarketFields
|
|
@@ -822,12 +836,12 @@ var UPDATE_MARKET_MUTATION = import_client14.gql`
|
|
|
822
836
|
}
|
|
823
837
|
${MARKET}
|
|
824
838
|
`;
|
|
825
|
-
var DELETE_MARKET_MUTATION =
|
|
839
|
+
var DELETE_MARKET_MUTATION = import_client15.gql`
|
|
826
840
|
mutation deleteMarket($_id: ID!) {
|
|
827
841
|
deleteMarket(_id: $_id)
|
|
828
842
|
}
|
|
829
843
|
`;
|
|
830
|
-
var CREATE_MARKET_INFO_MUTATION =
|
|
844
|
+
var CREATE_MARKET_INFO_MUTATION = import_client15.gql`
|
|
831
845
|
mutation createMarketInfo($input: MarketInfoInputType!) {
|
|
832
846
|
createMarketInfo(input: $input) {
|
|
833
847
|
...MarketInfoFields
|
|
@@ -835,7 +849,7 @@ var CREATE_MARKET_INFO_MUTATION = import_client14.gql`
|
|
|
835
849
|
}
|
|
836
850
|
${MARKET_INFO}
|
|
837
851
|
`;
|
|
838
|
-
var UPDATE_MARKET_INFO_MUTATION =
|
|
852
|
+
var UPDATE_MARKET_INFO_MUTATION = import_client15.gql`
|
|
839
853
|
mutation updateMarketInfo($_id: ID!, $input: MarketInfoInputType!) {
|
|
840
854
|
updateMarketInfo(_id: $_id, input: $input) {
|
|
841
855
|
...MarketInfoFields
|
|
@@ -845,8 +859,8 @@ var UPDATE_MARKET_INFO_MUTATION = import_client14.gql`
|
|
|
845
859
|
`;
|
|
846
860
|
|
|
847
861
|
// src/graphql/queries/user.ts
|
|
848
|
-
var
|
|
849
|
-
var GET_USERS =
|
|
862
|
+
var import_client16 = require("@apollo/client");
|
|
863
|
+
var GET_USERS = import_client16.gql`
|
|
850
864
|
query getUsers {
|
|
851
865
|
users {
|
|
852
866
|
...UserFields
|
|
@@ -854,7 +868,7 @@ var GET_USERS = import_client15.gql`
|
|
|
854
868
|
}
|
|
855
869
|
${USER_FIELDS_FRAGMENT}
|
|
856
870
|
`;
|
|
857
|
-
var GET_USER =
|
|
871
|
+
var GET_USER = import_client16.gql`
|
|
858
872
|
query getUser($_id: ID!) {
|
|
859
873
|
user(_id: $_id) {
|
|
860
874
|
...UserFields
|
|
@@ -862,7 +876,7 @@ var GET_USER = import_client15.gql`
|
|
|
862
876
|
}
|
|
863
877
|
${USER_FIELDS_FRAGMENT}
|
|
864
878
|
`;
|
|
865
|
-
var GET_USER_MARKETS =
|
|
879
|
+
var GET_USER_MARKETS = import_client16.gql`
|
|
866
880
|
query getUserMarkets {
|
|
867
881
|
userMarkets {
|
|
868
882
|
...MarketFields
|
|
@@ -870,7 +884,7 @@ var GET_USER_MARKETS = import_client15.gql`
|
|
|
870
884
|
}
|
|
871
885
|
${MARKET}
|
|
872
886
|
`;
|
|
873
|
-
var GET_USER_STALLHOLDER =
|
|
887
|
+
var GET_USER_STALLHOLDER = import_client16.gql`
|
|
874
888
|
query getUserStallholder {
|
|
875
889
|
userStallholder {
|
|
876
890
|
...StallholderFields
|
|
@@ -878,7 +892,7 @@ var GET_USER_STALLHOLDER = import_client15.gql`
|
|
|
878
892
|
}
|
|
879
893
|
${STALLHOLDER}
|
|
880
894
|
`;
|
|
881
|
-
var GET_USER_FAVOURITES =
|
|
895
|
+
var GET_USER_FAVOURITES = import_client16.gql`
|
|
882
896
|
query getUserFavourites {
|
|
883
897
|
userFavourites {
|
|
884
898
|
markets {
|
|
@@ -892,7 +906,7 @@ var GET_USER_FAVOURITES = import_client15.gql`
|
|
|
892
906
|
${MARKET}
|
|
893
907
|
${STALLHOLDER}
|
|
894
908
|
`;
|
|
895
|
-
var GET_USER_NOTIFICATIONS =
|
|
909
|
+
var GET_USER_NOTIFICATIONS = import_client16.gql`
|
|
896
910
|
query getMissedNotifications {
|
|
897
911
|
userNotifications
|
|
898
912
|
}
|
|
@@ -900,7 +914,7 @@ var GET_USER_NOTIFICATIONS = import_client15.gql`
|
|
|
900
914
|
|
|
901
915
|
// src/graphql/hooks/market/hooksMutation.ts
|
|
902
916
|
var useCreateMarket = () => {
|
|
903
|
-
const [createMarket, { loading, error }] = (0,
|
|
917
|
+
const [createMarket, { loading, error }] = (0, import_client17.useMutation)(
|
|
904
918
|
CREATE_MARKET_MUTATION,
|
|
905
919
|
{
|
|
906
920
|
awaitRefetchQueries: true,
|
|
@@ -910,7 +924,7 @@ var useCreateMarket = () => {
|
|
|
910
924
|
return { createMarket, error, loading };
|
|
911
925
|
};
|
|
912
926
|
var useUpdateMarket = () => {
|
|
913
|
-
const [updateMarket, { loading, error }] = (0,
|
|
927
|
+
const [updateMarket, { loading, error }] = (0, import_client17.useMutation)(
|
|
914
928
|
UPDATE_MARKET_MUTATION,
|
|
915
929
|
{
|
|
916
930
|
awaitRefetchQueries: true,
|
|
@@ -920,7 +934,7 @@ var useUpdateMarket = () => {
|
|
|
920
934
|
return { error, loading, updateMarket };
|
|
921
935
|
};
|
|
922
936
|
var useDeleteMarket = () => {
|
|
923
|
-
const [deleteMarket, { loading, error }] = (0,
|
|
937
|
+
const [deleteMarket, { loading, error }] = (0, import_client17.useMutation)(
|
|
924
938
|
DELETE_MARKET_MUTATION,
|
|
925
939
|
{
|
|
926
940
|
awaitRefetchQueries: true,
|
|
@@ -930,7 +944,7 @@ var useDeleteMarket = () => {
|
|
|
930
944
|
return { deleteMarket, error, loading };
|
|
931
945
|
};
|
|
932
946
|
var useCreateMarketInfo = () => {
|
|
933
|
-
const [createMarketInfo, { loading, error }] = (0,
|
|
947
|
+
const [createMarketInfo, { loading, error }] = (0, import_client17.useMutation)(
|
|
934
948
|
CREATE_MARKET_INFO_MUTATION,
|
|
935
949
|
{
|
|
936
950
|
awaitRefetchQueries: true,
|
|
@@ -956,7 +970,7 @@ var useCreateMarketInfo = () => {
|
|
|
956
970
|
return { createMarketInfo, error, loading };
|
|
957
971
|
};
|
|
958
972
|
var useUpdateMarketInfo = () => {
|
|
959
|
-
const [updateMarketInfo, { loading, error }] = (0,
|
|
973
|
+
const [updateMarketInfo, { loading, error }] = (0, import_client17.useMutation)(
|
|
960
974
|
UPDATE_MARKET_INFO_MUTATION,
|
|
961
975
|
{
|
|
962
976
|
awaitRefetchQueries: true,
|
|
@@ -982,16 +996,16 @@ var useUpdateMarketInfo = () => {
|
|
|
982
996
|
};
|
|
983
997
|
|
|
984
998
|
// src/graphql/hooks/market/hooksQuery.ts
|
|
985
|
-
var
|
|
999
|
+
var import_client18 = require("@apollo/client");
|
|
986
1000
|
var useGetMarkets = () => {
|
|
987
|
-
const { loading, error, data, refetch } = (0,
|
|
1001
|
+
const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_MARKETS, {
|
|
988
1002
|
fetchPolicy: "network-only"
|
|
989
1003
|
});
|
|
990
1004
|
const markets = data?.markets;
|
|
991
1005
|
return { error, loading, markets, refetch };
|
|
992
1006
|
};
|
|
993
1007
|
var useGetMarket = (_id) => {
|
|
994
|
-
const { loading, error, data, refetch } = (0,
|
|
1008
|
+
const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_MARKET, {
|
|
995
1009
|
fetchPolicy: "network-only",
|
|
996
1010
|
skip: !_id,
|
|
997
1011
|
variables: { _id }
|
|
@@ -1000,7 +1014,7 @@ var useGetMarket = (_id) => {
|
|
|
1000
1014
|
return { error, loading, market, refetch };
|
|
1001
1015
|
};
|
|
1002
1016
|
var useGetMarketsByRegion = (region) => {
|
|
1003
|
-
const { loading, error, data, refetch } = (0,
|
|
1017
|
+
const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_MARKETS_BY_REGION, {
|
|
1004
1018
|
fetchPolicy: "no-cache",
|
|
1005
1019
|
skip: !region,
|
|
1006
1020
|
variables: { region }
|
|
@@ -1009,7 +1023,7 @@ var useGetMarketsByRegion = (region) => {
|
|
|
1009
1023
|
return { error, loading, marketsByRegion, refetch };
|
|
1010
1024
|
};
|
|
1011
1025
|
var useSearchMarkets = (search, region) => {
|
|
1012
|
-
const { loading, error, data, refetch } = (0,
|
|
1026
|
+
const { loading, error, data, refetch } = (0, import_client18.useQuery)(SEARCH_MARKETS, {
|
|
1013
1027
|
fetchPolicy: "network-only",
|
|
1014
1028
|
skip: search.length < 3,
|
|
1015
1029
|
variables: { region, search }
|
|
@@ -1018,7 +1032,7 @@ var useSearchMarkets = (search, region) => {
|
|
|
1018
1032
|
return { error, loading, marketsSearch, refetch };
|
|
1019
1033
|
};
|
|
1020
1034
|
var useGetMarketsNearMe = (location) => {
|
|
1021
|
-
const { loading, error, data, refetch } = (0,
|
|
1035
|
+
const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_MARKETS_NEAR_ME, {
|
|
1022
1036
|
fetchPolicy: "network-only",
|
|
1023
1037
|
skip: !location.latitude || !location.longitude,
|
|
1024
1038
|
variables: {
|
|
@@ -1032,7 +1046,7 @@ var useGetMarketsNearMe = (location) => {
|
|
|
1032
1046
|
return { error, loading, marketsNearMe, refetch };
|
|
1033
1047
|
};
|
|
1034
1048
|
var useGetMarketInfo = (marketId) => {
|
|
1035
|
-
const { loading, error, data, refetch } = (0,
|
|
1049
|
+
const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_MARKET_INFO, {
|
|
1036
1050
|
fetchPolicy: "network-only",
|
|
1037
1051
|
skip: !marketId,
|
|
1038
1052
|
variables: { marketId }
|
|
@@ -1042,11 +1056,11 @@ var useGetMarketInfo = (marketId) => {
|
|
|
1042
1056
|
};
|
|
1043
1057
|
|
|
1044
1058
|
// src/graphql/hooks/poster.ts
|
|
1045
|
-
var
|
|
1059
|
+
var import_client20 = require("@apollo/client");
|
|
1046
1060
|
|
|
1047
1061
|
// src/graphql/mutations/poster.ts
|
|
1048
|
-
var
|
|
1049
|
-
var CREATE_POSTER_MUTATION =
|
|
1062
|
+
var import_client19 = require("@apollo/client");
|
|
1063
|
+
var CREATE_POSTER_MUTATION = import_client19.gql`
|
|
1050
1064
|
mutation createPoster($input: PosterInputType!) {
|
|
1051
1065
|
createPoster(input: $input) {
|
|
1052
1066
|
message
|
|
@@ -1056,18 +1070,18 @@ var CREATE_POSTER_MUTATION = import_client18.gql`
|
|
|
1056
1070
|
|
|
1057
1071
|
// src/graphql/hooks/poster.ts
|
|
1058
1072
|
var useCreatePoster = () => {
|
|
1059
|
-
const [createPoster, { loading, error }] = (0,
|
|
1073
|
+
const [createPoster, { loading, error }] = (0, import_client20.useMutation)(
|
|
1060
1074
|
CREATE_POSTER_MUTATION
|
|
1061
1075
|
);
|
|
1062
1076
|
return { createPoster, error, loading };
|
|
1063
1077
|
};
|
|
1064
1078
|
|
|
1065
1079
|
// src/graphql/hooks/pushToken.ts
|
|
1066
|
-
var
|
|
1080
|
+
var import_client22 = require("@apollo/client");
|
|
1067
1081
|
|
|
1068
1082
|
// src/graphql/mutations/pushToken.ts
|
|
1069
|
-
var
|
|
1070
|
-
var CREATE_PUSH_TOKEN_MUTATION =
|
|
1083
|
+
var import_client21 = require("@apollo/client");
|
|
1084
|
+
var CREATE_PUSH_TOKEN_MUTATION = import_client21.gql`
|
|
1071
1085
|
mutation createPushToken($input: PushTokenInput!) {
|
|
1072
1086
|
createPushToken(input: $input) {
|
|
1073
1087
|
success
|
|
@@ -1077,21 +1091,21 @@ var CREATE_PUSH_TOKEN_MUTATION = import_client20.gql`
|
|
|
1077
1091
|
|
|
1078
1092
|
// src/graphql/hooks/pushToken.ts
|
|
1079
1093
|
var useCreatePushToken = () => {
|
|
1080
|
-
const [createPushToken, { loading, error }] = (0,
|
|
1094
|
+
const [createPushToken, { loading, error }] = (0, import_client22.useMutation)(
|
|
1081
1095
|
CREATE_PUSH_TOKEN_MUTATION
|
|
1082
1096
|
);
|
|
1083
1097
|
return { createPushToken, error, loading };
|
|
1084
1098
|
};
|
|
1085
1099
|
|
|
1086
1100
|
// src/graphql/hooks/relation/hooksMutation.ts
|
|
1087
|
-
var
|
|
1101
|
+
var import_client25 = require("@apollo/client");
|
|
1088
1102
|
|
|
1089
1103
|
// src/graphql/mutations/relation.ts
|
|
1090
|
-
var
|
|
1104
|
+
var import_client24 = require("@apollo/client");
|
|
1091
1105
|
|
|
1092
1106
|
// src/graphql/queries/relation.ts
|
|
1093
|
-
var
|
|
1094
|
-
var RELATION_DATES_FRAGMENT =
|
|
1107
|
+
var import_client23 = require("@apollo/client");
|
|
1108
|
+
var RELATION_DATES_FRAGMENT = import_client23.gql`
|
|
1095
1109
|
fragment RelationDates on RelationDateType {
|
|
1096
1110
|
lastUpdateBy
|
|
1097
1111
|
paymentReference
|
|
@@ -1105,7 +1119,7 @@ var RELATION_DATES_FRAGMENT = import_client22.gql`
|
|
|
1105
1119
|
status
|
|
1106
1120
|
}
|
|
1107
1121
|
`;
|
|
1108
|
-
var RELATION_FIELDS_FRAGMENT =
|
|
1122
|
+
var RELATION_FIELDS_FRAGMENT = import_client23.gql`
|
|
1109
1123
|
fragment RelationFields on RelationType {
|
|
1110
1124
|
_id
|
|
1111
1125
|
apiMessage
|
|
@@ -1122,7 +1136,7 @@ var RELATION_FIELDS_FRAGMENT = import_client22.gql`
|
|
|
1122
1136
|
}
|
|
1123
1137
|
${RELATION_DATES_FRAGMENT}
|
|
1124
1138
|
`;
|
|
1125
|
-
var GET_RELATION =
|
|
1139
|
+
var GET_RELATION = import_client23.gql`
|
|
1126
1140
|
query getRelation($id: ID!) {
|
|
1127
1141
|
relation(_id: $id) {
|
|
1128
1142
|
...RelationFields
|
|
@@ -1130,7 +1144,7 @@ var GET_RELATION = import_client22.gql`
|
|
|
1130
1144
|
}
|
|
1131
1145
|
${RELATION_FIELDS_FRAGMENT}
|
|
1132
1146
|
`;
|
|
1133
|
-
var GET_RELATION_BY_MARKET_AND_STALLHOLDER =
|
|
1147
|
+
var GET_RELATION_BY_MARKET_AND_STALLHOLDER = import_client23.gql`
|
|
1134
1148
|
query getRelationByMarketAndStallholder($marketId: ID!, $stallholderId: ID!) {
|
|
1135
1149
|
relationByMarketAndStallholder(
|
|
1136
1150
|
marketId: $marketId
|
|
@@ -1141,7 +1155,7 @@ var GET_RELATION_BY_MARKET_AND_STALLHOLDER = import_client22.gql`
|
|
|
1141
1155
|
}
|
|
1142
1156
|
${RELATION_FIELDS_FRAGMENT}
|
|
1143
1157
|
`;
|
|
1144
|
-
var GET_MARKET_RELATIONS =
|
|
1158
|
+
var GET_MARKET_RELATIONS = import_client23.gql`
|
|
1145
1159
|
query getMarketRelations($marketId: ID!) {
|
|
1146
1160
|
marketRelations(marketId: $marketId) {
|
|
1147
1161
|
...RelationFields
|
|
@@ -1149,7 +1163,7 @@ var GET_MARKET_RELATIONS = import_client22.gql`
|
|
|
1149
1163
|
}
|
|
1150
1164
|
${RELATION_FIELDS_FRAGMENT}
|
|
1151
1165
|
`;
|
|
1152
|
-
var GET_STALLHOLDER_RELATIONS =
|
|
1166
|
+
var GET_STALLHOLDER_RELATIONS = import_client23.gql`
|
|
1153
1167
|
query getStallholderRelations($stallholderId: ID!) {
|
|
1154
1168
|
stallholderRelations(stallholderId: $stallholderId) {
|
|
1155
1169
|
...RelationFields
|
|
@@ -1157,7 +1171,7 @@ var GET_STALLHOLDER_RELATIONS = import_client22.gql`
|
|
|
1157
1171
|
}
|
|
1158
1172
|
${RELATION_FIELDS_FRAGMENT}
|
|
1159
1173
|
`;
|
|
1160
|
-
var GET_RESOURCE_CONNECTIONS =
|
|
1174
|
+
var GET_RESOURCE_CONNECTIONS = import_client23.gql`
|
|
1161
1175
|
query getResourceConnections(
|
|
1162
1176
|
$resourceId: ID!
|
|
1163
1177
|
$resourceType: ResourceTypeEnum!
|
|
@@ -1260,7 +1274,7 @@ var GET_RESOURCE_CONNECTIONS = import_client22.gql`
|
|
|
1260
1274
|
`;
|
|
1261
1275
|
|
|
1262
1276
|
// src/graphql/mutations/relation.ts
|
|
1263
|
-
var CREATE_RELATION_MUTATION =
|
|
1277
|
+
var CREATE_RELATION_MUTATION = import_client24.gql`
|
|
1264
1278
|
mutation createRelation($input: RelationInputType!) {
|
|
1265
1279
|
createRelation(input: $input) {
|
|
1266
1280
|
...RelationFields
|
|
@@ -1268,7 +1282,7 @@ var CREATE_RELATION_MUTATION = import_client23.gql`
|
|
|
1268
1282
|
}
|
|
1269
1283
|
${RELATION_FIELDS_FRAGMENT}
|
|
1270
1284
|
`;
|
|
1271
|
-
var UPDATE_RELATION_MUTATION =
|
|
1285
|
+
var UPDATE_RELATION_MUTATION = import_client24.gql`
|
|
1272
1286
|
mutation updateRelation($_id: ID!, $input: RelationInputType!) {
|
|
1273
1287
|
updateRelation(_id: $_id, input: $input) {
|
|
1274
1288
|
...RelationFields
|
|
@@ -1276,7 +1290,7 @@ var UPDATE_RELATION_MUTATION = import_client23.gql`
|
|
|
1276
1290
|
}
|
|
1277
1291
|
${RELATION_FIELDS_FRAGMENT}
|
|
1278
1292
|
`;
|
|
1279
|
-
var DELETE_RELATION_MUTATION =
|
|
1293
|
+
var DELETE_RELATION_MUTATION = import_client24.gql`
|
|
1280
1294
|
mutation deleteRelation($_id: ID!) {
|
|
1281
1295
|
deleteRelation(_id: $_id) {
|
|
1282
1296
|
...RelationFields
|
|
@@ -1288,7 +1302,7 @@ var DELETE_RELATION_MUTATION = import_client23.gql`
|
|
|
1288
1302
|
// src/graphql/hooks/relation/hooksMutation.ts
|
|
1289
1303
|
var fetchPolicy = "no-cache";
|
|
1290
1304
|
var useCreateRelation = () => {
|
|
1291
|
-
const [createRelation, { loading, error }] = (0,
|
|
1305
|
+
const [createRelation, { loading, error }] = (0, import_client25.useMutation)(
|
|
1292
1306
|
CREATE_RELATION_MUTATION,
|
|
1293
1307
|
{
|
|
1294
1308
|
awaitRefetchQueries: true,
|
|
@@ -1340,7 +1354,7 @@ var useCreateRelation = () => {
|
|
|
1340
1354
|
return { createRelation, error, loading };
|
|
1341
1355
|
};
|
|
1342
1356
|
var useUpdateRelation = () => {
|
|
1343
|
-
const [updateRelation, { loading, error }] = (0,
|
|
1357
|
+
const [updateRelation, { loading, error }] = (0, import_client25.useMutation)(
|
|
1344
1358
|
UPDATE_RELATION_MUTATION,
|
|
1345
1359
|
{
|
|
1346
1360
|
awaitRefetchQueries: true,
|
|
@@ -1388,7 +1402,7 @@ var useUpdateRelation = () => {
|
|
|
1388
1402
|
return { error, loading, updateRelation };
|
|
1389
1403
|
};
|
|
1390
1404
|
var useDeleteRelation = () => {
|
|
1391
|
-
const [deleteRelation, { loading, error }] = (0,
|
|
1405
|
+
const [deleteRelation, { loading, error }] = (0, import_client25.useMutation)(
|
|
1392
1406
|
DELETE_RELATION_MUTATION,
|
|
1393
1407
|
{
|
|
1394
1408
|
awaitRefetchQueries: true,
|
|
@@ -1436,9 +1450,9 @@ var useDeleteRelation = () => {
|
|
|
1436
1450
|
};
|
|
1437
1451
|
|
|
1438
1452
|
// src/graphql/hooks/relation/hooksQuery.ts
|
|
1439
|
-
var
|
|
1453
|
+
var import_client26 = require("@apollo/client");
|
|
1440
1454
|
var useGetRelation = (id) => {
|
|
1441
|
-
const { loading, error, data, refetch } = (0,
|
|
1455
|
+
const { loading, error, data, refetch } = (0, import_client26.useQuery)(GET_RELATION, {
|
|
1442
1456
|
fetchPolicy: "network-only",
|
|
1443
1457
|
skip: id === "",
|
|
1444
1458
|
variables: { id }
|
|
@@ -1447,7 +1461,7 @@ var useGetRelation = (id) => {
|
|
|
1447
1461
|
return { error, loading, refetch, relation };
|
|
1448
1462
|
};
|
|
1449
1463
|
var useGetRelationByMarketAndStallholder = (marketId, stallholderId) => {
|
|
1450
|
-
const { loading, error, data, refetch } = (0,
|
|
1464
|
+
const { loading, error, data, refetch } = (0, import_client26.useQuery)(
|
|
1451
1465
|
GET_RELATION_BY_MARKET_AND_STALLHOLDER,
|
|
1452
1466
|
{
|
|
1453
1467
|
fetchPolicy: "network-only",
|
|
@@ -1459,7 +1473,7 @@ var useGetRelationByMarketAndStallholder = (marketId, stallholderId) => {
|
|
|
1459
1473
|
return { error, loading, refetch, relationByMarketAndStallholder };
|
|
1460
1474
|
};
|
|
1461
1475
|
var useGetMarketRelations = (marketId) => {
|
|
1462
|
-
const { loading, error, data, refetch } = (0,
|
|
1476
|
+
const { loading, error, data, refetch } = (0, import_client26.useQuery)(GET_MARKET_RELATIONS, {
|
|
1463
1477
|
fetchPolicy: "network-only",
|
|
1464
1478
|
skip: marketId === "",
|
|
1465
1479
|
variables: { marketId }
|
|
@@ -1468,7 +1482,7 @@ var useGetMarketRelations = (marketId) => {
|
|
|
1468
1482
|
return { error, loading, marketRelations, refetch };
|
|
1469
1483
|
};
|
|
1470
1484
|
var useGetStallholderRelations = (stallholderId) => {
|
|
1471
|
-
const { loading, error, data, refetch } = (0,
|
|
1485
|
+
const { loading, error, data, refetch } = (0, import_client26.useQuery)(
|
|
1472
1486
|
GET_STALLHOLDER_RELATIONS,
|
|
1473
1487
|
{
|
|
1474
1488
|
fetchPolicy: "network-only",
|
|
@@ -1480,7 +1494,7 @@ var useGetStallholderRelations = (stallholderId) => {
|
|
|
1480
1494
|
return { error, loading, refetch, stallholderRelations };
|
|
1481
1495
|
};
|
|
1482
1496
|
var useGetResourceConnections = (resourceId, resourceType) => {
|
|
1483
|
-
const { loading, error, data, refetch } = (0,
|
|
1497
|
+
const { loading, error, data, refetch } = (0, import_client26.useQuery)(GET_RESOURCE_CONNECTIONS, {
|
|
1484
1498
|
fetchPolicy: "network-only",
|
|
1485
1499
|
variables: { resourceId, resourceType }
|
|
1486
1500
|
});
|
|
@@ -1489,11 +1503,11 @@ var useGetResourceConnections = (resourceId, resourceType) => {
|
|
|
1489
1503
|
};
|
|
1490
1504
|
|
|
1491
1505
|
// src/graphql/hooks/stallholder/hooksMutation.ts
|
|
1492
|
-
var
|
|
1506
|
+
var import_client28 = require("@apollo/client");
|
|
1493
1507
|
|
|
1494
1508
|
// src/graphql/mutations/stallholder.ts
|
|
1495
|
-
var
|
|
1496
|
-
var CREATE_STALLHOLDER_MUTATION =
|
|
1509
|
+
var import_client27 = require("@apollo/client");
|
|
1510
|
+
var CREATE_STALLHOLDER_MUTATION = import_client27.gql`
|
|
1497
1511
|
mutation createStallholder($input: StallholderInputType!) {
|
|
1498
1512
|
createStallholder(input: $input) {
|
|
1499
1513
|
...StallholderFields
|
|
@@ -1501,7 +1515,7 @@ var CREATE_STALLHOLDER_MUTATION = import_client26.gql`
|
|
|
1501
1515
|
}
|
|
1502
1516
|
${STALLHOLDER}
|
|
1503
1517
|
`;
|
|
1504
|
-
var UPDATE_STALLHOLDER_MUTATION =
|
|
1518
|
+
var UPDATE_STALLHOLDER_MUTATION = import_client27.gql`
|
|
1505
1519
|
mutation updateStallholder($_id: ID!, $input: StallholderInputType!) {
|
|
1506
1520
|
updateStallholder(_id: $_id, input: $input) {
|
|
1507
1521
|
...StallholderFields
|
|
@@ -1509,12 +1523,12 @@ var UPDATE_STALLHOLDER_MUTATION = import_client26.gql`
|
|
|
1509
1523
|
}
|
|
1510
1524
|
${STALLHOLDER}
|
|
1511
1525
|
`;
|
|
1512
|
-
var DELETE_STALLHOLDER_MUTATION =
|
|
1526
|
+
var DELETE_STALLHOLDER_MUTATION = import_client27.gql`
|
|
1513
1527
|
mutation deleteStallholder($_id: ID!) {
|
|
1514
1528
|
deleteStallholder(_id: $_id)
|
|
1515
1529
|
}
|
|
1516
1530
|
`;
|
|
1517
|
-
var CREATE_STALLHOLDER_INFO_MUTATION =
|
|
1531
|
+
var CREATE_STALLHOLDER_INFO_MUTATION = import_client27.gql`
|
|
1518
1532
|
mutation createStallholderInfo($input: StallholderInfoInputType!) {
|
|
1519
1533
|
createStallholderInfo(input: $input) {
|
|
1520
1534
|
...StallholderInfoFields
|
|
@@ -1522,7 +1536,7 @@ var CREATE_STALLHOLDER_INFO_MUTATION = import_client26.gql`
|
|
|
1522
1536
|
}
|
|
1523
1537
|
${STALLHOLDER_INFO}
|
|
1524
1538
|
`;
|
|
1525
|
-
var UPDATE_STALLHOLDER_INFO_MUTATION =
|
|
1539
|
+
var UPDATE_STALLHOLDER_INFO_MUTATION = import_client27.gql`
|
|
1526
1540
|
mutation updateStallholderInfo($_id: ID!, $input: StallholderInfoInputType!) {
|
|
1527
1541
|
updateStallholderInfo(_id: $_id, input: $input) {
|
|
1528
1542
|
...StallholderInfoFields
|
|
@@ -1533,7 +1547,7 @@ var UPDATE_STALLHOLDER_INFO_MUTATION = import_client26.gql`
|
|
|
1533
1547
|
|
|
1534
1548
|
// src/graphql/hooks/stallholder/hooksMutation.ts
|
|
1535
1549
|
var useCreateStallholder = () => {
|
|
1536
|
-
const [createStallholder, { loading, error }] = (0,
|
|
1550
|
+
const [createStallholder, { loading, error }] = (0, import_client28.useMutation)(
|
|
1537
1551
|
CREATE_STALLHOLDER_MUTATION,
|
|
1538
1552
|
{
|
|
1539
1553
|
awaitRefetchQueries: true,
|
|
@@ -1545,7 +1559,7 @@ var useCreateStallholder = () => {
|
|
|
1545
1559
|
return { createStallholder, error, loading };
|
|
1546
1560
|
};
|
|
1547
1561
|
var useUpdateStallholder = () => {
|
|
1548
|
-
const [updateStallholder, { loading, error }] = (0,
|
|
1562
|
+
const [updateStallholder, { loading, error }] = (0, import_client28.useMutation)(
|
|
1549
1563
|
UPDATE_STALLHOLDER_MUTATION,
|
|
1550
1564
|
{
|
|
1551
1565
|
awaitRefetchQueries: true,
|
|
@@ -1557,7 +1571,7 @@ var useUpdateStallholder = () => {
|
|
|
1557
1571
|
return { error, loading, updateStallholder };
|
|
1558
1572
|
};
|
|
1559
1573
|
var useDeleteStallholder = () => {
|
|
1560
|
-
const [deleteStallholder, { loading, error }] = (0,
|
|
1574
|
+
const [deleteStallholder, { loading, error }] = (0, import_client28.useMutation)(
|
|
1561
1575
|
DELETE_STALLHOLDER_MUTATION,
|
|
1562
1576
|
{
|
|
1563
1577
|
awaitRefetchQueries: true,
|
|
@@ -1569,7 +1583,7 @@ var useDeleteStallholder = () => {
|
|
|
1569
1583
|
return { deleteStallholder, error, loading };
|
|
1570
1584
|
};
|
|
1571
1585
|
var useCreateStallholderInfo = () => {
|
|
1572
|
-
const [createStallholderInfo, { loading, error }] = (0,
|
|
1586
|
+
const [createStallholderInfo, { loading, error }] = (0, import_client28.useMutation)(
|
|
1573
1587
|
CREATE_STALLHOLDER_INFO_MUTATION,
|
|
1574
1588
|
{
|
|
1575
1589
|
awaitRefetchQueries: true,
|
|
@@ -1593,7 +1607,7 @@ var useCreateStallholderInfo = () => {
|
|
|
1593
1607
|
return { createStallholderInfo, error, loading };
|
|
1594
1608
|
};
|
|
1595
1609
|
var useUpdateStallholderInfo = () => {
|
|
1596
|
-
const [updateStallholderInfo, { loading, error }] = (0,
|
|
1610
|
+
const [updateStallholderInfo, { loading, error }] = (0, import_client28.useMutation)(
|
|
1597
1611
|
UPDATE_STALLHOLDER_INFO_MUTATION,
|
|
1598
1612
|
{
|
|
1599
1613
|
awaitRefetchQueries: true,
|
|
@@ -1614,9 +1628,9 @@ var useUpdateStallholderInfo = () => {
|
|
|
1614
1628
|
};
|
|
1615
1629
|
|
|
1616
1630
|
// src/graphql/hooks/stallholder/hooksQuery.ts
|
|
1617
|
-
var
|
|
1631
|
+
var import_client29 = require("@apollo/client");
|
|
1618
1632
|
var useGetStallholders = () => {
|
|
1619
|
-
const { loading, error, data, refetch } = (0,
|
|
1633
|
+
const { loading, error, data, refetch } = (0, import_client29.useQuery)(GET_STALLHOLDERS, {
|
|
1620
1634
|
fetchPolicy: "network-only"
|
|
1621
1635
|
});
|
|
1622
1636
|
const stallholders = data?.stallholders;
|
|
@@ -1628,7 +1642,7 @@ var useGetStallholders = () => {
|
|
|
1628
1642
|
};
|
|
1629
1643
|
};
|
|
1630
1644
|
var useGetStallholder = (_id) => {
|
|
1631
|
-
const { loading, error, data, refetch } = (0,
|
|
1645
|
+
const { loading, error, data, refetch } = (0, import_client29.useQuery)(GET_STALLHOLDER, {
|
|
1632
1646
|
fetchPolicy: "network-only",
|
|
1633
1647
|
skip: !_id,
|
|
1634
1648
|
variables: { _id }
|
|
@@ -1637,7 +1651,7 @@ var useGetStallholder = (_id) => {
|
|
|
1637
1651
|
return { error, loading, refetch, stallholder };
|
|
1638
1652
|
};
|
|
1639
1653
|
var useGetStallholdersByRegion = (region) => {
|
|
1640
|
-
const { loading, error, data, refetch } = (0,
|
|
1654
|
+
const { loading, error, data, refetch } = (0, import_client29.useQuery)(
|
|
1641
1655
|
GET_STALLHOLDERS_BY_REGION,
|
|
1642
1656
|
{
|
|
1643
1657
|
fetchPolicy: "no-cache",
|
|
@@ -1649,7 +1663,7 @@ var useGetStallholdersByRegion = (region) => {
|
|
|
1649
1663
|
return { error, loading, refetch, stallholdersByRegion };
|
|
1650
1664
|
};
|
|
1651
1665
|
var useSearchStallholders = (search, region) => {
|
|
1652
|
-
const { loading, error, data, refetch } = (0,
|
|
1666
|
+
const { loading, error, data, refetch } = (0, import_client29.useQuery)(SEARCH_STALLHOLDERS, {
|
|
1653
1667
|
fetchPolicy: "network-only",
|
|
1654
1668
|
skip: search.length < 3,
|
|
1655
1669
|
variables: { region, search }
|
|
@@ -1658,7 +1672,7 @@ var useSearchStallholders = (search, region) => {
|
|
|
1658
1672
|
return { error, loading, refetch, stallholderSearch };
|
|
1659
1673
|
};
|
|
1660
1674
|
var useGetStallholderInfo = (stallholderId) => {
|
|
1661
|
-
const { loading, error, data, refetch } = (0,
|
|
1675
|
+
const { loading, error, data, refetch } = (0, import_client29.useQuery)(GET_STALLHOLDER_INFO, {
|
|
1662
1676
|
fetchPolicy: "network-only",
|
|
1663
1677
|
skip: !stallholderId,
|
|
1664
1678
|
variables: { stallholderId }
|
|
@@ -1673,14 +1687,14 @@ var useGetStallholderInfo = (stallholderId) => {
|
|
|
1673
1687
|
};
|
|
1674
1688
|
|
|
1675
1689
|
// src/graphql/hooks/testers/hooksMutation.ts
|
|
1676
|
-
var
|
|
1690
|
+
var import_client32 = require("@apollo/client");
|
|
1677
1691
|
|
|
1678
1692
|
// src/graphql/mutations/testers.ts
|
|
1679
|
-
var
|
|
1693
|
+
var import_client31 = require("@apollo/client");
|
|
1680
1694
|
|
|
1681
1695
|
// src/graphql/queries/testers.ts
|
|
1682
|
-
var
|
|
1683
|
-
var TESTER_FIELDS_FRAGMENT =
|
|
1696
|
+
var import_client30 = require("@apollo/client");
|
|
1697
|
+
var TESTER_FIELDS_FRAGMENT = import_client30.gql`
|
|
1684
1698
|
fragment TesterFields on TesterType {
|
|
1685
1699
|
_id
|
|
1686
1700
|
active
|
|
@@ -1693,7 +1707,7 @@ var TESTER_FIELDS_FRAGMENT = import_client29.gql`
|
|
|
1693
1707
|
updatedAt
|
|
1694
1708
|
}
|
|
1695
1709
|
`;
|
|
1696
|
-
var GET_TESTERS =
|
|
1710
|
+
var GET_TESTERS = import_client30.gql`
|
|
1697
1711
|
query getTesters {
|
|
1698
1712
|
testers {
|
|
1699
1713
|
...TesterFields
|
|
@@ -1701,7 +1715,7 @@ var GET_TESTERS = import_client29.gql`
|
|
|
1701
1715
|
}
|
|
1702
1716
|
${TESTER_FIELDS_FRAGMENT}
|
|
1703
1717
|
`;
|
|
1704
|
-
var GET_TESTER =
|
|
1718
|
+
var GET_TESTER = import_client30.gql`
|
|
1705
1719
|
query getTester($_id: ID!) {
|
|
1706
1720
|
tester(_id: $_id) {
|
|
1707
1721
|
...TesterFields
|
|
@@ -1711,7 +1725,7 @@ var GET_TESTER = import_client29.gql`
|
|
|
1711
1725
|
`;
|
|
1712
1726
|
|
|
1713
1727
|
// src/graphql/mutations/testers.ts
|
|
1714
|
-
var CREATE_TESTER_MUTATION =
|
|
1728
|
+
var CREATE_TESTER_MUTATION = import_client31.gql`
|
|
1715
1729
|
mutation createTester($input: TesterInputType!) {
|
|
1716
1730
|
createTester(input: $input) {
|
|
1717
1731
|
...TesterFields
|
|
@@ -1719,7 +1733,7 @@ var CREATE_TESTER_MUTATION = import_client30.gql`
|
|
|
1719
1733
|
}
|
|
1720
1734
|
${TESTER_FIELDS_FRAGMENT}
|
|
1721
1735
|
`;
|
|
1722
|
-
var UPDATE_TESTER_MUTATION =
|
|
1736
|
+
var UPDATE_TESTER_MUTATION = import_client31.gql`
|
|
1723
1737
|
mutation updateTester($_id: ID!, $input: TesterInputType!) {
|
|
1724
1738
|
updateTester(_id: $_id, input: $input) {
|
|
1725
1739
|
...TesterFields
|
|
@@ -1727,7 +1741,7 @@ var UPDATE_TESTER_MUTATION = import_client30.gql`
|
|
|
1727
1741
|
}
|
|
1728
1742
|
${TESTER_FIELDS_FRAGMENT}
|
|
1729
1743
|
`;
|
|
1730
|
-
var DELETE_TESTER_MUTATION =
|
|
1744
|
+
var DELETE_TESTER_MUTATION = import_client31.gql`
|
|
1731
1745
|
mutation deleteTester($_id: ID!) {
|
|
1732
1746
|
deleteTester(_id: $_id)
|
|
1733
1747
|
}
|
|
@@ -1735,7 +1749,7 @@ var DELETE_TESTER_MUTATION = import_client30.gql`
|
|
|
1735
1749
|
|
|
1736
1750
|
// src/graphql/hooks/testers/hooksMutation.ts
|
|
1737
1751
|
var useCreateTester = () => {
|
|
1738
|
-
const [createTester, { data, loading, error }] = (0,
|
|
1752
|
+
const [createTester, { data, loading, error }] = (0, import_client32.useMutation)(
|
|
1739
1753
|
CREATE_TESTER_MUTATION
|
|
1740
1754
|
);
|
|
1741
1755
|
return {
|
|
@@ -1746,7 +1760,7 @@ var useCreateTester = () => {
|
|
|
1746
1760
|
};
|
|
1747
1761
|
};
|
|
1748
1762
|
var useUpdateTester = () => {
|
|
1749
|
-
const [updateTester, { data, loading, error }] = (0,
|
|
1763
|
+
const [updateTester, { data, loading, error }] = (0, import_client32.useMutation)(
|
|
1750
1764
|
UPDATE_TESTER_MUTATION
|
|
1751
1765
|
);
|
|
1752
1766
|
return {
|
|
@@ -1757,16 +1771,16 @@ var useUpdateTester = () => {
|
|
|
1757
1771
|
};
|
|
1758
1772
|
};
|
|
1759
1773
|
var useDeleteTester = () => {
|
|
1760
|
-
const [deleteTester, { loading, error }] = (0,
|
|
1774
|
+
const [deleteTester, { loading, error }] = (0, import_client32.useMutation)(
|
|
1761
1775
|
DELETE_TESTER_MUTATION
|
|
1762
1776
|
);
|
|
1763
1777
|
return { deleteTester, error, loading };
|
|
1764
1778
|
};
|
|
1765
1779
|
|
|
1766
1780
|
// src/graphql/hooks/testers/hooksQuery.ts
|
|
1767
|
-
var
|
|
1781
|
+
var import_client33 = require("@apollo/client");
|
|
1768
1782
|
var useGetTesters = () => {
|
|
1769
|
-
const { data, loading, error, refetch } = (0,
|
|
1783
|
+
const { data, loading, error, refetch } = (0, import_client33.useQuery)(GET_TESTERS);
|
|
1770
1784
|
const testers = data?.testers;
|
|
1771
1785
|
return {
|
|
1772
1786
|
error,
|
|
@@ -1776,7 +1790,7 @@ var useGetTesters = () => {
|
|
|
1776
1790
|
};
|
|
1777
1791
|
};
|
|
1778
1792
|
var useGetTester = (_id) => {
|
|
1779
|
-
const { data, loading, error, refetch } = (0,
|
|
1793
|
+
const { data, loading, error, refetch } = (0, import_client33.useQuery)(GET_TESTER, {
|
|
1780
1794
|
skip: !_id,
|
|
1781
1795
|
variables: { _id }
|
|
1782
1796
|
});
|
|
@@ -1785,11 +1799,11 @@ var useGetTester = (_id) => {
|
|
|
1785
1799
|
};
|
|
1786
1800
|
|
|
1787
1801
|
// src/graphql/hooks/user/hooksMutation.ts
|
|
1788
|
-
var
|
|
1802
|
+
var import_client35 = require("@apollo/client");
|
|
1789
1803
|
|
|
1790
1804
|
// src/graphql/mutations/user.ts
|
|
1791
|
-
var
|
|
1792
|
-
var CREATE_USER_MUTATION =
|
|
1805
|
+
var import_client34 = require("@apollo/client");
|
|
1806
|
+
var CREATE_USER_MUTATION = import_client34.gql`
|
|
1793
1807
|
mutation createUser($input: UserInputType!) {
|
|
1794
1808
|
createUser(input: $input) {
|
|
1795
1809
|
...UserFields
|
|
@@ -1797,7 +1811,7 @@ var CREATE_USER_MUTATION = import_client33.gql`
|
|
|
1797
1811
|
}
|
|
1798
1812
|
${USER_FIELDS_FRAGMENT}
|
|
1799
1813
|
`;
|
|
1800
|
-
var UPDATE_USER_MUTATION =
|
|
1814
|
+
var UPDATE_USER_MUTATION = import_client34.gql`
|
|
1801
1815
|
mutation updateUser($_id: ID!, $input: UserInputType!) {
|
|
1802
1816
|
updateUser(_id: $_id, input: $input) {
|
|
1803
1817
|
...UserFields
|
|
@@ -1805,12 +1819,12 @@ var UPDATE_USER_MUTATION = import_client33.gql`
|
|
|
1805
1819
|
}
|
|
1806
1820
|
${USER_FIELDS_FRAGMENT}
|
|
1807
1821
|
`;
|
|
1808
|
-
var DELETE_USER_MUTATION =
|
|
1822
|
+
var DELETE_USER_MUTATION = import_client34.gql`
|
|
1809
1823
|
mutation deleteUser($_id: ID!) {
|
|
1810
1824
|
deleteUser(_id: $_id)
|
|
1811
1825
|
}
|
|
1812
1826
|
`;
|
|
1813
|
-
var ADD_USER_FAVOURITE_RESOURCE_MUTATION =
|
|
1827
|
+
var ADD_USER_FAVOURITE_RESOURCE_MUTATION = import_client34.gql`
|
|
1814
1828
|
mutation addUserFavouriteResource(
|
|
1815
1829
|
$resourceId: ID!
|
|
1816
1830
|
$resourceType: ResourceTypeEnum!
|
|
@@ -1826,7 +1840,7 @@ var ADD_USER_FAVOURITE_RESOURCE_MUTATION = import_client33.gql`
|
|
|
1826
1840
|
}
|
|
1827
1841
|
${USER_FIELDS_FRAGMENT}
|
|
1828
1842
|
`;
|
|
1829
|
-
var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION =
|
|
1843
|
+
var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = import_client34.gql`
|
|
1830
1844
|
mutation removeUserFavouriteResource(
|
|
1831
1845
|
$resourceId: ID!
|
|
1832
1846
|
$resourceType: ResourceTypeEnum!
|
|
@@ -1845,11 +1859,11 @@ var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = import_client33.gql`
|
|
|
1845
1859
|
|
|
1846
1860
|
// src/graphql/hooks/user/hooksMutation.ts
|
|
1847
1861
|
var useCreateUser = () => {
|
|
1848
|
-
const [createUser, { loading, error }] = (0,
|
|
1862
|
+
const [createUser, { loading, error }] = (0, import_client35.useMutation)(CREATE_USER_MUTATION);
|
|
1849
1863
|
return { createUser, error, loading };
|
|
1850
1864
|
};
|
|
1851
1865
|
var useUpdateUser = () => {
|
|
1852
|
-
const [updateUser, { loading, error }] = (0,
|
|
1866
|
+
const [updateUser, { loading, error }] = (0, import_client35.useMutation)(UPDATE_USER_MUTATION, {
|
|
1853
1867
|
awaitRefetchQueries: true,
|
|
1854
1868
|
refetchQueries: (mutationResult) => {
|
|
1855
1869
|
const userId = mutationResult?.data?.updateUser?._id;
|
|
@@ -1860,11 +1874,11 @@ var useUpdateUser = () => {
|
|
|
1860
1874
|
return { error, loading, updateUser };
|
|
1861
1875
|
};
|
|
1862
1876
|
var useDeleteUser = () => {
|
|
1863
|
-
const [deleteUser, { loading, error }] = (0,
|
|
1877
|
+
const [deleteUser, { loading, error }] = (0, import_client35.useMutation)(DELETE_USER_MUTATION);
|
|
1864
1878
|
return { deleteUser, error, loading };
|
|
1865
1879
|
};
|
|
1866
1880
|
var useAddUserFavouriteResource = () => {
|
|
1867
|
-
const [addUserFavouriteResource, { loading, error }] = (0,
|
|
1881
|
+
const [addUserFavouriteResource, { loading, error }] = (0, import_client35.useMutation)(
|
|
1868
1882
|
ADD_USER_FAVOURITE_RESOURCE_MUTATION,
|
|
1869
1883
|
{
|
|
1870
1884
|
awaitRefetchQueries: true,
|
|
@@ -1874,7 +1888,7 @@ var useAddUserFavouriteResource = () => {
|
|
|
1874
1888
|
return { addUserFavouriteResource, error, loading };
|
|
1875
1889
|
};
|
|
1876
1890
|
var useRemoveUserFavouriteResource = () => {
|
|
1877
|
-
const [removeUserFavouriteResource, { loading, error }] = (0,
|
|
1891
|
+
const [removeUserFavouriteResource, { loading, error }] = (0, import_client35.useMutation)(
|
|
1878
1892
|
REMOVE_USER_FAVOURITE_RESOURCE_MUTATION,
|
|
1879
1893
|
{
|
|
1880
1894
|
awaitRefetchQueries: true,
|
|
@@ -1885,37 +1899,37 @@ var useRemoveUserFavouriteResource = () => {
|
|
|
1885
1899
|
};
|
|
1886
1900
|
|
|
1887
1901
|
// src/graphql/hooks/user/hooksQuery.ts
|
|
1888
|
-
var
|
|
1902
|
+
var import_client36 = require("@apollo/client");
|
|
1889
1903
|
var useGetUsers = () => {
|
|
1890
|
-
const { loading, error, data, refetch } = (0,
|
|
1904
|
+
const { loading, error, data, refetch } = (0, import_client36.useQuery)(GET_USERS, {
|
|
1891
1905
|
fetchPolicy: "network-only"
|
|
1892
1906
|
});
|
|
1893
1907
|
const users = data?.users;
|
|
1894
1908
|
return { error, loading, refetch, users };
|
|
1895
1909
|
};
|
|
1896
1910
|
var useGetUser = (_id) => {
|
|
1897
|
-
const { loading, error, data, refetch } = (0,
|
|
1911
|
+
const { loading, error, data, refetch } = (0, import_client36.useQuery)(GET_USER, {
|
|
1898
1912
|
variables: { _id }
|
|
1899
1913
|
});
|
|
1900
1914
|
const user = data?.user;
|
|
1901
1915
|
return { error, loading, refetch, user };
|
|
1902
1916
|
};
|
|
1903
1917
|
var useGetUserMarkets = () => {
|
|
1904
|
-
const { loading, error, data, refetch } = (0,
|
|
1918
|
+
const { loading, error, data, refetch } = (0, import_client36.useQuery)(GET_USER_MARKETS, {
|
|
1905
1919
|
fetchPolicy: "network-only"
|
|
1906
1920
|
});
|
|
1907
1921
|
const userMarkets = data?.userMarkets;
|
|
1908
1922
|
return { error, loading, refetch, userMarkets };
|
|
1909
1923
|
};
|
|
1910
1924
|
var useGetUserStallholder = () => {
|
|
1911
|
-
const { loading, error, data, refetch } = (0,
|
|
1925
|
+
const { loading, error, data, refetch } = (0, import_client36.useQuery)(GET_USER_STALLHOLDER, {
|
|
1912
1926
|
fetchPolicy: "network-only"
|
|
1913
1927
|
});
|
|
1914
1928
|
const userStallholder = data?.userStallholder;
|
|
1915
1929
|
return { error, loading, refetch, userStallholder };
|
|
1916
1930
|
};
|
|
1917
1931
|
var useGetUserFavourites = () => {
|
|
1918
|
-
const { loading, error, data, refetch } = (0,
|
|
1932
|
+
const { loading, error, data, refetch } = (0, import_client36.useQuery)(GET_USER_FAVOURITES, {
|
|
1919
1933
|
fetchPolicy: "network-only"
|
|
1920
1934
|
});
|
|
1921
1935
|
const markets = data?.userFavourites.markets;
|
|
@@ -1927,28 +1941,21 @@ var useGetUserFavourites = () => {
|
|
|
1927
1941
|
return { error, loading, refetch, userFavourites };
|
|
1928
1942
|
};
|
|
1929
1943
|
var useGetUserNotifications = () => {
|
|
1930
|
-
const { loading, error, data, refetch } = (0,
|
|
1944
|
+
const { loading, error, data, refetch } = (0, import_client36.useQuery)(GET_USER_NOTIFICATIONS, {
|
|
1931
1945
|
fetchPolicy: "network-only"
|
|
1932
1946
|
});
|
|
1933
1947
|
const userNotifications = data?.userNotifications;
|
|
1934
1948
|
return { error, loading, refetch, userNotifications };
|
|
1935
1949
|
};
|
|
1936
1950
|
|
|
1937
|
-
// src/graphql/
|
|
1938
|
-
var
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
) {
|
|
1946
|
-
userNotifications(
|
|
1947
|
-
userId: $userId
|
|
1948
|
-
limit: $limit
|
|
1949
|
-
offset: $offset
|
|
1950
|
-
isRead: $isRead
|
|
1951
|
-
) {
|
|
1951
|
+
// src/graphql/hooks/notifications.ts
|
|
1952
|
+
var import_client39 = require("@apollo/client");
|
|
1953
|
+
|
|
1954
|
+
// src/graphql/mutations/notification.ts
|
|
1955
|
+
var import_client37 = require("@apollo/client");
|
|
1956
|
+
var CREATE_NOTIFICATION = import_client37.gql`
|
|
1957
|
+
mutation CreateNotification($input: CreateNotificationInput!) {
|
|
1958
|
+
createNotification(input: $input) {
|
|
1952
1959
|
id
|
|
1953
1960
|
userId
|
|
1954
1961
|
title
|
|
@@ -1961,17 +1968,9 @@ var GET_USER_NOTIFICATIONS2 = import_client36.gql`
|
|
|
1961
1968
|
}
|
|
1962
1969
|
}
|
|
1963
1970
|
`;
|
|
1964
|
-
var
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
total
|
|
1968
|
-
unread
|
|
1969
|
-
}
|
|
1970
|
-
}
|
|
1971
|
-
`;
|
|
1972
|
-
var GET_UNREAD_NOTIFICATIONS = import_client36.gql`
|
|
1973
|
-
query GetUnreadNotifications($userId: String!, $limit: Int) {
|
|
1974
|
-
unreadNotifications(userId: $userId, limit: $limit) {
|
|
1971
|
+
var CREATE_BULK_NOTIFICATIONS = import_client37.gql`
|
|
1972
|
+
mutation CreateBulkNotifications($input: CreateBulkNotificationInput!) {
|
|
1973
|
+
createBulkNotifications(input: $input) {
|
|
1975
1974
|
id
|
|
1976
1975
|
userId
|
|
1977
1976
|
title
|
|
@@ -1984,12 +1983,9 @@ var GET_UNREAD_NOTIFICATIONS = import_client36.gql`
|
|
|
1984
1983
|
}
|
|
1985
1984
|
}
|
|
1986
1985
|
`;
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
var CREATE_NOTIFICATION = import_client37.gql`
|
|
1991
|
-
mutation CreateNotification($input: CreateNotificationInput!) {
|
|
1992
|
-
createNotification(input: $input) {
|
|
1986
|
+
var MARK_NOTIFICATION_READ = import_client37.gql`
|
|
1987
|
+
mutation MarkNotificationRead($input: MarkNotificationReadInput!) {
|
|
1988
|
+
markNotificationRead(input: $input) {
|
|
1993
1989
|
id
|
|
1994
1990
|
userId
|
|
1995
1991
|
title
|
|
@@ -2002,9 +1998,27 @@ var CREATE_NOTIFICATION = import_client37.gql`
|
|
|
2002
1998
|
}
|
|
2003
1999
|
}
|
|
2004
2000
|
`;
|
|
2005
|
-
var
|
|
2006
|
-
mutation
|
|
2007
|
-
|
|
2001
|
+
var MARK_ALL_NOTIFICATIONS_READ = import_client37.gql`
|
|
2002
|
+
mutation MarkAllNotificationsRead($input: MarkAllNotificationsReadInput!) {
|
|
2003
|
+
markAllNotificationsRead(input: $input)
|
|
2004
|
+
}
|
|
2005
|
+
`;
|
|
2006
|
+
|
|
2007
|
+
// src/graphql/queries/notification.ts
|
|
2008
|
+
var import_client38 = require("@apollo/client");
|
|
2009
|
+
var GET_USER_NOTIFICATIONS2 = import_client38.gql`
|
|
2010
|
+
query GetUserNotifications(
|
|
2011
|
+
$userId: String!
|
|
2012
|
+
$limit: Int
|
|
2013
|
+
$offset: Int
|
|
2014
|
+
$isRead: String
|
|
2015
|
+
) {
|
|
2016
|
+
userNotifications(
|
|
2017
|
+
userId: $userId
|
|
2018
|
+
limit: $limit
|
|
2019
|
+
offset: $offset
|
|
2020
|
+
isRead: $isRead
|
|
2021
|
+
) {
|
|
2008
2022
|
id
|
|
2009
2023
|
userId
|
|
2010
2024
|
title
|
|
@@ -2017,9 +2031,17 @@ var CREATE_BULK_NOTIFICATIONS = import_client37.gql`
|
|
|
2017
2031
|
}
|
|
2018
2032
|
}
|
|
2019
2033
|
`;
|
|
2020
|
-
var
|
|
2021
|
-
|
|
2022
|
-
|
|
2034
|
+
var GET_NOTIFICATION_COUNT = import_client38.gql`
|
|
2035
|
+
query GetNotificationCount($userId: String!) {
|
|
2036
|
+
notificationCount(userId: $userId) {
|
|
2037
|
+
total
|
|
2038
|
+
unread
|
|
2039
|
+
}
|
|
2040
|
+
}
|
|
2041
|
+
`;
|
|
2042
|
+
var GET_UNREAD_NOTIFICATIONS = import_client38.gql`
|
|
2043
|
+
query GetUnreadNotifications($userId: String!, $limit: Int) {
|
|
2044
|
+
unreadNotifications(userId: $userId, limit: $limit) {
|
|
2023
2045
|
id
|
|
2024
2046
|
userId
|
|
2025
2047
|
title
|
|
@@ -2032,20 +2054,107 @@ var MARK_NOTIFICATION_READ = import_client37.gql`
|
|
|
2032
2054
|
}
|
|
2033
2055
|
}
|
|
2034
2056
|
`;
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2057
|
+
|
|
2058
|
+
// src/graphql/hooks/notifications.ts
|
|
2059
|
+
var useNotifications = (userId) => {
|
|
2060
|
+
const client = (0, import_client39.useApolloClient)();
|
|
2061
|
+
const {
|
|
2062
|
+
data: notificationsData,
|
|
2063
|
+
loading: notificationsLoading,
|
|
2064
|
+
error: notificationsError,
|
|
2065
|
+
refetch: refetchNotifications
|
|
2066
|
+
} = (0, import_client39.useQuery)(GET_USER_NOTIFICATIONS2, {
|
|
2067
|
+
variables: { userId, limit: 50, offset: 0 },
|
|
2068
|
+
fetchPolicy: "cache-and-network",
|
|
2069
|
+
skip: !userId
|
|
2070
|
+
});
|
|
2071
|
+
const {
|
|
2072
|
+
data: countData,
|
|
2073
|
+
loading: countLoading,
|
|
2074
|
+
error: countError,
|
|
2075
|
+
refetch: refetchCount
|
|
2076
|
+
} = (0, import_client39.useQuery)(GET_NOTIFICATION_COUNT, {
|
|
2077
|
+
variables: { userId },
|
|
2078
|
+
fetchPolicy: "cache-and-network",
|
|
2079
|
+
skip: !userId
|
|
2080
|
+
});
|
|
2081
|
+
const {
|
|
2082
|
+
data: unreadData,
|
|
2083
|
+
loading: unreadLoading,
|
|
2084
|
+
error: unreadError,
|
|
2085
|
+
refetch: refetchUnread
|
|
2086
|
+
} = (0, import_client39.useQuery)(GET_UNREAD_NOTIFICATIONS, {
|
|
2087
|
+
variables: { userId, limit: 20 },
|
|
2088
|
+
fetchPolicy: "cache-and-network",
|
|
2089
|
+
skip: !userId
|
|
2090
|
+
});
|
|
2091
|
+
const [createNotification, { loading: createLoading }] = (0, import_client39.useMutation)(CREATE_NOTIFICATION);
|
|
2092
|
+
const [createBulkNotifications, { loading: createBulkLoading }] = (0, import_client39.useMutation)(
|
|
2093
|
+
CREATE_BULK_NOTIFICATIONS
|
|
2094
|
+
);
|
|
2095
|
+
const [markNotificationRead, { loading: markReadLoading }] = (0, import_client39.useMutation)(
|
|
2096
|
+
MARK_NOTIFICATION_READ
|
|
2097
|
+
);
|
|
2098
|
+
const [markAllNotificationsRead, { loading: markAllReadLoading }] = (0, import_client39.useMutation)(MARK_ALL_NOTIFICATIONS_READ);
|
|
2099
|
+
const refetchAll = () => {
|
|
2100
|
+
if (userId) {
|
|
2101
|
+
refetchNotifications();
|
|
2102
|
+
refetchCount();
|
|
2103
|
+
refetchUnread();
|
|
2104
|
+
}
|
|
2105
|
+
};
|
|
2106
|
+
const invalidateCache = () => {
|
|
2107
|
+
client.cache.evict({ fieldName: "userNotifications" });
|
|
2108
|
+
client.cache.evict({ fieldName: "notificationCount" });
|
|
2109
|
+
client.cache.evict({ fieldName: "unreadNotifications" });
|
|
2110
|
+
client.cache.gc();
|
|
2111
|
+
};
|
|
2112
|
+
return {
|
|
2113
|
+
// Data
|
|
2114
|
+
notifications: notificationsData?.userNotifications || [],
|
|
2115
|
+
count: countData?.notificationCount || { total: 0, unread: 0 },
|
|
2116
|
+
unreadNotifications: unreadData?.unreadNotifications || [],
|
|
2117
|
+
// Loading states
|
|
2118
|
+
notificationsLoading,
|
|
2119
|
+
countLoading,
|
|
2120
|
+
unreadLoading,
|
|
2121
|
+
createLoading,
|
|
2122
|
+
createBulkLoading,
|
|
2123
|
+
markReadLoading,
|
|
2124
|
+
markAllReadLoading,
|
|
2125
|
+
// Errors
|
|
2126
|
+
notificationsError,
|
|
2127
|
+
countError,
|
|
2128
|
+
unreadError,
|
|
2129
|
+
// Actions
|
|
2130
|
+
createNotification: async (input) => {
|
|
2131
|
+
const result = await createNotification({ variables: { input } });
|
|
2132
|
+
refetchAll();
|
|
2133
|
+
return result;
|
|
2134
|
+
},
|
|
2135
|
+
createBulkNotifications: async (input) => {
|
|
2136
|
+
const result = await createBulkNotifications({ variables: { input } });
|
|
2137
|
+
refetchAll();
|
|
2138
|
+
return result;
|
|
2139
|
+
},
|
|
2140
|
+
markNotificationRead: async (input) => {
|
|
2141
|
+
const result = await markNotificationRead({ variables: { input } });
|
|
2142
|
+
refetchAll();
|
|
2143
|
+
return result;
|
|
2144
|
+
},
|
|
2145
|
+
markAllNotificationsRead: async (input) => {
|
|
2146
|
+
const result = await markAllNotificationsRead({ variables: { input } });
|
|
2147
|
+
refetchAll();
|
|
2148
|
+
return result;
|
|
2149
|
+
},
|
|
2150
|
+
// Utilities
|
|
2151
|
+
refetchAll,
|
|
2152
|
+
invalidateCache
|
|
2153
|
+
};
|
|
2154
|
+
};
|
|
2040
2155
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2041
2156
|
0 && (module.exports = {
|
|
2042
|
-
|
|
2043
|
-
CREATE_NOTIFICATION,
|
|
2044
|
-
GET_NOTIFICATION_COUNT,
|
|
2045
|
-
GET_UNREAD_NOTIFICATIONS,
|
|
2046
|
-
GET_USER_NOTIFICATIONS,
|
|
2047
|
-
MARK_ALL_NOTIFICATIONS_READ,
|
|
2048
|
-
MARK_NOTIFICATION_READ,
|
|
2157
|
+
GET_CHAT_MESSAGE,
|
|
2049
2158
|
useAddParticipantToChat,
|
|
2050
2159
|
useAddUserFavouriteResource,
|
|
2051
2160
|
useAdminUpdateResourceType,
|
|
@@ -2067,6 +2176,7 @@ var MARK_ALL_NOTIFICATIONS_READ = import_client37.gql`
|
|
|
2067
2176
|
useDeleteTester,
|
|
2068
2177
|
useDeleteUser,
|
|
2069
2178
|
useGetChat,
|
|
2179
|
+
useGetChatSubscription,
|
|
2070
2180
|
useGetMarket,
|
|
2071
2181
|
useGetMarketInfo,
|
|
2072
2182
|
useGetMarketRelations,
|
|
@@ -2092,6 +2202,7 @@ var MARK_ALL_NOTIFICATIONS_READ = import_client37.gql`
|
|
|
2092
2202
|
useGetUsers,
|
|
2093
2203
|
useLogin,
|
|
2094
2204
|
useLogout,
|
|
2205
|
+
useNotifications,
|
|
2095
2206
|
useRefreshToken,
|
|
2096
2207
|
useRegister,
|
|
2097
2208
|
useRemoveParticipantFromChat,
|