@trii/types 2.10.474 → 2.10.476

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 (40) hide show
  1. package/dist/Conversations/Flows/Flow.d.ts +129 -55
  2. package/dist/Conversations/Flows/Flow.js +8 -19
  3. package/dist/Conversations/Flows/FlowInfo.d.ts +9 -0
  4. package/dist/Conversations/Flows/FlowInfo.js +2 -0
  5. package/dist/Conversations/Flows/Nodes/NodeAIChatBot.d.ts +2 -18
  6. package/dist/Conversations/Flows/Nodes/NodeAIChatBot.js +47 -0
  7. package/dist/Conversations/Flows/Nodes/NodeApi.d.ts +1 -22
  8. package/dist/Conversations/Flows/Nodes/NodeConditional.d.ts +1 -29
  9. package/dist/Conversations/Flows/Nodes/NodeConditional.js +1 -3
  10. package/dist/Conversations/Flows/Nodes/NodeContactSearch.d.ts +1 -10
  11. package/dist/Conversations/Flows/Nodes/NodeContactUpdate.d.ts +1 -14
  12. package/dist/Conversations/Flows/Nodes/NodeContactUpdate.js +1 -2
  13. package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.d.ts +1 -9
  14. package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.d.ts +1 -7
  15. package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.d.ts +1 -17
  16. package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.js +2 -3
  17. package/dist/Conversations/Flows/Nodes/NodeFillForm.d.ts +1 -14
  18. package/dist/Conversations/Flows/Nodes/NodeFillTicket.d.ts +1 -24
  19. package/dist/Conversations/Flows/Nodes/NodeFillTicket.js +1 -2
  20. package/dist/Conversations/Flows/Nodes/NodeMsgText.d.ts +1 -49
  21. package/dist/Conversations/Flows/Nodes/NodeMsgText.js +3 -8
  22. package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.d.ts +1 -20
  23. package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.js +1 -2
  24. package/dist/Conversations/Flows/Nodes/NodeRedirect.d.ts +1 -10
  25. package/dist/Conversations/Flows/Nodes/NodeSendEmail.d.ts +1 -11
  26. package/dist/Conversations/Flows/Nodes/NodeSqlQuery.d.ts +0 -11
  27. package/dist/Conversations/Flows/Nodes/NodeStart.d.ts +2 -35
  28. package/dist/Conversations/Flows/Nodes/NodeStart.js +130 -213
  29. package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.d.ts +1 -8
  30. package/dist/Conversations/Flows/Nodes/NodeTimeTimer.d.ts +1 -11
  31. package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.d.ts +1 -8
  32. package/dist/Conversations/Flows/Nodes/NodeToolCalculator.d.ts +1 -7
  33. package/dist/Conversations/Flows/Nodes/NodeToolContacts.d.ts +1 -10
  34. package/dist/Conversations/Flows/Nodes/NodeToolFunction.d.ts +1 -8
  35. package/dist/Conversations/Flows/Nodes/NodeToolGoogleCalendar.d.ts +1 -19
  36. package/dist/Conversations/Flows/Nodes/NodeToolGoogleMaps.d.ts +1 -13
  37. package/dist/Conversations/Flows/Nodes/NodeToolKnowledge.d.ts +1 -12
  38. package/dist/Conversations/Flows/Nodes/NodeToolMapsCheckPolygon.d.ts +1 -14
  39. package/dist/Conversations/Flows/Nodes/NodeToolMcpClient.d.ts +1 -8
  40. package/package.json +1 -1
