feat: add day logs to report

This commit is contained in:
Riccardo Senica
2025-01-19 20:50:08 +00:00
parent 8c60f400ea
commit 89a20c214b
2 changed files with 98 additions and 17 deletions

View File

@@ -1,4 +1,4 @@
import { Category, Expense } from '@prisma/client';
import { Category, DayLog, Expense } from '@prisma/client';
import { z } from 'zod';
interface Flag {
@@ -40,7 +40,7 @@ const ExpenseSchema = z.object({
export type ExpenseType = z.infer<typeof ExpenseSchema>;
export interface ReportData {
export interface ReportExpenseData {
expenses: (Expense & { category: Category })[];
summary: {
totalExpenses: number;
@@ -55,3 +55,11 @@ export interface ReportData {
to: Date;
};
}
export interface ReportDayLogsData {
dayLogs: DayLog[];
dateRange: {
from: Date;
to: Date;
};
}