@trii/types 2.10.473 → 2.10.474
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -21,6 +21,7 @@ import { NodeTimeWaitUntil } from "./Nodes/NodeTimeWaitUntil";
|
|
|
21
21
|
import { NodeToolCalculator } from "./Nodes/NodeToolCalculator";
|
|
22
22
|
import { NodeToolMapsCheckPolygon } from "./Nodes/NodeToolMapsCheckPolygon";
|
|
23
23
|
import { NodeToolMcpClient } from "./Nodes/NodeToolMcpClient";
|
|
24
|
+
import { NodeToolFunction } from "./Nodes/NodeToolFunction";
|
|
24
25
|
export interface IFlow {
|
|
25
26
|
id?: string | null;
|
|
26
27
|
spaceId?: string | null;
|
|
@@ -58,6 +59,7 @@ export declare enum NodeType {
|
|
|
58
59
|
TOOL_MAPS_CHECK_POLYGON = 203,
|
|
59
60
|
TOOL_MCP_CLIENT = 204,
|
|
60
61
|
TOOL_KNOWLEDGE = 205,
|
|
62
|
+
TOOL_FUNCTION = 206,
|
|
61
63
|
TOOL_GOOGLE_CALENDAR = 251,
|
|
62
64
|
TOOL_GOOGLE_MAPS = 252
|
|
63
65
|
}
|
|
@@ -65,7 +67,7 @@ export declare class NodePosition {
|
|
|
65
67
|
x: number;
|
|
66
68
|
y: number;
|
|
67
69
|
}
|
|
68
|
-
export type Node = NodeStart | NodeMsgText | NodeMsgWaitResponse | NodeSqlQuery | NodeApi | NodeSendEmail | NodeFillForm | NodeFillTicket | NodeContactSearch | NodeContactUpdate | NodeConversationAssignTo | NodeConversationUpdate | NodeConversationFinalize | NodeTimeScheduleControl | NodeTimeTimer | NodeTimeWaitUntil | NodeConditional | NodeRedirect | NodeAIChatBot | NodeToolGoogleMaps | NodeToolGoogleCalendar | NodeToolCalculator | NodeToolMapsCheckPolygon | NodeToolMcpClient | NodeToolKnowledge;
|
|
70
|
+
export type Node = NodeStart | NodeMsgText | NodeMsgWaitResponse | NodeSqlQuery | NodeApi | NodeSendEmail | NodeFillForm | NodeFillTicket | NodeContactSearch | NodeContactUpdate | NodeConversationAssignTo | NodeConversationUpdate | NodeConversationFinalize | NodeTimeScheduleControl | NodeTimeTimer | NodeTimeWaitUntil | NodeConditional | NodeRedirect | NodeAIChatBot | NodeToolGoogleMaps | NodeToolGoogleCalendar | NodeToolCalculator | NodeToolMapsCheckPolygon | NodeToolMcpClient | NodeToolKnowledge | NodeToolFunction;
|
|
69
71
|
export type NodeCategory = 'trigger' | 'action' | 'tool' | 'agent';
|
|
70
72
|
export interface NodeBase {
|
|
71
73
|
id: string;
|
|
@@ -27,6 +27,7 @@ var NodeType;
|
|
|
27
27
|
NodeType[NodeType["TOOL_MAPS_CHECK_POLYGON"] = 203] = "TOOL_MAPS_CHECK_POLYGON";
|
|
28
28
|
NodeType[NodeType["TOOL_MCP_CLIENT"] = 204] = "TOOL_MCP_CLIENT";
|
|
29
29
|
NodeType[NodeType["TOOL_KNOWLEDGE"] = 205] = "TOOL_KNOWLEDGE";
|
|
30
|
+
NodeType[NodeType["TOOL_FUNCTION"] = 206] = "TOOL_FUNCTION";
|
|
30
31
|
NodeType[NodeType["TOOL_GOOGLE_CALENDAR"] = 251] = "TOOL_GOOGLE_CALENDAR";
|
|
31
32
|
NodeType[NodeType["TOOL_GOOGLE_MAPS"] = 252] = "TOOL_GOOGLE_MAPS";
|
|
32
33
|
})(NodeType || (exports.NodeType = NodeType = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { NodeBase, NodeType } from '../Flow';
|
|
2
|
+
export interface NodeToolFunction extends NodeBase {
|
|
3
|
+
type: NodeType.TOOL_FUNCTION;
|
|
4
|
+
handles: [];
|
|
5
|
+
category: 'tool';
|
|
6
|
+
description: "Tool for executing custom JavaScript functions.";
|
|
7
|
+
javascriptCode: string | '';
|
|
8
|
+
}
|