@hed-hog/lms 0.0.365 → 0.0.366
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/class-group/class-group.controller.d.ts +1 -0
- package/dist/class-group/class-group.controller.d.ts.map +1 -1
- package/dist/class-group/class-group.service.d.ts +1 -0
- package/dist/class-group/class-group.service.d.ts.map +1 -1
- package/dist/course/course-structure.controller.d.ts +4 -2
- package/dist/course/course-structure.controller.d.ts.map +1 -1
- package/dist/course/course-structure.controller.js +6 -3
- package/dist/course/course-structure.controller.js.map +1 -1
- package/dist/course/course-video-agent-pipeline.service.d.ts +70 -0
- package/dist/course/course-video-agent-pipeline.service.d.ts.map +1 -0
- package/dist/course/course-video-agent-pipeline.service.js +398 -0
- package/dist/course/course-video-agent-pipeline.service.js.map +1 -0
- package/dist/course/course-video-hls.service.d.ts +14 -0
- package/dist/course/course-video-hls.service.d.ts.map +1 -1
- package/dist/course/course-video-hls.service.js +25 -8
- package/dist/course/course-video-hls.service.js.map +1 -1
- package/dist/course/course.controller.d.ts +2 -0
- 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 -0
- package/dist/course/course.module.js.map +1 -1
- package/dist/course/course.service.d.ts +2 -0
- package/dist/course/course.service.d.ts.map +1 -1
- package/dist/course/course.service.js +36 -2
- package/dist/course/course.service.js.map +1 -1
- package/dist/course/ffmpeg.util.d.ts +10 -0
- package/dist/course/ffmpeg.util.d.ts.map +1 -0
- package/dist/course/ffmpeg.util.js +79 -0
- package/dist/course/ffmpeg.util.js.map +1 -0
- package/dist/course/lms-bulk-upload-automation.service.d.ts +3 -1
- package/dist/course/lms-bulk-upload-automation.service.d.ts.map +1 -1
- package/dist/course/lms-bulk-upload-automation.service.js +7 -3
- package/dist/course/lms-bulk-upload-automation.service.js.map +1 -1
- package/dist/enterprise/training/training-admin.controller.d.ts +2 -0
- package/dist/enterprise/training/training-admin.controller.d.ts.map +1 -1
- package/dist/enterprise/training/training-admin.service.d.ts +2 -0
- package/dist/enterprise/training/training-admin.service.d.ts.map +1 -1
- package/dist/lms.module.d.ts.map +1 -1
- package/dist/lms.module.js +10 -0
- package/dist/lms.module.js.map +1 -1
- package/dist/platforma/dto/heartbeat.dto.d.ts +9 -0
- package/dist/platforma/dto/heartbeat.dto.d.ts.map +1 -0
- package/dist/platforma/dto/heartbeat.dto.js +50 -0
- package/dist/platforma/dto/heartbeat.dto.js.map +1 -0
- package/dist/platforma/handlers/emit-certificate.handler.d.ts +27 -0
- package/dist/platforma/handlers/emit-certificate.handler.d.ts.map +1 -0
- package/dist/platforma/handlers/emit-certificate.handler.js +117 -0
- package/dist/platforma/handlers/emit-certificate.handler.js.map +1 -0
- package/dist/platforma/handlers/lesson-heartbeat.handler.d.ts +31 -0
- package/dist/platforma/handlers/lesson-heartbeat.handler.d.ts.map +1 -0
- package/dist/platforma/handlers/lesson-heartbeat.handler.js +281 -0
- package/dist/platforma/handlers/lesson-heartbeat.handler.js.map +1 -0
- package/dist/platforma/platforma-heartbeat.service.d.ts +10 -0
- package/dist/platforma/platforma-heartbeat.service.d.ts.map +1 -0
- package/dist/platforma/platforma-heartbeat.service.js +50 -0
- package/dist/platforma/platforma-heartbeat.service.js.map +1 -0
- package/dist/platforma/platforma-performance.service.d.ts +121 -0
- package/dist/platforma/platforma-performance.service.d.ts.map +1 -0
- package/dist/platforma/platforma-performance.service.js +500 -0
- package/dist/platforma/platforma-performance.service.js.map +1 -0
- package/dist/platforma/platforma-search.service.d.ts +21 -0
- package/dist/platforma/platforma-search.service.d.ts.map +1 -0
- package/dist/platforma/platforma-search.service.js +64 -0
- package/dist/platforma/platforma-search.service.js.map +1 -0
- package/dist/platforma/platforma.controller.d.ts +115 -1
- package/dist/platforma/platforma.controller.d.ts.map +1 -1
- package/dist/platforma/platforma.controller.js +50 -2
- package/dist/platforma/platforma.controller.js.map +1 -1
- package/dist/realtime/lms-realtime.controller.d.ts +2 -0
- package/dist/realtime/lms-realtime.controller.d.ts.map +1 -1
- package/dist/realtime/lms-realtime.controller.js +31 -0
- package/dist/realtime/lms-realtime.controller.js.map +1 -1
- package/dist/realtime/lms-realtime.service.d.ts +1 -1
- package/dist/realtime/lms-realtime.service.d.ts.map +1 -1
- package/dist/realtime/lms-realtime.service.js.map +1 -1
- package/hedhog/frontend/app/certificates/models/page.tsx.ejs +182 -29
- package/hedhog/frontend/app/classes/_components/classes-calendar-view.tsx.ejs +277 -0
- package/hedhog/frontend/app/classes/page.tsx.ejs +127 -20
- package/hedhog/frontend/app/courses/[id]/structure/_components/course-overview-tab.tsx.ejs +141 -30
- package/hedhog/frontend/app/courses/[id]/structure/_components/course-xp-overview-tab.tsx.ejs +13 -13
- package/hedhog/frontend/app/courses/[id]/structure/_components/detail-lesson-xp-tab.tsx.ejs +11 -23
- package/hedhog/frontend/app/courses/[id]/structure/_components/xp-premium-pills.tsx.ejs +1 -8
- package/hedhog/frontend/app/courses/[id]/structure/_data/use-course-content-overview.ts.ejs +2 -0
- package/hedhog/frontend/app/courses/page.tsx.ejs +40 -9
- package/hedhog/frontend/app/enterprise/[id]/page.tsx.ejs +6 -0
- package/hedhog/frontend/app/enterprise/_components/enterprise-classes-calendar-tab.tsx.ejs +264 -0
- package/hedhog/frontend/app/enterprise/page.tsx.ejs +104 -47
- package/hedhog/frontend/app/exams/page.tsx.ejs +38 -4
- package/hedhog/frontend/app/instructors/page.tsx.ejs +87 -46
- package/hedhog/frontend/app/paths/page.tsx.ejs +38 -4
- package/hedhog/frontend/app/training/page.tsx.ejs +38 -4
- package/hedhog/frontend/messages/en.json +18 -0
- package/hedhog/frontend/messages/pt.json +21 -1
- package/hedhog/table/course_enrollment.yaml +3 -0
- package/hedhog/table/lesson_view_event.yaml +66 -0
- package/package.json +9 -8
- package/src/course/course-structure.controller.ts +3 -1
- package/src/course/course-video-agent-pipeline.service.ts +471 -0
- package/src/course/course-video-hls.service.ts +30 -10
- package/src/course/course.module.ts +5 -0
- package/src/course/course.service.ts +46 -1
- package/src/course/ffmpeg.util.ts +65 -0
- package/src/course/lms-bulk-upload-automation.service.ts +4 -1
- package/src/lms.module.ts +10 -0
- package/src/platforma/dto/heartbeat.dto.ts +30 -0
- package/src/platforma/handlers/emit-certificate.handler.ts +117 -0
- package/src/platforma/handlers/lesson-heartbeat.handler.ts +343 -0
- package/src/platforma/platforma-heartbeat.service.ts +33 -0
- package/src/platforma/platforma-performance.service.ts +606 -0
- package/src/platforma/platforma-search.service.ts +48 -0
- package/src/platforma/platforma.controller.ts +42 -0
- package/src/realtime/lms-realtime.controller.ts +27 -1
- package/src/realtime/lms-realtime.service.ts +2 -1
|
@@ -4,8 +4,12 @@ import { BitcodeWalletService } from '../bitcode-wallet/bitcode-wallet.service';
|
|
|
4
4
|
import { CreateCurrentBitcodeWalletTransactionDto } from '../bitcode-wallet/dto/create-current-bitcode-wallet-transaction.dto';
|
|
5
5
|
import { EvaluationService } from '../evaluation/evaluation.service';
|
|
6
6
|
import { TrainingStudentService } from '../enterprise/training/training-student.service';
|
|
7
|
+
import { HeartbeatDto } from './dto/heartbeat.dto';
|
|
7
8
|
import { UpdatePlatformaProfileDto } from './dto/update-profile.dto';
|
|
9
|
+
import { PlatformaHeartbeatService } from './platforma-heartbeat.service';
|
|
10
|
+
import { PlatformaPerformanceService } from './platforma-performance.service';
|
|
8
11
|
import { PlatformaService } from './platforma.service';
|
|
12
|
+
import { PlatformaSearchService } from './platforma-search.service';
|
|
9
13
|
import { PlatformaVideoService } from './platforma-video.service';
|
|
10
14
|
export declare class PlataformaController {
|
|
11
15
|
private readonly trainingStudentService;
|
|
@@ -14,7 +18,10 @@ export declare class PlataformaController {
|
|
|
14
18
|
private readonly bitcodeWalletService;
|
|
15
19
|
private readonly platformaVideoService;
|
|
16
20
|
private readonly evaluationService;
|
|
17
|
-
|
|
21
|
+
private readonly heartbeatService;
|
|
22
|
+
private readonly performanceService;
|
|
23
|
+
private readonly searchService;
|
|
24
|
+
constructor(trainingStudentService: TrainingStudentService, notificationService: NotificationService, platforma: PlatformaService, bitcodeWalletService: BitcodeWalletService, platformaVideoService: PlatformaVideoService, evaluationService: EvaluationService, heartbeatService: PlatformaHeartbeatService, performanceService: PlatformaPerformanceService, searchService: PlatformaSearchService);
|
|
18
25
|
getHome(userId: number): Promise<{
|
|
19
26
|
user: {
|
|
20
27
|
id: number;
|
|
@@ -272,6 +279,13 @@ export declare class PlataformaController {
|
|
|
272
279
|
avatar: string;
|
|
273
280
|
};
|
|
274
281
|
}>;
|
|
282
|
+
search(q?: string, types?: string, pageSize?: string): Promise<{
|
|
283
|
+
courses: any;
|
|
284
|
+
tracks: any;
|
|
285
|
+
exams: any;
|
|
286
|
+
classrooms: any;
|
|
287
|
+
instructors: any;
|
|
288
|
+
}>;
|
|
275
289
|
getLessonDetail(lessonId: number): Promise<{
|
|
276
290
|
id: number;
|
|
277
291
|
title: string;
|
|
@@ -444,6 +458,106 @@ export declare class PlataformaController {
|
|
|
444
458
|
createdAt: string;
|
|
445
459
|
updatedAt: string;
|
|
446
460
|
}>;
|
|
461
|
+
getPerformanceSummary(userId: number, period?: string): Promise<{
|
|
462
|
+
kpis: ({
|
|
463
|
+
id: string;
|
|
464
|
+
title: string;
|
|
465
|
+
value: string;
|
|
466
|
+
subtitle: string;
|
|
467
|
+
change: string;
|
|
468
|
+
icon: "clock";
|
|
469
|
+
color: string;
|
|
470
|
+
sparkline: {
|
|
471
|
+
index: number;
|
|
472
|
+
value: number;
|
|
473
|
+
}[];
|
|
474
|
+
} | {
|
|
475
|
+
id: string;
|
|
476
|
+
title: string;
|
|
477
|
+
value: string;
|
|
478
|
+
subtitle: string;
|
|
479
|
+
change: string;
|
|
480
|
+
icon: "bookOpen";
|
|
481
|
+
color: string;
|
|
482
|
+
sparkline: {
|
|
483
|
+
index: number;
|
|
484
|
+
value: number;
|
|
485
|
+
}[];
|
|
486
|
+
} | {
|
|
487
|
+
id: string;
|
|
488
|
+
title: string;
|
|
489
|
+
value: string;
|
|
490
|
+
subtitle: string;
|
|
491
|
+
change: string;
|
|
492
|
+
icon: "pencil";
|
|
493
|
+
color: string;
|
|
494
|
+
sparkline: {
|
|
495
|
+
index: number;
|
|
496
|
+
value: number;
|
|
497
|
+
}[];
|
|
498
|
+
} | {
|
|
499
|
+
id: string;
|
|
500
|
+
title: string;
|
|
501
|
+
value: string;
|
|
502
|
+
subtitle: string;
|
|
503
|
+
change: string;
|
|
504
|
+
icon: "target";
|
|
505
|
+
color: string;
|
|
506
|
+
sparkline: {
|
|
507
|
+
index: number;
|
|
508
|
+
value: number;
|
|
509
|
+
}[];
|
|
510
|
+
} | {
|
|
511
|
+
id: string;
|
|
512
|
+
title: string;
|
|
513
|
+
value: string;
|
|
514
|
+
subtitle: string;
|
|
515
|
+
change: string;
|
|
516
|
+
icon: "coins";
|
|
517
|
+
color: string;
|
|
518
|
+
sparkline: {
|
|
519
|
+
index: number;
|
|
520
|
+
value: number;
|
|
521
|
+
}[];
|
|
522
|
+
})[];
|
|
523
|
+
studyHours: {
|
|
524
|
+
month: string;
|
|
525
|
+
hours: number;
|
|
526
|
+
}[];
|
|
527
|
+
areaPerformance: {
|
|
528
|
+
area: string;
|
|
529
|
+
score: number;
|
|
530
|
+
}[];
|
|
531
|
+
accuracyDistribution: {
|
|
532
|
+
label: string;
|
|
533
|
+
value: number;
|
|
534
|
+
fill: string;
|
|
535
|
+
}[];
|
|
536
|
+
lessonsByCategory: {
|
|
537
|
+
label: string;
|
|
538
|
+
value: number;
|
|
539
|
+
fill: string;
|
|
540
|
+
}[];
|
|
541
|
+
avgLessonTime: {
|
|
542
|
+
month: string;
|
|
543
|
+
minutes: number;
|
|
544
|
+
}[];
|
|
545
|
+
trailProgress: {
|
|
546
|
+
trail: string;
|
|
547
|
+
progress: number;
|
|
548
|
+
color: string;
|
|
549
|
+
}[];
|
|
550
|
+
ranking: {
|
|
551
|
+
id: string;
|
|
552
|
+
position: number;
|
|
553
|
+
name: string;
|
|
554
|
+
score: string;
|
|
555
|
+
avatar: string | null;
|
|
556
|
+
}[];
|
|
557
|
+
}>;
|
|
558
|
+
heartbeat(userId: number, dto: HeartbeatDto, req: Request): Promise<{
|
|
559
|
+
ok: boolean;
|
|
560
|
+
}>;
|
|
447
561
|
getProfile(userId: number): Promise<{
|
|
448
562
|
id: number;
|
|
449
563
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platforma.controller.d.ts","sourceRoot":"","sources":["../../src/platforma/platforma.controller.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAChF,OAAO,EAAE,wCAAwC,EAAE,MAAM,qEAAqE,CAAC;AAC/H,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iDAAiD,CAAC;AACzF,OAAO,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAElE,qBAEa,oBAAoB;IAE7B,OAAO,CAAC,QAAQ,CAAC,sBAAsB;IACvC,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IACpC,OAAO,CAAC,QAAQ,CAAC,SAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,oBAAoB;IACrC,OAAO,CAAC,QAAQ,CAAC,qBAAqB;IACtC,OAAO,CAAC,QAAQ,CAAC,iBAAiB;
|
|
1
|
+
{"version":3,"file":"platforma.controller.d.ts","sourceRoot":"","sources":["../../src/platforma/platforma.controller.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD,OAAO,KA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R,MAAM,EAAE,MAAM,EAClB,IAAI,CAAC,EAAE;QAAE,YAAY,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,eAAe,CAAC,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;IAMrF,gBAAgB,CAAa,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;IAK3C,wBAAwB,CACV,MAAM,EAAE,MAAM,EAClB,GAAG,EAAE,wCAAwC;;;;;;;;;;;;;;;;;;;;IAMvD,qBAAqB,CACP,MAAM,EAAE,MAAM,EACT,MAAM,CAAC,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAMlC,SAAS,CACK,MAAM,EAAE,MAAM,EAClB,GAAG,EAAE,YAAY,EAClB,GAAG,EAAE,OAAO;;;IAWrB,UAAU,CAAa,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;IAKrC,aAAa,CACC,MAAM,EAAE,MAAM,EAClB,GAAG,EAAE,yBAAyB;;;CAIzC"}
|
|
@@ -20,17 +20,24 @@ const bitcode_wallet_service_1 = require("../bitcode-wallet/bitcode-wallet.servi
|
|
|
20
20
|
const create_current_bitcode_wallet_transaction_dto_1 = require("../bitcode-wallet/dto/create-current-bitcode-wallet-transaction.dto");
|
|
21
21
|
const evaluation_service_1 = require("../evaluation/evaluation.service");
|
|
22
22
|
const training_student_service_1 = require("../enterprise/training/training-student.service");
|
|
23
|
+
const heartbeat_dto_1 = require("./dto/heartbeat.dto");
|
|
23
24
|
const update_profile_dto_1 = require("./dto/update-profile.dto");
|
|
25
|
+
const platforma_heartbeat_service_1 = require("./platforma-heartbeat.service");
|
|
26
|
+
const platforma_performance_service_1 = require("./platforma-performance.service");
|
|
24
27
|
const platforma_service_1 = require("./platforma.service");
|
|
28
|
+
const platforma_search_service_1 = require("./platforma-search.service");
|
|
25
29
|
const platforma_video_service_1 = require("./platforma-video.service");
|
|
26
30
|
let PlataformaController = class PlataformaController {
|
|
27
|
-
constructor(trainingStudentService, notificationService, platforma, bitcodeWalletService, platformaVideoService, evaluationService) {
|
|
31
|
+
constructor(trainingStudentService, notificationService, platforma, bitcodeWalletService, platformaVideoService, evaluationService, heartbeatService, performanceService, searchService) {
|
|
28
32
|
this.trainingStudentService = trainingStudentService;
|
|
29
33
|
this.notificationService = notificationService;
|
|
30
34
|
this.platforma = platforma;
|
|
31
35
|
this.bitcodeWalletService = bitcodeWalletService;
|
|
32
36
|
this.platformaVideoService = platformaVideoService;
|
|
33
37
|
this.evaluationService = evaluationService;
|
|
38
|
+
this.heartbeatService = heartbeatService;
|
|
39
|
+
this.performanceService = performanceService;
|
|
40
|
+
this.searchService = searchService;
|
|
34
41
|
}
|
|
35
42
|
getHome(userId) {
|
|
36
43
|
return this.trainingStudentService.getDashboard(userId);
|
|
@@ -50,6 +57,9 @@ let PlataformaController = class PlataformaController {
|
|
|
50
57
|
getCourseBySlug(slug, userId) {
|
|
51
58
|
return this.trainingStudentService.getPublishedCourseBySlug(slug, userId);
|
|
52
59
|
}
|
|
60
|
+
search(q = '', types, pageSize) {
|
|
61
|
+
return this.searchService.search(q, types ? types.split(',').filter(Boolean) : [], pageSize ? Math.max(1, Number(pageSize)) : 5);
|
|
62
|
+
}
|
|
53
63
|
getLessonDetail(lessonId) {
|
|
54
64
|
return this.trainingStudentService.getLessonDetail(lessonId);
|
|
55
65
|
}
|
|
@@ -126,6 +136,15 @@ let PlataformaController = class PlataformaController {
|
|
|
126
136
|
createBitcodeTransaction(userId, dto) {
|
|
127
137
|
return this.bitcodeWalletService.createCurrentUserTransaction(userId, dto);
|
|
128
138
|
}
|
|
139
|
+
getPerformanceSummary(userId, period) {
|
|
140
|
+
return this.performanceService.getSummary(userId, period !== null && period !== void 0 ? period : '30d');
|
|
141
|
+
}
|
|
142
|
+
heartbeat(userId, dto, req) {
|
|
143
|
+
var _a, _b, _c, _d, _e, _f;
|
|
144
|
+
const ip = (_e = (_c = (_b = (_a = req.headers['x-forwarded-for']) === null || _a === void 0 ? void 0 : _a.split(',')[0]) === null || _b === void 0 ? void 0 : _b.trim()) !== null && _c !== void 0 ? _c : (_d = req.socket) === null || _d === void 0 ? void 0 : _d.remoteAddress) !== null && _e !== void 0 ? _e : '';
|
|
145
|
+
const userAgent = (_f = req.headers['user-agent']) !== null && _f !== void 0 ? _f : '';
|
|
146
|
+
return this.heartbeatService.enqueue(userId, ip, userAgent, dto);
|
|
147
|
+
}
|
|
129
148
|
getProfile(userId) {
|
|
130
149
|
return this.platforma.getProfile(userId);
|
|
131
150
|
}
|
|
@@ -167,6 +186,15 @@ __decorate([
|
|
|
167
186
|
__metadata("design:paramtypes", [String, Number]),
|
|
168
187
|
__metadata("design:returntype", void 0)
|
|
169
188
|
], PlataformaController.prototype, "getCourseBySlug", null);
|
|
189
|
+
__decorate([
|
|
190
|
+
(0, common_1.Get)('search'),
|
|
191
|
+
__param(0, (0, common_1.Query)('q')),
|
|
192
|
+
__param(1, (0, common_1.Query)('types')),
|
|
193
|
+
__param(2, (0, common_1.Query)('pageSize')),
|
|
194
|
+
__metadata("design:type", Function),
|
|
195
|
+
__metadata("design:paramtypes", [Object, String, String]),
|
|
196
|
+
__metadata("design:returntype", void 0)
|
|
197
|
+
], PlataformaController.prototype, "search", null);
|
|
170
198
|
__decorate([
|
|
171
199
|
(0, common_1.Get)('lessons/:lessonId'),
|
|
172
200
|
__param(0, (0, common_1.Param)('lessonId', common_1.ParseIntPipe)),
|
|
@@ -360,6 +388,23 @@ __decorate([
|
|
|
360
388
|
__metadata("design:paramtypes", [Number, create_current_bitcode_wallet_transaction_dto_1.CreateCurrentBitcodeWalletTransactionDto]),
|
|
361
389
|
__metadata("design:returntype", void 0)
|
|
362
390
|
], PlataformaController.prototype, "createBitcodeTransaction", null);
|
|
391
|
+
__decorate([
|
|
392
|
+
(0, common_1.Get)('performance/summary'),
|
|
393
|
+
__param(0, (0, api_1.User)('id')),
|
|
394
|
+
__param(1, (0, common_1.Query)('period')),
|
|
395
|
+
__metadata("design:type", Function),
|
|
396
|
+
__metadata("design:paramtypes", [Number, String]),
|
|
397
|
+
__metadata("design:returntype", void 0)
|
|
398
|
+
], PlataformaController.prototype, "getPerformanceSummary", null);
|
|
399
|
+
__decorate([
|
|
400
|
+
(0, common_1.Post)('heartbeat'),
|
|
401
|
+
__param(0, (0, api_1.User)('id')),
|
|
402
|
+
__param(1, (0, common_1.Body)()),
|
|
403
|
+
__param(2, (0, common_1.Req)()),
|
|
404
|
+
__metadata("design:type", Function),
|
|
405
|
+
__metadata("design:paramtypes", [Number, heartbeat_dto_1.HeartbeatDto, Object]),
|
|
406
|
+
__metadata("design:returntype", void 0)
|
|
407
|
+
], PlataformaController.prototype, "heartbeat", null);
|
|
363
408
|
__decorate([
|
|
364
409
|
(0, common_1.Get)('profile'),
|
|
365
410
|
__param(0, (0, api_1.User)('id')),
|
|
@@ -383,6 +428,9 @@ exports.PlataformaController = PlataformaController = __decorate([
|
|
|
383
428
|
platforma_service_1.PlatformaService,
|
|
384
429
|
bitcode_wallet_service_1.BitcodeWalletService,
|
|
385
430
|
platforma_video_service_1.PlatformaVideoService,
|
|
386
|
-
evaluation_service_1.EvaluationService
|
|
431
|
+
evaluation_service_1.EvaluationService,
|
|
432
|
+
platforma_heartbeat_service_1.PlatformaHeartbeatService,
|
|
433
|
+
platforma_performance_service_1.PlatformaPerformanceService,
|
|
434
|
+
platforma_search_service_1.PlatformaSearchService])
|
|
387
435
|
], PlataformaController);
|
|
388
436
|
//# sourceMappingURL=platforma.controller.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platforma.controller.js","sourceRoot":"","sources":["../../src/platforma/platforma.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,sCAAoD;AACpD,wCAAoD;AACpD,2CAAuH;AAEvH,qFAAgF;AAChF,uIAA+H;AAC/H,yEAAqE;AACrE,8FAAyF;AACzF,iEAAqE;AACrE,2DAAuD;AACvD,uEAAkE;AAI3D,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC/B,YACmB,sBAA8C,EAC9C,mBAAwC,EACxC,SAA2B,EAC3B,oBAA0C,EAC1C,qBAA4C,EAC5C,iBAAoC;
|
|
1
|
+
{"version":3,"file":"platforma.controller.js","sourceRoot":"","sources":["../../src/platforma/platforma.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,sCAAoD;AACpD,wCAAoD;AACpD,2CAAuH;AAEvH,qFAAgF;AAChF,uIAA+H;AAC/H,yEAAqE;AACrE,8FAAyF;AACzF,uDAAmD;AACnD,iEAAqE;AACrE,+EAA0E;AAC1E,mFAA8E;AAC9E,2DAAuD;AACvD,yEAAoE;AACpE,uEAAkE;AAI3D,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC/B,YACmB,sBAA8C,EAC9C,mBAAwC,EACxC,SAA2B,EAC3B,oBAA0C,EAC1C,qBAA4C,EAC5C,iBAAoC,EACpC,gBAA2C,EAC3C,kBAA+C,EAC/C,aAAqC;QARrC,2BAAsB,GAAtB,sBAAsB,CAAwB;QAC9C,wBAAmB,GAAnB,mBAAmB,CAAqB;QACxC,cAAS,GAAT,SAAS,CAAkB;QAC3B,yBAAoB,GAApB,oBAAoB,CAAsB;QAC1C,0BAAqB,GAArB,qBAAqB,CAAuB;QAC5C,sBAAiB,GAAjB,iBAAiB,CAAmB;QACpC,qBAAgB,GAAhB,gBAAgB,CAA2B;QAC3C,uBAAkB,GAAlB,kBAAkB,CAA6B;QAC/C,kBAAa,GAAb,aAAa,CAAwB;IACrD,CAAC;IAGJ,OAAO,CAAa,MAAc;QAChC,OAAO,IAAI,CAAC,sBAAsB,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;IAC1D,CAAC;IAGD,YAAY,CAAa,MAAc;QACrC,OAAO,IAAI,CAAC,sBAAsB,CAAC,YAAY,CAAC,MAAM,CAAC,CA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C,IAAI,CAAC,CAAA;IACV,WAAA,IAAA,cAAK,EAAC,QAAQ,CAAC,CAAA;;;;iEAGjB;AAGD;IADC,IAAA,aAAI,EAAC,WAAW,CAAC;IAEf,WAAA,IAAA,UAAI,EAAC,IAAI,CAAC,CAAA;IACV,WAAA,IAAA,aAAI,GAAE,CAAA;IACN,WAAA,IAAA,YAAG,GAAE,CAAA;;6CADO,4BAAY;;qDAS1B;AAGD;IADC,IAAA,YAAG,EAAC,SAAS,CAAC;IACH,WAAA,IAAA,UAAI,EAAC,IAAI,CAAC,CAAA;;;;sDAErB;AAGD;IADC,IAAA,YAAG,EAAC,SAAS,CAAC;IAEZ,WAAA,IAAA,UAAI,EAAC,IAAI,CAAC,CAAA;IACV,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAM,8CAAyB;;yDAGvC;+BAvQU,oBAAoB;IAFhC,IAAA,YAAM,GAAE;IACR,IAAA,mBAAU,EAAC,eAAe,CAAC;qCAGiB,iDAAsB;QACzB,0BAAmB;QAC7B,oCAAgB;QACL,6CAAoB;QACnB,+CAAqB;QACzB,sCAAiB;QAClB,uDAAyB;QACvB,2DAA2B;QAChC,iDAAsB;GAV7C,oBAAoB,CAwQhC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import type { Request, Response } from 'express';
|
|
1
2
|
import { LmsRealtimeCursor, LmsRealtimeService } from './lms-realtime.service';
|
|
2
3
|
export declare class LmsRealtimeController {
|
|
3
4
|
private readonly lmsRealtime;
|
|
4
5
|
constructor(lmsRealtime: LmsRealtimeService);
|
|
5
6
|
getCursor(): LmsRealtimeCursor;
|
|
7
|
+
streamActivity(req: Request, res: Response): void;
|
|
6
8
|
}
|
|
7
9
|
//# sourceMappingURL=lms-realtime.controller.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lms-realtime.controller.d.ts","sourceRoot":"","sources":["../../src/realtime/lms-realtime.controller.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE/E,qBACa,qBAAqB;IACpB,OAAO,CAAC,QAAQ,CAAC,WAAW;gBAAX,WAAW,EAAE,kBAAkB;IAG5D,SAAS,IAAI,iBAAiB;
|
|
1
|
+
{"version":3,"file":"lms-realtime.controller.d.ts","sourceRoot":"","sources":["../../src/realtime/lms-realtime.controller.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE/E,qBACa,qBAAqB;IACpB,OAAO,CAAC,QAAQ,CAAC,WAAW;gBAAX,WAAW,EAAE,kBAAkB;IAG5D,SAAS,IAAI,iBAAiB;IAK9B,cAAc,CAAQ,GAAG,EAAE,OAAO,EAAS,GAAG,EAAE,QAAQ;CAuBzD"}
|
|
@@ -8,6 +8,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
11
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
15
|
exports.LmsRealtimeController = void 0;
|
|
13
16
|
const common_1 = require("@nestjs/common");
|
|
@@ -19,6 +22,26 @@ let LmsRealtimeController = class LmsRealtimeController {
|
|
|
19
22
|
getCursor() {
|
|
20
23
|
return this.lmsRealtime.getCursor();
|
|
21
24
|
}
|
|
25
|
+
streamActivity(req, res) {
|
|
26
|
+
res.set({
|
|
27
|
+
'Content-Type': 'text/event-stream',
|
|
28
|
+
'Cache-Control': 'no-cache',
|
|
29
|
+
Connection: 'keep-alive',
|
|
30
|
+
'X-Accel-Buffering': 'no',
|
|
31
|
+
});
|
|
32
|
+
res.flushHeaders();
|
|
33
|
+
const unsub = this.lmsRealtime.subscribe((event) => {
|
|
34
|
+
if (event.domain === 'lesson_view') {
|
|
35
|
+
res.write(`data: ${JSON.stringify(event)}\n\n`);
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
// Send a heartbeat every 25s to keep the connection alive through proxies
|
|
39
|
+
const heartbeat = setInterval(() => res.write(': ping\n\n'), 25000);
|
|
40
|
+
req.on('close', () => {
|
|
41
|
+
clearInterval(heartbeat);
|
|
42
|
+
unsub();
|
|
43
|
+
});
|
|
44
|
+
}
|
|
22
45
|
};
|
|
23
46
|
exports.LmsRealtimeController = LmsRealtimeController;
|
|
24
47
|
__decorate([
|
|
@@ -27,6 +50,14 @@ __decorate([
|
|
|
27
50
|
__metadata("design:paramtypes", []),
|
|
28
51
|
__metadata("design:returntype", Object)
|
|
29
52
|
], LmsRealtimeController.prototype, "getCursor", null);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, common_1.Get)('activity/stream'),
|
|
55
|
+
__param(0, (0, common_1.Req)()),
|
|
56
|
+
__param(1, (0, common_1.Res)()),
|
|
57
|
+
__metadata("design:type", Function),
|
|
58
|
+
__metadata("design:paramtypes", [Object, Object]),
|
|
59
|
+
__metadata("design:returntype", void 0)
|
|
60
|
+
], LmsRealtimeController.prototype, "streamActivity", null);
|
|
30
61
|
exports.LmsRealtimeController = LmsRealtimeController = __decorate([
|
|
31
62
|
(0, common_1.Controller)('lms/realtime'),
|
|
32
63
|
__metadata("design:paramtypes", [lms_realtime_service_1.LmsRealtimeService])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lms-realtime.controller.js","sourceRoot":"","sources":["../../src/realtime/lms-realtime.controller.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lms-realtime.controller.js","sourceRoot":"","sources":["../../src/realtime/lms-realtime.controller.ts"],"names":[],"mappings":";;;;;;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,mBAAU,EAAC,cAAc,CAAC;qCAEiB,yCAAkB;GADjD,qBAAqB,CAgCjC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type LmsRealtimeDomain = 'course' | 'training' | 'class_group' | 'certificate_template' | 'exam_attempt' | 'enterprise' | 'instructor' | 'achievement';
|
|
1
|
+
export type LmsRealtimeDomain = 'course' | 'training' | 'class_group' | 'certificate_template' | 'exam_attempt' | 'enterprise' | 'instructor' | 'achievement' | 'lesson_view';
|
|
2
2
|
export type LmsRealtimeEventType = 'created' | 'updated' | 'deleted' | 'student_enrolled' | 'student_removed' | 'submitted';
|
|
3
3
|
export type LmsRealtimeEvent = {
|
|
4
4
|
version: 'lms-realtime-v1';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lms-realtime.service.d.ts","sourceRoot":"","sources":["../../src/realtime/lms-realtime.service.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,iBAAiB,GACzB,QAAQ,GACR,UAAU,GACV,aAAa,GACb,sBAAsB,GACtB,cAAc,GACd,YAAY,GACZ,YAAY,GACZ,aAAa,CAAC;AAElB,MAAM,MAAM,oBAAoB,GAC5B,SAAS,GACT,SAAS,GACT,SAAS,GACT,kBAAkB,GAClB,iBAAiB,GACjB,WAAW,CAAC;AAEhB,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,EAAE,iBAAiB,CAAC;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,IAAI,EAAE,oBAAoB,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IAC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/realtime/lms-realtime.service.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAA4C;
|
|
1
|
+
{"version":3,"file":"lms-realtime.service.js","sourceRoot":"","sources":["../../src/realtime/lms-realtime.service.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAA4C;AAmDrC,IAAM,kBAAkB,0BAAxB,MAAM,kBAAkB;IAAxB;QAGG,aAAQ,GAAG,CAAC,CAAC;QACb,cAAS,GAAkB,IAAI,CAAC;QACvB,aAAQ,GAAuB,EAAE,CAAC;QAClC,cAAS,GAAG,IAAI,GAAG,EAA+B,CAAC;QAC5D,qBAAgB,GAAG,CAAC,CAAC;IAwC/B,CAAC;IAtCC,OAAO,CAAC,KAA8B;;QACpC,MAAM,UAAU,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC;QACnC,MAAM,UAAU,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;QAC5C,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC;QAE5B,MAAM,aAAa,GAAqB;YACtC,OAAO,EAAE,iBAAiB;YAC1B,OAAO,EAAE,MAAM,CAAC,UAAU,CAAC;YAC3B,MAAM,EAAE,UAAU;YAClB,UAAU;YACV,MAAM,EAAE,KAAK,CAAC,MAAM;YACpB,IAAI,EAAE,KAAK,CAAC,IAAI;YAChB,QAAQ,EAAE,MAAA,KAAK,CAAC,QAAQ,mCAAI,IAAI;YAChC,OAAO,EAAE,MAAA,KAAK,CAAC,OAAO,mCAAI,IAAI;YAC9B,OAAO,EAAE,KAAK,CAAC,OAAO;SACvB,CAAC;QAEF,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAClC,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,oBAAkB,CAAC,qBAAqB,EAAE,CAAC;YACpE,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,oBAAkB,CAAC,qBA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