feat(yedek): JSON tam hane yedeği backend (önizleme, geri yükleme, geri dönüş noktaları)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-13 20:49:13 +03:00
parent 6e1000afd2
commit 0d70576df7
20 changed files with 1768 additions and 2 deletions
+11
View File
@@ -0,0 +1,11 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type BackupCount = {
/**
* Koleksiyon adı (`entries`, `periods`, …)
*/
kind: string,
/**
* Türkçe ad
*/
label: string, backup: number, current: number, };
+16
View File
@@ -0,0 +1,16 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { BackupCount } from "./BackupCount";
export type BackupPreview = { source_name: string, same_household: boolean,
/**
* RFC 3339
*/
exported_at: string, app_version: string, counts: Array<BackupCount>,
/**
* Yedekteki dönemlerin ilk ve son günü
*/
first_date: string | null, last_date: string | null,
/**
* Aynı hane: yedekten sonra eklenen/değişen (kaybolacak) kayıt
*/
changed_since: number, warnings: Array<string>, };
+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 { RestorePoint } from "./RestorePoint";
export type BackupStatus = {
/**
* Son dışa aktarma (RFC 3339); hiç alınmadıysa `null`
*/
last_backup_at: string | null,
/**
* En yeniden eskiye; sahip olmayana boş
*/
restore_points: Array<RestorePoint>, keep_points: number, keep_days: number, };
+15
View File
@@ -0,0 +1,15 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type RestorePoint = { id: string,
/**
* RFC 3339
*/
created_at: string,
/**
* `before_restore`: dosyadan geri yüklemeden önce · `before_undo`: geri almadan önce
*/
reason: "before_restore" | "before_undo", periods: number, entries: number,
/**
* Sıkıştırılmış boyut (bayt)
*/
size: number, };
+7
View File
@@ -0,0 +1,7 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type RestoreResult = {
/**
* İşlemden önceki durumun geri dönüş noktası ("Geri al" bununla)
*/
restore_point_id: string, };