UNPKG

@adobe/pdfservices-node-sdk

Version:

The Adobe PDF Services Node.js SDK provides APIs for creating, combining, exporting and manipulating PDFs.

47 lines 1.82 kB
"use strict"; /* * Copyright 2024 Adobe * All Rights Reserved. * * NOTICE: Adobe permits you to use, modify, and distribute this file in * accordance with the terms of the Adobe license agreement accompanying * it. If you have received this file from a source other than Adobe, * then your use, modification, or distribution of it requires the prior * written permission of Adobe. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.PDFServicesJobStatusResponse = void 0; const PDFServicesJobStatus_1 = require("./PDFServicesJobStatus"); /** * Response object encapsulating {@link PDFServicesJob} status and retry interval. */ class PDFServicesJobStatusResponse { /** * Constructs {@link PDFServicesJob} status response with its status, headers. * * @param status Status of the {@link PDFServicesJob}. * @param headers Headers of the {@link PDFServicesResponse}. */ constructor(status, headers) { this._status = status; this._headers = headers; } /** * Returns string representation of {@link PDFServicesJobStatus} for the {@link PDFServicesJob}. * * @returns string representation of {@link PDFServicesJobStatus} for the {@link PDFServicesJob} */ get status() { return this._status; } /** * Returns retry interval for status polling of the {@link PDFServicesJob} in seconds. * * @returns retry interval for status polling of the {@link PDFServicesJob} in seconds */ get retryInterval() { return this.status === PDFServicesJobStatus_1.PDFServicesJobStatus.IN_PROGRESS ? parseInt(this._headers["retry-after"] || "0", 10) : 0; } } exports.PDFServicesJobStatusResponse = PDFServicesJobStatusResponse; //# sourceMappingURL=PDFServicesJobStatusResponse.js.map