Skip to main content

SlotCapacityPolicy

Stentor API Reference


Stentor API Reference / stentor-models/src / SlotCapacityPolicy

Interface: SlotCapacityPolicy

Defined in: packages/stentor-models/src/Form/FormField.ts:484

How many appointments a slot or a day may absorb.

Note​

  • Reserved. Consumers must accept and persist this without acting on it; slot consumption is not tracked yet, so mode is currently always "NONE".

Properties​

mode​

mode: "NONE" | "ON_SUBMIT" | "ON_CONFIRM"

Defined in: packages/stentor-models/src/Form/FormField.ts:492

When a slot is considered consumed.

  • "NONE": capacity is not tracked, every generated slot stays selectable
  • "ON_SUBMIT": a submitted lead consumes a slot
  • "ON_CONFIRM": only an appointment confirmed by the business consumes a slot

perSlot?​

optional perSlot?: number

Defined in: packages/stentor-models/src/Form/FormField.ts:497

How many appointments may share one slot. A business with several technicians can take more than one.


perDay?​

optional perDay?: number

Defined in: packages/stentor-models/src/Form/FormField.ts:501

How many appointments may be taken across a whole day.