import type { HouseTruthLink } from '@entities' import type { HttpClient } from '@services' import type { ApiError, Response } from '@types' export type HouseTruthLinksInput = { houseId: string | number privateToken?: string } const getHouseTruthLinks = (http: HttpClient) => { return { query: ( input: HouseTruthLinksInput, ): Promise> => { return http.get( `v3/houses/${input.houseId}/house_truth_links${ input.privateToken ? `?private_token=${input.privateToken}` : '' }`, ) }, } } export default getHouseTruthLinks