import { Analytics } from '../../core/analytics' export interface IIntentSourcesSourceOptions { token?: string } export interface IIntentSourcesOptions { [name: string]: boolean | IIntentSourcesSourceOptions } export interface IIntentSource { name: string load: Array< ( analytics: Analytics, options: IIntentSourcesSourceOptions ) => Promise | void > } interface GeoIP { city: string state: string stateCode: string | null country: string countryCode: string } interface Linkedin { handle: string } interface Site { emailAddresses: string[] phoneNumbers: string[] } interface Crunchbase { handle: string | null } interface Twitter { site: string followers: string following: string bio: string handle: string location: string | null avatar: string id: string } interface Facebook { handle: string | null likes: string | null } interface Geo { country: string countryCode: string streetAddress: string subPremise: string | null lng: string city: string streetNumber: string state: string | null postalCode: string stateCode: string | null lat: string streetName: string } interface Identifiers { usCik: string | null usEin: string | null } interface Category { naicsCode: string sicCode: string subIndustry: string sic4Codes: string[] naics6Codes2022: string[] gicsCode: string naics6Codes: string[] industry: string industryGroup: string sector: string } interface Parent { domain: string | null } interface Metrics { fiscalYearEnd: string | null alexaUsRank: string marketCap: string | null estimatedAnnualRevenue: string raised: string alexaGlobalRank: string trafficRank: string employeesRange: string employees: string annualRevenue: string | null } interface Company { ticker: string | null linkedin: Linkedin timeZone: string site: Site crunchbase: Crunchbase name: string twitter: Twitter profane: boolean foundedYear: string tech: string[] id: string phone: string tags: string[] domain: string facebook: Facebook location: string domainAliases: string[] logo: string emailProvider: boolean geo: Geo identifiers: Identifiers category: Category indexedAt: string ultimateParent: Parent parent: Parent metrics: Metrics utcOffset: string description: string legalName: string | null techCategories: string[] type: string } export interface IClearbitDataV1 { company: { category: { industryGroup: string } domain: string geo: { country: string } name: string metrics: { employeesRange: string estimatedAnnualRevenue: string } } type: string } export interface IClearbitDataV2 { ip: string domain: string fuzzy: boolean type: string geoIP: GeoIP company: Company }