/** * LinkedIn 联系人和公司的类型定义 */ export interface DateRange { year: number; month?: number; } /** 联系人翻译 */ export interface ContactTranslation { firstName?: string; lastName?: string; headline?: string; summary?: string; } /** 职位翻译 */ export interface PositionTranslation { title?: string; description?: string; companyName?: string; } /** 公司翻译 */ export interface CompanyTranslation { name?: string; description?: string; } export interface LinkedinContactEducation { school: string; degree?: string; fieldOfStudy?: string; startDate?: DateRange; endDate?: DateRange; } export interface LinkedinContactCertification { name: string; authority?: string; startDate?: DateRange; endDate?: DateRange; licenseNumber?: string; url?: string; } export interface LinkedinContactLanguage { name: string; proficiency?: string; } export interface LinkedinContactHonor { title: string; issuer?: string; issuedOn?: DateRange; } export interface LinkedinContactPosition { linkedinPositionId?: string; companyName: string; companyLinkedinId?: string; companyUniversalName?: string; title: string; description?: string; startDate?: DateRange; endDate?: DateRange; isCurrent: boolean; companyLogoUrl?: string; companyIndustry?: string; companyEmployeeCountRange?: { start: number; end?: number; }; translations?: Record; } export interface LinkedinContact { id?: string; memberId: string; publicIdentifier?: string; firstName: string; lastName: string; headline?: string; summary?: string; location?: string; pictureUrl?: string; backgroundPictureUrl?: string; isPremium?: boolean; industry?: string; primaryLocale?: string; supportedLocales?: string[]; skills?: string[]; languages?: LinkedinContactLanguage[]; honors?: LinkedinContactHonor[]; educations?: LinkedinContactEducation[]; certifications?: LinkedinContactCertification[]; positions?: LinkedinContactPosition[]; translations?: Record; fetchedAt?: string; } export interface LinkedinCompany { id?: string; linkedinId: string; universalName?: string; slug?: string; name: string; description?: string; industry?: string; employeeCountRange?: { start: number; end?: number; }; headquarters?: { country: string; city: string; geographicArea?: string; postalCode?: string; line1?: string; }; logoUrl?: string; backgroundCoverUrl?: string; specialities?: string[]; companyType?: string; foundedYear?: number; websiteUrl?: string; jobSearchPageUrl?: string; primaryLocale?: string; supportedLocales?: string[]; translations?: Record; fetchedAt?: string; } export interface GetContactResponse { data: LinkedinContact | null; isExpired: boolean; } export interface GetCompanyResponse { data: LinkedinCompany | null; isExpired: boolean; } /** 联系人信息来源 */ export declare enum ContactInfoSource { PUBLIC = "public", MANUAL = "manual", APOLLO = "apollo", LUSHA = "lusha", HUNTER = "hunter", ROCKETREACH = "rocketreach", SNOV = "snov", CLEARBIT = "clearbit" } /** 查询类型 */ export declare enum QueryType { EMAIL = "email", PHONE = "phone", BOTH = "both" } /** 查询联系人信息请求 */ export interface QueryContactInfoRequest { providers: ContactInfoSource[]; contactId: string; } /** 邮箱查询结果项 */ export interface EmailResult { email: string; source: ContactInfoSource; confidenceScore: number | null; isVerified: boolean; } /** 手机号查询结果项 */ export interface PhoneResult { phone: string; phoneType: string; source: ContactInfoSource; confidenceScore: number | null; isVerified: boolean; } /** 查询联系人信息响应 */ export interface QueryContactInfoResponse { queryType: QueryType; found: boolean; emails?: EmailResult[]; phones?: PhoneResult[]; creditsUsed: number; }