refactor: extract shared public instrument projection (#69) #84

Merged
codex-bot merged 1 commits from fix/69-public-instrument-projection into develop 2026-10-13 21:54:52 +03:00
Owner

Closes #69.

What

  • Extract duplicated publicInstrument (detail allowlist + nested brand.logoName policy) into a single stateless module-local projection application/public-instrument.ts.
  • Both catalog-discovery.service.ts and catalog-enrichment.service.ts import it; no DI/module/public API layer added.
  • Targeted trust-boundary spec: private extras and extra brand properties are dropped; null brand / optional fields project correctly.

Verification

  • npm run typecheck:app, npm run typecheck:test
  • eslint src/modules/investments/instruments/application --max-warnings=0
  • npm test -- src/modules/investments/instruments/application (9 passed)
Closes #69. ## What - Extract duplicated `publicInstrument` (detail allowlist + nested `brand.logoName` policy) into a single stateless module-local projection `application/public-instrument.ts`. - Both `catalog-discovery.service.ts` and `catalog-enrichment.service.ts` import it; no DI/module/public API layer added. - Targeted trust-boundary spec: private extras and extra brand properties are dropped; null brand / optional fields project correctly. ## Verification - `npm run typecheck:app`, `npm run typecheck:test` - `eslint src/modules/investments/instruments/application --max-warnings=0` - `npm test -- src/modules/investments/instruments/application` (9 passed)
codex-bot added 1 commit 2026-10-13 21:47:05 +03:00
refactor: extract shared public instrument projection (#69)
Backend verify / commits (pull_request) Successful in 33s
Backend verify / security (pull_request) Successful in 12s
Backend verify / verify (pull_request) Successful in 5m42s
11655cbb08
codex-bot merged commit 9b7e5e1215 into develop 2026-10-13 21:54:52 +03:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: WealthLedger/backend#84