fix: harden upload resilience and contracts
This commit is contained in:
+22
-1
@@ -15,11 +15,13 @@ export type DriveAction = 'new' | 'replace'
|
||||
|
||||
export type FileChange = 'new' | 'changed' | 'unchanged'
|
||||
|
||||
export type FileDiffStatus = 'changed' | 'new' | 'deleted'
|
||||
|
||||
export type AssetCategory = 'color' | 'diffuse' | 'roughness' | 'normal' | 'metalness' | 'height' | 'opacity' | 'orm' | 'ao' | 'assets'
|
||||
|
||||
export interface FileDiff {
|
||||
name: string
|
||||
status: 'changed' | 'new' | 'deleted'
|
||||
status: FileDiffStatus
|
||||
}
|
||||
|
||||
export interface RemoteFile {
|
||||
@@ -40,11 +42,30 @@ export interface StagingUploadResult {
|
||||
filesCount: number
|
||||
}
|
||||
|
||||
export interface CheckUploadResult {
|
||||
exists: boolean
|
||||
diffs: FileDiff[]
|
||||
warning?: string
|
||||
}
|
||||
|
||||
export interface DriveUploadResult {
|
||||
success: boolean
|
||||
error?: string
|
||||
}
|
||||
|
||||
export interface GitUploadResult {
|
||||
success: boolean
|
||||
filename?: string
|
||||
warning?: string
|
||||
error?: string
|
||||
}
|
||||
|
||||
export interface PreparedGitAssetsResult {
|
||||
filesToPush: PushFile[]
|
||||
modelFilename: string
|
||||
assetSummaries: PreparedAssetSummary[]
|
||||
compressed: boolean
|
||||
deliveryMode: GitModelMode
|
||||
compressionError?: string
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user