2016-09-09 17:15:58 -03:00
|
|
|
import { Map, OrderedMap } from 'immutable';
|
2016-09-08 16:18:38 -03:00
|
|
|
|
|
|
|
// Create/edit workflow modes
|
2016-08-29 19:32:56 -03:00
|
|
|
export const SIMPLE = 'simple';
|
2016-09-06 13:04:17 -03:00
|
|
|
export const EDITORIAL_WORKFLOW = 'editorial_workflow';
|
2016-09-08 16:18:38 -03:00
|
|
|
|
2019-12-18 18:16:02 +02:00
|
|
|
export const Statues = {
|
2016-09-08 16:18:38 -03:00
|
|
|
DRAFT: 'draft',
|
|
|
|
PENDING_REVIEW: 'pending_review',
|
|
|
|
PENDING_PUBLISH: 'pending_publish',
|
2019-12-18 18:16:02 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
// Available status
|
|
|
|
export const status = OrderedMap(Statues);
|
2016-09-08 16:18:38 -03:00
|
|
|
|
|
|
|
export const statusDescriptions = Map({
|
2016-09-09 17:15:58 -03:00
|
|
|
[status.get('DRAFT')]: 'Draft',
|
|
|
|
[status.get('PENDING_REVIEW')]: 'Waiting for Review',
|
|
|
|
[status.get('PENDING_PUBLISH')]: 'Waiting to go live',
|
2016-09-08 16:18:38 -03:00
|
|
|
});
|
2019-12-18 18:16:02 +02:00
|
|
|
|
|
|
|
export type Status = keyof typeof Statues;
|