generated from fahricansecer/boilerplate-be
main
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { Module } from '@nestjs/common';
|
||||
import { BullModule } from '@nestjs/bullmq';
|
||||
import { DatabaseModule } from '../../database/database.module';
|
||||
import { GeminiModule } from '../gemini/gemini.module';
|
||||
|
||||
@@ -10,6 +11,7 @@ import {
|
||||
AnalysisController,
|
||||
VersionsController,
|
||||
} from './controllers';
|
||||
import { JobsController } from './controllers/jobs.controller';
|
||||
|
||||
// Services
|
||||
import {
|
||||
@@ -20,6 +22,16 @@ import {
|
||||
VersionsService,
|
||||
} from './services';
|
||||
|
||||
// Queue
|
||||
import { QUEUES } from './queue/queue.constants';
|
||||
import { ScriptProcessor } from './queue/script.processor';
|
||||
import { ResearchProcessor } from './queue/research.processor';
|
||||
import { AnalysisProcessor } from './queue/analysis.processor';
|
||||
|
||||
// Gateway (WebSocket)
|
||||
import { SkriptaiGateway } from './gateway/skriptai.gateway';
|
||||
import { QueueEventBridge } from './gateway/queue-event-bridge';
|
||||
|
||||
/**
|
||||
* SkriptAI Module
|
||||
*
|
||||
@@ -33,18 +45,30 @@ import {
|
||||
* - YouTube audit
|
||||
* - Commercial brief generation
|
||||
* - Version history & content management
|
||||
* - BullMQ async job processing
|
||||
*
|
||||
* TR: SkriptAI ana modülü - AI destekli video script üretimi.
|
||||
* EN: Main module for the SkriptAI feature - AI-powered video script generation.
|
||||
*/
|
||||
@Module({
|
||||
imports: [DatabaseModule, GeminiModule],
|
||||
imports: [
|
||||
DatabaseModule,
|
||||
GeminiModule,
|
||||
|
||||
// BullMQ Queues
|
||||
BullModule.registerQueue(
|
||||
{ name: QUEUES.SCRIPT_GENERATION },
|
||||
{ name: QUEUES.DEEP_RESEARCH },
|
||||
{ name: QUEUES.ANALYSIS },
|
||||
{ name: QUEUES.IMAGE_GENERATION },
|
||||
),
|
||||
],
|
||||
controllers: [
|
||||
ProjectsController,
|
||||
ScriptsController,
|
||||
ResearchController,
|
||||
AnalysisController,
|
||||
VersionsController,
|
||||
JobsController,
|
||||
],
|
||||
providers: [
|
||||
ProjectsService,
|
||||
@@ -52,6 +76,15 @@ import {
|
||||
ResearchService,
|
||||
AnalysisService,
|
||||
VersionsService,
|
||||
|
||||
// Queue Processors
|
||||
ScriptProcessor,
|
||||
ResearchProcessor,
|
||||
AnalysisProcessor,
|
||||
|
||||
// WebSocket
|
||||
SkriptaiGateway,
|
||||
QueueEventBridge,
|
||||
],
|
||||
exports: [
|
||||
ProjectsService,
|
||||
|
||||
Reference in New Issue
Block a user