Skip to main content

CrmServiceAvailabilityOptions

Stentor API Reference


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

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.

Inherited from​

CrmServiceAvailabilitySettings.availableDays


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.

Inherited from​

CrmServiceAvailabilitySettings.blockedDays


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().

Inherited from​

CrmServiceAvailabilitySettings.blockedHolidays


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.

Inherited from​

CrmServiceAvailabilitySettings.maxTotalDailyAppointments


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

Inherited from​

CrmServiceAvailabilitySettings.delayedJobTypes


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.

Inherited from​

CrmServiceAvailabilitySettings.availabilityClasses


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)

Inherited from​

CrmServiceAvailabilitySettings.defaultAvailabilityClass


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

Inherited from​

CrmServiceAvailabilitySettings.defaultBusyDays


jobTypeClasses?​

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

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.

Inherited from​

CrmServiceAvailabilitySettings.forceAvailabilityClass


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.

Inherited from​

CrmServiceAvailabilitySettings.timezone


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).

Inherited from​

CrmServiceAvailabilitySettings.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.

Inherited from​

CrmServiceAvailabilitySettings.windowsByDay


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.

Inherited from​

CrmServiceAvailabilitySettings.holdRequestedWindows


jobType?​

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

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