UNPKG

@botonic/plugin-flow-builder

Version:

Botonic plugin for **Hubtype Flow Builder**: run and bridge flow-driven logic from bots on the **current** line.

17 lines (16 loc) 918 B
import { BotonicContext } from '@botonic/core'; import { EventAction, HtEventProps } from '@botonic/shared'; import { FlowBuilderApi } from './api'; import type { FlowContent } from './content-fields'; export declare function trackEvent(botonicContext: BotonicContext, eventAction: EventAction, args?: Omit<HtEventProps, 'action'>): Promise<void>; export declare function trackFlowContent(botonicContext: BotonicContext, contents: FlowContent[]): Promise<void>; export declare function trackOneContent(botonicContext: BotonicContext, content: FlowContent, cmsApi?: FlowBuilderApi): Promise<void>; type CommonFlowContentEventArgs = { flowThreadId: string; flowId: string; flowName: string; flowNodeId: string; flowNodeContentId: string; }; export declare function getCommonFlowContentEventArgsForContentId(botonicContext: BotonicContext, id: string): Promise<CommonFlowContentEventArgs>; export {};