@trii/types 2.10.528 → 2.10.530
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/AI/aiModuleStatus.d.ts +3 -0
- package/dist/AI/aiModuleStatus.js +2 -0
- package/dist/AI/index.d.ts +1 -0
- package/dist/AI/index.js +1 -0
- package/dist/Conversations/Conversation.d.ts +14 -0
- package/dist/Conversations/Flows/Nodes/NodeAIChatBot.d.ts +0 -2
- package/dist/Conversations/Flows/Nodes/NodeAIChatBot.js +0 -179
- package/dist/Conversations/Flows/Nodes/NodeConditional.d.ts +0 -2
- package/dist/Conversations/Flows/Nodes/NodeConditional.js +0 -113
- package/dist/Conversations/Flows/Nodes/NodeContactSearch.d.ts +0 -2
- package/dist/Conversations/Flows/Nodes/NodeContactSearch.js +0 -69
- package/dist/Conversations/Flows/Nodes/NodeContactUpdate.d.ts +0 -2
- package/dist/Conversations/Flows/Nodes/NodeContactUpdate.js +0 -69
- package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.d.ts +0 -2
- package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.js +0 -66
- package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.d.ts +0 -2
- package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.js +0 -47
- package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.d.ts +0 -2
- package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.js +0 -78
- package/dist/Conversations/Flows/Nodes/NodeFillForm.d.ts +0 -2
- package/dist/Conversations/Flows/Nodes/NodeFillForm.js +0 -70
- package/dist/Conversations/Flows/Nodes/NodeMsgReply.d.ts +0 -3
- package/dist/Conversations/Flows/Nodes/NodeMsgReply.js +0 -133
- package/dist/Conversations/Flows/Nodes/NodeMsgSend.d.ts +0 -3
- package/dist/Conversations/Flows/Nodes/NodeMsgSend.js +0 -175
- package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.d.ts +0 -2
- package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.js +0 -131
- package/dist/Conversations/Flows/Nodes/NodeRedirect.d.ts +0 -2
- package/dist/Conversations/Flows/Nodes/NodeRedirect.js +0 -65
- package/dist/Conversations/Flows/Nodes/NodeSendEmail.d.ts +0 -2
- package/dist/Conversations/Flows/Nodes/NodeSendEmail.js +0 -85
- package/dist/Conversations/Flows/Nodes/NodeSqlQuery.d.ts +0 -2
- package/dist/Conversations/Flows/Nodes/NodeSqlQuery.js +0 -79
- package/dist/Conversations/Flows/Nodes/NodeStart.d.ts +0 -3
- package/dist/Conversations/Flows/Nodes/NodeStart.js +0 -294
- package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.d.ts +0 -2
- package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.js +0 -73
- package/dist/Conversations/Flows/Nodes/NodeTimeTimer.d.ts +0 -2
- package/dist/Conversations/Flows/Nodes/NodeTimeTimer.js +0 -83
- package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.d.ts +0 -2
- package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.js +0 -55
- package/dist/Shop/Cart/cart.d.ts +19 -0
- package/dist/Shop/Cart/cart.js +2 -0
- package/dist/Shop/index.d.ts +1 -0
- package/dist/Shop/index.js +17 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -1
- package/package.json +1 -2
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.defaultNodeSendEmail = void 0;
|
|
4
|
-
const Flow_1 = require("../Flow");
|
|
5
|
-
exports.defaultNodeSendEmail = {
|
|
6
|
-
id: "NodeSendEmail-{uid}",
|
|
7
|
-
type: Flow_1.NodeType.SEND_EMAIL,
|
|
8
|
-
category: 'action',
|
|
9
|
-
description: "Node for sending emails, allowing the flow to communicate via email with specified recipients.",
|
|
10
|
-
tags: [],
|
|
11
|
-
version: 1,
|
|
12
|
-
asyncLoadHandlesOut: false,
|
|
13
|
-
handlesIn: [
|
|
14
|
-
{
|
|
15
|
-
id: "in",
|
|
16
|
-
type: 'target',
|
|
17
|
-
position: 'left',
|
|
18
|
-
name: "IN",
|
|
19
|
-
nameKey: 'NODE_HANDLE_IN',
|
|
20
|
-
showName: false,
|
|
21
|
-
multiple: false
|
|
22
|
-
}
|
|
23
|
-
],
|
|
24
|
-
handlesOut: [
|
|
25
|
-
{
|
|
26
|
-
id: "onNext",
|
|
27
|
-
type: 'source',
|
|
28
|
-
position: 'right',
|
|
29
|
-
name: "Next",
|
|
30
|
-
nameKey: 'NODE_HANDLE_NEXT',
|
|
31
|
-
showName: true,
|
|
32
|
-
multiple: false
|
|
33
|
-
}
|
|
34
|
-
],
|
|
35
|
-
name: "Send Email",
|
|
36
|
-
nameKey: 'NODE_SEND_EMAIL',
|
|
37
|
-
enableStatics: false,
|
|
38
|
-
properties: [
|
|
39
|
-
{
|
|
40
|
-
type: 'string',
|
|
41
|
-
id: 'channelId',
|
|
42
|
-
label: 'Channel ID',
|
|
43
|
-
labelKey: 'NODE_SEND_EMAIL_CHANNEL_ID',
|
|
44
|
-
optional: false,
|
|
45
|
-
default: '',
|
|
46
|
-
placeholder: 'Enter the channel ID'
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
type: 'string',
|
|
50
|
-
id: 'to',
|
|
51
|
-
label: 'To',
|
|
52
|
-
labelKey: 'NODE_SEND_EMAIL_TO',
|
|
53
|
-
optional: false,
|
|
54
|
-
default: '',
|
|
55
|
-
placeholder: 'Enter the recipient email address'
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
type: 'string',
|
|
59
|
-
id: 'subject',
|
|
60
|
-
label: 'Subject',
|
|
61
|
-
labelKey: 'NODE_SEND_EMAIL_SUBJECT',
|
|
62
|
-
optional: false,
|
|
63
|
-
default: '',
|
|
64
|
-
placeholder: 'Enter the email subject'
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
type: 'string',
|
|
68
|
-
id: 'body',
|
|
69
|
-
label: 'Body',
|
|
70
|
-
labelKey: 'NODE_SEND_EMAIL_BODY',
|
|
71
|
-
optional: false,
|
|
72
|
-
default: '',
|
|
73
|
-
placeholder: 'Enter the email body',
|
|
74
|
-
rows: 5
|
|
75
|
-
}
|
|
76
|
-
],
|
|
77
|
-
values: undefined,
|
|
78
|
-
color: '#00bcd4', // Cyan color for the start node
|
|
79
|
-
icon: '',
|
|
80
|
-
badge: undefined,
|
|
81
|
-
hideInput: true,
|
|
82
|
-
hideOutput: false,
|
|
83
|
-
author: '',
|
|
84
|
-
documentation: '',
|
|
85
|
-
};
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.defaultNodeSqlQuery = void 0;
|
|
4
|
-
const Flow_1 = require("../Flow");
|
|
5
|
-
exports.defaultNodeSqlQuery = {
|
|
6
|
-
id: "NodeSqlQuery-{uid}",
|
|
7
|
-
type: Flow_1.NodeType.SQL_QUERY,
|
|
8
|
-
category: 'action',
|
|
9
|
-
description: "Node for executing SQL queries against a database, allowing for data retrieval, manipulation, and interaction with relational databases.",
|
|
10
|
-
tags: [],
|
|
11
|
-
version: 1,
|
|
12
|
-
asyncLoadHandlesOut: false,
|
|
13
|
-
handlesIn: [
|
|
14
|
-
{
|
|
15
|
-
id: "in",
|
|
16
|
-
type: 'target',
|
|
17
|
-
position: 'left',
|
|
18
|
-
name: "IN",
|
|
19
|
-
nameKey: 'NODE_HANDLE_IN',
|
|
20
|
-
showName: false,
|
|
21
|
-
multiple: false
|
|
22
|
-
}
|
|
23
|
-
],
|
|
24
|
-
handlesOut: [
|
|
25
|
-
{
|
|
26
|
-
id: "onNext",
|
|
27
|
-
type: 'source',
|
|
28
|
-
position: 'right',
|
|
29
|
-
name: "Next",
|
|
30
|
-
nameKey: 'NODE_HANDLE_NEXT',
|
|
31
|
-
showName: true,
|
|
32
|
-
multiple: false
|
|
33
|
-
}
|
|
34
|
-
],
|
|
35
|
-
name: "SQL Query",
|
|
36
|
-
nameKey: 'NODE_SQL_QUERY',
|
|
37
|
-
enableStatics: false,
|
|
38
|
-
properties: [
|
|
39
|
-
{
|
|
40
|
-
type: 'options',
|
|
41
|
-
id: 'dbType',
|
|
42
|
-
label: 'Database Type',
|
|
43
|
-
labelKey: 'NODE_SQL_QUERY_DB_TYPE',
|
|
44
|
-
optional: false,
|
|
45
|
-
default: '',
|
|
46
|
-
options: [
|
|
47
|
-
{ id: 'MSSQL', label: 'MSSQL' },
|
|
48
|
-
{ id: 'MYSQL', label: 'MYSQL' }
|
|
49
|
-
]
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
type: 'string',
|
|
53
|
-
id: 'connectionString',
|
|
54
|
-
label: 'Connection String',
|
|
55
|
-
labelKey: 'NODE_SQL_QUERY_CONNECTION_STRING',
|
|
56
|
-
optional: false,
|
|
57
|
-
default: '',
|
|
58
|
-
placeholder: 'Enter the connection string for the database'
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
type: 'string',
|
|
62
|
-
id: 'query',
|
|
63
|
-
label: 'SQL Query',
|
|
64
|
-
labelKey: 'NODE_SQL_QUERY_QUERY',
|
|
65
|
-
optional: false,
|
|
66
|
-
default: '',
|
|
67
|
-
placeholder: 'Enter the SQL query to execute',
|
|
68
|
-
rows: 5
|
|
69
|
-
}
|
|
70
|
-
],
|
|
71
|
-
values: undefined,
|
|
72
|
-
color: '#00bcd4', // Cyan color for the start node
|
|
73
|
-
icon: '',
|
|
74
|
-
badge: undefined,
|
|
75
|
-
hideInput: true,
|
|
76
|
-
hideOutput: false,
|
|
77
|
-
author: '',
|
|
78
|
-
documentation: '',
|
|
79
|
-
};
|
|
@@ -1,294 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.defaultNodeStartConversationOpened = exports.defaultNodeStartNewConversation = void 0;
|
|
4
|
-
const Flow_1 = require("../Flow");
|
|
5
|
-
exports.defaultNodeStartNewConversation = {
|
|
6
|
-
id: "StartNewConversation-{uid}",
|
|
7
|
-
type: Flow_1.NodeType.START,
|
|
8
|
-
category: 'trigger',
|
|
9
|
-
description: "Triggered when a new conversation is created",
|
|
10
|
-
tags: [],
|
|
11
|
-
version: 1,
|
|
12
|
-
asyncLoadHandlesOut: false,
|
|
13
|
-
handlesIn: [],
|
|
14
|
-
handlesOut: [
|
|
15
|
-
{
|
|
16
|
-
id: "onNext",
|
|
17
|
-
type: 'source',
|
|
18
|
-
position: 'right',
|
|
19
|
-
name: "Start",
|
|
20
|
-
nameKey: 'NODE_START_START',
|
|
21
|
-
showName: true,
|
|
22
|
-
multiple: false
|
|
23
|
-
}
|
|
24
|
-
],
|
|
25
|
-
name: "START BY NEW CONVERSATION",
|
|
26
|
-
nameKey: 'NODE_START_NAME',
|
|
27
|
-
enableStatics: false,
|
|
28
|
-
properties: [
|
|
29
|
-
{
|
|
30
|
-
type: 'array',
|
|
31
|
-
id: 'conditions',
|
|
32
|
-
label: 'Conditions',
|
|
33
|
-
labelKey: 'NODE_START_CONDITIONS',
|
|
34
|
-
"optional": true,
|
|
35
|
-
array: [
|
|
36
|
-
{
|
|
37
|
-
type: 'options',
|
|
38
|
-
id: 'field',
|
|
39
|
-
label: 'Field',
|
|
40
|
-
labelKey: 'NODE_START_FIELD',
|
|
41
|
-
options: [
|
|
42
|
-
{
|
|
43
|
-
"id": "origin",
|
|
44
|
-
"label": "Origin",
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"id": "channel",
|
|
48
|
-
"label": "Channel",
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"id": "message",
|
|
52
|
-
"label": "Message",
|
|
53
|
-
}
|
|
54
|
-
]
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
type: 'options',
|
|
58
|
-
id: 'logicalConditional',
|
|
59
|
-
label: 'logicalConditional',
|
|
60
|
-
labelKey: 'NODE_START_LOGICAL_CONDITIONAL',
|
|
61
|
-
options: [
|
|
62
|
-
{
|
|
63
|
-
"label": "=",
|
|
64
|
-
"id": "="
|
|
65
|
-
}
|
|
66
|
-
],
|
|
67
|
-
hide: {
|
|
68
|
-
conditions: {
|
|
69
|
-
field: "message"
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
type: 'options',
|
|
75
|
-
id: 'logicalConditional',
|
|
76
|
-
label: 'logicalConditional',
|
|
77
|
-
labelKey: 'NODE_START_LOGICAL_CONDITIONAL',
|
|
78
|
-
options: [
|
|
79
|
-
{
|
|
80
|
-
"label": "=",
|
|
81
|
-
"id": "="
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
"label": "Include",
|
|
85
|
-
"id": "include"
|
|
86
|
-
}
|
|
87
|
-
],
|
|
88
|
-
hide: {
|
|
89
|
-
conditions: {
|
|
90
|
-
field: "message"
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
type: 'options',
|
|
96
|
-
id: 'value',
|
|
97
|
-
label: 'logicalConditional',
|
|
98
|
-
labelKey: 'NODE_START_LOGICAL_CONDITIONAL',
|
|
99
|
-
options: [
|
|
100
|
-
{
|
|
101
|
-
"id": "agent",
|
|
102
|
-
"label": "Agent",
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
"id": "contact",
|
|
106
|
-
"label": "Contact",
|
|
107
|
-
}
|
|
108
|
-
],
|
|
109
|
-
show: {
|
|
110
|
-
conditions: {
|
|
111
|
-
field: "origin"
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
},
|
|
115
|
-
],
|
|
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: "onNext",
|
|
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": "equal"
|
|
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
|
-
},
|
|
269
|
-
{
|
|
270
|
-
type: 'boolean',
|
|
271
|
-
id: 'onlyOnePerContact',
|
|
272
|
-
label: 'Run only one per contact',
|
|
273
|
-
labelKey: 'NODE_START_ONLY_ONE_PER_CONTACT',
|
|
274
|
-
optional: false,
|
|
275
|
-
default: false
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
type: 'boolean',
|
|
279
|
-
id: 'onlyOnePerContactAddress',
|
|
280
|
-
label: 'Run only one per contact address',
|
|
281
|
-
labelKey: 'NODE_START_ONLY_ONE_PER_CONTACT_ADDRESS',
|
|
282
|
-
optional: false,
|
|
283
|
-
default: false
|
|
284
|
-
}
|
|
285
|
-
],
|
|
286
|
-
values: undefined,
|
|
287
|
-
color: '#00bcd4', // Cyan color for the start node
|
|
288
|
-
icon: '',
|
|
289
|
-
badge: undefined,
|
|
290
|
-
hideInput: true,
|
|
291
|
-
hideOutput: false,
|
|
292
|
-
author: '',
|
|
293
|
-
documentation: '',
|
|
294
|
-
};
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.defaultNodeTimeScheduleControl = void 0;
|
|
4
|
-
const Flow_1 = require("../Flow");
|
|
5
|
-
exports.defaultNodeTimeScheduleControl = {
|
|
6
|
-
id: "NodeTimeScheduleControl-{uid}",
|
|
7
|
-
type: Flow_1.NodeType.TIME_SCHEDULE_CONTROL,
|
|
8
|
-
category: 'action',
|
|
9
|
-
description: "Node for controlling the flow based on time schedules, such as handling after-hours, holidays, or specific time ranges.",
|
|
10
|
-
tags: [],
|
|
11
|
-
version: 2,
|
|
12
|
-
asyncLoadHandlesOut: true,
|
|
13
|
-
handlesIn: [
|
|
14
|
-
{
|
|
15
|
-
id: "in",
|
|
16
|
-
type: 'target',
|
|
17
|
-
position: 'left',
|
|
18
|
-
name: "IN",
|
|
19
|
-
nameKey: 'NODE_HANDLE_IN',
|
|
20
|
-
showName: false,
|
|
21
|
-
multiple: false
|
|
22
|
-
}
|
|
23
|
-
],
|
|
24
|
-
handlesOut: [
|
|
25
|
-
{
|
|
26
|
-
id: "onHoliday",
|
|
27
|
-
type: 'source',
|
|
28
|
-
position: 'right',
|
|
29
|
-
name: "Holiday",
|
|
30
|
-
nameKey: 'NODE_HANDLE_HOLIDAY',
|
|
31
|
-
showName: true,
|
|
32
|
-
multiple: false
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
id: "onAfterHours",
|
|
36
|
-
type: 'source',
|
|
37
|
-
position: 'right',
|
|
38
|
-
name: "After Hours",
|
|
39
|
-
nameKey: 'NODE_HANDLE_AFTER_HOURS',
|
|
40
|
-
showName: true,
|
|
41
|
-
multiple: false
|
|
42
|
-
}
|
|
43
|
-
],
|
|
44
|
-
name: "Time Schedule Control",
|
|
45
|
-
nameKey: 'NODE_TIME_SCHEDULE_CONTROL',
|
|
46
|
-
enableStatics: false,
|
|
47
|
-
properties: [
|
|
48
|
-
{
|
|
49
|
-
type: 'asyncOptions',
|
|
50
|
-
id: 'scheduleId',
|
|
51
|
-
label: 'Schedule ID',
|
|
52
|
-
labelKey: 'NODE_TIME_SCHEDULE_CONTROL_SCHEDULE_ID',
|
|
53
|
-
optional: false,
|
|
54
|
-
loadMethod: 'getTimeSchedules',
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
type: 'string',
|
|
58
|
-
id: 'version',
|
|
59
|
-
label: 'Version',
|
|
60
|
-
labelKey: 'NODE_TIME_SCHEDULE_CONTROL_VERSION',
|
|
61
|
-
optional: false,
|
|
62
|
-
default: '2',
|
|
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,83 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.defaultNodeTimeTimer = void 0;
|
|
4
|
-
const Flow_1 = require("../Flow");
|
|
5
|
-
exports.defaultNodeTimeTimer = {
|
|
6
|
-
id: "NodeTimeTimer-{uid}",
|
|
7
|
-
type: Flow_1.NodeType.TIME_TIMER,
|
|
8
|
-
category: 'action',
|
|
9
|
-
description: "Node for implementing a timer that triggers after a specified duration, allowing for timed actions or delays in the flow.",
|
|
10
|
-
tags: [],
|
|
11
|
-
version: 1,
|
|
12
|
-
asyncLoadHandlesOut: false,
|
|
13
|
-
handlesIn: [
|
|
14
|
-
{
|
|
15
|
-
id: "in",
|
|
16
|
-
type: 'target',
|
|
17
|
-
position: 'left',
|
|
18
|
-
name: "IN",
|
|
19
|
-
nameKey: 'NODE_HANDLE_IN',
|
|
20
|
-
showName: false,
|
|
21
|
-
multiple: false
|
|
22
|
-
}
|
|
23
|
-
],
|
|
24
|
-
handlesOut: [
|
|
25
|
-
{
|
|
26
|
-
id: "onNext",
|
|
27
|
-
type: 'source',
|
|
28
|
-
position: 'right',
|
|
29
|
-
name: "Next",
|
|
30
|
-
nameKey: 'NODE_HANDLE_NEXT',
|
|
31
|
-
showName: true,
|
|
32
|
-
multiple: false
|
|
33
|
-
}
|
|
34
|
-
],
|
|
35
|
-
name: "Timer",
|
|
36
|
-
nameKey: 'NODE_TIME_TIMER',
|
|
37
|
-
enableStatics: false,
|
|
38
|
-
properties: [
|
|
39
|
-
{
|
|
40
|
-
type: 'number',
|
|
41
|
-
id: 'days',
|
|
42
|
-
label: 'Days',
|
|
43
|
-
labelKey: 'NODE_TIME_TIMER_DAYS',
|
|
44
|
-
optional: false,
|
|
45
|
-
default: 0,
|
|
46
|
-
step: 0.1,
|
|
47
|
-
numberMin: 0,
|
|
48
|
-
numberMax: 365
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
type: 'number',
|
|
52
|
-
id: 'hours',
|
|
53
|
-
label: 'Hours',
|
|
54
|
-
labelKey: 'NODE_TIME_TIMER_HOURS',
|
|
55
|
-
optional: false,
|
|
56
|
-
default: 0
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
type: 'number',
|
|
60
|
-
id: 'minutes',
|
|
61
|
-
label: 'Minutes',
|
|
62
|
-
labelKey: 'NODE_TIME_TIMER_MINUTES',
|
|
63
|
-
optional: false,
|
|
64
|
-
default: 0
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
type: 'number',
|
|
68
|
-
id: 'seconds',
|
|
69
|
-
label: 'Seconds',
|
|
70
|
-
labelKey: 'NODE_TIME_TIMER_SECONDS',
|
|
71
|
-
optional: false,
|
|
72
|
-
default: 0
|
|
73
|
-
}
|
|
74
|
-
],
|
|
75
|
-
values: undefined,
|
|
76
|
-
color: '#00bcd4', // Cyan color for the start node
|
|
77
|
-
icon: '',
|
|
78
|
-
badge: undefined,
|
|
79
|
-
hideInput: true,
|
|
80
|
-
hideOutput: false,
|
|
81
|
-
author: '',
|
|
82
|
-
documentation: '',
|
|
83
|
-
};
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.defaultNodeTimeWaitUntil = void 0;
|
|
4
|
-
const Flow_1 = require("../Flow");
|
|
5
|
-
exports.defaultNodeTimeWaitUntil = {
|
|
6
|
-
id: "NodeTimeWaitUntil-{uid}",
|
|
7
|
-
type: Flow_1.NodeType.TIME_WAIT_UNTIL,
|
|
8
|
-
category: 'action',
|
|
9
|
-
description: "Node for pausing the flow until a specified time or condition is met, allowing for synchronization with external events or schedules.",
|
|
10
|
-
tags: [],
|
|
11
|
-
version: 1,
|
|
12
|
-
asyncLoadHandlesOut: false,
|
|
13
|
-
handlesIn: [
|
|
14
|
-
{
|
|
15
|
-
id: "in",
|
|
16
|
-
type: 'target',
|
|
17
|
-
position: 'left',
|
|
18
|
-
name: "IN",
|
|
19
|
-
nameKey: 'NODE_HANDLE_IN',
|
|
20
|
-
showName: false,
|
|
21
|
-
multiple: false
|
|
22
|
-
}
|
|
23
|
-
],
|
|
24
|
-
handlesOut: [
|
|
25
|
-
{
|
|
26
|
-
id: "onNext",
|
|
27
|
-
type: 'source',
|
|
28
|
-
position: 'right',
|
|
29
|
-
name: "Next",
|
|
30
|
-
nameKey: 'NODE_HANDLE_NEXT',
|
|
31
|
-
showName: true,
|
|
32
|
-
multiple: false
|
|
33
|
-
}
|
|
34
|
-
],
|
|
35
|
-
name: "Wait Until",
|
|
36
|
-
nameKey: 'NODE_TIME_WAIT_UNTIL',
|
|
37
|
-
enableStatics: false,
|
|
38
|
-
properties: [
|
|
39
|
-
{
|
|
40
|
-
type: 'string',
|
|
41
|
-
id: 'scheduleId',
|
|
42
|
-
label: 'Schedule ID',
|
|
43
|
-
labelKey: 'NODE_TIME_WAIT_UNTIL_SCHEDULE_ID',
|
|
44
|
-
optional: false
|
|
45
|
-
}
|
|
46
|
-
],
|
|
47
|
-
values: undefined,
|
|
48
|
-
color: '#00bcd4', // Cyan color for the start node
|
|
49
|
-
icon: '',
|
|
50
|
-
badge: undefined,
|
|
51
|
-
hideInput: true,
|
|
52
|
-
hideOutput: false,
|
|
53
|
-
author: '',
|
|
54
|
-
documentation: '',
|
|
55
|
-
};
|