import type { HttpClient } from '@services' export type GetSignedContractPdfInput = { contractVersion: 'client' | 'owner' contractId: string } const getSignedContractPdf = (http: HttpClient) => ({ query: async (input: GetSignedContractPdfInput) => { const response = await http.get<{ data: Blob } | Blob>( `v3/admin/contracts/${input.contractId}/signed_${input.contractVersion}_contract.pdf`, { responseType: 'blob' }, ) return 'data' in response ? response.data : response }, }) export default getSignedContractPdf