feat(contracts): todo, settings, collab and file routes declare their response schemas

shared gains the response schemas these routes answer with (rows in their
storage spelling, as the routes have always sent them) plus the common
success and empty answers, all exported for the client to type its calls
with. Every JSON handler in the four controllers carries its
@ResponseContract; the file download, which streams, is marked exempt. The
files e2e fixture table gains the note_id column the real one has.
This commit is contained in:
Maurice
2026-10-10 15:54:15 +02:00
parent 87071bf738
commit 8e01dbb92f
12 changed files with 378 additions and 7 deletions
@@ -15,7 +15,6 @@
"src/nest/backup/backup.controller.ts": 8,
"src/nest/budget/budget.controller.ts": 16,
"src/nest/categories/categories.controller.ts": 4,
"src/nest/collab/collab.controller.ts": 20,
"src/nest/collections/collections.controller.ts": 40,
"src/nest/config/config.controller.ts": 1,
"src/nest/day-notes/day-notes.controller.ts": 4,
@@ -23,8 +22,6 @@
"src/nest/doc-sync/doc-sync-webhook.controller.ts": 1,
"src/nest/doc-sync/doc-sync.controller.ts": 15,
"src/nest/feeds/feeds.controller.ts": 10,
"src/nest/files/files-download.controller.ts": 1,
"src/nest/files/files.controller.ts": 11,
"src/nest/google-quota/google-quota.controller.ts": 2,
"src/nest/health/features.controller.ts": 3,
"src/nest/help/help.controller.ts": 4,
@@ -89,12 +86,10 @@
"src/nest/roadtrip/roadtrip.controller.ts": 7,
"src/nest/route-usage/route-usage.controller.ts": 3,
"src/nest/school-holidays/school-holidays.controller.ts": 8,
"src/nest/settings/settings.controller.ts": 5,
"src/nest/share/share.controller.ts": 5,
"src/nest/storage/storage-admin.controller.ts": 8,
"src/nest/system-notices/system-notices.controller.ts": 2,
"src/nest/tags/tags.controller.ts": 4,
"src/nest/todo/todo.controller.ts": 7,
"src/nest/tours/tours-import.controller.ts": 1,
"src/nest/tours/tours.controller.ts": 4,
"src/nest/transit/transit.controller.ts": 2,