/** 檔案資訊 */ export interface UofxFileModel { /** 檔案id */ id: string; /** [圖片下載拿這個]下載url */ url: string; /** [檔案下載拿這個]綁token的下載url */ rawUrl?: string; /** 檔名 */ fileName: string; /** 檔案大小 */ length: number; /** 上傳的使用者資訊(補故事後調整) */ uploader?: any; /** 錯誤訊息 */ errorMessage?: string; /** contentType */ contentType?: string; /** 開啟viewer預覽的url */ pdfUrl?: string; /** 縮圖 */ screenShotUrl?: string; /** 轉檔失敗的traceId */ traceId?: string; /** 檔案轉檔狀態 */ viewStatus?: UofxFileViewStatus; /** 開cad viewer需要的base64 */ cadUrl?: string; /** cad檔案轉檔狀態 */ cadViewStatus?: UofxCADViewStatus; /** cad檔案轉檔失敗後的traceId */ cadTraceId?: string; /** 透過cad按鈕上傳的檔案 */ isFromCad?: boolean; } /** 檔案轉檔狀態 */ export declare enum UofxFileViewStatus { /** 轉檔中 */ Converting = 0, /** 轉檔成功 */ ConvertSuccess = 1, /** 檔案轉檔失敗 */ ConvertFail = 2, /** 超過頁數限制而無法進行轉檔 */ OverPageLimit = 3, /** 不支援線上預覽的格式 */ NotSupport = 4 } /** cad檔案轉檔狀態 */ export declare enum UofxCADViewStatus { /** 轉檔中 */ Converting = 0, /** 轉檔成功 */ ConvertSuccess = 1, /** 檔案轉檔失敗 */ ConvertFail = 2, /** 不支援線上預覽的格式 */ NotSupport = 3 } /** 分割後的檔案名稱與副檔名 */ export interface UofxSplitFileName { /** 檔案名稱 */ name: string; /** 副檔名 */ extension: string; }