UNPKG

@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.

19 lines (15 loc) 636 B
/** * @packageDocumentation * @module Standard.Contract */ import { ClosedCodeList, CodeList } from '@ts4ocds/utils'; /** * The current status of the contract, * from the closed [contractStatus](https://standard.open-contracting.org/1.1/en/schema/codelists/#contract-status) codelist. */ export const ContractStatuses = new ClosedCodeList(['pending', 'active', 'cancelled', 'terminated']); /** * The current status of the contract, * from the closed [contractStatus](https://standard.open-contracting.org/1.1/en/schema/codelists/#contract-status) codelist. */ export type ContractStatus = CodeList<typeof ContractStatuses>;