Appearance
FileState
Type: Object
A file attached to a job, component, or other entity
Fields
| Name | Type | Args | Description | Deprecated |
|---|---|---|---|---|
| category | FileCategory! | File category | ||
| checksum | String | File checksum | ||
| componentId | ComponentID | Associated component ID | ||
| createdAt | String! | Creation timestamp (ISO8601) | ||
| estimateId | EstimateID | Associated estimate ID | ||
| externalStorageKey | String | Storage key for external-backed files; null for folder-managed files | ||
| folderId | FolderID | Folder holding the bytes for folder-managed files; null otherwise | ||
| id | FileID! | Unique identifier | ||
| invoiceId | InvoiceID | Associated invoice ID | ||
| jobId | JobID | Associated job ID | ||
| mimeType | String! | MIME type of the file | ||
| name | String! | Display name | ||
| orderId | OrderID | Associated order ID | ||
| originalFilename | String! | Original filename as uploaded | ||
| parentFileId | FileID | Parent file ID for versioned files | ||
| processingMetadata | JSONMap | Processing metadata (JSON) | ||
| purchaseOrderId | PurchaseOrderID | Associated purchase order ID | ||
| sizeBytes | Int! | File size in bytes | ||
| status | FileStatus! | Processing status | ||
| storageBackend | FileStorageBackendTag | Where the bytes live, or null while an upload is in flight | ||
| updatedAt | String! | Last update timestamp (ISO8601) | ||
| uploadedByUserId | UserID | ID of the user who uploaded the file | ||
| usageRole | ComponentFileUsageRole | Usage role when attached to a component | ||
| versionNumber | Int! | Version number |