@bytebrand/export-cars 1.22.11 → 1.22.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -70,14 +70,14 @@ export class GoogleTransformer {
|
|
|
70
70
|
ads_redirect: this.getLink(car),
|
|
71
71
|
link: this.getLink(car),
|
|
72
72
|
link_template: `${this.getLink(car)}?store={store_code}`,
|
|
73
|
-
condition:
|
|
73
|
+
condition: this.mapState(car),
|
|
74
74
|
price: this.getPrice(car),
|
|
75
75
|
// certified_pre-owned: '',
|
|
76
76
|
brand: this.transformService.make(car),
|
|
77
77
|
model: this.transformService.model(car),
|
|
78
78
|
trim: this.getTrim(car),
|
|
79
79
|
year: this.getYear(car),
|
|
80
|
-
mileage: `${this.
|
|
80
|
+
mileage: `${this.transformService.mileage(car)}km`,
|
|
81
81
|
color: this.getColor(car),
|
|
82
82
|
vehicle_option: this.getExtrasField(car),
|
|
83
83
|
body_style: this.mapBodyStyle(car),
|
|
@@ -280,6 +280,10 @@ export class GoogleTransformer {
|
|
|
280
280
|
selector_unknown: 'Other',
|
|
281
281
|
};
|
|
282
282
|
const fuel = get(car, 'consumption.fuel', 'selector_unknown');
|
|
283
|
+
let engine = get(available, fuel)
|
|
284
|
+
if (engine === 'Hybrid' && get(car, 'engineData.hybridPlugin'))
|
|
285
|
+
engine = 'plug-in_hybrid';
|
|
286
|
+
|
|
283
287
|
return get(available, fuel);
|
|
284
288
|
}
|
|
285
289
|
|