| 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; | |
| }; | |