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 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 | import { Module } from '@nestjs/common'; import { MongooseModule } from '@nestjs/mongoose'; // ── Organization schemas ──────────────────────────────────────────────────── import { Branch, BranchSchema } from './organization/schemas/branch.schema'; import { Department, DepartmentSchema, } from './organization/schemas/department.schema'; import { Designation, DesignationSchema, } from './organization/schemas/designation.schema'; import { Team, TeamSchema, TeamMembership, TeamMembershipSchema, } from './organization/schemas/team.schema'; import { CostCenter, CostCenterSchema, } from './organization/schemas/cost-center.schema'; import { WorkLocation, WorkLocationSchema, } from './organization/schemas/work-location.schema'; // ── Employee schemas ──────────────────────────────────────────────────────── import { Employee, EmployeeSchema } from './employee/schemas/employee.schema'; import { EmployeeBankAccount, EmployeeBankAccountSchema, EmployeeStatutoryProfile, EmployeeStatutoryProfileSchema, } from './employee/schemas/employee-bank.schema'; import { EmployeeEmergencyContact, EmployeeEmergencyContactSchema, EmployeeDependent, EmployeeDependentSchema, } from './employee/schemas/employee-family.schema'; import { EmployeeSkill, EmployeeSkillSchema, EmployeeEducation, EmployeeEducationSchema, EmployeeExperience, EmployeeExperienceSchema, } from './employee/schemas/employee-skills.schema'; import { EmployeeEmploymentHistory, EmployeeEmploymentHistorySchema, EmployeeStatusHistory, EmployeeStatusHistorySchema, } from './employee/schemas/employee-history.schema'; // ── Numbering schemas ─────────────────────────────────────────────────────── import { EmployeeNumberingRule, EmployeeNumberingRuleSchema, EmployeeNumberSequence, EmployeeNumberSequenceSchema, } from './numbering/schemas/numbering.schema'; // ── Document schemas ──────────────────────────────────────────────────────── import { EmployeeDocumentType, EmployeeDocumentTypeSchema, EmployeeDocumentLink, EmployeeDocumentLinkSchema, } from './documents/schemas/document.schema'; // ── Import/Export schemas ─────────────────────────────────────────────────── import { EmployeeImportJob, EmployeeImportJobSchema, EmployeeImportRow, EmployeeImportRowSchema, EmployeeExportJob, EmployeeExportJobSchema, } from './import-export/schemas/import-export.schema'; // ── Services ──────────────────────────────────────────────────────────────── import { BranchService } from './organization/branch.service'; import { DepartmentService } from './organization/department.service'; import { DesignationService } from './organization/designation.service'; import { TeamService } from './organization/team.service'; import { CostCenterService } from './organization/cost-center.service'; import { WorkLocationService } from './organization/work-location.service'; import { EmployeeService } from './employee/employee.service'; import { EmployeeNumberingService } from './numbering/numbering.service'; import { HierarchyService } from './hierarchy/hierarchy.service'; import { HrDashboardService } from './dashboard/dashboard.service'; import { EmployeeDocumentService } from './documents/document.service'; import { ImportExportService } from './import-export/import-export.service'; // ── Controllers ───────────────────────────────────────────────────────────── import { BranchController } from './organization/branch.controller'; import { DepartmentController } from './organization/department.controller'; import { DesignationController } from './organization/designation.controller'; import { TeamController } from './organization/team.controller'; import { CostCenterController } from './organization/cost-center.controller'; import { WorkLocationController } from './organization/work-location.controller'; import { EmployeeController } from './employee/employee.controller'; import { NumberingController } from './numbering/numbering.controller'; import { HierarchyController } from './hierarchy/hierarchy.controller'; import { HrDashboardController } from './dashboard/dashboard.controller'; import { EmployeeDocumentController } from './documents/document.controller'; import { ImportExportController } from './import-export/import-export.controller'; // ── Platform modules needed ───────────────────────────────────────────────── import { AuditLogModule } from '../../platform/audit/audit-log.module'; import { EventBusModule } from '../../platform/events/event-bus.module'; @Module({ imports: [ AuditLogModule, EventBusModule, MongooseModule.forFeature([ // Organization { name: Branch.name, schema: BranchSchema }, { name: Department.name, schema: DepartmentSchema }, { name: Designation.name, schema: DesignationSchema }, { name: Team.name, schema: TeamSchema }, { name: TeamMembership.name, schema: TeamMembershipSchema }, { name: CostCenter.name, schema: CostCenterSchema }, { name: WorkLocation.name, schema: WorkLocationSchema }, // Employee { name: Employee.name, schema: EmployeeSchema }, { name: EmployeeBankAccount.name, schema: EmployeeBankAccountSchema }, { name: EmployeeStatutoryProfile.name, schema: EmployeeStatutoryProfileSchema, }, { name: EmployeeEmergencyContact.name, schema: EmployeeEmergencyContactSchema, }, { name: EmployeeDependent.name, schema: EmployeeDependentSchema }, { name: EmployeeSkill.name, schema: EmployeeSkillSchema }, { name: EmployeeEducation.name, schema: EmployeeEducationSchema }, { name: EmployeeExperience.name, schema: EmployeeExperienceSchema }, { name: EmployeeEmploymentHistory.name, schema: EmployeeEmploymentHistorySchema, }, { name: EmployeeStatusHistory.name, schema: EmployeeStatusHistorySchema }, // Numbering { name: EmployeeNumberingRule.name, schema: EmployeeNumberingRuleSchema }, { name: EmployeeNumberSequence.name, schema: EmployeeNumberSequenceSchema, }, // Documents { name: EmployeeDocumentType.name, schema: EmployeeDocumentTypeSchema }, { name: EmployeeDocumentLink.name, schema: EmployeeDocumentLinkSchema }, // Import/Export { name: EmployeeImportJob.name, schema: EmployeeImportJobSchema }, { name: EmployeeImportRow.name, schema: EmployeeImportRowSchema }, { name: EmployeeExportJob.name, schema: EmployeeExportJobSchema }, ]), ], providers: [ BranchService, DepartmentService, DesignationService, TeamService, CostCenterService, WorkLocationService, EmployeeService, EmployeeNumberingService, HierarchyService, HrDashboardService, EmployeeDocumentService, ImportExportService, ], controllers: [ BranchController, DepartmentController, DesignationController, TeamController, CostCenterController, WorkLocationController, EmployeeController, NumberingController, HierarchyController, HrDashboardController, EmployeeDocumentController, ImportExportController, ], exports: [ BranchService, DepartmentService, DesignationService, TeamService, CostCenterService, WorkLocationService, EmployeeService, EmployeeNumberingService, HierarchyService, EmployeeDocumentService, ], }) export class HrModule {} |