Skip to content

Reset

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

A rest that resets a counter: a run of at least consecutive in any of statuses. The counter starts again where the run ends.

import type { Reset } from "@northguild/gmt";
MemberTypeDescription
statusesS[]The statuses the run is made of. Touching entries in any of them form one run.
consecutivestringHow long the run must be, as a positive ISO 8601 duration of exact time ("PT10H").
type Reset<S extends string = string> = {
/** The statuses the run is made of. Touching entries in any of them form one run. */
statuses: S[];
/** How long the run must be, as a positive ISO 8601 duration of exact time (`"PT10H"`). */
consecutive: string;
};

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.