@honua/sdk-js
    Preparing search index...

    Interface EditEnvelope<T>

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

    interface EditEnvelope<T = Record<string, unknown>> {
        adds?: readonly CanonicalFeature<T>[];
        deletes?: readonly FeatureId[];
        rollbackOnFailure?: boolean;
        signal?: AbortSignal;
        updates?: readonly CanonicalFeature<T>[];
        useGlobalIds?: boolean;
    }

    Type Parameters

    • T = Record<string, unknown>
    Index

    Properties

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

    Object IDs, or global IDs when useGlobalIds is true.

    rollbackOnFailure?: boolean

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

    signal?: AbortSignal

    Caller-supplied cancellation.

    updates?: readonly CanonicalFeature<T>[]
    useGlobalIds?: boolean

    Address updates (by globalId) and deletes by global ID instead of object ID. Integer and global-ID selectors cannot be mixed in one envelope.