import type { HttpClient } from '@services' import type { ApiError, Response } from '@types' export type GetContractPdf = { contractId: string type: string } const getContractPdf = (http: HttpClient) => { return { query: ( input: GetContractPdf, ): Promise> => { return http.get( `v3/user/contracts/${input.type}/${input.contractId}.pdf`, { responseType: 'arraybuffer' }, ) }, } } export default getContractPdf