@ts4ocds/core
Version:
TS4OCDS is a library of TypeScript entities that takes an approach to befriend large OCDS JSONs with your per-project routine of writing whole lotta interfaces for them.
30 lines (26 loc) • 1.02 kB
text/typescript
/**
* @packageDocumentation
* @module Standard.Item
*/
import { CodeList, OpenCodeList } from '@ts4ocds/utils';
/**
* The scheme or codelist from which the {@link Classification.id | classification code} is taken.
* For line {@link Item | item} {@link Item.classification | classifications},
* this uses the open [itemClassificationScheme](https://standard.open-contracting.org/1.1/en/schema/codelists/#item-classification-scheme) codelist.
*/
export const ItemClassificationSchemes = new OpenCodeList([
'CPV',
'CPVS',
'GSIN',
'UNSPSC',
'CPC',
'OKDP',
'OKPD',
'CUCOP',
]);
/**
* The scheme or codelist from which the {@link Classification.id | classification code} is taken.
* For line {@link Item | item} {@link Item.classification | classifications},
* this uses the open [itemClassificationScheme](https://standard.open-contracting.org/1.1/en/schema/codelists/#item-classification-scheme) codelist.
*/
export type ItemClassificationScheme = CodeList<typeof ItemClassificationSchemes>;