feat(notifications): add settings and migration
This commit is contained in:
+21
-5
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user