ofpos-shared-core 2.0.0-alpha.1 → 2.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -33,6 +33,18 @@ export interface IBackupScheduler {
|
|
|
33
33
|
* Menghentikan scheduler jika sedang berjalan.
|
|
34
34
|
*/
|
|
35
35
|
stop(): void;
|
|
36
|
+
/**
|
|
37
|
+
* Menjalankan backup manual segera.
|
|
38
|
+
*/
|
|
39
|
+
backupNow(payload?: Record<string, unknown>): Promise<any>;
|
|
40
|
+
/**
|
|
41
|
+
* Menjalankan restore manual dari backup terbaru atau backupId tertentu.
|
|
42
|
+
*/
|
|
43
|
+
restoreBackup(options?: {
|
|
44
|
+
backupId?: string;
|
|
45
|
+
dryRun?: boolean;
|
|
46
|
+
[key: string]: unknown;
|
|
47
|
+
}): Promise<any>;
|
|
36
48
|
}
|
|
37
49
|
/**
|
|
38
50
|
* Scheduler untuk melakukan backup data lokal secara berkala.
|
|
@@ -70,6 +82,12 @@ export declare class BackupScheduler {
|
|
|
70
82
|
lastRestoreDrillAt: number | null;
|
|
71
83
|
started: boolean;
|
|
72
84
|
};
|
|
85
|
+
backupNow(payload?: Record<string, unknown>): Promise<any>;
|
|
86
|
+
restoreBackup(options?: {
|
|
87
|
+
backupId?: string;
|
|
88
|
+
dryRun?: boolean;
|
|
89
|
+
[key: string]: unknown;
|
|
90
|
+
}): Promise<any>;
|
|
73
91
|
runBackupTask(): Promise<void>;
|
|
74
92
|
runRestoreDrill(): Promise<void>;
|
|
75
93
|
}
|
package/package.json
CHANGED