feat(cleaner): add renderer types for cleaner operation history
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -61,3 +61,70 @@ export interface CleanerConfigResult {
|
|||||||
queryBatchSize: number
|
queryBatchSize: number
|
||||||
processConcurrency: number
|
processConcurrency: number
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Cleaner operation history types (mirrors preload/index.d.ts)
|
||||||
|
|
||||||
|
export interface CleanerHistoryBatchStats {
|
||||||
|
batchId: string
|
||||||
|
userId: number
|
||||||
|
username: string
|
||||||
|
operationTime: string
|
||||||
|
status: string
|
||||||
|
totalAttempts: number
|
||||||
|
totalOrders: number
|
||||||
|
ordersProcessed: number
|
||||||
|
totalMaterialsDeleted: number
|
||||||
|
totalMaterialsFailed: number
|
||||||
|
successCount: number
|
||||||
|
failedCount: number
|
||||||
|
isDryRun: boolean
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface CleanerHistoryExecutionRecord {
|
||||||
|
id?: number
|
||||||
|
batchId: string
|
||||||
|
attemptNumber: number
|
||||||
|
userId: number
|
||||||
|
username: string
|
||||||
|
operationTime: string
|
||||||
|
endTime: string | null
|
||||||
|
status: string
|
||||||
|
isDryRun: boolean
|
||||||
|
totalOrders: number
|
||||||
|
ordersProcessed: number
|
||||||
|
totalMaterialsDeleted: number
|
||||||
|
totalMaterialsSkipped: number
|
||||||
|
totalMaterialsFailed: number
|
||||||
|
totalUncertainDeletions: number
|
||||||
|
errorMessage: string | null
|
||||||
|
appVersion: string | null
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface CleanerHistoryOrderRecord {
|
||||||
|
id?: number
|
||||||
|
batchId: string
|
||||||
|
attemptNumber: number
|
||||||
|
orderNumber: string
|
||||||
|
status: string
|
||||||
|
materialsDeleted: number
|
||||||
|
materialsSkipped: number
|
||||||
|
materialsFailed: number
|
||||||
|
uncertainDeletions: number
|
||||||
|
retryCount: number
|
||||||
|
retrySuccess: boolean
|
||||||
|
errorMessage: string | null
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface CleanerHistoryMaterialRecord {
|
||||||
|
id?: number
|
||||||
|
batchId: string
|
||||||
|
attemptNumber: number
|
||||||
|
orderNumber: string
|
||||||
|
materialCode: string
|
||||||
|
materialName: string
|
||||||
|
rowNumber: number
|
||||||
|
result: string
|
||||||
|
reason: string | null
|
||||||
|
attemptCount: number
|
||||||
|
finalErrorCategory: string | null
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user