(queryClient: QueryClient)
| 47 | }; |
| 48 | |
| 49 | export const putApp = (queryClient: QueryClient) => { |
| 50 | return { |
| 51 | mutationFn: ({ |
| 52 | id, |
| 53 | req, |
| 54 | }: { |
| 55 | id: string; |
| 56 | req: TypesGen.PutOAuth2ProviderAppRequest; |
| 57 | }) => API.putOAuth2ProviderApp(id, req), |
| 58 | onSuccess: async (app: TypesGen.OAuth2ProviderApp) => { |
| 59 | await queryClient.invalidateQueries({ |
| 60 | queryKey: appKey(app.id), |
| 61 | }); |
| 62 | }, |
| 63 | }; |
| 64 | }; |
| 65 | |
| 66 | export const deleteApp = (queryClient: QueryClient) => { |
| 67 | return { |
nothing calls this directly
no test coverage detected