mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-08 11:18:17 +00:00
27 lines
1.1 KiB
TypeScript
27 lines
1.1 KiB
TypeScript
import { Module } from "@nestjs/common";
|
|
import { TypeOrmModule } from "@nestjs/typeorm";
|
|
|
|
import { User } from "@tria-plc/iamapi-common/entities/iam/user/user.entity";
|
|
|
|
import { FreightAuthModule } from "../auth/freight-auth.module";
|
|
import { OtpModule } from "../otp/otp.module";
|
|
import { TransitAgent } from "./entities/transit-agent.entity";
|
|
import { TransitAgentsController } from "./transit-agents.controller";
|
|
import { TransitAgentsRepository } from "./transit-agents.repository";
|
|
import { TransitAgentsService } from "./transit-agents.service";
|
|
|
|
@Module({
|
|
imports: [
|
|
// `User` is registered here so this module can create the IAM account that
|
|
// backs an invited transit agent, in the same transaction as the agent row.
|
|
TypeOrmModule.forFeature([TransitAgent, User]),
|
|
// CustomerResetService — activation links reuse the staff-triggered reset path.
|
|
FreightAuthModule,
|
|
OtpModule,
|
|
],
|
|
controllers: [TransitAgentsController],
|
|
providers: [TransitAgentsRepository, TransitAgentsService],
|
|
exports: [TransitAgentsRepository, TransitAgentsService],
|
|
})
|
|
export class TransitAgentsModule {}
|