backup and restore
This commit is contained in:
@@ -60,12 +60,30 @@ export interface StartupValidationCheckDto {
|
||||
message: string;
|
||||
}
|
||||
|
||||
export interface StartupValidationReportDto {
|
||||
status: "PASS" | "WARN" | "FAIL";
|
||||
generatedAt: string;
|
||||
durationMs: number;
|
||||
passCount: number;
|
||||
warnCount: number;
|
||||
failCount: number;
|
||||
checks: StartupValidationCheckDto[];
|
||||
}
|
||||
|
||||
export interface BackupChecklistItemDto {
|
||||
id: string;
|
||||
label: string;
|
||||
detail: string;
|
||||
}
|
||||
|
||||
export interface BackupVerificationItemDto extends BackupChecklistItemDto {
|
||||
evidence: string;
|
||||
}
|
||||
|
||||
export interface RestoreDrillStepDto extends BackupChecklistItemDto {
|
||||
expectedOutcome: string;
|
||||
}
|
||||
|
||||
export interface BackupGuidanceDto {
|
||||
dataPath: string;
|
||||
databasePath: string;
|
||||
@@ -73,6 +91,17 @@ export interface BackupGuidanceDto {
|
||||
recommendedBackupTarget: string;
|
||||
backupSteps: BackupChecklistItemDto[];
|
||||
restoreSteps: BackupChecklistItemDto[];
|
||||
verificationChecklist: BackupVerificationItemDto[];
|
||||
restoreDrillSteps: RestoreDrillStepDto[];
|
||||
}
|
||||
|
||||
export interface SupportLogEntryDto {
|
||||
id: string;
|
||||
level: "INFO" | "WARN" | "ERROR";
|
||||
source: string;
|
||||
message: string;
|
||||
contextJson: string;
|
||||
createdAt: string;
|
||||
}
|
||||
|
||||
export interface SupportSnapshotDto {
|
||||
@@ -81,6 +110,8 @@ export interface SupportSnapshotDto {
|
||||
userCount: number;
|
||||
roleCount: number;
|
||||
activeUserEmails: string[];
|
||||
backupGuidance: BackupGuidanceDto;
|
||||
recentSupportLogs: SupportLogEntryDto[];
|
||||
}
|
||||
|
||||
export interface AdminDiagnosticsDto {
|
||||
@@ -106,7 +137,8 @@ export interface AdminDiagnosticsDto {
|
||||
shipmentCount: number;
|
||||
attachmentCount: number;
|
||||
auditEventCount: number;
|
||||
startupStatus: "PASS" | "WARN" | "FAIL";
|
||||
startupChecks: StartupValidationCheckDto[];
|
||||
supportLogCount: number;
|
||||
startup: StartupValidationReportDto;
|
||||
recentAuditEvents: AuditEventDto[];
|
||||
recentSupportLogs: SupportLogEntryDto[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user