feat(bookings): add agent-driven clearance flow with forwarder/transit-agent panels and BookingClearedByAgent migration

This commit is contained in:
marshal
2026-09-08 08:49:33 +00:00
parent 850e0753d2
commit 7af3ded7d7
14 changed files with 1716 additions and 57 deletions

View File

@@ -898,6 +898,12 @@ export interface IBooking extends BaseEntity {
handoverAwaitingSignature?: boolean;
customsClearingEnabled?: boolean;
/**
* Without-customs booking handed to a registered clearing agent (forwarder):
* it runs the phased clearance workflow with the forwarder in GL Ethiopia's
* place and the Djibouti agent it named in GL Djibouti's.
*/
clearedByAgent?: boolean;
// (multi-truck self-haul lives in ICustomerTruck[], fetched via the
// /customer-trucks endpoint; the fields above are the booking-level flag.)
customsClearingAgent?: string | null;
@@ -1213,6 +1219,12 @@ export interface ClearanceView {
phase?: ContractDocPhase | null;
milestones?: IClearanceMilestone[];
nextAction?: ClearanceNextAction | null;
/**
* Handed to a registered clearing agent (forwarder): it does GL Ethiopia's
* steps and the Djibouti agent it named does GL Djibouti's. The Release
* Order does not wait for the declaration on such a booking.
*/
clearedByAgent?: boolean;
dutyRequired?: boolean | null;
roHold?: boolean;
roHoldReason?: string | null;