@bytebrand/export-cars 1.21.57 → 1.21.59
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
|
@@ -181,9 +181,9 @@ export class GoogleTransformer {
|
|
|
181
181
|
|
|
182
182
|
private mapState(car: DataSchemes.Car): string {
|
|
183
183
|
const available = {
|
|
184
|
-
selector_condition_new: '
|
|
185
|
-
selector_condition_used: '
|
|
186
|
-
selector_unknown: '
|
|
184
|
+
selector_condition_new: 'New',
|
|
185
|
+
selector_condition_used: 'Used',
|
|
186
|
+
selector_unknown: 'Used',
|
|
187
187
|
};
|
|
188
188
|
const condition = get(car, 'mainData.condition', 'selector_unknown');
|
|
189
189
|
return get(available, condition);
|
|
@@ -215,7 +215,7 @@ export class GoogleTransformer {
|
|
|
215
215
|
};
|
|
216
216
|
const energyClass = get(car, 'environmentEmissions.energyEfficiencyClass', 'selector_unknown');
|
|
217
217
|
const value = get(available, energyClass);
|
|
218
|
-
return value.replace(
|
|
218
|
+
return value.replace(/\+/g, '');
|
|
219
219
|
}
|
|
220
220
|
|
|
221
221
|
private getInstallment(car: DataSchemes.Car) {
|