PR-AGENT / src /types.ts
Seth
Update
865237e
raw
history blame contribute delete
548 Bytes
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;
};