/* tslint:disable */ /* eslint-disable */ /** * DocRaptor * A native client library for the DocRaptor HTML to PDF/XLS service. * * The version of the OpenAPI document: 2.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 { exists, mapValues } from '../runtime'; /** * * @export * @interface DocStatus */ export interface DocStatus { /** * The present status of the document. Can be queued, working, completed, and failed. * @type {string} * @memberof DocStatus */ status?: string; /** * The URL where the document can be retrieved. This URL may only be used a few times. * @type {string} * @memberof DocStatus */ downloadUrl?: string; /** * The identifier for downloading the document with the download API. * @type {string} * @memberof DocStatus */ downloadId?: string; /** * Additional information. * @type {string} * @memberof DocStatus */ message?: string; /** * Number of PDF pages in document. * @type {number} * @memberof DocStatus */ numberOfPages?: number; /** * Error information. * @type {string} * @memberof DocStatus */ validationErrors?: string; } /** * Check if a given object implements the DocStatus interface. */ export function instanceOfDocStatus(value: object): boolean { let isInstance = true; return isInstance; } export function DocStatusFromJSON(json: any): DocStatus { return DocStatusFromJSONTyped(json, false); } export function DocStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): DocStatus { if ((json === undefined) || (json === null)) { return json; } return { 'status': !exists(json, 'status') ? undefined : json['status'], 'downloadUrl': !exists(json, 'download_url') ? undefined : json['download_url'], 'downloadId': !exists(json, 'download_id') ? undefined : json['download_id'], 'message': !exists(json, 'message') ? undefined : json['message'], 'numberOfPages': !exists(json, 'number_of_pages') ? undefined : json['number_of_pages'], 'validationErrors': !exists(json, 'validation_errors') ? undefined : json['validation_errors'], }; } export function DocStatusToJSON(value?: DocStatus | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'status': value.status, 'download_url': value.downloadUrl, 'download_id': value.downloadId, 'message': value.message, 'number_of_pages': value.numberOfPages, 'validation_errors': value.validationErrors, }; }