@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.
Files changed (56) hide show
  1. package/dist/Conversations/Flows/Definitions.d.ts +1 -0
  2. package/dist/Conversations/Flows/Definitions.js +120 -16
  3. package/dist/Conversations/Flows/Flow.d.ts +9 -1
  4. package/dist/Conversations/Flows/Flow.js +4 -0
  5. package/dist/Conversations/Flows/Nodes/NodeAIChatBot.js +124 -15
  6. package/dist/Conversations/Flows/Nodes/NodeApi.d.ts +2 -1
  7. package/dist/Conversations/Flows/Nodes/NodeApi.js +175 -0
  8. package/dist/Conversations/Flows/Nodes/NodeConditional.d.ts +2 -1
  9. package/dist/Conversations/Flows/Nodes/NodeConditional.js +94 -16
  10. package/dist/Conversations/Flows/Nodes/NodeContactSearch.d.ts +2 -1
  11. package/dist/Conversations/Flows/Nodes/NodeContactSearch.js +62 -0
  12. package/dist/Conversations/Flows/Nodes/NodeContactUpdate.d.ts +2 -1
  13. package/dist/Conversations/Flows/Nodes/NodeContactUpdate.js +62 -5
  14. package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.d.ts +2 -1
  15. package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.js +59 -0
  16. package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.d.ts +2 -1
  17. package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.js +40 -0
  18. package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.d.ts +2 -1
  19. package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.js +71 -9
  20. package/dist/Conversations/Flows/Nodes/NodeFillForm.d.ts +2 -1
  21. package/dist/Conversations/Flows/Nodes/NodeFillForm.js +63 -0
  22. package/dist/Conversations/Flows/Nodes/NodeMsgReply.d.ts +3 -0
  23. package/dist/Conversations/Flows/Nodes/NodeMsgReply.js +123 -0
  24. package/dist/Conversations/Flows/Nodes/NodeMsgSend.d.ts +3 -0
  25. package/dist/Conversations/Flows/Nodes/NodeMsgSend.js +165 -0
  26. package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.d.ts +2 -1
  27. package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.js +116 -0
  28. package/dist/Conversations/Flows/Nodes/NodeRedirect.d.ts +2 -1
  29. package/dist/Conversations/Flows/Nodes/NodeRedirect.js +60 -0
  30. package/dist/Conversations/Flows/Nodes/NodeSendEmail.d.ts +2 -1
  31. package/dist/Conversations/Flows/Nodes/NodeSendEmail.js +78 -0
  32. package/dist/Conversations/Flows/Nodes/NodeSqlQuery.d.ts +2 -5
  33. package/dist/Conversations/Flows/Nodes/NodeSqlQuery.js +72 -7
  34. package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.d.ts +2 -1
  35. package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.js +57 -0
  36. package/dist/Conversations/Flows/Nodes/NodeTimeTimer.d.ts +2 -1
  37. package/dist/Conversations/Flows/Nodes/NodeTimeTimer.js +73 -0
  38. package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.d.ts +2 -1
  39. package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.js +48 -0
  40. package/dist/Conversations/Flows/Nodes/NodeToolCalculator.d.ts +2 -1
  41. package/dist/Conversations/Flows/Nodes/NodeToolCalculator.js +32 -0
  42. package/dist/Conversations/Flows/Nodes/NodeToolContacts.d.ts +2 -1
  43. package/dist/Conversations/Flows/Nodes/NodeToolContacts.js +54 -0
  44. package/dist/Conversations/Flows/Nodes/NodeToolFunction.d.ts +2 -1
  45. package/dist/Conversations/Flows/Nodes/NodeToolFunction.js +40 -0
  46. package/dist/Conversations/Flows/Nodes/NodeToolGoogleCalendar.d.ts +2 -1
  47. package/dist/Conversations/Flows/Nodes/NodeToolGoogleCalendar.js +82 -0
  48. package/dist/Conversations/Flows/Nodes/NodeToolKnowledge.d.ts +2 -1
  49. package/dist/Conversations/Flows/Nodes/NodeToolKnowledge.js +47 -0
  50. package/dist/Conversations/Flows/Nodes/NodeToolMapsCheckPolygon.d.ts +2 -1
  51. package/dist/Conversations/Flows/Nodes/NodeToolMapsCheckPolygon.js +54 -0
  52. package/dist/Conversations/Flows/Nodes/NodeToolMcpClient.d.ts +2 -1
  53. package/dist/Conversations/Flows/Nodes/NodeToolMcpClient.js +40 -0
  54. package/dist/Conversations/Flows/Nodes/index.d.ts +2 -3
  55. package/dist/Conversations/Flows/Nodes/index.js +2 -3
  56. package/package.json +1 -1
