All files / src/domains/performance performance.module.ts

0% Statements 0/9
100% Branches 0/0
0% Functions 0/1
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 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75                                                                                                                                                     
import { Module } from '@nestjs/common';
import { MongooseModule } from '@nestjs/mongoose';
import { PerformanceService } from './performance.service';
import { PerformanceController, MobilePerformanceController } from './performance.controller';
import {
  PerformanceCycle, PerformanceCycleSchema,
  PerformanceRatingScale, PerformanceRatingScaleSchema,
  PerformanceBellCurveDefinition, PerformanceBellCurveDefinitionSchema,
  PerformanceConfiguration, PerformanceConfigurationSchema,
  PerformanceGoal, PerformanceGoalSchema,
  PerformanceGoalTemplate, PerformanceGoalTemplateSchema,
  PerformanceObjective, PerformanceObjectiveSchema,
  PerformanceKeyResult, PerformanceKeyResultSchema,
  PerformanceKpiLibrary, PerformanceKpiLibrarySchema,
  PerformanceKpiMeasurement, PerformanceKpiMeasurementSchema,
  PerformanceKpiHistorySnapshot, PerformanceKpiHistorySnapshotSchema,
  PerformanceReviewTemplate, PerformanceReviewTemplateSchema,
  PerformanceReview, PerformanceReviewSchema,
  PerformanceCalibrationSession, PerformanceCalibrationSessionSchema,
  PerformanceIncrementPolicy, PerformanceIncrementPolicySchema,
  PerformanceCompensationRecommendation, PerformanceCompensationRecommendationSchema,
  PerformanceCompetencyLibrary, PerformanceCompetencyLibrarySchema,
  PerformanceEmployeeSkillMatrix, PerformanceEmployeeSkillMatrixSchema,
  PerformanceCareerTrack, PerformanceCareerTrackSchema,
  PerformanceTalentMatrix, PerformanceTalentMatrixSchema,
  PerformanceSuccessionPlan, PerformanceSuccessionPlanSchema,
  PerformanceIndividualDevelopmentPlan, PerformanceIndividualDevelopmentPlanSchema,
  PerformanceTrainingRequest, PerformanceTrainingRequestSchema,
  PerformanceCertificationTracker, PerformanceCertificationTrackerSchema,
  PerformanceImprovementPlan, PerformanceImprovementPlanSchema,
  PerformanceAward, PerformanceAwardSchema
} from './schemas';
 
@Module({
  imports: [
    MongooseModule.forFeature([
      { name: PerformanceCycle.name, schema: PerformanceCycleSchema },
      { name: PerformanceRatingScale.name, schema: PerformanceRatingScaleSchema },
      { name: PerformanceBellCurveDefinition.name, schema: PerformanceBellCurveDefinitionSchema },
      { name: PerformanceConfiguration.name, schema: PerformanceConfigurationSchema },
      { name: PerformanceGoal.name, schema: PerformanceGoalSchema },
      { name: PerformanceGoalTemplate.name, schema: PerformanceGoalTemplateSchema },
      { name: PerformanceObjective.name, schema: PerformanceObjectiveSchema },
      { name: PerformanceKeyResult.name, schema: PerformanceKeyResultSchema },
      { name: PerformanceKpiLibrary.name, schema: PerformanceKpiLibrarySchema },
      { name: PerformanceKpiMeasurement.name, schema: PerformanceKpiMeasurementSchema },
      { name: PerformanceKpiHistorySnapshot.name, schema: PerformanceKpiHistorySnapshotSchema },
      { name: PerformanceReviewTemplate.name, schema: PerformanceReviewTemplateSchema },
      { name: PerformanceReview.name, schema: PerformanceReviewSchema },
      { name: PerformanceCalibrationSession.name, schema: PerformanceCalibrationSessionSchema },
      { name: PerformanceIncrementPolicy.name, schema: PerformanceIncrementPolicySchema },
      { name: PerformanceCompensationRecommendation.name, schema: PerformanceRecommendationModelName() },
      { name: PerformanceCompetencyLibrary.name, schema: PerformanceCompetencyLibrarySchema },
      { name: PerformanceEmployeeSkillMatrix.name, schema: PerformanceEmployeeSkillMatrixSchema },
      { name: PerformanceCareerTrack.name, schema: PerformanceCareerTrackSchema },
      { name: PerformanceTalentMatrix.name, schema: PerformanceTalentMatrixSchema },
      { name: PerformanceSuccessionPlan.name, schema: PerformanceSuccessionPlanSchema },
      { name: PerformanceIndividualDevelopmentPlan.name, schema: PerformanceIndividualDevelopmentPlanSchema },
      { name: PerformanceTrainingRequest.name, schema: PerformanceTrainingRequestSchema },
      { name: PerformanceCertificationTracker.name, schema: PerformanceCertificationTrackerSchema },
      { name: PerformanceImprovementPlan.name, schema: PerformanceImprovementPlanSchema },
      { name: PerformanceAward.name, schema: PerformanceAwardSchema }
    ])
  ],
  controllers: [PerformanceController, MobilePerformanceController],
  providers: [PerformanceService],
  exports: [PerformanceService]
})
export class PerformanceModule {}
 
// Helper to resolve naming reference matching configuration schema token
function PerformanceRecommendationModelName() {
  return PerformanceCompensationRecommendationSchema;
}