Skip to content

Built for people who want to own their automations. Join the waitlist for an invite.

Package listing

@kody/zendesk

src/list-tickets.ts

11 lines · 383 B · TypeScript
import { listTickets, parseListTickets } from './tickets.ts'

/**
 * List Zendesk tickets.
 * @example
 * import listTickets from 'kody:@kody/zendesk/list-tickets'
 * const { items } = await listTickets({ perPage: 10, subdomain: 'acme' })
 */
export default async function listTicketsEntrypoint(params: Record<string, unknown> = {}) {
	return listTickets(parseListTickets(params))
}