import Task from "./Task"; import TaskStatus from "../types/responses/TaskStatus"; export default abstract class TaskBaseProcess extends Task { /** * @inheritdoc * @param params - Params to run the process step. */ process(params?: ProcessParams): Promise; } /** * Be careful: 'metas' property uses PascalCase due to PDF specification. * To know more, visit the next link: * http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/pdf_reference_1-7.pdf (page 844) */ export interface ProcessParams { metas?: { Title?: string; Author?: string; Subject?: string; Keywords?: string; Creator?: string; Producer?: string; CreationDate?: string; ModDate?: string; Trapped?: string; }; ignore_errors?: boolean; ignore_password?: boolean; output_filename?: string; packaged_filename?: string; file_encryption_key?: string; try_pdf_repair?: boolean; custom_int?: number; custom_string?: string; webhook?: string; } export type TaskBaseProcessProcess = { download_filename: string; filesize: number; output_filesize: number; output_filenumber: number; output_extensions: Array; timer: string; status: TaskStatus; };