@bytebrand/export-cars 1.6.6 → 1.7.0
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/d.json +1 -0
- package/dist/app.module.js +14 -20
- package/dist/app.module.js.map +1 -1
- package/dist/exporters/modix.exporter.js +5 -2
- package/dist/exporters/modix.exporter.js.map +1 -1
- package/dist/formats/modix-xml.builder.d.ts +1 -0
- package/dist/formats/modix-xml.builder.js +14 -0
- package/dist/formats/modix-xml.builder.js.map +1 -1
- package/dist/interfaces/export-item.interface.d.ts +2 -0
- package/dist/services/index.d.ts +3 -0
- package/dist/services/index.js +3 -0
- package/dist/services/index.js.map +1 -1
- package/dist/transformers/modix.transformer.d.ts +4 -2
- package/dist/transformers/modix.transformer.js +10 -2
- package/dist/transformers/modix.transformer.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/app.module.ts +18 -13
- package/src/export.command.ts +1 -1
- package/src/exporters/modix.exporter.ts +10 -4
- package/src/formats/modix-xml.builder.ts +19 -0
- package/src/interfaces/export-item.interface.ts +3 -0
- package/src/services/index.ts +4 -0
- package/src/transformers/modix.transformer.ts +22 -13
- package/api_export_cars_dasparking.xml +0 -603
- package/api_export_cars_fb.xml +0 -1108
- package/api_export_cars_kleinanzeigefocus.xml +0 -1035
package/d.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"importField":"mainData.doors","importFieldType":"integer","autodeField":"1","autodeFieldType":"integer"},{"importField":"mainData.seats","importFieldType":"integer","autodeField":"2","autodeFieldType":"integer"},{"importField":"engineData.cylinders","importFieldType":"integer","autodeField":"3","autodeFieldType":"integer"},{"importField":"driveSuspension.gears","importFieldType":"integer","autodeField":"4","autodeFieldType":"integer"},{"importField":"metaData.hsn","importFieldType":"string","autodeField":"6","autodeFieldType":"string"},{"importField":"assistants.abs","importFieldType":"boolean","autodeField":"10","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"mainData.numberOfPreviousOwners","importFieldType":"integer","autodeField":"14","autodeFieldType":"integer"},{"importField":"sizeVolumeWeight.completeCapacity","importFieldType":"integer","autodeField":"15","autodeFieldType":"integer"},{"importField":"sizeVolumeWeight.capacityLoad","importFieldType":"integer","autodeField":"16","autodeFieldType":"integer"},{"importField":"metaData.vin","importFieldType":"string","autodeField":"20","autodeFieldType":"string"},{"importField":"metaData.codeSchwacke","importFieldType":"string","autodeField":"21","autodeFieldType":"string"},{"importField":"mainData.taxi","importFieldType":"boolean","autodeField":"26","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"mainData.nonSmokerVehicle","importFieldType":"boolean","autodeField":"30","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"window.electricWindows","importFieldType":"boolean","autodeField":"35","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"multimedia.navigationSystem","importFieldType":"boolean","autodeField":"36","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"window.sunroof","importFieldType":"boolean","autodeField":"38","autodeFieldType":"selector","importFieldSelector":"2","selectors":[]},{"importField":"lights.xenonHeadlights","importFieldType":"boolean","autodeField":"42","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"doors.centralLocking","importFieldType":"boolean","autodeField":"43","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"theftProtection.alarmSystem","importFieldType":"boolean","autodeField":"44","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"theftProtection.immobilizer","importFieldType":"boolean","autodeField":"45","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"assistants.tractionControlSystem","importFieldType":"boolean","autodeField":"46","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"extras.skiBag","importFieldType":"boolean","autodeField":"49","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"multimedia.onBoardComputer","importFieldType":"boolean","autodeField":"50","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"lights.frontFogLights","importFieldType":"boolean","autodeField":"52","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"assistants.powerAssistedSteering","importFieldType":"boolean","autodeField":"53","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"sizeVolumeWeight.emptyWeight","importFieldType":"number","autodeField":"57","autodeFieldType":"number"},{"importField":"heatingCooling.auxiliaryHeating","importFieldType":"boolean","autodeField":"60","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"assistants.cruiseControl","importFieldType":"boolean","autodeField":"62","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"multimedia.androidAuto","importFieldType":"boolean","autodeField":"63","autodeFieldType":"selector","importFieldSelector":"Y","autodeFieldSelector":"2","selectors":["Y:2","Y:3"]},{"importField":"multimedia.carplay","importFieldType":"boolean","autodeField":"63","autodeFieldType":"selector","importFieldSelector":"Y","autodeFieldSelector":"3","selectors":["Y:2","Y:3"]},{"importField":"careService.fullServiceHistory","importFieldType":"boolean","autodeField":"64","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"offer.warranty","importFieldType":"boolean","autodeField":"67","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"exterior.manufacturerColorName","importFieldType":"string","autodeField":"68","autodeFieldType":"string"},{"importField":"interior.manufacturerColorName","importFieldType":"string","autodeField":"69","autodeFieldType":"string"},{"importField":"trailerCoupling.trailerCouplingRotatable","importFieldType":"boolean","autodeField":"73","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"trailerCoupling.trailerCouplingRemovable","importFieldType":"boolean","autodeField":"73","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"trailerCoupling.trailerCouplingFix","importFieldType":"boolean","autodeField":"73","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"assistants.esp","importFieldType":"boolean","autodeField":"74","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"driveSuspension.selfLockingDifferential","importFieldType":"boolean","autodeField":"92","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"driveSuspension.sportChassis","importFieldType":"boolean","autodeField":"95","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"interior.centralArmrest","importFieldType":"boolean","autodeField":"97","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"extras.hardtop","importFieldType":"boolean","autodeField":"104","autodeFieldType":"selector","importFieldSelector":"4","selectors":[]},{"importField":"window.tintedWindowBack","importFieldType":"boolean","autodeField":"105","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"lights.headlightCleaner","importFieldType":"boolean","autodeField":"106","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"window.rearWindowWiper","importFieldType":"boolean","autodeField":"107","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"metaData.tsn","importFieldType":"string","autodeField":"128","autodeFieldType":"string"},{"importField":"mirrors.electricExteriorMirrors","importFieldType":"boolean","autodeField":"130","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"wheel.multifunctionalWheel","importFieldType":"boolean","autodeField":"141","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"extras.ureaTankAdBlue","importFieldType":"boolean","autodeField":"158","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"extras.solarEnergySystem","importFieldType":"boolean","autodeField":"168","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"extras.roofRails","importFieldType":"boolean","autodeField":"169","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"extras.windshield","importFieldType":"boolean","autodeField":"182","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"engineData.startStopSystem","importFieldType":"boolean","autodeField":"184","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"specialElements.kickstarter","importFieldType":"boolean","autodeField":"185","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"multimedia.tv","importFieldType":"boolean","autodeField":"188","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"specialElement.kitchen","importFieldType":"boolean","autodeField":"189","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"extras.cabin","importFieldType":"boolean","autodeField":"197","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"specialElements.frontHydraulics","importFieldType":"boolean","autodeField":"203","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"doors.slidingDoorRight","importFieldType":"boolean","autodeField":"204","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"doors.slidingDoorLeft","importFieldType":"boolean","autodeField":"204","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"doors.slidingDoorBothSides","importFieldType":"boolean","autodeField":"204","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"extras.divider","importFieldType":"boolean","autodeField":"206","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"assistants.ebs","importFieldType":"boolean","autodeField":"207","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"specialElements.retarder","importFieldType":"boolean","autodeField":"208","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"specialElements.compressor","importFieldType":"boolean","autodeField":"209","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"driveSuspension.airSuspension","importFieldType":"boolean","autodeField":"210","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"extras.discBrake","importFieldType":"boolean","autodeField":"211","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"specialElements.frontHydraulics","importFieldType":"boolean","autodeField":"212","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"driveSuspension.bss","importFieldType":"boolean","autodeField":"213","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"specialElements.frontLift","importFieldType":"boolean","autodeField":"216","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"sizeVolumeWeight.capacityLoad","importFieldType":"integer","autodeField":"217","autodeFieldType":"integer"},{"importField":"extras.coldstore","importFieldType":"boolean","autodeField":"218","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"consumption.consumptionInner","importFieldType":"number","autodeField":"220","autodeFieldType":"number"},{"importField":"consumption.consumptionOuter","importFieldType":"number","autodeField":"221","autodeFieldType":"number"},{"importField":"consumption.consumptionCombined","importFieldType":"number","autodeField":"222","autodeFieldType":"number"},{"importField":"environmentEmissions.co2","importFieldType":"number","autodeField":"223","autodeFieldType":"number"},{"importField":"sizeVolumeWeight.cargoCapacity","importFieldType":"number","autodeField":"224","autodeFieldType":"number"},{"importField":"sizeVolumeWeight.cargoLength","importFieldType":"integer","autodeField":"225","autodeFieldType":"number"},{"importField":"sizeVolumeWeight.cargoWidth","importFieldType":"integer","autodeField":"226","autodeFieldType":"number"},{"importField":"sizeVolumeWeight.cargoHeight","importFieldType":"integer","autodeField":"227","autodeFieldType":"number"},{"importField":"doors.slidingDoorLeft","importFieldType":"boolean","autodeField":"239","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"doors.slidingDoorRight","importFieldType":"boolean","autodeField":"239","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"driveSuspension.adaptiveChassis","importFieldType":"boolean","autodeField":"299","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"engineData.highSpeed","importFieldType":"number","autodeField":"309","autodeFieldType":"number"},{"importField":"wheels.summerTiresRimsSize","importFieldType":"number","autodeField":"315","autodeFieldType":"number"},{"importField":"sizeVolumeWeight.width","importFieldType":"number","autodeField":"319","autodeFieldType":"number"},{"importField":"sizeVolumeWeight.length","importFieldType":"number","autodeField":"321","autodeFieldType":"number"},{"importField":"sizeVolumeWeight.height","importFieldType":"number","autodeField":"322","autodeFieldType":"number"},{"importField":"engineData.powerPS","importFieldType":"number","autodeField":"338","autodeFieldType":"number"},{"importField":"editionsPackages.smokersPackage","importFieldType":"boolean","autodeField":"340","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"offer.availabilityFrom","importFieldType":"date","autodeField":"351","autodeFieldType":"availability"},{"importField":"window.rearWindowHeater","importFieldType":"boolean","autodeField":"360","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"window.rearWindowWiper","importFieldType":"boolean","autodeField":"361","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"engineData.biodieselSuitable","importFieldType":"boolean","autodeField":"375","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"engineData.e10Enabled","importFieldType":"boolean","autodeField":"379","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"extras.windshield","importFieldType":"boolean","autodeField":"381","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"assistants.automaticRainSensor","importFieldType":"boolean","autodeField":"424","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"editionsPackages.sportPackage","importFieldType":"boolean","autodeField":"425","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"window.tintedWindowBack","importFieldType":"boolean","autodeField":"426","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"doors.electricSlidingDoor","importFieldType":"boolean","autodeField":"428","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"doors.keylessEntry","importFieldType":"boolean","autodeField":"429","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"multimedia.voiceControl","importFieldType":"boolean","autodeField":"431","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"multimedia.handsFreePhoneSystem","importFieldType":"boolean","autodeField":"432","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"mirror.heatedOutsideMirror","importFieldType":"boolean","autodeField":"434","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"engineData.startStopSystem","importFieldType":"boolean","autodeField":"520","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"lights.daytimeRunningLights","importFieldType":"boolean","autodeField":"521","autodeFieldType":"selector","importFieldSelector":"Y","autodeFieldSelector":"1","selectors":["Y:1"]},{"importField":"assistants.headUpDisplay","importFieldType":"boolean","autodeField":"522","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"assistants.speedLimiter","importFieldType":"boolean","autodeField":"523","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"assistants.laneAssistant","importFieldType":"boolean","autodeField":"524","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"assistants.parkingAssistants","importFieldType":"parkingAssistants","autodeField":"525","autodeFieldType":"selector","importFieldSelector":"1","autodeFieldSelector":"any","selectors":["1:any"]},{"importField":"price.vatRate","importFieldType":"number","autodeField":"542","autodeFieldType":"number"},{"importField":"lights.lightSensor","importFieldType":"boolean","autodeField":"544","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"multimedia.bluetooth","importFieldType":"boolean","autodeField":"545","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"engineData.cubicCapacity","importFieldType":"number","autodeField":"582","autodeFieldType":"cubicCapacity_liter"},{"importField":"lights.ledHeadlights","importFieldType":"boolean","autodeField":"613","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"engineData.torque","importFieldType":"number","autodeField":"629","autodeFieldType":"number","importFieldSelector":"Y"},{"importField":"sizeVolumeWeight.fuelCapacity","importFieldType":"number","autodeField":"630","autodeFieldType":"number"},{"importField":"engineData.hybridPlugin","importFieldType":"boolean","autodeField":"800","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"careService.fullServiceHistory","importFieldType":"boolean","autodeField":"808","autodeFieldType":"selector","importFieldSelector":"3","selectors":[]},{"importField":"assistants.adaptiveCruiseControl","importFieldType":"boolean","autodeField":"897","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"wheel.heatedSteeringWheel","importFieldType":"boolean","autodeField":"899","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"assistants.hillStartDrivingAssistant","importFieldType":"boolean","autodeField":"900","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"wheel.leatherSteeringWheel","importFieldType":"boolean","autodeField":"901","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"assistants.nightVisionAssistant","importFieldType":"boolean","autodeField":"903","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"assistants.emergencyAssistant","importFieldType":"boolean","autodeField":"905","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"assistants.tirePressureMonitor","importFieldType":"boolean","autodeField":"906","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"wheel.shiftPadlle","importFieldType":"boolean","autodeField":"907","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"assistants.laneChangeAssistant","importFieldType":"boolean","autodeField":"909","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"multimedia.touchscreen","importFieldType":"boolean","autodeField":"910","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"assistants.trafficSignRecognition","importFieldType":"boolean","autodeField":"911","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"roadSideSystems.emergencyTireRepairKit","importFieldType":"boolean","autodeField":"922","autodeFieldType":"selector","importFieldSelector":"3","selectors":[]},{"importField":"battery.batteryCapacity","importFieldType":"number","autodeField":"928","autodeFieldType":"number"},{"importField":"engineData.acceleration100","importFieldType":"number","autodeField":"937","autodeFieldType":"number"},{"importField":"doors.slidingDoorRight","importFieldType":"boolean","autodeField":"943","autodeFieldType":"selector","importFieldSelector":"1","selectors":[]},{"importField":"doors.slidingDoorLeft","importFieldType":"boolean","autodeField":"943","autodeFieldType":"selector","importFieldSelector":"2","selectors":[]},{"importField":"doors.slidingDoorBothSides","importFieldType":"boolean","autodeField":"943","autodeFieldType":"selector","importFieldSelector":"3","selectors":[]},{"importField":"assistants.blindSpotDetection","importFieldType":"boolean","autodeField":"945","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"multimedia.usbInterface","importFieldType":"boolean","autodeField":"946","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"lights.biXenonHeadlights","importFieldType":"boolean","autodeField":"951","autodeFieldType":"selector","importFieldSelector":"1","selectors":[]},{"importField":"lights.laserHeadlights","importFieldType":"boolean","autodeField":"951","autodeFieldType":"selector","importFieldSelector":"3","selectors":[]},{"importField":"lights.partLEDHeadlights","importFieldType":"boolean","autodeField":"951","autodeFieldType":"selector","importFieldSelector":"6","selectors":[]},{"importField":"lights.ledHeadlights","importFieldType":"boolean","autodeField":"951","autodeFieldType":"selector","importFieldSelector":"4","selectors":[]},{"importField":"lights.xenonHeadlights","importFieldType":"boolean","autodeField":"951","autodeFieldType":"selector","importFieldSelector":"2","selectors":[]},{"importField":"assistants.glareFreeHighBeam","importFieldType":"boolean","autodeField":"952","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"lights.adaptiveBendingLights","importFieldType":"boolean","autodeField":"953","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"editionsPackages.winterPackage","importFieldType":"boolean","autodeField":"954","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"editionsPackages.smokersPackage","importFieldType":"boolean","autodeField":"955","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"assistants.distanceWarning","importFieldType":"boolean","autodeField":"956","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"lights.ambienteLighting","importFieldType":"boolean","autodeField":"958","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"multimedia.wifiHotspot","importFieldType":"boolean","autodeField":"959","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"multimedia.digitalCockpit","importFieldType":"boolean","autodeField":"960","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"multimedia.smartphoneWirelessCharging","importFieldType":"boolean","autodeField":"962","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"multimedia.integratedMusicStreaming","importFieldType":"boolean","autodeField":"963","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]},{"importField":"battery.batteryRangeExtender","importFieldType":"boolean","autodeField":"967","autodeFieldType":"selector","importFieldSelector":"Y","selectors":[]}]
|
package/dist/app.module.js
CHANGED
|
@@ -7,35 +7,29 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
};
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.AppModule = void 0;
|
|
10
|
-
const bottleneck_1 = require("bottleneck");
|
|
11
10
|
const common_1 = require("@nestjs/common");
|
|
12
|
-
const
|
|
13
|
-
const config_service_1 = require("./services/config.service");
|
|
14
|
-
const car_service_1 = require("./services/car.service");
|
|
15
|
-
const request_service_1 = require("./services/request.service");
|
|
16
|
-
const mapping_service_1 = require("./services/mapping.service");
|
|
17
|
-
const user_service_1 = require("./services/user.service");
|
|
11
|
+
const bottleneck_1 = require("bottleneck");
|
|
18
12
|
const input_questions_1 = require("./input.questions");
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const rules_service_1 = require("./services/rules.service");
|
|
22
|
-
const marketing_images_service_1 = require("./services/marketing-images.service");
|
|
13
|
+
const export_command_1 = require("./export.command");
|
|
14
|
+
const services_1 = require("./services");
|
|
23
15
|
let AppModule = class AppModule {
|
|
24
16
|
};
|
|
25
17
|
AppModule = __decorate([
|
|
26
18
|
(0, common_1.Module)({
|
|
27
|
-
imports: [
|
|
19
|
+
imports: [
|
|
20
|
+
common_1.CacheModule.register(),
|
|
21
|
+
],
|
|
28
22
|
providers: [
|
|
29
23
|
input_questions_1.InputQuestions,
|
|
30
24
|
export_command_1.ExportRunner,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
25
|
+
services_1.ConfigService,
|
|
26
|
+
services_1.RequestService,
|
|
27
|
+
services_1.CarService,
|
|
28
|
+
services_1.MappingService,
|
|
29
|
+
services_1.UserService,
|
|
30
|
+
services_1.LoaderService,
|
|
31
|
+
services_1.RulesService,
|
|
32
|
+
services_1.MarketingImagesService,
|
|
39
33
|
{
|
|
40
34
|
provide: bottleneck_1.default,
|
|
41
35
|
useValue: new bottleneck_1.default({ maxConcurrent: 10 }),
|
package/dist/app.module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.module.js","sourceRoot":"","sources":["../src/app.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"app.module.js","sourceRoot":"","sources":["../src/app.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAqD;AACrD,2CAAoC;AAEpC,uDAAmD;AACnD,qDAAgD;AAChD,yCASoB;AAwBb,IAAM,SAAS,GAAf,MAAM,SAAS;CAAI,CAAA;AAAb,SAAS;IAtBrB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,oBAAW,CAAC,QAAQ,EAAE;SACvB;QACD,SAAS,EAAE;YACT,gCAAc;YACd,6BAAY;YACZ,wBAAa;YACb,yBAAc;YACd,qBAAU;YACV,yBAAc;YACd,sBAAW;YACX,wBAAa;YACb,uBAAY;YACZ,iCAAsB;YACtB;gBACE,OAAO,EAAE,oBAAU;gBACnB,QAAQ,EAAE,IAAI,oBAAU,CAAC,EAAE,aAAa,EAAE,EAAE,EAAE,CAAC;aAChD;SACF;KACF,CAAC;GAEW,SAAS,CAAI;AAAb,8BAAS"}
|
|
@@ -13,6 +13,7 @@ exports.ModixExporter = void 0;
|
|
|
13
13
|
const common_1 = require("@nestjs/common");
|
|
14
14
|
const core_1 = require("@nestjs/core");
|
|
15
15
|
const cronicle_helper_1 = require("@bytebrand/cronicle-helper");
|
|
16
|
+
const import_helper_1 = require("@bytebrand/import-helper");
|
|
16
17
|
const services_1 = require("../services");
|
|
17
18
|
const transformers_1 = require("../transformers");
|
|
18
19
|
const formats_1 = require("../formats");
|
|
@@ -31,6 +32,8 @@ let ModixExporter = class ModixExporter {
|
|
|
31
32
|
const [fileXml] = this.configService.config.outputFiles;
|
|
32
33
|
await cronicle_helper_1.CronicleUtils.ensureDir(this.configService.config.pathesConfig.localConvertedDirectory);
|
|
33
34
|
await cronicle_helper_1.CronicleUtils.emptyDir(this.configService.config.pathesConfig.localConvertedDirectory);
|
|
35
|
+
const mappingBuilder = new import_helper_1.MappingBuilder(this.configService.config.apikey);
|
|
36
|
+
await mappingBuilder.loadMappingRules("modix");
|
|
34
37
|
const modixXmlBuilder = new formats_1.ModixXmlBuilder(fileXml);
|
|
35
38
|
await modixXmlBuilder.buildStart();
|
|
36
39
|
const modixTransformer = await this.moduleRef.create(transformers_1.ModixTransformer);
|
|
@@ -38,8 +41,8 @@ let ModixExporter = class ModixExporter {
|
|
|
38
41
|
if (chunk && chunk.data) {
|
|
39
42
|
for (let i = 0; i < chunk.data.length; i += 1) {
|
|
40
43
|
const data = chunk.data[i];
|
|
41
|
-
const
|
|
42
|
-
await modixXmlBuilder.addItem(
|
|
44
|
+
const transformedCar = await modixTransformer.transform(data, mappingBuilder.getMappingRules({ reversTransforming: true }));
|
|
45
|
+
await modixXmlBuilder.addItem(transformedCar);
|
|
43
46
|
this.carService.counter.countCar(data.images);
|
|
44
47
|
}
|
|
45
48
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modix.exporter.js","sourceRoot":"","sources":["../../src/exporters/modix.exporter.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{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I,EAAE;gBACvB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE;oBAC7C,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;oBAE3B,MAAM,cAAc,GAAG,MAAM,gBAAgB,CAAC,SAAS,CAAC,IAAI,EAAE,cAAc,CAAC,eAAe,CAAC,EAAE,kBAAkB,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;oBAC5H,MAAM,eAAe,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;oBAE9C,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;iBAC/C;aAEF;QACH,CAAC,CAAC,CAAC;QAEH,MAAM,eAAe,CAAC,QAAQ,EAAE,CAAC;QACjC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC,CAAA;IACvD,CAAC;CACF,CAAA;AAtCY,aAAa;IADzB,IAAA,mBAAU,GAAE;qCAGW,qBAAU;QACP,wBAAa;QACb,wBAAa;QACjB,gBAAS;GALnB,aAAa,CAsCzB;AAtCY,sCAAa"}
|
|
@@ -40,6 +40,10 @@ class ModixXmlBuilder extends cronicle_helper_1.XMLBuilderBase {
|
|
|
40
40
|
item += this.mapDealer(car.dealer.address, car.dealer.imprint);
|
|
41
41
|
break;
|
|
42
42
|
}
|
|
43
|
+
case 'options': {
|
|
44
|
+
item += this.mapOptions(car);
|
|
45
|
+
break;
|
|
46
|
+
}
|
|
43
47
|
default: {
|
|
44
48
|
item += this.getElement(tag, value, false);
|
|
45
49
|
}
|
|
@@ -119,6 +123,16 @@ class ModixXmlBuilder extends cronicle_helper_1.XMLBuilderBase {
|
|
|
119
123
|
await this.write('\n</vehicles>\n</vehiclePool>\n</automotive>');
|
|
120
124
|
await this.end();
|
|
121
125
|
}
|
|
126
|
+
mapOptions(car) {
|
|
127
|
+
const result = [];
|
|
128
|
+
for (const id in car.options) {
|
|
129
|
+
const value = car.options[id];
|
|
130
|
+
result.push(`<option id="${id}">
|
|
131
|
+
<value>${value}</value>
|
|
132
|
+
</option>`);
|
|
133
|
+
}
|
|
134
|
+
return `<options>${result.join('')}</options>`;
|
|
135
|
+
}
|
|
122
136
|
}
|
|
123
137
|
exports.ModixXmlBuilder = ModixXmlBuilder;
|
|
124
138
|
//# sourceMappingURL=modix-xml.builder.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modix-xml.builder.js","sourceRoot":"","sources":["../../src/formats/modix-xml.builder.ts"],"names":[],"mappings":";;;AAAA,gEAA4D;AAW5D,MAAa,eAAgB,SAAQ,gCAAc;IACjD,KAAK,CAAC,UAAU;QACd,MAAM,IAAI,CAAC,KAAK,CACd,4GAA4G,CAC7G,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,GAAiB;QAE7B,IAAI,IAAI,GAAG,4BAA4B,CAAC;QACxC,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAE9B,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE;YACtB,MAAM,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC;YACvB,QAAQ,GAAG,EAAE;gBACX,KAAK,UAAU,CAAC,CAAC;oBACf,IAAI,IAAI,IAAI,CAAC,UAAU,CAAC,UAAU,EAAE,GAAG,CAAC,QAAQ,CAAC,CAAC;oBAClD,MAAM;iBACP;gBACD,KAAK,OAAO,CAAC,CAAC;oBACZ,IAAI,IAAI,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC;oBAC7C,MAAM;iBACP;gBACD,KAAK,YAAY,CAAC,CAAC;oBACjB,IAAI,IAAI,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;oBAC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I,uBAAuB,CAAC;QAChC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,SAAS,CAAC,WAA2B,EAAE,WAA2B;QAEhE,IAAI,IAAI,GAAG,cAAc,CAAC;QAE1B,IAAI,IAAI,IAAI,CAAC,UAAU,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;QAChD,IAAI,IAAI,IAAI,CAAC;QACb,IAAI,IAAI,IAAI,CAAC,UAAU,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;QAEhD,IAAI,IAAI,eAAe,CAAC;QACxB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,KAAK,CAAC,QAAQ;QACZ,MAAM,IAAI,CAAC,KAAK,CAAC,8CAA8C,CAAC,CAAC;QACjE,MAAM,IAAI,CAAC,GAAG,EAAE,CAAC;IACnB,CAAC;IAED,UAAU,CAAC,GAAiB;QAC1B,MAAM,MAAM,GAAG,EAAE,CAAC;QAElB,KAAK,MAAM,EAAE,IAAI,GAAG,CAAC,OAAO,EAAE;YAC5B,MAAM,KAAK,GAAG,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;YAC9B,MAAM,CAAC,IAAI,CACT,eAAe,EAAE;mBACN,KAAK;kBACN,CACX,CAAC;SACH;QAED,OAAO,YAAY,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,YAAY,CAAA;IAChD,CAAC;CACF;AA9KD,0CA8KC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DataSchemes } from '@bytebrand/car-schema';
|
|
1
2
|
import { IModixWrapItem } from './autoborse.intreface';
|
|
2
3
|
export interface FbXmlItem {
|
|
3
4
|
url: string;
|
|
@@ -214,6 +215,7 @@ export interface ModixXmlItem {
|
|
|
214
215
|
prices: priceItem;
|
|
215
216
|
images: imageItem;
|
|
216
217
|
dealer: dealerItem;
|
|
218
|
+
options: Omit<DataSchemes.Car, 'state'>;
|
|
217
219
|
}
|
|
218
220
|
export interface mapSameTagsItem {
|
|
219
221
|
tag: string;
|
package/dist/services/index.d.ts
CHANGED
package/dist/services/index.js
CHANGED
|
@@ -19,4 +19,7 @@ __exportStar(require("./rules.service"), exports);
|
|
|
19
19
|
__exportStar(require("./car.service"), exports);
|
|
20
20
|
__exportStar(require("./loader.service"), exports);
|
|
21
21
|
__exportStar(require("./config.service"), exports);
|
|
22
|
+
__exportStar(require("./request.service"), exports);
|
|
23
|
+
__exportStar(require("./mapping.service"), exports);
|
|
24
|
+
__exportStar(require("./marketing-images.service"), exports);
|
|
22
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,kDAAgC;AAChC,gDAA8B;AAC9B,mDAAiC;AACjC,mDAAiC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,kDAAgC;AAChC,gDAA8B;AAC9B,mDAAiC;AACjC,mDAAiC;AACjC,oDAAkC;AAClC,oDAAkC;AAClC,6DAA2C"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { MappingRulesInterface } from '@bytebrand/import-helper';
|
|
1
2
|
import { ImboImageResponseInterface } from '@bytebrand/chunkable';
|
|
2
3
|
import { DataSchemes } from '@bytebrand/car-schema';
|
|
3
4
|
import { ModixXmlItem } from '../interfaces';
|
|
@@ -5,10 +6,10 @@ import { ConfigService } from '../services/config.service';
|
|
|
5
6
|
export declare class ModixTransformer {
|
|
6
7
|
private readonly configService;
|
|
7
8
|
constructor(configService: ConfigService);
|
|
8
|
-
transform(
|
|
9
|
+
transform(chunkData: {
|
|
9
10
|
car: DataSchemes.Car;
|
|
10
11
|
images: ImboImageResponseInterface[];
|
|
11
|
-
}): ModixXmlItem
|
|
12
|
+
}, mappingRules: MappingRulesInterface[]): Promise<ModixXmlItem>;
|
|
12
13
|
private getCategoryData;
|
|
13
14
|
private getManufactureData;
|
|
14
15
|
private getFuelData;
|
|
@@ -24,4 +25,5 @@ export declare class ModixTransformer {
|
|
|
24
25
|
private getExhaustInspection;
|
|
25
26
|
private getVin;
|
|
26
27
|
private getImagesLinks;
|
|
28
|
+
private buildOptions;
|
|
27
29
|
}
|
|
@@ -13,17 +13,19 @@ exports.ModixTransformer = void 0;
|
|
|
13
13
|
const lodash_1 = require("lodash");
|
|
14
14
|
const moment = require("moment/moment");
|
|
15
15
|
const common_1 = require("@nestjs/common");
|
|
16
|
+
const import_helper_1 = require("@bytebrand/import-helper");
|
|
16
17
|
const utils_1 = require("@bytebrand/schema-tools/dist/transform/utils");
|
|
17
|
-
const constants_1 = require("../constants");
|
|
18
18
|
const validator_utils_1 = require("../utils/validator.utils");
|
|
19
19
|
const category_constant_1 = require("../constants/modix/category.constant");
|
|
20
20
|
const config_service_1 = require("../services/config.service");
|
|
21
|
+
const constants_1 = require("../constants");
|
|
21
22
|
let ModixTransformer = class ModixTransformer {
|
|
22
23
|
configService;
|
|
23
24
|
constructor(configService) {
|
|
24
25
|
this.configService = configService;
|
|
25
26
|
}
|
|
26
|
-
transform(
|
|
27
|
+
async transform(chunkData, mappingRules) {
|
|
28
|
+
const { car, images } = chunkData;
|
|
27
29
|
return {
|
|
28
30
|
maindata: {
|
|
29
31
|
category: this.getCategoryData(car),
|
|
@@ -86,6 +88,7 @@ let ModixTransformer = class ModixTransformer {
|
|
|
86
88
|
vatid: { value: 'DE311875741' },
|
|
87
89
|
},
|
|
88
90
|
},
|
|
91
|
+
options: await this.buildOptions(car, mappingRules),
|
|
89
92
|
};
|
|
90
93
|
}
|
|
91
94
|
getCategoryData(car) {
|
|
@@ -164,6 +167,11 @@ let ModixTransformer = class ModixTransformer {
|
|
|
164
167
|
}
|
|
165
168
|
return { url, imageList };
|
|
166
169
|
}
|
|
170
|
+
async buildOptions(car, mappingRules) {
|
|
171
|
+
const transformer = import_helper_1.TransformerFactory.createTransformer("modix", car, { importSelectorMappingLog: () => { } }, [{ make: 'make', model: 'model' }], ['alt_model']);
|
|
172
|
+
const { car: transformedCar } = await transformer.transform(mappingRules);
|
|
173
|
+
return (0, lodash_1.omit)(transformedCar, ['state']);
|
|
174
|
+
}
|
|
167
175
|
};
|
|
168
176
|
ModixTransformer = __decorate([
|
|
169
177
|
(0, common_1.Injectable)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modix.transformer.js","sourceRoot":"","sources":["../../src/transformers/modix.transformer.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"modix.transformer.js","sourceRoot":"","sources":["../../src/transformers/modix.transformer.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mCAAgF;AAChF,wCAAwC;AAExC,2CAA4C;AAE5C,4DAAqF;AACrF,wEAA2E;AAM3E,8DAAuE;AACvE,4EAAoE;AACpE,+DAA2D;AAC3D,4CAQsB;AAKf,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IACE;IAA7B,YAA6B,aAA4B;QAA5B,kBAAa,GAAb,aAAa,CAAe;IAAI,CAAC;IAE9D,KAAK,CAAC,SAAS,CAAC,SAA0E,EAAE,YAAqC;QAE/H,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;QAElC,OAAO;YAGL,QAAQ,EAAE;gBACR,QAAQ,EAAE,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC;gBACnC,YAAY,EAAE,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC;gBAC1C,KAAK,EAAE,EAAE,KAAK,EAAE,IAAA,iBAAQ,EAAC,IAAA,YAAG,EAAC,GAAG,EAAE,gBAAgB,EAAE,EAAE,CAAC,CAAC,EAAE;gBAC1D,QAAQ,EAAE,EAAE,KAAK,EAAE,IAAA,YAAG,EAAC,GAAG,EAAE,mBAAmB,EAAE,EAAE,CAAC,EAAE;gBACtD,OAAO,EAAE,EAAE,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