import type { BankExport } from '@entities' import type { FilterType, HttpClient, IncludeType } from '@services' import { endpointMaker } from '@services' import type { ApiError, Response } from '@types' export type GetBankExportsInput = { id: string include?: IncludeType filter?: FilterType } const getBankExports = (http: HttpClient) => ({ query: ( input: GetBankExportsInput, ): Promise> => { const query = endpointMaker({ includes: input.include, filter: input.filter, }) return http.get(`v3/admin/bank_exports/${input.id}${query}`) }, }) export default getBankExports