Interface EditEnvelope<T>

Single-source edit envelope. Adapters that do not advertise applyEdits throw HonuaCapabilityNotSupportedError rather than dropping records.

interface EditEnvelope<T> {
    adds?: readonly CanonicalFeature<T>[];
    deletes?: readonly FeatureId[];
    rollbackOnFailure?: boolean;
    signal?: AbortSignal;
    updates?: readonly CanonicalFeature<T>[];
}

Type Parameters

  • T = Record<string, unknown>

Properties

adds?: readonly CanonicalFeature<T>[]
deletes?: readonly FeatureId[]
rollbackOnFailure?: boolean

When true (and the protocol honors it) the edit batch is atomic.

signal?: AbortSignal

Caller-supplied cancellation.

updates?: readonly CanonicalFeature<T>[]