mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-22 21:11:14 +00:00
724c88c201
A mechanical prettier --write over server/src, server/tests, server/scripts and shared/src with the workspaces' .prettierrc; nothing but layout and import order changes, and every file keeps the same set of imports. shared is formatted throughout and its format baseline is empty. The server baseline keeps the 35 files that Prettier would grow past their lint:size limit (they need a split first, which is not a formatting change), and the generated entity files stay as their generator writes them.
39 lines
1.6 KiB
TypeScript
39 lines
1.6 KiB
TypeScript
import { Days } from '../../db/entities/Days.entity';
|
|
import { Reservations } from '../../db/entities/Reservations.entity';
|
|
import { AddonsModule } from '../addons/addons.module';
|
|
import { BudgetModule } from '../budget/budget.module';
|
|
import { LlmParseModule } from '../llm-parse/llm-parse.module';
|
|
import { MapsModule } from '../maps/maps.module';
|
|
import { PermissionsModule } from '../permissions/permissions.module';
|
|
import { PlacesModule } from '../places/places.module';
|
|
import { ReservationsModule } from '../reservations/reservations.module';
|
|
import { BookingImportService } from './booking-import.service';
|
|
import { ImportJobsService } from './import-jobs.service';
|
|
import { KitineraryExtractorModule } from './kitinerary-extractor.module';
|
|
import { MikroOrmModule } from '@mikro-orm/nestjs';
|
|
import { Module } from '@nestjs/common';
|
|
|
|
/**
|
|
* `MikroOrmModule.forFeature([Days, Reservations])` (Plan 3h Task 4, BI1/BI2):
|
|
* `BookingImportService.resolveDayId` reaches `DaysRepository.findByTripAndDate`
|
|
* and `ReservationsRepository.findNearestDayId`.
|
|
*/
|
|
@Module({
|
|
imports: [
|
|
KitineraryExtractorModule,
|
|
LlmParseModule,
|
|
ReservationsModule,
|
|
PermissionsModule,
|
|
BudgetModule,
|
|
AddonsModule,
|
|
MapsModule,
|
|
PlacesModule,
|
|
MikroOrmModule.forFeature([Days, Reservations]),
|
|
],
|
|
providers: [BookingImportService, ImportJobsService],
|
|
// The HTTP surface lives in reservation-import/, which shares the prefix with
|
|
// the AirTrail import; these are what it needs.
|
|
exports: [BookingImportService, ImportJobsService],
|
|
})
|
|
export class BookingImportModule {}
|