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:
@@ -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, };
|
||||
@@ -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, };
|
||||
@@ -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>, };
|
||||
Reference in New Issue
Block a user