ci / ci (22, ubuntu-latest) (push) Canceled after 0s
GitHub Release / release (push) Canceled after 0s
Publish Docker image / build (linux/amd64, ubuntu-latest, amd64) (push) Canceled after 0s
Publish Docker image / build (linux/arm64, ubuntu-24.04-arm, arm64) (push) Canceled after 0s
Publish Docker image / merge (push) Canceled after 0s
54 lines
1.1 KiB
TypeScript
54 lines
1.1 KiB
TypeScript
export type BackupJobType = 'full_export' | 'full_restore' | 'backend_sync'
|
|
export type BackupJobStatus = 'pending' | 'running' | 'done' | 'failed'
|
|
|
|
export interface BackupJobItem {
|
|
id: string
|
|
type: BackupJobType
|
|
status: BackupJobStatus
|
|
progress: number
|
|
total: number
|
|
message: string
|
|
payload: Record<string, unknown>
|
|
outputPath: string | null
|
|
archiveName: string | null
|
|
downloadable: boolean
|
|
error: string | null
|
|
createdAt: string
|
|
finishedAt: string | null
|
|
}
|
|
|
|
export interface BackupEstimate {
|
|
imageCount: number
|
|
imageBytes: number
|
|
databaseBytes: number
|
|
totalBytes: number
|
|
}
|
|
|
|
export interface BackupPackageItem {
|
|
name: string
|
|
bytes: number
|
|
modifiedAt: string
|
|
}
|
|
|
|
export interface BackupRestorePreview {
|
|
imageCount: number
|
|
imageBytes: number
|
|
newImages: number
|
|
conflictingImages: number
|
|
formatVersion: number
|
|
appVersion: string
|
|
createdAt: string
|
|
}
|
|
|
|
export interface BackendSyncPreview {
|
|
imageCount: number
|
|
imageBytes: number
|
|
fromBackendId: string
|
|
toBackendId: string
|
|
}
|
|
|
|
export interface SyncDraft {
|
|
fromBackendId: string
|
|
toBackendId: string
|
|
}
|