import type { Code, CodePayload } from '@entities' import type { HttpClient } from '@services' import type { ApiError, Response } from '@types' export type AddCodeInput = { houseId: string payload: CodePayload } const addCode = (http: HttpClient) => ({ query: ( input: AddCodeInput, ): Promise> => { return http.post( `v3/admin/houses/${input.houseId}/stay_information/codes`, input.payload, ) }, }) export default addCode