UNPKG

@speckle/shared

Version:

Shared code between various Speckle JS packages

122 lines (116 loc) 2.07 kB
// This is the exhaustive list of all the file extensions that the rhino processor can convert // Items that we don't want to expose are intentionally commented out in place // Either because they don't deliver value, or don't convert well. // The items left un-commented have been validated they work well with Speckle export const rhinoImporterSupportedFileExtensions = new Set([ '3dm', // '3dmbak', // 'rws', '3mf', '3ds', 'amf', // 'ai', 'dwg', 'dxf', 'x', 'e57', // 'dst', // 'exp', // 'dst', // 'exp', // 'off', // 'gf', // 'gft', // 'gltf', // 'glb', // 'gts', 'igs', 'iges', // 'lwo', 'dgn', 'fbx', // 'scn', 'obj', // 'pdf', 'ply', // 'asc', // 'csv', // 'xyz', // 'pts', // 'cgo_ascii', // 'cgo_asci', // 'txt', // 'raw', // 'm', // 'pts', // 'svg', 'skp', // 'slc', 'sldprt', // 'sldasm', 'stp', 'step', 'stl' // 'vda', // 'wrl', // 'vrml', // 'iv', // 'gdf' ]) // For comments attachments, could be moved back to frontend-2 export const acceptedFileExtensions = [ 'pdf', 'zip', '7z', 'pptx', 'ifc', 'dwg', 'dxf', '3dm', 'ghx', 'gh', 'rvt', 'pla', 'pln', 'obj', 'blend', '3ds', 'max', 'mtl', 'stl', 'md', 'txt', 'csv', 'xlsx', 'xls', 'doc', 'docx', 'svg', 'eps', 'gwb', 'skp', 'pbix' ] export const BlobUploadStatus = <const>{ Pending: 0, Completed: 1, Error: 2 } export type BlobUploadStatus = (typeof BlobUploadStatus)[keyof typeof BlobUploadStatus] export const FileUploadConvertedStatus = <const>{ Queued: 0, Converting: 1, Completed: 2, Error: 3 } export type FileUploadConvertedStatus = (typeof FileUploadConvertedStatus)[keyof typeof FileUploadConvertedStatus] export const fileUploadConvertedStatusLabels: Record< FileUploadConvertedStatus, string > = { [FileUploadConvertedStatus.Queued]: 'Queued', [FileUploadConvertedStatus.Converting]: 'Converting', [FileUploadConvertedStatus.Completed]: 'Completed', [FileUploadConvertedStatus.Error]: 'Error' }