@kody/zendesk
src/get-ticket.ts
11 lines · 363 B · TypeScriptimport { getTicket, parseGetTicket } from './tickets.ts'
/**
* Get one Zendesk ticket by id.
* @example
* import getTicket from 'kody:@kody/zendesk/get-ticket'
* const ticket = await getTicket({ id, subdomain: 'acme' })
*/
export default async function getTicketEntrypoint(params: Record<string, unknown> = {}) {
return getTicket(parseGetTicket(params))
}