Skip to content

Type Alias: VocabularyImportTargetScheme

@kortexya/reasoninglayer


@kortexya/reasoninglayer / 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.

{ existing: { schemeId: string; }; }

existing: object

An existing scheme of the active release.

schemeId: string

The scheme (UUID).


{ new: { scheme: Omit<VocabularySchemeInput, "kind">; }; }

new: object

A new scheme, created by the commit.

scheme: Omit<VocabularySchemeInput, "kind">

The scheme.

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.