@botonic/plugin-flow-builder
Version:
Botonic plugin for **Hubtype Flow Builder**: run and bridge flow-driven logic from bots on the **current** line.
31 lines (30 loc) • 848 B
TypeScript
import { HtBaseNode, HtNodeLink } from './common';
import { HtNodeWithContentType } from './node-types';
export declare enum HtArgumentType {
BOOLEAN = "boolean",
NUMBER = "number",
STRING = "string",
JSON = "json"
}
export interface HtFunctionArgument {
type: HtArgumentType;
name: string;
value: string;
}
export interface HtFunctionArgumentLocale {
locale: string;
values: HtFunctionArgument[];
}
export interface HtFunctionResult {
result: string | number | boolean;
target?: HtNodeLink;
}
export type HtFunctionArguments = HtFunctionArgumentLocale | HtFunctionArgument;
export interface HtFunctionNode extends HtBaseNode {
type: HtNodeWithContentType.FUNCTION;
content: {
action: string;
arguments: HtFunctionArguments[];
result_mapping: HtFunctionResult[];
};
}