import { getStandard, parseGetInput, type StandardGetInput } from './wrappers.ts'
/**
* Get one HubSpot contact.
* @example
* import getContact from 'kody:@kody/hubspot/get-contact'
* const record = await getContact({ id: '123' })
*/
export async function getContact(input: StandardGetInput) {
return getStandard('contacts', input)
}
/**
* Get one HubSpot contact.
* @example
* import getContact from 'kody:@kody/hubspot/get-contact'
* const record = await getContact({ id: '123' })
*/
export default async function getContactEntrypoint(
params: Partial<StandardGetInput> & Record<string, unknown> = {},
) {
return getContact(parseGetInput(params, 'get-contact'))
}