import { searchStandard, parseSearchInput, type StandardSearchInput } from './wrappers.ts' /** * Search HubSpot contacts. * @example * import searchContacts from 'kody:@kody/hubspot/search-contacts' * const { items } = await searchContacts({ query: 'acme' }) */ export async function searchContacts(input: StandardSearchInput = {}) { return searchStandard('contacts', input) } /** * Search HubSpot contacts. * @example * import searchContacts from 'kody:@kody/hubspot/search-contacts' * const result = await searchContacts({ query: 'acme', limit: 10 }) */ export default async function searchContactsEntrypoint( params: StandardSearchInput & Record = {}, ) { return searchContacts(parseSearchInput(params, 'search-contacts')) }