import type { Place, PlacePayload } from '@entities' import type { HttpClient } from '@services' import type { ApiError, Response } from '@types' export type AddPlaceInput = { payload: PlacePayload } const addPlace = (http: HttpClient) => ({ query: ( input: AddPlaceInput, ): Promise> => { return http.post(`v3/admin/places`, input.payload) }, }) export default addPlace