saydata
Version:
Saydata seamlessly integrates AI-driven analytics for your customers into your app. Designed for beautiful visualization. Engineered for simplicity.
34 lines (33 loc) • 637 B
TypeScript
export interface YCol {
yCol: string;
color: string;
backgroundColor?: string;
min?: any;
max?: any;
}
export interface Graph {
xCol: string;
yCols: YCol[];
chartType: string;
chartTitle?: string;
}
export interface ChatItem {
role: string;
markdownString?: string;
question?: string;
blockId: string;
graph?: Graph;
rows?: any;
sql?: string;
title?: string;
value?: any;
feedback?: string;
showSql?: boolean;
showExplanation?: boolean;
}
export interface Chat {
id: string;
email: string;
connectionId: string;
chatItems: ChatItem[];
}