@trii/types 2.10.479 → 2.10.481
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.js +14 -3
- package/dist/Conversations/Flows/Flow.d.ts +4 -0
- package/dist/Conversations/Flows/Nodes/NodeAIChatBot.js +124 -15
- package/dist/Conversations/Flows/Nodes/NodeApi.d.ts +2 -1
- package/dist/Conversations/Flows/Nodes/NodeApi.js +175 -0
- package/dist/Conversations/Flows/Nodes/NodeConditional.d.ts +2 -1
- package/dist/Conversations/Flows/Nodes/NodeConditional.js +94 -16
- package/dist/Conversations/Flows/Nodes/NodeContactSearch.d.ts +2 -1
- package/dist/Conversations/Flows/Nodes/NodeContactSearch.js +62 -0
- package/dist/Conversations/Flows/Nodes/NodeContactUpdate.d.ts +2 -1
- package/dist/Conversations/Flows/Nodes/NodeContactUpdate.js +62 -0
- package/dist/Conversations/Flows/Nodes/NodeStart.js +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CategoryList = exports.agentNodeTypeList = exports.toolNodeTypeList = exports.actionNodeTypeList = exports.triggerNodeTypeList = void 0;
|
|
4
|
+
const Nodes_1 = require("./Nodes");
|
|
4
5
|
const NodeStart_1 = require("./Nodes/NodeStart");
|
|
5
6
|
exports.triggerNodeTypeList = [
|
|
6
7
|
{
|
|
@@ -18,12 +19,22 @@ exports.actionNodeTypeList = [
|
|
|
18
19
|
{
|
|
19
20
|
id: 'Api',
|
|
20
21
|
name: 'API Call',
|
|
21
|
-
definition:
|
|
22
|
+
definition: Nodes_1.defaultNodeApi
|
|
22
23
|
},
|
|
23
24
|
{
|
|
24
25
|
id: 'Conditional',
|
|
25
26
|
name: 'Conditional',
|
|
26
|
-
definition:
|
|
27
|
+
definition: Nodes_1.defaultNodeConditional
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
id: 'ContactSearch',
|
|
31
|
+
name: 'Contact Search',
|
|
32
|
+
definition: Nodes_1.defaultNodeContactSearch
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
id: 'ContactUpdate',
|
|
36
|
+
name: 'Contact Update',
|
|
37
|
+
definition: Nodes_1.defaultNodeContactUpdate
|
|
27
38
|
},
|
|
28
39
|
{
|
|
29
40
|
id: 'Redirect',
|
|
@@ -57,7 +68,7 @@ exports.agentNodeTypeList = [
|
|
|
57
68
|
{
|
|
58
69
|
id: 'AIChatBot',
|
|
59
70
|
name: 'AI Chat Bot',
|
|
60
|
-
definition:
|
|
71
|
+
definition: Nodes_1.defaultNodeNodeAIChatBot
|
|
61
72
|
}
|
|
62
73
|
];
|
|
63
74
|
exports.CategoryList = [
|
|
@@ -113,6 +113,10 @@ export interface INodeHandle {
|
|
|
113
113
|
nameKey?: string;
|
|
114
114
|
type: 'source' | 'target';
|
|
115
115
|
position: 'left' | 'right' | 'top' | 'bottom';
|
|
116
|
+
/**
|
|
117
|
+
* Si permite múltiples conexiones
|
|
118
|
+
*/
|
|
119
|
+
multiple?: boolean;
|
|
116
120
|
}
|
|
117
121
|
export interface INodeProperty {
|
|
118
122
|
/**
|
|
@@ -3,42 +3,151 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.defaultNodeNodeAIChatBot = void 0;
|
|
4
4
|
const Flow_1 = require("../Flow");
|
|
5
5
|
exports.defaultNodeNodeAIChatBot = {
|
|
6
|
-
id: "
|
|
6
|
+
id: "NodeNodeAIChatBot-{uid}",
|
|
7
7
|
type: Flow_1.NodeType.AI_CHATBOT,
|
|
8
|
-
category: '
|
|
9
|
-
description: "
|
|
8
|
+
category: 'agent',
|
|
9
|
+
description: "Node for AI Chat Bot operations, such as sending messages or managing conversations with an AI model.",
|
|
10
10
|
tags: [],
|
|
11
11
|
version: 1,
|
|
12
12
|
handlesIn: [
|
|
13
13
|
{
|
|
14
|
+
id: "onStart-{node.id}",
|
|
14
15
|
type: 'target',
|
|
15
16
|
position: 'left',
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
name: "IN",
|
|
18
|
+
nameKey: 'NODE_AICHATBOT_IN'
|
|
18
19
|
}
|
|
19
20
|
],
|
|
20
21
|
handlesOut: [
|
|
21
22
|
{
|
|
22
|
-
id: "
|
|
23
|
+
id: "aiTools-{node.id}",
|
|
23
24
|
type: 'source',
|
|
24
25
|
position: 'right',
|
|
25
|
-
name: "
|
|
26
|
-
nameKey: '
|
|
26
|
+
name: "Tools",
|
|
27
|
+
nameKey: 'NODE_AICHATBOT_TOOLS',
|
|
28
|
+
multiple: true
|
|
27
29
|
},
|
|
28
30
|
{
|
|
29
|
-
id: "
|
|
31
|
+
id: "aiTransitions-{node.id}",
|
|
32
|
+
type: 'source',
|
|
33
|
+
position: 'right',
|
|
34
|
+
name: "Transitions",
|
|
35
|
+
nameKey: 'NODE_AICHATBOT_TRANSITIONS',
|
|
36
|
+
multiple: true
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
id: "aiError-{node.id}",
|
|
30
40
|
type: 'source',
|
|
31
41
|
position: 'right',
|
|
32
42
|
name: "Error",
|
|
33
|
-
nameKey: '
|
|
43
|
+
nameKey: 'NODE_AICHATBOT_ERROR'
|
|
34
44
|
}
|
|
35
45
|
],
|
|
36
|
-
name: "
|
|
37
|
-
nameKey: '
|
|
46
|
+
name: "AI Agent",
|
|
47
|
+
nameKey: 'NODE_AICHATBOT_NAME',
|
|
38
48
|
enableStatics: false,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
49
|
+
properties: [
|
|
50
|
+
{
|
|
51
|
+
type: 'string',
|
|
52
|
+
id: 'prompt',
|
|
53
|
+
label: 'Prompt',
|
|
54
|
+
labelKey: 'NODE_AICHATBOT_PROMPT',
|
|
55
|
+
optional: false,
|
|
56
|
+
default: '',
|
|
57
|
+
placeholder: 'Enter the prompt for the AI model',
|
|
58
|
+
rows: 3
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
type: 'string',
|
|
62
|
+
id: 'llmProvider',
|
|
63
|
+
label: 'LLM Provider',
|
|
64
|
+
labelKey: 'NODE_AICHATBOT_LLM_PROVIDER',
|
|
65
|
+
optional: false,
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
type: 'string',
|
|
69
|
+
id: 'llmModel',
|
|
70
|
+
label: 'LLM Model',
|
|
71
|
+
labelKey: 'NODE_AICHATBOT_LLM_MODEL',
|
|
72
|
+
optional: true,
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
type: 'string',
|
|
76
|
+
id: 'credentialId',
|
|
77
|
+
label: 'Credential ID',
|
|
78
|
+
labelKey: 'NODE_AICHATBOT_CREDENTIAL_ID',
|
|
79
|
+
optional: true,
|
|
80
|
+
default: '',
|
|
81
|
+
placeholder: 'API Key for authentication',
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
type: 'number',
|
|
85
|
+
id: 'llmTemperature',
|
|
86
|
+
label: 'LLM Temperature',
|
|
87
|
+
labelKey: 'NODE_AICHATBOT_LLM_TEMPERATURE',
|
|
88
|
+
optional: true,
|
|
89
|
+
default: 0.7,
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
type: 'number',
|
|
93
|
+
id: 'llmMaxTokens',
|
|
94
|
+
label: 'LLM Max Tokens',
|
|
95
|
+
labelKey: 'NODE_AICHATBOT_LLM_MAX_TOKENS',
|
|
96
|
+
optional: true,
|
|
97
|
+
default: 1000,
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
type: 'number',
|
|
101
|
+
id: 'llmTopP',
|
|
102
|
+
label: 'LLM Top P',
|
|
103
|
+
labelKey: 'NODE_AICHATBOT_LLM_TOP_P',
|
|
104
|
+
optional: true,
|
|
105
|
+
default: 1,
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
type: 'number',
|
|
109
|
+
id: 'retryCount',
|
|
110
|
+
label: 'Retry Count',
|
|
111
|
+
labelKey: 'NODE_AICHATBOT_RETRY_COUNT',
|
|
112
|
+
optional: true,
|
|
113
|
+
default: 3,
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
type: 'number',
|
|
117
|
+
id: 'retryDelay',
|
|
118
|
+
label: 'Retry Delay (ms)',
|
|
119
|
+
labelKey: 'NODE_AICHATBOT_RETRY_DELAY_MS',
|
|
120
|
+
optional: true,
|
|
121
|
+
default: 1000,
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
type: 'tabs',
|
|
125
|
+
id: 'globalNodeTab',
|
|
126
|
+
label: 'Global Node Settings',
|
|
127
|
+
labelKey: 'NODE_AICHATBOT_GLOBAL_NODE_TAB',
|
|
128
|
+
optional: true,
|
|
129
|
+
tabs: [
|
|
130
|
+
{
|
|
131
|
+
type: 'boolean',
|
|
132
|
+
id: 'globalNode',
|
|
133
|
+
label: 'Global Node',
|
|
134
|
+
labelKey: 'NODE_AICHATBOT_GLOBAL_NODE',
|
|
135
|
+
optional: true,
|
|
136
|
+
default: false,
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
type: 'string',
|
|
140
|
+
id: 'globalNodeCondition',
|
|
141
|
+
label: 'Global Node Condition',
|
|
142
|
+
labelKey: 'NODE_AICHATBOT_GLOBAL_NODE_CONDITION',
|
|
143
|
+
optional: true,
|
|
144
|
+
default: '',
|
|
145
|
+
placeholder: 'Condition for global node execution'
|
|
146
|
+
}
|
|
147
|
+
]
|
|
148
|
+
}
|
|
149
|
+
],
|
|
150
|
+
values: undefined,
|
|
42
151
|
color: '#00bcd4', // Cyan color for the start node
|
|
43
152
|
icon: '',
|
|
44
153
|
badge: undefined,
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { INode } from "../Flow";
|
|
2
|
+
export declare const defaultNodeApi: INode;
|
|
@@ -1,2 +1,177 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.defaultNodeApi = void 0;
|
|
4
|
+
const Flow_1 = require("../Flow");
|
|
5
|
+
exports.defaultNodeApi = {
|
|
6
|
+
id: "NodeApi-{uid}",
|
|
7
|
+
type: Flow_1.NodeType.API,
|
|
8
|
+
category: 'action',
|
|
9
|
+
description: "Node for making API calls, allowing for dynamic interactions with external services.",
|
|
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_API_IN'
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
handlesOut: [
|
|
22
|
+
{
|
|
23
|
+
id: "onNext-{node.id}",
|
|
24
|
+
type: 'source',
|
|
25
|
+
position: 'right',
|
|
26
|
+
name: "Next",
|
|
27
|
+
nameKey: 'NODE_API_NEXT'
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
name: "API Node",
|
|
31
|
+
nameKey: 'NODE_API_NAME',
|
|
32
|
+
enableStatics: false,
|
|
33
|
+
properties: [
|
|
34
|
+
{
|
|
35
|
+
type: 'string',
|
|
36
|
+
id: 'url',
|
|
37
|
+
label: 'URL',
|
|
38
|
+
labelKey: 'NODE_API_URL',
|
|
39
|
+
optional: false,
|
|
40
|
+
default: '',
|
|
41
|
+
placeholder: 'Enter the URL for the API endpoint'
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
type: 'options',
|
|
45
|
+
id: 'method',
|
|
46
|
+
label: 'Method',
|
|
47
|
+
labelKey: 'NODE_API_METHOD',
|
|
48
|
+
optional: false,
|
|
49
|
+
default: 'GET',
|
|
50
|
+
options: [
|
|
51
|
+
{ id: 'GET', label: 'GET' },
|
|
52
|
+
{ id: 'POST', label: 'POST' },
|
|
53
|
+
{ id: 'PUT', label: 'PUT' },
|
|
54
|
+
{ id: 'DELETE', label: 'DELETE' },
|
|
55
|
+
{ id: 'PATCH', label: 'PATCH' },
|
|
56
|
+
{ id: 'HEAD', label: 'HEAD' },
|
|
57
|
+
{ id: 'OPTIONS', label: 'OPTIONS' }
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
type: 'options',
|
|
62
|
+
id: 'authType',
|
|
63
|
+
label: 'Authentication Type',
|
|
64
|
+
labelKey: 'NODE_API_AUTH_TYPE',
|
|
65
|
+
optional: true,
|
|
66
|
+
default: 'NONE',
|
|
67
|
+
options: [
|
|
68
|
+
{ id: 'NONE', label: 'None' },
|
|
69
|
+
{ id: 'BASIC', label: 'Basic Auth' },
|
|
70
|
+
{ id: 'API_KEY', label: 'API Key' },
|
|
71
|
+
{ id: 'BEARER', label: 'Bearer Token' }
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
type: 'array',
|
|
76
|
+
id: 'authBasic',
|
|
77
|
+
label: 'Basic Authentication',
|
|
78
|
+
labelKey: 'NODE_API_AUTH_BASIC',
|
|
79
|
+
show: {
|
|
80
|
+
authType: 'BASIC'
|
|
81
|
+
},
|
|
82
|
+
optional: true,
|
|
83
|
+
array: [
|
|
84
|
+
{
|
|
85
|
+
type: 'string',
|
|
86
|
+
id: 'username',
|
|
87
|
+
label: 'Username',
|
|
88
|
+
labelKey: 'NODE_API_AUTH_BASIC_USERNAME',
|
|
89
|
+
default: '',
|
|
90
|
+
optional: false
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
type: 'string',
|
|
94
|
+
id: 'password',
|
|
95
|
+
label: 'Password',
|
|
96
|
+
labelKey: 'NODE_API_AUTH_BASIC_PASSWORD',
|
|
97
|
+
default: '',
|
|
98
|
+
optional: false
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
type: 'array',
|
|
104
|
+
id: 'authApiKey',
|
|
105
|
+
label: 'API Key Authentication',
|
|
106
|
+
labelKey: 'NODE_API_AUTH_API_KEY',
|
|
107
|
+
show: {
|
|
108
|
+
authType: 'API_KEY'
|
|
109
|
+
},
|
|
110
|
+
optional: true,
|
|
111
|
+
array: [
|
|
112
|
+
{
|
|
113
|
+
type: 'string',
|
|
114
|
+
id: 'headerKey',
|
|
115
|
+
label: 'API Header Key',
|
|
116
|
+
labelKey: 'NODE_API_AUTH_API_KEY_NAME'
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
type: 'string',
|
|
120
|
+
id: 'key',
|
|
121
|
+
label: 'API Key',
|
|
122
|
+
labelKey: 'NODE_API_AUTH_API_KEY_KEY'
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
type: 'array',
|
|
128
|
+
id: 'authBearer',
|
|
129
|
+
label: 'Bearer Token Authentication',
|
|
130
|
+
show: {
|
|
131
|
+
authType: 'BEARER'
|
|
132
|
+
},
|
|
133
|
+
labelKey: 'NODE_API_AUTH_BEARER_TOKEN',
|
|
134
|
+
optional: true,
|
|
135
|
+
array: [
|
|
136
|
+
{
|
|
137
|
+
type: 'string',
|
|
138
|
+
id: 'token',
|
|
139
|
+
label: 'Bearer Token',
|
|
140
|
+
labelKey: 'NODE_API_AUTH_BEARER_TOKEN'
|
|
141
|
+
}
|
|
142
|
+
]
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
id: 'body',
|
|
146
|
+
type: 'string',
|
|
147
|
+
label: 'Request Body',
|
|
148
|
+
labelKey: 'NODE_API_REQUEST_BODY',
|
|
149
|
+
optional: true,
|
|
150
|
+
acceptVariable: true,
|
|
151
|
+
placeholder: 'Enter the request body in JSON format',
|
|
152
|
+
rows: 5
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
type: 'options',
|
|
156
|
+
id: 'responseContentType',
|
|
157
|
+
label: 'Response Content Type',
|
|
158
|
+
labelKey: 'NODE_API_CONTENT_TYPE',
|
|
159
|
+
optional: true,
|
|
160
|
+
default: 'application/json',
|
|
161
|
+
options: [
|
|
162
|
+
{ id: 'application/json', label: 'application/json' },
|
|
163
|
+
{ id: 'application/x-www-form-urlencoded', label: 'application/x-www-form-urlencoded' },
|
|
164
|
+
{ id: 'text/plain', label: 'text/plain' },
|
|
165
|
+
{ id: 'multipart/form-data', label: 'multipart/form-data' }
|
|
166
|
+
]
|
|
167
|
+
}
|
|
168
|
+
],
|
|
169
|
+
values: undefined,
|
|
170
|
+
color: '#00bcd4', // Cyan color for the start node
|
|
171
|
+
icon: '',
|
|
172
|
+
badge: undefined,
|
|
173
|
+
hideInput: true,
|
|
174
|
+
hideOutput: false,
|
|
175
|
+
author: '',
|
|
176
|
+
documentation: '',
|
|
177
|
+
};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { INode } from "../Flow";
|
|
2
|
+
export declare const defaultNodeConditional: INode;
|
|
@@ -1,18 +1,96 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
3
|
+
exports.defaultNodeConditional = void 0;
|
|
4
|
+
const Flow_1 = require("../Flow");
|
|
5
|
+
exports.defaultNodeConditional = {
|
|
6
|
+
id: "NodeConditional-{uid}",
|
|
7
|
+
type: Flow_1.NodeType.CONDITIONAL,
|
|
8
|
+
category: 'action',
|
|
9
|
+
description: "Node for conditional operations, allowing for dynamic decision-making based on conditions.",
|
|
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: "onNoCondition-{node.id}",
|
|
24
|
+
type: 'source',
|
|
25
|
+
position: 'right',
|
|
26
|
+
name: "No Condition",
|
|
27
|
+
nameKey: 'NODE_HANDLE_NO_CONDITION'
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
name: "Conditional Node",
|
|
31
|
+
nameKey: 'NODE_CONDITIONAL_NAME',
|
|
32
|
+
enableStatics: false,
|
|
33
|
+
properties: [
|
|
34
|
+
{
|
|
35
|
+
type: 'string',
|
|
36
|
+
id: 'inputValue',
|
|
37
|
+
label: 'Input Value',
|
|
38
|
+
labelKey: 'NODE_CONDITIONAL_INPUT_VALUE',
|
|
39
|
+
optional: false,
|
|
40
|
+
default: '',
|
|
41
|
+
placeholder: 'Enter the input value to evaluate conditions'
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
type: 'array',
|
|
45
|
+
id: 'conditions',
|
|
46
|
+
label: 'Conditions',
|
|
47
|
+
labelKey: 'NODE_CONDITIONAL_CONDITIONS',
|
|
48
|
+
optional: false,
|
|
49
|
+
array: [
|
|
50
|
+
{
|
|
51
|
+
type: 'options',
|
|
52
|
+
id: 'condition',
|
|
53
|
+
label: 'Condition',
|
|
54
|
+
default: '',
|
|
55
|
+
options: [
|
|
56
|
+
{ id: 'NULL', label: 'Is Null' },
|
|
57
|
+
{ id: 'LESS_THAN', label: 'Less Than' },
|
|
58
|
+
{ id: 'LESS_THAN_EQUAL', label: 'Less Than or Equal' },
|
|
59
|
+
{ id: 'EQUAL', label: 'Equal' },
|
|
60
|
+
{ id: 'GREATER_THAN_EQUAL', label: 'Greater Than or Equal' },
|
|
61
|
+
{ id: 'GREATER_THAN', label: 'Greater Than' },
|
|
62
|
+
{ id: 'START_WITH', label: 'Starts With' },
|
|
63
|
+
{ id: 'END_WITH', label: 'Ends With' },
|
|
64
|
+
{ id: 'CONTAINS', label: 'Contains' },
|
|
65
|
+
{ id: 'NOT_CONTAINS', label: 'Does Not Contain' },
|
|
66
|
+
{ id: 'ANY_VALUE', label: 'Any Value' }
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
type: 'array',
|
|
71
|
+
id: 'values',
|
|
72
|
+
label: 'Values',
|
|
73
|
+
default: '',
|
|
74
|
+
placeholder: 'Enter the values to compare against',
|
|
75
|
+
array: [
|
|
76
|
+
{
|
|
77
|
+
type: 'string',
|
|
78
|
+
id: 'value',
|
|
79
|
+
label: 'Value',
|
|
80
|
+
default: '',
|
|
81
|
+
placeholder: 'Enter a value'
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
values: undefined,
|
|
89
|
+
color: '#00bcd4', // Cyan color for the start node
|
|
90
|
+
icon: '',
|
|
91
|
+
badge: undefined,
|
|
92
|
+
hideInput: true,
|
|
93
|
+
hideOutput: false,
|
|
94
|
+
author: '',
|
|
95
|
+
documentation: '',
|
|
96
|
+
};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { INode } from "../Flow";
|
|
2
|
+
export declare const defaultNodeContactSearch: INode;
|
|
@@ -1,2 +1,64 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.defaultNodeContactSearch = void 0;
|
|
4
|
+
const Flow_1 = require("../Flow");
|
|
5
|
+
exports.defaultNodeContactSearch = {
|
|
6
|
+
id: "NodeContactSearch-{uid}",
|
|
7
|
+
type: Flow_1.NodeType.CONTACT_SEARCH,
|
|
8
|
+
category: 'action',
|
|
9
|
+
description: "Node for searching contacts in the system, allowing for dynamic retrieval of contact information based on specified criteria.",
|
|
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: "Contact Search Node",
|
|
31
|
+
nameKey: 'NODE_CONTACT_SEARCH_NAME',
|
|
32
|
+
enableStatics: false,
|
|
33
|
+
properties: [
|
|
34
|
+
{
|
|
35
|
+
type: 'options',
|
|
36
|
+
id: 'contactFieldId',
|
|
37
|
+
label: 'Contact Field ID',
|
|
38
|
+
labelKey: 'NODE_CONTACT_SEARCH_FIELD_ID',
|
|
39
|
+
optional: false,
|
|
40
|
+
options: [
|
|
41
|
+
{ id: 'name', label: 'Name' },
|
|
42
|
+
{ id: 'email', label: 'Email' },
|
|
43
|
+
{ id: 'phone', label: 'Phone' }
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
type: 'string',
|
|
48
|
+
id: 'valueToSearch',
|
|
49
|
+
label: 'Value to Search',
|
|
50
|
+
labelKey: 'NODE_CONTACT_SEARCH_VALUE_TO_SEARCH',
|
|
51
|
+
optional: false,
|
|
52
|
+
default: '',
|
|
53
|
+
placeholder: 'Enter the value to search in the contact field'
|
|
54
|
+
},
|
|
55
|
+
],
|
|
56
|
+
values: undefined,
|
|
57
|
+
color: '#00bcd4', // Cyan color for the start node
|
|
58
|
+
icon: '',
|
|
59
|
+
badge: undefined,
|
|
60
|
+
hideInput: true,
|
|
61
|
+
hideOutput: false,
|
|
62
|
+
author: '',
|
|
63
|
+
documentation: '',
|
|
64
|
+
};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { INode } from "../Flow";
|
|
2
|
+
export declare const defaultNodeContactUpdate: INode;
|
|
@@ -1,7 +1,69 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.defaultNodeContactUpdate = void 0;
|
|
4
|
+
const Flow_1 = require("../Flow");
|
|
3
5
|
var NodeContactUpdateAction;
|
|
4
6
|
(function (NodeContactUpdateAction) {
|
|
5
7
|
NodeContactUpdateAction[NodeContactUpdateAction["REPLACE"] = 0] = "REPLACE";
|
|
6
8
|
NodeContactUpdateAction[NodeContactUpdateAction["ADD"] = 1] = "ADD";
|
|
7
9
|
})(NodeContactUpdateAction || (NodeContactUpdateAction = {}));
|
|
10
|
+
exports.defaultNodeContactUpdate = {
|
|
11
|
+
id: "NodeContactUpdate-{uid}",
|
|
12
|
+
type: Flow_1.NodeType.CONTACT_UPDATE,
|
|
13
|
+
category: 'action',
|
|
14
|
+
description: "Node for updating contact information in the system.",
|
|
15
|
+
tags: [],
|
|
16
|
+
version: 1,
|
|
17
|
+
handlesIn: [
|
|
18
|
+
{
|
|
19
|
+
id: "onStart-{node.id}",
|
|
20
|
+
type: 'target',
|
|
21
|
+
position: 'left',
|
|
22
|
+
name: "IN",
|
|
23
|
+
nameKey: 'NODE_HANDLE_IN'
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
handlesOut: [
|
|
27
|
+
{
|
|
28
|
+
id: "onNext-{node.id}",
|
|
29
|
+
type: 'source',
|
|
30
|
+
position: 'right',
|
|
31
|
+
name: "Next",
|
|
32
|
+
nameKey: 'NODE_HANDLE_NEXT'
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
name: "Contact Update Node",
|
|
36
|
+
nameKey: 'NODE_CONTACT_UPDATE_NAME',
|
|
37
|
+
enableStatics: false,
|
|
38
|
+
properties: [
|
|
39
|
+
{
|
|
40
|
+
type: 'options',
|
|
41
|
+
id: 'contactFieldId',
|
|
42
|
+
label: 'Contact Field ID',
|
|
43
|
+
labelKey: 'NODE_CONTACT_UPDATE_FIELD_ID',
|
|
44
|
+
optional: false,
|
|
45
|
+
options: [
|
|
46
|
+
{ id: 'name', label: 'Name' },
|
|
47
|
+
{ id: 'email', label: 'Email' },
|
|
48
|
+
{ id: 'phone', label: 'Phone' }
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
type: 'string',
|
|
53
|
+
id: 'valueToUpdate',
|
|
54
|
+
label: 'Value to Update',
|
|
55
|
+
labelKey: 'NODE_CONTACT_UPDATE_VALUE_TO_UPDATE',
|
|
56
|
+
optional: false,
|
|
57
|
+
default: '',
|
|
58
|
+
placeholder: 'Enter the value to update in the contact field'
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
values: undefined,
|
|
62
|
+
color: '#00bcd4', // Cyan color for the start node
|
|
63
|
+
icon: '',
|
|
64
|
+
badge: undefined,
|
|
65
|
+
hideInput: true,
|
|
66
|
+
hideOutput: false,
|
|
67
|
+
author: '',
|
|
68
|
+
documentation: '',
|
|
69
|
+
};
|
|
@@ -4,7 +4,7 @@ exports.defaultNodeStartNewConversation = void 0;
|
|
|
4
4
|
const Flow_1 = require("../Flow");
|
|
5
5
|
exports.defaultNodeStartNewConversation = {
|
|
6
6
|
id: "StartNewConversation-{uid}",
|
|
7
|
-
type: Flow_1.NodeType.
|
|
7
|
+
type: Flow_1.NodeType.START,
|
|
8
8
|
category: 'trigger',
|
|
9
9
|
description: "Triggered when a new conversation is created",
|
|
10
10
|
tags: [],
|