CrmServiceAvailabilityOptions
Stentor API Reference / stentor-models/src / CrmServiceAvailabilityOptions
Interface: CrmServiceAvailabilityOptions
Defined in: packages/stentor-models/src/Services/CrmService.ts:359
Settings for the availability of the CRM service.
Extendsβ
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.
Inherited fromβ
CrmServiceAvailabilitySettings.availableDays
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.
Inherited fromβ
CrmServiceAvailabilitySettings.blockedDays
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().
Inherited fromβ
CrmServiceAvailabilitySettings.blockedHolidays
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.
Inherited fromβ
CrmServiceAvailabilitySettings.maxTotalDailyAppointments
delayedJobTypes?β
optionaldelayedJobTypes?:string[]
Defined in: packages/stentor-models/src/Services/CrmService.ts:228
Job types, where we only schedule a few days (3) ahead
Inherited fromβ
CrmServiceAvailabilitySettings.delayedJobTypes
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.
Inherited fromβ
CrmServiceAvailabilitySettings.availabilityClasses
defaultAvailabilityClass?β
optionaldefaultAvailabilityClass?:string
Defined in: packages/stentor-models/src/Services/CrmService.ts:236
The default availability class (when the AI cannot figure it out)
Inherited fromβ
CrmServiceAvailabilitySettings.defaultAvailabilityClass
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
Inherited fromβ
CrmServiceAvailabilitySettings.defaultBusyDays
jobTypeClasses?β
optionaljobTypeClasses?:JobTypeAvailabilityClass[]
Defined in: packages/stentor-models/src/Services/CrmService.ts:244
Deterministic job type -> class mapping. Beats the LLM's guess.
Inherited fromβ
CrmServiceAvailabilitySettings.jobTypeClasses
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.
Inherited fromβ
CrmServiceAvailabilitySettings.forceAvailabilityClass
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.
Inherited fromβ
CrmServiceAvailabilitySettings.timezone
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).
Inherited fromβ
CrmServiceAvailabilitySettings.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.
Inherited fromβ
CrmServiceAvailabilitySettings.windowsByDay
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.
Inherited fromβ
CrmServiceAvailabilitySettings.holdRequestedWindows
jobType?β
optionaljobType?:CrmServiceJobType
Defined in: packages/stentor-models/src/Services/CrmService.ts:366
Job Type to filter availability by.
This allows to display availability for a specific job type, which can be different.
contact?β
optionalcontact?:CrmServiceAvailabilityContact
Defined in: packages/stentor-models/src/Services/CrmService.ts:371
What the visitor has provided so far, for CRMs whose availability depends on who or where the customer is (for example ServiceMinder slotsearch). Optional; CRMs that don't need it ignore it.