@trii/types 2.10.463 → 2.10.465
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 +29 -39
- package/dist/Conversations/Flows/Flow.js +8 -10
- package/dist/Conversations/Flows/Nodes/NodeAIChatBot.d.ts +11 -11
- package/dist/Conversations/Flows/Nodes/NodeAIChatBot.js +0 -4
- package/dist/Conversations/Flows/Nodes/NodeApi.d.ts +6 -5
- package/dist/Conversations/Flows/Nodes/NodeApi.js +0 -4
- package/dist/Conversations/Flows/Nodes/NodeConditional.d.ts +14 -7
- package/dist/Conversations/Flows/Nodes/NodeConditional.js +3 -3
- package/dist/Conversations/Flows/Nodes/NodeContactSearch.d.ts +6 -5
- package/dist/Conversations/Flows/Nodes/NodeContactSearch.js +0 -4
- package/dist/Conversations/Flows/Nodes/NodeContactUpdate.d.ts +6 -5
- package/dist/Conversations/Flows/Nodes/NodeContactUpdate.js +1 -4
- package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.d.ts +8 -6
- package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.js +0 -4
- package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.d.ts +6 -4
- package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.js +0 -4
- package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.d.ts +6 -5
- package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.js +1 -4
- package/dist/Conversations/Flows/Nodes/NodeFillForm.d.ts +7 -6
- package/dist/Conversations/Flows/Nodes/NodeFillForm.js +0 -7
- package/dist/Conversations/Flows/Nodes/NodeFillTicket.d.ts +6 -5
- package/dist/Conversations/Flows/Nodes/NodeFillTicket.js +1 -4
- package/dist/Conversations/Flows/Nodes/NodeGoogleCalendar.d.ts +5 -4
- package/dist/Conversations/Flows/Nodes/NodeGoogleCalendar.js +0 -4
- package/dist/Conversations/Flows/Nodes/NodeGoogleMaps.d.ts +5 -4
- package/dist/Conversations/Flows/Nodes/NodeGoogleMaps.js +0 -4
- package/dist/Conversations/Flows/Nodes/NodeMsgText.d.ts +6 -5
- package/dist/Conversations/Flows/Nodes/NodeMsgText.js +1 -4
- package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.d.ts +8 -34
- package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.js +1 -28
- package/dist/Conversations/Flows/Nodes/NodeRedirect.d.ts +6 -4
- package/dist/Conversations/Flows/Nodes/NodeRedirect.js +0 -4
- package/dist/Conversations/Flows/Nodes/NodeSendEmail.d.ts +6 -5
- package/dist/Conversations/Flows/Nodes/NodeSendEmail.js +0 -4
- package/dist/Conversations/Flows/Nodes/NodeSqlQuery.d.ts +6 -5
- package/dist/Conversations/Flows/Nodes/NodeSqlQuery.js +1 -4
- package/dist/Conversations/Flows/Nodes/NodeStart.d.ts +6 -4
- package/dist/Conversations/Flows/Nodes/NodeStart.js +1 -4
- package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.d.ts +6 -5
- package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.js +0 -4
- package/dist/Conversations/Flows/Nodes/NodeTimeTimer.d.ts +6 -5
- package/dist/Conversations/Flows/Nodes/NodeTimeTimer.js +0 -4
- package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.d.ts +6 -5
- package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.js +0 -4
- package/dist/Conversations/Flows/Nodes/NodeToolCalculator.d.ts +8 -0
- package/dist/Conversations/Flows/Nodes/NodeToolCalculator.js +2 -0
- package/dist/Conversations/Flows/Nodes/NodeToolContacts.d.ts +11 -0
- package/dist/Conversations/Flows/Nodes/NodeToolContacts.js +2 -0
- package/dist/Conversations/Flows/Nodes/NodeToolGoogleCalendar.d.ts +20 -0
- package/dist/Conversations/Flows/Nodes/NodeToolGoogleCalendar.js +2 -0
- package/dist/Conversations/Flows/Nodes/NodeToolGoogleMaps.d.ts +14 -0
- package/dist/Conversations/Flows/Nodes/NodeToolGoogleMaps.js +2 -0
- package/dist/Conversations/Flows/Nodes/NodeToolMapsCheckPolygon.d.ts +15 -0
- package/dist/Conversations/Flows/Nodes/NodeToolMapsCheckPolygon.js +2 -0
- package/dist/Conversations/Flows/Nodes/NodeToolMcpClient.d.ts +8 -0
- package/dist/Conversations/Flows/Nodes/NodeToolMcpClient.js +2 -0
- package/dist/Conversations/Flows/Nodes/index.d.ts +5 -2
- package/dist/Conversations/Flows/Nodes/index.js +5 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NodeAIChatBot } from "./Nodes";
|
|
1
|
+
import { NodeAIChatBot, NodeToolGoogleCalendar } from "./Nodes";
|
|
2
2
|
import { NodeApi } from "./Nodes/NodeApi";
|
|
3
3
|
import { NodeConditional } from "./Nodes/NodeConditional";
|
|
4
4
|
import { NodeContactSearch } from "./Nodes/NodeContactSearch";
|
|
@@ -8,7 +8,7 @@ import { NodeConversationFinalize } from "./Nodes/NodeConversationFinalize";
|
|
|
8
8
|
import { NodeConversationUpdate } from "./Nodes/NodeConversationUpdate";
|
|
9
9
|
import { NodeFillForm } from "./Nodes/NodeFillForm";
|
|
10
10
|
import { NodeFillTicket } from "./Nodes/NodeFillTicket";
|
|
11
|
-
import {
|
|
11
|
+
import { NodeToolGoogleMaps } from "./Nodes/NodeToolGoogleMaps";
|
|
12
12
|
import { NodeMsgText } from "./Nodes/NodeMsgText";
|
|
13
13
|
import { NodeMsgWaitResponse } from "./Nodes/NodeMsgWaitResponse";
|
|
14
14
|
import { NodeRedirect } from "./Nodes/NodeRedirect";
|
|
@@ -18,9 +18,12 @@ import { NodeStart } from "./Nodes/NodeStart";
|
|
|
18
18
|
import { NodeTimeScheduleControl } from "./Nodes/NodeTimeScheduleControl";
|
|
19
19
|
import { NodeTimeTimer } from "./Nodes/NodeTimeTimer";
|
|
20
20
|
import { NodeTimeWaitUntil } from "./Nodes/NodeTimeWaitUntil";
|
|
21
|
-
|
|
21
|
+
import { NodeToolCalculator } from "./Nodes/NodeToolCalculator";
|
|
22
|
+
import { NodeToolMapsCheckPolygon } from "./Nodes/NodeToolMapsCheckPolygon";
|
|
23
|
+
import { NodeToolMcpClient } from "./Nodes/NodeToolMcpClient";
|
|
24
|
+
export interface IFlow {
|
|
22
25
|
id?: string | null;
|
|
23
|
-
|
|
26
|
+
spaceId?: string | null;
|
|
24
27
|
name?: string | null;
|
|
25
28
|
description?: string | null;
|
|
26
29
|
enabled: boolean | false;
|
|
@@ -30,7 +33,7 @@ interface IFlow {
|
|
|
30
33
|
updatedAt?: string | null;
|
|
31
34
|
deletedAt?: string | null;
|
|
32
35
|
}
|
|
33
|
-
declare enum NodeType {
|
|
36
|
+
export declare enum NodeType {
|
|
34
37
|
START = 11,
|
|
35
38
|
MSG_TEXT = 21,
|
|
36
39
|
MSG_WAIT_RESPONSE = 22,
|
|
@@ -50,48 +53,36 @@ declare enum NodeType {
|
|
|
50
53
|
CONDITIONAL = 71,
|
|
51
54
|
REDIRECT = 72,
|
|
52
55
|
AI_CHATBOT = 91,
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
+
TOOL_TRII_CONTACTS = 201,
|
|
57
|
+
TOOL_TRII_CALENDAR = 202,
|
|
58
|
+
TOOL_MAPS_CHECK_POLYGON = 203,
|
|
59
|
+
TOOL_MCP_CLIENT = 204,
|
|
60
|
+
TOOL_GOOGLE_CALENDAR = 251,
|
|
61
|
+
TOOL_GOOGLE_MAPS = 252
|
|
56
62
|
}
|
|
57
|
-
declare class NodePosition {
|
|
63
|
+
export declare class NodePosition {
|
|
58
64
|
x: number;
|
|
59
65
|
y: number;
|
|
60
66
|
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
msgWaitResponse?: NodeMsgWaitResponse | null;
|
|
65
|
-
sqlQuery?: NodeSqlQuery | null;
|
|
66
|
-
api?: NodeApi | null;
|
|
67
|
-
sendEmail?: NodeSendEmail | null;
|
|
68
|
-
fillForm?: NodeFillForm | null;
|
|
69
|
-
fillTicket?: NodeFillTicket | null;
|
|
70
|
-
contactSearch?: NodeContactSearch | null;
|
|
71
|
-
contactUpdate?: NodeContactUpdate | null;
|
|
72
|
-
conversationAssignTo?: NodeConversationAssignTo | null;
|
|
73
|
-
conversationUpdate?: NodeConversationUpdate | null;
|
|
74
|
-
conversationFinalize?: NodeConversationFinalize | null;
|
|
75
|
-
timeScheduleControl?: NodeTimeScheduleControl | null;
|
|
76
|
-
timeTimer?: NodeTimeTimer | null;
|
|
77
|
-
timeWaitUntil?: NodeTimeWaitUntil | null;
|
|
78
|
-
conditional?: NodeConditional | null;
|
|
79
|
-
redirect?: NodeRedirect | null;
|
|
80
|
-
aiChatBot?: NodeAIChatBot | null;
|
|
81
|
-
googleMaps?: NodeGoogleMaps | null;
|
|
82
|
-
}
|
|
83
|
-
declare class Node {
|
|
67
|
+
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;
|
|
68
|
+
export type NodeCategory = 'trigger' | 'action' | 'tool' | 'agent';
|
|
69
|
+
export interface NodeBase {
|
|
84
70
|
id: string;
|
|
71
|
+
name: string;
|
|
85
72
|
type: NodeType;
|
|
73
|
+
typeName: string;
|
|
74
|
+
handles: string[];
|
|
75
|
+
category: NodeCategory;
|
|
76
|
+
enableStatics: boolean | false;
|
|
77
|
+
description: string | '';
|
|
86
78
|
position: NodePosition;
|
|
87
|
-
data: NodeData;
|
|
88
79
|
width?: number | null;
|
|
89
80
|
height?: number | null;
|
|
90
81
|
selected?: boolean | null;
|
|
91
82
|
positionAbsolute?: NodePosition | null;
|
|
92
83
|
dragging?: boolean | null;
|
|
93
84
|
}
|
|
94
|
-
declare class Edge {
|
|
85
|
+
export declare class Edge {
|
|
95
86
|
id: string | null;
|
|
96
87
|
source: string | null;
|
|
97
88
|
sourceHandle?: string | null;
|
|
@@ -100,19 +91,18 @@ declare class Edge {
|
|
|
100
91
|
data?: EdgeData | null;
|
|
101
92
|
markerEnd?: EdgeMarkerEnd | null;
|
|
102
93
|
}
|
|
103
|
-
declare class EdgeData {
|
|
94
|
+
export declare class EdgeData {
|
|
104
95
|
label: string | '';
|
|
105
96
|
}
|
|
106
|
-
declare class EdgeMarkerEnd {
|
|
97
|
+
export declare class EdgeMarkerEnd {
|
|
107
98
|
type?: string | '';
|
|
108
99
|
}
|
|
109
|
-
declare class FlowInfo {
|
|
100
|
+
export declare class FlowInfo {
|
|
110
101
|
id: string;
|
|
111
102
|
name: string;
|
|
112
103
|
nodes: NodeInfo[];
|
|
113
104
|
}
|
|
114
|
-
declare class NodeInfo {
|
|
105
|
+
export declare class NodeInfo {
|
|
115
106
|
id: string;
|
|
116
107
|
name: string;
|
|
117
108
|
}
|
|
118
|
-
export { IFlow, NodeType, NodePosition, NodeData, Node, Edge, EdgeMarkerEnd, FlowInfo, NodeInfo };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NodeInfo = exports.FlowInfo = exports.EdgeMarkerEnd = exports.
|
|
3
|
+
exports.NodeInfo = exports.FlowInfo = exports.EdgeMarkerEnd = exports.EdgeData = exports.Edge = exports.NodePosition = exports.NodeType = void 0;
|
|
4
4
|
var NodeType;
|
|
5
5
|
(function (NodeType) {
|
|
6
6
|
NodeType[NodeType["START"] = 11] = "START";
|
|
@@ -22,24 +22,22 @@ var NodeType;
|
|
|
22
22
|
NodeType[NodeType["CONDITIONAL"] = 71] = "CONDITIONAL";
|
|
23
23
|
NodeType[NodeType["REDIRECT"] = 72] = "REDIRECT";
|
|
24
24
|
NodeType[NodeType["AI_CHATBOT"] = 91] = "AI_CHATBOT";
|
|
25
|
-
NodeType[NodeType["
|
|
26
|
-
NodeType[NodeType["
|
|
27
|
-
NodeType[NodeType["
|
|
25
|
+
NodeType[NodeType["TOOL_TRII_CONTACTS"] = 201] = "TOOL_TRII_CONTACTS";
|
|
26
|
+
NodeType[NodeType["TOOL_TRII_CALENDAR"] = 202] = "TOOL_TRII_CALENDAR";
|
|
27
|
+
NodeType[NodeType["TOOL_MAPS_CHECK_POLYGON"] = 203] = "TOOL_MAPS_CHECK_POLYGON";
|
|
28
|
+
NodeType[NodeType["TOOL_MCP_CLIENT"] = 204] = "TOOL_MCP_CLIENT";
|
|
29
|
+
NodeType[NodeType["TOOL_GOOGLE_CALENDAR"] = 251] = "TOOL_GOOGLE_CALENDAR";
|
|
30
|
+
NodeType[NodeType["TOOL_GOOGLE_MAPS"] = 252] = "TOOL_GOOGLE_MAPS";
|
|
28
31
|
})(NodeType || (exports.NodeType = NodeType = {}));
|
|
29
32
|
class NodePosition {
|
|
30
33
|
}
|
|
31
34
|
exports.NodePosition = NodePosition;
|
|
32
|
-
class NodeData {
|
|
33
|
-
}
|
|
34
|
-
exports.NodeData = NodeData;
|
|
35
|
-
class Node {
|
|
36
|
-
}
|
|
37
|
-
exports.Node = Node;
|
|
38
35
|
class Edge {
|
|
39
36
|
}
|
|
40
37
|
exports.Edge = Edge;
|
|
41
38
|
class EdgeData {
|
|
42
39
|
}
|
|
40
|
+
exports.EdgeData = EdgeData;
|
|
43
41
|
class EdgeMarkerEnd {
|
|
44
42
|
}
|
|
45
43
|
exports.EdgeMarkerEnd = EdgeMarkerEnd;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
handles: ['onNext', 'tools'];
|
|
6
|
-
|
|
1
|
+
import { NodeBase, NodeType } from "../Flow";
|
|
2
|
+
export interface NodeAIChatBot extends NodeBase {
|
|
3
|
+
type: NodeType.AI_CHATBOT;
|
|
4
|
+
typeName: "aiChatBot";
|
|
5
|
+
handles: ['onNext', 'tools', 'transitions', 'onError'];
|
|
6
|
+
category: 'agent';
|
|
7
|
+
description: "Node for AI Chat Bot operations, such as sending messages or managing conversations with an AI model.";
|
|
8
|
+
prompt?: string | "";
|
|
7
9
|
globalNode: boolean | false;
|
|
8
10
|
globalNodeCondition: string | "";
|
|
9
|
-
|
|
11
|
+
llmProvider: string | "";
|
|
12
|
+
llmModel?: string | "";
|
|
13
|
+
credentialId?: string | "";
|
|
10
14
|
llmTemperature?: number | 0.7;
|
|
11
15
|
llmMaxTokens?: number | 1000;
|
|
12
16
|
llmTopP?: number | 1;
|
|
13
|
-
prompt?: string | "";
|
|
14
17
|
retryCount?: number | 3;
|
|
15
18
|
retryDelay?: number | 1000;
|
|
16
|
-
apiKey?: string | "";
|
|
17
|
-
nextNodeId?: string | "";
|
|
18
19
|
}
|
|
19
|
-
export type NodeNodeChatBotModel = "gpt-3.5-turbo" | "gpt-4" | "gpt-4-turbo" | "llama2" | "llama2-chat" | "llama2-7b-chat" | "llama2-13b-chat" | "llama2-70b-chat" | "llama2-7b" | "llama2-13b" | "llama2-70b" | "mistral" | "mistral-chat" | "mistral-7b-chat" | "mistral-7b";
|
|
@@ -3,12 +3,13 @@ import { AuthBasic } from '../../../Common/API/AuthBasic';
|
|
|
3
3
|
import { AuthBearer } from '../../../Common/API/AuthBearer';
|
|
4
4
|
import { AuthType } from '../../../Common/API/AuthType';
|
|
5
5
|
import { Method } from '../../../Common/API/Method';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
import { NodeBase, NodeType } from "../Flow";
|
|
7
|
+
export interface NodeApi extends NodeBase {
|
|
8
|
+
type: NodeType.API;
|
|
9
|
+
typeName: "api";
|
|
10
10
|
handles: ['onOk', 'onError'];
|
|
11
|
-
|
|
11
|
+
category: 'action';
|
|
12
|
+
description: "Node for making API calls, allowing for dynamic interactions with external services.";
|
|
12
13
|
apiUrl?: string | null;
|
|
13
14
|
apiMethod?: Method | null;
|
|
14
15
|
apiAuthType?: AuthType | null;
|
|
@@ -1,12 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
import { NodeType, NodeBase } from "../Flow";
|
|
2
|
+
export interface NodeConditional extends NodeBase {
|
|
3
|
+
type: NodeType.CONDITIONAL;
|
|
4
|
+
typeName: "conditional";
|
|
5
|
+
handles: ['onOk', 'onError', 'onCondition-{id}'];
|
|
6
|
+
category: 'action';
|
|
7
|
+
description: "Node for conditional operations, allowing for dynamic decision-making based on conditions.";
|
|
8
|
+
conditions: NodeMsgWaitResponseCondition[];
|
|
9
|
+
}
|
|
10
|
+
export declare class NodeMsgWaitResponseCondition {
|
|
2
11
|
id: string;
|
|
3
|
-
|
|
4
|
-
type: "conditional";
|
|
5
|
-
handles: ['onOk', 'onError'];
|
|
6
|
-
enableStatics: boolean | false;
|
|
7
|
-
value1: string | '';
|
|
12
|
+
source: string;
|
|
8
13
|
operator: NodeConditionalOperator;
|
|
9
|
-
|
|
14
|
+
valueList: string[];
|
|
15
|
+
outputValue: string;
|
|
16
|
+
conditionName: string;
|
|
10
17
|
}
|
|
11
18
|
export declare enum NodeConditionalOperator {
|
|
12
19
|
NULL = 0,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NodeConditionalOperator = exports.
|
|
4
|
-
class
|
|
3
|
+
exports.NodeConditionalOperator = exports.NodeMsgWaitResponseCondition = void 0;
|
|
4
|
+
class NodeMsgWaitResponseCondition {
|
|
5
5
|
}
|
|
6
|
-
exports.
|
|
6
|
+
exports.NodeMsgWaitResponseCondition = NodeMsgWaitResponseCondition;
|
|
7
7
|
var NodeConditionalOperator;
|
|
8
8
|
(function (NodeConditionalOperator) {
|
|
9
9
|
NodeConditionalOperator[NodeConditionalOperator["NULL"] = 0] = "NULL";
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { NodeBase, NodeType } from "../Flow";
|
|
2
|
+
export interface NodeContactSearch extends NodeBase {
|
|
3
|
+
type: NodeType.CONTACT_SEARCH;
|
|
4
|
+
typeName: "contactSearch";
|
|
5
5
|
handles: ['onOk', 'onError'];
|
|
6
|
-
|
|
6
|
+
category: 'action';
|
|
7
|
+
description: "Node for searching contacts in the system, allowing for dynamic retrieval of contact information based on specified criteria.";
|
|
7
8
|
contactFieldId: string | '';
|
|
8
9
|
valueToSearch: string | '';
|
|
9
10
|
saveAs: string | '';
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { NodeBase, NodeType } from "../Flow";
|
|
2
|
+
export interface NodeContactUpdate extends NodeBase {
|
|
3
|
+
type: NodeType.CONTACT_UPDATE;
|
|
4
|
+
typeName: "contactUpdate";
|
|
5
5
|
handles: ['onOk', 'onError'];
|
|
6
|
-
|
|
6
|
+
category: 'action';
|
|
7
|
+
description: "Node for updating contact information, allowing the flow to modify specific fields of a contact.";
|
|
7
8
|
contactFieldId: string | '';
|
|
8
9
|
action: NodeContactUpdateAction;
|
|
9
10
|
valueToSave: string | '';
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NodeContactUpdateAction =
|
|
4
|
-
class NodeContactUpdate {
|
|
5
|
-
}
|
|
6
|
-
exports.NodeContactUpdate = NodeContactUpdate;
|
|
3
|
+
exports.NodeContactUpdateAction = void 0;
|
|
7
4
|
var NodeContactUpdateAction;
|
|
8
5
|
(function (NodeContactUpdateAction) {
|
|
9
6
|
NodeContactUpdateAction[NodeContactUpdateAction["REPLACE"] = 0] = "REPLACE";
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
handles: ['
|
|
6
|
-
|
|
1
|
+
import { NodeBase, NodeType } from "../Flow";
|
|
2
|
+
export interface NodeConversationAssignTo extends NodeBase {
|
|
3
|
+
type: NodeType.CONVERSATION_ASSIGN_TO;
|
|
4
|
+
typeName: "conversationAssignTo";
|
|
5
|
+
handles: ['onOk'];
|
|
6
|
+
category: 'action';
|
|
7
|
+
description: "Node for assigning the conversation to a specific user or group, allowing for targeted management of conversations within the system.";
|
|
8
|
+
userId?: string | "";
|
|
7
9
|
groupId?: string | "";
|
|
8
10
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { NodeBase, NodeType } from "../Flow";
|
|
2
|
+
export interface NodeConversationFinalize extends NodeBase {
|
|
3
|
+
type: NodeType.CONVERSATION_FINALIZE;
|
|
4
|
+
typeName: "conversationFinalize";
|
|
5
5
|
handles: [];
|
|
6
|
+
category: 'action';
|
|
7
|
+
description: "Node for finalizing the conversation, marking it as complete and potentially triggering cleanup or follow-up actions.";
|
|
6
8
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { NodeBase, NodeType } from "../Flow";
|
|
2
|
+
export interface NodeConversationUpdate extends NodeBase {
|
|
3
|
+
type: NodeType.CONVERSATION_UPDATE;
|
|
4
|
+
typeName: "conversationUpdate";
|
|
5
5
|
handles: ['onNext'];
|
|
6
|
-
|
|
6
|
+
category: 'action';
|
|
7
|
+
description: "Node for updating conversation details, such as tags or metadata, to manage and organize conversations effectively.";
|
|
7
8
|
fieldId: NodeContactUpdateConverFields;
|
|
8
9
|
action: NodeConversationUpdateAction;
|
|
9
10
|
valueToSave: string | '';
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NodeConversationUpdateAction = exports.NodeContactUpdateConverFields =
|
|
4
|
-
class NodeConversationUpdate {
|
|
5
|
-
}
|
|
6
|
-
exports.NodeConversationUpdate = NodeConversationUpdate;
|
|
3
|
+
exports.NodeConversationUpdateAction = exports.NodeContactUpdateConverFields = void 0;
|
|
7
4
|
var NodeContactUpdateConverFields;
|
|
8
5
|
(function (NodeContactUpdateConverFields) {
|
|
9
6
|
NodeContactUpdateConverFields[NodeContactUpdateConverFields["TAG"] = 0] = "TAG";
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { NodeBase, NodeType } from "../Flow";
|
|
2
|
+
export interface NodeFillForm extends NodeBase {
|
|
3
|
+
type: NodeType.FILL_FORM;
|
|
4
|
+
typeName: "fillForm";
|
|
5
5
|
handles: ['onNext'];
|
|
6
|
-
|
|
6
|
+
category: 'action';
|
|
7
|
+
description: "Node for filling out forms, allowing the flow to collect structured data from users or systems.";
|
|
7
8
|
formId?: string | "";
|
|
8
9
|
responses: FillFormKeyValue[];
|
|
9
10
|
}
|
|
10
|
-
export
|
|
11
|
+
export interface FillFormKeyValue {
|
|
11
12
|
questionId: string | "";
|
|
12
13
|
question: string | "";
|
|
13
14
|
responseValue: string | "";
|
|
@@ -1,9 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FillFormKeyValue = exports.NodeFillForm = void 0;
|
|
4
|
-
class NodeFillForm {
|
|
5
|
-
}
|
|
6
|
-
exports.NodeFillForm = NodeFillForm;
|
|
7
|
-
class FillFormKeyValue {
|
|
8
|
-
}
|
|
9
|
-
exports.FillFormKeyValue = FillFormKeyValue;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { NodeBase, NodeType } from "../Flow";
|
|
2
|
+
export interface NodeFillTicket extends NodeBase {
|
|
3
|
+
type: NodeType.FILL_TICKET;
|
|
4
|
+
typeName: "fillTicket";
|
|
5
5
|
handles: ['onOk', 'onError'];
|
|
6
|
-
|
|
6
|
+
category: 'action';
|
|
7
|
+
description: "Node for filling out a ticket, allowing the flow to create or update tickets with specified details.";
|
|
7
8
|
ticketContactSearchValue: string | '';
|
|
8
9
|
ticketContactSearchFieldId: string | '';
|
|
9
10
|
ticketContactName: string | '';
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NodeFillTicketPriority =
|
|
4
|
-
class NodeFillTicket {
|
|
5
|
-
}
|
|
6
|
-
exports.NodeFillTicket = NodeFillTicket;
|
|
3
|
+
exports.NodeFillTicketPriority = void 0;
|
|
7
4
|
var NodeFillTicketPriority;
|
|
8
5
|
(function (NodeFillTicketPriority) {
|
|
9
6
|
NodeFillTicketPriority[NodeFillTicketPriority["LOW"] = 100] = "LOW";
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { NodeBase, NodeType } from '../Flow';
|
|
2
|
+
export interface NodeGoogleCalendar extends NodeBase {
|
|
3
|
+
type: NodeType.GOOGLE_CALENDAR;
|
|
4
|
+
typeName: "googleCalendar";
|
|
5
5
|
handles: ['onNext'];
|
|
6
|
+
categories: ['tool'];
|
|
6
7
|
enableStatics: boolean | false;
|
|
7
8
|
authCredentialId?: string | null;
|
|
8
9
|
eventsAdd?: boolean | false;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { NodeBase, NodeType } from '../Flow';
|
|
2
|
+
export interface NodeGoogleMaps extends NodeBase {
|
|
3
|
+
type: NodeType.GOOGLE_MAPS;
|
|
4
|
+
typeName: "googleMaps";
|
|
5
5
|
handles: ['onNext'];
|
|
6
|
+
categories: ['action'];
|
|
6
7
|
enableStatics: boolean | false;
|
|
7
8
|
polygonsEnable?: boolean | false;
|
|
8
9
|
polygonsId?: string | null;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { NodeBase, NodeType } from "../Flow";
|
|
2
|
+
export interface NodeMsgText extends NodeBase {
|
|
3
|
+
type: NodeType.MSG_TEXT;
|
|
4
|
+
typeName: "msgText";
|
|
5
5
|
handles: ['onNext'];
|
|
6
|
-
|
|
6
|
+
category: 'action';
|
|
7
|
+
description: "Node for sending text messages, images, videos, or files to a channel. It supports both manual message creation and template-based messages.";
|
|
7
8
|
channelId: string;
|
|
8
9
|
mode: NodeMsgTextMode;
|
|
9
10
|
message: NodeMsgTextMessage | null;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NodeMsgTextMode = exports.NodeMsgTextMessageButtonType = exports.NodeMsgTextMessageType = exports.NodeMsgTextMessageButton = exports.NodeMsgTextMessage = exports.templateVariable = exports.NodeMsgTextTemplate =
|
|
4
|
-
class NodeMsgText {
|
|
5
|
-
}
|
|
6
|
-
exports.NodeMsgText = NodeMsgText;
|
|
3
|
+
exports.NodeMsgTextMode = exports.NodeMsgTextMessageButtonType = exports.NodeMsgTextMessageType = exports.NodeMsgTextMessageButton = exports.NodeMsgTextMessage = exports.templateVariable = exports.NodeMsgTextTemplate = void 0;
|
|
7
4
|
class NodeMsgTextTemplate {
|
|
8
5
|
}
|
|
9
6
|
exports.NodeMsgTextTemplate = NodeMsgTextTemplate;
|
|
@@ -1,47 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { NodeBase, NodeType } from "../Flow";
|
|
2
|
+
export interface NodeMsgWaitResponse extends NodeBase {
|
|
3
|
+
type: NodeType.MSG_WAIT_RESPONSE;
|
|
4
|
+
typeName: "msgWaitResponse";
|
|
5
5
|
handles: ['onNext', 'onTimeOut'];
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
autoResponseOnNoConditionMatchMessage: string | '';
|
|
6
|
+
category: 'action';
|
|
7
|
+
description: "Node for waiting for a response from a client or remote user, allowing the flow to pause until a specific condition is met or a timeout occurs.";
|
|
9
8
|
autoResponseOnTimeOutMinutes: number | 0;
|
|
10
9
|
autoResponseOnTimeOutMessage: string | '';
|
|
10
|
+
waitForOtherMessagesEnabled: boolean | false;
|
|
11
|
+
waitForOtherMessagesTime: number | 0;
|
|
11
12
|
continueAfterEnabled: boolean | false;
|
|
12
13
|
continueAfterTime: number | 0;
|
|
13
14
|
continueAfterTimeType: NodeMsgWaitResponseTimeType;
|
|
14
15
|
saveAs?: string | null;
|
|
15
16
|
}
|
|
16
|
-
export declare class NodeMsgWaitResponseCondition {
|
|
17
|
-
id: string;
|
|
18
|
-
source: NodeMsgWaitResponseConditionSource;
|
|
19
|
-
operator: NodeMsgWaitResponseConditionOperator;
|
|
20
|
-
valueList: string[];
|
|
21
|
-
outputValue: string;
|
|
22
|
-
conditionName: string;
|
|
23
|
-
}
|
|
24
17
|
export declare enum NodeMsgWaitResponseTimeType {
|
|
25
18
|
MINUTES = 0,
|
|
26
19
|
HOURS = 1,
|
|
27
20
|
DAYS = 2
|
|
28
21
|
}
|
|
29
|
-
export declare enum NodeMsgWaitResponseConditionSource {
|
|
30
|
-
TEXT = 0,
|
|
31
|
-
CAPTION = 1,
|
|
32
|
-
TEXT_AND_CAPTION = 2,
|
|
33
|
-
MIMETYPE = 3
|
|
34
|
-
}
|
|
35
|
-
export declare enum NodeMsgWaitResponseConditionOperator {
|
|
36
|
-
NULL = 0,
|
|
37
|
-
LESS_THAN = 1,
|
|
38
|
-
LESS_THAN_EQUAL = 2,
|
|
39
|
-
EQUAL = 3,
|
|
40
|
-
GREATER_THAN_EQUAL = 4,
|
|
41
|
-
GREATER_THAN = 5,
|
|
42
|
-
START_WITH = 6,
|
|
43
|
-
END_WITH = 7,
|
|
44
|
-
CONTAINS = 8,
|
|
45
|
-
NOT_CONTAINS = 9,
|
|
46
|
-
ANY_VALUE = 10
|
|
47
|
-
}
|
|
@@ -1,36 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
class NodeMsgWaitResponse {
|
|
5
|
-
}
|
|
6
|
-
exports.NodeMsgWaitResponse = NodeMsgWaitResponse;
|
|
7
|
-
class NodeMsgWaitResponseCondition {
|
|
8
|
-
}
|
|
9
|
-
exports.NodeMsgWaitResponseCondition = NodeMsgWaitResponseCondition;
|
|
3
|
+
exports.NodeMsgWaitResponseTimeType = void 0;
|
|
10
4
|
var NodeMsgWaitResponseTimeType;
|
|
11
5
|
(function (NodeMsgWaitResponseTimeType) {
|
|
12
6
|
NodeMsgWaitResponseTimeType[NodeMsgWaitResponseTimeType["MINUTES"] = 0] = "MINUTES";
|
|
13
7
|
NodeMsgWaitResponseTimeType[NodeMsgWaitResponseTimeType["HOURS"] = 1] = "HOURS";
|
|
14
8
|
NodeMsgWaitResponseTimeType[NodeMsgWaitResponseTimeType["DAYS"] = 2] = "DAYS";
|
|
15
9
|
})(NodeMsgWaitResponseTimeType || (exports.NodeMsgWaitResponseTimeType = NodeMsgWaitResponseTimeType = {}));
|
|
16
|
-
var NodeMsgWaitResponseConditionSource;
|
|
17
|
-
(function (NodeMsgWaitResponseConditionSource) {
|
|
18
|
-
NodeMsgWaitResponseConditionSource[NodeMsgWaitResponseConditionSource["TEXT"] = 0] = "TEXT";
|
|
19
|
-
NodeMsgWaitResponseConditionSource[NodeMsgWaitResponseConditionSource["CAPTION"] = 1] = "CAPTION";
|
|
20
|
-
NodeMsgWaitResponseConditionSource[NodeMsgWaitResponseConditionSource["TEXT_AND_CAPTION"] = 2] = "TEXT_AND_CAPTION";
|
|
21
|
-
NodeMsgWaitResponseConditionSource[NodeMsgWaitResponseConditionSource["MIMETYPE"] = 3] = "MIMETYPE";
|
|
22
|
-
})(NodeMsgWaitResponseConditionSource || (exports.NodeMsgWaitResponseConditionSource = NodeMsgWaitResponseConditionSource = {}));
|
|
23
|
-
var NodeMsgWaitResponseConditionOperator;
|
|
24
|
-
(function (NodeMsgWaitResponseConditionOperator) {
|
|
25
|
-
NodeMsgWaitResponseConditionOperator[NodeMsgWaitResponseConditionOperator["NULL"] = 0] = "NULL";
|
|
26
|
-
NodeMsgWaitResponseConditionOperator[NodeMsgWaitResponseConditionOperator["LESS_THAN"] = 1] = "LESS_THAN";
|
|
27
|
-
NodeMsgWaitResponseConditionOperator[NodeMsgWaitResponseConditionOperator["LESS_THAN_EQUAL"] = 2] = "LESS_THAN_EQUAL";
|
|
28
|
-
NodeMsgWaitResponseConditionOperator[NodeMsgWaitResponseConditionOperator["EQUAL"] = 3] = "EQUAL";
|
|
29
|
-
NodeMsgWaitResponseConditionOperator[NodeMsgWaitResponseConditionOperator["GREATER_THAN_EQUAL"] = 4] = "GREATER_THAN_EQUAL";
|
|
30
|
-
NodeMsgWaitResponseConditionOperator[NodeMsgWaitResponseConditionOperator["GREATER_THAN"] = 5] = "GREATER_THAN";
|
|
31
|
-
NodeMsgWaitResponseConditionOperator[NodeMsgWaitResponseConditionOperator["START_WITH"] = 6] = "START_WITH";
|
|
32
|
-
NodeMsgWaitResponseConditionOperator[NodeMsgWaitResponseConditionOperator["END_WITH"] = 7] = "END_WITH";
|
|
33
|
-
NodeMsgWaitResponseConditionOperator[NodeMsgWaitResponseConditionOperator["CONTAINS"] = 8] = "CONTAINS";
|
|
34
|
-
NodeMsgWaitResponseConditionOperator[NodeMsgWaitResponseConditionOperator["NOT_CONTAINS"] = 9] = "NOT_CONTAINS";
|
|
35
|
-
NodeMsgWaitResponseConditionOperator[NodeMsgWaitResponseConditionOperator["ANY_VALUE"] = 10] = "ANY_VALUE";
|
|
36
|
-
})(NodeMsgWaitResponseConditionOperator || (exports.NodeMsgWaitResponseConditionOperator = NodeMsgWaitResponseConditionOperator = {}));
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { NodeBase, NodeType } from "../Flow";
|
|
2
|
+
export interface NodeRedirect extends NodeBase {
|
|
3
|
+
type: NodeType.REDIRECT;
|
|
4
|
+
typeName: "redirect";
|
|
5
5
|
handles: ['onNext'];
|
|
6
|
+
category: 'action';
|
|
7
|
+
description: "Node for redirecting the flow to another node or flow.";
|
|
6
8
|
flowId?: string | '';
|
|
7
9
|
nodeId?: string | '';
|
|
8
10
|
nodeName?: string | '';
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { NodeBase, NodeType } from "../Flow";
|
|
2
|
+
export interface NodeSendEmail extends NodeBase {
|
|
3
|
+
type: NodeType.SEND_EMAIL;
|
|
4
|
+
typeName: "sendEmail";
|
|
5
5
|
handles: ['onNext'];
|
|
6
|
-
|
|
6
|
+
category: 'action';
|
|
7
|
+
description: "Node for sending emails, allowing the flow to communicate via email with specified recipients.";
|
|
7
8
|
channelId?: string | "";
|
|
8
9
|
to?: string | "";
|
|
9
10
|
subject?: string | "";
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { NodeBase, NodeType } from "../Flow";
|
|
2
|
+
export interface NodeSqlQuery extends NodeBase {
|
|
3
|
+
type: NodeType.SQL_QUERY;
|
|
4
|
+
typeName: "sqlQuery";
|
|
5
5
|
handles: ['onOk', 'onError'];
|
|
6
|
-
|
|
6
|
+
category: 'action';
|
|
7
|
+
description: "Node for executing SQL queries against a database, allowing for data retrieval, manipulation, and interaction with relational databases.";
|
|
7
8
|
dbType: SqlQueryDbType;
|
|
8
9
|
connectionString?: string | "";
|
|
9
10
|
query?: string | "";
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SqlQueryDbType =
|
|
4
|
-
class NodeSqlQuery {
|
|
5
|
-
}
|
|
6
|
-
exports.NodeSqlQuery = NodeSqlQuery;
|
|
3
|
+
exports.SqlQueryDbType = void 0;
|
|
7
4
|
var SqlQueryDbType;
|
|
8
5
|
(function (SqlQueryDbType) {
|
|
9
6
|
SqlQueryDbType[SqlQueryDbType["NONE"] = 0] = "NONE";
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { NodeBase, NodeType } from "../Flow";
|
|
2
|
+
export interface NodeStart extends NodeBase {
|
|
3
|
+
type: NodeType.START;
|
|
4
|
+
typeName: "start";
|
|
5
5
|
handles: ['onNext'];
|
|
6
|
+
category: 'trigger';
|
|
7
|
+
description: "Node that triggers the flow based on specific conditions or events, such as conversation status changes or contact updates.";
|
|
6
8
|
trigger: NodeStartTrigger;
|
|
7
9
|
filters: NodeStartCondition[];
|
|
8
10
|
onlyOnePerContact: boolean;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NodeStartConstants = exports.NodeStartCondition = exports.NodeStartTrigger =
|
|
4
|
-
class NodeStart {
|
|
5
|
-
}
|
|
6
|
-
exports.NodeStart = NodeStart;
|
|
3
|
+
exports.NodeStartConstants = exports.NodeStartCondition = exports.NodeStartTrigger = void 0;
|
|
7
4
|
var NodeStartTrigger;
|
|
8
5
|
(function (NodeStartTrigger) {
|
|
9
6
|
NodeStartTrigger[NodeStartTrigger["NULL"] = 0] = "NULL";
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { NodeBase, NodeType } from "../Flow";
|
|
2
|
+
export interface NodeTimeScheduleControl extends NodeBase {
|
|
3
|
+
type: NodeType.TIME_SCHEDULE_CONTROL;
|
|
4
|
+
typeName: "timeScheduleControl";
|
|
5
5
|
handles: ['onAfterHours', 'onHoliday', 'onTimeRange-{id}'];
|
|
6
|
-
|
|
6
|
+
category: 'action';
|
|
7
|
+
description: "Node for controlling the flow based on time schedules, such as handling after-hours, holidays, or specific time ranges.";
|
|
7
8
|
scheduleId?: string | '';
|
|
8
9
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { NodeBase, NodeType } from "../Flow";
|
|
2
|
+
export interface NodeTimeTimer extends NodeBase {
|
|
3
|
+
type: NodeType.TIME_TIMER;
|
|
4
|
+
typeName: "timeTimer";
|
|
5
5
|
handles: ['onNext'];
|
|
6
|
-
|
|
6
|
+
category: 'action';
|
|
7
|
+
description: "Node for implementing a timer that triggers after a specified duration, allowing for timed actions or delays in the flow.";
|
|
7
8
|
days?: number | 0;
|
|
8
9
|
hours?: number | 0;
|
|
9
10
|
minutes?: number | 0;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { NodeBase, NodeType } from "../Flow";
|
|
2
|
+
export interface NodeTimeWaitUntil extends NodeBase {
|
|
3
|
+
type: NodeType.TIME_WAIT_UNTIL;
|
|
4
|
+
typeName: "timeWaitUntil";
|
|
5
5
|
handles: ['onNext'];
|
|
6
|
-
|
|
6
|
+
category: 'action';
|
|
7
|
+
description: "Node for pausing the flow until a specified time or condition is met, allowing for synchronization with external events or schedules.";
|
|
7
8
|
scheduleId?: string | '';
|
|
8
9
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { NodeBase, NodeType } from '../Flow';
|
|
2
|
+
export interface NodeToolCalculator extends NodeBase {
|
|
3
|
+
type: NodeType.TOOL_GOOGLE_MAPS;
|
|
4
|
+
typeName: "toolCalculator";
|
|
5
|
+
handles: [];
|
|
6
|
+
category: 'tool';
|
|
7
|
+
description: "Tool for performing calculations, such as basic arithmetic operations, complex mathematical functions, or unit conversions.";
|
|
8
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { NodeBase, NodeType } from '../Flow';
|
|
2
|
+
export interface NodeToolTriiContacts extends NodeBase {
|
|
3
|
+
type: NodeType.TOOL_TRII_CONTACTS;
|
|
4
|
+
typeName: "toolTriiContacts";
|
|
5
|
+
handles: [];
|
|
6
|
+
category: 'tool';
|
|
7
|
+
description: "Tool for managing contacts, such as adding, editing, and searching contacts in Trii Contacts.";
|
|
8
|
+
allowAdd?: boolean | false;
|
|
9
|
+
allowEdit?: boolean | false;
|
|
10
|
+
allowSearch?: boolean | false;
|
|
11
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { NodeBase, NodeType } from '../Flow';
|
|
2
|
+
export interface NodeToolGoogleCalendar extends NodeBase {
|
|
3
|
+
type: NodeType.TOOL_GOOGLE_CALENDAR;
|
|
4
|
+
typeName: "googleCalendar";
|
|
5
|
+
handles: ['onNext'];
|
|
6
|
+
category: 'tool';
|
|
7
|
+
description: "Tool for interacting with Google Calendar, allowing for event management such as adding, editing, and deleting events.";
|
|
8
|
+
authCredentialId?: string | null;
|
|
9
|
+
eventsAdd?: boolean | false;
|
|
10
|
+
eventsEdit?: boolean | false;
|
|
11
|
+
eventsGet?: boolean | false;
|
|
12
|
+
eventsSearch?: boolean | false;
|
|
13
|
+
eventsDelete?: boolean | false;
|
|
14
|
+
calendarList?: boolean | false;
|
|
15
|
+
polygonsId?: string | null;
|
|
16
|
+
polygonsName?: string | null;
|
|
17
|
+
placeSearch?: boolean | false;
|
|
18
|
+
variables?: string | null;
|
|
19
|
+
saveAs?: string | null;
|
|
20
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { NodeBase, NodeType } from '../Flow';
|
|
2
|
+
export interface NodeToolGoogleMaps extends NodeBase {
|
|
3
|
+
type: NodeType.TOOL_GOOGLE_MAPS;
|
|
4
|
+
typeName: "googleMaps";
|
|
5
|
+
handles: ['onNext'];
|
|
6
|
+
category: 'tool';
|
|
7
|
+
polygonsEnable?: boolean | false;
|
|
8
|
+
polygonsId?: string | null;
|
|
9
|
+
polygonsName?: string | null;
|
|
10
|
+
placeSearch?: boolean | false;
|
|
11
|
+
authCredentialId?: string | null;
|
|
12
|
+
variables?: string | null;
|
|
13
|
+
saveAs?: string | null;
|
|
14
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { NodeBase, NodeType } from '../Flow';
|
|
2
|
+
export interface NodeToolMapsCheckPolygon extends NodeBase {
|
|
3
|
+
type: NodeType.TOOL_MAPS_CHECK_POLYGON;
|
|
4
|
+
typeName: "mapsCheckPolygon";
|
|
5
|
+
handles: [];
|
|
6
|
+
category: 'tool';
|
|
7
|
+
description: "Check if a point is inside a polygon defined by its ID. Useful for geofencing and location-based services.";
|
|
8
|
+
polygons: NodeToolMapsCheckPolygonItem[];
|
|
9
|
+
}
|
|
10
|
+
export interface NodeToolMapsCheckPolygonItem {
|
|
11
|
+
polygonId: string;
|
|
12
|
+
polygonName: string;
|
|
13
|
+
scheduleId?: string | null;
|
|
14
|
+
price?: number | null;
|
|
15
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { NodeBase, NodeType } from '../Flow';
|
|
2
|
+
export interface NodeToolMcpClient extends NodeBase {
|
|
3
|
+
type: NodeType.TOOL_MCP_CLIENT;
|
|
4
|
+
typeName: "toolMcpClient";
|
|
5
|
+
handles: [];
|
|
6
|
+
category: 'tool';
|
|
7
|
+
description: "Tool for MCP Client operations, such as sending messages or managing conversations.";
|
|
8
|
+
}
|
|
@@ -17,5 +17,8 @@ export * from './NodeTimeScheduleControl';
|
|
|
17
17
|
export * from './NodeTimeTimer';
|
|
18
18
|
export * from './NodeTimeWaitUntil';
|
|
19
19
|
export * from './NodeAIChatBot';
|
|
20
|
-
export * from './
|
|
21
|
-
export * from './
|
|
20
|
+
export * from './NodeToolGoogleCalendar';
|
|
21
|
+
export * from './NodeToolGoogleMaps';
|
|
22
|
+
export * from './NodeToolCalculator';
|
|
23
|
+
export * from './NodeToolMapsCheckPolygon';
|
|
24
|
+
export * from './NodeToolMcpClient';
|
|
@@ -33,5 +33,8 @@ __exportStar(require("./NodeTimeScheduleControl"), exports);
|
|
|
33
33
|
__exportStar(require("./NodeTimeTimer"), exports);
|
|
34
34
|
__exportStar(require("./NodeTimeWaitUntil"), exports);
|
|
35
35
|
__exportStar(require("./NodeAIChatBot"), exports);
|
|
36
|
-
__exportStar(require("./
|
|
37
|
-
__exportStar(require("./
|
|
36
|
+
__exportStar(require("./NodeToolGoogleCalendar"), exports);
|
|
37
|
+
__exportStar(require("./NodeToolGoogleMaps"), exports);
|
|
38
|
+
__exportStar(require("./NodeToolCalculator"), exports);
|
|
39
|
+
__exportStar(require("./NodeToolMapsCheckPolygon"), exports);
|
|
40
|
+
__exportStar(require("./NodeToolMcpClient"), exports);
|