@bytebrand/export-cars 1.26.20 → 1.26.21
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
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@bytebrand/export-cars",
|
|
3
|
-
"version": "1.26.
|
|
4
|
-
"description": "",
|
|
5
|
-
"author": "bytebrand",
|
|
6
|
-
"license": "UNLICENSED",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"prebuild": "rimraf dist",
|
|
9
|
-
"build": "nest build",
|
|
10
|
-
"prepublishOnly": "npm run build",
|
|
11
|
-
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
12
|
-
"lint": "eslint -c .eslintrc.js --ext .ts src/",
|
|
13
|
-
"start:dev": "nest start --watch"
|
|
14
|
-
},
|
|
15
|
-
"dependencies": {
|
|
16
|
-
"@bytebrand/autode-request": "^1.19.2",
|
|
17
|
-
"@bytebrand/car-basic-data-scope": "^9.11.24",
|
|
18
|
-
"@bytebrand/car-description": "^1.17.20",
|
|
19
|
-
"@bytebrand/car-schema": "^3.14.15",
|
|
20
|
-
"@bytebrand/chunkable": "^5.19.8",
|
|
21
|
-
"@bytebrand/cronicle-helper": "^1.21.8",
|
|
22
|
-
"@bytebrand/fe-financing": "^5.14.19",
|
|
23
|
-
"@bytebrand/i18n-dictionaries": "^1.5.0",
|
|
24
|
-
"@bytebrand/import-helper": "^0.45.0",
|
|
25
|
-
"@bytebrand/schema-tools": "^3.18.8",
|
|
26
|
-
"@bytebrand/zipper": "^2.2.0",
|
|
27
|
-
"@nestjs/cache-manager": "^2.1.0",
|
|
28
|
-
"@nestjs/common": "^10.2.7",
|
|
29
|
-
"@nestjs/core": "^10.2.7",
|
|
30
|
-
"axios": "^1.5.1",
|
|
31
|
-
"bottleneck": "^2.19.5",
|
|
32
|
-
"cache-manager": "^5.2.4",
|
|
33
|
-
"csv-write-stream": "^2.0.0",
|
|
34
|
-
"google-spreadsheet": "^3.3.0",
|
|
35
|
-
"lodash": "^4.17.21",
|
|
36
|
-
"moment": "^2.29.4",
|
|
37
|
-
"nest-commander": "~3.15.0",
|
|
38
|
-
"reflect-metadata": "^0.1.13",
|
|
39
|
-
"vin-generator": "^1.0.1"
|
|
40
|
-
},
|
|
41
|
-
"devDependencies": {
|
|
42
|
-
"@nestjs/cli": "^10.1.18",
|
|
43
|
-
"@types/google-spreadsheet": "^3.3.0",
|
|
44
|
-
"@types/inquirer": "^8.2.4",
|
|
45
|
-
"@types/lodash": "^4.14.186",
|
|
46
|
-
"@types/node": "^16.18.58",
|
|
47
|
-
"@typescript-eslint/eslint-plugin": "^6.8.0",
|
|
48
|
-
"@typescript-eslint/parser": "^6.8.0",
|
|
49
|
-
"eslint": "^8.0.1",
|
|
50
|
-
"eslint-config-prettier": "^8.3.0",
|
|
51
|
-
"eslint-plugin-prettier": "^4.0.0",
|
|
52
|
-
"gts": "^3.1.1",
|
|
53
|
-
"prettier": "^2.3.2",
|
|
54
|
-
"ts-node": "^10.0.0",
|
|
55
|
-
"tsconfig-paths": "4.1.0",
|
|
56
|
-
"typescript": "^5.2.2"
|
|
57
|
-
},
|
|
58
|
-
"engines": {
|
|
59
|
-
"node": ">=14.0.0"
|
|
60
|
-
},
|
|
61
|
-
"gitHead": "e827f35865032821bf3a081f03a026d3d3f8a540"
|
|
62
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@bytebrand/export-cars",
|
|
3
|
+
"version": "1.26.21",
|
|
4
|
+
"description": "",
|
|
5
|
+
"author": "bytebrand",
|
|
6
|
+
"license": "UNLICENSED",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"prebuild": "rimraf dist",
|
|
9
|
+
"build": "nest build",
|
|
10
|
+
"prepublishOnly": "npm run build",
|
|
11
|
+
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
12
|
+
"lint": "eslint -c .eslintrc.js --ext .ts src/",
|
|
13
|
+
"start:dev": "nest start --watch"
|
|
14
|
+
},
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"@bytebrand/autode-request": "^1.19.2",
|
|
17
|
+
"@bytebrand/car-basic-data-scope": "^9.11.24",
|
|
18
|
+
"@bytebrand/car-description": "^1.17.20",
|
|
19
|
+
"@bytebrand/car-schema": "^3.14.15",
|
|
20
|
+
"@bytebrand/chunkable": "^5.19.8",
|
|
21
|
+
"@bytebrand/cronicle-helper": "^1.21.8",
|
|
22
|
+
"@bytebrand/fe-financing": "^5.14.19",
|
|
23
|
+
"@bytebrand/i18n-dictionaries": "^1.5.0",
|
|
24
|
+
"@bytebrand/import-helper": "^0.45.0",
|
|
25
|
+
"@bytebrand/schema-tools": "^3.18.8",
|
|
26
|
+
"@bytebrand/zipper": "^2.2.0",
|
|
27
|
+
"@nestjs/cache-manager": "^2.1.0",
|
|
28
|
+
"@nestjs/common": "^10.2.7",
|
|
29
|
+
"@nestjs/core": "^10.2.7",
|
|
30
|
+
"axios": "^1.5.1",
|
|
31
|
+
"bottleneck": "^2.19.5",
|
|
32
|
+
"cache-manager": "^5.2.4",
|
|
33
|
+
"csv-write-stream": "^2.0.0",
|
|
34
|
+
"google-spreadsheet": "^3.3.0",
|
|
35
|
+
"lodash": "^4.17.21",
|
|
36
|
+
"moment": "^2.29.4",
|
|
37
|
+
"nest-commander": "~3.15.0",
|
|
38
|
+
"reflect-metadata": "^0.1.13",
|
|
39
|
+
"vin-generator": "^1.0.1"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@nestjs/cli": "^10.1.18",
|
|
43
|
+
"@types/google-spreadsheet": "^3.3.0",
|
|
44
|
+
"@types/inquirer": "^8.2.4",
|
|
45
|
+
"@types/lodash": "^4.14.186",
|
|
46
|
+
"@types/node": "^16.18.58",
|
|
47
|
+
"@typescript-eslint/eslint-plugin": "^6.8.0",
|
|
48
|
+
"@typescript-eslint/parser": "^6.8.0",
|
|
49
|
+
"eslint": "^8.0.1",
|
|
50
|
+
"eslint-config-prettier": "^8.3.0",
|
|
51
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
52
|
+
"gts": "^3.1.1",
|
|
53
|
+
"prettier": "^2.3.2",
|
|
54
|
+
"ts-node": "^10.0.0",
|
|
55
|
+
"tsconfig-paths": "4.1.0",
|
|
56
|
+
"typescript": "^5.2.2"
|
|
57
|
+
},
|
|
58
|
+
"engines": {
|
|
59
|
+
"node": ">=14.0.0"
|
|
60
|
+
},
|
|
61
|
+
"gitHead": "e827f35865032821bf3a081f03a026d3d3f8a540"
|
|
62
|
+
}
|
|
@@ -413,6 +413,9 @@ export class FbTransformer {
|
|
|
413
413
|
return get(car, 'state.isOnline', false) ? 'available' : 'not_available';
|
|
414
414
|
}
|
|
415
415
|
|
|
416
|
+
// ADV-187: no fabricated class for an unknown value — the field previously
|
|
417
|
+
// defaulted every unresolved car to 'G' (worst class), which is a
|
|
418
|
+
// false/misleading statement, not a "no data" state. Empty string here.
|
|
416
419
|
private getEnergyEfficiencyClass(car: DataSchemes.Car): string {
|
|
417
420
|
const available = {
|
|
418
421
|
selector_energyEfficiencyClass_appp: 'A+',
|
|
@@ -425,10 +428,10 @@ export class FbTransformer {
|
|
|
425
428
|
selector_energyEfficiencyClass_e: 'E',
|
|
426
429
|
selector_energyEfficiencyClass_f: 'F',
|
|
427
430
|
selector_energyEfficiencyClass_g: 'G',
|
|
428
|
-
selector_unknown: '
|
|
431
|
+
selector_unknown: '',
|
|
429
432
|
};
|
|
430
433
|
const energyClass = get(car, 'environmentEmissions.wltpEnergyEfficiencyClass', 'selector_unknown');
|
|
431
|
-
return get(available, energyClass);
|
|
434
|
+
return get(available, energyClass, '');
|
|
432
435
|
}
|
|
433
436
|
|
|
434
437
|
private getMileage(car: DataSchemes.Car): number {
|