@@ -1,20 +1 @@
1
- import { NodeBase, NodeType } from "../Flow";
2
- export interface NodeMsgWaitResponse extends NodeBase {
3
- type: NodeType.MSG_WAIT_RESPONSE;
4
- handles: ['onNext', 'onTimeOut'];
5
- category: 'action';
6
- 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.";
7
- autoResponseOnTimeOutMinutes: number | 0;
8
- autoResponseOnTimeOutMessage: string | '';
9
- waitForOtherMessagesEnabled: boolean | false;
10
- waitForOtherMessagesTime: number | 0;
11
- continueAfterEnabled: boolean | false;
12
- continueAfterTime: number | 0;
13
- continueAfterTimeType: NodeMsgWaitResponseTimeType;
14
- saveAs?: string | null;
15
- }
16
- export declare enum NodeMsgWaitResponseTimeType {
17
- MINUTES = 0,
18
- HOURS = 1,
19
- DAYS = 2
20
- }
1
+ export {};
@@ -1,9 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NodeMsgWaitResponseTimeType = void 0;
4
3
  var NodeMsgWaitResponseTimeType;
5
4
  (function (NodeMsgWaitResponseTimeType) {
6
5
  NodeMsgWaitResponseTimeType[NodeMsgWaitResponseTimeType["MINUTES"] = 0] = "MINUTES";
7
6
  NodeMsgWaitResponseTimeType[NodeMsgWaitResponseTimeType["HOURS"] = 1] = "HOURS";
8
7
  NodeMsgWaitResponseTimeType[NodeMsgWaitResponseTimeType["DAYS"] = 2] = "DAYS";
9
- })(NodeMsgWaitResponseTimeType || (exports.NodeMsgWaitResponseTimeType = NodeMsgWaitResponseTimeType = {}));
8
+ })(NodeMsgWaitResponseTimeType || (NodeMsgWaitResponseTimeType = {}));
@@ -1,10 +1 @@
1
- import { NodeBase, NodeType } from "../Flow";
2
- export interface NodeRedirect extends NodeBase {
3
- type: NodeType.REDIRECT;
4
- handles: ['onNext'];
5
- category: 'action';
6
- description: "Node for redirecting the flow to another node or flow.";
7
- flowId?: string | '';
8
- nodeId?: string | '';
9
- nodeName?: string | '';
10
- }
1
+ export {};
@@ -1,11 +1 @@
1
- import { NodeBase, NodeType } from "../Flow";
2
- export interface NodeSendEmail extends NodeBase {
3
- type: NodeType.SEND_EMAIL;
4
- handles: ['onNext'];
5
- category: 'action';
6
- description: "Node for sending emails, allowing the flow to communicate via email with specified recipients.";
7
- channelId?: string | "";
8
- to?: string | "";
9
- subject?: string | "";
10
- body?: string | "";
11
- }
1
+ export {};
@@ -1,14 +1,3 @@
1
- import { NodeBase, NodeType } from "../Flow";
2
- export interface NodeSqlQuery extends NodeBase {
3
- type: NodeType.SQL_QUERY;
4
- handles: ['onOk', 'onError'];
5
- category: 'action';
6
- description: "Node for executing SQL queries against a database, allowing for data retrieval, manipulation, and interaction with relational databases.";
7
- dbType: SqlQueryDbType;
8
- connectionString?: string | "";
9
- query?: string | "";
10
- saveAs?: string | "";
11
- }
12
1
  export declare enum SqlQueryDbType {
13
2
  NONE = 0,
14
3
  MSSQL = 1,
@@ -1,35 +1,2 @@
1
- import { NodeBase, NodeType } from "../Flow";
2
- export interface NodeStart extends NodeBase {
3
- type: NodeType.START;
4
- handles: ['onNext'];
5
- category: 'trigger';
6
- description: "Node that triggers the flow based on specific conditions or events, such as conversation status changes or contact updates.";
7
- trigger: NodeStartTrigger;
8
- filters: NodeStartCondition[];
9
- onlyOnePerContact: boolean;
10
- onlyOnePerContactAddress: boolean;
11
- }
12
- export declare enum NodeStartTrigger {
13
- NULL = 0,
14
- CONVERSATION_OPENED = 101,
15
- CONVERSATION_CLOSED = 102,
16
- CONTACT_TAG_UPDATED = 200,
17
- CONTACT_FIELD_UPDATED = 201,
18
- CONTACT_FIELD_DATES = 202,
19
- CONTACT_EVENT_DATE = 301
20
- }
21
- export declare class NodeStartCondition {
22
- id: string;
23
- field: string;
24
- condition: string;
25
- value: string;
26
- }
27
- export declare const NodeStartConstants: {
28
- get_filter_fields: (Trigger: NodeStartTrigger) => {
29
- fields: any[];
30
- };
31
- get_filter_conditions: (Trigger: NodeStartTrigger, filter: string) => {
32
- conditions: any[];
33
- values: any[];
34
- };
35
- };
1
+ import { INode } from "../Flow";
2
+ export declare const defaultNodeStartNewConversation: INode;
@@ -1,222 +1,139 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NodeStartConstants = exports.NodeStartCondition = exports.NodeStartTrigger = void 0;
4
- var NodeStartTrigger;
5
- (function (NodeStartTrigger) {
6
- NodeStartTrigger[NodeStartTrigger["NULL"] = 0] = "NULL";
7
- //MESSAGE_NEW = 51,
8
- NodeStartTrigger[NodeStartTrigger["CONVERSATION_OPENED"] = 101] = "CONVERSATION_OPENED";
9
- NodeStartTrigger[NodeStartTrigger["CONVERSATION_CLOSED"] = 102] = "CONVERSATION_CLOSED";
10
- NodeStartTrigger[NodeStartTrigger["CONTACT_TAG_UPDATED"] = 200] = "CONTACT_TAG_UPDATED";
11
- // CONTACT_TAG_ADD = 201,
12
- // CONTACT_TAG_DEL = 202,
13
- NodeStartTrigger[NodeStartTrigger["CONTACT_FIELD_UPDATED"] = 201] = "CONTACT_FIELD_UPDATED";
14
- NodeStartTrigger[NodeStartTrigger["CONTACT_FIELD_DATES"] = 202] = "CONTACT_FIELD_DATES";
15
- NodeStartTrigger[NodeStartTrigger["CONTACT_EVENT_DATE"] = 301] = "CONTACT_EVENT_DATE";
16
- })(NodeStartTrigger || (exports.NodeStartTrigger = NodeStartTrigger = {}));
17
- class NodeStartCondition {
18
- }
19
- exports.NodeStartCondition = NodeStartCondition;
20
- exports.NodeStartConstants = {
21
- get_filter_fields: function (Trigger) {
22
- let data = {
23
- fields: []
24
- };
25
- switch (Trigger) {
26
- // case NodeStartTrigger.MESSAGE_NEW:
27
- // {
28
- // data.fields = [
29
- // 'FLOW_NODE_START_FILTER_ORIGIN',
30
- // 'FLOW_NODE_START_FILTER_CHANNEL'
31
- // ]
32
- // break;
33
- // }
34
- case NodeStartTrigger.CONVERSATION_OPENED:
35
- {
36
- data.fields = [
37
- 'FLOW_NODE_START_FILTER_ORIGIN',
38
- 'FLOW_NODE_START_FILTER_CHANNEL',
39
- 'FLOW_NODE_START_FILTER_MESSAGE'
40
- ];
41
- break;
42
- }
43
- case NodeStartTrigger.CONVERSATION_CLOSED:
44
- {
45
- data.fields = [
46
- 'FLOW_NODE_START_FILTER_ORIGIN',
47
- 'FLOW_NODE_START_FILTER_CHANNEL',
48
- 'FLOW_NODE_START_FILTER_END',
49
- ];
50
- break;
51
- }
52
- case NodeStartTrigger.CONTACT_TAG_UPDATED:
53
- {
54
- data.fields = [
55
- 'FLOW_NODE_START_FILTER_TAGUPDATED'
56
- ];
57
- break;
58
- }
59
- case NodeStartTrigger.CONTACT_FIELD_UPDATED:
60
- {
61
- data.fields = [
62
- 'FLOW_NODE_START_FILTER_FIELDUPDATED'
63
- ];
64
- break;
65
- }
66
- case NodeStartTrigger.CONTACT_FIELD_DATES:
67
- {
68
- data.fields = [
69
- 'FLOW_NODE_START_FILTER_DATEFIELDUPDATED'
70
- ];
71
- break;
72
- }
73
- case NodeStartTrigger.CONTACT_EVENT_DATE:
74
- {
75
- data.fields = [
76
- 'FLOW_NODE_START_FILTER_EVENTDATE',
77
- 'FLOW_NODE_START_FILTER_EVENTTYPE'
78
- ];
79
- break;
80
- }
81
- default:
82
- break;
3
+ exports.defaultNodeStartNewConversation = void 0;
4
+ const Flow_1 = require("../Flow");
5
+ exports.defaultNodeStartNewConversation = {
6
+ id: "StartNewConversation-{uid}",
7
+ type: Flow_1.NodeType.START_CONVERSATION_OPENED,
8
+ category: 'trigger',
9
+ description: "Triggered when a new conversation is created",
10
+ tags: [],
11
+ version: 1,
12
+ handlesIn: [],
13
+ handlesOut: [
14
+ {
15
+ id: "onStart-{node.id}",
16
+ type: 'source',
17
+ position: 'right',
18
+ name: "Start",
19
+ nameKey: 'NODE_START_START'
83
20
  }
84
- return data;
85
- },
86
- get_filter_conditions: function (Trigger, filter) {
87
- let data = {
88
- conditions: [],
89
- values: [],
90
- };
91
- switch (Trigger) {
92
- // case NodeStartTrigger.MESSAGE_NEW:
93
- // {
94
- // if (filter === 'FLOW_NODE_START_FILTER_ORIGIN') {
95
- // data.conditions = [
96
- // 'FLOW_NODE_START_CONDITION_EQUAL',
97
- // ];
98
- // data.values = [
99
- // 'FLOW_NODE_START_VALUE_AGENT',
100
- // 'FLOW_NODE_START_VALUE_CONTACT',
101
- // ];
102
- // }
103
- // if (filter === 'FLOW_NODE_START_FILTER_CHANNEL') {
104
- // data.conditions = [
105
- // 'FLOW_NODE_START_CONDITION_EQUAL',
106
- // ];
107
- // data.values = [];
108
- // }
109
- // break;
110
- // }
111
- case NodeStartTrigger.CONVERSATION_OPENED:
112
- {
113
- if (filter === 'FLOW_NODE_START_FILTER_ORIGIN') {
114
- data.conditions = [
115
- 'FLOW_NODE_START_CONDITION_EQUAL',
116
- ];
117
- data.values = [
118
- 'FLOW_NODE_START_VALUE_AGENT',
119
- 'FLOW_NODE_START_VALUE_CONTACT',
120
- ];
121
- }
122
- if (filter === 'FLOW_NODE_START_FILTER_CHANNEL') {
123
- data.conditions = [
124
- 'FLOW_NODE_START_CONDITION_EQUAL',
125
- ];
126
- data.values = [];
127
- }
128
- if (filter === 'FLOW_NODE_START_FILTER_MESSAGE') {
129
- data.conditions = [
130
- 'FLOW_NODE_START_CONDITION_EQUAL',
131
- 'FLOW_NODE_START_CONDITION_CONTAINS',
132
- ];
133
- data.values = [];
134
- }
135
- break;
136
- }
137
- case NodeStartTrigger.CONVERSATION_CLOSED:
138
- {
139
- if (filter === 'FLOW_NODE_START_FILTER_ORIGIN') {
140
- data.conditions = [
141
- 'FLOW_NODE_START_CONDITION_EQUAL',
142
- ];
143
- data.values = [
144
- 'FLOW_NODE_START_VALUE_AGENT',
145
- 'FLOW_NODE_START_VALUE_CONTACT',
146
- ];
147
- }
148
- else if (filter === 'FLOW_NODE_START_FILTER_CHANNEL') {
149
- data.conditions = [
150
- 'FLOW_NODE_START_CONDITION_EQUAL',
151
- ];
152
- data.values = [
153
- 'FLOW_NODE_START_VALUE_AGENT',
154
- 'FLOW_NODE_START_VALUE_CONTACT',
155
- ];
156
- }
157
- else if (filter === 'FLOW_NODE_START_FILTER_END') {
158
- data.conditions = [
159
- 'FLOW_NODE_START_CONDITION_EQUAL',
160
- 'FLOW_NODE_START_CONDITION_NOTEQUAL',
161
- ];
162
- data.values = [];
163
- }
164
- break;
165
- }
166
- case NodeStartTrigger.CONTACT_TAG_UPDATED:
21
+ ],
22
+ name: "START BY NEW CONVERSATION",
23
+ nameKey: 'NODE_START_NAME',
24
+ enableStatics: false,
25
+ properties: [
26
+ {
27
+ type: 'array',
28
+ id: 'conditions',
29
+ label: 'Conditions',
30
+ labelKey: 'NODE_START_CONDITIONS',
31
+ "optional": true,
32
+ array: [
167
33
  {
168
- if (filter === 'FLOW_NODE_START_FILTER_TAGUPDATED') {
169
- data.conditions = [
170
- 'FLOW_NODE_START_CONDITION_ADDED',
171
- 'FLOW_NODE_START_CONDITION_REMOVED',
172
- ];
173
- data.values = [];
174
- }
175
- break;
176
- }
177
- case NodeStartTrigger.CONTACT_FIELD_UPDATED:
34
+ type: 'options',
35
+ id: 'field',
36
+ label: 'Field',
37
+ labelKey: 'NODE_START_FIELD',
38
+ options: [
39
+ {
40
+ "id": "origin",
41
+ "label": "Origin",
42
+ },
43
+ {
44
+ "id": "channel",
45
+ "label": "Channel",
46
+ },
47
+ {
48
+ "id": "message",
49
+ "label": "Message",
50
+ }
51
+ ]
52
+ },
178
53
  {
179
- if (filter === 'FLOW_NODE_START_FILTER_FIELDUPDATED') {
180
- data.conditions = [
181
- 'FLOW_NODE_START_CONDITION_EQUAL',
182
- ];
183
- data.values = [];
184
- }
185
- break;
186
- }
187
- case NodeStartTrigger.CONTACT_FIELD_DATES:
54
+ type: 'options',
55
+ id: 'logicalConditional',
56
+ label: 'logicalConditional',
57
+ labelKey: 'NODE_START_LOGICAL_CONDITIONAL',
58
+ options: [
59
+ {
60
+ "label": "=",
61
+ "id": "="
62
+ }
63
+ ],
64
+ hide: {
65
+ conditions: {
66
+ field: "message"
67
+ }
68
+ },
69
+ },
188
70
  {
189
- if (filter === 'FLOW_NODE_START_FILTER_DATEFIELDUPDATED') {
190
- data.conditions = [
191
- 'FLOW_NODE_START_CONDITION_EQUAL',
192
- 'FLOW_NODE_START_CONDITION_BEFORE',
193
- 'FLOW_NODE_START_CONDITION_AFTER',
194
- ];
195
- data.values = [];
196
- }
197
- break;
198
- }
199
- case NodeStartTrigger.CONTACT_EVENT_DATE:
71
+ type: 'options',
72
+ id: 'logicalConditional',
73
+ label: 'logicalConditional',
74
+ labelKey: 'NODE_START_LOGICAL_CONDITIONAL',
75
+ options: [
76
+ {
77
+ "label": "=",
78
+ "id": "="
79
+ },
80
+ {
81
+ "label": "Include",
82
+ "id": "include"
83
+ }
84
+ ],
85
+ hide: {
86
+ conditions: {
87
+ field: "message"
88
+ }
89
+ },
90
+ },
200
91
  {
201
- if (filter === 'FLOW_NODE_START_FILTER_EVENTDATE') {
202
- data.conditions = [
203
- 'FLOW_NODE_START_CONDITION_EQUAL',
204
- 'FLOW_NODE_START_CONDITION_BEFORE',
205
- 'FLOW_NODE_START_CONDITION_AFTER',
206
- ];
207
- data.values = [];
208
- }
209
- else if (filter === 'FLOW_NODE_START_FILTER_EVENTTYPE') {
210
- data.conditions = [
211
- 'FLOW_NODE_START_CONDITION_EQUAL',
212
- ];
213
- data.values = [];
214
- }
215
- break;
216
- }
217
- default:
218
- break;
92
+ type: 'options',
93
+ id: 'value',
94
+ label: 'logicalConditional',
95
+ labelKey: 'NODE_START_LOGICAL_CONDITIONAL',
96
+ options: [
97
+ {
98
+ "id": "agent",
99
+ "label": "Agent",
100
+ },
101
+ {
102
+ "id": "contact",
103
+ "label": "Contact",
104
+ }
105
+ ],
106
+ show: {
107
+ conditions: {
108
+ field: "origin"
109
+ }
110
+ },
111
+ },
112
+ ],
113
+ },
114
+ {
115
+ type: 'boolean',
116
+ id: 'onlyOnePerContact',
117
+ label: 'Run only one per contact',
118
+ labelKey: 'NODE_START_ONLY_ONE_PER_CONTACT',
119
+ optional: false,
120
+ default: false
121
+ },
122
+ {
123
+ type: 'boolean',
124
+ id: 'onlyOnePerContactAddress',
125
+ label: 'Run only one per contact address',
126
+ labelKey: 'NODE_START_ONLY_ONE_PER_CONTACT_ADDRESS',
127
+ optional: false,
128
+ default: false
219
129
  }
220
- return data;
221
- }
130
+ ],
131
+ values: undefined,
132
+ color: '#00bcd4', // Cyan color for the start node
133
+ icon: '',
134
+ badge: undefined,
135
+ hideInput: true,
136
+ hideOutput: false,
137
+ author: '',
138
+ documentation: '',
222
139
  };
