@trii/types 2.10.469 → 2.10.472
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.
- package/dist/AI/Documents/Document.d.ts +1 -0
- package/dist/AI/Documents/Store.d.ts +2 -0
- package/dist/AI/Map.d.ts +13 -0
- package/dist/AI/Map.js +2 -0
- package/dist/AI/MapPolygon.d.ts +22 -0
- package/dist/AI/MapPolygon.js +2 -0
- package/dist/Conversations/Flows/Flow.d.ts +4 -3
- package/dist/Conversations/Flows/Flow.js +1 -0
- package/dist/Conversations/Flows/Nodes/NodeToolKnowledge.d.ts +12 -0
- package/dist/Conversations/Flows/Nodes/NodeToolKnowledge.js +2 -0
- package/dist/Conversations/Flows/Nodes/index.d.ts +1 -0
- package/dist/Conversations/Flows/Nodes/index.js +1 -0
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Document } from "./Document";
|
|
1
2
|
export interface Store {
|
|
2
3
|
id?: string | null;
|
|
3
4
|
spaceId: string | "";
|
|
@@ -8,6 +9,7 @@ export interface Store {
|
|
|
8
9
|
chunkCount: number | 0;
|
|
9
10
|
charCount: number | 0;
|
|
10
11
|
flowCount: number | 0;
|
|
12
|
+
documents: Document[];
|
|
11
13
|
createdAt: Date;
|
|
12
14
|
createdBy: string;
|
|
13
15
|
updatedAt?: Date | null;
|
package/dist/AI/Map.d.ts
ADDED
|
@@ -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,22 @@
|
|
|
1
|
+
export interface Map {
|
|
2
|
+
id?: string | null;
|
|
3
|
+
spaceId: string | "";
|
|
4
|
+
name: string | "";
|
|
5
|
+
description: string | "";
|
|
6
|
+
layers: MapLayer[];
|
|
7
|
+
createdAt: Date;
|
|
8
|
+
createdBy: string;
|
|
9
|
+
updatedAt?: Date | null;
|
|
10
|
+
updatedBy?: string | null;
|
|
11
|
+
deletedAt?: Date | null;
|
|
12
|
+
deletedBy?: string | null;
|
|
13
|
+
}
|
|
14
|
+
export interface MapLayer {
|
|
15
|
+
id?: string | null;
|
|
16
|
+
spaceId: string | "";
|
|
17
|
+
name: string | "";
|
|
18
|
+
fileName: string | "";
|
|
19
|
+
fileUrl: string | "";
|
|
20
|
+
data?: object | null;
|
|
21
|
+
polygons?: object | null;
|
|
22
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -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);
|