From eecef57a2e2adab2010219705a0374ae03a644e3 Mon Sep 17 00:00:00 2001 From: Travis Fischer Date: Mon, 24 Feb 2025 03:53:16 +0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/zoominfo/src/zoominfo-client.ts | 27 +++++++++++++++++------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/packages/zoominfo/src/zoominfo-client.ts b/packages/zoominfo/src/zoominfo-client.ts index b11b8d5..843dd17 100644 --- a/packages/zoominfo/src/zoominfo-client.ts +++ b/packages/zoominfo/src/zoominfo-client.ts @@ -16,11 +16,11 @@ export namespace zoominfo { // Access tokens expire after 60 minutes, so renew them every 55 minutes. export const ACCESS_TOKEN_EXPIRATION_MS = 55 * 60 * 1000 - // Allow up to 25 requests per second by default. + // Allow up to 1500 requests per minute by default. // https://api-docs.zoominfo.com/#rate-and-usage-limits export const throttle = pThrottle({ - limit: 25, - interval: 1000 + limit: 1500, + interval: 60_000 }) export interface EnrichContactOptions { @@ -106,14 +106,24 @@ export namespace zoominfo { } } + export type MatchStatus = + | 'NO_MATCH' + | 'FULL_MATCH' + | 'CONTACT_ONLY_MATCH' + | 'COMPANY_ONLY_MATCH' + | 'NON_MATCH_BY_REQUIRED_FIELDS' + | 'NON_MATCH_BY_LAST_UPDATED_DATE' + | 'NON_MATCH_BY_VALID_DATE' + | 'NON_MATCH_BY_CONTACT_ACCURACY_MIN' + | 'INVALID_INPUT' + | 'LIMIT_EXCEEDED' + | 'SERVICE_ERROR' + | 'OPT_OUT' + export interface EnrichContactResult { input: Partial> data: EnrichedContact[] - matchStatus?: - | 'FULL_MATCH' - | 'PARTIAL_MATCH' - | 'NO_MATCH' - | 'COMPANY_ONLY_MATCH' + matchStatus?: MatchStatus } export interface EnrichedContact { @@ -1103,6 +1113,7 @@ export namespace zoominfo { * ZoomInfo is a robust B2B enrichment and search API for people and companies. * * @see https://api-docs.zoominfo.com + * @see https://tech-docs.zoominfo.com/enterprise-api-getting-started-guide.pdf */ export class ZoomInfoClient extends AIFunctionsProvider { protected readonly ky: KyInstance