From 348f5604bf0fc9f7021a769250b440096b0f0b8e Mon Sep 17 00:00:00 2001 From: frakarr Date: Thu, 11 Dec 2025 23:35:18 +0100 Subject: [PATCH] Update types.ts --- types.ts | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/types.ts b/types.ts index 15f1a0c..5bc4fa1 100644 --- a/types.ts +++ b/types.ts @@ -47,6 +47,14 @@ export interface SmtpConfig { fromEmail: string; } +export interface StorageConfig { + provider: 'local_db' | 's3' | 'google_drive' | 'dropbox' | 'onedrive'; + apiKey?: string; + apiSecret?: string; + bucket?: string; + region?: string; +} + export interface AppFeatures { multiCondo: boolean; tickets: boolean; @@ -55,6 +63,7 @@ export interface AppFeatures { reports: boolean; extraordinaryExpenses: boolean; condoFinancialsView: boolean; // Toggle for User read-only access to Condo Expenses + documents: boolean; // NEW: Document Management } export interface AlertDefinition { @@ -92,6 +101,7 @@ export interface AppSettings { // Global settings only currentYear: number; // The active fiscal year (could be per-condo, but global for simplicity now) smtpConfig?: SmtpConfig; + storageConfig?: StorageConfig; // NEW: Cloud storage settings features: AppFeatures; } @@ -123,6 +133,21 @@ export interface AuthResponse { user: User; } +// --- DOCUMENTS --- +export interface Document { + id: string; + condoId: string; + title: string; + description?: string; + fileName: string; + fileType: string; + fileSize: number; + tags: string[]; // Array of tag strings + uploadDate: string; + storageProvider: string; // 'local_db', 's3', etc. + url?: string; // Signed URL or base64 data depending on provider +} + // --- TICKETS --- export enum TicketStatus {