@@ -1,8 +1 @@
1
- import { NodeBase, NodeType } from "../Flow";
2
- export interface NodeTimeScheduleControl extends NodeBase {
3
- type: NodeType.TIME_SCHEDULE_CONTROL;
4
- handles: ['onAfterHours', 'onHoliday', '{type}-{id}'];
5
- category: 'action';
6
- description: "Node for controlling the flow based on time schedules, such as handling after-hours, holidays, or specific time ranges.";
7
- scheduleId?: string | '';
8
- }
1
+ export {};
@@ -1,11 +1 @@
1
- import { NodeBase, NodeType } from "../Flow";
2
- export interface NodeTimeTimer extends NodeBase {
3
- type: NodeType.TIME_TIMER;
4
- handles: ['onNext'];
5
- category: 'action';
6
- description: "Node for implementing a timer that triggers after a specified duration, allowing for timed actions or delays in the flow.";
7
- days?: number | 0;
8
- hours?: number | 0;
9
- minutes?: number | 0;
10
- seconds?: number | 0;
11
- }
1
+ export {};
@@ -1,8 +1 @@
1
- import { NodeBase, NodeType } from "../Flow";
2
- export interface NodeTimeWaitUntil extends NodeBase {
3
- type: NodeType.TIME_WAIT_UNTIL;
4
- handles: ['onNext'];
5
- category: 'action';
6
- description: "Node for pausing the flow until a specified time or condition is met, allowing for synchronization with external events or schedules.";
7
- scheduleId?: string | '';
8
- }
1
+ export {};
@@ -1,7 +1 @@
1
- import { NodeBase, NodeType } from '../Flow';
2
- export interface NodeToolCalculator extends NodeBase {
3
- type: NodeType.TOOL_GOOGLE_MAPS;
4
- handles: [];
5
- category: 'tool';
6
- description: "Tool for performing calculations, such as basic arithmetic operations, complex mathematical functions, or unit conversions.";
7
- }
1
+ export {};
@@ -1,10 +1 @@
1
- import { NodeBase, NodeType } from '../Flow';
2
- export interface NodeToolTriiContacts extends NodeBase {
3
- type: NodeType.TOOL_TRII_CONTACTS;
4
- handles: [];
5
- category: 'tool';
6
- description: "Tool for managing contacts, such as adding, editing, and searching contacts in Trii Contacts.";
7
- allowAdd?: boolean | false;
8
- allowEdit?: boolean | false;
9
- allowSearch?: boolean | false;
10
- }
1
+ export {};
@@ -1,8 +1 @@
1
- import { NodeBase, NodeType } from '../Flow';
2
- export interface NodeToolFunction extends NodeBase {
3
- type: NodeType.TOOL_FUNCTION;
4
- handles: [];
5
- category: 'tool';
6
- description: "Tool for executing custom JavaScript functions.";
7
- javascriptCode: string | '';
8
- }
1
+ export {};
@@ -1,19 +1 @@
1
- import { NodeBase, NodeType } from '../Flow';
2
- export interface NodeToolGoogleCalendar extends NodeBase {
3
- type: NodeType.TOOL_GOOGLE_CALENDAR;
4
- handles: ['onNext'];
5
- category: 'tool';
6
- description: "Tool for interacting with Google Calendar, allowing for event management such as adding, editing, and deleting events.";
7
- authCredentialId?: string | null;
8
- eventsAdd?: boolean | false;
9
- eventsEdit?: boolean | false;
10
- eventsGet?: boolean | false;
11
- eventsSearch?: boolean | false;
12
- eventsDelete?: boolean | false;
13
- calendarList?: boolean | false;
14
- polygonsId?: string | null;
15
- polygonsName?: string | null;
16
- placeSearch?: boolean | false;
17
- variables?: string | null;
18
- saveAs?: string | null;
19
- }
1
+ export {};
@@ -1,13 +1 @@
1
- import { NodeBase, NodeType } from '../Flow';
2
- export interface NodeToolGoogleMaps extends NodeBase {
3
- type: NodeType.TOOL_GOOGLE_MAPS;
4
- handles: ['onNext'];
5
- category: 'tool';
6
- polygonsEnable?: boolean | false;
7
- polygonsId?: string | null;
8
- polygonsName?: string | null;
9
- placeSearch?: boolean | false;
10
- authCredentialId?: string | null;
11
- variables?: string | null;
12
- saveAs?: string | null;
13
- }
1
+ export {};
@@ -1,12 +1 @@
1
- import { NodeBase, NodeType } from '../Flow';
2
- export interface NodeToolKnowledge extends NodeBase {
3
- type: NodeType.TOOL_KNOWLEDGE;
4
- handles: [];
5
- category: 'tool';
6
- description: 'Knowledge Base Tool Node';
7
- stores: NodeToolKnowledgeStore[];
8
- }
9
- export interface NodeToolKnowledgeStore {
10
- storeId: string | '';
11
- storeName: string | '';
12
- }
1
+ export {};
@@ -1,14 +1 @@
1
- import { NodeBase, NodeType } from '../Flow';
2
- export interface NodeToolMapsCheckPolygon extends NodeBase {
3
- type: NodeType.TOOL_MAPS_CHECK_POLYGON;
4
- handles: [];
5
- category: 'tool';
6
- description: "Check if a point is inside a polygon defined by its ID. Useful for geofencing and location-based services.";
7
- maps: NodeToolMapsCheckPolygonItem[];
8
- }
9
- export interface NodeToolMapsCheckPolygonItem {
10
- mapId: string;
11
- mapName: string;
12
- scheduleId?: string | null;
13
- price?: number | null;
14
- }
1
+ export {};
@@ -1,8 +1 @@
1
- import { NodeBase, NodeType } from '../Flow';
2
- export interface NodeToolMcpClient extends NodeBase {
3
- type: NodeType.TOOL_MCP_CLIENT;
4
- handles: [];
5
- category: 'tool';
6
- description: "Tool for MCP Client operations, such as sending messages or managing conversations.";
7
- urlServer: string | '';
8
- }
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trii/types",
3
- "version": "2.10.474",
3
+ "version": "2.10.476",
4
4
  "description": "Types definitions for Trii projects - ",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",