File size: 548 Bytes
84983c9
 
3c11192
 
84983c9
 
 
 
 
 
 
 
 
 
 
 
3c11192
 
 
865237e
3c11192
84983c9
 
 
3c11192
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
import type { AnalysisRow, Candidate, SelectedDetails } from "./api/chat";

export type ThreadItem =
  | { id: string; type: "user"; text: string }
  | {
      id: string;
      type: "analysis";
      rows: AnalysisRow[];
      heading?: string;
    }
  | {
      id: string;
      type: "pick";
      summary: string;
      candidates: Candidate[];
    }
  | {
      id: string;
      type: "form";
      commodityCode: number;
      intro: string;
      catalogPath?: string;
      codeSummary?: string;
      selected?: SelectedDetails;
    };