/** * Lead Scraping Service API * Vector Lead Scraping Service API - Manages Lead Scraping Jobs * * The version of the OpenAPI document: 1.0 * Contact: yoanyomba@vector.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * LeadEnrichmentHistory provides an audit trail for enrichment operations. * Each successful or failed enrichment attempt is recorded for debugging, * analytics, and compliance purposes. * * Key features: * - Before/after snapshots of enriched fields * - Cost and duration tracking per enrichment * - Source tracking (gemini, website_scrape, etc.) * - Error tracking for failed attempts * * Database considerations: * - Indexed on lead_id for history lookup * - JSONB fields for flexible schema storage * @export * @interface LeadEnrichmentHistory */ export interface LeadEnrichmentHistory { /** * * @type {string} * @memberof LeadEnrichmentHistory */ id?: string; /** * * @type {string} * @memberof LeadEnrichmentHistory */ leadId?: string; /** * * @type {string} * @memberof LeadEnrichmentHistory */ workspaceId?: string; /** * * @type {string} * @memberof LeadEnrichmentHistory */ requestId?: string; /** * "full", "company_info", "contacts", "social" * @type {string} * @memberof LeadEnrichmentHistory */ enrichmentType?: string; /** * "success", "partial", "failed" * @type {string} * @memberof LeadEnrichmentHistory */ status?: string; /** * * @type {string} * @memberof LeadEnrichmentHistory */ fieldsBeforeJson?: string; /** * * @type {string} * @memberof LeadEnrichmentHistory */ fieldsAfterJson?: string; /** * * @type {string} * @memberof LeadEnrichmentHistory */ fieldsChanged?: string; /** * * @type {string} * @memberof LeadEnrichmentHistory */ source?: string; /** * * @type {number} * @memberof LeadEnrichmentHistory */ costCents?: number; /** * * @type {number} * @memberof LeadEnrichmentHistory */ durationMs?: number; /** * * @type {string} * @memberof LeadEnrichmentHistory */ errorMessage?: string; /** * * @type {Date} * @memberof LeadEnrichmentHistory */ enrichedAt?: Date; /** * * @type {Date} * @memberof LeadEnrichmentHistory */ createdAt?: Date; /** * * @type {Date} * @memberof LeadEnrichmentHistory */ updatedAt?: Date; } /** * Check if a given object implements the LeadEnrichmentHistory interface. */ export declare function instanceOfLeadEnrichmentHistory(value: object): value is LeadEnrichmentHistory; export declare function LeadEnrichmentHistoryFromJSON(json: any): LeadEnrichmentHistory; export declare function LeadEnrichmentHistoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadEnrichmentHistory; export declare function LeadEnrichmentHistoryToJSON(json: any): LeadEnrichmentHistory; export declare function LeadEnrichmentHistoryToJSONTyped(value?: LeadEnrichmentHistory | null, ignoreDiscriminator?: boolean): any;