UNPKG

840 BTypeScriptView Raw
1import type { Link } from '../common-types';
2import type { TaxonomyConceptLink } from './concept';
3import type { LocalizedEntity } from './utils';
4export 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};
21export type ConceptSchemeProps<Locales extends string = string> = LocalizedEntity<ConceptScheme, 'prefLabel' | 'definition', Locales>;
22export type CreateConceptSchemeProps = Partial<Omit<ConceptSchemeProps, 'sys'>> & Pick<ConceptSchemeProps, 'prefLabel'>;