diff --git a/packages/network/src/api/inspection/mappers.ts b/packages/network/src/api/inspection/mappers.ts index 252fc93e8..ab8bd57b7 100644 --- a/packages/network/src/api/inspection/mappers.ts +++ b/packages/network/src/api/inspection/mappers.ts @@ -304,6 +304,7 @@ function mapVehicle(response: ApiInspectionGet): Vehicle | undefined { entityType: MonkEntityType.VEHICLE, brand: response.vehicle.brand, model: response.vehicle.model, + serie: response.vehicle.serie, plate: response.vehicle.plate, type: response.vehicle.vehicle_type, mileageUnit: response.vehicle.mileage_unit as MileageUnit | undefined, @@ -501,6 +502,7 @@ export function mapApiInspectionPost(options: CreateInspectionOptions): ApiInspe ? { brand: options.vehicle.brand, model: options.vehicle.model, + serie: options.vehicle.serie, plate: options.vehicle.plate, vehicle_type: options.vehicle.type, mileage: diff --git a/packages/network/src/api/models/vehicle.ts b/packages/network/src/api/models/vehicle.ts index 95ca3093f..825685565 100644 --- a/packages/network/src/api/models/vehicle.ts +++ b/packages/network/src/api/models/vehicle.ts @@ -23,6 +23,7 @@ export interface ApiVehicleComponent { mileage_unit?: ApiMileageUnit; mileage_value?: number; model?: string; + serie?: string; owner_info?: ApiOwnerInfo; plate?: string; trade_in_offer?: number; diff --git a/packages/network/test/api/inspection/data/apiInspectionPost.data.json b/packages/network/test/api/inspection/data/apiInspectionPost.data.json index 1b4429cd5..ac441f45b 100644 --- a/packages/network/test/api/inspection/data/apiInspectionPost.data.json +++ b/packages/network/test/api/inspection/data/apiInspectionPost.data.json @@ -19,6 +19,7 @@ "vehicle": { "brand": "brand", "model": "model", + "serie": "serie", "plate": "plate", "vehicle_type": "hatchback", "mileage": { diff --git a/packages/network/test/api/inspection/data/apiInspectionPost.data.ts b/packages/network/test/api/inspection/data/apiInspectionPost.data.ts index 7121cf2e9..2982a306d 100644 --- a/packages/network/test/api/inspection/data/apiInspectionPost.data.ts +++ b/packages/network/test/api/inspection/data/apiInspectionPost.data.ts @@ -14,6 +14,7 @@ export default { vehicle: { brand: 'brand', model: 'model', + serie: 'serie', plate: 'plate', type: 'hatchback', mileageUnit: 'mileageUnit', diff --git a/packages/types/src/state/vehicle.ts b/packages/types/src/state/vehicle.ts index 9cf26df15..2804dff8e 100644 --- a/packages/types/src/state/vehicle.ts +++ b/packages/types/src/state/vehicle.ts @@ -29,6 +29,10 @@ export interface Vehicle extends MonkEntity { * The model of the vehicle. */ model?: string; + /** + * The serie / trim of the vehicle. + */ + serie?: string; /** * The license plate number of the vehicle. */