DeskViewModel class
Properties
archiveVersion
→ MutationSignal<DocumentVersion ? , String >
late final
createDocument
→ MutationSignal<DeskDocument ? , ({Map <String , dynamic > data , bool isDefault , bool publish , String ? slug , String title } ) >
late final
currentDocumentId
→ Signal<String ? >
final
currentDocumentType
→ Computed<DocumentType <Serializable > ? >
Computed: resolves the slug to a DocumentType object.
late final
currentDocumentTypeSlug
→ Signal<String ? >
final
currentVersionId
→ Signal<String ? >
final
dataSource
→ DataSource
final
deleteDocument
→ MutationSignal<({bool deleted , DeskDocument ? newDefault } ) , String >
late final
deleteVersion
→ MutationSignal<bool , String >
late final
documentDataContainer
→ SignalContainer<dynamic , String , AwaitableFutureSignal<DocumentVersion ? > >
late final
documentListVisible
→ Signal<bool >
final
documentsContainer
→ SignalContainer<dynamic , String , AwaitableFutureSignal<DocumentList > >
late final
documentTypes
→ List <DocumentType <Serializable > >
The registered document types (injected from coordinator/app config).
final
hashCode
→ int
The hash code for this object.
no setter inherited
hasUnpublishedChanges
→ Computed<bool >
True when the document has unsaved (unpublished) changes.
late final
publishCurrentDraft
→ MutationSignal<DocumentVersion , String >
Atomically publishes the document's current draft as a new version.
late final
restoreVersion
→ MutationSignal<DeskDocument , ({String documentId , String versionId } ) >
Restores a previous version's data into the current draft by fetching the
reconstructed version state and pushing it through updateDocumentData.
Does not auto-publish.
late final
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
selectedDocumentContainer
→ SignalContainer<dynamic , String , AwaitableFutureSignal<DeskDocument ? > >
Fetches the full DeskDocument for the given ID.
late final
selectedDocumentId
→ Signal<String ? >
final
selectedVersionId
→ Signal<String ? >
final
setDefaultDocument
→ MutationSignal<DeskDocument ? , String >
late final
final
versionsContainer
→ SignalContainer<dynamic , String , AwaitableFutureSignal<DocumentVersionList > >
late final