import type { Period } from '@entities' import type { HttpClient } from '@services' import type { ApiError, Response } from '@types' export type GetPeriodInput = { houseId: string } const getPeriods = (http: HttpClient) => { return { query: ( input: GetPeriodInput, ): Promise< Response[], undefined, ApiError> > => { return http.get(`v1/user/houses/${input.houseId}/periods`) }, } } export default getPeriods