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