import type { Experience } from '@entities' import { type HttpClient, endpointMaker } from '@services' import type { ApiError, Response } from '@types' export type GetExperiencesInput = { pagination?: { per: string; page: string } } const getExperiences = (http: HttpClient) => ({ query: ( input?: GetExperiencesInput, ): Promise> => { const query = endpointMaker({ pagination: input?.pagination ?? { page: '1', per: '100' }, }) return http.get(`v3/admin/experiences${query}`) }, }) export default getExperiences