feat(api): add Goal and Transaction types

This commit is contained in:
admin-valentin 2026-07-31 16:34:22 +00:00
parent 9a3a8412cd
commit 13682e2d43

View file

@ -154,3 +154,35 @@ export interface Briefing {
};
aiExplanation: string | null;
}
export type GoalStatus = 'not_started' | 'on_track' | 'at_risk' | 'achieved' | 'abandoned';
export interface Goal {
id: string;
tenantId: string;
ownerUserId: string;
horizon: string;
metric: string;
target: string;
milestones: unknown[];
status: GoalStatus;
createdAt: string;
updatedAt: string;
}
export type EvidenceStatus = 'missing' | 'partial' | 'complete' | 'not_required';
export interface Transaction {
id: string;
tenantId: string;
organizationId: string;
type: string;
/** Stored as string from DB (numeric type). */
amountMinorUnits: string;
currency: string;
transactionDate: string;
evidenceStatus: EvidenceStatus;
source: string | null;
createdAt: string;
updatedAt: string;
}