-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
39 lines (36 loc) · 1.02 KB
/
types.ts
File metadata and controls
39 lines (36 loc) · 1.02 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
export enum Category {
Vegetables = 'Vegetables',
Fruits = 'Fruits',
MeatSeafood = 'Meat & Seafood',
DairyEggs = 'Dairy & Eggs',
Bakery = 'Bakery',
Pantry = 'Pantry & Dry Goods', // Pasta, rice, flour, oil, spices, canned goods
Frozen = 'Frozen Foods', // Ice cream, frozen meals, frozen veggies
Snacks = 'Snacks & Candy',
Beverages = 'Beverages',
Alcohol = 'Alcohol',
Deli = 'Deli & Prepared', // Rotisserie chicken, salads, sandwiches
Baby = 'Baby', // Diapers, baby food
Pet = 'Pet Supplies',
Household = 'Household & Cleaning',
PersonalCare = 'Personal Care & Pharmacy',
Other = 'Other',
}
export type Payer = string;
export type Owner = string;
export interface Expense {
id: string;
description: string;
amount: number;
date: string;
category: Category;
store: string;
payer: Payer;
owner: Owner;
originalAmount?: number; // Track pre-discount price if needed
}
export interface AnalysisResult {
summary: string;
tips: string[];
sentiment: 'positive' | 'neutral' | 'negative';
}