import { listStandard, parseListInput, type StandardListInput } from './wrappers.ts' /** * List HubSpot deals. * @example * import listDeals from 'kody:@kody/hubspot/list-deals' * const { items } = await listDeals({ limit: 10 }) */ export async function listDeals(input: StandardListInput = {}) { return listStandard('deals', input) } /** * List HubSpot deals. * @example * import listDeals from 'kody:@kody/hubspot/list-deals' * const result = await listDeals({ limit: 10 }) */ export default async function listDealsEntrypoint( params: StandardListInput & Record = {}, ) { return listDeals(parseListInput(params, 'list-deals')) }