import { getStandard, parseGetInput, type StandardGetInput } from './wrappers.ts' /** * Get one HubSpot ticket. * @example * import getTicket from 'kody:@kody/hubspot/get-ticket' * const record = await getTicket({ id: '123' }) */ export async function getTicket(input: StandardGetInput) { return getStandard('tickets', input) } /** * Get one HubSpot ticket. * @example * import getTicket from 'kody:@kody/hubspot/get-ticket' * const record = await getTicket({ id: '123' }) */ export default async function getTicketEntrypoint( params: Partial & Record = {}, ) { return getTicket(parseGetInput(params, 'get-ticket')) }