UNPKG

@signatu/policy

Version:
50 lines 1.64 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var common_lib_1 = require("@signatu/common-lib"); var ContentType; (function (ContentType) { ContentType["TEXT"] = "TextContent"; ContentType["ICON"] = "FontIconContent"; ContentType["IMAGE"] = "ImageContent"; ContentType["YOUTUBE"] = "YouTube"; ContentType["MARKDOWN"] = "MarkdownContent"; ContentType["DATAPROCESSING"] = "DataProcessingContent"; })(ContentType = exports.ContentType || (exports.ContentType = {})); ; exports.ALL_CONTENT = [ ContentType.DATAPROCESSING, ContentType.ICON, ContentType.IMAGE, ContentType.MARKDOWN, ContentType.TEXT, ContentType.YOUTUBE ]; var OutputType; (function (OutputType) { OutputType["MARKDOWN"] = "markdown"; })(OutputType = exports.OutputType || (exports.OutputType = {})); ; ; var PolicyContentBase = /** @class */ (function () { function PolicyContentBase(type, language, cssClass) { this.type = type; this.language = language; this.cssClass = cssClass; this.language = this.language ? language : new common_lib_1.Language(common_lib_1.Language.ALL); } PolicyContentBase.prototype.toJSON = function () { var json = { type: this.type, language: this.language.isoLanguage, value: this.value, ref: this.ref, /** @deprecated */ contentType: this.type, cssClass: this.cssClass }; return json; }; return PolicyContentBase; }()); exports.PolicyContentBase = PolicyContentBase; //# sourceMappingURL=policyContent.js.map