/** * 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. */ import type { Language } from './Language'; import type { Lead } from './Lead'; import type { BackgroundJobStatus } from './BackgroundJobStatus'; /** * ScrapingJob represents a Google Maps scraping task. * This message defines both the configuration and current state of a scraping operation. * * Key components: * - Basic metadata (id, name, timestamps) * - Job status tracking * - Search configuration parameters * - Geographic settings * - Performance options * - Multi-tenant context * * Database considerations: * - Stored in "gmaps_jobs" table * - Uses GORM for ORM mapping * - Includes foreign key to Account * - Supports soft deletes * * Usage example: * ```go * job := &ScrapingJob{ * Name: "Athens Cafes", * Status: BackgroundJobStatus_BACKGROUND_JOB_STATUS_QUEUED, * Keywords: []string{"cafe", "coffee"}, * Lang: "el", * Zoom: 15, * FastMode: true, * MaxTime: 3600, * } * ``` * @export * @interface ScrapingJob */ export interface ScrapingJob { /** * * @type {string} * @memberof ScrapingJob */ id?: string; /** * * @type {number} * @memberof ScrapingJob */ priority?: number; /** * * @type {string} * @memberof ScrapingJob */ payloadType?: string; /** * * @type {string} * @memberof ScrapingJob */ payload?: string; /** * * @type {Date} * @memberof ScrapingJob */ createdAt?: Date; /** * * @type {BackgroundJobStatus} * @memberof ScrapingJob */ status?: BackgroundJobStatus; /** * * @type {string} * @memberof ScrapingJob */ name?: string; /** * * @type {Array} * @memberof ScrapingJob */ keywords?: Array; /** * * @type {Language} * @memberof ScrapingJob */ lang?: Language; /** * * @type {number} * @memberof ScrapingJob */ zoom?: number; /** * * @type {string} * @memberof ScrapingJob */ lat?: string; /** * * @type {string} * @memberof ScrapingJob */ lon?: string; /** * * @type {boolean} * @memberof ScrapingJob */ fastMode?: boolean; /** * * @type {number} * @memberof ScrapingJob */ radius?: number; /** * * @type {number} * @memberof ScrapingJob */ depth?: number; /** * * @type {boolean} * @memberof ScrapingJob */ email?: boolean; /** * * @type {number} * @memberof ScrapingJob */ maxTime?: number; /** * * @type {Array} * @memberof ScrapingJob */ proxies?: Array; /** * * @type {Date} * @memberof ScrapingJob */ updatedAt?: Date; /** * * @type {Date} * @memberof ScrapingJob */ deletedAt?: Date; /** * * @type {Array} * @memberof ScrapingJob */ leads?: Array; /** * * @type {string} * @memberof ScrapingJob */ url?: string; /** * * @type {string} * @memberof ScrapingJob */ asyncJobId?: string; } /** * Check if a given object implements the ScrapingJob interface. */ export declare function instanceOfScrapingJob(value: object): value is ScrapingJob; export declare function ScrapingJobFromJSON(json: any): ScrapingJob; export declare function ScrapingJobFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScrapingJob; export declare function ScrapingJobToJSON(json: any): ScrapingJob; export declare function ScrapingJobToJSONTyped(value?: ScrapingJob | null, ignoreDiscriminator?: boolean): any;