@trii/types 2.10.494 → 2.10.497

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.
@@ -5,6 +5,7 @@ const Nodes_1 = require("./Nodes");
5
5
  const NodeStart_1 = require("./Nodes/NodeStart");
6
6
  const NodeToolContacts_1 = require("./Nodes/NodeToolContacts");
7
7
  const NodeToolFunction_1 = require("./Nodes/NodeToolFunction");
8
+ const NodeToolShoppingCart_1 = require("./Nodes/NodeToolShoppingCart");
8
9
  exports.triggerNodeTypeList = [
9
10
  {
10
11
  id: 'StartNewConversation',
@@ -124,6 +125,11 @@ exports.toolNodeTypeList = [
124
125
  id: 'McpClient',
125
126
  name: 'MCP Client',
126
127
  definition: Nodes_1.defaultNodeToolMcpClient
128
+ },
129
+ {
130
+ id: 'ShoppingCart',
131
+ name: 'Shopping Cart',
132
+ definition: NodeToolShoppingCart_1.defaultNodeToolShoppingCart
127
133
  }
128
134
  ];
129
135
  exports.agentNodeTypeList = [
@@ -52,6 +52,7 @@ export declare enum NodeType {
52
52
  TOOL_KNOWLEDGE = 205,
53
53
  TOOL_FUNCTION = 206,
54
54
  TOOL_CALCULATOR = 207,
55
+ TOOL_SHOPPING_CART = 208,
55
56
  TOOL_GOOGLE_CALENDAR = 251,
56
57
  TOOL_GOOGLE_MAPS = 252
57
58
  }
@@ -185,6 +186,7 @@ export interface INodeOptionsValue {
185
186
  imageSrc?: string;
186
187
  }
187
188
  export interface IBodyRequest_AsyncNodes {
189
+ propertyId?: string;
188
190
  loadMethod?: string;
189
191
  nodeId?: string;
190
192
  nodeType?: NodeType;
@@ -39,6 +39,7 @@ var NodeType;
39
39
  NodeType[NodeType["TOOL_KNOWLEDGE"] = 205] = "TOOL_KNOWLEDGE";
40
40
  NodeType[NodeType["TOOL_FUNCTION"] = 206] = "TOOL_FUNCTION";
41
41
  NodeType[NodeType["TOOL_CALCULATOR"] = 207] = "TOOL_CALCULATOR";
42
+ NodeType[NodeType["TOOL_SHOPPING_CART"] = 208] = "TOOL_SHOPPING_CART";
42
43
  NodeType[NodeType["TOOL_GOOGLE_CALENDAR"] = 251] = "TOOL_GOOGLE_CALENDAR";
43
44
  NodeType[NodeType["TOOL_GOOGLE_MAPS"] = 252] = "TOOL_GOOGLE_MAPS";
44
45
  })(NodeType || (exports.NodeType = NodeType = {}));
@@ -0,0 +1,2 @@
1
+ import { INode } from '../Flow';
2
+ export declare const defaultNodeToolShoppingCart: INode;
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.defaultNodeToolShoppingCart = void 0;
4
+ const Flow_1 = require("../Flow");
5
+ exports.defaultNodeToolShoppingCart = {
6
+ id: "NodeToolShoppingCart-{uid}",
7
+ type: Flow_1.NodeType.TOOL_SHOPPING_CART,
8
+ category: 'tool',
9
+ description: "Tool for managing a shopping cart in a conversation 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
+ name: "ShoppingCart",
26
+ nameKey: 'NODE_TOOL_SHOPPING_CART_NAME',
27
+ enableStatics: false,
28
+ properties: [
29
+ {
30
+ type: 'multiOptions',
31
+ id: 'generalProperties',
32
+ label: 'General Properties',
33
+ labelKey: 'NODE_TOOL_SHOPPING_CART_GENERAL_PROPERTIES',
34
+ optional: false,
35
+ default: 'GET',
36
+ options: [
37
+ { id: 'contactName', label: 'Contact Name' },
38
+ { id: 'shippingAddress', label: 'Shipping Address' },
39
+ { id: 'sendToHome', label: 'Send to home' }
40
+ ]
41
+ },
42
+ {
43
+ type: 'array',
44
+ id: 'itemProperties',
45
+ label: 'Item Properties',
46
+ labelKey: 'NODE_TOOL_FUNCTION_JAVASCRIPT_CODE',
47
+ optional: false,
48
+ array: [
49
+ {
50
+ type: 'string',
51
+ id: 'name',
52
+ label: 'Name',
53
+ labelKey: 'NODE_TOOL_SHOPPING_CART_ITEM_NAME',
54
+ default: '',
55
+ optional: false
56
+ },
57
+ {
58
+ type: 'options',
59
+ id: 'valueType',
60
+ label: 'Value Type',
61
+ labelKey: 'NODE_TOOL_SHOPPING_CART_ITEM_VALUE_TYPE',
62
+ optional: false,
63
+ default: 'string',
64
+ options: [
65
+ { label: 'String', id: 'string' },
66
+ { label: 'Number', id: 'number' },
67
+ { label: 'Boolean', id: 'boolean' },
68
+ { label: 'Date', id: 'date' }
69
+ ]
70
+ }
71
+ ],
72
+ }
73
+ ],
74
+ values: undefined,
75
+ color: '#00bcd4', // Cyan color for the start node
76
+ icon: '',
77
+ badge: undefined,
78
+ hideInput: true,
79
+ hideOutput: false,
80
+ author: '',
81
+ documentation: '',
82
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trii/types",
3
- "version": "2.10.494",
3
+ "version": "2.10.497",
4
4
  "description": "Types definitions for Trii projects - ",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",