UNPKG

@doczilla/node

Version:
26 lines (25 loc) 809 B
import type { AsyncJob, AsyncPdf, CreatePdf, SyncJob, SyncPdf } from '../generated'; import { BaseService } from './BaseService'; export declare class PdfService extends BaseService { /** * Create a PDF and directly return the result. * @param requestBody * @returns Buffer * @throws AxiosError */ direct(requestBody: CreatePdf): Promise<Buffer>; /** * Create a PDF and write the result directly in your bucket. * @param requestBody * @returns SyncJob * @throws AxiosError */ sync(requestBody: SyncPdf): Promise<SyncJob>; /** * Queue the creation of a PDF and call the webhook with the result. * @param requestBody * @returns AsyncJob * @throws AxiosError */ async(requestBody: AsyncPdf): Promise<AsyncJob>; }