feat: Add backend OCR client method and types for VIN decode (#223) #225

Closed
opened 2026-02-19 03:19:29 +00:00 by egullickson · 0 comments
Owner

Relates to #223

Scope

Add the TypeScript types and OcrClient method needed for the backend to call the new OCR VIN decode endpoint.

Changes

  • Add VinDecodeResponse type to backend/src/features/ocr/domain/ocr.types.ts
  • Add decodeVin(vin: string) method to OcrClient in backend/src/features/ocr/external/ocr-client.ts
  • Rename nhtsaValue to sourceValue in MatchedField<T> type (backend nhtsa.types.ts -> new location in vehicles types)
  • Rename DecodedVehicleData comment references from NHTSA to Gemini

Acceptance Criteria

  • OcrClient.decodeVin() calls POST /decode/vin on OCR service
  • VinDecodeResponse type matches OCR service response shape
  • nhtsaValue renamed to sourceValue in MatchedField<T>
Relates to #223 ## Scope Add the TypeScript types and OcrClient method needed for the backend to call the new OCR VIN decode endpoint. ### Changes - Add `VinDecodeResponse` type to `backend/src/features/ocr/domain/ocr.types.ts` - Add `decodeVin(vin: string)` method to `OcrClient` in `backend/src/features/ocr/external/ocr-client.ts` - Rename `nhtsaValue` to `sourceValue` in `MatchedField<T>` type (backend `nhtsa.types.ts` -> new location in vehicles types) - Rename `DecodedVehicleData` comment references from NHTSA to Gemini ### Acceptance Criteria - [ ] `OcrClient.decodeVin()` calls `POST /decode/vin` on OCR service - [ ] `VinDecodeResponse` type matches OCR service response shape - [ ] `nhtsaValue` renamed to `sourceValue` in `MatchedField<T>`
egullickson added the
status
backlog
type
feature
labels 2026-02-19 03:20:03 +00:00
egullickson added
status
done
and removed
status
backlog
labels 2026-02-20 15:04:17 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: egullickson/motovaultpro#225