Interface: BookingServices
Defined in: server/bookings/factory.ts:49
Properties
availabilityService
availabilityService: AvailabilityService;Defined in: server/bookings/factory.ts:62
Open-window resolution + scheduling glue (§6.9): openWindows,
freeSlots, per-occurrence window edits, applyWeeklyHours.
bookingService
bookingService: WaitlistService;Defined in: server/bookings/factory.ts:57
The lifecycle service — BookingService plus the §7.1 transfer family
(transfer / reschedule / transferMany) AND the §6.4/§6.10 waitlist
(joinWaitlist / acceptOffer / declineOffer + the capacity-frees
cascade). One instance serves every surface (WaitlistService is-a
TransferService is-a BookingService).
dispatcher
dispatcher: BookingEventDispatcher;Defined in: server/bookings/factory.ts:76
After-commit outbox drain — also drive this from a consumer cron tick.
holdSweeper
holdSweeper: HoldSweeper;Defined in: server/bookings/factory.ts:81
Consumer-scheduled hold sweeper (§6.3/§6.10/§11) — expires held bookings whose TTL has lapsed, including group holds as a unit. Wire to a cron tick.
lifecycleSweepers
lifecycleSweepers: LifecycleSweepers;Defined in: server/bookings/factory.ts:88
Consumer-scheduled lifecycle sweepers (§11):
approvalExpiry()—pending→expiredpastpendingExpiresAtcompletion()—confirmed→completedafterendsAtnoShow(opts?)—confirmed→no_showpaststartsAt + grace
repos
repos: BookingRepositories;Defined in: server/bookings/factory.ts:95
The underlying repositories, for direct access when needed.
schedulerHealth
schedulerHealth: SchedulerHealth;Defined in: server/bookings/factory.ts:93
Liveness surface over every materializedThrough cursor and sweeper
watermark (spec §11). Wire to your monitoring dashboard or alert hook.
seriesMaterializer
seriesMaterializer: SeriesMaterializer;Defined in: server/bookings/factory.ts:74
Consumer-scheduled rrule→rows fan-outs (§6.8/§6.9) — wire to a cron tick
with through = now + maxAdvance for every active booking/availability
series (booking series fail OPEN beyond the horizon; availability fails
CLOSED).
seriesService
seriesService: SeriesService;Defined in: server/bookings/factory.ts:67
BookingSeries orchestration (§6.8): create (with the fail-open horizon
guard) + the this-occurrence / this-and-following / all-future edits.