feat: add typed API modules for all backend domains#27
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughIntroduces four independent frontend API wrapper modules for contracts, expectations, payloads, and tasks. Each module exports a typed object with methods that wrap ChangesFrontend API Wrappers
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Description
Add typed API modules for all four backend domains — contracts, expectations, tasks, and payloads/deviations.
Changes
src/api/contracts.ts— list, getById, create, update, publish, listPublishedsrc/api/expectations.ts— list, listByContract, getById, create, update, activate, deactivatesrc/api/tasks.ts— list (with status filter), getById, create, transitionStatussrc/api/payloads.ts— list by contract, getById, submit, getDeviations, listDeviationsByContractTesting done
npx tsc --noEmitpassesChecklist
Summary by CodeRabbit