README
@tailor-cms/config
Usage
const { SCHEMAS, schema, workflow } = require('@tailor-cms/config');
API
SCHEMAS
Default configuration merged with custom configuration.
SCHEMAS: ISchemaInterface[]
interface ISchemaInterface {
id: string;
name: string;
meta: array;
structure: array;
contentContainers: array;
elementMeta: array;
};
schema
The object containing schema helper methods.
Methods:
- getSchemaId
- getSchema
- getLevel
- getOutlineLevels
- isOutlineActivity
- getOutlineChildren
- filterOutlineActivities
- isTrackedInWorkflow
- getRepositoryMetadata
- getActivityLabel
- getActivityMetadata
- getElementMetadata
- getLevelRelationships
- getRepositoryRelationships
- getSiblingTypes
- getSupportedContainers
- getContainerTemplateId
- isEditable
workflow
The object containing workflow properties and methods.
Properties:
- priorities
Methods:
- getWorkflow
- getPriority
- getDefaultWorkflowStatus
- getDefaultActivityStatus