mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-29 22:18:12 +00:00
Update group booking and package
This commit is contained in:
@@ -38,9 +38,9 @@ export enum ScheduleStatus {
|
||||
/**
|
||||
* Why a /search leg (outbound or inbound) came back with zero bookable schedules.
|
||||
* Priority order applied by the API when classifying: NoRoute > NoScheduleOnDate >
|
||||
* Cancelled > PackageOnly > CheckinClosed > FullyBooked (see search.service.ts
|
||||
* classifyEmptySearch). The frontend uses this to show a specific empty-state
|
||||
* message instead of a generic "no trains available".
|
||||
* Cancelled > PackageOnly > GroupBookingOnly > CheckinClosed > FullyBooked (see
|
||||
* search.service.ts classifyEmptySearch). The frontend uses this to show a specific
|
||||
* empty-state message instead of a generic "no trains available".
|
||||
*/
|
||||
export enum SearchEmptyReasonCode {
|
||||
/** No route (in either direction) ever connects these two stations. */
|
||||
@@ -51,6 +51,8 @@ export enum SearchEmptyReasonCode {
|
||||
Cancelled = "CANCELLED",
|
||||
/** Every schedule for this pair on this date is package-only (excluded from ticket search). */
|
||||
PackageOnly = "PACKAGE_ONLY",
|
||||
/** Every schedule for this pair on this date is reserved for staff group bookings (excluded from normal ticket search). */
|
||||
GroupBookingOnly = "GROUP_BOOKING_ONLY",
|
||||
/** A bookable schedule exists, but its check-in cutoff has already passed for every option. */
|
||||
CheckinClosed = "CHECKIN_CLOSED",
|
||||
/** A bookable, still-open schedule exists but has no seats left for the requested party. */
|
||||
|
||||
Reference in New Issue
Block a user