feat: empty container Import

This commit is contained in:
hager
2026-09-04 22:43:20 +00:00
parent 2b6c78cf71
commit 3fb5cdf29f
36 changed files with 968 additions and 49 deletions

View File

@@ -56,6 +56,18 @@ export enum FreightType {
Bulk = "BULK",
}
/**
* Whether a booking or contract moves cargo or bare equipment. EMPTY is
* container freight carrying nothing — the box itself is the shipment, priced
* per size and lane off an EMPTY_CONTAINER_IMPORT rate. Deliberately separate
* from FreightType: an empty booking is still CONTAINER freight for wagon
* footprint, yard allocation, scheduling and gate passes.
*/
export enum CargoCondition {
Laden = "LADEN",
Empty = "EMPTY",
}
/**
* Distinguishes a normal one-time booking from a general contract — an umbrella
* commitment that is signed and paid once, then drawn down by many orders over
@@ -900,6 +912,8 @@ export interface IBooking extends BaseEntity {
bulkTotalWeightTons?: number | null;
freightType: FreightType;
/** LADEN (default) or EMPTY — see {@link CargoCondition}. */
cargoCondition?: CargoCondition | string | null;
freightSubtype?: string | null;
isHazardous: boolean;
@@ -1603,6 +1617,8 @@ export interface CreateBookingDto {
destinationYardId: string;
tradeDirection: string;
freightType: string;
/** LADEN (default) or EMPTY — see {@link CargoCondition}. */
cargoCondition?: string | undefined;
cargoTypeId?: string | undefined;
cargoFreeText?: string | undefined;
shippingLineId?: string | undefined;