Interface: RevisionState
Defined in: packages/sdk/src/utils/revision-state.ts:26
Properties
draftIsLive
draftIsLive:
boolean
Defined in: packages/sdk/src/utils/revision-state.ts:32
active === draft: live traffic reads the editor's mutable draft.
hasUnpublishedChanges
hasUnpublishedChanges:
boolean
Defined in: packages/sdk/src/utils/revision-state.ts:34
The draft has been edited since the last publish (or since creation).
isActive
isActive:
boolean
Defined in: packages/sdk/src/utils/revision-state.ts:28
This revision is the workflow's active (live-traffic) revision.
isDraft
isDraft:
boolean
Defined in: packages/sdk/src/utils/revision-state.ts:30
This revision is the workflow's mutable draft.
state
state:
"draft"|"published"
Defined in: packages/sdk/src/utils/revision-state.ts:36
'published' once the revision has a publish timestamp, else 'draft'.