@bytebrand/export-cars 1.12.4 → 1.12.8
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.
|
@@ -17,6 +17,7 @@ const core_1 = require("@nestjs/core");
|
|
|
17
17
|
const zipper_1 = require("@bytebrand/zipper");
|
|
18
18
|
const ooyyo_xml_builder_1 = require("../formats/ooyyo-xml.builder");
|
|
19
19
|
const ooyyo_transformer_1 = require("../transformers/ooyyo.transformer");
|
|
20
|
+
const enums_1 = require("../enums");
|
|
20
21
|
let OoyyoExporter = class OoyyoExporter {
|
|
21
22
|
carService;
|
|
22
23
|
configService;
|
|
@@ -50,7 +51,8 @@ let OoyyoExporter = class OoyyoExporter {
|
|
|
50
51
|
});
|
|
51
52
|
await ooyyoXmlBuilder.buildEnd();
|
|
52
53
|
console.log(this.carService.counter.getCountedCars());
|
|
53
|
-
|
|
54
|
+
const fileNameForZip = `api_export_cars_${enums_1.ExportType.OOYYO}.${enums_1.FileType.XML}`;
|
|
55
|
+
await zipper_1.Zipper.tar({ dest: fileGZ, fileList: [fileNameForZip] });
|
|
54
56
|
}
|
|
55
57
|
};
|
|
56
58
|
OoyyoExporter = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ooyyo.exporter.js","sourceRoot":"","sources":["../../src/exporters/ooyyo.exporter.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,0CAAqF;AAGrF,gEAA2D;AAC3D,uCAAyC;AACzC,8CAA2C;AAC3C,oEAA+D;AAC/D,yEAAqE;
|
|
1
|
+
{"version":3,"file":"ooyyo.exporter.js","sourceRoot":"","sources":["../../src/exporters/ooyyo.exporter.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,0CAAqF;AAGrF,gEAA2D;AAC3D,uCAAyC;AACzC,8CAA2C;AAC3C,oEAA+D;AAC/D,yEAAqE;AACrE,oCAAgD;AAGzC,IAAM,aAAa,G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