BusyDayDescription
Stentor API Reference / stentor-models/src / BusyDayDescription
Interface: BusyDayDescription
Defined in: packages/stentor-models/src/Form/FormField.ts:333
Configuration for marking days as busy/unavailable in date selection.
Used to control which days can be selected in date input fields, typically for appointment scheduling or availability management.
Properties​
availableDays?​
readonlyoptionalavailableDays?:DayOfWeek[]
Defined in: packages/stentor-models/src/Form/FormField.ts:337
The days of the week that are available for appointments.
blockWeekends?​
readonlyoptionalblockWeekends?:boolean
Defined in: packages/stentor-models/src/Form/FormField.ts:343
Blocks all weekends
If provided, it will override the availableDays.
blockCurrentDay?​
readonlyoptionalblockCurrentDay?:boolean
Defined in: packages/stentor-models/src/Form/FormField.ts:350
Blocks the current day.
If it is a weekend and weekends are not blocked, it will be blocked. If it is a weekend and weekends are blocked, then it will be disregarded.
currentDayAvailableUntil?​
readonlyoptionalcurrentDayAvailableUntil?:string
Defined in: packages/stentor-models/src/Form/FormField.ts:364
The current day stays available until the specified time, in HH:MM (24-hour) format.
For example, "14:00" keeps today bookable up to 2:00 PM; after that, today is no longer offered.
NOTE: the previous doc comment here described the inverse ("unavailable until 2:00 PM"). It was wrong: consumers disable the current day once the current time is past this value, and the Studio UI ("same-day booking allowed until…") has always matched that behavior rather than the old comment. Corrected here so the semantics cannot be implemented backwards downstream.
Same meaning as AvailabilityClass.currentDayAvailableUntil, which overrides this for jobs resolved to a class.
blockNextBusinessDays?​
readonlyoptionalblockNextBusinessDays?:number
Defined in: packages/stentor-models/src/Form/FormField.ts:372
Blocks the next number of business days.
One business day will block the next business day.
If this is set, it will override the availableDays, blockWeekends, and blockCurrentDay.
afterHoursNextDayBlockedUntil?​
readonlyoptionalafterHoursNextDayBlockedUntil?:string
Defined in: packages/stentor-models/src/Form/FormField.ts:386
Keeps the start of the next business day off the table for requests that arrive after hours, so the business has time to respond before the first offered window. HH:MM (24-hour), in the business's wall clock (see CrmServiceAvailabilitySettings.timezone).
A request is "after hours" when today is not a business day (per availableDays) or the current time is at or past the same-day cutoff (currentDayAvailableUntil, default "17:00"). In that case nothing before this time is offered on the first business day after today.
For example, "12:00" turns a Saturday request's "Monday morning" into "Monday afternoon or later".
Unset = off. Opt-in.