The logistics module provides TypeScript types for managing shipment data, including status, transport modes, customer tiers, and geographic coordinates. Use these types to ensure data consistency when building logistics-related dashboard components.
export type ShipmentStatus =
| "Scheduled"
| "In Transit"
| "Out for Delivery"
| "Delivered"
| "Delayed"
| "On Hold"
| "Customs Hold";
export type TransportMode = "land" | "air" | "sea";
export type RouteType = "road" | "flight" | "ship";
export type CustomerTier = "Priority" | "Standard" | "Non-priority";
export type GeoCoordinate = [longitude: number, latitude: number];
export type ShipmentLocation = {
coordinates: GeoCoordinate;
display: string;
country: string;
countryCode: string;
};
export type ShipmentCustomer = {
name: string;
initials: string;
id: string;
tier: CustomerTier;
tierLabel: string;
};
export type HandlingTag = {
label: string;
icon: LucideIcon;
};
export type ShipmentHandling = {
label: string;
note: string;
tags: HandlingTag[];
};
export type Shipment = {
id: string;
customer: ShipmentCustomer;
origin: ShipmentLocation;
destination: ShipmentLocation;
cargo: string;
handling: ShipmentHandling;
weight: string;
eta: string;
etaMeta: string;
status: ShipmentStatus;
progress: number;
mode: TransportMode;
routeType: RouteType;
transportNumber: string;
};