@viewdo/dxp-story-cli
Version:
DXP Story Management CLI
88 lines • 3.97 kB
JavaScript
;
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.StoryAssetConfiguration = void 0;
const class_transformer_1 = require("class-transformer");
const EpisodeAssetConfiguration_1 = require("./EpisodeAssetConfiguration");
const AssetConfigurationBase_1 = require("./support/AssetConfigurationBase");
/**
* Story asset locations for synchronization
*/
let StoryAssetConfiguration = class StoryAssetConfiguration extends AssetConfigurationBase_1.AssetConfigurationBase {
prepareForWrite(story_config) {
this.key = story_config.key;
this.name = story_config.name;
this.organization_key = story_config.organizationKey;
this.url = story_config.url;
this.vanity_url = story_config.vanityUrl;
super.removeKnownPaths(story_config);
return this;
}
};
exports.StoryAssetConfiguration = StoryAssetConfiguration;
__decorate([
(0, class_transformer_1.Expose)(),
__metadata("design:type", String)
], StoryAssetConfiguration.prototype, "key", void 0);
__decorate([
(0, class_transformer_1.Expose)(),
__metadata("design:type", String)
], StoryAssetConfiguration.prototype, "name", void 0);
__decorate([
(0, class_transformer_1.Expose)(),
__metadata("design:type", String)
], StoryAssetConfiguration.prototype, "organization_key", void 0);
__decorate([
(0, class_transformer_1.Expose)(),
__metadata("design:type", String)
], StoryAssetConfiguration.prototype, "url", void 0);
__decorate([
(0, class_transformer_1.Expose)(),
__metadata("design:type", String)
], StoryAssetConfiguration.prototype, "vanity_url", void 0);
__decorate([
(0, class_transformer_1.Expose)(),
__metadata("design:type", String)
], StoryAssetConfiguration.prototype, "html_file", void 0);
__decorate([
(0, class_transformer_1.Expose)(),
__metadata("design:type", String)
], StoryAssetConfiguration.prototype, "js_file", void 0);
__decorate([
(0, class_transformer_1.Expose)(),
__metadata("design:type", String)
], StoryAssetConfiguration.prototype, "json_file", void 0);
__decorate([
(0, class_transformer_1.Expose)(),
__metadata("design:type", String)
], StoryAssetConfiguration.prototype, "css_file", void 0);
__decorate([
(0, class_transformer_1.Expose)(),
__metadata("design:type", String)
], StoryAssetConfiguration.prototype, "intro_html_file", void 0);
__decorate([
(0, class_transformer_1.Expose)(),
(0, class_transformer_1.Type)(() => EpisodeAssetConfiguration_1.EpisodeAssetConfiguration),
__metadata("design:type", Array)
], StoryAssetConfiguration.prototype, "episodes", void 0);
__decorate([
(0, class_transformer_1.Expose)(),
__metadata("design:type", Object)
], StoryAssetConfiguration.prototype, "email_templates", void 0);
__decorate([
(0, class_transformer_1.Expose)(),
__metadata("design:type", Object)
], StoryAssetConfiguration.prototype, "text_templates", void 0);
exports.StoryAssetConfiguration = StoryAssetConfiguration = __decorate([
(0, class_transformer_1.Exclude)()
// implements IAssetConfiguration<StoryAssetConfiguration,StoryConfiguration>
], StoryAssetConfiguration);
//# sourceMappingURL=StoryAssetConfiguration.js.map