-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
35 lines (32 loc) · 788 Bytes
/
types.ts
File metadata and controls
35 lines (32 loc) · 788 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
export enum TransactionType {
CREDIT = 'Credit',
DEBIT = 'Debit'
}
export interface Transaction {
id: string;
date: string;
description: string;
category: string;
amount: number;
type: TransactionType;
proofLink?: string;
}
export interface ImpactStory {
id: string;
slug: string; // New: for routing
date: string; // Start Date
endDate?: string; // New: End Date
title: string;
description: string;
location?: string; // New: Location Name
latitude?: number; // New: For Map
longitude?: number; // New: For Map
imageUrl?: string;
gallery?: string[]; // New: Additional images
videoLinks?: string[]; // New: YouTube/Drive links
}
export interface FinancialSummary {
totalCollected: number;
totalSpent: number;
remainingBalance: number;
}