review.ts
1export interface ReviewComment {
2 id: string;
3 filePath: string;
4 lineNumber: number;
5 side: 'old' | 'new';
6 body: string;
7 type: 'comment' | 'suggestion' | 'question';
8 createdAt: string;
9}
10
11export interface ReviewThread {
12 id: string;
13 filePath: string;
14 lineNumber: number;
15 side: 'old' | 'new';
16 comments: ReviewComment[];
17 resolved: boolean;
18 outdated: boolean;
19 originalLineContent?: string;
20}
21
22export interface Review {
23 id: string;
24 threads: ReviewThread[];
25 status: 'pending' | 'approved' | 'changes_requested';
26 createdAt: string;
27 summary?: string;
28}
29
30export interface ReviewExport {
31 version: '1.0';
32 repository: string;
33 branch: string;
34 exportedAt: string;
35 review: {
36 status: string;
37 summary?: string;
38 files: ReviewExportFile[];
39 };
40}
41
42export interface ReviewExportFile {
43 path: string;
44 status: string;
45 threads: ReviewExportThread[];
46}
47
48export interface ReviewExportThread {
49 lineNumber: number;
50 side: string;
51 codeContext: string;
52 comments: { body: string; type: string }[];
53}