Skip to content

Commit eecef57

Browse files
🛩
1 parent 33c264f commit eecef57

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

packages/zoominfo/src/zoominfo-client.ts

+19-8
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ export namespace zoominfo {
1616
// Access tokens expire after 60 minutes, so renew them every 55 minutes.
1717
export const ACCESS_TOKEN_EXPIRATION_MS = 55 * 60 * 1000
1818

19-
// Allow up to 25 requests per second by default.
19+
// Allow up to 1500 requests per minute by default.
2020
// https://api-docs.zoominfo.com/#rate-and-usage-limits
2121
export const throttle = pThrottle({
22-
limit: 25,
23-
interval: 1000
22+
limit: 1500,
23+
interval: 60_000
2424
})
2525

2626
export interface EnrichContactOptions {
@@ -106,14 +106,24 @@ export namespace zoominfo {
106106
}
107107
}
108108

109+
export type MatchStatus =
110+
| 'NO_MATCH'
111+
| 'FULL_MATCH'
112+
| 'CONTACT_ONLY_MATCH'
113+
| 'COMPANY_ONLY_MATCH'
114+
| 'NON_MATCH_BY_REQUIRED_FIELDS'
115+
| 'NON_MATCH_BY_LAST_UPDATED_DATE'
116+
| 'NON_MATCH_BY_VALID_DATE'
117+
| 'NON_MATCH_BY_CONTACT_ACCURACY_MIN'
118+
| 'INVALID_INPUT'
119+
| 'LIMIT_EXCEEDED'
120+
| 'SERVICE_ERROR'
121+
| 'OPT_OUT'
122+
109123
export interface EnrichContactResult {
110124
input: Partial<Omit<EnrichContactOptions, 'outputFields'>>
111125
data: EnrichedContact[]
112-
matchStatus?:
113-
| 'FULL_MATCH'
114-
| 'PARTIAL_MATCH'
115-
| 'NO_MATCH'
116-
| 'COMPANY_ONLY_MATCH'
126+
matchStatus?: MatchStatus
117127
}
118128

119129
export interface EnrichedContact {
@@ -1103,6 +1113,7 @@ export namespace zoominfo {
11031113
* ZoomInfo is a robust B2B enrichment and search API for people and companies.
11041114
*
11051115
* @see https://api-docs.zoominfo.com
1116+
* @see https://tech-docs.zoominfo.com/enterprise-api-getting-started-guide.pdf
11061117
*/
11071118
export class ZoomInfoClient extends AIFunctionsProvider {
11081119
protected readonly ky: KyInstance

0 commit comments

Comments
 (0)