signoz/frontend/src/hooks/integration/aws/useGenerateConnectionUrl.ts
SagarRajput-7 fbf0e4efc7
fix: fixed paths to unblock lint check failing locally (#7114)
* fix: fixed paths to unblock lint check failing locally

* fix: fixed folder name path

* fix: fixed folder name path - api
2025-02-17 09:51:19 +00:00

22 lines
535 B
TypeScript

import { generateConnectionUrl } from 'api/integration/aws';
import { AxiosError } from 'axios';
import { useMutation, UseMutationResult } from 'react-query';
import {
ConnectionUrlResponse,
GenerateConnectionUrlPayload,
} from 'types/api/integrations/aws';
export function useGenerateConnectionUrl(): UseMutationResult<
ConnectionUrlResponse,
AxiosError,
GenerateConnectionUrlPayload
> {
return useMutation<
ConnectionUrlResponse,
AxiosError,
GenerateConnectionUrlPayload
>({
mutationFn: generateConnectionUrl,
});
}