Variable: ScanStatus
@arolariu/website / types / ScanStatus
Variable: ScanStatus
constScanStatus:object
Defined in: types/scans/Scan.ts:85
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
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 → PROCESSING → ARCHIVED
↓
FAILED
UI Implications:
UPLOADING: Show progress indicatorREADY: Available for selection and invoice creationPROCESSING: 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?