scraper-api-datachaser
Version:
The scraping SaaS platform provides a RESTful API for developers to perform web scraping tasks. Users can submit scraping tasks, monitor task status, retrieve scraped data, and manage their account through the API.
105 lines (95 loc) • 3.03 kB
text/typescript
/* tslint:disable */
/* eslint-disable */
/**
* Scraper API
* The scraping SaaS platform provides a RESTful API for developers to perform web scraping tasks. Users can submit scraping tasks, monitor task status, retrieve scraped data, and manage their account through the API.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
import type { Actions } from './Actions';
import {
ActionsFromJSON,
ActionsFromJSONTyped,
ActionsToJSON,
} from './Actions';
import type { DataToScrape } from './DataToScrape';
import {
DataToScrapeFromJSON,
DataToScrapeFromJSONTyped,
DataToScrapeToJSON,
} from './DataToScrape';
import type { Frecuency } from './Frecuency';
import {
FrecuencyFromJSON,
FrecuencyFromJSONTyped,
FrecuencyToJSON,
} from './Frecuency';
/**
*
* @export
* @interface JobCreateRequest
*/
export interface JobCreateRequest {
/**
*
* @type {string}
* @memberof JobCreateRequest
*/
website: string;
/**
*
* @type {Array<Actions>}
* @memberof JobCreateRequest
*/
actions?: Array<Actions>;
/**
*
* @type {Array<DataToScrape>}
* @memberof JobCreateRequest
*/
dataToScrape?: Array<DataToScrape>;
/**
*
* @type {Frecuency}
* @memberof JobCreateRequest
*/
frecuency?: Frecuency;
}
/**
* Check if a given object implements the JobCreateRequest interface.
*/
export function instanceOfJobCreateRequest(value: object): value is JobCreateRequest {
if (!('website' in value) || value['website'] === undefined) return false;
return true;
}
export function JobCreateRequestFromJSON(json: any): JobCreateRequest {
return JobCreateRequestFromJSONTyped(json, false);
}
export function JobCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobCreateRequest {
if (json == null) {
return json;
}
return {
'website': json['website'],
'actions': json['actions'] == null ? undefined : ((json['actions'] as Array<any>).map(ActionsFromJSON)),
'dataToScrape': json['data_to_scrape'] == null ? undefined : ((json['data_to_scrape'] as Array<any>).map(DataToScrapeFromJSON)),
'frecuency': json['frecuency'] == null ? undefined : FrecuencyFromJSON(json['frecuency']),
};
}
export function JobCreateRequestToJSON(value?: JobCreateRequest | null): any {
if (value == null) {
return value;
}
return {
'website': value['website'],
'actions': value['actions'] == null ? undefined : ((value['actions'] as Array<any>).map(ActionsToJSON)),
'data_to_scrape': value['dataToScrape'] == null ? undefined : ((value['dataToScrape'] as Array<any>).map(DataToScrapeToJSON)),
'frecuency': FrecuencyToJSON(value['frecuency']),
};
}