Sync / foldkit-sync

OutboxEntry

interface · packages/sync/src/indexedDb.ts:5

interface OutboxEntry {
  readonly revision: number
  readonly nextLocalSequence: number
  readonly localSequence: number
  readonly operation: unknown
}

One submitted operation, as Storage.append records it.

Members

OutboxEntry.revision

property · packages/sync/src/indexedDb.ts:7

readonly revision: number

The replica's revision once this operation is in its outbox.

OutboxEntry.nextLocalSequence

property · packages/sync/src/indexedDb.ts:8

readonly nextLocalSequence: number

OutboxEntry.localSequence

property · packages/sync/src/indexedDb.ts:13

readonly localSequence: number

The operation's local sequence. An entry with the sequence of one already in the outbox replaces it: a coalesced submit rewrites the last operation.

OutboxEntry.operation

property · packages/sync/src/indexedDb.ts:15

readonly operation: unknown

The operation, encoded.