feat(api): add Goal and Transaction types
This commit is contained in:
parent
9a3a8412cd
commit
13682e2d43
1 changed files with 32 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue