@trii/types 2.10.481 → 2.10.483

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 (48) hide show
  1. package/dist/Conversations/Flows/Definitions.d.ts +1 -0
  2. package/dist/Conversations/Flows/Definitions.js +106 -13
  3. package/dist/Conversations/Flows/Flow.d.ts +11 -3
  4. package/dist/Conversations/Flows/Flow.js +4 -0
  5. package/dist/Conversations/Flows/Nodes/NodeContactUpdate.js +0 -5
  6. package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.d.ts +2 -1
  7. package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.js +59 -0
  8. package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.d.ts +2 -1
  9. package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.js +40 -0
  10. package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.d.ts +2 -1
  11. package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.js +71 -9
  12. package/dist/Conversations/Flows/Nodes/NodeFillForm.d.ts +2 -1
  13. package/dist/Conversations/Flows/Nodes/NodeFillForm.js +63 -0
  14. package/dist/Conversations/Flows/Nodes/NodeMsgReply.d.ts +3 -0
  15. package/dist/Conversations/Flows/Nodes/NodeMsgReply.js +123 -0
  16. package/dist/Conversations/Flows/Nodes/NodeMsgSend.d.ts +3 -0
  17. package/dist/Conversations/Flows/Nodes/NodeMsgSend.js +165 -0
  18. package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.d.ts +2 -1
  19. package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.js +116 -0
  20. package/dist/Conversations/Flows/Nodes/NodeRedirect.d.ts +2 -1
  21. package/dist/Conversations/Flows/Nodes/NodeRedirect.js +60 -0
  22. package/dist/Conversations/Flows/Nodes/NodeSendEmail.d.ts +2 -1
  23. package/dist/Conversations/Flows/Nodes/NodeSendEmail.js +78 -0
  24. package/dist/Conversations/Flows/Nodes/NodeSqlQuery.d.ts +2 -5
  25. package/dist/Conversations/Flows/Nodes/NodeSqlQuery.js +72 -7
  26. package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.d.ts +2 -1
  27. package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.js +57 -0
  28. package/dist/Conversations/Flows/Nodes/NodeTimeTimer.d.ts +2 -1
  29. package/dist/Conversations/Flows/Nodes/NodeTimeTimer.js +73 -0
  30. package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.d.ts +2 -1
  31. package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.js +48 -0
  32. package/dist/Conversations/Flows/Nodes/NodeToolCalculator.d.ts +2 -1
  33. package/dist/Conversations/Flows/Nodes/NodeToolCalculator.js +32 -0
  34. package/dist/Conversations/Flows/Nodes/NodeToolContacts.d.ts +2 -1
  35. package/dist/Conversations/Flows/Nodes/NodeToolContacts.js +54 -0
  36. package/dist/Conversations/Flows/Nodes/NodeToolFunction.d.ts +2 -1
  37. package/dist/Conversations/Flows/Nodes/NodeToolFunction.js +40 -0
  38. package/dist/Conversations/Flows/Nodes/NodeToolGoogleCalendar.d.ts +2 -1
  39. package/dist/Conversations/Flows/Nodes/NodeToolGoogleCalendar.js +82 -0
  40. package/dist/Conversations/Flows/Nodes/NodeToolKnowledge.d.ts +2 -1
  41. package/dist/Conversations/Flows/Nodes/NodeToolKnowledge.js +47 -0
  42. package/dist/Conversations/Flows/Nodes/NodeToolMapsCheckPolygon.d.ts +2 -1
  43. package/dist/Conversations/Flows/Nodes/NodeToolMapsCheckPolygon.js +54 -0
  44. package/dist/Conversations/Flows/Nodes/NodeToolMcpClient.d.ts +2 -1
  45. package/dist/Conversations/Flows/Nodes/NodeToolMcpClient.js +40 -0
  46. package/dist/Conversations/Flows/Nodes/index.d.ts +2 -3
  47. package/dist/Conversations/Flows/Nodes/index.js +2 -3
  48. package/package.json +1 -1
@@ -1,2 +1,50 @@
1
1
  "use strict";
