toip.tools

interface · Browser and Node

Reason

@toip-tools/mandatesView source
TypeScriptImport
import { type Reason } from "@toip-tools/mandates";

Declaration

TypeScriptinterface
interface Reason {
  code: string;
  /** Which link, numbered from 0 at the root. */
  link?: number;
  dimension?: string;
  op?: string;
  attr?: string;
  limit?: unknown;
  value?: unknown;
  /** Budgets: what was already spent in the period. */
  spent?: Units;
  period?: Period;
  /** requirement.failed: which requirement. */
  requirement?: string;
  /** Structural reasons: what exactly was wrong, for people. */
  detail?: string;
  approvable: boolean;
}

Properties

coderequired
string
linkoptional
number | undefined

Which link, numbered from 0 at the root.

dimensionoptional
string | undefined
opoptional
string | undefined
attroptional
string | undefined
limitoptional
unknown
valueoptional
unknown
spentoptional
string | undefined

Budgets: what was already spent in the period.

periodoptional
Period | undefined
requirementoptional
string | undefined

requirement.failed: which requirement.

detailoptional
string | undefined

Structural reasons: what exactly was wrong, for people.

approvablerequired
boolean