1 | import type { Link } from '../common-types';
|
2 | import type { LocalizedEntity } from './utils';
|
3 | export type TaxonomyConceptLink = Link<'TaxonomyConcept'>;
|
4 | type Concept = {
|
5 | uri: string | null;
|
6 | prefLabel: string;
|
7 | altLabels: string[];
|
8 | hiddenLabels: string[];
|
9 | definition: string | null;
|
10 | editorialNote: string | null;
|
11 | historyNote: string | null;
|
12 | example: string | null;
|
13 | note: string | null;
|
14 | scopeNote: string | null;
|
15 | notations: string[];
|
16 | broader: TaxonomyConceptLink[];
|
17 | related: TaxonomyConceptLink[];
|
18 | sys: {
|
19 | type: 'TaxonomyConcept';
|
20 | createdAt: string;
|
21 | updatedAt: string;
|
22 | id: string;
|
23 | version: number;
|
24 | createdBy: Link<'User'>;
|
25 | updatedBy: Link<'User'>;
|
26 | };
|
27 | };
|
28 | export type ConceptProps<Locales extends string = string> = LocalizedEntity<Omit<Concept, 'conceptSchemes'>, 'prefLabel' | 'altLabels' | 'hiddenLabels' | 'definition' | 'historyNote' | 'editorialNote' | 'example' | 'note' | 'scopeNote', Locales>;
|
29 | export type CreateConceptProps = Partial<Omit<ConceptProps, 'sys'>> & Pick<ConceptProps, 'prefLabel'>;
|
30 | export {};
|