booking operations and trains scheduling also allocations

This commit is contained in:
marshal
2026-06-10 00:48:32 +03:00
parent 675975bc08
commit 5774d7db9d
180 changed files with 13423 additions and 3877 deletions

View File

@@ -17,6 +17,14 @@ export enum PriorityType {
HIGH_VOLUME_SHIPMENT = 'HIGH_VOLUME_SHIPMENT',
}
/** Bonus applied to government bookings so they outrank commercial priority. */
export const GOVERNMENT_PRIORITY_BONUS = 50_000;
export interface GovernmentBookingFields {
isGovernment: boolean;
governmentInstitution?: string | null;
}
export enum ExceededAction {
WARNING_ONLY = 'WARNING_ONLY',
HARD_BLOCK = 'HARD_BLOCK',
@@ -89,6 +97,61 @@ export enum PaymentStatus {
Refunded = "REFUNDED",
}
export enum SchedulingStatus {
NotScheduled = "NOT_SCHEDULED",
Holding = "HOLDING",
Eligible = "ELIGIBLE",
Scheduled = "SCHEDULED",
Dispatched = "DISPATCHED",
}
export enum TrainScheduleStatus {
Draft = "DRAFT",
Scheduled = "SCHEDULED",
Dispatched = "DISPATCHED",
Arrived = "ARRIVED",
Cancelled = "CANCELLED",
}
export enum AllocationLoadType {
Container = "CONTAINER",
Bulk = "BULK",
}
export enum AllocationStatus {
Planned = "PLANNED",
Reserved = "RESERVED",
Loaded = "LOADED",
Departed = "DEPARTED",
}
export enum TrainSetWagonStatus {
Planned = "PLANNED",
Reserved = "RESERVED",
Loaded = "LOADED",
Departed = "DEPARTED",
}
export enum WagonStatus {
Available = "AVAILABLE",
Assigned = "ASSIGNED",
Maintenance = "MAINTENANCE",
Retired = "RETIRED",
}
export enum WagonReadiness {
ImportReady = "IMPORT_READY",
ExportReady = "EXPORT_READY",
}
export type ScheduleTradeDirection = "IMPORT" | "EXPORT" | "DOMESTIC";
export enum BulkPricingUnit {
PerWagon = "PER_WAGON",
PerTon = "PER_TON",
PerItem = "PER_ITEM",
}
export type CustomerStatus = "Active" | "Pending" | "Inactive";
export type CustomerType = "Importer" | "Exporter" | "Supplier";

View File

@@ -1,3 +1,4 @@
export * from "./common/index";
export * from "./freight/index";
export * as Freight from "./freight/index";
export * as Passenger from "./passenger/index";