@hed-hog/lms 0.0.358 → 0.0.364
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 +65 -0
- package/dist/bitcode-wallet/bitcode-wallet.service.d.ts.map +1 -1
- package/dist/bitcode-wallet/bitcode-wallet.service.js +72 -0
- package/dist/bitcode-wallet/bitcode-wallet.service.js.map +1 -1
- package/dist/bitcode-wallet/dto/create-current-bitcode-wallet-transaction.dto.d.ts +8 -0
- package/dist/bitcode-wallet/dto/create-current-bitcode-wallet-transaction.dto.d.ts.map +1 -0
- package/dist/bitcode-wallet/dto/create-current-bitcode-wallet-transaction.dto.js +40 -0
- package/dist/bitcode-wallet/dto/create-current-bitcode-wallet-transaction.dto.js.map +1 -0
- package/dist/class-group/class-group.controller.d.ts +16 -16
- package/dist/class-group/class-group.service.d.ts +12 -12
- package/dist/course/course-audio-transcription.service.d.ts +3 -2
- package/dist/course/course-audio-transcription.service.d.ts.map +1 -1
- package/dist/course/course-audio-transcription.service.js +49 -8
- package/dist/course/course-audio-transcription.service.js.map +1 -1
- package/dist/course/course-lesson.controller.d.ts +4 -0
- package/dist/course/course-lesson.controller.d.ts.map +1 -1
- package/dist/course/course-lesson.controller.js +10 -0
- package/dist/course/course-lesson.controller.js.map +1 -1
- package/dist/course/course-structure.controller.d.ts +11 -4
- package/dist/course/course-structure.controller.d.ts.map +1 -1
- package/dist/course/course-structure.controller.js +14 -0
- package/dist/course/course-structure.controller.js.map +1 -1
- package/dist/course/course-structure.service.d.ts +15 -1
- package/dist/course/course-structure.service.d.ts.map +1 -1
- package/dist/course/course-structure.service.js +139 -4
- package/dist/course/course-structure.service.js.map +1 -1
- package/dist/course/course-video-conversion.service.d.ts +8 -0
- package/dist/course/course-video-conversion.service.d.ts.map +1 -1
- package/dist/course/course-video-conversion.service.js +87 -51
- package/dist/course/course-video-conversion.service.js.map +1 -1
- package/dist/course/course.controller.d.ts +73 -1
- package/dist/course/course.controller.d.ts.map +1 -1
- package/dist/course/course.controller.js +27 -3
- package/dist/course/course.controller.js.map +1 -1
- package/dist/course/course.module.d.ts.map +1 -1
- package/dist/course/course.module.js +15 -3
- package/dist/course/course.module.js.map +1 -1
- package/dist/course/course.service.d.ts +108 -4
- package/dist/course/course.service.d.ts.map +1 -1
- package/dist/course/course.service.js +631 -30
- package/dist/course/course.service.js.map +1 -1
- package/dist/course/dto/cleanup-course-storage.dto.d.ts +6 -0
- package/dist/course/dto/cleanup-course-storage.dto.d.ts.map +1 -0
- package/dist/course/dto/cleanup-course-storage.dto.js +33 -0
- package/dist/course/dto/cleanup-course-storage.dto.js.map +1 -0
- package/dist/course/dto/cleanup-upload-history.dto.d.ts +9 -0
- package/dist/course/dto/cleanup-upload-history.dto.d.ts.map +1 -0
- package/dist/course/dto/cleanup-upload-history.dto.js +36 -0
- package/dist/course/dto/cleanup-upload-history.dto.js.map +1 -0
- package/dist/course/dto/create-course-bulk-job.dto.d.ts +4 -0
- package/dist/course/dto/create-course-bulk-job.dto.d.ts.map +1 -0
- package/dist/course/dto/create-course-bulk-job.dto.js +21 -0
- package/dist/course/dto/create-course-bulk-job.dto.js.map +1 -0
- package/dist/course/lms-bulk-upload-automation.service.d.ts +39 -0
- package/dist/course/lms-bulk-upload-automation.service.d.ts.map +1 -0
- package/dist/course/lms-bulk-upload-automation.service.js +443 -0
- package/dist/course/lms-bulk-upload-automation.service.js.map +1 -0
- package/dist/course/lms-bulk-upload-infra.service.d.ts +31 -0
- package/dist/course/lms-bulk-upload-infra.service.d.ts.map +1 -0
- package/dist/course/lms-bulk-upload-infra.service.js +277 -0
- package/dist/course/lms-bulk-upload-infra.service.js.map +1 -0
- package/dist/course/lms-bulk-upload.constants.d.ts +4 -0
- package/dist/course/lms-bulk-upload.constants.d.ts.map +1 -0
- package/dist/course/lms-bulk-upload.constants.js +7 -0
- package/dist/course/lms-bulk-upload.constants.js.map +1 -0
- package/dist/course/lms-bulk-upload.controller.d.ts +153 -0
- package/dist/course/lms-bulk-upload.controller.d.ts.map +1 -0
- package/dist/course/lms-bulk-upload.controller.js +129 -0
- package/dist/course/lms-bulk-upload.controller.js.map +1 -0
- package/dist/course/lms-bulk-upload.service.d.ts +181 -0
- package/dist/course/lms-bulk-upload.service.d.ts.map +1 -0
- package/dist/course/lms-bulk-upload.service.js +754 -0
- package/dist/course/lms-bulk-upload.service.js.map +1 -0
- package/dist/course/lms-setting.controller.d.ts +7 -1
- package/dist/course/lms-setting.controller.d.ts.map +1 -1
- package/dist/course/lms-setting.controller.js +26 -3
- package/dist/course/lms-setting.controller.js.map +1 -1
- package/dist/enterprise/enterprise.controller.d.ts +20 -20
- package/dist/enterprise/enterprise.service.d.ts +20 -20
- package/dist/enterprise/training/training-admin.controller.d.ts +11 -11
- package/dist/enterprise/training/training-admin.service.d.ts +11 -11
- package/dist/enterprise/training/training-instructor.controller.d.ts +2 -2
- package/dist/enterprise/training/training-instructor.service.d.ts +2 -2
- package/dist/enterprise/training/training-student.controller.d.ts +1 -1
- package/dist/enterprise/training/training-student.service.d.ts +1 -1
- package/dist/enterprise/training/training-viewer.controller.d.ts +2 -2
- package/dist/evaluation/evaluation.controller.d.ts +8 -8
- package/dist/evaluation/evaluation.service.d.ts +8 -8
- package/dist/lesson-xp-map/dto/create-lesson-xp-map.dto.d.ts +6 -0
- package/dist/lesson-xp-map/dto/create-lesson-xp-map.dto.d.ts.map +1 -0
- package/dist/lesson-xp-map/dto/create-lesson-xp-map.dto.js +34 -0
- package/dist/lesson-xp-map/dto/create-lesson-xp-map.dto.js.map +1 -0
- package/dist/lesson-xp-map/dto/create-lesson-xp-segment.dto.d.ts +28 -0
- package/dist/lesson-xp-map/dto/create-lesson-xp-segment.dto.d.ts.map +1 -0
- package/dist/lesson-xp-map/dto/create-lesson-xp-segment.dto.js +123 -0
- package/dist/lesson-xp-map/dto/create-lesson-xp-segment.dto.js.map +1 -0
- package/dist/lesson-xp-map/dto/review-lesson-xp-map.dto.d.ts +4 -0
- package/dist/lesson-xp-map/dto/review-lesson-xp-map.dto.d.ts.map +1 -0
- package/dist/lesson-xp-map/dto/review-lesson-xp-map.dto.js +22 -0
- package/dist/lesson-xp-map/dto/review-lesson-xp-map.dto.js.map +1 -0
- package/dist/lesson-xp-map/dto/update-lesson-xp-map.dto.d.ts +10 -0
- package/dist/lesson-xp-map/dto/update-lesson-xp-map.dto.d.ts.map +1 -0
- package/dist/lesson-xp-map/dto/update-lesson-xp-map.dto.js +52 -0
- package/dist/lesson-xp-map/dto/update-lesson-xp-map.dto.js.map +1 -0
- package/dist/lesson-xp-map/dto/update-lesson-xp-segment.dto.d.ts +15 -0
- package/dist/lesson-xp-map/dto/update-lesson-xp-segment.dto.d.ts.map +1 -0
- package/dist/lesson-xp-map/dto/update-lesson-xp-segment.dto.js +86 -0
- package/dist/lesson-xp-map/dto/update-lesson-xp-segment.dto.js.map +1 -0
- package/dist/lesson-xp-map/lesson-xp-ai-calculation.service.d.ts +26 -0
- package/dist/lesson-xp-map/lesson-xp-ai-calculation.service.d.ts.map +1 -0
- package/dist/lesson-xp-map/lesson-xp-ai-calculation.service.js +304 -0
- package/dist/lesson-xp-map/lesson-xp-ai-calculation.service.js.map +1 -0
- package/dist/lesson-xp-map/lesson-xp-map.controller.d.ts +87 -0
- package/dist/lesson-xp-map/lesson-xp-map.controller.d.ts.map +1 -0
- package/dist/lesson-xp-map/lesson-xp-map.controller.js +185 -0
- package/dist/lesson-xp-map/lesson-xp-map.controller.js.map +1 -0
- package/dist/lesson-xp-map/lesson-xp-map.module.d.ts +3 -0
- package/dist/lesson-xp-map/lesson-xp-map.module.d.ts.map +1 -0
- package/dist/lesson-xp-map/lesson-xp-map.module.js +34 -0
- package/dist/lesson-xp-map/lesson-xp-map.module.js.map +1 -0
- package/dist/lesson-xp-map/lesson-xp-map.service.d.ts +84 -0
- package/dist/lesson-xp-map/lesson-xp-map.service.d.ts.map +1 -0
- package/dist/lesson-xp-map/lesson-xp-map.service.js +353 -0
- package/dist/lesson-xp-map/lesson-xp-map.service.js.map +1 -0
- package/dist/lesson-xp-map/lesson-xp-segment.controller.d.ts +10 -0
- package/dist/lesson-xp-map/lesson-xp-segment.controller.d.ts.map +1 -0
- package/dist/lesson-xp-map/lesson-xp-segment.controller.js +63 -0
- package/dist/lesson-xp-map/lesson-xp-segment.controller.js.map +1 -0
- package/dist/lesson-xp-map/lesson-xp-segment.service.d.ts +27 -0
- package/dist/lesson-xp-map/lesson-xp-segment.service.d.ts.map +1 -0
- package/dist/lesson-xp-map/lesson-xp-segment.service.js +194 -0
- package/dist/lesson-xp-map/lesson-xp-segment.service.js.map +1 -0
- package/dist/libraries/lms/tsconfig.tsbuildinfo +1 -0
- package/dist/lms.module.d.ts.map +1 -1
- package/dist/lms.module.js +17 -2
- package/dist/lms.module.js.map +1 -1
- package/dist/platforma/dto/update-profile.dto.d.ts +17 -0
- package/dist/platforma/dto/update-profile.dto.d.ts.map +1 -0
- package/dist/platforma/dto/update-profile.dto.js +87 -0
- package/dist/platforma/dto/update-profile.dto.js.map +1 -0
- package/dist/platforma/platforma.controller.d.ts +94 -7
- package/dist/platforma/platforma.controller.d.ts.map +1 -1
- package/dist/platforma/platforma.controller.js +85 -2
- package/dist/platforma/platforma.controller.js.map +1 -1
- package/dist/platforma/platforma.service.d.ts +27 -0
- package/dist/platforma/platforma.service.d.ts.map +1 -0
- package/dist/platforma/platforma.service.js +274 -0
- package/dist/platforma/platforma.service.js.map +1 -0
- package/dist/student-xp/student-xp.controller.d.ts +41 -0
- package/dist/student-xp/student-xp.controller.d.ts.map +1 -0
- package/dist/student-xp/student-xp.controller.js +114 -0
- package/dist/student-xp/student-xp.controller.js.map +1 -0
- package/dist/student-xp/student-xp.module.d.ts +3 -0
- package/dist/student-xp/student-xp.module.d.ts.map +1 -0
- package/dist/student-xp/student-xp.module.js +25 -0
- package/dist/student-xp/student-xp.module.js.map +1 -0
- package/dist/student-xp/student-xp.service.d.ts +65 -0
- package/dist/student-xp/student-xp.service.d.ts.map +1 -0
- package/dist/student-xp/student-xp.service.js +197 -0
- package/dist/student-xp/student-xp.service.js.map +1 -0
- package/dist/xp-catalog/dto/create-xp-area.dto.d.ts +12 -0
- package/dist/xp-catalog/dto/create-xp-area.dto.d.ts.map +1 -0
- package/dist/xp-catalog/dto/create-xp-area.dto.js +63 -0
- package/dist/xp-catalog/dto/create-xp-area.dto.js.map +1 -0
- package/dist/xp-catalog/dto/create-xp-learning-type.dto.d.ts +11 -0
- package/dist/xp-catalog/dto/create-xp-learning-type.dto.d.ts.map +1 -0
- package/dist/xp-catalog/dto/create-xp-learning-type.dto.js +57 -0
- package/dist/xp-catalog/dto/create-xp-learning-type.dto.js.map +1 -0
- package/dist/xp-catalog/dto/create-xp-skill.dto.d.ts +11 -0
- package/dist/xp-catalog/dto/create-xp-skill.dto.d.ts.map +1 -0
- package/dist/xp-catalog/dto/create-xp-skill.dto.js +57 -0
- package/dist/xp-catalog/dto/create-xp-skill.dto.js.map +1 -0
- package/dist/xp-catalog/dto/update-xp-area.dto.d.ts +12 -0
- package/dist/xp-catalog/dto/update-xp-area.dto.d.ts.map +1 -0
- package/dist/xp-catalog/dto/update-xp-area.dto.js +66 -0
- package/dist/xp-catalog/dto/update-xp-area.dto.js.map +1 -0
- package/dist/xp-catalog/dto/update-xp-learning-type.dto.d.ts +11 -0
- package/dist/xp-catalog/dto/update-xp-learning-type.dto.d.ts.map +1 -0
- package/dist/xp-catalog/dto/update-xp-learning-type.dto.js +60 -0
- package/dist/xp-catalog/dto/update-xp-learning-type.dto.js.map +1 -0
- package/dist/xp-catalog/dto/update-xp-skill.dto.d.ts +11 -0
- package/dist/xp-catalog/dto/update-xp-skill.dto.d.ts.map +1 -0
- package/dist/xp-catalog/dto/update-xp-skill.dto.js +60 -0
- package/dist/xp-catalog/dto/update-xp-skill.dto.js.map +1 -0
- package/dist/xp-catalog/xp-area.controller.d.ts +25 -0
- package/dist/xp-catalog/xp-area.controller.d.ts.map +1 -0
- package/dist/xp-catalog/xp-area.controller.js +105 -0
- package/dist/xp-catalog/xp-area.controller.js.map +1 -0
- package/dist/xp-catalog/xp-area.service.d.ts +35 -0
- package/dist/xp-catalog/xp-area.service.d.ts.map +1 -0
- package/dist/xp-catalog/xp-area.service.js +168 -0
- package/dist/xp-catalog/xp-area.service.js.map +1 -0
- package/dist/xp-catalog/xp-catalog.module.d.ts +3 -0
- package/dist/xp-catalog/xp-catalog.module.d.ts.map +1 -0
- package/dist/xp-catalog/xp-catalog.module.js +29 -0
- package/dist/xp-catalog/xp-catalog.module.js.map +1 -0
- package/dist/xp-catalog/xp-learning-type.controller.d.ts +20 -0
- package/dist/xp-catalog/xp-learning-type.controller.d.ts.map +1 -0
- package/dist/xp-catalog/xp-learning-type.controller.js +96 -0
- package/dist/xp-catalog/xp-learning-type.controller.js.map +1 -0
- package/dist/xp-catalog/xp-learning-type.service.d.ts +30 -0
- package/dist/xp-catalog/xp-learning-type.service.d.ts.map +1 -0
- package/dist/xp-catalog/xp-learning-type.service.js +146 -0
- package/dist/xp-catalog/xp-learning-type.service.js.map +1 -0
- package/dist/xp-catalog/xp-skill.controller.d.ts +26 -0
- package/dist/xp-catalog/xp-skill.controller.d.ts.map +1 -0
- package/dist/xp-catalog/xp-skill.controller.js +113 -0
- package/dist/xp-catalog/xp-skill.controller.js.map +1 -0
- package/dist/xp-catalog/xp-skill.service.d.ts +37 -0
- package/dist/xp-catalog/xp-skill.service.d.ts.map +1 -0
- package/dist/xp-catalog/xp-skill.service.js +174 -0
- package/dist/xp-catalog/xp-skill.service.js.map +1 -0
- package/hedhog/data/menu.yaml +101 -0
- package/hedhog/data/role.yaml +8 -0
- package/hedhog/data/route.yaml +547 -0
- package/hedhog/data/setting_group.yaml +33 -0
- package/hedhog/data/xp_area.yaml +164 -0
- package/hedhog/data/xp_learning_type.yaml +131 -0
- package/hedhog/data/xp_skill.yaml +1834 -0
- package/hedhog/frontend/app/achievements/page.tsx.ejs +108 -118
- package/hedhog/frontend/app/bitcodes/page.tsx.ejs +22 -34
- package/hedhog/frontend/app/bulk-upload-sessions/page.tsx.ejs +1453 -0
- package/hedhog/frontend/app/certificates/models/page.tsx.ejs +21 -45
- package/hedhog/frontend/app/classes/[id]/page.tsx.ejs +40 -74
- package/hedhog/frontend/app/classes/page.tsx.ejs +56 -85
- package/hedhog/frontend/app/courses/[id]/_components/CourseDangerZoneCard.tsx.ejs +3 -2
- package/hedhog/frontend/app/courses/[id]/_components/CourseMediaCard.tsx.ejs +48 -5
- package/hedhog/frontend/app/courses/[id]/page.tsx.ejs +4 -4
- package/hedhog/frontend/app/courses/[id]/structure/_components/course-operations-tab.tsx.ejs +19 -2
- package/hedhog/frontend/app/courses/[id]/structure/_components/course-overview-tab.tsx.ejs +1170 -0
- package/hedhog/frontend/app/courses/[id]/structure/_components/course-tree-dnd.tsx.ejs +16 -0
- package/hedhog/frontend/app/courses/[id]/structure/_components/course-tree.tsx.ejs +2 -0
- package/hedhog/frontend/app/courses/[id]/structure/_components/course-xp-overview-tab.tsx.ejs +623 -0
- package/hedhog/frontend/app/courses/[id]/structure/_components/detail-lesson-xp-tab.tsx.ejs +1458 -0
- package/hedhog/frontend/app/courses/[id]/structure/_components/detail-lesson.tsx.ejs +55 -2
- package/hedhog/frontend/app/courses/[id]/structure/_components/editor-course.tsx.ejs +442 -104
- package/hedhog/frontend/app/courses/[id]/structure/_components/editor-lesson.tsx.ejs +296 -49
- package/hedhog/frontend/app/courses/[id]/structure/_components/sortable-tree-row.tsx.ejs +3 -0
- package/hedhog/frontend/app/courses/[id]/structure/_components/store.ts.ejs +1 -0
- package/hedhog/frontend/app/courses/[id]/structure/_components/tree-display-settings-popover.tsx.ejs +101 -85
- package/hedhog/frontend/app/courses/[id]/structure/_components/tree-row-lesson.tsx.ejs +21 -1
- package/hedhog/frontend/app/courses/[id]/structure/_components/tree-row.tsx.ejs +3 -0
- package/hedhog/frontend/app/courses/[id]/structure/_components/use-tree-display-settings.ts.ejs +7 -1
- package/hedhog/frontend/app/courses/[id]/structure/_components/xp-premium-pills.tsx.ejs +44 -0
- package/hedhog/frontend/app/courses/[id]/structure/_data/use-course-content-overview.ts.ejs +54 -0
- package/hedhog/frontend/app/courses/[id]/structure/_data/use-course-structure-mutations.ts.ejs +52 -0
- package/hedhog/frontend/app/courses/[id]/structure/_data/use-course-xp-overview.ts.ejs +76 -0
- package/hedhog/frontend/app/courses/[id]/structure/_data/use-lesson-xp-map.ts.ejs +128 -0
- package/hedhog/frontend/app/courses/[id]/structure/_data/use-transcription-segments.ts.ejs +30 -0
- package/hedhog/frontend/app/courses/[id]/structure/_utils/xp-color-config.ts.ejs +115 -0
- package/hedhog/frontend/app/courses/_components/CourseDeleteDialog.tsx.ejs +223 -0
- package/hedhog/frontend/app/courses/_components/CourseRowActions.tsx.ejs +89 -0
- package/hedhog/frontend/app/courses/page.tsx.ejs +400 -230
- package/hedhog/frontend/app/enterprise/page.tsx.ejs +39 -63
- package/hedhog/frontend/app/exams/[id]/questions/page.tsx.ejs +53 -77
- package/hedhog/frontend/app/exams/page.tsx.ejs +54 -90
- package/hedhog/frontend/app/instructor-skills/page.tsx.ejs +23 -36
- package/hedhog/frontend/app/instructors/page.tsx.ejs +72 -81
- package/hedhog/frontend/app/paths/page.tsx.ejs +40 -68
- package/hedhog/frontend/app/training/page.tsx.ejs +40 -68
- package/hedhog/frontend/app/xp/areas/page.tsx.ejs +782 -0
- package/hedhog/frontend/app/xp/learning-types/page.tsx.ejs +690 -0
- package/hedhog/frontend/app/xp/skills/page.tsx.ejs +811 -0
- package/hedhog/frontend/messages/en.json +386 -3
- package/hedhog/frontend/messages/pt.json +386 -3
- package/hedhog/table/lesson_xp_map.yaml +50 -0
- package/hedhog/table/lesson_xp_segment.yaml +40 -0
- package/hedhog/table/lesson_xp_segment_area.yaml +24 -0
- package/hedhog/table/lesson_xp_segment_learning_type.yaml +24 -0
- package/hedhog/table/lesson_xp_segment_skill.yaml +24 -0
- package/hedhog/table/lms_bulk_upload_item.yaml +44 -0
- package/hedhog/table/lms_bulk_upload_session.yaml +42 -0
- package/hedhog/table/student_area_xp.yaml +30 -0
- package/hedhog/table/student_learning_type_xp.yaml +30 -0
- package/hedhog/table/student_skill_xp.yaml +30 -0
- package/hedhog/table/student_xp_event.yaml +34 -0
- package/hedhog/table/xp_area.yaml +39 -0
- package/hedhog/table/xp_learning_type.yaml +34 -0
- package/hedhog/table/xp_skill.yaml +39 -0
- package/package.json +9 -8
- package/src/bitcode-wallet/bitcode-wallet.service.ts +113 -0
- package/src/bitcode-wallet/dto/create-current-bitcode-wallet-transaction.dto.ts +32 -0
- package/src/course/course-audio-transcription.service.ts +58 -21
- package/src/course/course-lesson.controller.ts +6 -1
- package/src/course/course-structure.controller.ts +10 -0
- package/src/course/course-structure.service.ts +174 -1
- package/src/course/course-video-conversion.service.ts +113 -75
- package/src/course/course.controller.ts +22 -3
- package/src/course/course.module.ts +15 -3
- package/src/course/course.service.ts +847 -30
- package/src/course/dto/cleanup-course-storage.dto.ts +22 -0
- package/src/course/dto/cleanup-upload-history.dto.ts +26 -0
- package/src/course/dto/create-course-bulk-job.dto.ts +6 -0
- package/src/course/lms-bulk-upload-automation.service.ts +560 -0
- package/src/course/lms-bulk-upload-infra.service.ts +327 -0
- package/src/course/lms-bulk-upload.constants.ts +5 -0
- package/src/course/lms-bulk-upload.controller.ts +103 -0
- package/src/course/lms-bulk-upload.service.ts +1029 -0
- package/src/course/lms-setting.controller.ts +28 -1
- package/src/lesson-xp-map/dto/create-lesson-xp-map.dto.ts +17 -0
- package/src/lesson-xp-map/dto/create-lesson-xp-segment.dto.ts +102 -0
- package/src/lesson-xp-map/dto/review-lesson-xp-map.dto.ts +7 -0
- package/src/lesson-xp-map/dto/update-lesson-xp-map.dto.ts +36 -0
- package/src/lesson-xp-map/dto/update-lesson-xp-segment.dto.ts +78 -0
- package/src/lesson-xp-map/lesson-xp-ai-calculation.service.ts +396 -0
- package/src/lesson-xp-map/lesson-xp-map.controller.ts +116 -0
- package/src/lesson-xp-map/lesson-xp-map.module.ts +21 -0
- package/src/lesson-xp-map/lesson-xp-map.service.ts +442 -0
- package/src/lesson-xp-map/lesson-xp-segment.controller.ts +36 -0
- package/src/lesson-xp-map/lesson-xp-segment.service.ts +229 -0
- package/src/lms.module.ts +17 -2
- package/src/platforma/dto/update-profile.dto.ts +59 -0
- package/src/platforma/platforma.controller.ts +57 -2
- package/src/platforma/platforma.service.ts +268 -0
- package/src/student-xp/student-xp.controller.ts +76 -0
- package/src/student-xp/student-xp.module.ts +12 -0
- package/src/student-xp/student-xp.service.ts +236 -0
- package/src/xp-catalog/dto/create-xp-area.dto.ts +40 -0
- package/src/xp-catalog/dto/create-xp-learning-type.dto.ts +35 -0
- package/src/xp-catalog/dto/create-xp-skill.dto.ts +35 -0
- package/src/xp-catalog/dto/update-xp-area.dto.ts +43 -0
- package/src/xp-catalog/dto/update-xp-learning-type.dto.ts +38 -0
- package/src/xp-catalog/dto/update-xp-skill.dto.ts +38 -0
- package/src/xp-catalog/xp-area.controller.ts +64 -0
- package/src/xp-catalog/xp-area.service.ts +196 -0
- package/src/xp-catalog/xp-catalog.module.ts +16 -0
- package/src/xp-catalog/xp-learning-type.controller.ts +59 -0
- package/src/xp-catalog/xp-learning-type.service.ts +170 -0
- package/src/xp-catalog/xp-skill.controller.ts +71 -0
- package/src/xp-catalog/xp-skill.service.ts +205 -0
package/dist/lms.module.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lms.module.d.ts","sourceRoot":"","sources":["../src/lms.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lms.module.d.ts","sourceRoot":"","sources":["../src/lms.module.ts"],"names":[],"mappings":"AAgCA,qBA0Da,SAAS;CAAG"}
|
package/dist/lms.module.js
CHANGED
|
@@ -21,6 +21,7 @@ const class_group_module_1 = require("./class-group/class-group.module");
|
|
|
21
21
|
const course_lesson_discussion_module_1 = require("./course-lesson-discussion/course-lesson-discussion.module");
|
|
22
22
|
const course_lesson_note_module_1 = require("./course-lesson-note/course-lesson-note.module");
|
|
23
23
|
const course_audio_transcription_service_1 = require("./course/course-audio-transcription.service");
|
|
24
|
+
const lms_bulk_upload_automation_service_1 = require("./course/lms-bulk-upload-automation.service");
|
|
24
25
|
const course_module_1 = require("./course/course.module");
|
|
25
26
|
const dashboard_module_1 = require("./dashboard/dashboard.module");
|
|
26
27
|
const enterprise_module_1 = require("./enterprise/enterprise.module");
|
|
@@ -28,9 +29,13 @@ const enterprise_training_module_1 = require("./enterprise/training/enterprise-t
|
|
|
28
29
|
const evaluation_module_1 = require("./evaluation/evaluation.module");
|
|
29
30
|
const exam_module_1 = require("./exam/exam.module");
|
|
30
31
|
const instructor_module_1 = require("./instructor/instructor.module");
|
|
32
|
+
const lesson_xp_map_module_1 = require("./lesson-xp-map/lesson-xp-map.module");
|
|
33
|
+
const platforma_controller_1 = require("./platforma/platforma.controller");
|
|
34
|
+
const student_xp_module_1 = require("./student-xp/student-xp.module");
|
|
35
|
+
const xp_catalog_module_1 = require("./xp-catalog/xp-catalog.module");
|
|
36
|
+
const platforma_service_1 = require("./platforma/platforma.service");
|
|
31
37
|
const lms_realtime_module_1 = require("./realtime/lms-realtime.module");
|
|
32
38
|
const reports_module_1 = require("./reports/reports.module");
|
|
33
|
-
const platforma_controller_1 = require("./platforma/platforma.controller");
|
|
34
39
|
const training_module_1 = require("./training/training.module");
|
|
35
40
|
const video_resolution_profile_module_1 = require("./video-resolution-profile/video-resolution-profile.module");
|
|
36
41
|
let LmsModule = class LmsModule {
|
|
@@ -62,9 +67,16 @@ exports.LmsModule = LmsModule = __decorate([
|
|
|
62
67
|
(0, common_1.forwardRef)(() => reports_module_1.LmsReportsModule),
|
|
63
68
|
(0, common_1.forwardRef)(() => training_module_1.TrainingModule),
|
|
64
69
|
(0, common_1.forwardRef)(() => video_resolution_profile_module_1.VideoResolutionProfileModule),
|
|
70
|
+
(0, common_1.forwardRef)(() => xp_catalog_module_1.XpCatalogModule),
|
|
71
|
+
(0, common_1.forwardRef)(() => lesson_xp_map_module_1.LessonXpMapModule),
|
|
72
|
+
(0, common_1.forwardRef)(() => student_xp_module_1.StudentXpModule),
|
|
65
73
|
],
|
|
66
74
|
controllers: [platforma_controller_1.PlataformaController],
|
|
67
|
-
providers: [
|
|
75
|
+
providers: [
|
|
76
|
+
course_audio_transcription_service_1.CourseAudioTranscriptionService,
|
|
77
|
+
lms_bulk_upload_automation_service_1.LmsBulkUploadAutomationService,
|
|
78
|
+
platforma_service_1.PlatformaService,
|
|
79
|
+
],
|
|
68
80
|
exports: [
|
|
69
81
|
(0, common_1.forwardRef)(() => achievement_module_1.AchievementModule),
|
|
70
82
|
(0, common_1.forwardRef)(() => bitcode_wallet_module_1.BitcodeWalletModule),
|
|
@@ -83,6 +95,9 @@ exports.LmsModule = LmsModule = __decorate([
|
|
|
83
95
|
(0, common_1.forwardRef)(() => reports_module_1.LmsReportsModule),
|
|
84
96
|
(0, common_1.forwardRef)(() => training_module_1.TrainingModule),
|
|
85
97
|
(0, common_1.forwardRef)(() => video_resolution_profile_module_1.VideoResolutionProfileModule),
|
|
98
|
+
(0, common_1.forwardRef)(() => xp_catalog_module_1.XpCatalogModule),
|
|
99
|
+
(0, common_1.forwardRef)(() => lesson_xp_map_module_1.LessonXpMapModule),
|
|
100
|
+
(0, common_1.forwardRef)(() => student_xp_module_1.StudentXpModule),
|
|
86
101
|
],
|
|
87
102
|
})
|
|
88
103
|
], LmsModule);
|
package/dist/lms.module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lms.module.js","sourceRoot":"","sources":["../src/lms.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,oDAAmD;AACnD,4DAA2D;AAC3D,oDAAmD;AACnD,wCAA2C;AAC3C,0CAA6C;AAC7C,2CAAoD;AACpD,2CAA8C;AAC9C,yEAAqE;AACrE,kFAA6E;AAC7E,yEAAwE;AACxE,yEAAoE;AACpE,gHAA0G;AAC1G,8FAAwF;AAC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
|
3
|
+
cpf?: string;
|
|
4
|
+
dob?: string;
|
|
5
|
+
gender?: string;
|
|
6
|
+
country?: string;
|
|
7
|
+
city?: string;
|
|
8
|
+
state?: string;
|
|
9
|
+
neighborhood?: string;
|
|
10
|
+
street?: string;
|
|
11
|
+
number?: string;
|
|
12
|
+
complement?: string;
|
|
13
|
+
zip?: string;
|
|
14
|
+
phone?: string;
|
|
15
|
+
profession?: string;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=update-profile.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-profile.dto.d.ts","sourceRoot":"","sources":["../../../src/platforma/dto/update-profile.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,yBAAyB;IAGpC,IAAI,CAAC,EAAE,MAAM,CAAC;IAId,GAAG,CAAC,EAAE,MAAM,CAAC;IAIb,GAAG,CAAC,EAAE,MAAM,CAAC;IAIb,MAAM,CAAC,EAAE,MAAM,CAAC;IAIhB,OAAO,CAAC,EAAE,MAAM,CAAC;IAIjB,IAAI,CAAC,EAAE,MAAM,CAAC;IAId,KAAK,CAAC,EAAE,MAAM,CAAC;IAIf,YAAY,CAAC,EAAE,MAAM,CAAC;IAItB,MAAM,CAAC,EAAE,MAAM,CAAC;IAIhB,MAAM,CAAC,EAAE,MAAM,CAAC;IAIhB,UAAU,CAAC,EAAE,MAAM,CAAC;IAIpB,GAAG,CAAC,EAAE,MAAM,CAAC;IAIb,KAAK,CAAC,EAAE,MAAM,CAAC;IAIf,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
|
|
@@ -0,0 +1,87 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.UpdatePlatformaProfileDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class UpdatePlatformaProfileDto {
|
|
15
|
+
}
|
|
16
|
+
exports.UpdatePlatformaProfileDto = UpdatePlatformaProfileDto;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsOptional)(),
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], UpdatePlatformaProfileDto.prototype, "name", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsOptional)(),
|
|
24
|
+
(0, class_validator_1.IsString)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], UpdatePlatformaProfileDto.prototype, "cpf", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsOptional)(),
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], UpdatePlatformaProfileDto.prototype, "dob", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsOptional)(),
|
|
34
|
+
(0, class_validator_1.IsString)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], UpdatePlatformaProfileDto.prototype, "gender", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsOptional)(),
|
|
39
|
+
(0, class_validator_1.IsString)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], UpdatePlatformaProfileDto.prototype, "country", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsOptional)(),
|
|
44
|
+
(0, class_validator_1.IsString)(),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], UpdatePlatformaProfileDto.prototype, "city", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_validator_1.IsOptional)(),
|
|
49
|
+
(0, class_validator_1.IsString)(),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], UpdatePlatformaProfileDto.prototype, "state", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, class_validator_1.IsOptional)(),
|
|
54
|
+
(0, class_validator_1.IsString)(),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], UpdatePlatformaProfileDto.prototype, "neighborhood", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, class_validator_1.IsOptional)(),
|
|
59
|
+
(0, class_validator_1.IsString)(),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], UpdatePlatformaProfileDto.prototype, "street", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, class_validator_1.IsOptional)(),
|
|
64
|
+
(0, class_validator_1.IsString)(),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], UpdatePlatformaProfileDto.prototype, "number", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, class_validator_1.IsOptional)(),
|
|
69
|
+
(0, class_validator_1.IsString)(),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], UpdatePlatformaProfileDto.prototype, "complement", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, class_validator_1.IsOptional)(),
|
|
74
|
+
(0, class_validator_1.IsString)(),
|
|
75
|
+
__metadata("design:type", String)
|
|
76
|
+
], UpdatePlatformaProfileDto.prototype, "zip", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, class_validator_1.IsOptional)(),
|
|
79
|
+
(0, class_validator_1.IsString)(),
|
|
80
|
+
__metadata("design:type", String)
|
|
81
|
+
], UpdatePlatformaProfileDto.prototype, "phone", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, class_validator_1.IsOptional)(),
|
|
84
|
+
(0, class_validator_1.IsString)(),
|
|
85
|
+
__metadata("design:type", String)
|
|
86
|
+
], UpdatePlatformaProfileDto.prototype, "profession", void 0);
|
|
87
|
+
//# sourceMappingURL=update-profile.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-profile.dto.js","sourceRoot":"","sources":["../../../src/platforma/dto/update-profile.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AAEvD,MAAa,yBAAyB;CAwDrC;AAxDD,8DAwDC;AArDC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;uDACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;sDACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;sDACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;yDACK;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0DACM;AAIjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;uDACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACI;AAIf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;+DACW;AAItB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;yDACK;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;yDACK;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6DACS;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;sDACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACI;AAIf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6DACS"}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { NotificationService } from '@hed-hog/core';
|
|
2
|
+
import type { Request, Response } from 'express';
|
|
3
|
+
import { BitcodeWalletService } from '../bitcode-wallet/bitcode-wallet.service';
|
|
4
|
+
import { CreateCurrentBitcodeWalletTransactionDto } from '../bitcode-wallet/dto/create-current-bitcode-wallet-transaction.dto';
|
|
2
5
|
import { TrainingStudentService } from '../enterprise/training/training-student.service';
|
|
6
|
+
import { UpdatePlatformaProfileDto } from './dto/update-profile.dto';
|
|
7
|
+
import { PlatformaService } from './platforma.service';
|
|
3
8
|
export declare class PlataformaController {
|
|
4
9
|
private readonly trainingStudentService;
|
|
5
10
|
private readonly notificationService;
|
|
6
|
-
|
|
11
|
+
private readonly platforma;
|
|
12
|
+
private readonly bitcodeWalletService;
|
|
13
|
+
constructor(trainingStudentService: TrainingStudentService, notificationService: NotificationService, platforma: PlatformaService, bitcodeWalletService: BitcodeWalletService);
|
|
7
14
|
getHome(userId: number): Promise<{
|
|
8
15
|
user: {
|
|
9
16
|
id: number;
|
|
@@ -242,23 +249,43 @@ export declare class PlataformaController {
|
|
|
242
249
|
}>;
|
|
243
250
|
markAllNotificationsRead(userId: number): Promise<import("@prisma/client").Prisma.BatchPayload>;
|
|
244
251
|
markNotificationRead(userId: number, id: number): Promise<{
|
|
245
|
-
type: import("@prisma/client").$Enums.notification_type_enum;
|
|
246
|
-
progress: number | null;
|
|
247
252
|
id: number;
|
|
253
|
+
user_id: number;
|
|
254
|
+
created_at: Date;
|
|
255
|
+
updated_at: Date;
|
|
256
|
+
type: import("@prisma/client").$Enums.notification_type_enum;
|
|
248
257
|
body: string | null;
|
|
249
|
-
title: string;
|
|
250
258
|
status: import("@prisma/client").$Enums.notification_status_enum;
|
|
251
259
|
icon: string | null;
|
|
260
|
+
title: string;
|
|
261
|
+
progress: number | null;
|
|
262
|
+
action_type: import("@prisma/client").$Enums.notification_action_type_enum | null;
|
|
263
|
+
action_data: import("@prisma/client/runtime/library").JsonValue | null;
|
|
264
|
+
action_url: string | null;
|
|
265
|
+
auto_remove: boolean;
|
|
266
|
+
started_at: Date | null;
|
|
267
|
+
finished_at: Date | null;
|
|
268
|
+
}>;
|
|
269
|
+
streamNotifications(userId: number, req: Request, res: Response): void;
|
|
270
|
+
deleteNotification(userId: number, id: number): Promise<{
|
|
271
|
+
id: number;
|
|
252
272
|
user_id: number;
|
|
253
273
|
created_at: Date;
|
|
254
274
|
updated_at: Date;
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
275
|
+
type: import("@prisma/client").$Enums.notification_type_enum;
|
|
276
|
+
body: string | null;
|
|
277
|
+
status: import("@prisma/client").$Enums.notification_status_enum;
|
|
278
|
+
icon: string | null;
|
|
279
|
+
title: string;
|
|
280
|
+
progress: number | null;
|
|
258
281
|
action_type: import("@prisma/client").$Enums.notification_action_type_enum | null;
|
|
259
282
|
action_data: import("@prisma/client/runtime/library").JsonValue | null;
|
|
283
|
+
action_url: string | null;
|
|
260
284
|
auto_remove: boolean;
|
|
285
|
+
started_at: Date | null;
|
|
286
|
+
finished_at: Date | null;
|
|
261
287
|
}>;
|
|
288
|
+
deleteAllNotifications(userId: number): Promise<import("@prisma/client").Prisma.BatchPayload>;
|
|
262
289
|
getStreak(userId: number, days?: number): Promise<{
|
|
263
290
|
currentStreak: number;
|
|
264
291
|
bestStreak: number;
|
|
@@ -283,5 +310,65 @@ export declare class PlataformaController {
|
|
|
283
310
|
completed: boolean;
|
|
284
311
|
}[];
|
|
285
312
|
}>;
|
|
313
|
+
getBitcodeWallet(userId: number): Promise<{
|
|
314
|
+
transactions: {
|
|
315
|
+
id: number;
|
|
316
|
+
walletId: number;
|
|
317
|
+
type: string;
|
|
318
|
+
amount: number;
|
|
319
|
+
description: string;
|
|
320
|
+
createdAt: string;
|
|
321
|
+
updatedAt: string;
|
|
322
|
+
}[];
|
|
323
|
+
id: number;
|
|
324
|
+
personId: number;
|
|
325
|
+
personName: string;
|
|
326
|
+
currentBalance: number;
|
|
327
|
+
transactionCount: number;
|
|
328
|
+
totalCredits: number;
|
|
329
|
+
totalDebits: number;
|
|
330
|
+
createdAt: string;
|
|
331
|
+
updatedAt: string;
|
|
332
|
+
}>;
|
|
333
|
+
createBitcodeTransaction(userId: number, dto: CreateCurrentBitcodeWalletTransactionDto): Promise<{
|
|
334
|
+
transactions: {
|
|
335
|
+
id: number;
|
|
336
|
+
walletId: number;
|
|
337
|
+
type: string;
|
|
338
|
+
amount: number;
|
|
339
|
+
description: string;
|
|
340
|
+
createdAt: string;
|
|
341
|
+
updatedAt: string;
|
|
342
|
+
}[];
|
|
343
|
+
id: number;
|
|
344
|
+
personId: number;
|
|
345
|
+
personName: string;
|
|
346
|
+
currentBalance: number;
|
|
347
|
+
transactionCount: number;
|
|
348
|
+
totalCredits: number;
|
|
349
|
+
totalDebits: number;
|
|
350
|
+
createdAt: string;
|
|
351
|
+
updatedAt: string;
|
|
352
|
+
}>;
|
|
353
|
+
getProfile(userId: number): Promise<{
|
|
354
|
+
id: number;
|
|
355
|
+
name: string;
|
|
356
|
+
cpf: any;
|
|
357
|
+
dob: any;
|
|
358
|
+
gender: string;
|
|
359
|
+
country: any;
|
|
360
|
+
city: any;
|
|
361
|
+
state: any;
|
|
362
|
+
neighborhood: string;
|
|
363
|
+
street: string;
|
|
364
|
+
number: string;
|
|
365
|
+
complement: string;
|
|
366
|
+
zip: any;
|
|
367
|
+
phone: any;
|
|
368
|
+
profession: any;
|
|
369
|
+
}>;
|
|
370
|
+
updateProfile(userId: number, dto: UpdatePlatformaProfileDto): Promise<{
|
|
371
|
+
success: boolean;
|
|
372
|
+
}>;
|
|
286
373
|
}
|
|
287
374
|
//# sourceMappingURL=platforma.controller.d.ts.map
|
|
@@ -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,EAAE,sBAAsB,EAAE,MAAM,iDAAiD,CAAC;
|
|
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,sBAAsB,EAAE,MAAM,iDAAiD,CAAC;AACzF,OAAO,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,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;gBAHpB,sBAAsB,EAAE,sBAAsB,EAC9C,mBAAmB,EAAE,mBAAmB,EACxC,SAAS,EAAE,gBAAgB,EAC3B,oBAAoB,EAAE,oBAAoB;IAI7D,OAAO,CAAa,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAKlC,YAAY,CAAa,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;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AM,EAClB,GAAG,EAAE,wCAAwC;;;;;;;;;;;;;;;;;;;;IAMvD,UAAU,CAAa,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;IAKrC,aAAa,CACC,MAAM,EAAE,MAAM,EAClB,GAAG,EAAE,yBAAyB;;;CAIzC"}
|
|
@@ -16,11 +16,17 @@ exports.PlataformaController = void 0;
|
|
|
16
16
|
const api_1 = require("@hed-hog/api");
|
|
17
17
|
const core_1 = require("@hed-hog/core");
|
|
18
18
|
const common_1 = require("@nestjs/common");
|
|
19
|
+
const bitcode_wallet_service_1 = require("../bitcode-wallet/bitcode-wallet.service");
|
|
20
|
+
const create_current_bitcode_wallet_transaction_dto_1 = require("../bitcode-wallet/dto/create-current-bitcode-wallet-transaction.dto");
|
|
19
21
|
const training_student_service_1 = require("../enterprise/training/training-student.service");
|
|
22
|
+
const update_profile_dto_1 = require("./dto/update-profile.dto");
|
|
23
|
+
const platforma_service_1 = require("./platforma.service");
|
|
20
24
|
let PlataformaController = class PlataformaController {
|
|
21
|
-
constructor(trainingStudentService, notificationService) {
|
|
25
|
+
constructor(trainingStudentService, notificationService, platforma, bitcodeWalletService) {
|
|
22
26
|
this.trainingStudentService = trainingStudentService;
|
|
23
27
|
this.notificationService = notificationService;
|
|
28
|
+
this.platforma = platforma;
|
|
29
|
+
this.bitcodeWalletService = bitcodeWalletService;
|
|
24
30
|
}
|
|
25
31
|
getHome(userId) {
|
|
26
32
|
return this.trainingStudentService.getDashboard(userId);
|
|
@@ -55,12 +61,33 @@ let PlataformaController = class PlataformaController {
|
|
|
55
61
|
markNotificationRead(userId, id) {
|
|
56
62
|
return this.notificationService.markRead(userId, id);
|
|
57
63
|
}
|
|
64
|
+
streamNotifications(userId, req, res) {
|
|
65
|
+
return this.notificationService.stream(userId, req, res);
|
|
66
|
+
}
|
|
67
|
+
deleteNotification(userId, id) {
|
|
68
|
+
return this.notificationService.delete(userId, id);
|
|
69
|
+
}
|
|
70
|
+
deleteAllNotifications(userId) {
|
|
71
|
+
return this.notificationService.deleteAll(userId);
|
|
72
|
+
}
|
|
58
73
|
getStreak(userId, days) {
|
|
59
74
|
return this.trainingStudentService.getStreak(userId, days);
|
|
60
75
|
}
|
|
61
76
|
registerStreakActivity(userId, body) {
|
|
62
77
|
return this.trainingStudentService.registerStreakActivity(userId, body);
|
|
63
78
|
}
|
|
79
|
+
getBitcodeWallet(userId) {
|
|
80
|
+
return this.bitcodeWalletService.getCurrentUserWallet(userId);
|
|
81
|
+
}
|
|
82
|
+
createBitcodeTransaction(userId, dto) {
|
|
83
|
+
return this.bitcodeWalletService.createCurrentUserTransaction(userId, dto);
|
|
84
|
+
}
|
|
85
|
+
getProfile(userId) {
|
|
86
|
+
return this.platforma.getProfile(userId);
|
|
87
|
+
}
|
|
88
|
+
updateProfile(userId, dto) {
|
|
89
|
+
return this.platforma.updateProfile(userId, dto);
|
|
90
|
+
}
|
|
64
91
|
};
|
|
65
92
|
exports.PlataformaController = PlataformaController;
|
|
66
93
|
__decorate([
|
|
@@ -122,6 +149,30 @@ __decorate([
|
|
|
122
149
|
__metadata("design:paramtypes", [Number, Number]),
|
|
123
150
|
__metadata("design:returntype", void 0)
|
|
124
151
|
], PlataformaController.prototype, "markNotificationRead", null);
|
|
152
|
+
__decorate([
|
|
153
|
+
(0, common_1.Get)('notifications/stream'),
|
|
154
|
+
__param(0, (0, api_1.User)('id')),
|
|
155
|
+
__param(1, (0, common_1.Req)()),
|
|
156
|
+
__param(2, (0, common_1.Res)()),
|
|
157
|
+
__metadata("design:type", Function),
|
|
158
|
+
__metadata("design:paramtypes", [Number, Object, Object]),
|
|
159
|
+
__metadata("design:returntype", void 0)
|
|
160
|
+
], PlataformaController.prototype, "streamNotifications", null);
|
|
161
|
+
__decorate([
|
|
162
|
+
(0, common_1.Delete)('notifications/:id'),
|
|
163
|
+
__param(0, (0, api_1.User)('id')),
|
|
164
|
+
__param(1, (0, common_1.Param)('id', common_1.ParseIntPipe)),
|
|
165
|
+
__metadata("design:type", Function),
|
|
166
|
+
__metadata("design:paramtypes", [Number, Number]),
|
|
167
|
+
__metadata("design:returntype", void 0)
|
|
168
|
+
], PlataformaController.prototype, "deleteNotification", null);
|
|
169
|
+
__decorate([
|
|
170
|
+
(0, common_1.Delete)('notifications'),
|
|
171
|
+
__param(0, (0, api_1.User)('id')),
|
|
172
|
+
__metadata("design:type", Function),
|
|
173
|
+
__metadata("design:paramtypes", [Number]),
|
|
174
|
+
__metadata("design:returntype", void 0)
|
|
175
|
+
], PlataformaController.prototype, "deleteAllNotifications", null);
|
|
125
176
|
__decorate([
|
|
126
177
|
(0, common_1.Get)('streak'),
|
|
127
178
|
__param(0, (0, api_1.User)('id')),
|
|
@@ -138,10 +189,42 @@ __decorate([
|
|
|
138
189
|
__metadata("design:paramtypes", [Number, Object]),
|
|
139
190
|
__metadata("design:returntype", void 0)
|
|
140
191
|
], PlataformaController.prototype, "registerStreakActivity", null);
|
|
192
|
+
__decorate([
|
|
193
|
+
(0, common_1.Get)('bitcodes/wallet'),
|
|
194
|
+
__param(0, (0, api_1.User)('id')),
|
|
195
|
+
__metadata("design:type", Function),
|
|
196
|
+
__metadata("design:paramtypes", [Number]),
|
|
197
|
+
__metadata("design:returntype", void 0)
|
|
198
|
+
], PlataformaController.prototype, "getBitcodeWallet", null);
|
|
199
|
+
__decorate([
|
|
200
|
+
(0, common_1.Post)('bitcodes/transactions'),
|
|
201
|
+
__param(0, (0, api_1.User)('id')),
|
|
202
|
+
__param(1, (0, common_1.Body)()),
|
|
203
|
+
__metadata("design:type", Function),
|
|
204
|
+
__metadata("design:paramtypes", [Number, create_current_bitcode_wallet_transaction_dto_1.CreateCurrentBitcodeWalletTransactionDto]),
|
|
205
|
+
__metadata("design:returntype", void 0)
|
|
206
|
+
], PlataformaController.prototype, "createBitcodeTransaction", null);
|
|
207
|
+
__decorate([
|
|
208
|
+
(0, common_1.Get)('profile'),
|
|
209
|
+
__param(0, (0, api_1.User)('id')),
|
|
210
|
+
__metadata("design:type", Function),
|
|
211
|
+
__metadata("design:paramtypes", [Number]),
|
|
212
|
+
__metadata("design:returntype", void 0)
|
|
213
|
+
], PlataformaController.prototype, "getProfile", null);
|
|
214
|
+
__decorate([
|
|
215
|
+
(0, common_1.Put)('profile'),
|
|
216
|
+
__param(0, (0, api_1.User)('id')),
|
|
217
|
+
__param(1, (0, common_1.Body)()),
|
|
218
|
+
__metadata("design:type", Function),
|
|
219
|
+
__metadata("design:paramtypes", [Number, update_profile_dto_1.UpdatePlatformaProfileDto]),
|
|
220
|
+
__metadata("design:returntype", void 0)
|
|
221
|
+
], PlataformaController.prototype, "updateProfile", null);
|
|
141
222
|
exports.PlataformaController = PlataformaController = __decorate([
|
|
142
223
|
(0, api_1.NoRole)(),
|
|
143
224
|
(0, common_1.Controller)('lms/platforma'),
|
|
144
225
|
__metadata("design:paramtypes", [training_student_service_1.TrainingStudentService,
|
|
145
|
-
core_1.NotificationService
|
|
226
|
+
core_1.NotificationService,
|
|
227
|
+
platforma_service_1.PlatformaService,
|
|
228
|
+
bitcode_wallet_service_1.BitcodeWalletService])
|
|
146
229
|
], PlataformaController);
|
|
147
230
|
//# sourceMappingURL=platforma.controller.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platforma.controller.js","sourceRoot":"","sources":["../../src/platforma/platforma.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,sCAA4C;AAC5C,wCAAoD;AACpD,
|
|
1
|
+
{"version":3,"file":"platforma.controller.js","sourceRoot":"","sources":["../../src/platforma/platforma.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,sCAA4C;AAC5C,wCAAoD;AACpD,2CAAuH;AAEvH,qFAAgF;AAChF,uIAA+H;AAC/H,8FAAyF;AACzF,iEAAqE;AACrE,2DAAuD;AAIhD,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC/B,YACmB,sBAA8C,EAC9C,mBAAwC,EACxC,SAA2B,EAC3B,oBAA0C;QAH1C,2BAAs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AAI,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;+BArIU,oBAAoB;IAFhC,IAAA,YAAM,GAAE;IACR,IAAA,mBAAU,EAAC,eAAe,CAAC;qCAGiB,iDAAsB;QACzB,0BAAmB;QAC7B,oCAAgB;QACL,6CAAoB;GALlD,oBAAoB,CAsIhC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { PrismaService } from '@hed-hog/api-prisma';
|
|
2
|
+
import { UpdatePlatformaProfileDto } from './dto/update-profile.dto';
|
|
3
|
+
export declare class PlatformaService {
|
|
4
|
+
private readonly prisma;
|
|
5
|
+
constructor(prisma: PrismaService);
|
|
6
|
+
getProfile(userId: number): Promise<{
|
|
7
|
+
id: number;
|
|
8
|
+
name: string;
|
|
9
|
+
cpf: any;
|
|
10
|
+
dob: any;
|
|
11
|
+
gender: string;
|
|
12
|
+
country: any;
|
|
13
|
+
city: any;
|
|
14
|
+
state: any;
|
|
15
|
+
neighborhood: string;
|
|
16
|
+
street: string;
|
|
17
|
+
number: string;
|
|
18
|
+
complement: string;
|
|
19
|
+
zip: any;
|
|
20
|
+
phone: any;
|
|
21
|
+
profession: any;
|
|
22
|
+
}>;
|
|
23
|
+
updateProfile(userId: number, dto: UpdatePlatformaProfileDto): Promise<{
|
|
24
|
+
success: boolean;
|
|
25
|
+
}>;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=platforma.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platforma.service.d.ts","sourceRoot":"","sources":["../../src/platforma/platforma.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,OAAO,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AA+CrE,qBACa,gBAAgB;IACf,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,aAAa;IAE5C,UAAU,CAAC,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;IAqEzB,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,yBAAyB;;;CAiJnE"}
|