implement batch board notification system for schedule changes and updates

This commit is contained in:
Marshal
2026-07-12 12:01:05 +00:00
parent 4b7f6d2548
commit 84ba56f7d0
10 changed files with 195 additions and 32 deletions

View File

@@ -32,9 +32,22 @@ export interface BookingWindowPhaseEvent {
scheduledDepartureDate: string | null;
}
/**
* Payload pushed whenever server-side state behind a schedule's batch board
* changes outside a phase transition (payment settled, allocation run, batch
* fill, reservation expiry, doc review, …). Carries no board data — clients
* refetch the views they hold; `reason` exists for debugging/telemetry only.
*/
export interface BatchBoardChangedEvent {
scheduleId: string;
reason: string;
at: string;
}
/** Socket.io event names pushed server → client on the booking-windows namespace. */
export const BOOKING_WINDOW_WS_EVENTS = {
PHASE: "booking-window:phase",
BATCH_CHANGED: "batch-board:changed",
} as const;
/** Socket.io namespace the booking-window gateway listens on. */