@hed-hog/lms 0.0.364 → 0.0.365
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/bitcode-wallet/bitcode-wallet.service.d.ts +1 -0
- package/dist/bitcode-wallet/bitcode-wallet.service.d.ts.map +1 -1
- package/dist/bitcode-wallet/bitcode-wallet.service.js +22 -3
- package/dist/bitcode-wallet/bitcode-wallet.service.js.map +1 -1
- package/dist/course/course-export-scorm12-worker.service.d.ts +21 -0
- package/dist/course/course-export-scorm12-worker.service.d.ts.map +1 -0
- package/dist/course/course-export-scorm12-worker.service.js +109 -0
- package/dist/course/course-export-scorm12-worker.service.js.map +1 -0
- package/dist/course/course-export-scorm12.service.d.ts +42 -0
- package/dist/course/course-export-scorm12.service.d.ts.map +1 -0
- package/dist/course/course-export-scorm12.service.js +628 -0
- package/dist/course/course-export-scorm12.service.js.map +1 -0
- package/dist/course/course-export.service.d.ts +84 -0
- package/dist/course/course-export.service.d.ts.map +1 -0
- package/dist/course/course-export.service.js +237 -0
- package/dist/course/course-export.service.js.map +1 -0
- package/dist/course/course-structure.controller.d.ts +17 -9
- package/dist/course/course-structure.controller.d.ts.map +1 -1
- package/dist/course/course-structure.controller.js +17 -4
- package/dist/course/course-structure.controller.js.map +1 -1
- package/dist/course/course-structure.service.d.ts +12 -4
- package/dist/course/course-structure.service.d.ts.map +1 -1
- package/dist/course/course-structure.service.js +98 -23
- package/dist/course/course-structure.service.js.map +1 -1
- package/dist/course/course-video-hls.service.d.ts +57 -0
- package/dist/course/course-video-hls.service.d.ts.map +1 -0
- package/dist/course/course-video-hls.service.js +767 -0
- package/dist/course/course-video-hls.service.js.map +1 -0
- package/dist/course/course.controller.d.ts +45 -13
- package/dist/course/course.controller.d.ts.map +1 -1
- package/dist/course/course.controller.js +40 -26
- package/dist/course/course.controller.js.map +1 -1
- package/dist/course/course.mcp-tools.js +1 -1
- package/dist/course/course.mcp-tools.js.map +1 -1
- package/dist/course/course.module.d.ts.map +1 -1
- package/dist/course/course.module.js +11 -0
- package/dist/course/course.module.js.map +1 -1
- package/dist/course/course.service.d.ts +6 -9
- package/dist/course/course.service.d.ts.map +1 -1
- package/dist/course/course.service.js +57 -48
- package/dist/course/course.service.js.map +1 -1
- package/dist/course/dto/cleanup-course-storage.dto.d.ts +1 -1
- package/dist/course/dto/cleanup-course-storage.dto.d.ts.map +1 -1
- package/dist/course/dto/cleanup-course-storage.dto.js +1 -0
- package/dist/course/dto/cleanup-course-storage.dto.js.map +1 -1
- package/dist/course/dto/cleanup-upload-history.dto.d.ts +1 -1
- package/dist/course/dto/cleanup-upload-history.dto.d.ts.map +1 -1
- package/dist/course/dto/cleanup-upload-history.dto.js +1 -1
- package/dist/course/dto/cleanup-upload-history.dto.js.map +1 -1
- package/dist/course/dto/create-course-bulk-job.dto.d.ts +2 -1
- package/dist/course/dto/create-course-bulk-job.dto.d.ts.map +1 -1
- package/dist/course/dto/create-course-bulk-job.dto.js +6 -1
- package/dist/course/dto/create-course-bulk-job.dto.js.map +1 -1
- package/dist/course/dto/create-course-export.dto.d.ts +14 -0
- package/dist/course/dto/create-course-export.dto.d.ts.map +1 -0
- package/dist/course/dto/create-course-export.dto.js +71 -0
- package/dist/course/dto/create-course-export.dto.js.map +1 -0
- package/dist/course/dto/create-course-structure-lesson.dto.d.ts +2 -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 +3 -2
- package/dist/course/dto/create-course-structure-lesson.dto.js.map +1 -1
- package/dist/course/lms-bulk-upload-automation.service.d.ts +16 -1
- package/dist/course/lms-bulk-upload-automation.service.d.ts.map +1 -1
- package/dist/course/lms-bulk-upload-automation.service.js +102 -8
- package/dist/course/lms-bulk-upload-automation.service.js.map +1 -1
- package/dist/course/lms-bulk-upload-infra.service.d.ts +1 -0
- package/dist/course/lms-bulk-upload-infra.service.d.ts.map +1 -1
- package/dist/course/lms-bulk-upload-infra.service.js +32 -8
- package/dist/course/lms-bulk-upload-infra.service.js.map +1 -1
- package/dist/course/lms-bulk-upload.controller.d.ts +30 -3
- package/dist/course/lms-bulk-upload.controller.d.ts.map +1 -1
- package/dist/course/lms-bulk-upload.controller.js +43 -2
- package/dist/course/lms-bulk-upload.controller.js.map +1 -1
- package/dist/course/lms-bulk-upload.service.d.ts +11 -0
- package/dist/course/lms-bulk-upload.service.d.ts.map +1 -1
- package/dist/course/lms-bulk-upload.service.js +59 -6
- package/dist/course/lms-bulk-upload.service.js.map +1 -1
- package/dist/course/lms-setting.controller.d.ts +2 -1
- package/dist/course/lms-setting.controller.d.ts.map +1 -1
- package/dist/course/lms-setting.controller.js +4 -2
- package/dist/course/lms-setting.controller.js.map +1 -1
- package/dist/course/scorm12-schemas.d.ts +4 -0
- package/dist/course/scorm12-schemas.d.ts.map +1 -0
- package/dist/course/scorm12-schemas.js +9 -0
- package/dist/course/scorm12-schemas.js.map +1 -0
- package/dist/enterprise/training/training-student.service.d.ts +51 -0
- package/dist/enterprise/training/training-student.service.d.ts.map +1 -1
- package/dist/enterprise/training/training-student.service.js +217 -4
- package/dist/enterprise/training/training-student.service.js.map +1 -1
- package/dist/evaluation/evaluation.service.d.ts +18 -0
- package/dist/evaluation/evaluation.service.d.ts.map +1 -1
- package/dist/evaluation/evaluation.service.js +125 -0
- package/dist/evaluation/evaluation.service.js.map +1 -1
- package/dist/exam/dto/create-standalone-question.dto.d.ts +12 -0
- package/dist/exam/dto/create-standalone-question.dto.d.ts.map +1 -0
- package/dist/exam/dto/create-standalone-question.dto.js +70 -0
- package/dist/exam/dto/create-standalone-question.dto.js.map +1 -0
- package/dist/exam/exam.module.d.ts.map +1 -1
- package/dist/exam/exam.module.js +2 -1
- package/dist/exam/exam.module.js.map +1 -1
- package/dist/exam/exam.service.d.ts +21 -0
- package/dist/exam/exam.service.d.ts.map +1 -1
- package/dist/exam/exam.service.js +80 -0
- package/dist/exam/exam.service.js.map +1 -1
- package/dist/exam/question.controller.d.ts +27 -0
- package/dist/exam/question.controller.d.ts.map +1 -0
- package/dist/exam/question.controller.js +53 -0
- package/dist/exam/question.controller.js.map +1 -0
- package/dist/lesson-xp-map/lesson-xp-ai-calculation.service.d.ts +4 -0
- package/dist/lesson-xp-map/lesson-xp-ai-calculation.service.d.ts.map +1 -1
- package/dist/lesson-xp-map/lesson-xp-ai-calculation.service.js +161 -25
- package/dist/lesson-xp-map/lesson-xp-ai-calculation.service.js.map +1 -1
- package/dist/libraries/lms/tsconfig.tsbuildinfo +1 -1
- package/dist/lms-commerce-access.subscriber.d.ts +11 -0
- package/dist/lms-commerce-access.subscriber.d.ts.map +1 -0
- package/dist/lms-commerce-access.subscriber.js +74 -0
- package/dist/lms-commerce-access.subscriber.js.map +1 -0
- package/dist/lms.module.d.ts.map +1 -1
- package/dist/lms.module.js +6 -5
- package/dist/lms.module.js.map +1 -1
- package/dist/platforma/platforma-video.service.d.ts +39 -0
- package/dist/platforma/platforma-video.service.d.ts.map +1 -0
- package/dist/platforma/platforma-video.service.js +301 -0
- package/dist/platforma/platforma-video.service.js.map +1 -0
- package/dist/platforma/platforma.controller.d.ts +95 -1
- package/dist/platforma/platforma.controller.d.ts.map +1 -1
- package/dist/platforma/platforma.controller.js +160 -2
- package/dist/platforma/platforma.controller.js.map +1 -1
- package/dist/student-xp/dto/grant-skill-card-xp.dto.d.ts +5 -0
- package/dist/student-xp/dto/grant-skill-card-xp.dto.d.ts.map +1 -0
- package/dist/student-xp/dto/grant-skill-card-xp.dto.js +26 -0
- package/dist/student-xp/dto/grant-skill-card-xp.dto.js.map +1 -0
- package/dist/student-xp/student-xp.controller.d.ts +15 -0
- package/dist/student-xp/student-xp.controller.d.ts.map +1 -1
- package/dist/student-xp/student-xp.controller.js +24 -0
- package/dist/student-xp/student-xp.controller.js.map +1 -1
- package/dist/student-xp/student-xp.service.d.ts +16 -0
- package/dist/student-xp/student-xp.service.d.ts.map +1 -1
- package/dist/student-xp/student-xp.service.js +51 -1
- package/dist/student-xp/student-xp.service.js.map +1 -1
- package/hedhog/data/evaluation_topic.yaml +17 -0
- package/hedhog/data/menu.yaml +0 -17
- package/hedhog/data/queue_definition.yaml +48 -0
- package/hedhog/data/route.yaml +94 -124
- package/hedhog/data/setting_group.yaml +19 -19
- package/hedhog/frontend/app/bulk-upload-sessions/page.tsx.ejs +337 -41
- package/hedhog/frontend/app/courses/[id]/page.tsx.ejs +69 -4
- package/hedhog/frontend/app/courses/[id]/structure/_components/course-export-sheet.tsx.ejs +420 -0
- package/hedhog/frontend/app/courses/[id]/structure/_components/course-exports-tab.tsx.ejs +308 -0
- package/hedhog/frontend/app/courses/[id]/structure/_components/course-overview-tab.tsx.ejs +17 -15
- package/hedhog/frontend/app/courses/[id]/structure/_components/detail-lesson.tsx.ejs +51 -63
- package/hedhog/frontend/app/courses/[id]/structure/_components/detail-panel.tsx.ejs +8 -3
- package/hedhog/frontend/app/courses/[id]/structure/_components/detail-session.tsx.ejs +31 -8
- package/hedhog/frontend/app/courses/[id]/structure/_components/drag-overlay.tsx.ejs +16 -9
- package/hedhog/frontend/app/courses/[id]/structure/_components/editor-course.tsx.ejs +201 -401
- package/hedhog/frontend/app/courses/[id]/structure/_components/editor-lesson.tsx.ejs +378 -690
- package/hedhog/frontend/app/courses/[id]/structure/_components/mock-data.ts.ejs +1 -2
- package/hedhog/frontend/app/courses/[id]/structure/_components/tree-row-lesson.tsx.ejs +3 -9
- package/hedhog/frontend/app/courses/[id]/structure/_components/types.ts.ejs +1 -1
- package/hedhog/frontend/app/courses/[id]/structure/_data/adapters/course-structure.adapter.ts.ejs +6 -10
- package/hedhog/frontend/app/courses/[id]/structure/_data/services/course-structure.service.ts.ejs +49 -0
- package/hedhog/frontend/app/courses/[id]/structure/_data/types/api-course.types.ts.ejs +4 -3
- package/hedhog/frontend/app/courses/[id]/structure/_data/use-course-content-overview.ts.ejs +0 -1
- package/hedhog/frontend/app/courses/[id]/structure/_data/use-course-exports.ts.ejs +106 -0
- package/hedhog/frontend/app/courses/[id]/structure/_data/use-course-structure-mutations.ts.ejs +28 -1
- package/hedhog/frontend/app/courses/[id]/structure/_data/use-lms-settings-query.ts.ejs +0 -2
- package/hedhog/frontend/app/courses/page.tsx.ejs +45 -0
- package/hedhog/frontend/messages/en.json +26 -28
- package/hedhog/frontend/messages/pt.json +26 -28
- package/hedhog/table/course_export.yaml +62 -0
- package/package.json +13 -9
- package/src/bitcode-wallet/bitcode-wallet.service.ts +43 -4
- package/src/course/course-export-scorm12-worker.service.ts +124 -0
- package/src/course/course-export-scorm12.service.ts +668 -0
- package/src/course/course-export.service.ts +280 -0
- package/src/course/course-structure.controller.ts +14 -2
- package/src/course/course-structure.service.ts +100 -7
- package/src/course/course-video-hls.service.ts +946 -0
- package/src/course/course.controller.ts +33 -19
- package/src/course/course.mcp-tools.ts +1 -1
- package/src/course/course.module.ts +11 -0
- package/src/course/course.service.ts +73 -60
- package/src/course/dto/cleanup-course-storage.dto.ts +1 -0
- package/src/course/dto/cleanup-upload-history.dto.ts +1 -1
- package/src/course/dto/create-course-bulk-job.dto.ts +7 -3
- package/src/course/dto/create-course-export.dto.ts +56 -0
- package/src/course/dto/create-course-structure-lesson.dto.ts +4 -3
- package/src/course/lms-bulk-upload-automation.service.ts +153 -6
- package/src/course/lms-bulk-upload-infra.service.ts +39 -6
- package/src/course/lms-bulk-upload.controller.ts +32 -2
- package/src/course/lms-bulk-upload.service.ts +70 -7
- package/src/course/lms-setting.controller.ts +4 -2
- package/src/course/scorm12-schemas.ts +9 -0
- package/src/enterprise/training/training-student.service.ts +221 -2
- package/src/evaluation/evaluation.service.ts +123 -0
- package/src/exam/dto/create-standalone-question.dto.ts +66 -0
- package/src/exam/exam.module.ts +2 -1
- package/src/exam/exam.service.ts +86 -0
- package/src/exam/question.controller.ts +28 -0
- package/src/lesson-xp-map/lesson-xp-ai-calculation.service.ts +205 -31
- package/src/lms-commerce-access.subscriber.ts +88 -0
- package/src/lms.module.ts +6 -5
- package/src/platforma/platforma-video.service.ts +346 -0
- package/src/platforma/platforma.controller.ts +95 -1
- package/src/platforma/platforma.service.ts +268 -268
- package/src/student-xp/dto/grant-skill-card-xp.dto.ts +10 -0
- package/src/student-xp/student-xp.controller.ts +18 -2
- package/src/student-xp/student-xp.service.ts +84 -2
- package/hedhog/data/video_resolution_profile.yaml +0 -7
- package/hedhog/frontend/app/video-resolution-profiles/page.tsx.ejs +0 -607
- package/hedhog/table/course_video_resolution_profile.yaml +0 -22
- package/hedhog/table/video_resolution_profile.yaml +0 -18
- package/src/video-resolution-profile/dto/create-video-resolution-profile.dto.ts +0 -16
- package/src/video-resolution-profile/dto/update-video-resolution-profile.dto.ts +0 -16
- package/src/video-resolution-profile/video-resolution-profile.controller.ts +0 -62
- package/src/video-resolution-profile/video-resolution-profile.mcp-tools.ts +0 -128
- package/src/video-resolution-profile/video-resolution-profile.module.ts +0 -13
- package/src/video-resolution-profile/video-resolution-profile.service.ts +0 -117
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { PrismaService } from '@hed-hog/api-prisma';
|
|
2
|
+
import { FileService, NotificationService } from '@hed-hog/core';
|
|
3
|
+
import { QueueJobService } from '@hed-hog/queue';
|
|
4
|
+
import { CreateCourseExportDto } from './dto/create-course-export.dto';
|
|
5
|
+
export declare const LMS_COURSE_EXPORT_SCORM12_JOB = "lms.course.export.scorm12";
|
|
6
|
+
export type VideoLessonWithFile = {
|
|
7
|
+
id: number;
|
|
8
|
+
title: string;
|
|
9
|
+
order: number;
|
|
10
|
+
content: string | null;
|
|
11
|
+
duration_seconds: number | null;
|
|
12
|
+
session: {
|
|
13
|
+
id: number;
|
|
14
|
+
title: string;
|
|
15
|
+
order: number;
|
|
16
|
+
};
|
|
17
|
+
files: {
|
|
18
|
+
id: number;
|
|
19
|
+
file_id: number | null;
|
|
20
|
+
type: string;
|
|
21
|
+
file: {
|
|
22
|
+
id: number;
|
|
23
|
+
path: string;
|
|
24
|
+
size: number | null;
|
|
25
|
+
} | null;
|
|
26
|
+
}[];
|
|
27
|
+
};
|
|
28
|
+
export declare class CourseExportService {
|
|
29
|
+
private readonly prisma;
|
|
30
|
+
private readonly queueJob;
|
|
31
|
+
private readonly notificationService;
|
|
32
|
+
private readonly fileService;
|
|
33
|
+
constructor(prisma: PrismaService, queueJob: QueueJobService, notificationService: NotificationService, fileService: FileService);
|
|
34
|
+
deleteExport(courseId: number, exportId: number): Promise<void>;
|
|
35
|
+
listExports(courseId: number): Promise<({
|
|
36
|
+
file: {
|
|
37
|
+
id: number;
|
|
38
|
+
filename: string;
|
|
39
|
+
path: string;
|
|
40
|
+
size: number;
|
|
41
|
+
};
|
|
42
|
+
user: {
|
|
43
|
+
name: string;
|
|
44
|
+
id: number;
|
|
45
|
+
photo_id: number;
|
|
46
|
+
};
|
|
47
|
+
} & {
|
|
48
|
+
id: number;
|
|
49
|
+
status: import("@prisma/client").$Enums.course_export_status_enum;
|
|
50
|
+
course_id: number;
|
|
51
|
+
created_at: Date;
|
|
52
|
+
updated_at: Date;
|
|
53
|
+
file_id: number | null;
|
|
54
|
+
user_id: number;
|
|
55
|
+
duration_seconds: number | null;
|
|
56
|
+
format: string;
|
|
57
|
+
queue_job_id: number | null;
|
|
58
|
+
settings: import("@prisma/client/runtime/library").JsonValue | null;
|
|
59
|
+
error_message: string | null;
|
|
60
|
+
notification_id: number | null;
|
|
61
|
+
started_at: Date | null;
|
|
62
|
+
finished_at: Date | null;
|
|
63
|
+
})[]>;
|
|
64
|
+
enqueueScorm12Export(courseId: number, userId: number, dto: CreateCourseExportDto): Promise<{
|
|
65
|
+
exportId: number;
|
|
66
|
+
queueJobId: any;
|
|
67
|
+
notificationId: number;
|
|
68
|
+
}>;
|
|
69
|
+
markStarted(exportId: number): Promise<void>;
|
|
70
|
+
markCompleted(exportId: number, fileId: number, durationSeconds: number): Promise<void>;
|
|
71
|
+
markFailed(exportId: number, errorMessage: string): Promise<void>;
|
|
72
|
+
getCourseVideoLessons(courseId: number): Promise<VideoLessonWithFile[]>;
|
|
73
|
+
getBestVideoFile(lesson: VideoLessonWithFile): {
|
|
74
|
+
id: number;
|
|
75
|
+
file_id: number | null;
|
|
76
|
+
type: string;
|
|
77
|
+
file: {
|
|
78
|
+
id: number;
|
|
79
|
+
path: string;
|
|
80
|
+
size: number | null;
|
|
81
|
+
} | null;
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
//# sourceMappingURL=course-export.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"course-export.service.d.ts","sourceRoot":"","sources":["../../src/course/course-export.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EACL,WAAW,EAEX,mBAAmB,EAEpB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAQjD,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAEvE,eAAO,MAAM,6BAA6B,8BAA8B,CAAC;AAEzE,MAAM,MAAM,mBAAmB,GAAG;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,OAAO,EAAE;QACP,EAAE,EAAE,MAAM,CAAC;QACX,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,KAAK,EAAE;QACL,EAAE,EAAE,MAAM,CAAC;QACX,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;QACvB,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE;YACJ,EAAE,EAAE,MAAM,CAAC;YACX,IAAI,EAAE,MAAM,CAAC;YACb,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;SACrB,GAAG,IAAI,CAAC;KACV,EAAE,CAAC;CACL,CAAC;AAEF,qBACa,mBAAmB;IAG5B,OAAO,CAAC,QAAQ,CAAC,MAAM;IAEvB,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAEzB,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IAEpC,OAAO,CAAC,QAAQ,CAAC,WAAW;gBANX,MAAM,EAAE,aAAa,EAErB,QAAQ,EAAE,eAAe,EAEzB,mBAAmB,EAAE,mBAAmB,EAExC,WAAW,EAAE,WAAW;IAGrC,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAyB/D,WAAW,CAAC,QAAQ,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAwB5B,oBAAoB,CACxB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,qBAAqB;;;;;IAoEtB,WAAW,CAAC,QAAQ,EAAE,MAAM;IAU5B,aAAa,CACjB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,EACd,eAAe,EAAE,MAAM;IAanB,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM;IAWjD,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,EAAE,CAAC;IAsD7E,gBAAgB,CAAC,MAAM,EAAE,mBAAmB;YA3OtC,MAAM;iBACD,MAAM,GAAG,IAAI;cAChB,MAAM;cACN;YACJ,EAAE,EAAE,MAAM,CAAC;YACX,IAAI,EAAE,MAAM,CAAC;YACb,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;SACrB,GAAG,IAAI;;CAiPX"}
|
|
@@ -0,0 +1,237 @@
|
|
|
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.CourseExportService = exports.LMS_COURSE_EXPORT_SCORM12_JOB = void 0;
|
|
16
|
+
const api_prisma_1 = require("@hed-hog/api-prisma");
|
|
17
|
+
const core_1 = require("@hed-hog/core");
|
|
18
|
+
const queue_1 = require("@hed-hog/queue");
|
|
19
|
+
const common_1 = require("@nestjs/common");
|
|
20
|
+
exports.LMS_COURSE_EXPORT_SCORM12_JOB = 'lms.course.export.scorm12';
|
|
21
|
+
let CourseExportService = class CourseExportService {
|
|
22
|
+
constructor(prisma, queueJob, notificationService, fileService) {
|
|
23
|
+
this.prisma = prisma;
|
|
24
|
+
this.queueJob = queueJob;
|
|
25
|
+
this.notificationService = notificationService;
|
|
26
|
+
this.fileService = fileService;
|
|
27
|
+
}
|
|
28
|
+
async deleteExport(courseId, exportId) {
|
|
29
|
+
const record = await this.prisma.course_export.findUnique({
|
|
30
|
+
where: { id: exportId },
|
|
31
|
+
select: { id: true, course_id: true, status: true, file_id: true },
|
|
32
|
+
});
|
|
33
|
+
if (!record || record.course_id !== courseId) {
|
|
34
|
+
throw new common_1.NotFoundException('Exportação não encontrada.');
|
|
35
|
+
}
|
|
36
|
+
if (record.status === 'pending' || record.status === 'processing') {
|
|
37
|
+
throw new common_1.BadRequestException('Não é possível excluir uma exportação em andamento.');
|
|
38
|
+
}
|
|
39
|
+
if (record.file_id) {
|
|
40
|
+
await this.fileService
|
|
41
|
+
.delete('pt', { ids: [record.file_id] })
|
|
42
|
+
.catch(() => undefined);
|
|
43
|
+
}
|
|
44
|
+
await this.prisma.course_export.delete({ where: { id: exportId } });
|
|
45
|
+
}
|
|
46
|
+
async listExports(courseId) {
|
|
47
|
+
return this.prisma.course_export.findMany({
|
|
48
|
+
where: { course_id: courseId },
|
|
49
|
+
orderBy: { created_at: 'desc' },
|
|
50
|
+
include: {
|
|
51
|
+
user: {
|
|
52
|
+
select: {
|
|
53
|
+
id: true,
|
|
54
|
+
name: true,
|
|
55
|
+
photo_id: true,
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
file: {
|
|
59
|
+
select: {
|
|
60
|
+
id: true,
|
|
61
|
+
path: true,
|
|
62
|
+
filename: true,
|
|
63
|
+
size: true,
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
async enqueueScorm12Export(courseId, userId, dto) {
|
|
70
|
+
var _a;
|
|
71
|
+
const settings = {
|
|
72
|
+
visual: Object.assign({}, ((_a = dto.visualSettings) !== null && _a !== void 0 ? _a : {})),
|
|
73
|
+
};
|
|
74
|
+
const exportRecord = await this.prisma.course_export.create({
|
|
75
|
+
data: {
|
|
76
|
+
course_id: courseId,
|
|
77
|
+
user_id: userId,
|
|
78
|
+
format: dto.format,
|
|
79
|
+
status: 'pending',
|
|
80
|
+
settings,
|
|
81
|
+
},
|
|
82
|
+
});
|
|
83
|
+
const course = await this.prisma.course.findUnique({
|
|
84
|
+
where: { id: courseId },
|
|
85
|
+
select: { title: true, name: true },
|
|
86
|
+
});
|
|
87
|
+
const courseTitle = (course === null || course === void 0 ? void 0 : course.title) || (course === null || course === void 0 ? void 0 : course.name) || `Curso ${courseId}`;
|
|
88
|
+
const notification = await this.notificationService.create({
|
|
89
|
+
user_id: userId,
|
|
90
|
+
title: `Exportando "${courseTitle}" — SCORM 1.2`,
|
|
91
|
+
body: 'Aguardando início do processamento...',
|
|
92
|
+
type: core_1.NotificationType.Progress,
|
|
93
|
+
progress: 1,
|
|
94
|
+
auto_remove: false,
|
|
95
|
+
action_type: core_1.NotificationActionType.Url,
|
|
96
|
+
action_url: `/lms/courses/${courseId}?tab=exportacoes`,
|
|
97
|
+
started_at: new Date().toISOString(),
|
|
98
|
+
});
|
|
99
|
+
const job = await this.queueJob.enqueue({
|
|
100
|
+
type: exports.LMS_COURSE_EXPORT_SCORM12_JOB,
|
|
101
|
+
queueName: exports.LMS_COURSE_EXPORT_SCORM12_JOB,
|
|
102
|
+
payload: {
|
|
103
|
+
exportId: exportRecord.id,
|
|
104
|
+
courseId,
|
|
105
|
+
userId,
|
|
106
|
+
notificationId: notification.id,
|
|
107
|
+
settings,
|
|
108
|
+
},
|
|
109
|
+
sourceModule: 'lms',
|
|
110
|
+
sourceEntity: 'course_export',
|
|
111
|
+
sourceEntityId: String(exportRecord.id),
|
|
112
|
+
maxAttempts: 3,
|
|
113
|
+
}, userId);
|
|
114
|
+
await this.prisma.course_export.update({
|
|
115
|
+
where: { id: exportRecord.id },
|
|
116
|
+
data: {
|
|
117
|
+
queue_job_id: job.id,
|
|
118
|
+
notification_id: notification.id,
|
|
119
|
+
},
|
|
120
|
+
});
|
|
121
|
+
return {
|
|
122
|
+
exportId: exportRecord.id,
|
|
123
|
+
queueJobId: job.id,
|
|
124
|
+
notificationId: notification.id,
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
async markStarted(exportId) {
|
|
128
|
+
await this.prisma.course_export.update({
|
|
129
|
+
where: { id: exportId },
|
|
130
|
+
data: {
|
|
131
|
+
status: 'processing',
|
|
132
|
+
started_at: new Date(),
|
|
133
|
+
},
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
async markCompleted(exportId, fileId, durationSeconds) {
|
|
137
|
+
await this.prisma.course_export.update({
|
|
138
|
+
where: { id: exportId },
|
|
139
|
+
data: {
|
|
140
|
+
status: 'completed',
|
|
141
|
+
file_id: fileId,
|
|
142
|
+
duration_seconds: durationSeconds,
|
|
143
|
+
finished_at: new Date(),
|
|
144
|
+
},
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
async markFailed(exportId, errorMessage) {
|
|
148
|
+
await this.prisma.course_export.update({
|
|
149
|
+
where: { id: exportId },
|
|
150
|
+
data: {
|
|
151
|
+
status: 'failed',
|
|
152
|
+
error_message: errorMessage,
|
|
153
|
+
finished_at: new Date(),
|
|
154
|
+
},
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
async getCourseVideoLessons(courseId) {
|
|
158
|
+
const lessons = await this.prisma.course_lesson.findMany({
|
|
159
|
+
where: {
|
|
160
|
+
type: 'video',
|
|
161
|
+
course_module: {
|
|
162
|
+
course_id: courseId,
|
|
163
|
+
},
|
|
164
|
+
},
|
|
165
|
+
orderBy: [
|
|
166
|
+
{ course_module: { order: 'asc' } },
|
|
167
|
+
{ order: 'asc' },
|
|
168
|
+
],
|
|
169
|
+
include: {
|
|
170
|
+
course_module: {
|
|
171
|
+
select: { id: true, title: true, order: true },
|
|
172
|
+
},
|
|
173
|
+
course_lesson_file: {
|
|
174
|
+
where: {
|
|
175
|
+
type: {
|
|
176
|
+
in: ['video_original', 'video_hls', 'video_profile:720p', 'video_profile:1080p'],
|
|
177
|
+
},
|
|
178
|
+
},
|
|
179
|
+
include: {
|
|
180
|
+
file: {
|
|
181
|
+
select: { id: true, path: true, size: true },
|
|
182
|
+
},
|
|
183
|
+
},
|
|
184
|
+
orderBy: { id: 'asc' },
|
|
185
|
+
},
|
|
186
|
+
},
|
|
187
|
+
});
|
|
188
|
+
return lessons.map((l) => ({
|
|
189
|
+
id: l.id,
|
|
190
|
+
title: l.title,
|
|
191
|
+
order: l.order,
|
|
192
|
+
content: l.content,
|
|
193
|
+
duration_seconds: l.duration_seconds,
|
|
194
|
+
session: {
|
|
195
|
+
id: l.course_module.id,
|
|
196
|
+
title: l.course_module.title,
|
|
197
|
+
order: l.course_module.order,
|
|
198
|
+
},
|
|
199
|
+
files: l.course_lesson_file.map((f) => ({
|
|
200
|
+
id: f.id,
|
|
201
|
+
file_id: f.file_id,
|
|
202
|
+
type: f.type,
|
|
203
|
+
file: f.file
|
|
204
|
+
? { id: f.file.id, path: f.file.path, size: f.file.size }
|
|
205
|
+
: null,
|
|
206
|
+
})),
|
|
207
|
+
}));
|
|
208
|
+
}
|
|
209
|
+
getBestVideoFile(lesson) {
|
|
210
|
+
var _a;
|
|
211
|
+
const priority = [
|
|
212
|
+
'video_profile:720p',
|
|
213
|
+
'video_profile:1080p',
|
|
214
|
+
'video_original',
|
|
215
|
+
'video_hls',
|
|
216
|
+
];
|
|
217
|
+
for (const p of priority) {
|
|
218
|
+
const f = lesson.files.find((f) => f.type === p && f.file_id && f.file);
|
|
219
|
+
if (f)
|
|
220
|
+
return f;
|
|
221
|
+
}
|
|
222
|
+
return (_a = lesson.files.find((f) => f.file_id && f.file)) !== null && _a !== void 0 ? _a : null;
|
|
223
|
+
}
|
|
224
|
+
};
|
|
225
|
+
exports.CourseExportService = CourseExportService;
|
|
226
|
+
exports.CourseExportService = CourseExportService = __decorate([
|
|
227
|
+
(0, common_1.Injectable)(),
|
|
228
|
+
__param(0, (0, common_1.Inject)((0, common_1.forwardRef)(() => api_prisma_1.PrismaService))),
|
|
229
|
+
__param(1, (0, common_1.Inject)((0, common_1.forwardRef)(() => queue_1.QueueJobService))),
|
|
230
|
+
__param(2, (0, common_1.Inject)((0, common_1.forwardRef)(() => core_1.NotificationService))),
|
|
231
|
+
__param(3, (0, common_1.Inject)((0, common_1.forwardRef)(() => core_1.FileService))),
|
|
232
|
+
__metadata("design:paramtypes", [api_prisma_1.PrismaService,
|
|
233
|
+
queue_1.QueueJobService,
|
|
234
|
+
core_1.NotificationService,
|
|
235
|
+
core_1.FileService])
|
|
236
|
+
], CourseExportService);
|
|
237
|
+
//# sourceMappingURL=course-export.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"course-export.service.js","sourceRoot":"","sources":["../../src/course/course-export.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,oDAAoD;AACpD,wCAKuB;AACvB,0CAAiD;AACjD,2CAMwB;AAGX,QAAA,6BAA6B,GAAG,2BAA2B,CAAC;AA0BlE,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAC9B,YAEmB,MAAqB,EAErB,QAAyB,EAEzB,mBAAwC,EAExC,WAAwB;QANxB,WAAM,GAAN,MAAM,CAAe;QAErB,aAAQ,GAAR,QAAQ,CAAiB;QAEzB,wBAAmB,GAAnB,mBAAmB,CAAqB;QAExC,gBAAW,GAAX,WAAW,CAAa;IACxC,CAAC;IAEJ,KAAK,CAAC,YAAY,CAAC,QAAgB,EAAE,QAAgB;QACnD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,UAAU,CAAC;YACxD,KAAK,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE;YACvB,MAAM,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE;SACnE,CAAC,CAAC;QAEH,IAAI,CAAC,MAAM,IAAI,MAAM,CAAC,SAAS,KAAK,QAAQ,EAAE,CAAC;YAC7C,MAAM,IAAI,0BAAiB,CAAC,4BAA4B,CAAC,CAAC;QAC5D,CAAC;QAED,IAAI,MAAM,CAAC,MAAM,KAAK,SAAS,IAAI,MAAM,CAAC,MAAM,KAAK,YAAY,EAAE,CAAC;YAClE,MAAM,IAAI,4BAAmB,CAC3B,qDAAqD,CACtD,CAAC;QACJ,CAAC;QAED,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;YACnB,MAAM,IAAI,CAAC,WAAW;iBACnB,MAAM,CAAC,IAAI,EAAE,EAA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AA;IAEvC,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,uBAAe,CAAC,CAAC,CAAA;IAEzC,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,0BAAmB,CAAC,CAAC,CAAA;IAE7C,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,kBAAW,CAAC,CAAC,CAAA;qCALb,0BAAa;QAEX,uBAAe;QAEJ,0BAAmB;QAE3B,kBAAW;GAThC,mBAAmB,CA4O/B"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CourseStructureService } from './course-structure.service';
|
|
2
2
|
import { CourseVideoConversionService } from './course-video-conversion.service';
|
|
3
|
+
import { CourseVideoHlsService } from './course-video-hls.service';
|
|
3
4
|
import { CreateCourseBulkJobDto } from './dto/create-course-bulk-job.dto';
|
|
4
5
|
import { CreateCourseLessonFrameDto } from './dto/create-course-lesson-frame.dto';
|
|
5
6
|
import { CreateCourseStructureLessonDto, CreateLessonVideoConversionDto } from './dto/create-course-structure-lesson.dto';
|
|
@@ -15,7 +16,8 @@ import { UpdateCourseStructureSessionDto } from './dto/update-course-structure-s
|
|
|
15
16
|
export declare class CourseStructureController {
|
|
16
17
|
private readonly courseStructureService;
|
|
17
18
|
private readonly courseVideoConversionService;
|
|
18
|
-
|
|
19
|
+
private readonly courseVideoHlsService;
|
|
20
|
+
constructor(courseStructureService: CourseStructureService, courseVideoConversionService: CourseVideoConversionService, courseVideoHlsService: CourseVideoHlsService);
|
|
19
21
|
getStructure(courseId: number): Promise<{
|
|
20
22
|
sessoes: {
|
|
21
23
|
id: string;
|
|
@@ -31,7 +33,7 @@ export declare class CourseStructureController {
|
|
|
31
33
|
titulo: string;
|
|
32
34
|
descricaoPublica: string;
|
|
33
35
|
descricaoPrivada: any;
|
|
34
|
-
tipo: "post" | "video" | "questao"
|
|
36
|
+
tipo: "post" | "video" | "questao";
|
|
35
37
|
duracao: number;
|
|
36
38
|
sessaoId: string;
|
|
37
39
|
videoProvedor: any;
|
|
@@ -48,7 +50,7 @@ export declare class CourseStructureController {
|
|
|
48
50
|
nome: string;
|
|
49
51
|
fileId: number;
|
|
50
52
|
tamanho: string;
|
|
51
|
-
type: "
|
|
53
|
+
type: "video_original" | "video_hls" | "lesson_audio" | "student_download" | "supplementary_material" | `video_profile:${number}`;
|
|
52
54
|
is_public: boolean;
|
|
53
55
|
}[];
|
|
54
56
|
frames: {
|
|
@@ -80,6 +82,7 @@ export declare class CourseStructureController {
|
|
|
80
82
|
titulo: string;
|
|
81
83
|
descricao: string;
|
|
82
84
|
offeringType: import("@prisma/client").$Enums.course_offering_type_8af4d2739d_enum;
|
|
85
|
+
status: import("@prisma/client").$Enums.course_status_d1ca069c7e_enum;
|
|
83
86
|
recursos: {
|
|
84
87
|
id: number;
|
|
85
88
|
nome: string;
|
|
@@ -145,7 +148,7 @@ export declare class CourseStructureController {
|
|
|
145
148
|
titulo: string;
|
|
146
149
|
descricaoPublica: string;
|
|
147
150
|
descricaoPrivada: any;
|
|
148
|
-
tipo: "post" | "video" | "questao"
|
|
151
|
+
tipo: "post" | "video" | "questao";
|
|
149
152
|
duracao: number;
|
|
150
153
|
sessaoId: string;
|
|
151
154
|
videoProvedor: any;
|
|
@@ -162,7 +165,7 @@ export declare class CourseStructureController {
|
|
|
162
165
|
nome: string;
|
|
163
166
|
fileId: number;
|
|
164
167
|
tamanho: string;
|
|
165
|
-
type: "
|
|
168
|
+
type: "video_original" | "video_hls" | "lesson_audio" | "student_download" | "supplementary_material" | `video_profile:${number}`;
|
|
166
169
|
is_public: boolean;
|
|
167
170
|
}[];
|
|
168
171
|
instrutores: {
|
|
@@ -186,7 +189,7 @@ export declare class CourseStructureController {
|
|
|
186
189
|
titulo: string;
|
|
187
190
|
descricaoPublica: string;
|
|
188
191
|
descricaoPrivada: any;
|
|
189
|
-
tipo: "post" | "video" | "questao"
|
|
192
|
+
tipo: "post" | "video" | "questao";
|
|
190
193
|
duracao: number;
|
|
191
194
|
sessaoId: string;
|
|
192
195
|
videoProvedor: any;
|
|
@@ -203,7 +206,7 @@ export declare class CourseStructureController {
|
|
|
203
206
|
nome: string;
|
|
204
207
|
fileId: number;
|
|
205
208
|
tamanho: string;
|
|
206
|
-
type: "
|
|
209
|
+
type: "video_original" | "video_hls" | "lesson_audio" | "student_download" | "supplementary_material" | `video_profile:${number}`;
|
|
207
210
|
is_public: boolean;
|
|
208
211
|
}[];
|
|
209
212
|
instrutores: {
|
|
@@ -248,7 +251,7 @@ export declare class CourseStructureController {
|
|
|
248
251
|
titulo: string;
|
|
249
252
|
descricaoPublica: string;
|
|
250
253
|
descricaoPrivada: any;
|
|
251
|
-
tipo: "post" | "video" | "questao"
|
|
254
|
+
tipo: "post" | "video" | "questao";
|
|
252
255
|
duracao: number;
|
|
253
256
|
sessaoId: string;
|
|
254
257
|
videoProvedor: any;
|
|
@@ -265,7 +268,7 @@ export declare class CourseStructureController {
|
|
|
265
268
|
nome: string;
|
|
266
269
|
fileId: number;
|
|
267
270
|
tamanho: string;
|
|
268
|
-
type: "
|
|
271
|
+
type: "video_original" | "video_hls" | "lesson_audio" | "student_download" | "supplementary_material" | `video_profile:${number}`;
|
|
269
272
|
is_public: boolean;
|
|
270
273
|
}[];
|
|
271
274
|
instrutores: {
|
|
@@ -277,6 +280,11 @@ export declare class CourseStructureController {
|
|
|
277
280
|
operationsTaskName: string;
|
|
278
281
|
operationsTaskStatus: string;
|
|
279
282
|
}>;
|
|
283
|
+
getVideoProcessingStats(courseId: number): Promise<{
|
|
284
|
+
withOriginal: number;
|
|
285
|
+
withoutOriginal: number;
|
|
286
|
+
alreadyProcessed: number;
|
|
287
|
+
}>;
|
|
280
288
|
createBulkJobs(user: any, courseId: number, dto: CreateCourseBulkJobDto): Promise<{
|
|
281
289
|
queued: number;
|
|
282
290
|
skipped: number;
|
|
@@ -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,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,EACH,8BAA8B,EAC9B,8BAA8B,EACjC,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,+BAA+B,EAAE,MAAM,2CAA2C,CAAC;AAC5F,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EAAE,8BAA8B,EAAE,MAAM,0CAA0C,CAAC;AAC1F,OAAO,EAAE,+BAA+B,EAAE,MAAM,2CAA2C,CAAC;AAE5F,qBAEa,yBAAyB;IAElC,OAAO,CAAC,QAAQ,CAAC,sBAAsB;IACvC,OAAO,CAAC,QAAQ,CAAC,4BAA4B;
|
|
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,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OA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QAAQ,EAAE,MAAM,EACzC,GAAG,EAAE,0BAA0B;;;;;;IAWzC,iBAAiB,CACY,QAAQ,EAAE,MAAM,EACT,SAAS,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,EACvC,GAAG,EAAE,0BAA0B;;;;;;IAYzC,eAAe,CACc,QAAQ,EAAE,MAAM,EACT,SAAS,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAMnD,uBAAuB,CAA4B,QAAQ,EAAE,MAAM;;;;;IAKnE,cAAc,CACJ,IAAI,EAAE,GAAG,EACU,QAAQ,EAAE,MAAM,EACnC,GAAG,EAAE,sBAAsB;;;;;;CAStC"}
|
|
@@ -17,6 +17,7 @@ const api_1 = require("@hed-hog/api");
|
|
|
17
17
|
const common_1 = require("@nestjs/common");
|
|
18
18
|
const course_structure_service_1 = require("./course-structure.service");
|
|
19
19
|
const course_video_conversion_service_1 = require("./course-video-conversion.service");
|
|
20
|
+
const course_video_hls_service_1 = require("./course-video-hls.service");
|
|
20
21
|
const create_course_bulk_job_dto_1 = require("./dto/create-course-bulk-job.dto");
|
|
21
22
|
const create_course_lesson_frame_dto_1 = require("./dto/create-course-lesson-frame.dto");
|
|
22
23
|
const create_course_structure_lesson_dto_1 = require("./dto/create-course-structure-lesson.dto");
|
|
@@ -30,9 +31,10 @@ const update_course_resources_dto_1 = require("./dto/update-course-resources.dto
|
|
|
30
31
|
const update_course_structure_lesson_dto_1 = require("./dto/update-course-structure-lesson.dto");
|
|
31
32
|
const update_course_structure_session_dto_1 = require("./dto/update-course-structure-session.dto");
|
|
32
33
|
let CourseStructureController = class CourseStructureController {
|
|
33
|
-
constructor(courseStructureService, courseVideoConversionService) {
|
|
34
|
+
constructor(courseStructureService, courseVideoConversionService, courseVideoHlsService) {
|
|
34
35
|
this.courseStructureService = courseStructureService;
|
|
35
36
|
this.courseVideoConversionService = courseVideoConversionService;
|
|
37
|
+
this.courseVideoHlsService = courseVideoHlsService;
|
|
36
38
|
}
|
|
37
39
|
getStructure(courseId) {
|
|
38
40
|
return this.courseStructureService.getStructure(courseId);
|
|
@@ -78,7 +80,7 @@ let CourseStructureController = class CourseStructureController {
|
|
|
78
80
|
return this.courseStructureService.moveLesson(courseId, sessionId, lessonId, dto);
|
|
79
81
|
}
|
|
80
82
|
createLessonVideoConversion({ id: userId }, courseId, sessionId, lessonId, dto) {
|
|
81
|
-
return this.
|
|
83
|
+
return this.courseVideoHlsService.enqueueHls({
|
|
82
84
|
userId,
|
|
83
85
|
courseId,
|
|
84
86
|
sessionId,
|
|
@@ -101,9 +103,12 @@ let CourseStructureController = class CourseStructureController {
|
|
|
101
103
|
duplicateLesson(courseId, sessionId, lessonId) {
|
|
102
104
|
return this.courseStructureService.duplicateLesson(courseId, sessionId, lessonId);
|
|
103
105
|
}
|
|
106
|
+
getVideoProcessingStats(courseId) {
|
|
107
|
+
return this.courseStructureService.getVideoProcessingStats(courseId);
|
|
108
|
+
}
|
|
104
109
|
createBulkJobs(user, courseId, dto) {
|
|
105
110
|
var _a;
|
|
106
|
-
return this.courseStructureService.bulkEnqueueJobs(courseId, dto.jobType, (_a = user === null || user === void 0 ? void 0 : user.id) !== null && _a !== void 0 ? _a : 0);
|
|
111
|
+
return this.courseStructureService.bulkEnqueueJobs(courseId, dto.jobType, (_a = user === null || user === void 0 ? void 0 : user.id) !== null && _a !== void 0 ? _a : 0, dto.reprocessAlreadyProcessed);
|
|
107
112
|
}
|
|
108
113
|
};
|
|
109
114
|
exports.CourseStructureController = CourseStructureController;
|
|
@@ -277,6 +282,13 @@ __decorate([
|
|
|
277
282
|
__metadata("design:paramtypes", [Number, Number, Number]),
|
|
278
283
|
__metadata("design:returntype", void 0)
|
|
279
284
|
], CourseStructureController.prototype, "duplicateLesson", null);
|
|
285
|
+
__decorate([
|
|
286
|
+
(0, common_1.Get)('video-processing-stats'),
|
|
287
|
+
__param(0, (0, common_1.Param)('id', common_1.ParseIntPipe)),
|
|
288
|
+
__metadata("design:type", Function),
|
|
289
|
+
__metadata("design:paramtypes", [Number]),
|
|
290
|
+
__metadata("design:returntype", void 0)
|
|
291
|
+
], CourseStructureController.prototype, "getVideoProcessingStats", null);
|
|
280
292
|
__decorate([
|
|
281
293
|
(0, common_1.Post)('bulk-jobs'),
|
|
282
294
|
__param(0, (0, api_1.User)()),
|
|
@@ -290,6 +302,7 @@ exports.CourseStructureController = CourseStructureController = __decorate([
|
|
|
290
302
|
(0, api_1.Role)(),
|
|
291
303
|
(0, common_1.Controller)('lms/courses/:id/structure'),
|
|
292
304
|
__metadata("design:paramtypes", [course_structure_service_1.CourseStructureService,
|
|
293
|
-
course_video_conversion_service_1.CourseVideoConversionService
|
|
305
|
+
course_video_conversion_service_1.CourseVideoConversionService,
|
|
306
|
+
course_video_hls_service_1.CourseVideoHlsService])
|
|
294
307
|
], CourseStructureController);
|
|
295
308
|
//# sourceMappingURL=course-structure.controller.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"course-structure.controller.js","sourceRoot":"","sources":["../../src/course/course-structure.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,sCAA0C;AAC1C,2CASwB;AACxB,yEAAoE;AACpE,uFAAiF;AACjF,iFAA0E;AAC1E,yFAAkF;AAClF,iGAGkD;AAClD,mGAA4F;AAC5F,2DAAsD;AACtD,+DAA0D;AAC1D,mEAA8D;AAC9D,qEAAgE;AAChE,yFAAkF;AAClF,mFAA6E;AAC7E,iGAA0F;AAC1F,mGAA4F;AAIrF,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;IACpC,YACmB,sBAA8C,EAC9C,4BAA0D;
|
|
1
|
+
{"version":3,"file":"course-structure.controller.js","sourceRoot":"","sources":["../../src/course/course-structure.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,sCAA0C;AAC1C,2CASwB;AACxB,yEAAoE;AACpE,uFAAiF;AACjF,yEAAmE;AACn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BAA2B,CAAC;qCAGK,iDAAsB;QAChB,8DAA4B;QACnC,gDAAqB;GAJpD,yBAAyB,CA2NrC"}
|
|
@@ -3,6 +3,7 @@ import { FileService } from '@hed-hog/core';
|
|
|
3
3
|
import { QueueJobService } from '@hed-hog/queue';
|
|
4
4
|
import { InstructorService } from '../instructor/instructor.service';
|
|
5
5
|
import { CourseOperationsIntegrationService } from './course-operations-integration.service';
|
|
6
|
+
import { CourseVideoHlsService } from './course-video-hls.service';
|
|
6
7
|
import { CreateCourseLessonFrameDto } from './dto/create-course-lesson-frame.dto';
|
|
7
8
|
import { CreateCourseStructureLessonDto } from './dto/create-course-structure-lesson.dto';
|
|
8
9
|
import { CreateCourseStructureSessionDto } from './dto/create-course-structure-session.dto';
|
|
@@ -15,17 +16,18 @@ import { UpdateCourseResourcesDto } from './dto/update-course-resources.dto';
|
|
|
15
16
|
import { UpdateCourseStructureLessonDto } from './dto/update-course-structure-lesson.dto';
|
|
16
17
|
import { UpdateCourseStructureSessionDto } from './dto/update-course-structure-session.dto';
|
|
17
18
|
import { UpdateTranscriptionSegmentsDTO } from './dto/update-transcription-segments.dto';
|
|
18
|
-
type LessonUiType = 'video' | 'questao' | 'post'
|
|
19
|
+
type LessonUiType = 'video' | 'questao' | 'post';
|
|
19
20
|
type LessonProductionStatus = 'preparada' | 'gravada' | 'editada' | 'finalizada' | 'publicada';
|
|
20
|
-
type LessonFileType = 'video_original' | `video_profile:${number}` | 'lesson_audio' | 'student_download' | 'supplementary_material';
|
|
21
|
+
type LessonFileType = 'video_original' | 'video_hls' | `video_profile:${number}` | 'lesson_audio' | 'student_download' | 'supplementary_material';
|
|
21
22
|
export declare class CourseStructureService {
|
|
22
23
|
private readonly prisma;
|
|
23
24
|
private readonly fileService;
|
|
24
25
|
private readonly instructorService;
|
|
25
26
|
private readonly operationsIntegration;
|
|
26
27
|
private readonly queueJob;
|
|
28
|
+
private readonly courseVideoHlsService;
|
|
27
29
|
private readonly logger;
|
|
28
|
-
constructor(prisma: PrismaService, fileService: FileService, instructorService: InstructorService, operationsIntegration: CourseOperationsIntegrationService, queueJob: QueueJobService);
|
|
30
|
+
constructor(prisma: PrismaService, fileService: FileService, instructorService: InstructorService, operationsIntegration: CourseOperationsIntegrationService, queueJob: QueueJobService, courseVideoHlsService: CourseVideoHlsService);
|
|
29
31
|
getStructure(courseId: number): Promise<{
|
|
30
32
|
sessoes: {
|
|
31
33
|
id: string;
|
|
@@ -90,6 +92,7 @@ export declare class CourseStructureService {
|
|
|
90
92
|
titulo: string;
|
|
91
93
|
descricao: string;
|
|
92
94
|
offeringType: import("@prisma/client").$Enums.course_offering_type_8af4d2739d_enum;
|
|
95
|
+
status: import("@prisma/client").$Enums.course_status_d1ca069c7e_enum;
|
|
93
96
|
recursos: {
|
|
94
97
|
id: number;
|
|
95
98
|
nome: string;
|
|
@@ -289,7 +292,12 @@ export declare class CourseStructureService {
|
|
|
289
292
|
status: any;
|
|
290
293
|
}>;
|
|
291
294
|
private startTranscriptionOnDemandIfNeeded;
|
|
292
|
-
|
|
295
|
+
getVideoProcessingStats(courseId: number): Promise<{
|
|
296
|
+
withOriginal: number;
|
|
297
|
+
withoutOriginal: number;
|
|
298
|
+
alreadyProcessed: number;
|
|
299
|
+
}>;
|
|
300
|
+
bulkEnqueueJobs(courseId: number, jobType: 'transcription' | 'xp_recalculation' | 'video_processing', userId: number, reprocessAlreadyProcessed?: boolean): Promise<{
|
|
293
301
|
queued: number;
|
|
294
302
|
skipped: number;
|
|
295
303
|
skippedWithoutTranscription: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"course-structure.service.d.ts","sourceRoot":"","sources":["../../src/course/course-structure.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEjD,OAAO,EAAE,iBAAi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