All files / learning learning.module.ts

0% Statements 0/9
100% Branches 0/0
100% Functions 0/0
0% Lines 0/7

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56                                                                                                               
import { Module } from '@nestjs/common';
import { MongooseModule } from '@nestjs/mongoose';
import { LearningService } from './learning.service';
import { LearningController, MobileLearningController, PublicLearningController } from './learning.controller';
import {
  LearningConfiguration, LearningConfigurationSchema,
  LearningCatalog, LearningCatalogSchema,
  LearningCategory, LearningCategorySchema,
  Course, CourseSchema,
  CourseVersion, CourseVersionSchema,
  CourseModule, CourseModuleSchema,
  CourseLesson, CourseLessonSchema,
  CourseEnrolment, CourseEnrolmentSchema,
  LearnerCourseProgress, LearnerCourseProgressSchema,
  AssessmentQuestionBank, AssessmentQuestionBankSchema,
  AssessmentQuestion, AssessmentQuestionSchema,
  LearningAssessment, LearningAssessmentSchema,
  AssessmentAttempt, AssessmentAttemptSchema,
  EmployeeCertification, EmployeeCertificationSchema,
  ComplianceWaiver, ComplianceWaiverSchema,
  ComplianceTrainingDefinition, ComplianceTrainingDefinitionSchema,
  LearningBadge, LearningBadgeSchema,
  LearnerPoint, LearnerPointSchema
} from './schemas';
import { EventBusModule } from '../../platform/events/event-bus.module';
 
@Module({
  imports: [
    EventBusModule,
    MongooseModule.forFeature([
      { name: LearningConfiguration.name, schema: LearningConfigurationSchema },
      { name: LearningCatalog.name, schema: LearningCatalogSchema },
      { name: LearningCategory.name, schema: LearningCategorySchema },
      { name: Course.name, schema: CourseSchema },
      { name: CourseVersion.name, schema: CourseVersionSchema },
      { name: CourseModule.name, schema: CourseModuleSchema },
      { name: CourseLesson.name, schema: CourseLessonSchema },
      { name: CourseEnrolment.name, schema: CourseEnrolmentSchema },
      { name: LearnerCourseProgress.name, schema: LearnerCourseProgressSchema },
      { name: AssessmentQuestionBank.name, schema: AssessmentQuestionBankSchema },
      { name: AssessmentQuestion.name, schema: AssessmentQuestionSchema },
      { name: LearningAssessment.name, schema: LearningAssessmentSchema },
      { name: AssessmentAttempt.name, schema: AssessmentAttemptSchema },
      { name: EmployeeCertification.name, schema: EmployeeCertificationSchema },
      { name: ComplianceWaiver.name, schema: ComplianceWaiverSchema },
      { name: ComplianceTrainingDefinition.name, schema: ComplianceTrainingDefinitionSchema },
      { name: LearningBadge.name, schema: LearningBadgeSchema },
      { name: LearnerPoint.name, schema: LearnerPointSchema }
    ])
  ],
  controllers: [LearningController, MobileLearningController, PublicLearningController],
  providers: [LearningService],
  exports: [LearningService]
})
export class LearningModule {}