import type { ClientContractType } from '@entities' import { type HttpClient, type IncludeType, endpointMaker } from '@services' import type { ApiError, Response } from '../../../../types' import type { ClientContractIncludedType } from './getClientContract' export type IdentityDocumentFile = { base64: string name: string mime_type: string } export type SendClientContractInformationInput = { clientContractId: string information: BodyInit includes?: IncludeType } const sendClientContractInformation = (http: HttpClient) => { return { query: ( input: SendClientContractInformationInput, options?: Record, ): Promise< Response > => { const query = endpointMaker({ includes: input.includes, }) return http.put( `v3/user/client_contracts/${input.clientContractId}${query}`, input.information, options, ) }, } } export default sendClientContractInformation