# Reset

Industry: Workforce

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

```ts
import type { Reset } from "@northguild/gmt";
```

## Members

| Member | Type | Description |
| --- | --- | --- |
| `statuses` | `S[]` | The statuses the run is made of. Touching entries in any of them form one run. |
| `consecutive` | `string` | How long the run must be, as a positive ISO 8601 duration of exact time (`"PT10H"`). |

## Definition

```ts
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;
};
```

## Used by

- [`dutyViolations`](/gmt/reference/workforce/calculate/dutyViolations/)
- [`evaluateDutyLog`](/gmt/reference/workforce/calculate/evaluateDutyLog/)

## Source

[types/duty.ts](https://github.com/northguild/gmt/blob/main/packages/gmt/src/types/duty.ts)
