generated from fahricansecer/boilerplate-be
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user