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