# PairSpec

Industry: Workforce

A paired rest: two separate rest periods that together count as one, when all three floors hold. `{ eachAtLeast: "PT2H", oneAtLeast: "PT7H", combinedAtLeast: "PT10H" }` accepts 7.5 + 2.5 hours and 8 + 2, and refuses 6 + 4.

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

## Members

| Member | Type | Description |
| --- | --- | --- |
| `eachAtLeast` | `string` | The floor on each of the two periods, a positive ISO 8601 duration of exact time. |
| `oneAtLeast` | `string` | The floor on the longer period, a positive ISO 8601 duration of exact time. |
| `combinedAtLeast` | `string` | The floor on the two periods added together, a positive ISO 8601 duration of exact time. |

## Definition

```ts
type PairSpec = {
  /** The floor on each of the two periods, a positive ISO 8601 duration of exact time. */
  eachAtLeast: string;
  /** The floor on the longer period, a positive ISO 8601 duration of exact time. */
  oneAtLeast: string;
  /** The floor on the two periods added together, a positive ISO 8601 duration of exact time. */
  combinedAtLeast: string;
};
```

## Used by

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

## Source

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