Skip to main content

@dialstack/sdk / server / ParkSlotPresence

Interface: ParkSlotPresence

Defined in: sdk/server/src/index.ts:2055

One park slot's current state.

Describes state rather than a transition, so it fully replaces whatever was previously known about the slot, and receiving the same one twice changes nothing. A slot with nobody in it arrives as parked_call: null, which says the slot is now free rather than asserting that the slot durably exists. Slots absent from a snapshot are free.

Properties

object

TypeScript
object: "park_slot";

Defined in: sdk/server/src/index.ts:2057

The resource this is. Always 'park_slot'.


parked_call

TypeScript
parked_call: ParkedCall | null;

Defined in: sdk/server/src/index.ts:2064

The occupant, or null when the slot is free. This is the only signal of occupancy — there is no separate boolean to agree with.


slot

TypeScript
slot: number;

Defined in: sdk/server/src/index.ts:2059

The slot number, as dialled (*68<slot>).