@timardex/cluemart-shared 1.4.6 → 1.4.8
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/graphql/index.cjs +13 -7
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +11 -1
- package/dist/graphql/index.d.ts +11 -1
- package/dist/graphql/index.mjs +13 -7
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/index.cjs +13 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +11 -1
- package/dist/index.d.ts +11 -1
- package/dist/index.mjs +13 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/graphql/index.cjs
CHANGED
|
@@ -1225,7 +1225,10 @@ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client10.gql`
|
|
|
1225
1225
|
`;
|
|
1226
1226
|
var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client10.gql`
|
|
1227
1227
|
mutation removeParticipantFromChat($chatId: ID!, $userId: ID!) {
|
|
1228
|
-
removeParticipantFromChat(chatId: $chatId, userId: $userId)
|
|
1228
|
+
removeParticipantFromChat(chatId: $chatId, userId: $userId) {
|
|
1229
|
+
success
|
|
1230
|
+
region
|
|
1231
|
+
}
|
|
1229
1232
|
}
|
|
1230
1233
|
`;
|
|
1231
1234
|
var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = import_client10.gql`
|
|
@@ -1287,13 +1290,16 @@ var useAddParticipantToChat = () => {
|
|
|
1287
1290
|
return { addParticipantToChat, error, loading };
|
|
1288
1291
|
};
|
|
1289
1292
|
var useRemoveParticipantFromChat = () => {
|
|
1290
|
-
const [removeParticipantFromChat, { loading, error }] = (0, import_client11.useMutation)(
|
|
1291
|
-
|
|
1292
|
-
{
|
|
1293
|
-
|
|
1294
|
-
|
|
1293
|
+
const [removeParticipantFromChat, { loading, error }] = (0, import_client11.useMutation)(REMOVE_PARTICIPANT_FROM_CHAT_MUTATION, {
|
|
1294
|
+
awaitRefetchQueries: true,
|
|
1295
|
+
refetchQueries: (mutationResult) => {
|
|
1296
|
+
const region = mutationResult?.data?.removeParticipantFromChat?.region;
|
|
1297
|
+
return [
|
|
1298
|
+
{ query: USER_CHATS },
|
|
1299
|
+
{ query: GET_CHATS_BY_REGION, variables: { region } }
|
|
1300
|
+
];
|
|
1295
1301
|
}
|
|
1296
|
-
);
|
|
1302
|
+
});
|
|
1297
1303
|
return { error, loading, removeParticipantFromChat };
|
|
1298
1304
|
};
|
|
1299
1305
|
var useToggleChatMessageLike = () => {
|