refactor: clean upload pipeline and restore draco delivery
This commit is contained in:
+24
-2
@@ -1,5 +1,3 @@
|
||||
import type { AssetCategory } from './asset-classification'
|
||||
|
||||
export interface ParsedFile {
|
||||
filename: string
|
||||
buffer: Buffer
|
||||
@@ -11,8 +9,14 @@ export interface PushFile {
|
||||
contentBase64: string
|
||||
}
|
||||
|
||||
export type GitModelMode = 'draco-glb' | 'keep-gltf'
|
||||
|
||||
export type DriveAction = 'new' | 'replace'
|
||||
|
||||
export type FileChange = 'new' | 'changed' | 'unchanged'
|
||||
|
||||
export type AssetCategory = 'color' | 'diffuse' | 'roughness' | 'normal' | 'metalness' | 'height' | 'opacity' | 'orm' | 'ao' | 'assets'
|
||||
|
||||
export interface FileDiff {
|
||||
name: string
|
||||
status: 'changed' | 'new' | 'deleted'
|
||||
@@ -29,3 +33,21 @@ export interface PreparedAssetSummary {
|
||||
category?: AssetCategory
|
||||
compressed: boolean
|
||||
}
|
||||
|
||||
export interface StagingUploadResult {
|
||||
stagingId: string
|
||||
folderName: string
|
||||
filesCount: number
|
||||
}
|
||||
|
||||
export interface PreparedGitAssetsResult {
|
||||
filesToPush: PushFile[]
|
||||
modelFilename: string
|
||||
assetSummaries: PreparedAssetSummary[]
|
||||
compressed: boolean
|
||||
compressionError?: string
|
||||
}
|
||||
|
||||
export interface PreparedStageAssetsResult extends PreparedGitAssetsResult {
|
||||
folderName: string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user