feat(core-api): compose dsrRouter + consentRouter into appRouter

Add @repo/core-dsr and @repo/core-consent as dependencies and wire
dsrRouter + consentRouter into appRouter via the existing router
composition pattern. Integration tests cover all eight procedures
(dsr.export, dsr.delete, dsr.rectify, dsr.restrict, consent.grant,
consent.withdraw, consent.isGranted, consent.getCategories) with auth
and response-shape assertions.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-19 20:49:20 +00:00
parent b2bfb5bfce
commit 759fd4cbb1
5 changed files with 412 additions and 7 deletions

9
pnpm-lock.yaml generated
View File

@@ -463,6 +463,12 @@ importers:
"@repo/blog":
specifier: workspace:*
version: link:../blog
"@repo/core-consent":
specifier: workspace:*
version: link:../core-consent
"@repo/core-dsr":
specifier: workspace:*
version: link:../core-dsr
"@repo/core-shared":
specifier: workspace:*
version: link:../core-shared
@@ -491,6 +497,9 @@ importers:
"@types/node":
specifier: ^22.0.0
version: 22.19.17
"@vitest/coverage-v8":
specifier: ^3.0.0
version: 3.2.4(vitest@3.2.4(@types/debug@4.1.13)(@types/node@22.19.17)(happy-dom@20.8.9)(jiti@2.6.1)(jsdom@25.0.1)(lightningcss@1.32.0)(sass@1.99.0)(terser@5.46.2)(tsx@4.21.0)(yaml@2.9.0))
vitest:
specifier: ^3.0.0
version: 3.2.4(@types/debug@4.1.13)(@types/node@22.19.17)(happy-dom@20.8.9)(jiti@2.6.1)(jsdom@25.0.1)(lightningcss@1.32.0)(sass@1.99.0)(terser@5.46.2)(tsx@4.21.0)(yaml@2.9.0)