Interface: BulkBindSortsResponse
@kortexya/reasoninglayer / OntologyBridge / BulkBindSortsResponse
Interface: BulkBindSortsResponse
Defined in: src/types/ontology-bridge.ts:123
Response from a bulk sort-table bind.
Remarks
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.
Example
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`);Properties
boundCount
boundCount:
number
Defined in: src/types/ontology-bridge.ts:125
Number of bindings that succeeded.
errors?
optionalerrors:BulkBindError[]
Defined in: src/types/ontology-bridge.ts:127
Per-item failures. Empty (or absent) when every binding succeeded.