AvailabilityClass
Stentor API Reference / stentor-models/src / AvailabilityClass
Interface: AvailabilityClass
Defined in: packages/stentor-models/src/Services/CrmService.ts:125
Propertiesβ
idβ
id:
string
Defined in: packages/stentor-models/src/Services/CrmService.ts:129
ID for the availability class, typically the slugged name.
nameβ
name:
string
Defined in: packages/stentor-models/src/Services/CrmService.ts:133
Human readable name of the availability class
summaryβ
summary:
string
Defined in: packages/stentor-models/src/Services/CrmService.ts:137
Summary of the availability class. This is used to describe the availability class so the AI can match it to user input. It contains high level description as well as examples of input that would match to this class.
numberOfDaysOut?β
optionalnumberOfDaysOut?:number
Defined in: packages/stentor-models/src/Services/CrmService.ts:145
Minimum number of days out that can be scheduled for this type.
This is independent of if the day is available or not.
Value of 0 is the default if not provided, meaning same day could be available.
appointmentsPerDay?β
optionalappointmentsPerDay?:number
Defined in: packages/stentor-models/src/Services/CrmService.ts:151
Maximum number of appointments that can be scheduled per day for this type.
If not provided, it is assumed to be unlimited.
appointmentsPerWindow?β
optionalappointmentsPerWindow?:number
Defined in: packages/stentor-models/src/Services/CrmService.ts:157
Maximum number of appointments of this type in one arrival window.
Applies alongside appointmentsPerDay. If not provided, only the daily cap applies.
leadOnly?β
optionalleadOnly?:boolean
Defined in: packages/stentor-models/src/Services/CrmService.ts:161
If true, this availability class is only for leads and not for appointments as they typically require more information and followup.
currentDayAvailableUntil?β
optionalcurrentDayAvailableUntil?:string
Defined in: packages/stentor-models/src/Services/CrmService.ts:172
The current day stays available until this time, in HH:MM (24-hour) format, wall-clock in the business timezone.
For example, "16:00" lets a job in this class still be booked for today up to 4:00 PM; at or after 4:00 PM, today is no longer offered. Same meaning as BusyDayDescription.currentDayAvailableUntil, which this overrides for jobs resolved to this class.
Only meaningful when numberOfDaysOut is 0 or absent (i.e. same-day is possible at all).