logical.OutControltypeno test imports ittype OutControl = { readonly id: string; readonly title: string; readonly statement: string; readonly family: string };A control of the framework document.
The conversion of the criteria into the controls of the framework (0002-soc2-package FR-001, FR-004): a pure function of the criteria. Each control keeps the identifier of its criterion, its title and its statement, and names its series (CC6) as its family. A criterion that repeats an identifier is an error of the source, and the conversion says so rather than choose.
import { convert } from "./convert.ts";
convert([{ id: "CC1.1", title: "t", statement: "s", family: "CC1" }]).controls.length; // 1logical.OutControltypeno test imports ittype OutControl = { readonly id: string; readonly title: string; readonly statement: string; readonly family: string };A control of the framework document.
logical.Convertedtypeno test imports ittype Converted = { readonly controls: readonly OutControl[]; readonly repeated: readonly string[] };The controls, or the identifiers that the source repeats.
logical.convertfunctionno test imports itfunction convert(criteria: readonly Criterion[]): ConvertedThe controls of the criteria, in the order given.
OutControltypeno test imports ittype OutControl = { readonly id: string; readonly title: string; readonly statement: string; readonly family: string };A control of the framework document.
Convertedtypeno test imports ittype Converted = { readonly controls: readonly OutControl[]; readonly repeated: readonly string[] };The controls, or the identifiers that the source repeats.
convertfunctionfunction convert(criteria: readonly Criterion[]): ConvertedThe controls of the criteria, in the order given.