feat: setup the recent booking endpoint and ui fixes

This commit is contained in:
ghost2023
2026-06-05 11:36:13 +03:00
parent 6e4b70be34
commit f77dd54390
6 changed files with 303 additions and 231 deletions

View File

@@ -158,6 +158,14 @@ export interface IConsignment extends BaseEntity {
destinationStation: string;
}
export interface IYard extends BaseEntity {
code: string;
label: string;
country: string;
isActive: boolean;
displayOrder: number;
}
export interface IBooking extends BaseEntity {
reference: string;
customerId: string;
@@ -177,8 +185,8 @@ export interface IBooking extends BaseEntity {
lastMileDeliveryAddress?: string | null;
equipmentReturn: "WITH_RETURN" | "WITHOUT_RETURN";
originStation: string;
destinationStation: string;
originYard?: IYard | null;
destinationYard?: IYard | null;
cargoTotalWeightVgm: number;
freightType: FreightType;
@@ -208,7 +216,17 @@ export interface IBooking extends BaseEntity {
signedByCeoId?: string | null;
signedByCeoAt?: string | null;
files?: Array<{ id: string; name: string; url: string; mimeType: string }>;
files?: Array<{
id: string;
code: string;
name: string;
url: string;
mimeType: string;
size: number;
resourceId: string;
resource: string;
signedUrl?: string | null;
}>;
}
export interface IInvoice extends BaseEntity {