Update types.ts
This commit is contained in:
25
types.ts
25
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 {
|
||||
|
||||
Reference in New Issue
Block a user