import type { ExportFigaro } from '@entities' import type { FilterType, HttpClient, IncludeType } from '@services' import { endpointMaker } from '@services' import type { ApiError, Response } from '@types' export type GetExportsInput = { include?: IncludeType filter?: FilterType pagination?: { per: string; page: string } } const getExports = (http: HttpClient) => ({ query: ( input: GetExportsInput, ): Promise> => { const query = endpointMaker({ includes: input.include, filter: input.filter, pagination: input.pagination, }) return http.get(`v3/admin/exports/figaro${query}`) }, }) export default getExports