Type Alias: VocabularyRecordOperation
@kortexya/reasoninglayer / VocabularyRecordOperation
Type Alias: VocabularyRecordOperation
Section titled “Type Alias: VocabularyRecordOperation”VocabularyRecordOperation = {
op:"upsert";record:VocabularyRecordInput; } | {op:"remove";recordId:string; } | {op:"upsert_migration_step";step:VocabularyDataMigrationStepInput; } | {definedOnly?:boolean;op:"accept_proposals"; }
Defined in: src/types/vocabulary.ts:1347
One operation of a change set, applied in order: insert or replace a record, remove one, or accept every proposal of the change set.
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ op: "upsert"; record: VocabularyRecordInput; }
op:
"upsert"
Discriminator: insert or replace.
record
Section titled “record”record:
VocabularyRecordInput
The record.
Type Literal
Section titled “Type Literal”{ op: "remove"; recordId: string; }
op:
"remove"
Discriminator: remove.
recordId
Section titled “recordId”recordId:
string
The record to remove (UUID).
Type Literal
Section titled “Type Literal”{ op: "upsert_migration_step"; step: VocabularyDataMigrationStepInput; }
op:
"upsert_migration_step"
Discriminator: insert or replace a data migration step.
The step.
Type Literal
Section titled “Type Literal”{ definedOnly?: boolean; op: "accept_proposals"; }
definedOnly?
Section titled “definedOnly?”
optionaldefinedOnly?:boolean
Accept only defined concepts and the proposals they connect. Defaults to false.
op:
"accept_proposals"
Discriminator: accept every proposal of the change set.
Remarks
Section titled “Remarks”Wire format: internally tagged by op. accept_proposals accepts an optional
definedOnly flag; without it the engine accepts every draft
concept and every proposed membership, concept relation, concept mapping
and collection of the change set as it stands at that operation.
Deprecated, rejected and baseline records are unchanged.