Liking cljdoc? Tell your friends :D

ctim.events.obj-to-event


diff-to-list-of-tripletclj/s

(diff-to-list-of-triplet [diff-before diff-after _])

Given the output of a diff between maps return a list of edit distance operation under the form of an atom triplet.

Given the output of a `diff` between maps return a list
of edit distance operation under the form of an atom triplet.
sourceraw docstring

to-create-eventclj/s≠

clj
(to-create-event object)
(to-create-event object id)
cljs
(to-create-event G__2795)
(to-create-event G__2799 G__2800)

Inputs: ([object] [object id]) Returns: vs/CreateEvent

Create a CreateEvent from a StoredX object

Inputs: ([object] [object id])
Returns: vs/CreateEvent

Create a CreateEvent from a StoredX object
sourceraw docstring

to-delete-eventclj/s≠

clj
(to-delete-event object)
(to-delete-event object id)
cljs
(to-delete-event G__2826)
(to-delete-event G__2830 G__2831)

Inputs: ([object] [object id]) Returns: vs/DeleteEvent

transform an object (generally a StoredObject) to its corresponding Event

Inputs: ([object] [object id])
Returns: vs/DeleteEvent

transform an object (generally a `StoredObject`) to its corresponding `Event`
sourceraw docstring

to-update-eventclj/s≠

clj
(to-update-event object prev-object)
(to-update-event object prev-object id)
cljs
(to-update-event G__2812 G__2813)
(to-update-event G__2817 G__2818 G__2819)

Inputs: ([object prev-object] [object prev-object id]) Returns: vs/UpdateEvent

transform an object (generally a StoredObject) to an UpdateEvent. The two arguments object and prev-object should have the same schema. The fields should contains enough information to retrieve all informations. But the complete object is given for simplicity.

Inputs: ([object prev-object] [object prev-object id])
Returns: vs/UpdateEvent

transform an object (generally a `StoredObject`) to an `UpdateEvent`.
 The two arguments `object` and `prev-object` should have the same schema.
 The fields should contains enough information to retrieve all informations.
 But the complete object is given for simplicity.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close