Skip to content

Delta

type Delta =
| CreatedDelta
| UpdatedDelta
| MovedDelta
| DeletedDelta;

One small part of a change. There are four kinds:

  • created: { kind, ref, value }. Something was made, and value is what it was made with.
  • updated: { kind, ref, fields, before, after }. fields lists the names of the fields that changed. before and after hold their values before and after.
  • moved: { kind, row, from, to }. A row went to another place. from and to hold its outline, its parent and its position.
  • deleted: { kind, ref, value }. Something was deleted, and value is what it was.

ref is { kind, id }. kind is row, outline, area, search or library, or a thing about devices and sharing (me, group, device, friend, share).