← Public packages
@kody/hubspot
Read HubSpot contacts, companies, deals, and tickets, with dry-run writes and generic CRM object reads.
src/list-deals.ts
23 lines · 664 B · TypeScriptimport { 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<string, unknown> = {},
) {
return listDeals(parseListInput(params, 'list-deals'))
}