@adobe/pdfservices-node-sdk
Version:
The Adobe PDF Services Node.js SDK provides APIs for creating, combining, exporting and manipulating PDFs.
45 lines • 1.74 kB
JavaScript
;
/*
* 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.PDFServicesResponse = void 0;
const PDFServicesJobStatusResponse_1 = require("./PDFServicesJobStatusResponse");
/**
* Response object for {@link PDFServicesJob}.
*
* @typeParam T - Type of result in `PDFServicesResponse`. It will be an implementation of
* {@link PDFServicesJobResult}.
*/
class PDFServicesResponse extends PDFServicesJobStatusResponse_1.PDFServicesJobStatusResponse {
/**
* Constructs {@link PDFServicesJob} response with its status, headers and result.
*
* @param status Status of the {@link PDFServicesJob}.
* @param headers Headers of the `PDFServicesResponse`.
* @param result result for the {@link PDFServicesJob}, it will be an extension of {@link PDFServicesJobResult}.
* @typeParam T - Type of result in `PDFServicesResponse`. It will be an implementation of
* {@link PDFServicesJobResult}.
*/
constructor(status, headers, result) {
super(status, headers);
this._result = result;
}
/**
* Returns instance of result of {@link PDFServicesJob}.
*
* @returns result of {@link PDFServicesJob}
*/
get result() {
return this._result;
}
}
exports.PDFServicesResponse = PDFServicesResponse;
//# sourceMappingURL=PDFServicesResponse.js.map