@timardex/cluemart-shared 1.4.6 → 1.4.7
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 +9 -6
- 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 +9 -6
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/index.cjs +9 -6
- 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 +9 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/graphql/index.d.mts
CHANGED
|
@@ -116,7 +116,17 @@ declare const useAddParticipantToChat: () => {
|
|
|
116
116
|
declare const useRemoveParticipantFromChat: () => {
|
|
117
117
|
error: _apollo_client.ApolloError | undefined;
|
|
118
118
|
loading: boolean;
|
|
119
|
-
removeParticipantFromChat: (options?: _apollo_client.MutationFunctionOptions<
|
|
119
|
+
removeParticipantFromChat: (options?: _apollo_client.MutationFunctionOptions<{
|
|
120
|
+
removeParticipantFromChat: {
|
|
121
|
+
success: boolean;
|
|
122
|
+
region?: string | null;
|
|
123
|
+
};
|
|
124
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
125
|
+
removeParticipantFromChat: {
|
|
126
|
+
success: boolean;
|
|
127
|
+
region?: string | null;
|
|
128
|
+
};
|
|
129
|
+
}>>;
|
|
120
130
|
};
|
|
121
131
|
declare const useToggleChatMessageLike: () => {
|
|
122
132
|
error: _apollo_client.ApolloError | undefined;
|
package/dist/graphql/index.d.ts
CHANGED
|
@@ -116,7 +116,17 @@ declare const useAddParticipantToChat: () => {
|
|
|
116
116
|
declare const useRemoveParticipantFromChat: () => {
|
|
117
117
|
error: _apollo_client.ApolloError | undefined;
|
|
118
118
|
loading: boolean;
|
|
119
|
-
removeParticipantFromChat: (options?: _apollo_client.MutationFunctionOptions<
|
|
119
|
+
removeParticipantFromChat: (options?: _apollo_client.MutationFunctionOptions<{
|
|
120
|
+
removeParticipantFromChat: {
|
|
121
|
+
success: boolean;
|
|
122
|
+
region?: string | null;
|
|
123
|
+
};
|
|
124
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
125
|
+
removeParticipantFromChat: {
|
|
126
|
+
success: boolean;
|
|
127
|
+
region?: string | null;
|
|
128
|
+
};
|
|
129
|
+
}>>;
|
|
120
130
|
};
|
|
121
131
|
declare const useToggleChatMessageLike: () => {
|
|
122
132
|
error: _apollo_client.ApolloError | undefined;
|
package/dist/graphql/index.mjs
CHANGED
|
@@ -1143,13 +1143,16 @@ var useAddParticipantToChat = () => {
|
|
|
1143
1143
|
return { addParticipantToChat, error, loading };
|
|
1144
1144
|
};
|
|
1145
1145
|
var useRemoveParticipantFromChat = () => {
|
|
1146
|
-
const [removeParticipantFromChat, { loading, error }] = useMutation3(
|
|
1147
|
-
|
|
1148
|
-
{
|
|
1149
|
-
|
|
1150
|
-
|
|
1146
|
+
const [removeParticipantFromChat, { loading, error }] = useMutation3(REMOVE_PARTICIPANT_FROM_CHAT_MUTATION, {
|
|
1147
|
+
awaitRefetchQueries: true,
|
|
1148
|
+
refetchQueries: (mutationResult) => {
|
|
1149
|
+
const region = mutationResult?.data?.removeParticipantFromChat?.region;
|
|
1150
|
+
return [
|
|
1151
|
+
{ query: USER_CHATS },
|
|
1152
|
+
{ query: GET_CHATS_BY_REGION, variables: { region } }
|
|
1153
|
+
];
|
|
1151
1154
|
}
|
|
1152
|
-
);
|
|
1155
|
+
});
|
|
1153
1156
|
return { error, loading, removeParticipantFromChat };
|
|
1154
1157
|
};
|
|
1155
1158
|
var useToggleChatMessageLike = () => {
|