import type { Appointment } from '@entities' import type { HttpClient } from '@services' import type { ApiError, Response } from '@types' export type GetAppointmentsInput = { contractId: string } const getAppointments = (http: HttpClient) => { return { query: ( input: GetAppointmentsInput, ): Promise> => { return http.get( `v3/admin/tailor/contracts/${input.contractId}/appointments`, ) }, } } export default getAppointments