@tailor-cms/config

1.0.0-beta.26 • Public • Published

@tailor-cms/config

Npm version GitHub license js @extensionengine style style @extensionengine style Open Source Love

Usage

const { getSchemaApi, getWorkflowApi, processSchemas } = require('@tailor-cms/config');

API

getSchemaApi(SCHEMAS)

The method returning an object containing schema helper methods.

Methods:

  • getSchemaId
  • getSchema
  • getLevel
  • getOutlineLevels
  • isOutlineActivity
  • getOutlineChildren
  • filterOutlineActivities
  • isTrackedInWorkflow
  • getRepositoryMetadata
  • getActivityLabel
  • getActivityMetadata
  • getElementMetadata
  • getLevelRelationships
  • getRepositoryRelationships
  • getSiblingTypes
  • getSupportedContainers
  • getContainerTemplateId
  • isEditable

getWorkflowApi(WORKFLOWS, schemaApi)

The method returning an object containing workflow properties and methods.

Properties:

  • priorities

Methods:

  • getWorkflow
  • getPriority
  • getDefaultWorkflowStatus
  • getDefaultActivityStatus

processSchemas(SCHEMAS)

The method which validates schemas, prefixes activity types with schema ID, e.g. SCHEMA_ID/TYPE, and processes meta.

Readme

Keywords

none

Package Sidebar

Install

npm i @tailor-cms/config

Weekly Downloads

4

Version

1.0.0-beta.26

License

MIT

Unpacked Size

239 kB

Total Files

5

Last publish

Collaborators

  • droguljic
  • marjev
  • undersc0pe
  • ee_admin
  • ikovac