Type Alias: MatchResult<TDomainConfig>
type MatchResult<TDomainConfig> = {
allRules: Rule[];
conditionsTable: Record<string, Condition>;
matched: MatchedRule<TDomainConfig>[];
scoped: Rule[];
};Defined in: shared/rules/types/engine.ts:30
Type Parameters
| Type Parameter |
|---|
TDomainConfig |
Properties
allRules
allRules: Rule[];Defined in: shared/rules/types/engine.ts:31
conditionsTable
conditionsTable: Record<string, Condition>;Defined in: shared/rules/types/engine.ts:40
The conditions table the engine consulted, indexed by condition.id.
Echoed back so downstream passes (e.g. pricing's per-sub-unit
qualification) can resolve condition_id leaves to their
definitions without re-querying.
matched
matched: MatchedRule<TDomainConfig>[];Defined in: shared/rules/types/engine.ts:33
scoped
scoped: Rule[];Defined in: shared/rules/types/engine.ts:32