import type { HttpClient, IncludeType } from '@services' import { endpointMaker } from '@services' import type { ApiError, Response } from '@types' export type StayInformationInput = { houseId: string | number included?: IncludeType } const getStayInformation = (http: HttpClient) => { return { query: ( input: StayInformationInput, ): Promise> => { const query = endpointMaker({ includes: input.included }) return http.get( `v3/user/houses/${input.houseId}/stay_information${query}`, ) }, } } export default getStayInformation