@trii/types 2.10.472 → 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.
- package/dist/Conversations/Flows/Flow.d.ts +3 -1
- package/dist/Conversations/Flows/Flow.js +1 -0
- package/dist/Conversations/Flows/Nodes/NodeToolFunction.d.ts +8 -0
- package/dist/Conversations/Flows/Nodes/NodeToolFunction.js +2 -0
- package/dist/Conversations/Flows/Nodes/NodeToolMapsCheckPolygon.d.ts +3 -3
- package/dist/Conversations/Flows/Nodes/NodeToolMcpClient.d.ts +1 -0
- package/package.json +1 -1
|
@@ -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
|
+
}
|
|
@@ -4,11 +4,11 @@ export interface NodeToolMapsCheckPolygon extends NodeBase {
|
|
|
4
4
|
handles: [];
|
|
5
5
|
category: 'tool';
|
|
6
6
|
description: "Check if a point is inside a polygon defined by its ID. Useful for geofencing and location-based services.";
|
|
7
|
-
|
|
7
|
+
maps: NodeToolMapsCheckPolygonItem[];
|
|
8
8
|
}
|
|
9
9
|
export interface NodeToolMapsCheckPolygonItem {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
mapId: string;
|
|
11
|
+
mapName: string;
|
|
12
12
|
scheduleId?: string | null;
|
|
13
13
|
price?: number | null;
|
|
14
14
|
}
|