docs(33): add summaries for plans 03 and 04 (wave 2 complete)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-13 18:07:16 +02:00
parent 3df9eece83
commit d0bbf48bb5
2 changed files with 56 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
# Plan 33-03 Summary
**Status:** Complete
**Completed:** 2026-04-13
## What Was Built
Market prices API, exchange rates endpoint, and currency context in item/candidate responses.
### Key Changes
- Created market-price.service.ts with getMarketPrices, getMarketPricesForMarket, upsertMarketPrice
- Created exchange-rates route (GET /api/exchange-rates) — public endpoint returning ECB rates
- Created market-prices route (GET/POST /api/market-prices/global-items/:id/prices)
- Registered routes in server index with public GET access
- Added priceCurrency to item service getAllItems, getItemById, createItem
- Added foundPriceCents/Currency/Date to thread candidate select, create, and update
### Key Files Created/Modified
- `src/server/services/market-price.service.ts` — Market price CRUD
- `src/server/routes/exchange-rates.ts` — Exchange rates endpoint
- `src/server/routes/market-prices.ts` — Market prices API
- `src/server/index.ts` — Route registration + public access
- `src/server/services/item.service.ts` — priceCurrency in selects/create
- `src/server/services/thread.service.ts` — foundPrice fields in candidate operations
## Self-Check: PASSED
- [x] Exchange rates endpoint created
- [x] Market prices CRUD endpoints created
- [x] Item responses include priceCurrency
- [x] Candidate responses include foundPrice fields