[PM-39979] Add full API support for Item-type Sends - #8192
Conversation
🤖 Bitwarden Claude Code ReviewOverall Assessment: REQUEST CHANGES Reviewed the full API support for Item-type Sends: the structured Code Review Details
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #8192 +/- ##
==========================================
+ Coverage 63.04% 63.27% +0.23%
==========================================
Files 2315 2385 +70
Lines 100510 103978 +3468
Branches 9043 9418 +375
==========================================
+ Hits 63364 65792 +2428
- Misses 34957 35932 +975
- Partials 2189 2254 +65 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
| if (send.Type != model.Type) | ||
| { | ||
| throw new BadRequestException("Cannot change a Send's type"); | ||
| } |
There was a problem hiding this comment.
This was already enforced by the UI and CLI, and enforcing it here allows the UpdateSend logic in SendRequestModel.cs to work
Updates the API bindings to `fc5ea9ab05bf7a1679163fc13ec351ff96363000` The main purpose of this update is to accommodate for the server changes introduced in [this PR](bitwarden/server#8192), but there were a couple changes that had to happen for the SDK to build, hence why @bitwarden/team-key-management-dev got pulled in. The associated clients PR is [this one](bitwarden/clients#22159), tested against a local SDK build on this branch. --------- Co-authored-by: bw-ghapp[bot] <178206702+bw-ghapp[bot]@users.noreply.github.com> Co-authored-by: Mike Amirault <mamirault@bitwarden.com>
🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-39979
📔 Objective
This PR adds the full backend logic necessary to create and edit Item-type Sends.