feat(panel): günlük harcama ve dönem istatistikleri uç noktaları

- GET /periods/{id}/daily: dönemin her günü için 4 grubun harcaması
- GET /stats/periods: son dönemlerin harcanabilir/harcanan tutarı + toplam birikim
- Faz 7 adım planı

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-12 23:37:05 +03:00
parent 861bfba85a
commit 30136ed1d3
12 changed files with 425 additions and 3 deletions
+12
View File
@@ -0,0 +1,12 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { GroupAmounts } from "./GroupAmounts";
export type DaySpent = {
/**
* `"YYYY-MM-DD"`
*/
date: string,
/**
* O gün gruplara göre harcanan (kuruş)
*/
spent: GroupAmounts, };
+12
View File
@@ -0,0 +1,12 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { PeriodStatus } from "./PeriodStatus";
export type PeriodStat = { id: string, name: string, start_date: string,
/**
* Son gün, dahil
*/
last_date: string, status: PeriodStatus, spendable: number, spent: number,
/**
* Kapanmamışsa `null`
*/
to_savings: number | null, };
+12
View File
@@ -0,0 +1,12 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { PeriodStat } from "./PeriodStat";
export type PeriodStats = {
/**
* Kapanışlarda birikime aktarılanların toplamı (kuruş)
*/
total_saved: number,
/**
* Eskiden yeniye
*/
periods: Array<PeriodStat>, };