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>`
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Relates to #223
Scope
Add the TypeScript types and OcrClient method needed for the backend to call the new OCR VIN decode endpoint.
Changes
VinDecodeResponsetype tobackend/src/features/ocr/domain/ocr.types.tsdecodeVin(vin: string)method toOcrClientinbackend/src/features/ocr/external/ocr-client.tsnhtsaValuetosourceValueinMatchedField<T>type (backendnhtsa.types.ts-> new location in vehicles types)DecodedVehicleDatacomment references from NHTSA to GeminiAcceptance Criteria
OcrClient.decodeVin()callsPOST /decode/vinon OCR serviceVinDecodeResponsetype matches OCR service response shapenhtsaValuerenamed tosourceValueinMatchedField<T>