@bytebrand/export-cars 1.26.14 → 1.26.16
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/dist/transformers/facebook-shop.transformer.js +2 -2
- package/dist/transformers/facebook-shop.transformer.js.map +1 -1
- package/dist/transformers/fb.transformer.js +1 -1
- package/dist/transformers/fb.transformer.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +62 -62
- package/src/transformers/facebook-shop.transformer.ts +6 -2
- package/src/transformers/fb.transformer.ts +2 -1
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.16",
|
|
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
|
+
}
|
|
@@ -68,7 +68,8 @@ export class FacebookShopTransformer {
|
|
|
68
68
|
return [];
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
|
|
71
|
+
// ADV-200: AIA/AMA now wants the long auto.de ID (VDP URL id), not the short metaData.vehicleId code
|
|
72
|
+
const vehicleId = toString(car._id);
|
|
72
73
|
const make = toString(get(car, 'mainData.make', ''));
|
|
73
74
|
const model = toString(get(car, 'mainData.model', ''));
|
|
74
75
|
const price = this.getPriceValue(car);
|
|
@@ -97,7 +98,10 @@ export class FacebookShopTransformer {
|
|
|
97
98
|
|
|
98
99
|
return offers.map((offer): FacebookShopItem => ({
|
|
99
100
|
...base,
|
|
100
|
-
|
|
101
|
+
// Plain long auto.de ID � the `_${offerType}` suffix (ADV-160, one item per offer) broke
|
|
102
|
+
// matching once only the financing offer is exported; re-add a suffix ONLY if multiple
|
|
103
|
+
// offer types per vehicle are ever exported again.
|
|
104
|
+
vehicle_offer_id: vehicleId,
|
|
101
105
|
title: offer.title,
|
|
102
106
|
offer_description: offer.description,
|
|
103
107
|
offer_type: offer.offerType,
|
|
@@ -95,7 +95,8 @@ export class FbTransformer {
|
|
|
95
95
|
...dealerInfo,
|
|
96
96
|
user_id: ownerId,
|
|
97
97
|
custom_label_4: await this.getMetaPushPriority(ownerId),
|
|
98
|
-
|
|
98
|
+
// ADV-200: AIA/AMA now wants the long auto.de ID (VDP URL id), not the short metaData.vehicleId code
|
|
99
|
+
vehicle_id: autodeId,
|
|
99
100
|
stock_number: autodeId,
|
|
100
101
|
availability: this.mapAvailability(car),
|
|
101
102
|
title: this.getTitle(car),
|