Variable: ScanStatus
@arolariu/website / types/scans/Scan / ScanStatus
Variable: ScanStatus
constScanStatus:object
Defined in: types/scans/Scan.ts:97
Represents the lifecycle status of a standalone scan.
Type Declaration
UPLOADING
readonlyUPLOADING:"uploading"="uploading"
Upload in progress
READY
readonlyREADY:"ready"="ready"
Uploaded to Azure, available for use
ATTACHED
readonlyATTACHED:"attached"="attached"
Associated with an invoice entity
DETACHED
readonlyDETACHED:"detached"="detached"
Previously attached, now dissociated
FAILED
readonlyFAILED:"failed"="failed"
Upload failed
PROCESSING
readonlyPROCESSING:"processing"="processing"
Being used to create an invoice
ARCHIVED
readonlyARCHIVED:"archived"="archived"
Invoice created, scan archived
Remarks
Tracks the scan through its lifecycle from upload to invoice creation.
State Transitions:
UPLOADING → READY → ATTACHED → DETACHED → ARCHIVED
↓
FAILED
UI Implications:
UPLOADING: Show progress indicatorREADY: Available for selection and invoice creationATTACHED: Associated with an invoice entityDETACHED: Previously attached, now dissociatedPROCESSING: Being used to create an invoice (show spinner)ARCHIVED: Invoice created, scan no longer shown in active viewFAILED: Show error state with retry option
Example
if (scan.status === ScanStatus.READY) {
// Show scan in selection view
}
// was this page useful?