(queryClient: QueryClient)
| 82 | }; |
| 83 | |
| 84 | export const postAppSecret = (queryClient: QueryClient) => { |
| 85 | return { |
| 86 | mutationFn: API.postOAuth2ProviderAppSecret, |
| 87 | onSuccess: async ( |
| 88 | _: TypesGen.OAuth2ProviderAppSecretFull, |
| 89 | appId: string, |
| 90 | ) => { |
| 91 | await queryClient.invalidateQueries({ |
| 92 | queryKey: appSecretsKey(appId), |
| 93 | }); |
| 94 | }, |
| 95 | }; |
| 96 | }; |
| 97 | |
| 98 | export const deleteAppSecret = (queryClient: QueryClient) => { |
| 99 | return { |
nothing calls this directly
no test coverage detected