import type { Place } from '@entities' import type { HttpClient } from '@services' import type { ApiError, Response } from '@types' export type AddDistanceInput = { houseId: string placeId: string params: { [key: string]: string } } const addDistance = (http: HttpClient) => ({ query: ( input: AddDistanceInput, ): Promise> => { return http.post( `v3/admin/houses/${input.houseId}/places/${input.placeId}/distances`, { ...input.params }, ) }, }) export default addDistance