Merge branch 'dev' of github.com:Tria-plc/edr-platform into freight_feature/usermanagement

This commit is contained in:
Marshal
2026-07-05 22:22:34 +00:00
152 changed files with 7486 additions and 3075 deletions

View File

@@ -76,4 +76,6 @@ export interface CompanyRegistrationData {
managerName: string;
managerEmail?: string;
managerPhone: string;
/** True when this TIN is already registered to an existing company. */
tinTaken?: boolean;
}

View File

@@ -383,6 +383,32 @@ export interface IYard extends BaseEntity {
displayOrder: number;
}
/** One container number loaded onto a customer self-haul truck. */
export interface ICustomerTruckContainer {
id: string;
containerNumber: string;
}
/** A customer self-haul truck on a booking, carrying 12 containers. */
export interface ICustomerTruck {
id: string;
bookingId: string;
plateNumber: string;
driverName: string;
truckType: string;
assignedAt: string;
arrivedAt?: string | null;
containers?: ICustomerTruckContainer[];
}
/** Payload to add a customer self-haul truck (12 container numbers). */
export interface AddCustomerTruckPayload {
truckPlateNumber: string;
driverName: string;
truckType: string;
containerNumbers: string[];
}
export interface IBooking extends BaseEntity {
reference: string;
customerId: string;
@@ -436,6 +462,8 @@ export interface IBooking extends BaseEntity {
customerTruckArrivedAt?: string | null;
customsClearingEnabled?: 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;
equipmentReturn: "WITH_RETURN" | "WITHOUT_RETURN";