@trii/types 2.10.480 → 2.10.482
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 +120 -16
- package/dist/Conversations/Flows/Flow.d.ts +9 -1
- package/dist/Conversations/Flows/Flow.js +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 -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
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.defaultNodeMsgTemplate = exports.defaultNodeMsgText = void 0;
|
|
4
|
+
const Flow_1 = require("../Flow");
|
|
5
|
+
class NodeMsgTextTemplate {
|
|
6
|
+
}
|
|
7
|
+
class templateVariable {
|
|
8
|
+
}
|
|
9
|
+
class NodeMsgTextMessage {
|
|
10
|
+
}
|
|
11
|
+
class NodeMsgTextMessageButton {
|
|
12
|
+
}
|
|
13
|
+
var NodeMsgTextMessageType;
|
|
14
|
+
(function (NodeMsgTextMessageType) {
|
|
15
|
+
NodeMsgTextMessageType[NodeMsgTextMessageType["TEXT"] = 1] = "TEXT";
|
|
16
|
+
NodeMsgTextMessageType[NodeMsgTextMessageType["IMAGE"] = 2] = "IMAGE";
|
|
17
|
+
NodeMsgTextMessageType[NodeMsgTextMessageType["VIDEO"] = 3] = "VIDEO";
|
|
18
|
+
NodeMsgTextMessageType[NodeMsgTextMessageType["FILE"] = 4] = "FILE";
|
|
19
|
+
})(NodeMsgTextMessageType || (NodeMsgTextMessageType = {}));
|
|
20
|
+
var NodeMsgTextMessageButtonType;
|
|
21
|
+
(function (NodeMsgTextMessageButtonType) {
|
|
22
|
+
NodeMsgTextMessageButtonType[NodeMsgTextMessageButtonType["REPLY"] = 1] = "REPLY";
|
|
23
|
+
NodeMsgTextMessageButtonType[NodeMsgTextMessageButtonType["URL"] = 2] = "URL";
|
|
24
|
+
})(NodeMsgTextMessageButtonType || (NodeMsgTextMessageButtonType = {}));
|
|
25
|
+
var NodeMsgTextMode;
|
|
26
|
+
(function (NodeMsgTextMode) {
|
|
27
|
+
NodeMsgTextMode[NodeMsgTextMode["MANUAL"] = 1] = "MANUAL";
|
|
28
|
+
NodeMsgTextMode[NodeMsgTextMode["TEMPLATE"] = 2] = "TEMPLATE";
|
|
29
|
+
})(NodeMsgTextMode || (NodeMsgTextMode = {}));
|
|
30
|
+
exports.defaultNodeMsgText = {
|
|
31
|
+
id: "NodeMsgText-{uid}",
|
|
32
|
+
type: Flow_1.NodeType.MSG_TEXT,
|
|
33
|
+
category: 'message',
|
|
34
|
+
description: "Node for sending text messages, images, videos, or files to a channel",
|
|
35
|
+
tags: [],
|
|
36
|
+
version: 1,
|
|
37
|
+
handlesIn: [
|
|
38
|
+
{
|
|
39
|
+
id: "onStart-{node.id}",
|
|
40
|
+
type: 'target',
|
|
41
|
+
position: 'left',
|
|
42
|
+
name: "IN",
|
|
43
|
+
nameKey: 'NODE_HANDLE_IN'
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
handlesOut: [
|
|
47
|
+
{
|
|
48
|
+
id: "onNext-{node.id}",
|
|
49
|
+
type: 'source',
|
|
50
|
+
position: 'right',
|
|
51
|
+
name: "Next",
|
|
52
|
+
nameKey: 'NODE_HANDLE_NEXT'
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
name: "Send Message",
|
|
56
|
+
nameKey: 'NODE_MSG_TEXT_SEND',
|
|
57
|
+
enableStatics: false,
|
|
58
|
+
properties: [
|
|
59
|
+
{
|
|
60
|
+
type: 'string',
|
|
61
|
+
id: 'channelId',
|
|
62
|
+
label: 'Channel ID',
|
|
63
|
+
labelKey: 'NODE_MSG_TEXT_CHANNEL_ID',
|
|
64
|
+
optional: false,
|
|
65
|
+
default: '',
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
type: 'string',
|
|
69
|
+
id: 'destination',
|
|
70
|
+
label: 'Destination',
|
|
71
|
+
labelKey: 'NODE_MSG_TEXT_DESTINATION',
|
|
72
|
+
optional: false,
|
|
73
|
+
default: '',
|
|
74
|
+
placeholder: 'Enter the destination (e.g., phone number)'
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
type: 'options',
|
|
78
|
+
id: 'msgType',
|
|
79
|
+
label: 'Message Type',
|
|
80
|
+
labelKey: 'NODE_MSG_TEXT_TYPE',
|
|
81
|
+
optional: false,
|
|
82
|
+
options: [
|
|
83
|
+
{ id: 'TEXT', label: 'Text' },
|
|
84
|
+
{ id: 'IMAGE', label: 'Image' },
|
|
85
|
+
{ id: 'VIDEO', label: 'Video' },
|
|
86
|
+
{ id: 'FILE', label: 'File' }
|
|
87
|
+
],
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
id: 'message',
|
|
91
|
+
label: 'Message',
|
|
92
|
+
labelKey: 'NODE_MSG_TEXT_MESSAGE',
|
|
93
|
+
type: 'string',
|
|
94
|
+
optional: false,
|
|
95
|
+
default: '',
|
|
96
|
+
placeholder: 'Enter the message',
|
|
97
|
+
rows: 5,
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
id: 'caption',
|
|
101
|
+
label: 'Caption',
|
|
102
|
+
labelKey: 'NODE_MSG_TEXT_CAPTION',
|
|
103
|
+
type: 'string',
|
|
104
|
+
optional: false,
|
|
105
|
+
default: '',
|
|
106
|
+
placeholder: 'Enter the caption'
|
|
107
|
+
}
|
|
108
|
+
],
|
|
109
|
+
values: undefined,
|
|
110
|
+
color: '#00bcd4', // Cyan color for the start node
|
|
111
|
+
icon: '',
|
|
112
|
+
badge: undefined,
|
|
113
|
+
hideInput: true,
|
|
114
|
+
hideOutput: false,
|
|
115
|
+
author: '',
|
|
116
|
+
documentation: '',
|
|
117
|
+
};
|
|
118
|
+
exports.defaultNodeMsgTemplate = {
|
|
119
|
+
id: "NodeMsgTemplate-{uid}",
|
|
120
|
+
type: Flow_1.NodeType.MSG_TEMPLATE,
|
|
121
|
+
category: 'message',
|
|
122
|
+
description: "Node for sending message templates to a channel",
|
|
123
|
+
tags: [],
|
|
124
|
+
version: 1,
|
|
125
|
+
handlesIn: [
|
|
126
|
+
{
|
|
127
|
+
id: "onStart-{node.id}",
|
|
128
|
+
type: 'target',
|
|
129
|
+
position: 'left',
|
|
130
|
+
name: "IN",
|
|
131
|
+
nameKey: 'NODE_HANDLE_IN'
|
|
132
|
+
}
|
|
133
|
+
],
|
|
134
|
+
handlesOut: [
|
|
135
|
+
{
|
|
136
|
+
id: "onNext-{node.id}",
|
|
137
|
+
type: 'source',
|
|
138
|
+
position: 'right',
|
|
139
|
+
name: "Next",
|
|
140
|
+
nameKey: 'NODE_HANDLE_NEXT'
|
|
141
|
+
}
|
|
142
|
+
],
|
|
143
|
+
name: "Send Message Template",
|
|
144
|
+
nameKey: 'NODE_MSG_TEMPLATE_SEND',
|
|
145
|
+
enableStatics: false,
|
|
146
|
+
properties: [
|
|
147
|
+
{
|
|
148
|
+
id: 'templateId',
|
|
149
|
+
label: 'Template ID',
|
|
150
|
+
labelKey: 'NODE_MSG_TEXT_TEMPLATE_ID',
|
|
151
|
+
type: 'string',
|
|
152
|
+
optional: false,
|
|
153
|
+
default: '',
|
|
154
|
+
placeholder: 'Enter the template ID',
|
|
155
|
+
},
|
|
156
|
+
],
|
|
157
|
+
values: undefined,
|
|
158
|
+
color: '#00bcd4', // Cyan color for the start node
|
|
159
|
+
icon: '',
|
|
160
|
+
badge: undefined,
|
|
161
|
+
hideInput: true,
|
|
162
|
+
hideOutput: false,
|
|
163
|
+
author: '',
|
|
164
|
+
documentation: '',
|
|
165
|
+
};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { INode } from "../Flow";
|
|
2
|
+
export declare const defaultNodeMsgWaitResponse: INode;
|
|
@@ -1,8 +1,124 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.defaultNodeMsgWaitResponse = void 0;
|
|
4
|
+
const Flow_1 = require("../Flow");
|
|
3
5
|
var NodeMsgWaitResponseTimeType;
|
|
4
6
|
(function (NodeMsgWaitResponseTimeType) {
|
|
5
7
|
NodeMsgWaitResponseTimeType[NodeMsgWaitResponseTimeType["MINUTES"] = 0] = "MINUTES";
|
|
6
8
|
NodeMsgWaitResponseTimeType[NodeMsgWaitResponseTimeType["HOURS"] = 1] = "HOURS";
|
|
7
9
|
NodeMsgWaitResponseTimeType[NodeMsgWaitResponseTimeType["DAYS"] = 2] = "DAYS";
|
|
8
10
|
})(NodeMsgWaitResponseTimeType || (NodeMsgWaitResponseTimeType = {}));
|
|
11
|
+
exports.defaultNodeMsgWaitResponse = {
|
|
12
|
+
id: "NodeMsgWaitResponse-{uid}",
|
|
13
|
+
type: Flow_1.NodeType.MSG_WAIT_RESPONSE,
|
|
14
|
+
category: 'message',
|
|
15
|
+
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.",
|
|
16
|
+
tags: [],
|
|
17
|
+
version: 1,
|
|
18
|
+
handlesIn: [
|
|
19
|
+
{
|
|
20
|
+
id: "onStart-{node.id}",
|
|
21
|
+
type: 'target',
|
|
22
|
+
position: 'left',
|
|
23
|
+
name: "IN",
|
|
24
|
+
nameKey: 'NODE_HANDLE_IN'
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
handlesOut: [
|
|
28
|
+
{
|
|
29
|
+
id: "onNext-{node.id}",
|
|
30
|
+
type: 'source',
|
|
31
|
+
position: 'right',
|
|
32
|
+
name: "Next",
|
|
33
|
+
nameKey: 'NODE_HANDLE_NEXT'
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
id: "onTimeOut-{node.id}",
|
|
37
|
+
type: 'source',
|
|
38
|
+
position: 'right',
|
|
39
|
+
name: "Time Out",
|
|
40
|
+
nameKey: 'NODE_HANDLE_TIMEOUT'
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
name: "Wait for Response",
|
|
44
|
+
nameKey: 'NODE_MSG_WAIT_RESPONSE',
|
|
45
|
+
enableStatics: false,
|
|
46
|
+
properties: [
|
|
47
|
+
{
|
|
48
|
+
type: 'number',
|
|
49
|
+
id: 'autoResponseOnTimeOutMinutes',
|
|
50
|
+
label: 'Auto Response on Time Out (Minutes)',
|
|
51
|
+
labelKey: 'NODE_MSG_WAIT_RESPONSE_AUTO_RESPONSE_ON_TIMEOUT_MINUTES',
|
|
52
|
+
optional: false,
|
|
53
|
+
default: 0,
|
|
54
|
+
placeholder: 'Enter the time in minutes'
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
type: 'string',
|
|
58
|
+
id: 'autoResponseOnTimeOutMessage',
|
|
59
|
+
label: 'Auto Response on Time Out (Message)',
|
|
60
|
+
labelKey: 'NODE_MSG_WAIT_RESPONSE_AUTO_RESPONSE_ON_TIMEOUT_MESSAGE',
|
|
61
|
+
optional: false,
|
|
62
|
+
default: '',
|
|
63
|
+
placeholder: 'Enter the auto response message',
|
|
64
|
+
rows: 3
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
type: 'boolean',
|
|
68
|
+
id: 'waitForOtherMessagesEnabled',
|
|
69
|
+
label: 'Wait for Other Messages',
|
|
70
|
+
labelKey: 'NODE_MSG_WAIT_RESPONSE_WAIT_FOR_OTHER_MESSAGES_ENABLED',
|
|
71
|
+
optional: false,
|
|
72
|
+
default: false
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
type: 'number',
|
|
76
|
+
id: 'waitForOtherMessagesTime',
|
|
77
|
+
label: 'Wait for Other Messages (Time)',
|
|
78
|
+
labelKey: 'NODE_MSG_WAIT_RESPONSE_WAIT_FOR_OTHER_MESSAGES_TIME',
|
|
79
|
+
optional: false,
|
|
80
|
+
default: 0,
|
|
81
|
+
placeholder: 'Enter the time in seconds'
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
type: 'boolean',
|
|
85
|
+
id: 'continueAfterEnabled',
|
|
86
|
+
label: 'Continue After',
|
|
87
|
+
labelKey: 'NODE_MSG_WAIT_RESPONSE_CONTINUE_AFTER_ENABLED',
|
|
88
|
+
optional: false,
|
|
89
|
+
default: false
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
type: 'number',
|
|
93
|
+
id: 'continueAfterTime',
|
|
94
|
+
label: 'Continue After (Time)',
|
|
95
|
+
labelKey: 'NODE_MSG_WAIT_RESPONSE_CONTINUE_AFTER_TIME',
|
|
96
|
+
optional: false,
|
|
97
|
+
default: 0,
|
|
98
|
+
placeholder: 'Enter the time in seconds'
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
type: 'options',
|
|
102
|
+
id: 'continueAfterTimeType',
|
|
103
|
+
label: 'Continue After (Time Type)',
|
|
104
|
+
labelKey: 'NODE_MSG_WAIT_RESPONSE_CONTINUE_AFTER_TIME_TYPE',
|
|
105
|
+
optional: false,
|
|
106
|
+
options: [
|
|
107
|
+
{ id: 'MINUTES', label: 'Minutes' },
|
|
108
|
+
{ id: 'HOURS', label: 'Hours' },
|
|
109
|
+
{ id: 'DAYS', label: 'Days' }
|
|
110
|
+
],
|
|
111
|
+
show: {
|
|
112
|
+
continueAfterEnabled: true
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
],
|
|
116
|
+
values: undefined,
|
|
117
|
+
color: '#00bcd4', // Cyan color for the start node
|
|
118
|
+
icon: '',
|
|
119
|
+
badge: undefined,
|
|
120
|
+
hideInput: true,
|
|
121
|
+
hideOutput: false,
|
|
122
|
+
author: '',
|
|
123
|
+
documentation: '',
|
|
124
|
+
};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { INode } from "../Flow";
|
|
2
|
+
export declare const defaultNodeRedirect: INode;
|
|
@@ -1,2 +1,62 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.defaultNodeRedirect = void 0;
|
|
4
|
+
const Flow_1 = require("../Flow");
|
|
5
|
+
exports.defaultNodeRedirect = {
|
|
6
|
+
id: "NodeRedirect-{uid}",
|
|
7
|
+
type: Flow_1.NodeType.REDIRECT,
|
|
8
|
+
category: 'action',
|
|
9
|
+
description: "Node for redirecting the flow to another node or flow.",
|
|
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
|
+
name: "Redirect",
|
|
23
|
+
nameKey: 'NODE_REDIRECT',
|
|
24
|
+
enableStatics: false,
|
|
25
|
+
properties: [
|
|
26
|
+
{
|
|
27
|
+
type: 'string',
|
|
28
|
+
id: 'flowId',
|
|
29
|
+
label: 'Flow ID',
|
|
30
|
+
labelKey: 'NODE_REDIRECT_FLOW_ID',
|
|
31
|
+
optional: false,
|
|
32
|
+
default: '',
|
|
33
|
+
placeholder: 'Enter the flow ID'
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
type: 'string',
|
|
37
|
+
id: 'nodeId',
|
|
38
|
+
label: 'Node ID',
|
|
39
|
+
labelKey: 'NODE_REDIRECT_NODE_ID',
|
|
40
|
+
optional: false,
|
|
41
|
+
default: '',
|
|
42
|
+
placeholder: 'Enter the node ID'
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
type: 'string',
|
|
46
|
+
id: 'nodeName',
|
|
47
|
+
label: 'Node Name',
|
|
48
|
+
labelKey: 'NODE_REDIRECT_NODE_NAME',
|
|
49
|
+
optional: true,
|
|
50
|
+
default: '',
|
|
51
|
+
placeholder: 'Enter the node name (optional)'
|
|
52
|
+
},
|
|
53
|
+
],
|
|
54
|
+
values: undefined,
|
|
55
|
+
color: '#00bcd4', // Cyan color for the start node
|
|
56
|
+
icon: '',
|
|
57
|
+
badge: undefined,
|
|
58
|
+
hideInput: true,
|
|
59
|
+
hideOutput: false,
|
|
60
|
+
author: '',
|
|
61
|
+
documentation: '',
|
|
62
|
+
};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { INode } from "../Flow";
|
|
2
|
+
export declare const defaultNodeSendEmail: INode;
|
|
@@ -1,2 +1,80 @@
|
|
|
1
1
|
"use strict";
|
|
2
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
|
+
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: "Send Email",
|
|
31
|
+
nameKey: 'NODE_SEND_EMAIL',
|
|
32
|
+
enableStatics: false,
|
|
33
|
+
properties: [
|
|
34
|
+
{
|
|
35
|
+
type: 'string',
|
|
36
|
+
id: 'channelId',
|
|
37
|
+
label: 'Channel ID',
|
|
38
|
+
labelKey: 'NODE_SEND_EMAIL_CHANNEL_ID',
|
|
39
|
+
optional: false,
|
|
40
|
+
default: '',
|
|
41
|
+
placeholder: 'Enter the channel ID'
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
type: 'string',
|
|
45
|
+
id: 'to',
|
|
46
|
+
label: 'To',
|
|
47
|
+
labelKey: 'NODE_SEND_EMAIL_TO',
|
|
48
|
+
optional: false,
|
|
49
|
+
default: '',
|
|
50
|
+
placeholder: 'Enter the recipient email address'
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
type: 'string',
|
|
54
|
+
id: 'subject',
|
|
55
|
+
label: 'Subject',
|
|
56
|
+
labelKey: 'NODE_SEND_EMAIL_SUBJECT',
|
|
57
|
+
optional: false,
|
|
58
|
+
default: '',
|
|
59
|
+
placeholder: 'Enter the email subject'
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
type: 'string',
|
|
63
|
+
id: 'body',
|
|
64
|
+
label: 'Body',
|
|
65
|
+
labelKey: 'NODE_SEND_EMAIL_BODY',
|
|
66
|
+
optional: false,
|
|
67
|
+
default: '',
|
|
68
|
+
placeholder: 'Enter the email body',
|
|
69
|
+
rows: 5
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
values: undefined,
|
|
73
|
+
color: '#00bcd4', // Cyan color for the start node
|
|
74
|
+
icon: '',
|
|
75
|
+
badge: undefined,
|
|
76
|
+
hideInput: true,
|
|
77
|
+
hideOutput: false,
|
|
78
|
+
author: '',
|
|
79
|
+
documentation: '',
|
|
80
|
+
};
|
|
@@ -1,9 +1,74 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
+
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: "SQL Query",
|
|
31
|
+
nameKey: 'NODE_SQL_QUERY',
|
|
32
|
+
enableStatics: false,
|
|
33
|
+
properties: [
|
|
34
|
+
{
|
|
35
|
+
type: 'options',
|
|
36
|
+
id: 'dbType',
|
|
37
|
+
label: 'Database Type',
|
|
38
|
+
labelKey: 'NODE_SQL_QUERY_DB_TYPE',
|
|
39
|
+
optional: false,
|
|
40
|
+
default: '',
|
|
41
|
+
options: [
|
|
42
|
+
{ id: 'MSSQL', label: 'MSSQL' },
|
|
43
|
+
{ id: 'MYSQL', label: 'MYSQL' }
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
type: 'string',
|
|
48
|
+
id: 'connectionString',
|
|
49
|
+
label: 'Connection String',
|
|
50
|
+
labelKey: 'NODE_SQL_QUERY_CONNECTION_STRING',
|
|
51
|
+
optional: false,
|
|
52
|
+
default: '',
|
|
53
|
+
placeholder: 'Enter the connection string for the database'
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
type: 'string',
|
|
57
|
+
id: 'query',
|
|
58
|
+
label: 'SQL Query',
|
|
59
|
+
labelKey: 'NODE_SQL_QUERY_QUERY',
|
|
60
|
+
optional: false,
|
|
61
|
+
default: '',
|
|
62
|
+
placeholder: 'Enter the SQL query to execute',
|
|
63
|
+
rows: 5
|
|
64
|
+
}
|
|
65
|
+
],
|
|
66
|
+
values: undefined,
|
|
67
|
+
color: '#00bcd4', // Cyan color for the start node
|
|
68
|
+
icon: '',
|
|
69
|
+
badge: undefined,
|
|
70
|
+
hideInput: true,
|
|
71
|
+
hideOutput: false,
|
|
72
|
+
author: '',
|
|
73
|
+
documentation: '',
|
|
74
|
+
};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { INode } from "../Flow";
|
|
2
|
+
export declare const defaultNodeTimeScheduleControl: INode;
|
|
@@ -1,2 +1,59 @@
|
|
|
1
1
|
"use strict";
|
|
2
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: 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: "onHoliday-{node.id}",
|
|
24
|
+
type: 'source',
|
|
25
|
+
position: 'right',
|
|
26
|
+
name: "Holiday",
|
|
27
|
+
nameKey: 'NODE_HANDLE_HOLIDAY'
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
id: "onAfterHours-{node.id}",
|
|
31
|
+
type: 'source',
|
|
32
|
+
position: 'right',
|
|
33
|
+
name: "After Hours",
|
|
34
|
+
nameKey: 'NODE_HANDLE_AFTER_HOURS'
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
name: "Time Schedule Control",
|
|
38
|
+
nameKey: 'NODE_TIME_SCHEDULE_CONTROL',
|
|
39
|
+
enableStatics: false,
|
|
40
|
+
properties: [
|
|
41
|
+
{
|
|
42
|
+
type: 'string',
|
|
43
|
+
id: 'scheduleId',
|
|
44
|
+
label: 'Schedule ID',
|
|
45
|
+
labelKey: 'NODE_TIME_SCHEDULE_CONTROL_SCHEDULE_ID',
|
|
46
|
+
optional: false,
|
|
47
|
+
default: '',
|
|
48
|
+
placeholder: 'Enter the schedule ID'
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
values: undefined,
|
|
52
|
+
color: '#00bcd4', // Cyan color for the start node
|
|
53
|
+
icon: '',
|
|
54
|
+
badge: undefined,
|
|
55
|
+
hideInput: true,
|
|
56
|
+
hideOutput: false,
|
|
57
|
+
author: '',
|
|
58
|
+
documentation: '',
|
|
59
|
+
};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { INode } from "../Flow";
|
|
2
|
+
export declare const defaultNodeTimeTimer: INode;
|
|
@@ -1,2 +1,75 @@
|
|
|
1
1
|
"use strict";
|
|
2
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
|
+
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: "Timer",
|
|
31
|
+
nameKey: 'NODE_TIME_TIMER',
|
|
32
|
+
enableStatics: false,
|
|
33
|
+
properties: [
|
|
34
|
+
{
|
|
35
|
+
type: 'number',
|
|
36
|
+
id: 'days',
|
|
37
|
+
label: 'Days',
|
|
38
|
+
labelKey: 'NODE_TIME_TIMER_DAYS',
|
|
39
|
+
optional: false,
|
|
40
|
+
default: 0
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
type: 'number',
|
|
44
|
+
id: 'hours',
|
|
45
|
+
label: 'Hours',
|
|
46
|
+
labelKey: 'NODE_TIME_TIMER_HOURS',
|
|
47
|
+
optional: false,
|
|
48
|
+
default: 0
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
type: 'number',
|
|
52
|
+
id: 'minutes',
|
|
53
|
+
label: 'Minutes',
|
|
54
|
+
labelKey: 'NODE_TIME_TIMER_MINUTES',
|
|
55
|
+
optional: false,
|
|
56
|
+
default: 0
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
type: 'number',
|
|
60
|
+
id: 'seconds',
|
|
61
|
+
label: 'Seconds',
|
|
62
|
+
labelKey: 'NODE_TIME_TIMER_SECONDS',
|
|
63
|
+
optional: false,
|
|
64
|
+
default: 0
|
|
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
|
+
};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { INode } from "../Flow";
|
|
2
|
+
export declare const defaultNodeTimeWaitUntil: INode;
|