diff --git a/packages/zoominfo/src/zoominfo-client.ts b/packages/zoominfo/src/zoominfo-client.ts index 100bfd5..4b11c0f 100644 --- a/packages/zoominfo/src/zoominfo-client.ts +++ b/packages/zoominfo/src/zoominfo-client.ts @@ -360,6 +360,124 @@ export namespace zoominfo { id: number name: string } + + export const defaultEnrichContactOutputFields = [ + 'id', + 'firstName', + 'middleName', + 'lastName', + 'email', + 'hasCanadianEmail', + 'phone', + 'directPhoneDoNotCall', + 'street', + 'city', + 'region', + 'metroArea', + 'zipCode', + 'state', + 'country', + 'personHasMoved', + 'withinEu', + 'withinCalifornia', + 'withinCanada', + 'lastUpdatedDate', + 'noticeProvidedDate', + 'salutation', + 'suffix', + 'jobTitle', + 'jobFunction', + 'companyDivision', + 'education', + 'hashedEmails', + 'picture', + 'mobilePhoneDoNotCall', + 'externalUrls', + 'companyId', + 'companyName', + 'companyDescriptionList', + 'companyPhone', + 'companyFax', + 'companyStreet', + 'companyCity', + 'companyState', + 'companyZipCode', + 'companyCountry', + 'companyLogo', + 'companySicCodes', + 'companyNaicsCodes', + 'contactAccuracyScore', + 'companyWebsite', + 'companyRevenue', + 'companyRevenueNumeric', + 'companyEmployeeCount', + 'companyType', + 'companyTicker', + 'companyRanking', + 'isDefunct', + 'companySocialMediaUrls', + 'companyPrimaryIndustry', + 'companyIndustries', + 'companyRevenueRange', + 'companyEmployeeRange', + 'employmentHistory', + 'managementLevel', + 'locationCompanyId' + ] as const + + export const defaultEnrichCompanyOutputFields = [ + 'id', + 'name', + 'website', + 'domainList', + 'logo', + 'ticker', + 'revenue', + 'socialMediaUrls', + 'employeeCount', + 'numberOfContactsInZoomInfo', + 'phone', + 'fax', + 'street', + 'city', + 'state', + 'zipCode', + 'country', + 'continent', + 'companyStatus', + 'companyStatusDate', + 'descriptionList', + 'sicCodes', + 'naicsCodes', + 'competitors', + 'ultimateParentId', + 'ultimateParentName', + 'ultimateParentRevenue', + 'ultimateParentEmployees', + 'subUnitCodes', + 'subUnitType', + 'subUnitIndustries', + 'primaryIndustry', + 'industries', + 'parentId', + 'parentName', + 'locationCount', + 'metroArea', + 'lastUpdatedDate', + 'createdDate', + 'certificationDate', + 'certified', + 'hashtags', + 'products', + 'techAttributes', + 'revenueRange', + 'employeeRange', + 'companyFunding', + 'recentFundingAmount', + 'recentFundingDate', + 'totalFundingAmount', + 'employeeGrowth' + ] as const } /** @@ -577,69 +695,7 @@ fullName AND companyId/companyName. Combining these values effectively results i await this.authenticate() const { - outputFields = [ - 'id', - 'firstName', - 'middleName', - 'lastName', - 'email', - 'hasCanadianEmail', - 'phone', - 'directPhoneDoNotCall', - 'street', - 'city', - 'region', - 'metroArea', - 'zipCode', - 'state', - 'country', - 'personHasMoved', - 'withinEu', - 'withinCalifornia', - 'withinCanada', - 'lastUpdatedDate', - 'noticeProvidedDate', - 'salutation', - 'suffix', - 'jobTitle', - 'jobFunction', - 'companyDivision', - 'education', - 'hashedEmails', - 'picture', - 'mobilePhoneDoNotCall', - 'externalUrls', - 'companyId', - 'companyName', - 'companyDescriptionList', - 'companyPhone', - 'companyFax', - 'companyStreet', - 'companyCity', - 'companyState', - 'companyZipCode', - 'companyCountry', - 'companyLogo', - 'companySicCodes', - 'companyNaicsCodes', - 'contactAccuracyScore', - 'companyWebsite', - 'companyRevenue', - 'companyRevenueNumeric', - 'companyEmployeeCount', - 'companyType', - 'companyTicker', - 'companyRanking', - 'isDefunct', - 'companySocialMediaUrls', - 'companyPrimaryIndustry', - 'companyIndustries', - 'companyRevenueRange', - 'companyEmployeeRange', - 'employmentHistory', - 'managementLevel', - 'locationCompanyId' - ], + outputFields = zoominfo.defaultEnrichContactOutputFields, ...matchPersonInput } = opts @@ -683,59 +739,7 @@ fullName AND companyId/companyName. Combining these values effectively results i await this.authenticate() const { - outputFields = [ - 'id', - 'name', - 'website', - 'domainList', - 'logo', - 'ticker', - 'revenue', - 'socialMediaUrls', - 'employeeCount', - 'numberOfContactsInZoomInfo', - 'phone', - 'fax', - 'street', - 'city', - 'state', - 'zipCode', - 'country', - 'continent', - 'companyStatus', - 'companyStatusDate', - 'descriptionList', - 'sicCodes', - 'naicsCodes', - 'competitors', - 'ultimateParentId', - 'ultimateParentName', - 'ultimateParentRevenue', - 'ultimateParentEmployees', - 'subUnitCodes', - 'subUnitType', - 'subUnitIndustries', - 'primaryIndustry', - 'industries', - 'parentId', - 'parentName', - 'locationCount', - 'metroArea', - 'lastUpdatedDate', - 'createdDate', - 'certificationDate', - 'certified', - 'hashtags', - 'products', - 'techAttributes', - 'revenueRange', - 'employeeRange', - 'companyFunding', - 'recentFundingAmount', - 'recentFundingDate', - 'totalFundingAmount', - 'employeeGrowth' - ], + outputFields = zoominfo.defaultEnrichCompanyOutputFields, ...matchCompanyInput } = opts