Type the api response in useMutation and Usequery - TanStack