import type { HttpClient, IncludeType } from '@services' import { endpointMaker } from '@services' import type { ApiError, Response } from '@types' export type GetGuestContactsInput = { contractId: string included?: IncludeType } const getGuestContactsList = (http: HttpClient) => { return { query: ( input: GetGuestContactsInput, ): Promise> => { const query = endpointMaker({ includes: input.included }) return http.get( `v3/user/contracts/${input.contractId}/guest_contacts${query}`, ) }, } } export default getGuestContactsList