UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

40 lines 2 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PortfolioSelection = void 0; class PortfolioSelection { constructor(data) { let fileNameDefault = ""; this.fileName = typeof (data === null || data === void 0 ? void 0 : data.fileName) !== "undefined" ? data === null || data === void 0 ? void 0 : data.fileName : fileNameDefault; let pathDefault = ""; this.path = typeof (data === null || data === void 0 ? void 0 : data.path) !== "undefined" ? data === null || data === void 0 ? void 0 : data.path : pathDefault; } static getFileNameDefault() { return ""; } static getFileNameDescription() { return "Filters by file name for the selection. \"\\*.xls\", for example, would result in all XLS documents being selected. Meanwhile, \"xyz.json\" would result in attachments named \"xyz.json\" being selected (for extraction \/ deletion).\n\n**Important:** The \"path\" and \"fileName\" parameters follow and implement the glob selection patterns for files and paths."; } static getPathDefault() { return ""; } static getPathDescription() { return "Filters by path for the selection. \"a\/b\/\\*\", for example, would result in all a\/b subfolders being searched for matching documents. Whether a document will be considered a match will also depend on the \"fileName\" parameter. If the \"fileName\" parameter is not set, this parameter can be used to select the path instead (for extraction \/ deletion)"; } static fromJson(data) { if (data === undefined || data === null) { return data; } return new PortfolioSelection(data); } toJson() { return { 'fileName': this.fileName, 'path': this.path, }; } clone() { return PortfolioSelection.fromJson(this.toJson()); } } exports.PortfolioSelection = PortfolioSelection; //# sourceMappingURL=PortfolioSelection.js.map