chore(frontend): add extra types to frontend

This commit is contained in:
2026-03-03 20:13:13 +00:00
parent f3b48525e2
commit e2ac4495fd
2 changed files with 14 additions and 10 deletions

View File

@@ -10,12 +10,6 @@ type FrequencyWord = {
count: number;
}
type AverageEmotionByTopic = {
topic: string;
n: number;
[emotion: string]: string | number;
}
type Vocab = {
author: string;
events: number;
@@ -58,13 +52,25 @@ type HeatmapCell = {
type TimeAnalysisResponse = {
events_per_day: EventsPerDay[];
weekday_hour_heatmap: HeatmapCell[];
burstiness: number;
}
// Content Analysis
type NGram = {
count: number;
ngram: string;
}
type AverageEmotionByTopic = {
topic: string;
n: number;
[emotion: string]: string | number;
}
type ContentAnalysisResponse = {
word_frequencies: FrequencyWord[];
average_emotion_by_topic: AverageEmotionByTopic[];
common_three_phrases: NGram[];
common_two_phrases: NGram[];
}
// Summary