2
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
+ 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: "Wait Until",
31
+ nameKey: 'NODE_TIME_WAIT_UNTIL',
32
+ enableStatics: false,
33
+ properties: [
34
+ {
35
+ type: 'string',
36
+ id: 'scheduleId',
37
+ label: 'Schedule ID',
38
+ labelKey: 'NODE_TIME_WAIT_UNTIL_SCHEDULE_ID',
39
+ optional: false
40
+ }
41
+ ],
42
+ values: undefined,
43
+ color: '#00bcd4', // Cyan color for the start node
44
+ icon: '',
45
+ badge: undefined,
46
+ hideInput: true,
47
+ hideOutput: false,
48
+ author: '',
49
+ documentation: '',
50
+ };
@@ -1 +1,2 @@
1
- export {};
1
+ import { INode } from '../Flow';
2
+ export declare const defaultNodeToolCalculator: INode;
@@ -1,2 +1,34 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.defaultNodeToolCalculator = void 0;
4
+ const Flow_1 = require("../Flow");
5
+ exports.defaultNodeToolCalculator = {
6
+ id: "NodeToolCalculator-{uid}",
7
+ type: Flow_1.NodeType.TOOL_CALCULATOR,
8
+ category: 'tool',
9
+ description: "Tool for performing calculations, such as basic arithmetic operations, complex mathematical functions, or unit conversions.",
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: "Calculator",
23
+ nameKey: 'NODE_TOOL_CALCULATOR',
24
+ enableStatics: false,
25
+ properties: [],
26
+ values: undefined,
27
+ color: '#00bcd4', // Cyan color for the start node
28
+ icon: '',
29
+ badge: undefined,
30
+ hideInput: true,
31
+ hideOutput: false,
32
+ author: '',
33
+ documentation: '',
34
+ };
@@ -1 +1,2 @@
1
- export {};
1
+ import { INode } from '../Flow';
2
+ export declare const defaultNodeToolTriiContacts: INode;
@@ -1,2 +1,56 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.defaultNodeToolTriiContacts = void 0;
4
+ const Flow_1 = require("../Flow");
5
+ exports.defaultNodeToolTriiContacts = {
6
+ id: "NodeToolTriiContacts-{uid}",
7
+ type: Flow_1.NodeType.TOOL_TRII_CONTACTS,
8
+ category: 'tool',
9
+ description: "Tool for managing contacts, such as adding, editing, and searching contacts in Trii Contacts.",
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: "Contacts",
23
+ nameKey: 'NODE_TOOL_TRII_CONTACTS',
24
+ enableStatics: false,
25
+ properties: [
26
+ {
27
+ type: 'boolean',
28
+ id: 'allowAdd',
29
+ label: 'Allow Add',
30
+ labelKey: 'NODE_TOOL_TRII_CONTACTS_ALLOW_ADD',
31
+ optional: false
32
+ },
33
+ {
34
+ type: 'boolean',
35
+ id: 'allowEdit',
36
+ label: 'Allow Edit',
37
+ labelKey: 'NODE_TOOL_TRII_CONTACTS_ALLOW_EDIT',
38
+ optional: false
39
+ },
40
+ {
41
+ type: 'boolean',
42
+ id: 'allowSearch',
43
+ label: 'Allow Search',
44
+ labelKey: 'NODE_TOOL_TRII_CONTACTS_ALLOW_SEARCH',
45
+ optional: false
46
+ }
47
+ ],
48
+ values: undefined,
49
+ color: '#00bcd4', // Cyan color for the start node
50
+ icon: '',
51
+ badge: undefined,
52
+ hideInput: true,
53
+ hideOutput: false,
54
+ author: '',
55
+ documentation: '',
56
+ };
@@ -1 +1,2 @@
1
- export {};
1
+ import { INode } from '../Flow';
2
+ export declare const defaultNodeToolFunction: INode;
@@ -1,2 +1,42 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.defaultNodeToolFunction = void 0;
4
+ const Flow_1 = require("../Flow");
5
+ exports.defaultNodeToolFunction = {
6
+ id: "NodeToolFunction-{uid}",
7
+ type: Flow_1.NodeType.TOOL_FUNCTION,
8
+ category: 'tool',
9
+ description: "Tool for executing custom JavaScript functions.",
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: "Function",
23
+ nameKey: 'NODE_TOOL_FUNCTION',
24
+ enableStatics: false,
25
+ properties: [
26
+ {
27
+ type: 'string',
28
+ id: 'javascriptCode',
29
+ label: 'JavaScript Code',
30
+ labelKey: 'NODE_TOOL_FUNCTION_JAVASCRIPT_CODE',
31
+ optional: false
32
+ }
33
+ ],
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 defaultNodeToolGoogleCalendar: INode;
@@ -1,2 +1,84 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.defaultNodeToolGoogleCalendar = void 0;
4
+ const Flow_1 = require("../Flow");
5
+ exports.defaultNodeToolGoogleCalendar = {
6
+ id: "NodeToolGoogleCalendar-{uid}",
7
+ type: Flow_1.NodeType.TOOL_GOOGLE_CALENDAR,
8
+ category: 'tool',
9
+ description: "Tool for interacting with Google Calendar, allowing for event management such as adding, editing, and deleting events.",
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: "Google Calendar",
23
+ nameKey: 'NODE_TOOL_GOOGLE_CALENDAR',
24
+ enableStatics: false,
25
+ properties: [
26
+ {
27
+ type: 'string',
28
+ id: 'authCredentialId',
29
+ label: 'Auth Credential ID',
30
+ labelKey: 'NODE_TOOL_GOOGLE_CALENDAR_AUTH_CREDENTIAL_ID',
31
+ optional: false
32
+ },
33
+ {
34
+ type: 'boolean',
35
+ id: 'eventsAdd',
36
+ label: 'Events Add',
37
+ labelKey: 'NODE_TOOL_GOOGLE_CALENDAR_EVENTS_ADD',
38
+ optional: false
39
+ },
40
+ {
41
+ type: 'boolean',
42
+ id: 'eventsEdit',
43
+ label: 'Events Edit',
44
+ labelKey: 'NODE_TOOL_GOOGLE_CALENDAR_EVENTS_EDIT',
45
+ optional: false
46
+ },
47
+ {
48
+ type: 'boolean',
49
+ id: 'eventsGet',
50
+ label: 'Events Get',
51
+ labelKey: 'NODE_TOOL_GOOGLE_CALENDAR_EVENTS_GET',
52
+ optional: false
53
+ },
54
+ {
55
+ type: 'boolean',
56
+ id: 'eventsSearch',
57
+ label: 'Events Search',
58
+ labelKey: 'NODE_TOOL_GOOGLE_CALENDAR_EVENTS_SEARCH',
59
+ optional: false
60
+ },
61
+ {
62
+ type: 'boolean',
63
+ id: 'eventsDelete',
64
+ label: 'Events Delete',
65
+ labelKey: 'NODE_TOOL_GOOGLE_CALENDAR_EVENTS_DELETE',
66
+ optional: false
67
+ },
68
+ {
69
+ type: 'boolean',
70
+ id: 'calendarList',
71
+ label: 'Calendar List',
72
+ labelKey: 'NODE_TOOL_GOOGLE_CALENDAR_LIST',
73
+ optional: false
74
+ }
75
+ ],
76
+ values: undefined,
77
+ color: '#00bcd4', // Cyan color for the start node
78
+ icon: '',
79
+ badge: undefined,
80
+ hideInput: true,
81
+ hideOutput: false,
82
+ author: '',
83
+ documentation: '',
84
+ };
@@ -1 +1,2 @@
1
- export {};
1
+ import { INode } from '../Flow';
2
+ export declare const defaultNodeToolKnowledge: INode;
@@ -1,2 +1,49 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.defaultNodeToolKnowledge = void 0;
4
+ const Flow_1 = require("../Flow");
5
+ exports.defaultNodeToolKnowledge = {
6
+ id: "NodeToolKnowledge-{uid}",
7
+ type: Flow_1.NodeType.TOOL_KNOWLEDGE,
8
+ category: 'tool',
9
+ description: "Knowledge Base Tool Node",
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: "Calculator",
23
+ nameKey: 'NODE_TOOL_CALCULATOR',
24
+ enableStatics: false,
25
+ properties: [
26
+ {
27
+ type: 'string',
28
+ id: 'knowledgeBaseId',
29
+ label: 'Knowledge Base ID',
30
+ labelKey: 'NODE_TOOL_KNOWLEDGE_BASE_ID',
31
+ optional: false
32
+ },
33
+ {
34
+ type: 'string',
35
+ id: 'knowledgeBaseName',
36
+ label: 'Knowledge Base Name',
37
+ labelKey: 'NODE_TOOL_KNOWLEDGE_BASE_NAME',
38
+ optional: false
39
+ }
40
+ ],
41
+ values: undefined,
42
+ color: '#00bcd4', // Cyan color for the start node
43
+ icon: '',
44
+ badge: undefined,
45
+ hideInput: true,
46
+ hideOutput: false,
47
+ author: '',
48
+ documentation: '',
49
+ };
@@ -1 +1,2 @@
1
- export {};
1
+ import { INode } from '../Flow';
2
+ export declare const defaultNodeToolMapsCheckPolygon: INode;
@@ -1,2 +1,56 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.defaultNodeToolMapsCheckPolygon = void 0;
4
+ const Flow_1 = require("../Flow");
5
+ exports.defaultNodeToolMapsCheckPolygon = {
6
+ id: "NodeToolMapsCheckPolygon-{uid}",
7
+ type: Flow_1.NodeType.TOOL_MAPS_CHECK_POLYGON,
8
+ category: 'tool',
9
+ description: "Check if a point is inside a polygon defined by its ID. Useful for geofencing and location-based services.",
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: "Maps Check Polygon",
23
+ nameKey: 'NODE_TOOL_MAPS_CHECK_POLYGON',
24
+ enableStatics: false,
25
+ properties: [
26
+ {
27
+ type: 'string',
28
+ id: 'polygonId',
29
+ label: 'Polygon ID',
30
+ labelKey: 'NODE_TOOL_MAPS_CHECK_POLYGON_ID',
31
+ optional: false
32
+ },
33
+ {
34
+ type: 'string',
35
+ id: 'polygonName',
36
+ label: 'Polygon Name',
37
+ labelKey: 'NODE_TOOL_MAPS_CHECK_POLYGON_NAME',
38
+ optional: false
39
+ },
40
+ {
41
+ type: 'string',
42
+ id: 'scheduleId',
43
+ label: 'Schedule ID',
44
+ labelKey: 'NODE_TOOL_MAPS_CHECK_POLYGON_SCHEDULE_ID',
45
+ optional: true,
46
+ }
47
+ ],
48
+ values: undefined,
49
+ color: '#00bcd4', // Cyan color for the start node
50
+ icon: '',
51
+ badge: undefined,
52
+ hideInput: true,
53
+ hideOutput: false,
54
+ author: '',
55
+ documentation: '',
56
+ };
@@ -1 +1,2 @@
1
- export {};
1
+ import { INode } from '../Flow';
2
+ export declare const defaultNodeToolMcpClient: INode;
@@ -1,2 +1,42 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.defaultNodeToolMcpClient = void 0;
4
+ const Flow_1 = require("../Flow");
5
+ exports.defaultNodeToolMcpClient = {
6
+ id: "NodeToolMcpClient-{uid}",
7
+ type: Flow_1.NodeType.TOOL_MCP_CLIENT,
8
+ category: 'tool',
9
+ description: "Tool for MCP Client operations, such as sending messages or managing conversations.",
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: "MCP Client",
23
+ nameKey: 'NODE_TOOL_MCP_CLIENT',
24
+ enableStatics: false,
25
+ properties: [
26
+ {
27
+ type: 'string',
28
+ id: 'urlServer',
29
+ label: 'MCP Server URL',
30
+ labelKey: 'NODE_TOOL_MCP_CLIENT_URL',
31
+ optional: false
32
+ }
33
+ ],
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
+ };
@@ -6,8 +6,8 @@ export * from './NodeConversationAssignTo';
6
6
  export * from './NodeConversationFinalize';
7
7
  export * from './NodeConversationUpdate';
8
8
  export * from './NodeFillForm';
9
- export * from './NodeFillTicket';
10
- export * from './NodeMsgText';
9
+ export * from './NodeMsgReply';
10
+ export * from './NodeMsgSend';
11
11
  export * from './NodeMsgWaitResponse';
12
12
  export * from './NodeRedirect';
13
13
  export * from './NodeSendEmail';
@@ -18,7 +18,6 @@ export * from './NodeTimeTimer';
18
18
  export * from './NodeTimeWaitUntil';
19
19
  export * from './NodeAIChatBot';
20
20
  export * from './NodeToolGoogleCalendar';
21
- export * from './NodeToolGoogleMaps';
22
21
  export * from './NodeToolCalculator';
23
22
  export * from './NodeToolMapsCheckPolygon';
24
23
  export * from './NodeToolMcpClient';
@@ -22,8 +22,8 @@ __exportStar(require("./NodeConversationAssignTo"), exports);
22
22
  __exportStar(require("./NodeConversationFinalize"), exports);
23
23
  __exportStar(require("./NodeConversationUpdate"), exports);
24
24
  __exportStar(require("./NodeFillForm"), exports);
25
- __exportStar(require("./NodeFillTicket"), exports);
26
- __exportStar(require("./NodeMsgText"), exports);
25
+ __exportStar(require("./NodeMsgReply"), exports);
26
+ __exportStar(require("./NodeMsgSend"), exports);
27
27
  __exportStar(require("./NodeMsgWaitResponse"), exports);
28
28
  __exportStar(require("./NodeRedirect"), exports);
29
29
  __exportStar(require("./NodeSendEmail"), exports);
@@ -34,7 +34,6 @@ __exportStar(require("./NodeTimeTimer"), exports);
34
34
  __exportStar(require("./NodeTimeWaitUntil"), exports);
35
35
  __exportStar(require("./NodeAIChatBot"), exports);
36
36
  __exportStar(require("./NodeToolGoogleCalendar"), exports);
37
- __exportStar(require("./NodeToolGoogleMaps"), exports);
38
37
  __exportStar(require("./NodeToolCalculator"), exports);
39
38
  __exportStar(require("./NodeToolMapsCheckPolygon"), exports);
40
39
  __exportStar(require("./NodeToolMcpClient"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trii/types",
3
- "version": "2.10.481",
3
+ "version": "2.10.483",
4
4
  "description": "Types definitions for Trii projects - ",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",