Skip to main content

CrmServiceAvailabilitySettings

Stentor API Reference


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?​

optional availableDays?: 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?​

optional blockedDays?: 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?​

optional blockedHolidays?: 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?​

optional maxTotalDailyAppointments?: 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?​

optional delayedJobTypes?: string[]

Defined in: packages/stentor-models/src/Services/CrmService.ts:228

Job types, where we only schedule a few days (3) ahead


availabilityClasses?​

optional availabilityClasses?: 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?​

optional defaultAvailabilityClass?: string

Defined in: packages/stentor-models/src/Services/CrmService.ts:236

The default availability class (when the AI cannot figure it out)


defaultBusyDays?​

optional defaultBusyDays?: 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?​

optional jobTypeClasses?: JobTypeAvailabilityClass[]

Defined in: packages/stentor-models/src/Services/CrmService.ts:244

Deterministic job type -> class mapping. Beats the LLM's guess.


forceAvailabilityClass?​

optional forceAvailabilityClass?: 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?​

optional timezone?: 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?​

optional windows?: 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?​

optional windowsByDay?: 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?​

optional holdRequestedWindows?: 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.