hara.lang.library-snapshot
add-book
added in 4.0
(add-book snapshot {:keys [lang], :as book})adds a book to a snapshot
delete-entries
added in 4.0
(delete-entries snapshot entries)delete entries from the snapshot
delete-entry
added in 4.0
(delete-entry snapshot {:keys [lang module section id]})deletes an entry from the snapshot
delete-module
added in 4.0
(delete-module snapshot lang module-id)deletes a module in the snapshot
delete-modules
added in 4.0
(delete-modules snapshot lang module-ids)deletes a bunch of modules in the snapshot
install-book
added in 4.0
(install-book snapshot {:keys [lang parent], :as new-book})adds a new book or updates grammar if exists
install-book-update
added in 4.0
(install-book-update snapshot {:keys [lang grammar parent meta]})updates the book grammar, meta and parent
install-check-merged
added in 4.0
(install-check-merged book & [module-id])checks that the book is not merged (used to check mutate)
install-module
added in 4.0
(install-module snapshot lang module-id options)adds an new module or update fields if exists
install-module-specialized
added in 4.1
(install-module-specialized snapshot lang source-id module-id options)clones a source module under a new module id with rewritten links
install-module-update
added in 4.0
(install-module-update book {module-id :id, :as module})updates the book module
list-entries
added in 4.0
(list-entries snapshot lang)(list-entries snapshot lang module-id)(list-entries snapshot lang module-id section)lists entries for a snapshot
set-entries
added in 4.0
(set-entries snapshot entries & [opts])sets an entry in the snapshot
snapshot-merge
added in 4.0
(snapshot-merge parent child)a rough merge of only the modules from the child to the parent
snapshot-reset
added in 4.0
(snapshot-reset snapshot)(snapshot-reset snapshot ks)resets a snapshot to it’s blanked modules