main
Some checks failed
Backend Deploy 🚀 / build-and-deploy (push) Has been cancelled

This commit is contained in:
Harun CAN
2026-03-31 13:04:45 +03:00
parent 013b2856bc
commit adc6e34fca
3 changed files with 34 additions and 45 deletions

View File

@@ -16,6 +16,38 @@ import { NotificationsService } from '../notifications/notifications.service';
import { Public } from '../../common/decorators';
import { ProjectStatus, RenderStage } from '@prisma/client';
// ── DTO Tanımları ──────────────────────────────────────────
export class RenderProgressDto {
projectId: string;
renderJobId?: string;
progress: number;
stage: string;
stageLabel: string;
currentScene?: number;
totalScenes?: number;
eta?: number;
stepDurationMs?: number;
}
export class RenderCompletedDto {
projectId: string;
renderJobId?: string;
finalVideoUrl: string;
thumbnailUrl?: string;
processingTimeMs: number;
fileSize: number;
}
export class RenderFailedDto {
projectId: string;
renderJobId?: string;
error: string;
stage: string;
attemptNumber: number;
canRetry?: boolean;
}
/**
* Render Callback Controller
*
@@ -285,34 +317,3 @@ export class RenderCallbackController {
}
}
// ── DTO Tanımları ──────────────────────────────────────────
class RenderProgressDto {
projectId: string;
renderJobId?: string;
progress: number;
stage: string;
stageLabel: string;
currentScene?: number;
totalScenes?: number;
eta?: number;
stepDurationMs?: number;
}
class RenderCompletedDto {
projectId: string;
renderJobId?: string;
finalVideoUrl: string;
thumbnailUrl?: string;
processingTimeMs: number;
fileSize: number;
}
class RenderFailedDto {
projectId: string;
renderJobId?: string;
error: string;
stage: string;
attemptNumber: number;
canRetry?: boolean;
}