(queryClient: QueryClient, organization: string)
| 190 | }; |
| 191 | |
| 192 | export const deleteGroup = (queryClient: QueryClient, organization: string) => { |
| 193 | return { |
| 194 | mutationFn: ({ groupId }: { groupId: string; groupName: string }) => |
| 195 | API.deleteGroup(groupId), |
| 196 | onSuccess: async ( |
| 197 | _: unknown, |
| 198 | { groupName }: { groupId: string; groupName: string }, |
| 199 | ) => invalidateGroup(queryClient, organization, groupName), |
| 200 | }; |
| 201 | }; |
| 202 | |
| 203 | export const addMembers = (queryClient: QueryClient, organization: string) => { |
| 204 | return { |
no test coverage detected