chore: sync Ibooking

This commit is contained in:
ghost2023
2026-05-26 10:10:47 +03:00
parent 8039f70deb
commit 67d9d13591

View File

@@ -108,11 +108,54 @@ export interface IConsignment extends BaseEntity {
export interface IBooking extends BaseEntity {
reference: string;
customerId: string;
trainId?: string;
trainId?: string | null;
status: BookingStatus;
scheduledDate: string;
totalAmount: number;
paymentStatus: PaymentStatus;
contractType: "NEW" | "RENEWAL";
previousContractId?: string | null;
serviceType: "RAIL_ONLY" | "RAIL_AND_FORWARDING";
firstMileEnabled: boolean;
firstMilePickupAddress?: string | null;
lastMileEnabled: boolean;
lastMileDeliveryAddress?: string | null;
equipmentReturn: "WITH_RETURN" | "WITHOUT_RETURN";
originStation: string;
destinationStation: string;
cargoTotalWeightVgm: number;
freightType: "BULK" | "BREAK_BULK";
freightSubtype?: string | null;
isHazardous: boolean;
isRefrigerated: boolean;
tradeDirection: "IMPORT" | "EXPORT";
paymentCurrency: string;
allowConsolidation: boolean;
consolidationPartnerId?: string | null;
startDate?: string | null;
endDate?: string | null;
financialTerms?: string | null;
containers?: Array<{ type: string; qty: number; vgm: number }> | null;
versionNumber: number;
priorityScore: number;
approvedByStaffId?: string | null;
approvedByStaffAt?: string | null;
signedByDirectorId?: string | null;
signedByDirectorAt?: string | null;
signedByCeoId?: string | null;
signedByCeoAt?: string | null;
files?: Array<{ id: string; name: string; url: string; mimeType: string }>;
}
export interface IInvoice extends BaseEntity {