UNPKG

@jss-rule-engine/workflow

Version:

22 lines (21 loc) 713 B
import { JssRuleEngine } from "@jss-rule-engine/core"; import { WorkflowActionFactory } from "../actionFactory"; export declare function handleWorkflowRun({ message, visitorId, workflowId, registerRuleEngine, registerActionFactory }: { message: string; visitorId: string; workflowId: string; registerRuleEngine?: (ruleEngine: JssRuleEngine) => void; registerActionFactory?: (actionFactory: WorkflowActionFactory) => void; }): Promise<{ success: boolean; errorCode: number; errorMessage: string; metadata?: undefined; } | { success: boolean; metadata: { timestamp: string; }; errorCode?: undefined; errorMessage?: undefined; }>;