interface · Browser and Node
Reason
@toip-tools/mandatesView sourceimport { type Reason } from "@toip-tools/mandates";
Declaration
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
coderequiredstringlinkoptionalnumber | undefinedWhich link, numbered from 0 at the root.
dimensionoptionalstring | undefinedopoptionalstring | undefinedattroptionalstring | undefinedlimitoptionalunknownvalueoptionalunknownspentoptionalstring | undefinedBudgets: what was already spent in the period.
periodoptionalPeriod | undefinedrequirementoptionalstring | undefinedrequirement.failed: which requirement.
detailoptionalstring | undefinedStructural reasons: what exactly was wrong, for people.
approvablerequiredboolean