UNPKG

@viewdo/dxp-story-cli

Version:

DXP Story Management CLI

46 lines 2.32 kB
"use strict"; 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.StoryAction = void 0; const class_transformer_1 = require("class-transformer"); const ConfigurationSource_1 = require("./ConfigurationSource"); const StoryActionRule_1 = require("./StoryActionRule"); const WaitType_1 = require("./WaitType"); const ScheduleWindow_1 = require("./ScheduleWindow"); class StoryAction { constructor() { /** The units to delay before firing when WaitType is not None */ this.waitValue = 0; /** Should this fire each time the event is triggered? @default false */ this.fireMultiple = false; /** A list of rules that have to be satisfied before this action will fire. */ this.rules = []; this.wait = WaitType_1.WaitType.None; } } exports.StoryAction = StoryAction; __decorate([ (0, class_transformer_1.Type)(() => ConfigurationSource_1.ConfigurationSource), __metadata("design:type", ConfigurationSource_1.ConfigurationSource /** Action parameters. These vary by action and provider. */ ) ], StoryAction.prototype, "configurationSource", void 0); __decorate([ (0, class_transformer_1.Type)(() => StoryActionRule_1.StoryActionRule), __metadata("design:type", Array) ], StoryAction.prototype, "rules", void 0); __decorate([ (0, class_transformer_1.Type)(() => ScheduleWindow_1.ScheduleWindow), __metadata("design:type", ScheduleWindow_1.ScheduleWindow) ], StoryAction.prototype, "executionWindow", void 0); //# sourceMappingURL=StoryAction.js.map