Skip to main content

Call Signature

Define a sustained minimum of assignments for a given time.

Type Parameters

T

T extends string

R

R extends string

Parameters

timeName

Name of a declared semantic time

target

Role name (string), array of role names (OR logic), or skill name

count

Number of assignments needed

opts?

CoverageOptions Options: skillIds (AND filter), dayOfWeek, dates, priority

Returns

CoverageEntry<T, R>

Remarks

Coverage always defines a lower bound that applies throughout the referenced semantic time. Time and target scope restrict where the lower bound applies. Priority sets how strictly the solver should preserve that floor when trade-offs are necessary. Entries produce independent constraints. The solver enforces the max count, not the sum, where coverage definitions overlap. An unscoped entry acts as a global floor that scoped entries cannot reduce. Use coverage variants when different days need different coverage for the same target. Combine coverage with rules to express an upper bound or capacity cap, for example with maxConcurrentAssignments.

Call Signature

Define a sustained minimum of assignments for a given time.

Type Parameters

T

T extends string

R

R extends string

Parameters

timeName

Name of a declared semantic time

target

Role name (string), array of role names (OR logic), or skill name

variants

…[CoverageVariant, ...CoverageVariant[]]

Returns

CoverageEntry<T, R>

Remarks

Coverage always defines a lower bound that applies throughout the referenced semantic time. Time and target scope restrict where the lower bound applies. Priority sets how strictly the solver should preserve that floor when trade-offs are necessary. Entries produce independent constraints. The solver enforces the max count, not the sum, where coverage definitions overlap. An unscoped entry acts as a global floor that scoped entries cannot reduce. Use coverage variants when different days need different coverage for the same target. Combine coverage with rules to express an upper bound or capacity cap, for example with maxConcurrentAssignments.