Skip to content

Interface: BulkBindSortsResponse

@kortexya/reasoninglayer


@kortexya/reasoninglayer / BulkBindSortsResponse

Defined in: src/types/ontology-bridge.ts:123

Response from a bulk sort-table bind.

The endpoint always returns HTTP 200, even when some bindings failed: partial success is reported in the body, not the status code. Callers MUST inspect BulkBindSortsResponse.errors — boundCount alone does not tell you whether every binding in the request succeeded. Compare boundCount against the number of submitted bindings, or check that errors is empty.

const result = await client.ontologyBridge.bulkBindSorts({ bindings });
if (result.errors && result.errors.length > 0) {
for (const failure of result.errors) {
console.error(`${failure.sortName}: ${failure.error}`);
}
}
console.log(`${result.boundCount}/${bindings.length} bound`);

boundCount: number

Defined in: src/types/ontology-bridge.ts:125

Number of bindings that succeeded.


optional errors?: BulkBindError[]

Defined in: src/types/ontology-bridge.ts:127

Per-item failures. Empty (or absent) when every binding succeeded.