automate the schedule

This commit is contained in:
Marshal
2026-06-11 19:42:23 +00:00
parent f85c13ce8c
commit cde3e462ba
28 changed files with 1197 additions and 12 deletions

View File

@@ -53,6 +53,10 @@ export enum BookingStatus {
FullyExecuted = "FULLY_EXECUTED",
PnrGenerated = "PNR_GENERATED",
PaymentVerificationInProgress = "PAYMENT_VERIFICATION_IN_PROGRESS",
/** Selected in a batch and notified to pay within the 1h window. */
AwaitingPayment = "AWAITING_PAYMENT",
/** Missed the 1h pay window — recoverable via move/cancel (no re-approval). */
Expired = "EXPIRED",
Paid = "PAID",
InTransit = "IN_TRANSIT",
Completed = "COMPLETED",
@@ -113,6 +117,13 @@ export enum TrainScheduleStatus {
Cancelled = "CANCELLED",
}
/** Whether a schedule is still accepting / holding bookings (orthogonal to its operational status). */
export enum ScheduleBookingWindow {
Open = "OPEN",
Full = "FULL",
Closed = "CLOSED",
}
export enum AllocationLoadType {
Container = "CONTAINER",
Bulk = "BULK",