refactor(server): keep the fixes within the size and strict ratchets

The admin settings audit summary moves to auth.helpers, the booking stay check to DayAccommodationsRepository.idOnTrip, the strict typings declare the MCP SDK types module, and the useAdmin test leaves the format baseline.
This commit is contained in:
Maurice
2026-11-23 16:23:21 +01:00
parent 8a9f5367b1
commit 96fa7ca4e8
9 changed files with 41 additions and 29 deletions
+1 -1
View File
@@ -6,7 +6,7 @@
"src/db/repositories/Trips.repository.ts": 1120,
"src/db/repositories/Users.repository.ts": 1421,
"src/nest/atlas/atlas.service.ts": 1166,
"src/nest/auth/auth.service.ts": 1141,
"src/nest/auth/auth.service.ts": 1132,
"src/nest/budget/budget.service.ts": 1607,
"src/nest/collections/collections.service.ts": 1414,
"src/nest/doc-sync/doc-sync.service.ts": 1060,
+3 -2
View File
@@ -1,9 +1,10 @@
// The MCP SDK's client and in-memory transport resolve, through the `paths`
// The MCP SDK's client, in-memory transport and types resolve, through the `paths`
// redirect in tsconfig.json, to its CommonJS build, which ships no type
// definitions next to it, so the build reads them as untyped modules. Only
// the strict ratchet (tsconfig.strict.json) loads this file: it declares the
// two modules untyped there too, so an import of them is not counted as an
// modules untyped there too, so an import of them is not counted as an
// error the build does not have. The build and the tests never see it.
declare module '@modelcontextprotocol/sdk/client/index';
declare module '@modelcontextprotocol/sdk/inMemory';
declare module '@modelcontextprotocol/sdk/types';