import type { SupportedCurrencies } from '@entities' import type { HttpClient } from '@services' import type { ApiError, Response } from '@types' export type MakeHouseRequestInput = { currency: SupportedCurrencies request: { budget: number email: string end_date: string first_name: string house_id: string last_name: string phone: string start_date: string } } export type MakeHouseRequestResponse = { budget: number email: string endDate: string firstName: string lastName: string phone: string source: string startDate: string id: string uuid: string } const makeHouseRequest = (http: HttpClient) => ({ query: ( input: MakeHouseRequestInput, ): Promise> => { return http.post('v3/requests', input.request) }, }) export default makeHouseRequest