@@ -1,18 +1,96 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- class NodeConditionalCondition {
4
- }
5
- var NodeConditionalOperator;
6
- (function (NodeConditionalOperator) {
7
- NodeConditionalOperator[NodeConditionalOperator["NULL"] = 0] = "NULL";
8
- NodeConditionalOperator[NodeConditionalOperator["LESS_THAN"] = 1] = "LESS_THAN";
9
- NodeConditionalOperator[NodeConditionalOperator["LESS_THAN_EQUAL"] = 2] = "LESS_THAN_EQUAL";
10
- NodeConditionalOperator[NodeConditionalOperator["EQUAL"] = 3] = "EQUAL";
11
- NodeConditionalOperator[NodeConditionalOperator["GREATER_THAN_EQUAL"] = 4] = "GREATER_THAN_EQUAL";
12
- NodeConditionalOperator[NodeConditionalOperator["GREATER_THAN"] = 5] = "GREATER_THAN";
13
- NodeConditionalOperator[NodeConditionalOperator["START_WITH"] = 6] = "START_WITH";
14
- NodeConditionalOperator[NodeConditionalOperator["END_WITH"] = 7] = "END_WITH";
15
- NodeConditionalOperator[NodeConditionalOperator["CONTAINS"] = 8] = "CONTAINS";
16
- NodeConditionalOperator[NodeConditionalOperator["NOT_CONTAINS"] = 9] = "NOT_CONTAINS";
17
- NodeConditionalOperator[NodeConditionalOperator["ANY_VALUE"] = 10] = "ANY_VALUE";
18
- })(NodeConditionalOperator || (NodeConditionalOperator = {}));
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
- export {};
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
- export {};
1
+ import { INode } from "../Flow";
2
+ export declare const defaultNodeContactUpdate: INode;
@@ -1,7 +1,64 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- var NodeContactUpdateAction;
4
- (function (NodeContactUpdateAction) {
5
- NodeContactUpdateAction[NodeContactUpdateAction["REPLACE"] = 0] = "REPLACE";
6
- NodeContactUpdateAction[NodeContactUpdateAction["ADD"] = 1] = "ADD";
7
- })(NodeContactUpdateAction || (NodeContactUpdateAction = {}));
3
+ exports.defaultNodeContactUpdate = void 0;
4
+ const Flow_1 = require("../Flow");
5
+ exports.defaultNodeContactUpdate = {
6
+ id: "NodeContactUpdate-{uid}",
7
+ type: Flow_1.NodeType.CONTACT_UPDATE,
8
+ category: 'action',
9
+ description: "Node for updating contact information in 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: "Contact Update Node",
31
+ nameKey: 'NODE_CONTACT_UPDATE_NAME',
32
+ enableStatics: false,
33
+ properties: [
34
+ {
35
+ type: 'options',
36
+ id: 'contactFieldId',
37
+ label: 'Contact Field ID',
38
+ labelKey: 'NODE_CONTACT_UPDATE_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: 'valueToUpdate',
49
+ label: 'Value to Update',
50
+ labelKey: 'NODE_CONTACT_UPDATE_VALUE_TO_UPDATE',
51
+ optional: false,
52
+ default: '',
53
+ placeholder: 'Enter the value to update 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
- export {};
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
- export {};
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
- export {};
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
- var NodeContactUpdateConverFields;
4
- (function (NodeContactUpdateConverFields) {
5
- NodeContactUpdateConverFields[NodeContactUpdateConverFields["TAG"] = 0] = "TAG";
6
- })(NodeContactUpdateConverFields || (NodeContactUpdateConverFields = {}));
7
- var NodeConversationUpdateAction;
8
- (function (NodeConversationUpdateAction) {
9
- NodeConversationUpdateAction[NodeConversationUpdateAction["REPLACE"] = 0] = "REPLACE";
10
- NodeConversationUpdateAction[NodeConversationUpdateAction["ADD"] = 1] = "ADD";
11
- })(NodeConversationUpdateAction || (NodeConversationUpdateAction = {}));
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
- export {};
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,3 @@
1
+ import { INode } from "../Flow";
2
+ export declare const defaultNodeMsgTextReply: INode;
3
+ export declare const defaultNodeMsgTemplateReply: INode;
@@ -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
+ };
@@ -0,0 +1,3 @@
1
+ import { INode } from "../Flow";
2
+ export declare const defaultNodeMsgText: INode;
3
+ export declare const defaultNodeMsgTemplate: INode;