@@ -16,11 +16,11 @@ export namespace zoominfo {
16
16
// Access tokens expire after 60 minutes, so renew them every 55 minutes.
17
17
export const ACCESS_TOKEN_EXPIRATION_MS = 55 * 60 * 1000
18
18
19
- // Allow up to 25 requests per second by default.
19
+ // Allow up to 1500 requests per minute by default.
20
20
// https://api-docs.zoominfo.com/#rate-and-usage-limits
21
21
export const throttle = pThrottle ( {
22
- limit : 25 ,
23
- interval : 1000
22
+ limit : 1500 ,
23
+ interval : 60_000
24
24
} )
25
25
26
26
export interface EnrichContactOptions {
@@ -106,14 +106,24 @@ export namespace zoominfo {
106
106
}
107
107
}
108
108
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
+
109
123
export interface EnrichContactResult {
110
124
input : Partial < Omit < EnrichContactOptions , 'outputFields' > >
111
125
data : EnrichedContact [ ]
112
- matchStatus ?:
113
- | 'FULL_MATCH'
114
- | 'PARTIAL_MATCH'
115
- | 'NO_MATCH'
116
- | 'COMPANY_ONLY_MATCH'
126
+ matchStatus ?: MatchStatus
117
127
}
118
128
119
129
export interface EnrichedContact {
@@ -1103,6 +1113,7 @@ export namespace zoominfo {
1103
1113
* ZoomInfo is a robust B2B enrichment and search API for people and companies.
1104
1114
*
1105
1115
* @see https://api-docs.zoominfo.com
1116
+ * @see https://tech-docs.zoominfo.com/enterprise-api-getting-started-guide.pdf
1106
1117
*/
1107
1118
export class ZoomInfoClient extends AIFunctionsProvider {
1108
1119
protected readonly ky : KyInstance
0 commit comments