Type Alias: ConstraintDto
@kortexya/reasoninglayer / ConstraintDto
Type Alias: ConstraintDto
Section titled “Type Alias: ConstraintDto”ConstraintDto = {
type:"Integer"; } | {type:"String"; } | {type:"Boolean"; } | {type:"Real"; } | {type:"IntegerRange";value: {max:number;min:number; }; } | {type:"RealRange";value: {max:number;min:number; }; } | {type:"StringPattern";value:string; } | {type:"Enum";value:ValueDto[]; } | {type:"OrderedEnum";value:ValueDto[]; } | {type:"DateRange";value: {end:string;start:string; }; } | {type:"TimestampBefore";value:string; } | {type:"TimestampAfter";value:string; } | {type:"PathEquation";value: {path1:string[];path2:string[]; }; } | {type:"FuzzyRange";value: {center:number;tolerance:number; }; } | {type:"FuzzyLinguistic";value: {term:string;variable:string; }; } | {type:"FuzzyPathSimilarity";value: {minSimilarity:number;path1:string[];path2:string[]; }; } | {type:"PathLessThan";value: {path1:string[];path2:string[]; }; } | {type:"PathLessOrEqual";value: {path1:string[];path2:string[]; }; }
Defined in: src/types/sorts.ts:40
Constraint on a feature within a sort’s feature descriptor.
Tagged union discriminated by "type". Contains 17 variants covering
type constraints, range constraints, pattern constraints, path equations,
fuzzy constraints, and temporal constraints.
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ type: "Integer"; }
Type Literal
Section titled “Type Literal”{ type: "String"; }
Type Literal
Section titled “Type Literal”{ type: "Boolean"; }
Type Literal
Section titled “Type Literal”{ type: "Real"; }
Type Literal
Section titled “Type Literal”{ type: "IntegerRange"; value: { max: number; min: number; }; }
Type Literal
Section titled “Type Literal”{ type: "RealRange"; value: { max: number; min: number; }; }
A closed interval over the reals, the Real twin of IntegerRange.
Type Literal
Section titled “Type Literal”{ type: "StringPattern"; value: string; }
Type Literal
Section titled “Type Literal”{ type: "Enum"; value: ValueDto[]; }
Type Literal
Section titled “Type Literal”{ type: "OrderedEnum"; value: ValueDto[]; }
An enum whose values form a scale, in the order listed
(small < medium < large).
Type Literal
Section titled “Type Literal”{ type: "DateRange"; value: { end: string; start: string; }; }
Type Literal
Section titled “Type Literal”{ type: "TimestampBefore"; value: string; }
Type Literal
Section titled “Type Literal”{ type: "TimestampAfter"; value: string; }
Type Literal
Section titled “Type Literal”{ type: "PathEquation"; value: { path1: string[]; path2: string[]; }; }
Type Literal
Section titled “Type Literal”{ type: "FuzzyRange"; value: { center: number; tolerance: number; }; }
Type Literal
Section titled “Type Literal”{ type: "FuzzyLinguistic"; value: { term: string; variable: string; }; }
Type Literal
Section titled “Type Literal”{ type: "FuzzyPathSimilarity"; value: { minSimilarity: number; path1: string[]; path2: string[]; }; }
Type Literal
Section titled “Type Literal”{ type: "PathLessThan"; value: { path1: string[]; path2: string[]; }; }
Type Literal
Section titled “Type Literal”{ type: "PathLessOrEqual"; value: { path1: string[]; path2: string[]; }; }