import { Module } from '@nestjs/common'; import { DocumentsModule } from '../billing/documents/documents.module'; import { UserTradeAccessModule } from '../user-trade-access/user-trade-access.module'; import { ExportRunnerService } from './export-runner.service'; import { ExportsController } from './exports.controller'; import { TabularExportService } from './tabular-export.service'; /** * Generic table export: a dataset registry describing far more fields than each * list page shows (related-entity detail included), plus the shared tabular * writer (csv / xlsx / pdf) the reports module also writes through. * * `TabularExportService` is exported so ReportsModule can reuse it without * pulling in the dataset machinery. */ @Module({ imports: [DocumentsModule, UserTradeAccessModule], controllers: [ExportsController], providers: [TabularExportService, ExportRunnerService], exports: [TabularExportService], }) export class ExportsModule {}