Skip to Content

Interface ImportOutcome

What became of one memory in an import.

An import mints no operation id, so index is the only thing identifying the entry this is about, and nothing undoes an import once it has landed.

errors is empty for an entry that was queued, so ImportOutcome.status is what says whether there is anything to read.

ImportStatusREJECTED and ERROR do not share a remedy.

interface ImportOutcome {
    index: number;
    status: ImportStatus;
    errors: readonly string[];
}
Index
index: number

Its position in the batch as the caller sent it.

The SDK splits a long batch across several calls and renumbers each response, so this always indexes the array that was passed in.

status: ImportStatus

Whether it was queued, refused, duplicated or failed.

errors: readonly string[]

Why it was refused, when it was.