Overview
The files API (src/store/api/files.js) handles file management, output files, and file status tracking. This module is simpler than others but essential for production file delivery workflows.
File Statuses
File statuses track the state of output files in the production pipeline.Get File Statuses
Output Types
Output types define the kinds of files that can be delivered from tasks (e.g., renders, caches, exports).Get Output Types
Entity Output Files
Output files are production files associated with entities (assets, shots, etc.).Get Entity Output Files
Usage Examples
Load File Data in Component
File Status Filter
Output Type Selector
API Reference
filesApi Methods
Get all file statusesReturns: Promise<Array> - Array of file status objectsExample:
Get all output file typesReturns: Promise<Array> - Array of output type objectsExample:
Get all output files for an entityParameters:
entityId(string) - Entity ID
Data Structures
File Status Object
Output Type Object
Output File Object
Best Practices
Cache Reference Data
Load file statuses and output types once and cache in Vuex
Display File Sizes
Format file sizes in human-readable units (KB, MB, GB)
Show Status Colors
Use status colors for visual feedback in the UI
Group by Type
Organize files by output type for easier navigation
Integration with Tasks
Output files are often related to task deliverables. You can combine the files API with the tasks API:Next Steps
API Overview
Review the API architecture overview
Tasks API
Learn more about task management
