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
dates
dates?: ${number}-${number}-${number}[]
Restrict this variant to specific dates (YYYY-MM-DD).
dayOfWeek
dayOfWeek?: readonly [DayOfWeek, DayOfWeek]
Restrict this variant to specific days of the week.
priority
priority?: "LOW" | "MEDIUM" | "HIGH" | "MANDATORY"
Defaults to "MANDATORY".