Skip to content

DutyRule

  • People's working time: duty logs, hours-of-work limits, rest and rolling windows, for any crew, shift or rota.

One hours-of-work rule over a duty log, every number the caller’s. A regime is an array of rules the caller assembles and labels; nested caps are separate rules, reported separately.

import type { DutyRule } from "@northguild/gmt";
type DutyRule<S extends string = string> =
| CumulativeCapRule<S>
| ElapsedWindowRule<S>
| RequiredInterruptionRule<S>
| RollingCapRule<S>
| FixedPeriodCapRule<S>
| RestRequirementRule<S>
| FreePeriodRule<S>
| RestBeforeDutyRule<S>
| QuotaRule<S>
| DueByRule<S>
| PatternRule<S>
| OccurrenceCapRule<S>
| UsageLookbackRule<S>;

types/duty.ts

Accessibility
© 2026 NorthGuild · Licences

Code examples: MIT-0. Packages: MIT. Third-party data and components: their own licences, credited where they appear. Everything else: © 2026 NorthGuild, all rights reserved.