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

@@ -117,7 +117,7 @@ import {
useFactory: (configService: ConfigService) => ({
fallbackLanguage: configService.get('i18n.fallbackLanguage', 'en'),
loaderOptions: {
path: path.join(__dirname, '/i18n/'),
path: path.join(__dirname, '..', 'i18n'),
watch: configService.get('app.isDevelopment', true),
},
}),

View File

@@ -1,13 +1 @@
{
"welcome": "Welcome",
"success": "Operation completed successfully",
"created": "Resource created successfully",
"updated": "Resource updated successfully",
"deleted": "Resource deleted successfully",
"restored": "Resource restored successfully",
"notFound": "Resource not found",
"serverError": "An unexpected error occurred",
"unauthorized": "You are not authorized to perform this action",
"forbidden": "Access denied",
"badRequest": "Invalid request"
}
{}

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;
}