Implement AI
This commit is contained in:
@@ -33,6 +33,16 @@ export interface ExpenseDto extends ExpenseListItemDto {
|
||||
submittedBy: string | null; submittedAt: string | null; paidAt: string | null;
|
||||
lines: ExpenseLineItemDto[];
|
||||
}
|
||||
/** AI assist suggestion: English translation + a proposed major/sub category (null when unclassified). */
|
||||
export interface ExpenseAiSuggestion {
|
||||
englishDescription: string | null;
|
||||
groupId: number | null;
|
||||
subCategoryId: number | null;
|
||||
groupLabel: string | null;
|
||||
subLabel: string | null;
|
||||
confidence: number;
|
||||
}
|
||||
|
||||
export interface ExpenseLineInput {
|
||||
categoryGroupId: number; subCategoryId: number; amount: number;
|
||||
functionalClass: FunctionalClass | null; description: string | null;
|
||||
|
||||
Reference in New Issue
Block a user