From 12a35fd10907801f92d57b7e6330bbd59e20baa4 Mon Sep 17 00:00:00 2001 From: Travis Fischer Date: Tue, 11 Jun 2024 02:11:21 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/services/diffbot-client.ts | 12 ++++++++++++ src/services/tavily-client.ts | 20 ++++++++++++++++---- 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/src/services/diffbot-client.ts b/src/services/diffbot-client.ts index b008daf..33dba1c 100644 --- a/src/services/diffbot-client.ts +++ b/src/services/diffbot-client.ts @@ -387,6 +387,7 @@ export namespace diffbot { nbEmployeesMin?: number nbEmployeesMax?: number nbActiveEmployeeEdges?: number + nbUniqueInvestors?: number educations?: Education[] nationalities?: Nationality[] allNames?: string[] @@ -432,6 +433,8 @@ export namespace diffbot { naicsClassification2017?: any[] naicsClassification?: any[] sicClassification?: any[] + naceClassification?: any[] + iSicClassification?: any[] employeeCategories?: any[] emailAddresses?: EmailAddress[] age?: number @@ -455,6 +458,15 @@ export namespace diffbot { technographics?: Technographic[] stock?: Stock companiesHouseIds?: string[] + yearlyRevenues?: AnnualRevenue[] + } + + export interface AnnualRevenue { + revenue: Amount + isCurrent: boolean + year: number + filingDate: DateTime + revenueDate: DateTime } export interface Technographic { diff --git a/src/services/tavily-client.ts b/src/services/tavily-client.ts index 9577475..f762417 100644 --- a/src/services/tavily-client.ts +++ b/src/services/tavily-client.ts @@ -18,7 +18,11 @@ export namespace tavily { /** Search query. (required) */ query: string - /** The depth of the search. It can be basic or advanced. Default is basic for quick results and advanced for indepth high quality results but longer response time. Advanced calls equals 2 requests. */ + /** + * The depth of the search. It can be basic or advanced. Default is basic + * for quick results and advanced for indepth high quality results but + * longer response time. Advanced calls equals 2 requests. + */ search_depth?: 'basic' | 'advanced' /** Include a synthesized answer in the search results. Default is `false`. */ @@ -33,10 +37,16 @@ export namespace tavily { /** The number of maximum search results to return. Default is `5`. */ max_results?: number - /** A list of domains to specifically include in the search results. Default is `undefined`, which includes all domains. */ + /** + * A list of domains to specifically include in the search results. + * Default is `undefined`, which includes all domains. + */ include_domains?: string[] - /** A list of domains to specifically exclude from the search results. Default is `undefined`, which doesn't exclude any domains. */ + /** + * A list of domains to specifically exclude from the search results. + * Default is `undefined`, which doesn't exclude any domains. + */ exclude_domains?: string[] } @@ -68,7 +78,9 @@ export namespace tavily { title: string /** - * The most query related content from the scraped url. We use proprietary AI and algorithms to extract only the most relevant content from each url, to optimize for context quality and size. + * The most query related content from the scraped url. We use proprietary + * AI and algorithms to extract only the most relevant content from each + * url, to optimize for context quality and size. */ content: string