1 | import type { Link } from '../common-types';
|
2 | import type { TaxonomyConceptLink } from './concept';
|
3 | import type { LocalizedEntity } from './utils';
|
4 | export type ConceptScheme = {
|
5 | uri: string | null;
|
6 | prefLabel: string;
|
7 | definition: string | null;
|
8 | topConcepts: TaxonomyConceptLink[];
|
9 | concepts: TaxonomyConceptLink[];
|
10 | totalConcepts: number;
|
11 | sys: {
|
12 | type: 'TaxonomyConceptScheme';
|
13 | createdAt: string;
|
14 | updatedAt: string;
|
15 | id: string;
|
16 | version: number;
|
17 | createdBy: Link<'User'>;
|
18 | updatedBy: Link<'User'>;
|
19 | };
|
20 | };
|
21 | export type ConceptSchemeProps<Locales extends string = string> = LocalizedEntity<ConceptScheme, 'prefLabel' | 'definition', Locales>;
|
22 | export type CreateConceptSchemeProps = Partial<Omit<ConceptSchemeProps, 'sys'>> & Pick<ConceptSchemeProps, 'prefLabel'>;
|