| 12345678910111213141516171819202122232425262728 |
- // Upload related types moved to a centralized type file
- export enum UPLOAD_STATUS {
- PENDING = 'pending',
- UPLOADING = 'uploading',
- SUCCESS = 'success',
- FAILED = 'failed',
- RETRYING = 'retrying',
- }
- export interface UploadImage {
- file: File
- status: UPLOAD_STATUS
- url: string | null
- error: string | null
- retryCount: number
- originalFile: File
- content?: string
- }
- export interface Workbench {
- warehouseCode: string
- workStation: string
- }
- export interface EditImageExposed {
- editImage: (image: UploadImage, type: 'outer' | 'inner') => void
- }
|