CrmServiceAvailabilitySettings
Stentor API Reference / stentor-models/src / CrmServiceAvailabilitySettings
Interface: CrmServiceAvailabilitySettings
Defined in: packages/stentor-models/src/Services/CrmService.ts:204
Settings for the availability of the CRM service.
Extended byβ
Propertiesβ
availableDays?β
optionalavailableDays?:DayOfWeek[]
Defined in: packages/stentor-models/src/Services/CrmService.ts:208
The days of the week they are available to schedule appointments through the scheduler.
blockedDays?β
optionalblockedDays?:BlockedDay[]
Defined in: packages/stentor-models/src/Services/CrmService.ts:214
These are holidays or any other days specific to the business that they are not available for appointments.
A day may carry an endDate to block an inclusive range, and a label for display.
blockedHolidays?β
optionalblockedHolidays?:BlockedHoliday[]
Defined in: packages/stentor-models/src/Services/CrmService.ts:220
Holidays that recur every year, described by a rule rather than a date.
Expand them to concrete dates with stentor-utils' expandBlockedHolidays().
maxTotalDailyAppointments?β
optionalmaxTotalDailyAppointments?:number
Defined in: packages/stentor-models/src/Services/CrmService.ts:224
Maximum total number of appointments a day that can be scheduled through the scheduler.
delayedJobTypes?β
optionaldelayedJobTypes?:string[]
Defined in: packages/stentor-models/src/Services/CrmService.ts:228
Job types, where we only schedule a few days (3) ahead
availabilityClasses?β
optionalavailabilityClasses?:AvailabilityClass[]
Defined in: packages/stentor-models/src/Services/CrmService.ts:232
The customer specific "availability classes" that describes the scheduling strategy for job types.
defaultAvailabilityClass?β
optionaldefaultAvailabilityClass?:string
Defined in: packages/stentor-models/src/Services/CrmService.ts:236
The default availability class (when the AI cannot figure it out)
defaultBusyDays?β
optionaldefaultBusyDays?:BusyDayDescription
Defined in: packages/stentor-models/src/Services/CrmService.ts:240
The default busy days for the business. This is used when the FSM/Scheduling backend does not provide busy days
jobTypeClasses?β
optionaljobTypeClasses?:JobTypeAvailabilityClass[]
Defined in: packages/stentor-models/src/Services/CrmService.ts:244
Deterministic job type -> class mapping. Beats the LLM's guess.
forceAvailabilityClass?β
optionalforceAvailabilityClass?:string
Defined in: packages/stentor-models/src/Services/CrmService.ts:252
Forces every booking in this scope into the given class, regardless of job type.
This is deliberately NOT defaultAvailabilityClass: that field is a fallback (it loses to jobType.class), so it cannot express "force". Used by campaign booking widgets, which carry their own availability settings.
timezone?β
optionaltimezone?:string
Defined in: packages/stentor-models/src/Services/CrmService.ts:259
The business's IANA timezone, for example "America/Chicago".
Stamped by the platform from the business's location; wall-clock rules such as BusyDayDescription.afterHoursNextDayBlockedUntil are evaluated in it.
windows?β
optionalwindows?:AvailabilityWindowDefinition[]
Defined in: packages/stentor-models/src/Services/CrmService.ts:265
The arrival windows the business offers each available day.
When absent, DEFAULT_AVAILABILITY_WINDOWS applies (two 4-hour windows).
windowsByDay?β
optionalwindowsByDay?:AvailabilityWindowsForDay[]
Defined in: packages/stentor-models/src/Services/CrmService.ts:272
Arrival windows that differ by day of the week, for example closing at 16:00 on Fridays.
A listed day uses its own windows instead of windows; a day not listed uses windows.
Each day appears at most once. Which days are open is still availableDays.
holdRequestedWindows?β
optionalholdRequestedWindows?:boolean
Defined in: packages/stentor-models/src/Services/CrmService.ts:279
When true, the requested window on each open lead counts against its class's window and daily capacity until the lead is lost, canceled, or the window passes.
Defaults to false.