Skip to main content
A day-specific count within a variant cover call. Each variant specifies a count and optional day/date scope. During resolution, the most specific matching variant wins for each day (dates > dayOfWeek > default), mirroring SemanticTimeVariant. At most one variant may be unscoped (the default).

Example

// Default: 4 agents. Christmas Eve: 2.
cover("peak_hours", "agent",
  { count: 4 },
  { count: 2, dates: ["2025-12-24"] },
)

Properties

count
number
required
Number of people needed.
dates
string[]
Restrict this variant to specific dates (YYYY-MM-DD).
dayOfWeek
readonly [DayOfWeek, DayOfWeek]
Restrict this variant to specific days of the week.
priority
Priority
Defaults to "MANDATORY".