fix(api,ci): remove type-only imports for DI and isolate CI ports from dev

- Remove `type` keyword from NestJS injectable class imports across all
  modules to fix runtime DI resolution (330+ handler/listener files)
- Offset CI docker-compose ports (5433/6380/8109/9002) to avoid
  conflicts with running dev containers
- Update .env.test, playwright.config.ts, and e2e workflow to use
  isolated CI ports with configurable overrides
- Fix prisma/seed.ts to use deterministic IDs for Prisma 7 upsert
  compatibility (phoneHash replaced phone as unique index)
- Add dedicated Docker bridge network for CI service containers

Co-Authored-By: Claude Opus 4 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ho Ngoc Hai
2026-04-13 01:40:14 +07:00
parent 1617921993
commit 25420720e7
345 changed files with 3266 additions and 924 deletions

View File

@@ -1,12 +1,12 @@
export { PaymentsModule } from './payments.module';
// Repositories
export { ESCROW_REPOSITORY, type IEscrowRepository } from './domain/repositories/escrow.repository';
export { ORDER_REPOSITORY, type IOrderRepository } from './domain/repositories/order.repository';
export { PAYMENT_REPOSITORY, type IPaymentRepository } from './domain/repositories/payment.repository';
export { ESCROW_REPOSITORY, IEscrowRepository } from './domain/repositories/escrow.repository';
export { ORDER_REPOSITORY, IOrderRepository } from './domain/repositories/order.repository';
export { PAYMENT_REPOSITORY, IPaymentRepository } from './domain/repositories/payment.repository';
// Gateway
export { PAYMENT_GATEWAY_FACTORY, type IPaymentGatewayFactory } from './infrastructure/services/payment-gateway.interface';
export { PAYMENT_GATEWAY_FACTORY, IPaymentGatewayFactory } from './infrastructure/services/payment-gateway.interface';
// Domain Events — Payment
export { PaymentCompletedEvent } from './domain/events/payment-completed.event';