Update types.ts

This commit is contained in:
2025-12-11 23:35:18 +01:00
committed by GitHub
parent 229671d65e
commit 348f5604bf

View File

@@ -47,6 +47,14 @@ export interface SmtpConfig {
fromEmail: string; fromEmail: string;
} }
export interface StorageConfig {
provider: 'local_db' | 's3' | 'google_drive' | 'dropbox' | 'onedrive';
apiKey?: string;
apiSecret?: string;
bucket?: string;
region?: string;
}
export interface AppFeatures { export interface AppFeatures {
multiCondo: boolean; multiCondo: boolean;
tickets: boolean; tickets: boolean;
@@ -55,6 +63,7 @@ export interface AppFeatures {
reports: boolean; reports: boolean;
extraordinaryExpenses: boolean; extraordinaryExpenses: boolean;
condoFinancialsView: boolean; // Toggle for User read-only access to Condo Expenses condoFinancialsView: boolean; // Toggle for User read-only access to Condo Expenses
documents: boolean; // NEW: Document Management
} }
export interface AlertDefinition { export interface AlertDefinition {
@@ -92,6 +101,7 @@ export interface AppSettings {
// Global settings only // Global settings only
currentYear: number; // The active fiscal year (could be per-condo, but global for simplicity now) currentYear: number; // The active fiscal year (could be per-condo, but global for simplicity now)
smtpConfig?: SmtpConfig; smtpConfig?: SmtpConfig;
storageConfig?: StorageConfig; // NEW: Cloud storage settings
features: AppFeatures; features: AppFeatures;
} }
@@ -123,6 +133,21 @@ export interface AuthResponse {
user: User; 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 --- // --- TICKETS ---
export enum TicketStatus { export enum TicketStatus {