@bytebrand/export-cars 1.11.1 → 1.12.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytebrand/export-cars",
3
- "version": "1.11.1",
3
+ "version": "1.12.0",
4
4
  "description": "",
5
5
  "author": "bytebrand",
6
6
  "license": "UNLICENSED",
@@ -60,5 +60,5 @@
60
60
  "engines": {
61
61
  "node": ">=14.0.0"
62
62
  },
63
- "gitHead": "e7eaf3a713547427c14a5e17902262f7365aaae9"
63
+ "gitHead": "87b940aa6e96d3de19a89a2d0157dac4b59bb114"
64
64
  }
@@ -16,3 +16,4 @@ export * from './yescar.config';
16
16
  export * from './autoboerse.config';
17
17
  export * from './facebook-shop.config';
18
18
  export * from './trovit.config';
19
+ export * from './mitula.config';
@@ -0,0 +1,14 @@
1
+ import { ExportType, FileType, ImageType } from 'src/enums';
2
+ import { Params } from '../interfaces/params.interface';
3
+ import { Config } from './config';
4
+
5
+ export class MitulaConfig extends Config {
6
+ constructor(params: Params) {
7
+ super(params);
8
+ this.pathesConfig.localConvertedDirectory = `resources/${ExportType.MITULA}-export`;
9
+ this.imageType = ImageType.default;
10
+ this.outputFiles = [
11
+ `${this.pathesConfig.localConvertedDirectory}/api_export_cars_${ExportType.MITULA}.${FileType.XML}`,
12
+ ];
13
+ }
14
+ }
@@ -26,4 +26,5 @@ export enum ExportType {
26
26
  CRITEO = 'criteo',
27
27
  FACEBOOK_SHOP = 'facebookshop',
28
28
  TROVIT = 'trovit',
29
+ MITULA = 'mitula',
29
30
  }
@@ -19,6 +19,7 @@ import {
19
19
  FacebookShopConfig,
20
20
  CriteoConfig,
21
21
  TrovitConfig,
22
+ MitulaConfig,
22
23
  } from './configs';
23
24
  import {
24
25
  As24Exporter,
@@ -109,4 +110,8 @@ export const exportSchema = {
109
110
  config: TrovitConfig,
110
111
  exporter: TrovitExporter,
111
112
  },
113
+ [ExportType.MITULA]: {
114
+ config: MitulaConfig,
115
+ exporter: TrovitExporter,
116
+ },
112
117
  };