feat: Add backend OCR client method and types for VIN decode (#223) #225
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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>