feat(notifications): add settings and migration

This commit is contained in:
Sucukdeluxe
2026-08-22 03:44:11 +02:00
parent 6a8a3828b8
commit 754231d15c
9 changed files with 140 additions and 18 deletions
+21 -5
View File
@@ -120,6 +120,8 @@ export interface DebridAccountStatus {
checkedAt: number;
}
export type NotifyPackageSuccessMode = "digest" | "individual";
export interface AppSettings {
language: AppLanguage;
token: string;
@@ -200,11 +202,18 @@ export interface AppSettings {
confirmDeleteSelection: boolean;
backupIncludeDownloads: boolean;
backupIncludeRemoteDiagnostics: boolean;
notifyUrl: string;
notifyMention: string;
notifyOnPackageCompleted: boolean;
notifyOnPackageFailed: boolean;
notifyOnRunFinished: boolean;
notifyUrl: string;
notifyMention: string;
notifyOnPackageCompleted: boolean;
notifyOnPackageFailed: boolean;
notifyOnRunFinished: boolean;
notifyPackageSuccessMode: NotifyPackageSuccessMode;
notifyOnRemainingBelow: boolean;
notifyRemainingThresholdGb: number;
notifyOnDownloadStall: boolean;
notifyStallAfterSeconds: number;
notifyStallCooldownMinutes: number;
notifyOnDownloadRecovery: boolean;
totalDownloadedAllTime: number;
totalCompletedFilesAllTime: number;
totalRuntimeAllTimeMs: number;
@@ -332,6 +341,13 @@ export interface RendererSettings {
notifyOnPackageCompleted: boolean;
notifyOnPackageFailed: boolean;
notifyOnRunFinished: boolean;
notifyPackageSuccessMode: NotifyPackageSuccessMode;
notifyOnRemainingBelow: boolean;
notifyRemainingThresholdGb: number;
notifyOnDownloadStall: boolean;
notifyStallAfterSeconds: number;
notifyStallCooldownMinutes: number;
notifyOnDownloadRecovery: boolean;
totalDownloadedAllTime: number;
totalCompletedFilesAllTime: number;
totalRuntimeAllTimeMs: number;