Build fixes, email preview system

This commit is contained in:
2025-07-29 19:45:38 -04:00
parent e6791f8cb8
commit 9370d5c935
78 changed files with 5798 additions and 10397 deletions
+38
View File
@@ -0,0 +1,38 @@
export type StoredInvoiceStatus = "draft" | "sent" | "paid";
export type EffectiveInvoiceStatus = "draft" | "sent" | "paid" | "overdue";
export interface Invoice {
id: string;
invoiceNumber: string;
businessId: string | null;
clientId: string;
issueDate: Date;
dueDate: Date;
status: StoredInvoiceStatus;
totalAmount: number;
taxRate: number;
notes: string | null;
createdById: string;
createdAt: Date;
updatedAt: Date | null;
}
export interface InvoiceWithRelations extends Invoice {
client: {
id: string;
name: string;
email: string | null;
};
business: {
id: string;
name: string;
email: string | null;
} | null;
invoiceItems: Array<{
id: string;
date: Date;
description: string;
hours: number;
rate: number;
}>;
}