spatial-monorepo / core/src / DataBusEventType
Type Alias: DataBusEventType
DataBusEventType =
"position"|"sensor"|"alert"|"popular-times"|"reservation"
Defined in: packages/core/src/dataBus.ts:29
'reservation' (issue #473 — live occupancy/reservation avoid-zones): payloads are { unitId: string; active: boolean } — active: true means a reservation is currently in effect for unitId right now (not merely booked for some other time). Live occupancy-sensor readings are published on the existing 'sensor' channel instead, discriminated by payload shape ({ unitId, sensorType: 'occupancy', status: 'in_use' | 'vacant' }) — see useOccupancyAvoidance (wayfinding/useOccupancyAvoidance.ts), which subscribes to both channels and turns them into AvoidanceZone[] for the wayfinding package's relaxation ladder.
