@hed-hog/lms 0.0.353 → 0.0.354
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/course/course-audio-transcription.service.d.ts +29 -0
- package/dist/course/course-audio-transcription.service.d.ts.map +1 -0
- package/dist/course/course-audio-transcription.service.js +291 -0
- package/dist/course/course-audio-transcription.service.js.map +1 -0
- package/dist/course/course-lesson.controller.d.ts +10 -0
- package/dist/course/course-lesson.controller.d.ts.map +1 -0
- package/dist/course/course-lesson.controller.js +62 -0
- package/dist/course/course-lesson.controller.js.map +1 -0
- package/dist/course/course-structure.controller.d.ts +41 -15
- package/dist/course/course-structure.controller.d.ts.map +1 -1
- package/dist/course/course-structure.controller.js +50 -6
- package/dist/course/course-structure.controller.js.map +1 -1
- package/dist/course/course-structure.service.d.ts +50 -15
- package/dist/course/course-structure.service.d.ts.map +1 -1
- package/dist/course/course-structure.service.js +238 -73
- package/dist/course/course-structure.service.js.map +1 -1
- package/dist/course/course-video-conversion.service.d.ts +20 -2
- package/dist/course/course-video-conversion.service.d.ts.map +1 -1
- package/dist/course/course-video-conversion.service.js +730 -10
- package/dist/course/course-video-conversion.service.js.map +1 -1
- package/dist/course/course.controller.d.ts +24 -8
- package/dist/course/course.controller.d.ts.map +1 -1
- package/dist/course/course.module.d.ts.map +1 -1
- package/dist/course/course.module.js +5 -3
- package/dist/course/course.module.js.map +1 -1
- package/dist/course/course.service.d.ts +24 -8
- package/dist/course/course.service.d.ts.map +1 -1
- package/dist/course/course.service.js +112 -176
- package/dist/course/course.service.js.map +1 -1
- package/dist/course/dto/create-course-lesson-frame.dto.d.ts +5 -0
- package/dist/course/dto/create-course-lesson-frame.dto.d.ts.map +1 -0
- package/dist/course/dto/create-course-lesson-frame.dto.js +30 -0
- package/dist/course/dto/create-course-lesson-frame.dto.js.map +1 -0
- package/dist/course/dto/create-course-structure-lesson.dto.d.ts +4 -2
- package/dist/course/dto/create-course-structure-lesson.dto.d.ts.map +1 -1
- package/dist/course/dto/create-course-structure-lesson.dto.js +10 -3
- package/dist/course/dto/create-course-structure-lesson.dto.js.map +1 -1
- package/dist/course/dto/create-course.dto.d.ts +1 -1
- package/dist/course/dto/create-course.dto.d.ts.map +1 -1
- package/dist/course/dto/create-course.dto.js +6 -6
- package/dist/course/dto/create-course.dto.js.map +1 -1
- package/dist/course/dto/update-course-lesson-frame.dto.d.ts +5 -0
- package/dist/course/dto/update-course-lesson-frame.dto.d.ts.map +1 -0
- package/dist/course/dto/update-course-lesson-frame.dto.js +32 -0
- package/dist/course/dto/update-course-lesson-frame.dto.js.map +1 -0
- package/dist/course/dto/update-course-resources.dto.d.ts +4 -2
- package/dist/course/dto/update-course-resources.dto.d.ts.map +1 -1
- package/dist/course/dto/update-course-resources.dto.js +10 -3
- package/dist/course/dto/update-course-resources.dto.js.map +1 -1
- package/dist/course/dto/update-transcription-segments.dto.d.ts +10 -0
- package/dist/course/dto/update-transcription-segments.dto.d.ts.map +1 -0
- package/dist/course/dto/update-transcription-segments.dto.js +38 -0
- package/dist/course/dto/update-transcription-segments.dto.js.map +1 -0
- package/dist/course/lms-setting.controller.d.ts +13 -0
- package/dist/course/lms-setting.controller.d.ts.map +1 -0
- package/dist/course/lms-setting.controller.js +53 -0
- package/dist/course/lms-setting.controller.js.map +1 -0
- package/dist/enterprise/training/training-admin.service.d.ts.map +1 -1
- package/dist/enterprise/training/training-admin.service.js +74 -33
- package/dist/enterprise/training/training-admin.service.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/lms.module.d.ts.map +1 -1
- package/dist/lms.module.js +6 -0
- package/dist/lms.module.js.map +1 -1
- package/hedhog/data/route.yaml +63 -0
- package/hedhog/data/setting_group.yaml +76 -0
- package/hedhog/frontend/app/courses/[id]/_components/CourseCertificateCard.tsx.ejs +3 -0
- package/hedhog/frontend/app/courses/[id]/_components/CourseClassificationCard.tsx.ejs +10 -1
- package/hedhog/frontend/app/courses/[id]/_components/CourseContentCard.tsx.ejs +7 -2
- package/hedhog/frontend/app/courses/[id]/_components/CourseDangerZoneCard.tsx.ejs +5 -2
- package/hedhog/frontend/app/courses/[id]/_components/CourseFlagsCard.tsx.ejs +7 -1
- package/hedhog/frontend/app/courses/[id]/_components/CourseMediaCard.tsx.ejs +3 -0
- package/hedhog/frontend/app/courses/[id]/_components/CourseMultiEntityPicker.tsx.ejs +95 -50
- package/hedhog/frontend/app/courses/[id]/_components/CourseRelationsCard.tsx.ejs +11 -36
- package/hedhog/frontend/app/courses/[id]/_components/CourseSectionCard.tsx.ejs +19 -5
- package/hedhog/frontend/app/courses/[id]/_components/course-edit-types.ts.ejs +1 -1
- package/hedhog/frontend/app/courses/[id]/page.tsx.ejs +30 -10
- package/hedhog/frontend/app/courses/[id]/structure/_components/CourseInstructorsSummaryCard.tsx.ejs +95 -0
- package/hedhog/frontend/app/courses/[id]/structure/_components/course-tree-dnd.tsx.ejs +29 -11
- package/hedhog/frontend/app/courses/[id]/structure/_components/course-tree-panel.tsx.ejs +42 -31
- package/hedhog/frontend/app/courses/[id]/structure/_components/course-tree.tsx.ejs +10 -1
- package/hedhog/frontend/app/courses/[id]/structure/_components/detail-lesson.tsx.ejs +51 -9
- package/hedhog/frontend/app/courses/[id]/structure/_components/drag-handle.tsx.ejs +25 -22
- package/hedhog/frontend/app/courses/[id]/structure/_components/editor-bulk.tsx.ejs +12 -9
- package/hedhog/frontend/app/courses/[id]/structure/_components/editor-course.tsx.ejs +315 -229
- package/hedhog/frontend/app/courses/[id]/structure/_components/editor-lesson.tsx.ejs +3220 -534
- package/hedhog/frontend/app/courses/[id]/structure/_components/editor-session.tsx.ejs +20 -15
- package/hedhog/frontend/app/courses/[id]/structure/_components/icon-action-tooltip.tsx.ejs +35 -0
- package/hedhog/frontend/app/courses/[id]/structure/_components/multi-select-bar.tsx.ejs +76 -67
- package/hedhog/frontend/app/courses/[id]/structure/_components/search-filter.tsx.ejs +13 -10
- package/hedhog/frontend/app/courses/[id]/structure/_components/shortcuts-help.tsx.ejs +18 -16
- package/hedhog/frontend/app/courses/[id]/structure/_components/sortable-tree-row.tsx.ejs +6 -0
- package/hedhog/frontend/app/courses/[id]/structure/_components/tree-context-menu.tsx.ejs +1 -1
- package/hedhog/frontend/app/courses/[id]/structure/_components/tree-display-settings-popover.tsx.ejs +23 -11
- package/hedhog/frontend/app/courses/[id]/structure/_components/tree-helpers.ts.ejs +48 -9
- package/hedhog/frontend/app/courses/[id]/structure/_components/tree-row-course.tsx.ejs +11 -2
- package/hedhog/frontend/app/courses/[id]/structure/_components/tree-row-lesson.tsx.ejs +121 -15
- package/hedhog/frontend/app/courses/[id]/structure/_components/tree-row-session.tsx.ejs +69 -14
- package/hedhog/frontend/app/courses/[id]/structure/_components/tree-row.tsx.ejs +11 -0
- package/hedhog/frontend/app/courses/[id]/structure/_components/types.ts.ejs +31 -0
- package/hedhog/frontend/app/courses/[id]/structure/_data/adapters/course-structure.adapter.ts.ejs +32 -6
- package/hedhog/frontend/app/courses/[id]/structure/_data/services/course-structure.service.ts.ejs +57 -3
- package/hedhog/frontend/app/courses/[id]/structure/_data/types/api-course.types.ts.ejs +46 -6
- package/hedhog/frontend/app/courses/[id]/structure/_data/use-course-structure-mutations.ts.ejs +14 -0
- package/hedhog/frontend/app/courses/[id]/structure/_data/use-lesson-audio-files.ts.ejs +23 -0
- package/hedhog/frontend/app/courses/[id]/structure/_data/use-lms-settings-query.ts.ejs +34 -0
- package/hedhog/frontend/app/courses/[id]/structure/_data/use-transcription-segments.ts.ejs +76 -0
- package/hedhog/frontend/messages/en.json +39 -3
- package/hedhog/frontend/messages/pt.json +39 -3
- package/hedhog/table/course.yaml +8 -0
- package/hedhog/table/course_lesson_file.yaml +12 -4
- package/hedhog/table/course_lesson_transcription_segment.yaml +22 -0
- package/hedhog/table/course_lesson_video_frame.yaml +25 -0
- package/package.json +9 -9
- package/src/course/course-audio-transcription.service.ts +393 -0
- package/src/course/course-lesson.controller.ts +28 -0
- package/src/course/course-structure.controller.ts +49 -3
- package/src/course/course-structure.service.ts +294 -32
- package/src/course/course-video-conversion.service.ts +972 -6
- package/src/course/course.module.ts +5 -3
- package/src/course/course.service.ts +87 -139
- package/src/course/dto/create-course-lesson-frame.dto.ts +14 -0
- package/src/course/dto/create-course-structure-lesson.dto.ts +19 -3
- package/src/course/dto/create-course.dto.ts +5 -5
- package/src/course/dto/update-course-lesson-frame.dto.ts +16 -0
- package/src/course/dto/update-course-resources.dto.ts +18 -3
- package/src/course/dto/update-transcription-segments.dto.ts +20 -0
- package/src/course/lms-setting.controller.ts +30 -0
- package/src/enterprise/training/training-admin.service.ts +77 -24
- package/src/index.ts +2 -0
- package/src/lms.module.ts +6 -0
- package/hedhog/table/course_instructor.yaml +0 -27
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { PrismaService } from '@hed-hog/api-prisma';
|
|
2
|
+
import { FileService, NotificationService, SettingService } from '@hed-hog/core';
|
|
3
|
+
import { IJobHandler, QueueHandlerRegistry } from '@hed-hog/queue';
|
|
4
|
+
import { OnModuleInit } from '@nestjs/common';
|
|
5
|
+
export declare class CourseAudioTranscriptionService implements OnModuleInit, IJobHandler {
|
|
6
|
+
private readonly prismaService;
|
|
7
|
+
private readonly settingService;
|
|
8
|
+
private readonly fileService;
|
|
9
|
+
private readonly notificationService;
|
|
10
|
+
private readonly registry;
|
|
11
|
+
private readonly logger;
|
|
12
|
+
private createProgressEvent;
|
|
13
|
+
private resolveNotificationProgress;
|
|
14
|
+
private updateAsyncNotification;
|
|
15
|
+
constructor(prismaService: PrismaService, settingService: SettingService, fileService: FileService, notificationService: NotificationService, registry: QueueHandlerRegistry);
|
|
16
|
+
onModuleInit(): void;
|
|
17
|
+
handle(job: {
|
|
18
|
+
id: number;
|
|
19
|
+
type: string;
|
|
20
|
+
queue_name: string;
|
|
21
|
+
payload: Record<string, any>;
|
|
22
|
+
attempts: number;
|
|
23
|
+
max_attempts: number;
|
|
24
|
+
source_module?: string | null;
|
|
25
|
+
source_entity?: string | null;
|
|
26
|
+
source_entity_id?: string | null;
|
|
27
|
+
}): Promise<void>;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=course-audio-transcription.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"course-audio-transcription.service.d.ts","sourceRoot":"","sources":["../../src/course/course-audio-transcription.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACjF,OAAO,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACnE,OAAO,EAIH,YAAY,EAEf,MAAM,gBAAgB,CAAC;AAexB,qBACa,+BAAgC,YAAW,YAAY,EAAE,WAAW;IAsE7E,OAAO,CAAC,QAAQ,CAAC,aAAa;IAE9B,OAAO,CAAC,QAAQ,CAAC,cAAc;IAE/B,OAAO,CAAC,QAAQ,CAAC,WAAW;IAE5B,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IAEpC,OAAO,CAAC,QAAQ,CAAC,QAAQ;IA7E3B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoD;YAE7D,mBAAmB;IAqBjC,OAAO,CAAC,2BAA2B;YAqBrB,uBAAuB;gBAyBlB,aAAa,EAAE,aAAa,EAE5B,cAAc,EAAE,cAAc,EAE9B,WAAW,EAAE,WAAW,EAExB,mBAAmB,EAAE,mBAAmB,EAExC,QAAQ,EAAE,oBAAoB;IAGjD,YAAY;IAKN,MAAM,CAAC,GAAG,EAAE;QAChB,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,UAAU,EAAE,MAAM,CAAC;QACnB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAC7B,QAAQ,EAAE,MAAM,CAAC;QACjB,YAAY,EAAE,MAAM,CAAC;QACrB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAC9B,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAC9B,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAClC,GAAG,OAAO,CAAC,IAAI,CAAC;CA+QlB"}
|
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
15
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
16
|
+
};
|
|
17
|
+
var CourseAudioTranscriptionService_1;
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.CourseAudioTranscriptionService = void 0;
|
|
20
|
+
const api_prisma_1 = require("@hed-hog/api-prisma");
|
|
21
|
+
const core_1 = require("@hed-hog/core");
|
|
22
|
+
const queue_1 = require("@hed-hog/queue");
|
|
23
|
+
const common_1 = require("@nestjs/common");
|
|
24
|
+
const axios_1 = __importDefault(require("axios"));
|
|
25
|
+
const child_process_1 = require("child_process");
|
|
26
|
+
const fs_1 = require("fs");
|
|
27
|
+
const os_1 = require("os");
|
|
28
|
+
const path_1 = require("path");
|
|
29
|
+
const util_1 = require("util");
|
|
30
|
+
const execFileAsync = (0, util_1.promisify)(child_process_1.execFile);
|
|
31
|
+
let CourseAudioTranscriptionService = CourseAudioTranscriptionService_1 = class CourseAudioTranscriptionService {
|
|
32
|
+
async createProgressEvent(queueJobId, message, metadata) {
|
|
33
|
+
try {
|
|
34
|
+
await this.prismaService.queue_job_event.create({
|
|
35
|
+
data: Object.assign({ queue_job_id: queueJobId, event_type: 'started', message }, (metadata ? { metadata } : {})),
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
catch (error) {
|
|
39
|
+
this.logger.warn(`Queue job ${queueJobId}: failed to persist transcription progress event "${message}": ${error instanceof Error ? error.message : 'unknown error'}`);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
resolveNotificationProgress(metadata) {
|
|
43
|
+
var _a, _b, _c;
|
|
44
|
+
const phase = String((_a = metadata === null || metadata === void 0 ? void 0 : metadata.phase) !== null && _a !== void 0 ? _a : '');
|
|
45
|
+
if (phase === 'transcription_download_audio')
|
|
46
|
+
return 92;
|
|
47
|
+
if (phase === 'transcription_split_audio')
|
|
48
|
+
return 94;
|
|
49
|
+
if (phase === 'transcription_split_done')
|
|
50
|
+
return 96;
|
|
51
|
+
if (phase === 'transcription_ai_chunk') {
|
|
52
|
+
const chunkIndex = Number((_b = metadata === null || metadata === void 0 ? void 0 : metadata.chunkIndex) !== null && _b !== void 0 ? _b : 0);
|
|
53
|
+
const chunkCount = Number((_c = metadata === null || metadata === void 0 ? void 0 : metadata.chunkCount) !== null && _c !== void 0 ? _c : 0);
|
|
54
|
+
if (chunkIndex > 0 && chunkCount > 0) {
|
|
55
|
+
const ratio = Math.min(1, Math.max(0, chunkIndex / chunkCount));
|
|
56
|
+
return 96 + Math.round(ratio * 3);
|
|
57
|
+
}
|
|
58
|
+
return 98;
|
|
59
|
+
}
|
|
60
|
+
if (phase === 'transcription_save')
|
|
61
|
+
return 99;
|
|
62
|
+
if (phase === 'transcription_done')
|
|
63
|
+
return 100;
|
|
64
|
+
return 95;
|
|
65
|
+
}
|
|
66
|
+
async updateAsyncNotification(context, progress, body, success) {
|
|
67
|
+
try {
|
|
68
|
+
await this.notificationService.updateProgress(context.userId, context.notificationId, Object.assign({ progress,
|
|
69
|
+
body }, (success != null ? { success } : {})));
|
|
70
|
+
}
|
|
71
|
+
catch (error) {
|
|
72
|
+
this.logger.warn(`Failed to update async notification ${context.notificationId} for user ${context.userId}: ${error instanceof Error ? error.message : 'unknown error'}`);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
constructor(prismaService, settingService, fileService, notificationService, registry) {
|
|
76
|
+
this.prismaService = prismaService;
|
|
77
|
+
this.settingService = settingService;
|
|
78
|
+
this.fileService = fileService;
|
|
79
|
+
this.notificationService = notificationService;
|
|
80
|
+
this.registry = registry;
|
|
81
|
+
this.logger = new common_1.Logger(CourseAudioTranscriptionService_1.name);
|
|
82
|
+
}
|
|
83
|
+
onModuleInit() {
|
|
84
|
+
this.registry.register('lms.audio.transcribe', this);
|
|
85
|
+
this.logger.log('Registered handler for "lms.audio.transcribe"');
|
|
86
|
+
}
|
|
87
|
+
async handle(job) {
|
|
88
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
89
|
+
const { courseId, lessonId, audioFileId, parentJobId, notificationId, notificationUserId } = job.payload;
|
|
90
|
+
const notificationContext = Number.isInteger(Number(notificationId)) &&
|
|
91
|
+
Number.isInteger(Number(notificationUserId))
|
|
92
|
+
? {
|
|
93
|
+
notificationId: Number(notificationId),
|
|
94
|
+
userId: Number(notificationUserId),
|
|
95
|
+
}
|
|
96
|
+
: undefined;
|
|
97
|
+
const emitProgress = async (message, metadata) => {
|
|
98
|
+
await this.createProgressEvent(job.id, message, metadata);
|
|
99
|
+
if (parentJobId) {
|
|
100
|
+
await this.createProgressEvent(parentJobId, message, metadata);
|
|
101
|
+
}
|
|
102
|
+
if (notificationContext) {
|
|
103
|
+
await this.updateAsyncNotification(notificationContext, this.resolveNotificationProgress(metadata), message);
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
const settings = await this.settingService.getSettingValues([
|
|
107
|
+
'ai-openai-api-key',
|
|
108
|
+
'ai-openai-api-key-enabled',
|
|
109
|
+
'lms-audio-transcription-enabled',
|
|
110
|
+
]);
|
|
111
|
+
const apiKey = settings['ai-openai-api-key'];
|
|
112
|
+
const enabled = settings['ai-openai-api-key-enabled'];
|
|
113
|
+
const transcriptionEnabled = settings['lms-audio-transcription-enabled'] !== false;
|
|
114
|
+
if (!transcriptionEnabled) {
|
|
115
|
+
this.logger.warn(`Transcription skipped for lesson ${lessonId}: disabled by lms-audio-transcription-enabled setting`);
|
|
116
|
+
if (notificationContext) {
|
|
117
|
+
await this.updateAsyncNotification(notificationContext, 100, 'Transcrição desabilitada nas configurações do LMS.', false);
|
|
118
|
+
}
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
if (!enabled || !apiKey) {
|
|
122
|
+
this.logger.warn(`Transcription skipped for lesson ${lessonId}: OpenAI key not configured`);
|
|
123
|
+
if (notificationContext) {
|
|
124
|
+
await this.updateAsyncNotification(notificationContext, 100, 'Transcrição não iniciada: chave da IA não configurada.', false);
|
|
125
|
+
}
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
const course = await this.prismaService.course.findUnique({
|
|
129
|
+
where: { id: courseId },
|
|
130
|
+
include: { locale: true },
|
|
131
|
+
});
|
|
132
|
+
const language = (_b = (_a = course === null || course === void 0 ? void 0 : course.locale) === null || _a === void 0 ? void 0 : _a.code) !== null && _b !== void 0 ? _b : 'pt';
|
|
133
|
+
const tempDir = (0, path_1.join)((0, os_1.tmpdir)(), `lms-transcribe-${lessonId}-${Date.now()}`);
|
|
134
|
+
await fs_1.promises.mkdir(tempDir, { recursive: true });
|
|
135
|
+
try {
|
|
136
|
+
const sourceAudioPath = (0, path_1.join)(tempDir, `audio_${lessonId}.source`);
|
|
137
|
+
const normalizedAudioPath = (0, path_1.join)(tempDir, `audio_${lessonId}.normalized.mp3`);
|
|
138
|
+
await emitProgress('Baixando áudio para transcrição...', {
|
|
139
|
+
phase: 'transcription_download_audio',
|
|
140
|
+
lessonId,
|
|
141
|
+
audioFileId,
|
|
142
|
+
});
|
|
143
|
+
await this.fileService.downloadToPath(audioFileId, sourceAudioPath);
|
|
144
|
+
await emitProgress('Normalizando áudio para transcrição...', {
|
|
145
|
+
phase: 'transcription_split_audio',
|
|
146
|
+
lessonId,
|
|
147
|
+
});
|
|
148
|
+
await execFileAsync('ffmpeg', [
|
|
149
|
+
'-y',
|
|
150
|
+
'-i',
|
|
151
|
+
sourceAudioPath,
|
|
152
|
+
'-ar',
|
|
153
|
+
'16000',
|
|
154
|
+
'-ac',
|
|
155
|
+
'1',
|
|
156
|
+
'-c:a',
|
|
157
|
+
'libmp3lame',
|
|
158
|
+
'-b:a',
|
|
159
|
+
'32k',
|
|
160
|
+
normalizedAudioPath,
|
|
161
|
+
], {
|
|
162
|
+
maxBuffer: 1024 * 1024 * 20,
|
|
163
|
+
windowsHide: true,
|
|
164
|
+
});
|
|
165
|
+
const chunkPattern = (0, path_1.join)(tempDir, 'chunk_%04d.mp3');
|
|
166
|
+
await emitProgress('Dividindo áudio em partes para transcrição...', {
|
|
167
|
+
phase: 'transcription_split_audio',
|
|
168
|
+
lessonId,
|
|
169
|
+
});
|
|
170
|
+
await execFileAsync('ffmpeg', [
|
|
171
|
+
'-y',
|
|
172
|
+
'-i',
|
|
173
|
+
normalizedAudioPath,
|
|
174
|
+
'-f',
|
|
175
|
+
'segment',
|
|
176
|
+
'-segment_time',
|
|
177
|
+
'60',
|
|
178
|
+
'-ar',
|
|
179
|
+
'16000',
|
|
180
|
+
'-ac',
|
|
181
|
+
'1',
|
|
182
|
+
'-c:a',
|
|
183
|
+
'libmp3lame',
|
|
184
|
+
'-b:a',
|
|
185
|
+
'32k',
|
|
186
|
+
chunkPattern,
|
|
187
|
+
], {
|
|
188
|
+
maxBuffer: 1024 * 1024 * 20,
|
|
189
|
+
windowsHide: true,
|
|
190
|
+
});
|
|
191
|
+
const allFiles = await fs_1.promises.readdir(tempDir);
|
|
192
|
+
const chunks = allFiles
|
|
193
|
+
.filter((name) => name.startsWith('chunk_') && name.endsWith('.mp3'))
|
|
194
|
+
.sort((a, b) => a.localeCompare(b));
|
|
195
|
+
await emitProgress(`Áudio dividido em ${chunks.length} parte(s).`, {
|
|
196
|
+
phase: 'transcription_split_done',
|
|
197
|
+
lessonId,
|
|
198
|
+
chunks: chunks.length,
|
|
199
|
+
});
|
|
200
|
+
const allSegments = [];
|
|
201
|
+
for (let i = 0; i < chunks.length; i += 1) {
|
|
202
|
+
const chunkName = chunks[i];
|
|
203
|
+
if (!chunkName)
|
|
204
|
+
continue;
|
|
205
|
+
await emitProgress(`Transcrevendo com IA a parte ${i + 1} de ${chunks.length}...`, {
|
|
206
|
+
phase: 'transcription_ai_chunk',
|
|
207
|
+
lessonId,
|
|
208
|
+
chunkIndex: i + 1,
|
|
209
|
+
chunkCount: chunks.length,
|
|
210
|
+
});
|
|
211
|
+
const chunkPath = (0, path_1.join)(tempDir, chunkName);
|
|
212
|
+
const offsetSeconds = i * 60;
|
|
213
|
+
const chunkBuffer = await fs_1.promises.readFile(chunkPath);
|
|
214
|
+
const formData = new FormData();
|
|
215
|
+
formData.append('file', new Blob([chunkBuffer], { type: 'audio/mpeg' }), chunkName);
|
|
216
|
+
formData.append('model', 'whisper-1');
|
|
217
|
+
formData.append('response_format', 'verbose_json');
|
|
218
|
+
formData.append('language', language);
|
|
219
|
+
const headers = {
|
|
220
|
+
Authorization: `Bearer ${apiKey}`,
|
|
221
|
+
};
|
|
222
|
+
const maybeHeaders = (_d = (_c = formData).getHeaders) === null || _d === void 0 ? void 0 : _d.call(_c);
|
|
223
|
+
if (maybeHeaders && typeof maybeHeaders === 'object') {
|
|
224
|
+
Object.assign(headers, maybeHeaders);
|
|
225
|
+
}
|
|
226
|
+
const response = await axios_1.default.post('https://api.openai.com/v1/audio/transcriptions', formData, { headers });
|
|
227
|
+
const segments = (_f = (_e = response.data) === null || _e === void 0 ? void 0 : _e.segments) !== null && _f !== void 0 ? _f : [];
|
|
228
|
+
for (const segment of segments) {
|
|
229
|
+
const text = String((_g = segment === null || segment === void 0 ? void 0 : segment.text) !== null && _g !== void 0 ? _g : '').trim();
|
|
230
|
+
if (!text)
|
|
231
|
+
continue;
|
|
232
|
+
allSegments.push({
|
|
233
|
+
course_lesson_id: lessonId,
|
|
234
|
+
start_seconds: offsetSeconds + Number((_h = segment === null || segment === void 0 ? void 0 : segment.start) !== null && _h !== void 0 ? _h : 0),
|
|
235
|
+
end_seconds: offsetSeconds + Number((_j = segment === null || segment === void 0 ? void 0 : segment.end) !== null && _j !== void 0 ? _j : 0),
|
|
236
|
+
text,
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
await emitProgress('Salvando transcrição gerada pela IA...', {
|
|
241
|
+
phase: 'transcription_save',
|
|
242
|
+
lessonId,
|
|
243
|
+
segments: allSegments.length,
|
|
244
|
+
});
|
|
245
|
+
await this.prismaService.$transaction([
|
|
246
|
+
this.prismaService.course_lesson_transcription_segment.deleteMany({
|
|
247
|
+
where: { course_lesson_id: lessonId },
|
|
248
|
+
}),
|
|
249
|
+
this.prismaService.course_lesson_transcription_segment.createMany({
|
|
250
|
+
data: allSegments,
|
|
251
|
+
}),
|
|
252
|
+
]);
|
|
253
|
+
this.logger.log(`Transcription saved for lesson ${lessonId}: ${allSegments.length} segments`);
|
|
254
|
+
await emitProgress(`Transcrição concluída com ${allSegments.length} segmento(s).`, {
|
|
255
|
+
phase: 'transcription_done',
|
|
256
|
+
lessonId,
|
|
257
|
+
segments: allSegments.length,
|
|
258
|
+
});
|
|
259
|
+
if (notificationContext) {
|
|
260
|
+
await this.updateAsyncNotification(notificationContext, 100, `Transcrição concluída com ${allSegments.length} segmento(s).`, true);
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
catch (error) {
|
|
264
|
+
if (notificationContext) {
|
|
265
|
+
const message = error instanceof Error && error.message
|
|
266
|
+
? error.message
|
|
267
|
+
: 'Falha ao transcrever o áudio.';
|
|
268
|
+
await this.updateAsyncNotification(notificationContext, 100, `Falha na transcrição: ${message}`, false);
|
|
269
|
+
}
|
|
270
|
+
throw error;
|
|
271
|
+
}
|
|
272
|
+
finally {
|
|
273
|
+
await fs_1.promises.rm(tempDir, { recursive: true, force: true });
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
};
|
|
277
|
+
exports.CourseAudioTranscriptionService = CourseAudioTranscriptionService;
|
|
278
|
+
exports.CourseAudioTranscriptionService = CourseAudioTranscriptionService = CourseAudioTranscriptionService_1 = __decorate([
|
|
279
|
+
(0, common_1.Injectable)(),
|
|
280
|
+
__param(0, (0, common_1.Inject)((0, common_1.forwardRef)(() => api_prisma_1.PrismaService))),
|
|
281
|
+
__param(1, (0, common_1.Inject)((0, common_1.forwardRef)(() => core_1.SettingService))),
|
|
282
|
+
__param(2, (0, common_1.Inject)((0, common_1.forwardRef)(() => core_1.FileService))),
|
|
283
|
+
__param(3, (0, common_1.Inject)((0, common_1.forwardRef)(() => core_1.NotificationService))),
|
|
284
|
+
__param(4, (0, common_1.Inject)((0, common_1.forwardRef)(() => queue_1.QueueHandlerRegistry))),
|
|
285
|
+
__metadata("design:paramtypes", [api_prisma_1.PrismaService,
|
|
286
|
+
core_1.SettingService,
|
|
287
|
+
core_1.FileService,
|
|
288
|
+
core_1.NotificationService,
|
|
289
|
+
queue_1.QueueHandlerRegistry])
|
|
290
|
+
], CourseAudioTranscriptionService);
|
|
291
|
+
//# sourceMappingURL=course-audio-transcription.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"course-audio-transcription.service.js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AAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,4BAAoB,CAAC,CAAC,CAAA;qCAPf,0BAAa;QAEZ,qBAAc;QAEjB,kBAAW;QAEH,0BAAmB;QAE9B,4BAAoB;GA9EtC,+BAA+B,CA+W3C"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CourseStructureService } from './course-structure.service';
|
|
2
|
+
import { UpdateTranscriptionSegmentsDTO } from './dto/update-transcription-segments.dto';
|
|
3
|
+
export declare class CourseLessonController {
|
|
4
|
+
private readonly courseStructureService;
|
|
5
|
+
constructor(courseStructureService: CourseStructureService);
|
|
6
|
+
getTranscriptionSegments(id: number): Promise<any>;
|
|
7
|
+
updateTranscriptionSegments(id: number, dto: UpdateTranscriptionSegmentsDTO): Promise<[any, any]>;
|
|
8
|
+
getAudioFiles(id: number): Promise<any>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=course-lesson.controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"course-lesson.controller.d.ts","sourceRoot":"","sources":["../../src/course/course-lesson.controller.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,8BAA8B,EAAE,MAAM,yCAAyC,CAAC;AAEzF,qBAEa,sBAAsB;IACrB,OAAO,CAAC,QAAQ,CAAC,sBAAsB;gBAAtB,sBAAsB,EAAE,sBAAsB;IAG3E,wBAAwB,CAA4B,EAAE,EAAE,MAAM;IAK9D,2BAA2B,CACE,EAAE,EAAE,MAAM,EAC7B,GAAG,EAAE,8BAA8B;IAM7C,aAAa,CAA4B,EAAE,EAAE,MAAM;CAGpD"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.CourseLessonController = void 0;
|
|
16
|
+
const api_1 = require("@hed-hog/api");
|
|
17
|
+
const common_1 = require("@nestjs/common");
|
|
18
|
+
const course_structure_service_1 = require("./course-structure.service");
|
|
19
|
+
const update_transcription_segments_dto_1 = require("./dto/update-transcription-segments.dto");
|
|
20
|
+
let CourseLessonController = class CourseLessonController {
|
|
21
|
+
constructor(courseStructureService) {
|
|
22
|
+
this.courseStructureService = courseStructureService;
|
|
23
|
+
}
|
|
24
|
+
getTranscriptionSegments(id) {
|
|
25
|
+
return this.courseStructureService.getTranscriptionSegments(id);
|
|
26
|
+
}
|
|
27
|
+
updateTranscriptionSegments(id, dto) {
|
|
28
|
+
return this.courseStructureService.updateTranscriptionSegments(id, dto);
|
|
29
|
+
}
|
|
30
|
+
getAudioFiles(id) {
|
|
31
|
+
return this.courseStructureService.getAudioFiles(id);
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
exports.CourseLessonController = CourseLessonController;
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, common_1.Get)(':id/transcription-segments'),
|
|
37
|
+
__param(0, (0, common_1.Param)('id', common_1.ParseIntPipe)),
|
|
38
|
+
__metadata("design:type", Function),
|
|
39
|
+
__metadata("design:paramtypes", [Number]),
|
|
40
|
+
__metadata("design:returntype", void 0)
|
|
41
|
+
], CourseLessonController.prototype, "getTranscriptionSegments", null);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, common_1.Put)(':id/transcription-segments'),
|
|
44
|
+
__param(0, (0, common_1.Param)('id', common_1.ParseIntPipe)),
|
|
45
|
+
__param(1, (0, common_1.Body)()),
|
|
46
|
+
__metadata("design:type", Function),
|
|
47
|
+
__metadata("design:paramtypes", [Number, update_transcription_segments_dto_1.UpdateTranscriptionSegmentsDTO]),
|
|
48
|
+
__metadata("design:returntype", void 0)
|
|
49
|
+
], CourseLessonController.prototype, "updateTranscriptionSegments", null);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, common_1.Get)(':id/audio-files'),
|
|
52
|
+
__param(0, (0, common_1.Param)('id', common_1.ParseIntPipe)),
|
|
53
|
+
__metadata("design:type", Function),
|
|
54
|
+
__metadata("design:paramtypes", [Number]),
|
|
55
|
+
__metadata("design:returntype", void 0)
|
|
56
|
+
], CourseLessonController.prototype, "getAudioFiles", null);
|
|
57
|
+
exports.CourseLessonController = CourseLessonController = __decorate([
|
|
58
|
+
(0, api_1.Role)(),
|
|
59
|
+
(0, common_1.Controller)('lms/lessons'),
|
|
60
|
+
__metadata("design:paramtypes", [course_structure_service_1.CourseStructureService])
|
|
61
|
+
], CourseLessonController);
|
|
62
|
+
//# sourceMappingURL=course-lesson.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"course-lesson.controller.js","sourceRoot":"","sources":["../../src/course/course-lesson.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,sCAAoC;AACpC,2CAAiF;AACjF,yEAAoE;AACpE,+FAAyF;AAIlF,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IACjC,YAA6B,sBAA8C;QAA9C,2BAAsB,GAAtB,sBAAsB,CAAwB;IAAG,CAAC;IAG/E,wBAAwB,CAA4B,EAAU;QAC5D,OAAO,IAAI,CAAC,sBAAsB,CAAC,wBAAwB,CAAC,EAAE,CAAC,CAAC;IAClE,CAAC;IAGD,2BAA2B,CACE,EAAU,EAC7B,GAAmC;QAE3C,OAAO,IAAI,CAAC,sBAAsB,CAAC,2BAA2B,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC;IAC1E,CAAC;IAGD,aAAa,CAA4B,EAAU;QACjD,OAAO,IAAI,CAAC,sBAAsB,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC;IACvD,CAAC;CACF,CAAA;AApBY,wDAAsB;AAIjC;IADC,IAAA,YAAG,EAAC,4BAA4B,CAAC;IACR,WAAA,IAAA,cAAK,EAAC,IAAI,EAAE,qBAAY,CAAC,CAAA;;;;sEAElD;AAGD;IADC,IAAA,YAAG,EAAC,4BAA4B,CAAC;IAE/B,WAAA,IAAA,cAAK,EAAC,IAAI,EAAE,qBAAY,CAAC,CAAA;IACzB,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAM,kEAA8B;;yEAG5C;AAGD;IADC,IAAA,YAAG,EAAC,iBAAiB,CAAC;IACR,WAAA,IAAA,cAAK,EAAC,IAAI,EAAE,qBAAY,CAAC,CAAA;;;;2DAEvC;iCAnBU,sBAAsB;IAFlC,IAAA,UAAI,GAAE;IACN,IAAA,mBAAU,EAAC,aAAa,CAAC;qCAE6B,iDAAsB;GADhE,sBAAsB,CAoBlC"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { CourseStructureService } from './course-structure.service';
|
|
2
2
|
import { CourseVideoConversionService } from './course-video-conversion.service';
|
|
3
|
+
import { CreateCourseLessonFrameDto } from './dto/create-course-lesson-frame.dto';
|
|
3
4
|
import { CreateCourseStructureLessonDto, CreateLessonVideoConversionDto } from './dto/create-course-structure-lesson.dto';
|
|
4
5
|
import { CreateCourseStructureSessionDto } from './dto/create-course-structure-session.dto';
|
|
5
6
|
import { MoveLessonDto } from './dto/move-lesson.dto';
|
|
6
7
|
import { PasteLessonsDto } from './dto/paste-lessons.dto';
|
|
7
8
|
import { ReorderLessonsDto } from './dto/reorder-lessons.dto';
|
|
8
9
|
import { ReorderSessionsDto } from './dto/reorder-sessions.dto';
|
|
10
|
+
import { UpdateCourseLessonFrameDto } from './dto/update-course-lesson-frame.dto';
|
|
9
11
|
import { UpdateCourseResourcesDto } from './dto/update-course-resources.dto';
|
|
10
12
|
import { UpdateCourseStructureLessonDto } from './dto/update-course-structure-lesson.dto';
|
|
11
13
|
import { UpdateCourseStructureSessionDto } from './dto/update-course-structure-session.dto';
|
|
@@ -42,8 +44,15 @@ export declare class CourseStructureController {
|
|
|
42
44
|
nome: string;
|
|
43
45
|
fileId: number;
|
|
44
46
|
tamanho: string;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
+
type: "lesson_audio" | "student_download" | "supplementary_material" | "video_original" | `video_profile:${number}`;
|
|
48
|
+
is_public: boolean;
|
|
49
|
+
}[];
|
|
50
|
+
frames: {
|
|
51
|
+
id: string;
|
|
52
|
+
nome: string;
|
|
53
|
+
fileId: number;
|
|
54
|
+
timeSeconds: number;
|
|
55
|
+
url: string;
|
|
47
56
|
}[];
|
|
48
57
|
instrutores: {
|
|
49
58
|
id: string;
|
|
@@ -69,8 +78,8 @@ export declare class CourseStructureController {
|
|
|
69
78
|
id: number;
|
|
70
79
|
nome: string;
|
|
71
80
|
fileId: number;
|
|
72
|
-
|
|
73
|
-
|
|
81
|
+
type: string;
|
|
82
|
+
is_public: boolean;
|
|
74
83
|
}[];
|
|
75
84
|
operationsProjectId: number;
|
|
76
85
|
operationsProjectCode: string;
|
|
@@ -81,15 +90,15 @@ export declare class CourseStructureController {
|
|
|
81
90
|
id: number;
|
|
82
91
|
nome: string;
|
|
83
92
|
fileId: number;
|
|
84
|
-
|
|
85
|
-
|
|
93
|
+
type: string;
|
|
94
|
+
is_public: boolean;
|
|
86
95
|
}[]>;
|
|
87
96
|
updateCourseResources(courseId: number, dto: UpdateCourseResourcesDto): Promise<{
|
|
88
97
|
id: number;
|
|
89
98
|
nome: string;
|
|
90
99
|
fileId: number;
|
|
91
|
-
|
|
92
|
-
|
|
100
|
+
type: string;
|
|
101
|
+
is_public: boolean;
|
|
93
102
|
}[]>;
|
|
94
103
|
createSession(courseId: number, dto: CreateCourseStructureSessionDto): Promise<{
|
|
95
104
|
id: string;
|
|
@@ -142,8 +151,8 @@ export declare class CourseStructureController {
|
|
|
142
151
|
nome: string;
|
|
143
152
|
fileId: number;
|
|
144
153
|
tamanho: string;
|
|
145
|
-
|
|
146
|
-
|
|
154
|
+
type: "lesson_audio" | "student_download" | "supplementary_material" | "video_original" | `video_profile:${number}`;
|
|
155
|
+
is_public: boolean;
|
|
147
156
|
}[];
|
|
148
157
|
instrutores: {
|
|
149
158
|
id: string;
|
|
@@ -181,8 +190,8 @@ export declare class CourseStructureController {
|
|
|
181
190
|
nome: string;
|
|
182
191
|
fileId: number;
|
|
183
192
|
tamanho: string;
|
|
184
|
-
|
|
185
|
-
|
|
193
|
+
type: "lesson_audio" | "student_download" | "supplementary_material" | "video_original" | `video_profile:${number}`;
|
|
194
|
+
is_public: boolean;
|
|
186
195
|
}[];
|
|
187
196
|
instrutores: {
|
|
188
197
|
id: string;
|
|
@@ -196,13 +205,30 @@ export declare class CourseStructureController {
|
|
|
196
205
|
moveLesson(courseId: number, sessionId: number, lessonId: number, dto: MoveLessonDto): Promise<{
|
|
197
206
|
success: boolean;
|
|
198
207
|
}>;
|
|
199
|
-
createLessonVideoConversion(
|
|
208
|
+
createLessonVideoConversion({ id: userId }: {
|
|
209
|
+
id: any;
|
|
210
|
+
}, courseId: number, sessionId: number, lessonId: number, dto: CreateLessonVideoConversionDto): Promise<{
|
|
200
211
|
queueJobId: any;
|
|
201
212
|
status: string;
|
|
202
213
|
}>;
|
|
203
214
|
deleteLesson(courseId: number, sessionId: number, lessonId: number): Promise<{
|
|
204
215
|
success: boolean;
|
|
205
216
|
}>;
|
|
217
|
+
deleteLessonFrame(courseId: number, sessionId: number, lessonId: number, frameId: number): Promise<{
|
|
218
|
+
success: boolean;
|
|
219
|
+
}>;
|
|
220
|
+
createLessonFrame(courseId: number, sessionId: number, lessonId: number, dto: CreateCourseLessonFrameDto): Promise<{
|
|
221
|
+
success: boolean;
|
|
222
|
+
id: number;
|
|
223
|
+
fileId: number;
|
|
224
|
+
timeSeconds: number;
|
|
225
|
+
}>;
|
|
226
|
+
updateLessonFrame(courseId: number, sessionId: number, lessonId: number, frameId: number, dto: UpdateCourseLessonFrameDto): Promise<{
|
|
227
|
+
success: boolean;
|
|
228
|
+
id: number;
|
|
229
|
+
fileId: number;
|
|
230
|
+
timeSeconds: number;
|
|
231
|
+
}>;
|
|
206
232
|
duplicateLesson(courseId: number, sessionId: number, lessonId: number): Promise<{
|
|
207
233
|
id: string;
|
|
208
234
|
codigo: string;
|
|
@@ -224,8 +250,8 @@ export declare class CourseStructureController {
|
|
|
224
250
|
nome: string;
|
|
225
251
|
fileId: number;
|
|
226
252
|
tamanho: string;
|
|
227
|
-
|
|
228
|
-
|
|
253
|
+
type: "lesson_audio" | "student_download" | "supplementary_material" | "video_original" | `video_profile:${number}`;
|
|
254
|
+
is_public: boolean;
|
|
229
255
|
}[];
|
|
230
256
|
instrutores: {
|
|
231
257
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"course-structure.controller.d.ts","sourceRoot":"","sources":["../../src/course/course-structure.controller.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACjF,OAAO,
|
|
1
|
+
{"version":3,"file":"course-structure.controller.d.ts","sourceRoot":"","sources":["../../src/course/course-structure.controller.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACjF,O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