@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
|
@@ -177,6 +177,7 @@ export declare class BitcodeWalletService {
|
|
|
177
177
|
}>;
|
|
178
178
|
private ensurePersonExists;
|
|
179
179
|
private resolvePersonIdFromUser;
|
|
180
|
+
private resolveOrCreatePersonForUser;
|
|
180
181
|
private findWalletByPersonId;
|
|
181
182
|
private getOrCreateWalletByPersonId;
|
|
182
183
|
private ensureWalletExists;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bitcode-wallet.service.d.ts","sourceRoot":"","sources":["../../src/bitcode-wallet/bitcode-wallet.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAOpD,OAAO,EAAE,wCAAwC,EAAE,MAAM,qDAAqD,CAAC;AAC/G,OAAO,EAAE,iCAAiC,EAAE,MAAM,6CAA6C,CAAC;AAChG,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAgCzE,qBACa,oBAAoB;IACnB,OAAO,CAA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AKnC,uBAAuB,CAC3B,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,wCAAwC;;;;;;;;;;;;;;;;;;;;IAQzC,4BAA4B,CAChC,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,wCAAwC;;;;;;;;;;;;;;;;;;;;IAuBzC,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,sBAAsB;;;;;;;;;;;;;;;;;;;;IAoB9C,MAAM,CAAC,EAAE,EAAE,MAAM;IAKjB,iBAAiB,CACrB,QAAQ,EAAE,MAAM,EAChB,GAAG,EAAE,iCAAiC;;;;;;;;;;;;;;;;;;;;YA6B1B,kBAAkB;YAWlB,uBAAuB;YAavB,4BAA4B;YAyC5B,oBAAoB;YAOpB,2BAA2B;YA6B3B,kBAAkB;YAWlB,uBAAuB;IAgBrC,OAAO,CAAC,YAAY;IAcpB,OAAO,CAAC,iBAAiB;IAYzB,OAAO,CAAC,qBAAqB;IAK7B,OAAO,CAAC,kCAAkC;IAoB1C,OAAO,CAAC,KAAK;YAKC,SAAS;YAIT,WAAW;CAI1B"}
|
|
@@ -155,9 +155,8 @@ let BitcodeWalletService = class BitcodeWalletService {
|
|
|
155
155
|
return this.getById(created.id);
|
|
156
156
|
}
|
|
157
157
|
async getCurrentUserWallet(userId) {
|
|
158
|
-
const personId = await this.
|
|
159
|
-
|
|
160
|
-
return existingWallet ? this.getById(existingWallet.id) : null;
|
|
158
|
+
const personId = await this.resolveOrCreatePersonForUser(userId);
|
|
159
|
+
return this.getOrCreateWalletByPersonId(personId);
|
|
161
160
|
}
|
|
162
161
|
async creditCurrentUserWallet(userId, dto) {
|
|
163
162
|
return this.createCurrentUserTransaction(userId, Object.assign(Object.assign({}, dto), { type: 'credit' }));
|
|
@@ -228,6 +227,26 @@ let BitcodeWalletService = class BitcodeWalletService {
|
|
|
228
227
|
}
|
|
229
228
|
return Number(row.personId);
|
|
230
229
|
}
|
|
230
|
+
async resolveOrCreatePersonForUser(userId) {
|
|
231
|
+
const existing = await this.querySingle(`SELECT person_id AS "personId" FROM person_user WHERE user_id = $1 LIMIT 1`, [userId]);
|
|
232
|
+
if (existing)
|
|
233
|
+
return Number(existing.personId);
|
|
234
|
+
// Gather name: prefer commerce_customer (richer), fall back to user record
|
|
235
|
+
const customerRow = await this.querySingle(`SELECT name FROM commerce_customer
|
|
236
|
+
WHERE user_id = $1 AND deleted_at IS NULL
|
|
237
|
+
ORDER BY id DESC LIMIT 1`, [userId]);
|
|
238
|
+
const userRow = await this.querySingle(`SELECT name FROM "user" WHERE id = $1`, [userId]);
|
|
239
|
+
const personName = (customerRow === null || customerRow === void 0 ? void 0 : customerRow.name) || (userRow === null || userRow === void 0 ? void 0 : userRow.name) || `Usuário #${userId}`;
|
|
240
|
+
const person = await this.querySingle(`INSERT INTO person (name, type, status, created_at, updated_at)
|
|
241
|
+
VALUES ($1, 'individual'::person_type_6dfa750c4d_enum, 'active'::person_status_7efb97d61c_enum, NOW(), NOW())
|
|
242
|
+
RETURNING id`, [personName]);
|
|
243
|
+
if (!person)
|
|
244
|
+
throw new Error('Failed to create person profile');
|
|
245
|
+
await this.querySingle(`INSERT INTO person_user (person_id, user_id, created_at, updated_at)
|
|
246
|
+
VALUES ($1, $2, NOW(), NOW())
|
|
247
|
+
ON CONFLICT DO NOTHING`, [person.id, userId]);
|
|
248
|
+
return person.id;
|
|
249
|
+
}
|
|
231
250
|
async findWalletByPersonId(personId) {
|
|
232
251
|
return this.querySingle(`SELECT id FROM bitcode_wallet WHERE person_id = $1`, [personId]);
|
|
233
252
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bitcode-wallet.service.js","sourceRoot":"","sources":["../../src/bitcode-wallet/bitcode-wallet.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAoD;AACpD,2CAKwB;AAqCjB,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC/B,YAA6B,MAAqB;QAArB,WAAM,GAAN,MAAM,CAAe;IAAG,CAA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CAAC,CAAC,WAAW;gBACb,CAAC,CAAC,GAAG,WAAW,MAAM,MAAM,EAAE,CAAC;QACnC,CAAC;QAED,IAAI,WAAW;YAAE,OAAO,WAAW,CAAC;QACpC,IAAI,MAAM;YAAE,OAAO,GAAG,QAAQ,KAAK,MAAM,EAAE,CAAC;QAE5C,OAAO,QAAQ,CAAC;IAClB,CAAC;IAEO,KAAK,CAAC,MAAiB,EAAE,KAAc;QAC7C,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACnB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC;IAC7B,CAAC;IAEO,KAAK,CAAC,SAAS,CAAI,KAAa,EAAE,SAAoB,EAAE;QAC9D,OAAO,IAAI,CAAC,MAAM,CAAC,eAAe,CAAM,KAAK,EAAE,GAAG,MAAM,CAAC,CAAC;IAC5D,CAAC;IAEO,KAAK,CAAC,WAAW,CAAI,KAAa,EAAE,SAAoB,EAAE;;QAChE,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,eAAe,CAAM,KAAK,EAAE,GAAG,MAAM,CAAC,CAAC;QACtE,OAAO,MAAA,IAAI,CAAC,CAAC,CAAC,mCAAI,IAAI,CAAC;IACzB,CAAC;CACF,CAAA;AArdY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,mBAAU,GAAE;qCAE0B,0BAAa;GADvC,oBAAoB,CAqdhC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { FileService, NotificationService } from '@hed-hog/core';
|
|
2
|
+
import { IJobHandler, QueueHandlerRegistry } from '@hed-hog/queue';
|
|
3
|
+
import { OnModuleInit } from '@nestjs/common';
|
|
4
|
+
import { CourseExportScorm12Service } from './course-export-scorm12.service';
|
|
5
|
+
import { CourseExportService } from './course-export.service';
|
|
6
|
+
export declare class CourseExportScorm12WorkerService implements OnModuleInit, IJobHandler {
|
|
7
|
+
private readonly fileService;
|
|
8
|
+
private readonly notificationService;
|
|
9
|
+
private readonly registry;
|
|
10
|
+
private readonly courseExportService;
|
|
11
|
+
private readonly scorm12Builder;
|
|
12
|
+
private readonly logger;
|
|
13
|
+
constructor(fileService: FileService, notificationService: NotificationService, registry: QueueHandlerRegistry, courseExportService: CourseExportService, scorm12Builder: CourseExportScorm12Service);
|
|
14
|
+
onModuleInit(): void;
|
|
15
|
+
handle(job: {
|
|
16
|
+
id: number;
|
|
17
|
+
type: string;
|
|
18
|
+
payload: Record<string, any>;
|
|
19
|
+
}): Promise<void>;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=course-export-scorm12-worker.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"course-export-scorm12-worker.service.d.ts","sourceRoot":"","sources":["../../src/course/course-export-scorm12-worker.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACnE,OAAO,EAIL,YAAY,EAEb,MAAM,gBAAgB,CAAC;AAIxB,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,mBAAmB,EAAiC,MAAM,yBAAyB,CAAC;AAE7F,qBACa,gCAAiC,YAAW,YAAY,EAAE,WAAW;IAK9E,OAAO,CAAC,QAAQ,CAAC,WAAW;IAE5B,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IAEpC,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IACpC,OAAO,CAAC,QAAQ,CAAC,cAAc;IAVjC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqD;gBAIzD,WAAW,EAAE,WAAW,EAExB,mBAAmB,EAAE,mBAAmB,EAExC,QAAQ,EAAE,oBAAoB,EAC9B,mBAAmB,EAAE,mBAAmB,EACxC,cAAc,EAAE,0BAA0B;IAG7D,YAAY;IAKN,MAAM,CAAC,GAAG,EAAE;QAChB,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;KAC9B,GAAG,OAAO,CAAC,IAAI,CAAC;CAoFlB"}
|
|
@@ -0,0 +1,109 @@
|
|
|
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 CourseExportScorm12WorkerService_1;
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CourseExportScorm12WorkerService = void 0;
|
|
17
|
+
const core_1 = require("@hed-hog/core");
|
|
18
|
+
const queue_1 = require("@hed-hog/queue");
|
|
19
|
+
const common_1 = require("@nestjs/common");
|
|
20
|
+
const fs_1 = require("fs");
|
|
21
|
+
const os_1 = require("os");
|
|
22
|
+
const path_1 = require("path");
|
|
23
|
+
const course_export_scorm12_service_1 = require("./course-export-scorm12.service");
|
|
24
|
+
const course_export_service_1 = require("./course-export.service");
|
|
25
|
+
let CourseExportScorm12WorkerService = CourseExportScorm12WorkerService_1 = class CourseExportScorm12WorkerService {
|
|
26
|
+
constructor(fileService, notificationService, registry, courseExportService, scorm12Builder) {
|
|
27
|
+
this.fileService = fileService;
|
|
28
|
+
this.notificationService = notificationService;
|
|
29
|
+
this.registry = registry;
|
|
30
|
+
this.courseExportService = courseExportService;
|
|
31
|
+
this.scorm12Builder = scorm12Builder;
|
|
32
|
+
this.logger = new common_1.Logger(CourseExportScorm12WorkerService_1.name);
|
|
33
|
+
}
|
|
34
|
+
onModuleInit() {
|
|
35
|
+
this.registry.register(course_export_service_1.LMS_COURSE_EXPORT_SCORM12_JOB, this);
|
|
36
|
+
this.logger.log(`Registered handler for job type: ${course_export_service_1.LMS_COURSE_EXPORT_SCORM12_JOB}`);
|
|
37
|
+
}
|
|
38
|
+
async handle(job) {
|
|
39
|
+
const { exportId, courseId, userId, notificationId, settings } = job.payload;
|
|
40
|
+
const startedAt = Date.now();
|
|
41
|
+
const workDir = await fs_1.promises.mkdtemp((0, path_1.join)((0, os_1.tmpdir)(), `scorm-${job.id}-`));
|
|
42
|
+
try {
|
|
43
|
+
this.logger.log(`Starting SCORM 1.2 export ${exportId} for course ${courseId}`);
|
|
44
|
+
await this.courseExportService.markStarted(exportId);
|
|
45
|
+
await this.notificationService.updateProgress(userId, notificationId, {
|
|
46
|
+
progress: 5,
|
|
47
|
+
body: 'Iniciando exportação SCORM 1.2...',
|
|
48
|
+
});
|
|
49
|
+
const { zipPath, filename } = await this.scorm12Builder.buildPackage({
|
|
50
|
+
courseId,
|
|
51
|
+
settings,
|
|
52
|
+
workDir,
|
|
53
|
+
onProgress: async (pct, msg) => {
|
|
54
|
+
await this.notificationService.updateProgress(userId, notificationId, {
|
|
55
|
+
progress: pct,
|
|
56
|
+
body: msg,
|
|
57
|
+
});
|
|
58
|
+
},
|
|
59
|
+
});
|
|
60
|
+
await this.notificationService.updateProgress(userId, notificationId, {
|
|
61
|
+
progress: 90,
|
|
62
|
+
body: 'Fazendo upload do pacote SCORM...',
|
|
63
|
+
});
|
|
64
|
+
const stat = await fs_1.promises.stat(zipPath);
|
|
65
|
+
const uploadedFile = await this.fileService.uploadFromPath('course-exports', zipPath, {
|
|
66
|
+
originalname: filename,
|
|
67
|
+
mimetype: 'application/zip',
|
|
68
|
+
size: stat.size,
|
|
69
|
+
});
|
|
70
|
+
const durationSeconds = Math.round((Date.now() - startedAt) / 1000);
|
|
71
|
+
await this.courseExportService.markCompleted(exportId, uploadedFile.id, durationSeconds);
|
|
72
|
+
await this.notificationService.updateProgress(userId, notificationId, {
|
|
73
|
+
progress: 100,
|
|
74
|
+
body: `Exportação SCORM 1.2 concluída em ${durationSeconds}s!`,
|
|
75
|
+
success: true,
|
|
76
|
+
});
|
|
77
|
+
this.logger.log(`SCORM 1.2 export ${exportId} completed in ${durationSeconds}s, file id=${uploadedFile.id}`);
|
|
78
|
+
}
|
|
79
|
+
catch (err) {
|
|
80
|
+
const msg = err instanceof Error ? err.message : 'Erro desconhecido na exportação.';
|
|
81
|
+
this.logger.error(`SCORM 1.2 export ${exportId} failed: ${msg}`, err instanceof Error ? err.stack : undefined);
|
|
82
|
+
await this.courseExportService.markFailed(exportId, msg).catch(() => undefined);
|
|
83
|
+
await this.notificationService
|
|
84
|
+
.updateProgress(userId, notificationId, {
|
|
85
|
+
progress: 100,
|
|
86
|
+
body: `Falha na exportação: ${msg}`,
|
|
87
|
+
success: false,
|
|
88
|
+
})
|
|
89
|
+
.catch(() => undefined);
|
|
90
|
+
throw err;
|
|
91
|
+
}
|
|
92
|
+
finally {
|
|
93
|
+
await fs_1.promises.rm(workDir, { recursive: true, force: true }).catch(() => undefined);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
exports.CourseExportScorm12WorkerService = CourseExportScorm12WorkerService;
|
|
98
|
+
exports.CourseExportScorm12WorkerService = CourseExportScorm12WorkerService = CourseExportScorm12WorkerService_1 = __decorate([
|
|
99
|
+
(0, common_1.Injectable)(),
|
|
100
|
+
__param(0, (0, common_1.Inject)((0, common_1.forwardRef)(() => core_1.FileService))),
|
|
101
|
+
__param(1, (0, common_1.Inject)((0, common_1.forwardRef)(() => core_1.NotificationService))),
|
|
102
|
+
__param(2, (0, common_1.Inject)((0, common_1.forwardRef)(() => queue_1.QueueHandlerRegistry))),
|
|
103
|
+
__metadata("design:paramtypes", [core_1.FileService,
|
|
104
|
+
core_1.NotificationService,
|
|
105
|
+
queue_1.QueueHandlerRegistry,
|
|
106
|
+
course_export_service_1.CourseExportService,
|
|
107
|
+
course_export_scorm12_service_1.CourseExportScorm12Service])
|
|
108
|
+
], CourseExportScorm12WorkerService);
|
|
109
|
+
//# sourceMappingURL=course-export-scorm12-worker.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"course-export-scorm12-worker.service.js","sourceRoot":"","sources":["../../src/course/course-export-scorm12-worker.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAiE;AACjE,0CAAmE;AACnE,2CAMwB;AACxB,2BAAoC;AACpC,2BAA4B;AAC5B,+BAA4B;AAC5B,mFAA6E;AAC7E,mEAA6F;AAGtF,IAAM,gCAAgC,wCAAtC,MAAM,gCAAgC;IAG3C,YAEE,WAAyC,EAEzC,mBAAyD,EAEzD,QAA+C,EAC9B,mBAAwC,EACxC,cAA0C;QAN1C,gBAAW,GAAX,WAAW,CAAa;QAExB,wBAAmB,GAAnB,mBAAmB,CAAqB;QAExC,aAAQ,GAAR,QAAQ,CAAsB;QAC9B,wBAAmB,GAAnB,mBAAmB,CAAqB;QACxC,mBAAc,GAAd,cAAc,CAA4B;QAV5C,WAAM,GAAG,IAAI,eAAM,CAAC,kCAAgC,CAAC,IAAI,CAAC,CAAC;IAWzE,CAAC;IAEJ,YAAY;QACV,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,qDAA6B,EAAE,IAAI,CAAC,CAAC;QAC5D,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,oCAAoC,q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C,CAAC;YAChF,MAAM,IAAI,CAAC,mBAAmB;iBAC3B,cAAc,CAAC,MAAM,EAAE,cAAc,EAAE;gBACtC,QAAQ,EAAE,GAAG;gBACb,IAAI,EAAE,wBAAwB,GAAG,EAAE;gBACnC,OAAO,EAAE,KAAK;aACf,CAAC;iBACD,KAAK,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC;YAE1B,MAAM,GAAG,CAAC;QACZ,CAAC;gBAAS,CAAC;YACT,MAAM,aAAE,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC;QAChF,CAAC;IACH,CAAC;CACF,CAAA;AA3GY,4EAAgC;2CAAhC,gCAAgC;IAD5C,IAAA,mBAAU,GAAE;IAKR,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,kBAAW,CAAC,CAAC,CAAA;IAErC,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,4BAAoB,CAAC,CAAC,CAAA;qCAHjB,kBAAW;QAEH,0BAAmB;QAE9B,4BAAoB;QACT,2CAAmB;QACxB,0DAA0B;GAXlD,gCAAgC,CA2G5C"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { PrismaService } from '@hed-hog/api-prisma';
|
|
2
|
+
import { FileService } from '@hed-hog/core';
|
|
3
|
+
import { CourseExportService } from './course-export.service';
|
|
4
|
+
export type ScormVisualOptions = {
|
|
5
|
+
primaryColor?: string;
|
|
6
|
+
fontFamily?: string;
|
|
7
|
+
fontSize?: string;
|
|
8
|
+
sidebarWidth?: number;
|
|
9
|
+
sidebarPosition?: string;
|
|
10
|
+
progressStyle?: string;
|
|
11
|
+
sidebarTheme?: string;
|
|
12
|
+
};
|
|
13
|
+
export type Scorm12BuildParams = {
|
|
14
|
+
courseId: number;
|
|
15
|
+
settings: {
|
|
16
|
+
visual?: ScormVisualOptions;
|
|
17
|
+
};
|
|
18
|
+
workDir: string;
|
|
19
|
+
onProgress: (pct: number, msg: string) => Promise<void>;
|
|
20
|
+
};
|
|
21
|
+
export declare class CourseExportScorm12Service {
|
|
22
|
+
private readonly prisma;
|
|
23
|
+
private readonly fileService;
|
|
24
|
+
private readonly courseExportService;
|
|
25
|
+
constructor(prisma: PrismaService, fileService: FileService, courseExportService: CourseExportService);
|
|
26
|
+
buildPackage(params: Scorm12BuildParams): Promise<{
|
|
27
|
+
zipPath: string;
|
|
28
|
+
filename: string;
|
|
29
|
+
}>;
|
|
30
|
+
private resolveVisual;
|
|
31
|
+
private buildCourseData;
|
|
32
|
+
private getExternalVideoSrc;
|
|
33
|
+
private generateManifest;
|
|
34
|
+
private generateMetadataXml;
|
|
35
|
+
private generateScormApiJs;
|
|
36
|
+
private generateShellHtml;
|
|
37
|
+
private generateCss;
|
|
38
|
+
private generateJs;
|
|
39
|
+
private escapeXml;
|
|
40
|
+
private escapeHtml;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=course-export-scorm12.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"course-export-scorm12.service.d.ts","sourceRoot":"","sources":["../../src/course/course-export-scorm12.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAO5C,OAAO,EAAE,mBAAmB,EAAuB,MAAM,yBAAyB,CAAC;AAOnF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;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