Type Alias: VocabularyImportTargetScheme
@kortexya/reasoninglayer / VocabularyImportTargetScheme
Type Alias: VocabularyImportTargetScheme
Section titled “Type Alias: VocabularyImportTargetScheme”VocabularyImportTargetScheme = {
existing: {schemeId:string; }; } | {new: {scheme:Omit<VocabularySchemeInput,"kind">; }; }
Defined in: src/types/vocabulary.ts:1531
The scheme an import or a migration writes into.
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ existing: { schemeId: string; }; }
existing
Section titled “existing”existing:
object
An existing scheme of the active release.
existing.schemeId
Section titled “existing.schemeId”schemeId:
string
The scheme (UUID).
Type Literal
Section titled “Type Literal”{ new: { scheme: Omit<VocabularySchemeInput, "kind">; }; }
new:
object
A new scheme, created by the commit.
new.scheme
Section titled “new.scheme”scheme:
Omit<VocabularySchemeInput,"kind">
The scheme.
Remarks
Section titled “Remarks”Wire format: externally tagged, {"existing":{"scheme_id":…}} or
{"new":{"scheme":{…}}}. A new scheme is created by the commit; its fields
are those of a VocabularySchemeInput without the kind tag.