@trii/types 2.10.481 → 2.10.483
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/Definitions.d.ts +1 -0
- package/dist/Conversations/Flows/Definitions.js +106 -13
- package/dist/Conversations/Flows/Flow.d.ts +11 -3
- package/dist/Conversations/Flows/Flow.js +4 -0
- package/dist/Conversations/Flows/Nodes/NodeContactUpdate.js +0 -5
- package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.d.ts +2 -1
- package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.js +59 -0
- package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.d.ts +2 -1
- package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.js +40 -0
- package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.d.ts +2 -1
- package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.js +71 -9
- package/dist/Conversations/Flows/Nodes/NodeFillForm.d.ts +2 -1
- package/dist/Conversations/Flows/Nodes/NodeFillForm.js +63 -0
- package/dist/Conversations/Flows/Nodes/NodeMsgReply.d.ts +3 -0
- package/dist/Conversations/Flows/Nodes/NodeMsgReply.js +123 -0
- package/dist/Conversations/Flows/Nodes/NodeMsgSend.d.ts +3 -0
- package/dist/Conversations/Flows/Nodes/NodeMsgSend.js +165 -0
- package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.d.ts +2 -1
- package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.js +116 -0
- package/dist/Conversations/Flows/Nodes/NodeRedirect.d.ts +2 -1
- package/dist/Conversations/Flows/Nodes/NodeRedirect.js +60 -0
- package/dist/Conversations/Flows/Nodes/NodeSendEmail.d.ts +2 -1
- package/dist/Conversations/Flows/Nodes/NodeSendEmail.js +78 -0
- package/dist/Conversations/Flows/Nodes/NodeSqlQuery.d.ts +2 -5
- package/dist/Conversations/Flows/Nodes/NodeSqlQuery.js +72 -7
- package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.d.ts +2 -1
- package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.js +57 -0
- package/dist/Conversations/Flows/Nodes/NodeTimeTimer.d.ts +2 -1
- package/dist/Conversations/Flows/Nodes/NodeTimeTimer.js +73 -0
- package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.d.ts +2 -1
- package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.js +48 -0
- package/dist/Conversations/Flows/Nodes/NodeToolCalculator.d.ts +2 -1
- package/dist/Conversations/Flows/Nodes/NodeToolCalculator.js +32 -0
- package/dist/Conversations/Flows/Nodes/NodeToolContacts.d.ts +2 -1
- package/dist/Conversations/Flows/Nodes/NodeToolContacts.js +54 -0
- package/dist/Conversations/Flows/Nodes/NodeToolFunction.d.ts +2 -1
- package/dist/Conversations/Flows/Nodes/NodeToolFunction.js +40 -0
- package/dist/Conversations/Flows/Nodes/NodeToolGoogleCalendar.d.ts +2 -1
- package/dist/Conversations/Flows/Nodes/NodeToolGoogleCalendar.js +82 -0
- package/dist/Conversations/Flows/Nodes/NodeToolKnowledge.d.ts +2 -1
- package/dist/Conversations/Flows/Nodes/NodeToolKnowledge.js +47 -0
- package/dist/Conversations/Flows/Nodes/NodeToolMapsCheckPolygon.d.ts +2 -1
- package/dist/Conversations/Flows/Nodes/NodeToolMapsCheckPolygon.js +54 -0
- package/dist/Conversations/Flows/Nodes/NodeToolMcpClient.d.ts +2 -1
- package/dist/Conversations/Flows/Nodes/NodeToolMcpClient.js +40 -0
- package/dist/Conversations/Flows/Nodes/index.d.ts +2 -3
- package/dist/Conversations/Flows/Nodes/index.js +2 -3
- package/package.json +1 -1
|
@@ -8,6 +8,7 @@ export declare const triggerNodeTypeList: INodeCategory[];
|
|
|
8
8
|
export declare const actionNodeTypeList: INodeCategory[];
|
|
9
9
|
export declare const toolNodeTypeList: INodeCategory[];
|
|
10
10
|
export declare const agentNodeTypeList: INodeCategory[];
|
|
11
|
+
export declare const messageNodeTypeList: INodeCategory[];
|
|
11
12
|
export interface ICategory {
|
|
12
13
|
name: string;
|
|
13
14
|
nodes: INodeCategory[];
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CategoryList = exports.agentNodeTypeList = exports.toolNodeTypeList = exports.actionNodeTypeList = exports.triggerNodeTypeList = void 0;
|
|
3
|
+
exports.CategoryList = exports.messageNodeTypeList = exports.agentNodeTypeList = exports.toolNodeTypeList = exports.actionNodeTypeList = exports.triggerNodeTypeList = void 0;
|
|
4
4
|
const Nodes_1 = require("./Nodes");
|
|
5
5
|
const NodeStart_1 = require("./Nodes/NodeStart");
|
|
6
|
+
const NodeToolContacts_1 = require("./Nodes/NodeToolContacts");
|
|
7
|
+
const NodeToolFunction_1 = require("./Nodes/NodeToolFunction");
|
|
6
8
|
exports.triggerNodeTypeList = [
|
|
7
9
|
{
|
|
8
10
|
id: 'StartNewConversation',
|
|
@@ -36,32 +38,87 @@ exports.actionNodeTypeList = [
|
|
|
36
38
|
name: 'Contact Update',
|
|
37
39
|
definition: Nodes_1.defaultNodeContactUpdate
|
|
38
40
|
},
|
|
41
|
+
{
|
|
42
|
+
id: 'ConversationAssignTo',
|
|
43
|
+
name: 'Conversation Assign To',
|
|
44
|
+
definition: Nodes_1.defaultNodeConversationAssignTo
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
id: 'ConversationFinalize',
|
|
48
|
+
name: 'Conversation Finalize',
|
|
49
|
+
definition: Nodes_1.defaultNodeConversationFinalize
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
id: 'ConversationUpdate',
|
|
53
|
+
name: 'Conversation Update',
|
|
54
|
+
definition: Nodes_1.defaultNodeConversationUpdate
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
id: 'FillForm',
|
|
58
|
+
name: 'Fill Form',
|
|
59
|
+
definition: Nodes_1.defaultNodeFillForm
|
|
60
|
+
},
|
|
39
61
|
{
|
|
40
62
|
id: 'Redirect',
|
|
41
63
|
name: 'Redirect',
|
|
42
|
-
definition:
|
|
64
|
+
definition: Nodes_1.defaultNodeRedirect
|
|
43
65
|
},
|
|
44
66
|
{
|
|
45
|
-
id: '
|
|
46
|
-
name: '
|
|
47
|
-
definition:
|
|
67
|
+
id: 'SqlQuery',
|
|
68
|
+
name: 'SQL Query',
|
|
69
|
+
definition: Nodes_1.defaultNodeSqlQuery
|
|
48
70
|
},
|
|
49
71
|
{
|
|
50
|
-
id: '
|
|
51
|
-
name: '
|
|
52
|
-
definition:
|
|
72
|
+
id: 'TimeScheduleControl',
|
|
73
|
+
name: 'Time Schedule Control',
|
|
74
|
+
definition: Nodes_1.defaultNodeTimeScheduleControl
|
|
53
75
|
},
|
|
54
76
|
{
|
|
55
|
-
id: '
|
|
56
|
-
name: '
|
|
57
|
-
definition:
|
|
77
|
+
id: 'TimeTimer',
|
|
78
|
+
name: 'Timer',
|
|
79
|
+
definition: Nodes_1.defaultNodeTimeTimer
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
id: 'WaitUntil',
|
|
83
|
+
name: 'Wait Until',
|
|
84
|
+
definition: Nodes_1.defaultNodeTimeWaitUntil
|
|
58
85
|
}
|
|
59
86
|
];
|
|
60
87
|
exports.toolNodeTypeList = [
|
|
61
88
|
{
|
|
62
89
|
id: 'Calculator',
|
|
63
|
-
name: '
|
|
64
|
-
definition:
|
|
90
|
+
name: 'Calculator',
|
|
91
|
+
definition: Nodes_1.defaultNodeToolCalculator
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
id: 'Contacts',
|
|
95
|
+
name: 'Contacts',
|
|
96
|
+
definition: NodeToolContacts_1.defaultNodeToolTriiContacts
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
id: 'Function',
|
|
100
|
+
name: 'Function',
|
|
101
|
+
definition: NodeToolFunction_1.defaultNodeToolFunction
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
id: 'GoogleCalendar',
|
|
105
|
+
name: 'Google Calendar',
|
|
106
|
+
definition: Nodes_1.defaultNodeToolGoogleCalendar
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
id: 'Knowledge',
|
|
110
|
+
name: 'Knowledge Base',
|
|
111
|
+
definition: Nodes_1.defaultNodeToolKnowledge
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
id: 'MapsCheckPolygon',
|
|
115
|
+
name: 'Maps Check Polygon',
|
|
116
|
+
definition: Nodes_1.defaultNodeToolMapsCheckPolygon
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
id: 'McpClient',
|
|
120
|
+
name: 'MCP Client',
|
|
121
|
+
definition: Nodes_1.defaultNodeToolMcpClient
|
|
65
122
|
}
|
|
66
123
|
];
|
|
67
124
|
exports.agentNodeTypeList = [
|
|
@@ -71,6 +128,38 @@ exports.agentNodeTypeList = [
|
|
|
71
128
|
definition: Nodes_1.defaultNodeNodeAIChatBot
|
|
72
129
|
}
|
|
73
130
|
];
|
|
131
|
+
exports.messageNodeTypeList = [
|
|
132
|
+
{
|
|
133
|
+
id: 'MsgReply',
|
|
134
|
+
name: 'Reply',
|
|
135
|
+
definition: Nodes_1.defaultNodeMsgTextReply
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
id: 'MsgTemplateReply',
|
|
139
|
+
name: 'Reply w/Template',
|
|
140
|
+
definition: Nodes_1.defaultNodeMsgTemplateReply
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
id: 'MsgTemplate',
|
|
144
|
+
name: 'Send Template',
|
|
145
|
+
definition: Nodes_1.defaultNodeMsgTemplate
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
id: 'MsgText',
|
|
149
|
+
name: 'Send Text',
|
|
150
|
+
definition: Nodes_1.defaultNodeMsgText
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
id: 'MsgWaitResponse',
|
|
154
|
+
name: 'Wait Response',
|
|
155
|
+
definition: Nodes_1.defaultNodeMsgWaitResponse
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
id: 'MsgSendEmail',
|
|
159
|
+
name: 'Send Email',
|
|
160
|
+
definition: Nodes_1.defaultNodeSendEmail
|
|
161
|
+
}
|
|
162
|
+
];
|
|
74
163
|
exports.CategoryList = [
|
|
75
164
|
{
|
|
76
165
|
name: 'Triggers',
|
|
@@ -87,5 +176,9 @@ exports.CategoryList = [
|
|
|
87
176
|
{
|
|
88
177
|
name: 'Agents',
|
|
89
178
|
nodes: exports.agentNodeTypeList
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
name: 'Messages',
|
|
182
|
+
nodes: exports.messageNodeTypeList
|
|
90
183
|
}
|
|
91
184
|
];
|
|
@@ -24,8 +24,11 @@ export declare enum NodeType {
|
|
|
24
24
|
START_CONTACT_FIELD_UPDATED = 15,
|
|
25
25
|
START_CONTACT_FIELD_DATES = 16,
|
|
26
26
|
START_CONTACT_EVENT_DATE = 17,
|
|
27
|
+
MSG_TEMPLATE = 20,
|
|
27
28
|
MSG_TEXT = 21,
|
|
28
29
|
MSG_WAIT_RESPONSE = 22,
|
|
30
|
+
MSG_TEMPLATE_REPLY = 23,
|
|
31
|
+
MSG_TEXT_REPLY = 24,
|
|
29
32
|
SQL_QUERY = 31,
|
|
30
33
|
API = 32,
|
|
31
34
|
SEND_EMAIL = 33,
|
|
@@ -48,10 +51,11 @@ export declare enum NodeType {
|
|
|
48
51
|
TOOL_MCP_CLIENT = 204,
|
|
49
52
|
TOOL_KNOWLEDGE = 205,
|
|
50
53
|
TOOL_FUNCTION = 206,
|
|
54
|
+
TOOL_CALCULATOR = 207,
|
|
51
55
|
TOOL_GOOGLE_CALENDAR = 251,
|
|
52
56
|
TOOL_GOOGLE_MAPS = 252
|
|
53
57
|
}
|
|
54
|
-
export type NodeCategory = 'trigger' | 'action' | 'tool' | 'agent';
|
|
58
|
+
export type NodeCategory = 'trigger' | 'action' | 'tool' | 'agent' | 'message';
|
|
55
59
|
export interface IReactFlowNode {
|
|
56
60
|
id: string;
|
|
57
61
|
type: NodeType;
|
|
@@ -114,9 +118,13 @@ export interface INodeHandle {
|
|
|
114
118
|
type: 'source' | 'target';
|
|
115
119
|
position: 'left' | 'right' | 'top' | 'bottom';
|
|
116
120
|
/**
|
|
117
|
-
* Si permite múltiples conexiones
|
|
121
|
+
* Si un handle del tipo (source) permite múltiples conexiones salientes.
|
|
118
122
|
*/
|
|
119
|
-
multiple?: boolean;
|
|
123
|
+
multiple?: boolean | false;
|
|
124
|
+
/**
|
|
125
|
+
* Si un handle de tipo fuente (source) muestra el nombre definido en la UI
|
|
126
|
+
*/
|
|
127
|
+
showName?: boolean | true;
|
|
120
128
|
}
|
|
121
129
|
export interface INodeProperty {
|
|
122
130
|
/**
|
|
@@ -11,8 +11,11 @@ var NodeType;
|
|
|
11
11
|
NodeType[NodeType["START_CONTACT_FIELD_UPDATED"] = 15] = "START_CONTACT_FIELD_UPDATED";
|
|
12
12
|
NodeType[NodeType["START_CONTACT_FIELD_DATES"] = 16] = "START_CONTACT_FIELD_DATES";
|
|
13
13
|
NodeType[NodeType["START_CONTACT_EVENT_DATE"] = 17] = "START_CONTACT_EVENT_DATE";
|
|
14
|
+
NodeType[NodeType["MSG_TEMPLATE"] = 20] = "MSG_TEMPLATE";
|
|
14
15
|
NodeType[NodeType["MSG_TEXT"] = 21] = "MSG_TEXT";
|
|
15
16
|
NodeType[NodeType["MSG_WAIT_RESPONSE"] = 22] = "MSG_WAIT_RESPONSE";
|
|
17
|
+
NodeType[NodeType["MSG_TEMPLATE_REPLY"] = 23] = "MSG_TEMPLATE_REPLY";
|
|
18
|
+
NodeType[NodeType["MSG_TEXT_REPLY"] = 24] = "MSG_TEXT_REPLY";
|
|
16
19
|
NodeType[NodeType["SQL_QUERY"] = 31] = "SQL_QUERY";
|
|
17
20
|
NodeType[NodeType["API"] = 32] = "API";
|
|
18
21
|
NodeType[NodeType["SEND_EMAIL"] = 33] = "SEND_EMAIL";
|
|
@@ -35,6 +38,7 @@ var NodeType;
|
|
|
35
38
|
NodeType[NodeType["TOOL_MCP_CLIENT"] = 204] = "TOOL_MCP_CLIENT";
|
|
36
39
|
NodeType[NodeType["TOOL_KNOWLEDGE"] = 205] = "TOOL_KNOWLEDGE";
|
|
37
40
|
NodeType[NodeType["TOOL_FUNCTION"] = 206] = "TOOL_FUNCTION";
|
|
41
|
+
NodeType[NodeType["TOOL_CALCULATOR"] = 207] = "TOOL_CALCULATOR";
|
|
38
42
|
NodeType[NodeType["TOOL_GOOGLE_CALENDAR"] = 251] = "TOOL_GOOGLE_CALENDAR";
|
|
39
43
|
NodeType[NodeType["TOOL_GOOGLE_MAPS"] = 252] = "TOOL_GOOGLE_MAPS";
|
|
40
44
|
})(NodeType || (exports.NodeType = NodeType = {}));
|
|
@@ -2,11 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.defaultNodeContactUpdate = void 0;
|
|
4
4
|
const Flow_1 = require("../Flow");
|
|
5
|
-
var NodeContactUpdateAction;
|
|
6
|
-
(function (NodeContactUpdateAction) {
|
|
7
|
-
NodeContactUpdateAction[NodeContactUpdateAction["REPLACE"] = 0] = "REPLACE";
|
|
8
|
-
NodeContactUpdateAction[NodeContactUpdateAction["ADD"] = 1] = "ADD";
|
|
9
|
-
})(NodeContactUpdateAction || (NodeContactUpdateAction = {}));
|
|
10
5
|
exports.defaultNodeContactUpdate = {
|
|
11
6
|
id: "NodeContactUpdate-{uid}",
|
|
12
7
|
type: Flow_1.NodeType.CONTACT_UPDATE,
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { INode } from "../Flow";
|
|
2
|
+
export declare const defaultNodeConversationAssignTo: INode;
|
|
@@ -1,2 +1,61 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.defaultNodeConversationAssignTo = void 0;
|
|
4
|
+
const Flow_1 = require("../Flow");
|
|
5
|
+
exports.defaultNodeConversationAssignTo = {
|
|
6
|
+
id: "NodeConversationAssignTo-{uid}",
|
|
7
|
+
type: Flow_1.NodeType.CONVERSATION_ASSIGN_TO,
|
|
8
|
+
category: 'action',
|
|
9
|
+
description: "Node for assigning the conversation to a specific user or group, allowing for targeted management of conversations within the system.",
|
|
10
|
+
tags: [],
|
|
11
|
+
version: 1,
|
|
12
|
+
handlesIn: [
|
|
13
|
+
{
|
|
14
|
+
id: "onStart-{node.id}",
|
|
15
|
+
type: 'target',
|
|
16
|
+
position: 'left',
|
|
17
|
+
name: "IN",
|
|
18
|
+
nameKey: 'NODE_HANDLE_IN'
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
handlesOut: [
|
|
22
|
+
{
|
|
23
|
+
id: "onNext-{node.id}",
|
|
24
|
+
type: 'source',
|
|
25
|
+
position: 'right',
|
|
26
|
+
name: "Next",
|
|
27
|
+
nameKey: 'NODE_HANDLE_NEXT'
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
name: "Conversation Assign To",
|
|
31
|
+
nameKey: 'NODE_CONVERSATION_ASSIGN_TO',
|
|
32
|
+
enableStatics: false,
|
|
33
|
+
properties: [
|
|
34
|
+
{
|
|
35
|
+
type: 'string',
|
|
36
|
+
id: 'userId',
|
|
37
|
+
label: 'User ID',
|
|
38
|
+
labelKey: 'NODE_CONVERSATION_ASSIGN_TO_USER_ID',
|
|
39
|
+
optional: true,
|
|
40
|
+
default: '',
|
|
41
|
+
placeholder: 'Enter the user ID to assign the conversation to'
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
type: 'string',
|
|
45
|
+
id: 'groupId',
|
|
46
|
+
label: 'Group ID',
|
|
47
|
+
labelKey: 'NODE_CONVERSATION_ASSIGN_TO_GROUP_ID',
|
|
48
|
+
optional: true,
|
|
49
|
+
default: '',
|
|
50
|
+
placeholder: 'Enter the group ID to assign the conversation to'
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
values: undefined,
|
|
54
|
+
color: '#00bcd4', // Cyan color for the start node
|
|
55
|
+
icon: '',
|
|
56
|
+
badge: undefined,
|
|
57
|
+
hideInput: true,
|
|
58
|
+
hideOutput: false,
|
|
59
|
+
author: '',
|
|
60
|
+
documentation: '',
|
|
61
|
+
};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { INode } from "../Flow";
|
|
2
|
+
export declare const defaultNodeConversationFinalize: INode;
|
|
@@ -1,2 +1,42 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.defaultNodeConversationFinalize = void 0;
|
|
4
|
+
const Flow_1 = require("../Flow");
|
|
5
|
+
exports.defaultNodeConversationFinalize = {
|
|
6
|
+
id: "NodeConversationFinalize-{uid}",
|
|
7
|
+
type: Flow_1.NodeType.CONVERSATION_FINALIZE,
|
|
8
|
+
category: 'action',
|
|
9
|
+
description: "Node for finalizing the conversation, marking it as complete and potentially triggering cleanup or follow-up actions.",
|
|
10
|
+
tags: [],
|
|
11
|
+
version: 1,
|
|
12
|
+
handlesIn: [
|
|
13
|
+
{
|
|
14
|
+
id: "onStart-{node.id}",
|
|
15
|
+
type: 'target',
|
|
16
|
+
position: 'left',
|
|
17
|
+
name: "IN",
|
|
18
|
+
nameKey: 'NODE_HANDLE_IN'
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
handlesOut: [
|
|
22
|
+
{
|
|
23
|
+
id: "onNext-{node.id}",
|
|
24
|
+
type: 'source',
|
|
25
|
+
position: 'right',
|
|
26
|
+
name: "Next",
|
|
27
|
+
nameKey: 'NODE_HANDLE_NEXT'
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
name: "Conversation Finalize",
|
|
31
|
+
nameKey: 'NODE_CONVERSATION_FINALIZE',
|
|
32
|
+
enableStatics: false,
|
|
33
|
+
properties: [],
|
|
34
|
+
values: undefined,
|
|
35
|
+
color: '#00bcd4', // Cyan color for the start node
|
|
36
|
+
icon: '',
|
|
37
|
+
badge: undefined,
|
|
38
|
+
hideInput: true,
|
|
39
|
+
hideOutput: false,
|
|
40
|
+
author: '',
|
|
41
|
+
documentation: '',
|
|
42
|
+
};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { INode } from "../Flow";
|
|
2
|
+
export declare const defaultNodeConversationUpdate: INode;
|
|
@@ -1,11 +1,73 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
3
|
+
exports.defaultNodeConversationUpdate = void 0;
|
|
4
|
+
const Flow_1 = require("../Flow");
|
|
5
|
+
exports.defaultNodeConversationUpdate = {
|
|
6
|
+
id: "NodeConversationUpdate-{uid}",
|
|
7
|
+
type: Flow_1.NodeType.CONVERSATION_UPDATE,
|
|
8
|
+
category: 'action',
|
|
9
|
+
description: "Node for updating conversation details, such as tags or metadata, to manage and organize conversations effectively.",
|
|
10
|
+
tags: [],
|
|
11
|
+
version: 1,
|
|
12
|
+
handlesIn: [
|
|
13
|
+
{
|
|
14
|
+
id: "onStart-{node.id}",
|
|
15
|
+
type: 'target',
|
|
16
|
+
position: 'left',
|
|
17
|
+
name: "IN",
|
|
18
|
+
nameKey: 'NODE_HANDLE_IN'
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
handlesOut: [
|
|
22
|
+
{
|
|
23
|
+
id: "onNext-{node.id}",
|
|
24
|
+
type: 'source',
|
|
25
|
+
position: 'right',
|
|
26
|
+
name: "Next",
|
|
27
|
+
nameKey: 'NODE_HANDLE_NEXT'
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
name: "Conversation Update",
|
|
31
|
+
nameKey: 'NODE_CONVERSATION_UPDATE',
|
|
32
|
+
enableStatics: false,
|
|
33
|
+
properties: [
|
|
34
|
+
{
|
|
35
|
+
type: 'options',
|
|
36
|
+
id: 'fieldId',
|
|
37
|
+
label: 'Field to Update',
|
|
38
|
+
labelKey: 'NODE_CONVERSATION_UPDATE_FIELD_ID',
|
|
39
|
+
optional: false,
|
|
40
|
+
options: [
|
|
41
|
+
{ id: 'tag', label: 'Tag' }
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
type: 'options',
|
|
46
|
+
id: 'action',
|
|
47
|
+
label: 'Action',
|
|
48
|
+
labelKey: 'NODE_CONVERSATION_UPDATE_ACTION',
|
|
49
|
+
optional: false,
|
|
50
|
+
options: [
|
|
51
|
+
{ id: 'replace', label: 'Replace' },
|
|
52
|
+
{ id: 'add', label: 'Add' }
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
type: 'string',
|
|
57
|
+
id: 'value',
|
|
58
|
+
label: 'Value',
|
|
59
|
+
labelKey: 'NODE_CONVERSATION_UPDATE_VALUE',
|
|
60
|
+
optional: false,
|
|
61
|
+
default: '',
|
|
62
|
+
placeholder: 'Enter the value'
|
|
63
|
+
}
|
|
64
|
+
],
|
|
65
|
+
values: undefined,
|
|
66
|
+
color: '#00bcd4', // Cyan color for the start node
|
|
67
|
+
icon: '',
|
|
68
|
+
badge: undefined,
|
|
69
|
+
hideInput: true,
|
|
70
|
+
hideOutput: false,
|
|
71
|
+
author: '',
|
|
72
|
+
documentation: '',
|
|
73
|
+
};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { INode } from "../Flow";
|
|
2
|
+
export declare const defaultNodeFillForm: INode;
|
|
@@ -1,2 +1,65 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.defaultNodeFillForm = void 0;
|
|
4
|
+
const Flow_1 = require("../Flow");
|
|
5
|
+
// interface _NodeFillForm extends INode {
|
|
6
|
+
// type: NodeType.FILL_FORM;
|
|
7
|
+
// handles: ['onNext'];
|
|
8
|
+
// category: 'action';
|
|
9
|
+
// description: "Node for filling out forms, allowing the flow to collect structured data from users or systems.";
|
|
10
|
+
// formId?: string | "";
|
|
11
|
+
// responses: FillFormKeyValue[];
|
|
12
|
+
// }
|
|
13
|
+
// interface FillFormKeyValue{
|
|
14
|
+
// questionId: string | "";
|
|
15
|
+
// question: string | "";
|
|
16
|
+
// responseValue: string | "";
|
|
17
|
+
// }
|
|
18
|
+
exports.defaultNodeFillForm = {
|
|
19
|
+
id: "NodeFillForm-{uid}",
|
|
20
|
+
type: Flow_1.NodeType.FILL_FORM,
|
|
21
|
+
category: 'action',
|
|
22
|
+
description: "Node for filling out forms, allowing the flow to collect structured data from users or systems.",
|
|
23
|
+
tags: [],
|
|
24
|
+
version: 1,
|
|
25
|
+
handlesIn: [
|
|
26
|
+
{
|
|
27
|
+
id: "onStart-{node.id}",
|
|
28
|
+
type: 'target',
|
|
29
|
+
position: 'left',
|
|
30
|
+
name: "IN",
|
|
31
|
+
nameKey: 'NODE_HANDLE_IN'
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
handlesOut: [
|
|
35
|
+
{
|
|
36
|
+
id: "onNext-{node.id}",
|
|
37
|
+
type: 'source',
|
|
38
|
+
position: 'right',
|
|
39
|
+
name: "Next",
|
|
40
|
+
nameKey: 'NODE_HANDLE_NEXT'
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
name: "Conversation Update",
|
|
44
|
+
nameKey: 'NODE_CONVERSATION_UPDATE',
|
|
45
|
+
enableStatics: false,
|
|
46
|
+
properties: [
|
|
47
|
+
{
|
|
48
|
+
type: 'string',
|
|
49
|
+
id: 'formId',
|
|
50
|
+
label: 'Form ID',
|
|
51
|
+
labelKey: 'NODE_FILL_FORM_FORM_ID',
|
|
52
|
+
optional: false,
|
|
53
|
+
default: '',
|
|
54
|
+
placeholder: 'Enter the form ID'
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
values: undefined,
|
|
58
|
+
color: '#00bcd4', // Cyan color for the start node
|
|
59
|
+
icon: '',
|
|
60
|
+
badge: undefined,
|
|
61
|
+
hideInput: true,
|
|
62
|
+
hideOutput: false,
|
|
63
|
+
author: '',
|
|
64
|
+
documentation: '',
|
|
65
|
+
};
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.defaultNodeMsgTemplateReply = exports.defaultNodeMsgTextReply = void 0;
|
|
4
|
+
const Flow_1 = require("../Flow");
|
|
5
|
+
exports.defaultNodeMsgTextReply = {
|
|
6
|
+
id: "NodeMsgTextReply-{uid}",
|
|
7
|
+
type: Flow_1.NodeType.MSG_TEXT_REPLY,
|
|
8
|
+
category: 'message',
|
|
9
|
+
description: "Node for sending text messages, images, videos, or files to a channel",
|
|
10
|
+
tags: [],
|
|
11
|
+
version: 1,
|
|
12
|
+
handlesIn: [
|
|
13
|
+
{
|
|
14
|
+
id: "onStart-{node.id}",
|
|
15
|
+
type: 'target',
|
|
16
|
+
position: 'left',
|
|
17
|
+
name: "IN",
|
|
18
|
+
nameKey: 'NODE_HANDLE_IN'
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
handlesOut: [
|
|
22
|
+
{
|
|
23
|
+
id: "onNext-{node.id}",
|
|
24
|
+
type: 'source',
|
|
25
|
+
position: 'right',
|
|
26
|
+
name: "Next",
|
|
27
|
+
nameKey: 'NODE_HANDLE_NEXT'
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
name: "Reply Message",
|
|
31
|
+
nameKey: 'NODE_MSG_TEXT_REPLY',
|
|
32
|
+
enableStatics: false,
|
|
33
|
+
properties: [
|
|
34
|
+
{
|
|
35
|
+
type: 'options',
|
|
36
|
+
id: 'msgType',
|
|
37
|
+
label: 'Message Type',
|
|
38
|
+
labelKey: 'NODE_MSG_TEXT_TYPE',
|
|
39
|
+
optional: false,
|
|
40
|
+
options: [
|
|
41
|
+
{ id: 'TEXT', label: 'Text' },
|
|
42
|
+
{ id: 'IMAGE', label: 'Image' },
|
|
43
|
+
{ id: 'VIDEO', label: 'Video' },
|
|
44
|
+
{ id: 'FILE', label: 'File' }
|
|
45
|
+
],
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
id: 'message',
|
|
49
|
+
label: 'Message',
|
|
50
|
+
labelKey: 'NODE_MSG_TEXT_MESSAGE',
|
|
51
|
+
type: 'string',
|
|
52
|
+
optional: false,
|
|
53
|
+
default: '',
|
|
54
|
+
placeholder: 'Enter the message',
|
|
55
|
+
rows: 5,
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
id: 'caption',
|
|
59
|
+
label: 'Caption',
|
|
60
|
+
labelKey: 'NODE_MSG_TEXT_CAPTION',
|
|
61
|
+
type: 'string',
|
|
62
|
+
optional: false,
|
|
63
|
+
default: '',
|
|
64
|
+
placeholder: 'Enter the caption'
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
values: undefined,
|
|
68
|
+
color: '#00bcd4', // Cyan color for the start node
|
|
69
|
+
icon: '',
|
|
70
|
+
badge: undefined,
|
|
71
|
+
hideInput: true,
|
|
72
|
+
hideOutput: false,
|
|
73
|
+
author: '',
|
|
74
|
+
documentation: '',
|
|
75
|
+
};
|
|
76
|
+
exports.defaultNodeMsgTemplateReply = {
|
|
77
|
+
id: "NodeMsgTemplateReply-{uid}",
|
|
78
|
+
type: Flow_1.NodeType.MSG_TEMPLATE_REPLY,
|
|
79
|
+
category: 'message',
|
|
80
|
+
description: "Node for sending text messages, images, videos, or files to a channel",
|
|
81
|
+
tags: [],
|
|
82
|
+
version: 1,
|
|
83
|
+
handlesIn: [
|
|
84
|
+
{
|
|
85
|
+
id: "onStart-{node.id}",
|
|
86
|
+
type: 'target',
|
|
87
|
+
position: 'left',
|
|
88
|
+
name: "IN",
|
|
89
|
+
nameKey: 'NODE_HANDLE_IN'
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
handlesOut: [
|
|
93
|
+
{
|
|
94
|
+
id: "onNext-{node.id}",
|
|
95
|
+
type: 'source',
|
|
96
|
+
position: 'right',
|
|
97
|
+
name: "Next",
|
|
98
|
+
nameKey: 'NODE_HANDLE_NEXT'
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
name: "Reply Message w/Template",
|
|
102
|
+
nameKey: 'NODE_MSG_TEMPLATE_REPLY',
|
|
103
|
+
enableStatics: false,
|
|
104
|
+
properties: [
|
|
105
|
+
{
|
|
106
|
+
id: 'templateId',
|
|
107
|
+
label: 'Template ID',
|
|
108
|
+
labelKey: 'NODE_MSG_TEXT_TEMPLATE_ID',
|
|
109
|
+
type: 'string',
|
|
110
|
+
optional: false,
|
|
111
|
+
default: '',
|
|
112
|
+
placeholder: 'Enter the template ID',
|
|
113
|
+
},
|
|
114
|
+
],
|
|
115
|
+
values: undefined,
|
|
116
|
+
color: '#00bcd4', // Cyan color for the start node
|
|
117
|
+
icon: '',
|
|
118
|
+
badge: undefined,
|
|
119
|
+
hideInput: true,
|
|
120
|
+
hideOutput: false,
|
|
121
|
+
author: '',
|
|
122
|
+
documentation: '',
|
|
123
|
+
};
|