Parameters
Target number of assigned days per scheduling week.
opts
TargetDaysPerWeekOptionsOptional entity scope and soft priority.Returns
RuleEntry<"target-days-week", object & TargetDaysPerWeekOptions>
Use this for stated working patterns like “works a 4-day week” when the
pattern should remain the norm but can flex around holidays, time off, or
other tradeoffs. Deviations in either direction are penalized, so working
fewer days or more days than the target both count as misses. Pair it with
maxDaysPerWeek when the same number is also a hard cap, and use
minDaysPerWeek only when the requirements explicitly require a minimum.