Skip to main content
Options for cost rules. Cost rules are objective terms, not constraints. The priority field from RuleOptions does not apply.

Properties

appliesTo
string | string[]
Who this rule applies to (role name, skill name, or member ID).
dateRange
object
Restrict to a date range.
dates
string[]
Restrict to specific dates (YYYY-MM-DD).
dayOfWeek
readonly [DayOfWeek, DayOfWeek]
Restrict to specific days of the week.
recurringPeriods
[RecurringPeriod, ...RecurringPeriod[]]
Restrict to recurring calendar periods.