@trii/types 2.10.471 → 2.10.473

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.
@@ -10,6 +10,7 @@ export interface Document {
10
10
  splitter?: DocumentSplitter | null;
11
11
  chunks: number | 0;
12
12
  chars: number | 0;
13
+ status: DocumentStatus | DocumentStatus.SYNCING;
13
14
  createdAt: Date;
14
15
  createdBy: string;
15
16
  updatedAt?: Date | null;
@@ -0,0 +1,13 @@
1
+ export interface Map {
2
+ id?: string | null;
3
+ spaceId: string | "";
4
+ name: string | "";
5
+ description: string | "";
6
+ geoJson?: object;
7
+ createdAt: Date;
8
+ createdBy: string;
9
+ updatedAt?: Date | null;
10
+ updatedBy?: string | null;
11
+ deletedAt?: Date | null;
12
+ deletedBy?: string | null;
13
+ }
package/dist/AI/Map.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,4 @@
1
- import { NodeAIChatBot, NodeToolGoogleCalendar } from "./Nodes";
1
+ import { NodeAIChatBot, NodeToolGoogleCalendar, NodeToolKnowledge } from "./Nodes";
2
2
  import { NodeApi } from "./Nodes/NodeApi";
3
3
  import { NodeConditional } from "./Nodes/NodeConditional";
4
4
  import { NodeContactSearch } from "./Nodes/NodeContactSearch";
@@ -57,6 +57,7 @@ export declare enum NodeType {
57
57
  TOOL_TRII_CALENDAR = 202,
58
58
  TOOL_MAPS_CHECK_POLYGON = 203,
59
59
  TOOL_MCP_CLIENT = 204,
60
+ TOOL_KNOWLEDGE = 205,
60
61
  TOOL_GOOGLE_CALENDAR = 251,
61
62
  TOOL_GOOGLE_MAPS = 252
62
63
  }
@@ -64,7 +65,7 @@ export declare class NodePosition {
64
65
  x: number;
65
66
  y: number;
66
67
  }
67
- export type Node = NodeStart | NodeMsgText | NodeMsgWaitResponse | NodeSqlQuery | NodeApi | NodeSendEmail | NodeFillForm | NodeFillTicket | NodeContactSearch | NodeContactUpdate | NodeConversationAssignTo | NodeConversationUpdate | NodeConversationFinalize | NodeTimeScheduleControl | NodeTimeTimer | NodeTimeWaitUntil | NodeConditional | NodeRedirect | NodeAIChatBot | NodeToolGoogleMaps | NodeToolGoogleCalendar | NodeToolCalculator | NodeToolMapsCheckPolygon | NodeToolMcpClient;
68
+ export type Node = NodeStart | NodeMsgText | NodeMsgWaitResponse | NodeSqlQuery | NodeApi | NodeSendEmail | NodeFillForm | NodeFillTicket | NodeContactSearch | NodeContactUpdate | NodeConversationAssignTo | NodeConversationUpdate | NodeConversationFinalize | NodeTimeScheduleControl | NodeTimeTimer | NodeTimeWaitUntil | NodeConditional | NodeRedirect | NodeAIChatBot | NodeToolGoogleMaps | NodeToolGoogleCalendar | NodeToolCalculator | NodeToolMapsCheckPolygon | NodeToolMcpClient | NodeToolKnowledge;
68
69
  export type NodeCategory = 'trigger' | 'action' | 'tool' | 'agent';
69
70
  export interface NodeBase {
70
71
  id: string;
@@ -75,10 +76,10 @@ export interface NodeBase {
75
76
  enableStatics: boolean | false;
76
77
  description: string | '';
77
78
  position: NodePosition;
79
+ positionAbsolute?: NodePosition | null;
78
80
  width?: number | null;
79
81
  height?: number | null;
80
82
  selected?: boolean | null;
81
- positionAbsolute?: NodePosition | null;
82
83
  dragging?: boolean | null;
83
84
  }
84
85
  export declare class Edge {
@@ -26,6 +26,7 @@ var NodeType;
26
26
  NodeType[NodeType["TOOL_TRII_CALENDAR"] = 202] = "TOOL_TRII_CALENDAR";
27
27
  NodeType[NodeType["TOOL_MAPS_CHECK_POLYGON"] = 203] = "TOOL_MAPS_CHECK_POLYGON";
28
28
  NodeType[NodeType["TOOL_MCP_CLIENT"] = 204] = "TOOL_MCP_CLIENT";
29
+ NodeType[NodeType["TOOL_KNOWLEDGE"] = 205] = "TOOL_KNOWLEDGE";
29
30
  NodeType[NodeType["TOOL_GOOGLE_CALENDAR"] = 251] = "TOOL_GOOGLE_CALENDAR";
30
31
  NodeType[NodeType["TOOL_GOOGLE_MAPS"] = 252] = "TOOL_GOOGLE_MAPS";
31
32
  })(NodeType || (exports.NodeType = NodeType = {}));
@@ -0,0 +1,12 @@
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
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -4,11 +4,11 @@ export interface NodeToolMapsCheckPolygon extends NodeBase {
4
4
  handles: [];
5
5
  category: 'tool';
6
6
  description: "Check if a point is inside a polygon defined by its ID. Useful for geofencing and location-based services.";
7
- polygons: NodeToolMapsCheckPolygonItem[];
7
+ maps: NodeToolMapsCheckPolygonItem[];
8
8
  }
9
9
  export interface NodeToolMapsCheckPolygonItem {
10
- polygonId: string;
11
- polygonName: string;
10
+ mapId: string;
11
+ mapName: string;
12
12
  scheduleId?: string | null;
13
13
  price?: number | null;
14
14
  }
@@ -4,4 +4,5 @@ export interface NodeToolMcpClient extends NodeBase {
4
4
  handles: [];
5
5
  category: 'tool';
6
6
  description: "Tool for MCP Client operations, such as sending messages or managing conversations.";
7
+ urlServer: string | '';
7
8
  }
@@ -22,3 +22,4 @@ export * from './NodeToolGoogleMaps';
22
22
  export * from './NodeToolCalculator';
23
23
  export * from './NodeToolMapsCheckPolygon';
24
24
  export * from './NodeToolMcpClient';
25
+ export * from './NodeToolKnowledge';
@@ -38,3 +38,4 @@ __exportStar(require("./NodeToolGoogleMaps"), exports);
38
38
  __exportStar(require("./NodeToolCalculator"), exports);
39
39
  __exportStar(require("./NodeToolMapsCheckPolygon"), exports);
40
40
  __exportStar(require("./NodeToolMcpClient"), exports);
41
+ __exportStar(require("./NodeToolKnowledge"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trii/types",
3
- "version": "2.10.471",
3
+ "version": "2.10.473",
4
4
  "description": "Types definitions for Trii projects - ",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",