@ts4ocds/lots
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.
42 lines (34 loc) • 1.12 kB
text/typescript
/**
* @packageDocumentation
* @module Lots.Lot
*/
import { Initializable } from '@ts4ocds/utils';
import type { Value } from '@ts4ocds/core/value';
import type { LotStatus } from './lot-status';
/**
* A lot is a grouping of {@link Item.Item | items} within a tender that can be bid on or {@link Award.Award | awarded} together.
*/
export class Lot extends Initializable<Lot> {
/**
* A local identifier for this lot, such as a lot number.
* This is used in relatedLots references at the {@link Item.Item | item}, {@link Document.Document | document} and {@link Award.Award | award} level.
*/
public id!: string;
/**
* A title for this lot.
*/
public title?: string;
/**
* A description of this lot.
*/
public description?: string;
/**
* The maximum estimated {@link Value.Value | value} of this lot.
*/
public value!: Value;
/**
* The current {@link LotStatus | status} of the process related to this lot
* based on the [tenderStatus codelist](http://standard.open-contracting.org/1.1/en/schema/codelists/#tender-status)
*/
public status?: LotStatus;
}