@softvision/webpdf-wsclient-typescript
Version:
A simplified and optimized API client library for the webPDF server
50 lines • 2.4 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.PortfolioRemove = void 0;
const index_1 = require("./../index");
class PortfolioRemove {
constructor(data) {
let initialDocumentPathDefault = "";
this.initialDocumentPath = typeof (data === null || data === void 0 ? void 0 : data.initialDocumentPath) !== "undefined" ? data === null || data === void 0 ? void 0 : data.initialDocumentPath : initialDocumentPathDefault;
let initialFileNameDefault = "";
this.initialFileName = typeof (data === null || data === void 0 ? void 0 : data.initialFileName) !== "undefined" ? data === null || data === void 0 ? void 0 : data.initialFileName : initialFileNameDefault;
this.selection = (data.selection || []).map(index_1.PortfolioSelection.fromJson);
}
static getInitialDocumentPathDefault() {
return "";
}
static getInitialDocumentPathDescription() {
return "Defines the path\/folder where the initially shown document is stored in the portfolio.\n\n**Important:** The \"path\" and \"fileName\" parameters follow and implement the glob selection patterns for files and paths. Which is: A portfolio path is defined by \"\/\" separated nested folder names.";
}
static getInitialFileNameDefault() {
return "";
}
static getInitialFileNameDescription() {
return "Select the name of the initially shown document.\n\n**Important:** The \"path\" and \"fileName\" parameters follow and implement the glob selection patterns for files and paths. Which is: A portfolio path is defined by \"\/\" separated nested folder names.";
}
static getSelectionDefault() {
return [];
}
static getSelectionDescription() {
return "";
}
static fromJson(data) {
if (data === undefined || data === null) {
return data;
}
return new PortfolioRemove(data);
}
toJson() {
var _a;
return {
'initialDocumentPath': this.initialDocumentPath,
'initialFileName': this.initialFileName,
'selection': (_a = this.selection) === null || _a === void 0 ? void 0 : _a.map((data) => data.toJson()),
};
}
clone() {
return PortfolioRemove.fromJson(this.toJson());
}
}
exports.PortfolioRemove = PortfolioRemove;
//# sourceMappingURL=PortfolioRemove.js.map