-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
60 lines (52 loc) · 1.11 KB
/
types.ts
File metadata and controls
60 lines (52 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
export interface Commit {
sha: string;
commit: {
author: {
name: string;
email: string;
date: string;
};
message: string;
};
html_url: string;
files?: Array<{
filename: string;
status: string;
additions: number;
deletions: number;
patch?: string;
}>;
}
// Removed rigid 'SlideLayout' enum. Gemini now designs the layout.
export interface PptxSlideContent {
title: string;
mainPoint: string;
bullets: string[];
codeBlock?: string;
}
export interface PresentationSlide {
// This is the visual HTML code Gemini generates for the web view
htmlContent: string;
// This is the structured data for the PPTX export
pptxContent: PptxSlideContent;
speakerNotes: string;
}
export interface PresentationData {
title: string;
subtitle: string;
slides: PresentationSlide[];
}
export interface RepoConfig {
owner: string;
repo: string;
token: string;
startDate: string;
endDate: string;
}
export enum AppStatus {
IDLE = 'IDLE',
FETCHING_COMMITS = 'FETCHING_COMMITS',
ANALYZING = 'ANALYZING',
SUCCESS = 'SUCCESS',
ERROR = 'ERROR',
}