UNPKG

@eddye68/studio-client

Version:

The AWS service Studio client

232 lines (223 loc) 6.67 kB
"use strict"; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); // src/client/helpers/wfl-helpers.ts var wfl_helpers_exports = {}; __export(wfl_helpers_exports, { WflHelpers: () => WflHelpers }); module.exports = __toCommonJS(wfl_helpers_exports); // src/model/wfl/basic-metadata.ts var BasicMetaData = class { constructor(params) { this.__classname__ = "BasicMetaData"; this.ID = null; this.DocumentID = null; this.Name = null; this.Type = null; this.Publication = null; this.Category = null; this.ContentSource = null; this.MasterId = null; this.StoryId = null; this.ID = params.ID ?? null; this.DocumentID = params.DocumentID ?? null; this.Name = params.Name ?? null; this.Type = params.Type ?? null; this.Publication = params.Publication ?? null; this.Category = params.Category ?? null; this.ContentSource = params.ContentSource ?? null; this.MasterId = params.MasterId ?? null; this.StoryId = params.StoryId ?? null; } }; // src/model/wfl/category.ts var Category = class { constructor(params) { this.__classname__ = "Category"; this.Id = null; this.Name = null; this.Id = params.Id ?? null; this.Name = params.Name ?? null; } }; // src/model/wfl/metadata.ts var MetaData = class { constructor(params) { this.__classname__ = "MetaData"; this.BasicMetaData = null; this.RightsMetaData = null; this.SourceMetaData = null; this.ContentMetaData = null; this.WorkflowMetaData = null; this.ExtraMetaData = null; this.BasicMetaData = params.BasicMetaData ?? null; this.RightsMetaData = params.RightsMetaData ?? null; this.SourceMetaData = params.SourceMetaData ?? null; this.ContentMetaData = params.ContentMetaData ?? null; this.WorkflowMetaData = params.WorkflowMetaData ?? null; this.ExtraMetaData = params.ExtraMetaData ?? null; } }; // src/model/wfl/publication.ts var Publication = class { constructor(params) { this.__classname__ = "Publication"; this.Id = null; this.Name = null; this.Id = params.Id ?? null; this.Name = params.Name ?? null; } }; // src/model/wfl/state.ts var State = class { constructor(Id = null, Name = null, Type = null, Produce = null, Color = null, DefaultRouteTo = null) { this.__classname__ = "State"; this.Id = null; this.Name = null; this.Type = null; this.Produce = null; this.Color = null; this.DefaultRouteTo = null; this.Id = Id; this.Name = Name; this.Type = Type; this.Produce = Produce; this.Color = Color; this.DefaultRouteTo = DefaultRouteTo; } }; // src/model/wfl/wflobject.ts var WflObject = class { constructor(params) { this.__classname__ = "Object"; this.MetaData = null; this.Relations = null; this.Pages = null; this.Files = null; this.Messages = null; this.Elements = null; this.Targets = null; this.Renditions = null; this.MessageList = null; this.ObjectLabels = null; this.InDesignArticles = null; this.Placements = null; this.Operations = null; this.MetaData = params.Metadata ?? null; this.Relations = params.Relations ?? null; ; this.Pages = params.Pages ?? null; ; this.Files = params.Files ?? null; ; this.Messages = params.Messages ?? null; ; this.Elements = params.Elements ?? null; ; this.Targets = params.Targets ?? null; ; this.Renditions = params.Renditions ?? null; ; this.MessageList = params.MessageList ?? null; ; this.ObjectLabels = params.ObjectLabels ?? null; ; this.InDesignArticles = params.InDesignArticles ?? null; ; this.Placements = params.Placements ?? null; ; this.Operations = params.Operations ?? null; ; } }; // src/model/wfl/workflow-metadata.ts var WorkflowMetaData = class { constructor(params) { this.__classname__ = "WorkflowMetaData"; this.Deadline = null; this.Urgency = null; this.Modifier = null; this.Modified = null; this.Creator = null; this.Created = null; this.Comment = null; this.State = null; this.RouteTo = null; this.LockedBy = null; this.Version = null; this.DeadlineSoft = null; this.Rating = null; this.Deletor = null; this.Deleted = null; this.Deadline = params.Deadline ?? null; this.Urgency = params.Urgency ?? null; this.Modifier = params.Modifier ?? null; this.Modified = params.Modified ?? null; this.Creator = params.Creator ?? null; this.Created = params.Created ?? null; this.Comment = params.Comment ?? null; this.State = params.State ?? null; this.RouteTo = params.RouteTo ?? null; this.LockedBy = params.LockedBy ?? null; this.Version = params.Version ?? null; this.DeadlineSoft = params.DeadlineSoft ?? null; this.Rating = params.Rating ?? null; this.Deletor = params.Deletor ?? null; this.Deleted = params.Deleted ?? null; } }; // src/client/helpers/wfl-helpers.ts var WflHelpers = class { /** * * @param name * @param type The object type like 'Article' * @param categoryId * @param publicationId * @param stateId * * @returns The Workflow object */ static createWflObject(name, type, categoryId, publicationId, stateId) { return new WflObject({ Metadata: new MetaData({ BasicMetaData: new BasicMetaData({ Name: name, Type: type, Publication: new Publication({ Id: publicationId }), Category: new Category({ Id: categoryId }) }), WorkflowMetaData: new WorkflowMetaData({ State: new State(stateId) }) }), Files: [], Relations: [] }); } }; // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { WflHelpers }); //# sourceMappingURL=wfl-helpers.js.map