implement booking flow

This commit is contained in:
marshal
2026-06-04 15:16:27 +03:00
parent a5578ce714
commit 125ee18308
89 changed files with 6190 additions and 1724 deletions

View File

@@ -27,6 +27,11 @@ export enum CalculationMethod {
PERCENTAGE = 'PERCENTAGE',
}
export enum FreightType {
Container = 'CONTAINER',
Bulk = 'BULK',
}
export enum BookingStatus {
Draft = "DRAFT",
Confirmed = "CONFIRMED",
@@ -176,7 +181,7 @@ export interface IBooking extends BaseEntity {
destinationStation: string;
cargoTotalWeightVgm: number;
freightType: "BULK" | "BREAK_BULK";
freightType: FreightType;
freightSubtype?: string | null;
isHazardous: boolean;
@@ -294,7 +299,8 @@ export interface CreateBookingDto {
originYardId: string;
destinationYardId: string;
tradeDirection: "IMPORT" | "EXPORT" | "DOMESTIC";
cargoTypeId: string;
freightType: FreightType;
cargoTypeId?: string;
cargoFreeText?: string;
shippingLineId?: string;
cargoTotalWeightVgm: number;
@@ -304,6 +310,6 @@ export interface CreateBookingDto {
startDate?: string;
endDate?: string;
financialTerms?: string;
containers: CreateBookingContainerDto[];
containers?: CreateBookingContainerDto[];
allowConsolidation?: boolean;
}