From 67d9d13591b18b9b1ea53b9f00dc2ced4cc4677b Mon Sep 17 00:00:00 2001 From: ghost2023 Date: Tue, 26 May 2026 10:10:47 +0300 Subject: [PATCH] chore: sync Ibooking --- packages/types/src/freight/index.ts | 45 ++++++++++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/packages/types/src/freight/index.ts b/packages/types/src/freight/index.ts index b6d1e6dfa..48d3f87af 100644 --- a/packages/types/src/freight/index.ts +++ b/packages/types/src/freight/index.ts @@ -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 {