refactor(admin): the admin routes other domains serve keep their DTOs in those domains

NotificationsController, SettingsController, OidcController and the packing
template controller each imported their body DTO from admin/admin.dto.ts,
and AdminController imported the same four without using them. Those
imports tied the notifications, settings, packing and oidc domains to the
admin domain and through it to everything admin depends on. The classes
move unchanged (same names, same @trek/shared schemas) into each domain's
own dto file.
This commit is contained in:
Maurice
2026-10-10 12:20:13 +02:00
parent e40bc71e9f
commit 01fd4e3739
11 changed files with 27 additions and 65 deletions
@@ -6,38 +6,16 @@
"accommodations -> places",
"accommodations -> realtime",
"addons -> memories",
"addons -> settings",
"addons -> transit",
"admin -> addons",
"admin -> auth",
"admin -> booking-import",
"admin -> llm-parse",
"admin -> memories",
"admin -> notifications",
"admin -> oauth",
"admin -> packing",
"admin -> plugins",
"admin -> realtime",
"admin -> settings",
"assignments -> days",
"assignments -> journey",
"assignments -> mcp-shared",
"assignments -> realtime",
"atlas -> addons",
"atlas -> geo",
"auth -> budget",
"auth -> files",
"auth -> maps",
"auth -> notifications",
"auth -> plugins",
"auth -> settings",
"booking-import -> addons",
"booking-import -> budget",
"booking-import -> llm-parse",
"booking-import -> maps",
"booking-import -> places",
"booking-import -> realtime",
"booking-import -> reservations",
"budget -> addons",
"budget -> mcp-shared",
"budget -> realtime",
@@ -74,25 +52,18 @@
"journey -> addons",
"journey -> atlas",
"journey -> files",
"journey -> maps",
"journey -> memories",
"journey -> photos",
"journey -> realtime",
"journey -> settings",
"llm-parse -> addons",
"llm-parse -> settings",
"maps -> geo",
"maps -> settings",
"mcp-shared -> realtime",
"memories -> addons",
"memories -> notifications",
"memories -> photos",
"memories -> realtime",
"notifications -> admin",
"notifications -> realtime",
"oauth -> addons",
"packing -> addons",
"packing -> admin",
"packing -> mcp-shared",
"packing -> notifications",
"packing -> realtime",
@@ -101,10 +72,8 @@
"places -> assignments",
"places -> atlas",
"places -> journey",
"places -> maps",
"places -> mcp-shared",
"places -> realtime",
"places -> unsplash",
"plugins -> accommodations",
"plugins -> addons",
"plugins -> assignments",
@@ -118,7 +87,6 @@
"plugins -> files",
"plugins -> journey",
"plugins -> llm-parse",
"plugins -> maps",
"plugins -> notifications",
"plugins -> packing",
"plugins -> places",
@@ -137,15 +105,12 @@
"reservations -> mcp-shared",
"reservations -> notifications",
"reservations -> realtime",
"settings -> admin",
"todo -> addons",
"todo -> mcp-shared",
"todo -> realtime",
"transit -> days",
"transit -> maps",
"transit -> mcp-shared",
"transit -> reservations",
"transit -> settings",
"trip-members -> auth",
"trip-members -> budget",
"trip-members -> notifications",
@@ -174,13 +139,10 @@
"trips -> places",
"trips -> realtime",
"trips -> reservations",
"trips -> settings",
"trips -> todo",
"trips -> trip-members",
"trips -> trip-read-model",
"trips -> unsplash",
"trips -> vacay",
"unsplash -> settings",
"vacay -> addons",
"vacay -> auth",
"vacay -> notifications",
@@ -228,9 +190,6 @@
"journey -> storage/storage-upload.factory.ts",
"maps -> geo/nominatim.client.ts",
"maps -> settings/instance-api-keys.ts",
"notifications -> admin/admin.dto.ts",
"oidc -> admin/admin.dto.ts",
"packing -> admin/admin.dto.ts",
"place-enrichment -> maps/maps.helpers.ts",
"place-enrichment -> maps/trek-places.client.ts",
"places -> atlas/atlas-geo.ts",
@@ -251,7 +210,6 @@
"roadtrip -> plugins/contributions/plugin-route-normalize.ts",
"roadtrip -> plugins/contributions/plugin-search.helpers.ts",
"roadtrip -> plugins/kill-switch.ts",
"settings -> admin/admin.dto.ts",
"transit -> maps/maps.helpers.ts",
"transit -> settings/instance-api-keys.ts",
"trip-members -> trips/trips.dto.ts",