@trii/types 2.10.489 → 2.10.490
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.
|
@@ -11,6 +11,11 @@ exports.triggerNodeTypeList = [
|
|
|
11
11
|
name: 'Start by New Conversation',
|
|
12
12
|
definition: NodeStart_1.defaultNodeStartNewConversation
|
|
13
13
|
},
|
|
14
|
+
{
|
|
15
|
+
id: 'StartConversationOpened',
|
|
16
|
+
name: 'Conversation Opened',
|
|
17
|
+
definition: NodeStart_1.defaultNodeStartConversationOpened
|
|
18
|
+
},
|
|
14
19
|
{
|
|
15
20
|
id: 'EndConversation',
|
|
16
21
|
name: 'End Conversation',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.defaultNodeStartNewConversation = void 0;
|
|
3
|
+
exports.defaultNodeStartConversationOpened = exports.defaultNodeStartNewConversation = void 0;
|
|
4
4
|
const Flow_1 = require("../Flow");
|
|
5
5
|
exports.defaultNodeStartNewConversation = {
|
|
6
6
|
id: "StartNewConversation-{uid}",
|
|
@@ -114,6 +114,158 @@ exports.defaultNodeStartNewConversation = {
|
|
|
114
114
|
},
|
|
115
115
|
],
|
|
116
116
|
},
|
|
117
|
+
{
|
|
118
|
+
type: 'options',
|
|
119
|
+
id: 'channelType',
|
|
120
|
+
label: 'Channel Type',
|
|
121
|
+
labelKey: 'NODE_START_CHANNEL_TYPE',
|
|
122
|
+
optional: true,
|
|
123
|
+
options: [
|
|
124
|
+
{
|
|
125
|
+
id: 'whatsApp',
|
|
126
|
+
label: 'WhatsApp',
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
id: 'email',
|
|
130
|
+
label: 'Email',
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
id: 'sms',
|
|
134
|
+
label: 'SMS',
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
id: 'webchat',
|
|
138
|
+
label: 'Webchat',
|
|
139
|
+
}
|
|
140
|
+
]
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
type: 'boolean',
|
|
144
|
+
id: 'onlyOnePerContact',
|
|
145
|
+
label: 'Run only one per contact',
|
|
146
|
+
labelKey: 'NODE_START_ONLY_ONE_PER_CONTACT',
|
|
147
|
+
optional: false,
|
|
148
|
+
default: false
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
type: 'boolean',
|
|
152
|
+
id: 'onlyOnePerContactAddress',
|
|
153
|
+
label: 'Run only one per contact address',
|
|
154
|
+
labelKey: 'NODE_START_ONLY_ONE_PER_CONTACT_ADDRESS',
|
|
155
|
+
optional: false,
|
|
156
|
+
default: false
|
|
157
|
+
}
|
|
158
|
+
],
|
|
159
|
+
values: undefined,
|
|
160
|
+
color: '#00bcd4', // Cyan color for the start node
|
|
161
|
+
icon: '',
|
|
162
|
+
badge: undefined,
|
|
163
|
+
hideInput: true,
|
|
164
|
+
hideOutput: false,
|
|
165
|
+
author: '',
|
|
166
|
+
documentation: '',
|
|
167
|
+
};
|
|
168
|
+
exports.defaultNodeStartConversationOpened = {
|
|
169
|
+
id: "StartConversationOpened-{uid}",
|
|
170
|
+
type: Flow_1.NodeType.START_CONVERSATION_OPENED,
|
|
171
|
+
category: 'trigger',
|
|
172
|
+
description: "Triggered when a new conversation is created",
|
|
173
|
+
tags: [],
|
|
174
|
+
version: 1,
|
|
175
|
+
asyncLoadHandlesOut: false,
|
|
176
|
+
handlesIn: [],
|
|
177
|
+
handlesOut: [
|
|
178
|
+
{
|
|
179
|
+
id: "onStart-{node.id}",
|
|
180
|
+
type: 'source',
|
|
181
|
+
position: 'right',
|
|
182
|
+
name: "Start",
|
|
183
|
+
nameKey: 'NODE_START_START',
|
|
184
|
+
showName: true,
|
|
185
|
+
multiple: false
|
|
186
|
+
}
|
|
187
|
+
],
|
|
188
|
+
name: "START BY NEW CONVERSATION",
|
|
189
|
+
nameKey: 'NODE_START_NAME',
|
|
190
|
+
enableStatics: false,
|
|
191
|
+
properties: [
|
|
192
|
+
{
|
|
193
|
+
type: 'options',
|
|
194
|
+
id: 'channelType',
|
|
195
|
+
label: 'Channel Type',
|
|
196
|
+
labelKey: 'NODE_START_CHANNEL_TYPE',
|
|
197
|
+
optional: true,
|
|
198
|
+
options: [
|
|
199
|
+
{
|
|
200
|
+
id: 'whatsApp',
|
|
201
|
+
label: 'WhatsApp',
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
id: 'email',
|
|
205
|
+
label: 'Email',
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
id: 'sms',
|
|
209
|
+
label: 'SMS',
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
id: 'webchat',
|
|
213
|
+
label: 'Webchat',
|
|
214
|
+
}
|
|
215
|
+
]
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
type: 'options',
|
|
219
|
+
id: 'origin',
|
|
220
|
+
label: 'Origin',
|
|
221
|
+
labelKey: 'NODE_START_ORIGIN',
|
|
222
|
+
options: [
|
|
223
|
+
{
|
|
224
|
+
"id": "agent",
|
|
225
|
+
"label": "Agent",
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"id": "contact",
|
|
229
|
+
"label": "Contact",
|
|
230
|
+
}
|
|
231
|
+
]
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
type: 'boolean',
|
|
235
|
+
id: 'keywordEnabled',
|
|
236
|
+
label: 'Keyword Enabled',
|
|
237
|
+
labelKey: 'NODE_START_KEYWORD_ENABLED',
|
|
238
|
+
optional: true,
|
|
239
|
+
default: false,
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
type: 'options',
|
|
243
|
+
id: 'keywordConditional',
|
|
244
|
+
label: 'Keyword Conditional',
|
|
245
|
+
labelKey: 'NODE_START_KEYWORD_CONDITIONAL',
|
|
246
|
+
options: [
|
|
247
|
+
{
|
|
248
|
+
"label": "=",
|
|
249
|
+
"id": "="
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"label": "Include",
|
|
253
|
+
"id": "include"
|
|
254
|
+
}
|
|
255
|
+
],
|
|
256
|
+
show: {
|
|
257
|
+
keywordEnabled: true
|
|
258
|
+
},
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
type: 'string',
|
|
262
|
+
id: 'keywordValue',
|
|
263
|
+
label: 'Keyword Value',
|
|
264
|
+
labelKey: 'NODE_START_KEYWORD',
|
|
265
|
+
show: {
|
|
266
|
+
keywordEnabled: true
|
|
267
|
+
},
|
|
268
|
+
},
|
|
117
269
|
{
|
|
118
270
|
type: 'boolean',
|
|
119
271
|
id: 'onlyOnePerContact',
|