@viewdo/dxp-story-cli
Version:
DXP Story Management CLI
71 lines • 3.31 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.DXPConfiguration = void 0;
const CDNConfiguration_1 = require("./CDNConfiguration");
const class_transformer_1 = require("class-transformer");
const OrganizationAssetConfiguration_1 = require("./OrganizationAssetConfiguration");
const StoryAssetConfiguration_1 = require("./StoryAssetConfiguration");
/**
* DXP ASSET CONFIG:
* -----------------------------------------------------
* This file defines a mapping between file-bases assets and their API versions hosted in the DXP platform.
*
*/
let DXPConfiguration = class DXPConfiguration {
constructor() {
/**
* DXP model-type (read-only)
*/
this.kind = "DXP";
/**
* API version, model location (read-only)
*/
this.apiVersion = "api.view.do/v4/admin";
/**
* A list of organization asset configurations. These files will be synced with the assets on the platform on 'push' and 'pull'.
*/
this.organizations = [];
/**
* A list of story asset configurations. These files will be synced with the assets on the platform on 'push' and 'pull'.
*/
this.stories = [];
}
};
exports.DXPConfiguration = DXPConfiguration;
DXPConfiguration.file_name = "dxp-config.yml";
__decorate([
(0, class_transformer_1.Expose)({ toPlainOnly: true }),
__metadata("design:type", String)
], DXPConfiguration.prototype, "kind", void 0);
__decorate([
(0, class_transformer_1.Expose)({ toPlainOnly: true }),
__metadata("design:type", String)
], DXPConfiguration.prototype, "apiVersion", void 0);
__decorate([
(0, class_transformer_1.Expose)(),
(0, class_transformer_1.Type)(() => CDNConfiguration_1.CDNConfiguration),
__metadata("design:type", CDNConfiguration_1.CDNConfiguration)
], DXPConfiguration.prototype, "cdn", void 0);
__decorate([
(0, class_transformer_1.Expose)(),
(0, class_transformer_1.Type)(() => OrganizationAssetConfiguration_1.OrganizationAssetConfiguration),
__metadata("design:type", Array)
], DXPConfiguration.prototype, "organizations", void 0);
__decorate([
(0, class_transformer_1.Expose)(),
(0, class_transformer_1.Type)(() => StoryAssetConfiguration_1.StoryAssetConfiguration),
__metadata("design:type", Array)
], DXPConfiguration.prototype, "stories", void 0);
exports.DXPConfiguration = DXPConfiguration = __decorate([
(0, class_transformer_1.Exclude)()
], DXPConfiguration);
//# sourceMappingURL=DXPConfiguration.js.map