UNPKG

@o3r/rules-engine

Version:

This module provides a rule engine that can be executed on your Otter application to customize your application (translations, placeholders and configs) based on a json file generated by your CMS.

16 lines 895 B
import type { DebugEvent, Ruleset, RulesetExecutionErrorEvent, RulesetExecutionEvent } from '../../../engine'; import type { RulesetExecutionDebug, RulesetExecutionStatus } from '../ruleset-history/ruleset-history-pres.component'; /** * Compute the status of the execution depending on its execution event type, the output and whether the execution * is still active * @param rulesetExecution * @param isActive */ export declare const getStatus: (rulesetExecution: RulesetExecutionErrorEvent | RulesetExecutionEvent, isActive: boolean) => RulesetExecutionStatus; /** * Transform the output of the debug reports into the model for the ruleset history debug panel * @param events * @param rulesetMap */ export declare const rulesetReportToHistory: (events: DebugEvent[], rulesetMap: Record<string, Ruleset>) => RulesetExecutionDebug[]; //# sourceMappingURL=ruleset-history.helper.d.ts.map