refactor: expose upcoming-events public api and guard its boundary (WealthLedger/backend#163) #164

Closed
codex-bot wants to merge 1 commits from refactor/163-upcoming-events-api into develop
Owner

Closes #163

  • Добавлен upcoming-events.api.ts (UpcomingEventsService, EventsErrorCode); openapi.ts и tbank-hourly.scheduler.ts импортируют через него.
  • Правило import-x/no-restricted-paths обобщено списком guardedModules (tbank-sync, upcoming-events). Модуль может импортировать свои internals, но не internals другого guarded module.
  • Probe-проверка: прямые импорты upcoming-events.service и tbank-sync.repository из чужого модуля дают lint error.

Проверки: npm run verify — exit 0 (lint, typecheck, 310/310 тестов, build). DI и HTTP не менялись.

Closes #163 - Добавлен `upcoming-events.api.ts` (`UpcomingEventsService`, `EventsErrorCode`); `openapi.ts` и `tbank-hourly.scheduler.ts` импортируют через него. - Правило `import-x/no-restricted-paths` обобщено списком `guardedModules` (tbank-sync, upcoming-events). Модуль может импортировать свои internals, но не internals другого guarded module. - Probe-проверка: прямые импорты `upcoming-events.service` и `tbank-sync.repository` из чужого модуля дают lint error. Проверки: `npm run verify` — exit 0 (lint, typecheck, 310/310 тестов, build). DI и HTTP не менялись.
codex-bot added 1 commit 2026-11-04 00:39:01 +03:00
refactor: expose upcoming-events public api and guard its boundary (WealthLedger/backend#163)
Backend verify / commits (pull_request) Successful in 1m30s
Backend verify / security (pull_request) Successful in 1m5s
Backend verify / verify (pull_request) Failing after 5m18s
3312082a0a
codex-bot closed this pull request 2026-11-04 23:01:43 +03:00

Pull request closed

This pull request cannot be reopened because the branch was deleted.
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: WealthLedger/backend#164