Initial push

This commit is contained in:
Henry
2023-04-06 22:17:34 +01:00
commit 05c86ff9c5
162 changed files with 9112 additions and 0 deletions
+101
View File
@@ -0,0 +1,101 @@
import { INode, INodeData } from 'flowise-components'
export type MessageType = 'apiMessage' | 'userMessage'
/**
* Databases
*/
export interface IChatFlow {
id: string
name: string
flowData: string
deployed: boolean
updatedDate: Date
createdDate: Date
}
export interface IChatMessage {
id: string
role: MessageType
content: string
chatflowid: string
createdDate: Date
}
export interface IComponentNodesPool {
[key: string]: INode
}
export interface IVariableDict {
[key: string]: string
}
export interface INodeDependencies {
[key: string]: number
}
export interface INodeDirectedGraph {
[key: string]: string[]
}
export interface IReactFlowNode {
id: string
position: {
x: number
y: number
}
type: string
data: INodeData
positionAbsolute: {
x: number
y: number
}
z: number
handleBounds: {
source: any
target: any
}
width: number
height: number
selected: boolean
dragging: boolean
}
export interface IReactFlowEdge {
source: string
sourceHandle: string
target: string
targetHandle: string
type: string
id: string
data: {
label: string
}
}
export interface IReactFlowObject {
nodes: IReactFlowNode[]
edges: IReactFlowEdge[]
viewport: {
x: number
y: number
zoom: number
}
}
export interface IExploredNode {
[key: string]: {
remainingLoop: number
lastSeenDepth: number
}
}
export interface INodeQueue {
nodeId: string
depth: number
}
export interface IncomingInput {
question: string
history: string[]
}