@adobe/pdfservices-node-sdk
Version:
The Adobe PDF Services Node.js SDK provides APIs for creating, combining, exporting and manipulating PDFs.
49 lines • 1.56 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.ExternalAsset = void 0;
const ValidationUtil_1 = require("../internal/util/ValidationUtil");
/**
* This class represents an asset stored in an external storage.
*/
class ExternalAsset {
/**
* Constructs an instance of `ExternalAsset`.
*
* @param params - The parameters for constructing an instance of `ExternalAsset`.
* @param params.uri - URI of the external asset.
* @param [params.storageType] - External storage type.
*/
constructor(params) {
ValidationUtil_1.ValidationUtil.validateExternalAssetParams(params);
this._uri = params.uri;
this._storage = params.storageType;
}
/**
* Returns the URI of the external asset.
*
* @returns URI of the external asset.
*/
get uri() {
return this._uri;
}
/**
* Returns the externalStorageType of the external asset.
*
* @returns external storage type of the external asset.
*/
get storageType() {
return this._storage;
}
}
exports.ExternalAsset = ExternalAsset;
//# sourceMappingURL=ExternalAsset.js.map