UNPKG

@adobe/pdfservices-node-sdk

Version:

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

33 lines 1.34 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.CallbackNotifierData = void 0; const ValidationUtil_1 = require("../../internal/util/ValidationUtil"); /** * Represents the configuration for the notifier data. */ class CallbackNotifierData { /** * Constructs an instance of `CallbackNotifierData` using a callback url and headers. * * @param {object} params - The parameters for constructing an instance of `CallbackNotifierData`. * @param {string} params.url - The URL to which the callback should be sent. * @param {object} [params.headers] - Optional headers to include in the callback request. */ constructor(params) { ValidationUtil_1.ValidationUtil.validateCallbackNotifierDataParams(params); this._url = params.url; this._headers = params.headers; } } exports.CallbackNotifierData = CallbackNotifierData; //# sourceMappingURL=CallbackNotifierData.js.map