@bytebrand/export-cars 1.12.8 → 1.12.10

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.12.8",
3
+ "version": "1.12.10",
4
4
  "description": "",
5
5
  "author": "bytebrand",
6
6
  "license": "UNLICENSED",
@@ -15,16 +15,16 @@
15
15
  "start:dev": "nest start --watch"
16
16
  },
17
17
  "dependencies": {
18
- "@bytebrand/autode-request": "^1.9.0",
18
+ "@bytebrand/autode-request": "^1.9.6",
19
19
  "@bytebrand/car-basic-data-scope": "^9.8.23",
20
- "@bytebrand/car-description": "^1.7.24",
20
+ "@bytebrand/car-description": "^1.7.25",
21
21
  "@bytebrand/car-schema": "^3.12.24",
22
22
  "@bytebrand/chunkable": "^5.13.10",
23
- "@bytebrand/cronicle-helper": "^1.15.1",
23
+ "@bytebrand/cronicle-helper": "^1.15.8",
24
24
  "@bytebrand/i18n-dictionaries": "^1.4.2",
25
- "@bytebrand/import-helper": "^0.35.1",
26
- "@bytebrand/schema-tools": "^3.13.24",
27
- "@bytebrand/zipper": "^2.1.1",
25
+ "@bytebrand/import-helper": "^0.36.0",
26
+ "@bytebrand/schema-tools": "^3.13.25",
27
+ "@bytebrand/zipper": "^2.1.2",
28
28
  "@nestjs/common": "^9.0.0",
29
29
  "@nestjs/core": "^9.0.0",
30
30
  "bottleneck": "^2.19.5",
@@ -60,5 +60,5 @@
60
60
  "engines": {
61
61
  "node": ">=14.0.0"
62
62
  },
63
- "gitHead": "399bb202a6e9dfab440a97efea2890586c195508"
63
+ "gitHead": "525eca75925ecb5b76e747ff2a85f5b0dc8cf987"
64
64
  }
@@ -7,7 +7,6 @@ import { ModuleRef } from '@nestjs/core';
7
7
  import { Zipper } from '@bytebrand/zipper';
8
8
  import { OoyyoXmlBuilder } from '../formats/ooyyo-xml.builder';
9
9
  import { OoyyoTransformer } from '../transformers/ooyyo.transformer';
10
- import { ExportType, FileType } from '../enums';
11
10
 
12
11
  @Injectable()
13
12
  export class OoyyoExporter implements Exporter {
@@ -46,7 +45,6 @@ export class OoyyoExporter implements Exporter {
46
45
  await ooyyoXmlBuilder.buildEnd();
47
46
  console.log(this.carService.counter.getCountedCars());
48
47
 
49
- const fileNameForZip = `api_export_cars_${ExportType.OOYYO}.${FileType.XML}`;
50
- await Zipper.tar({ dest: fileGZ, fileList: [fileNameForZip] });
48
+ fileGZ && await Zipper.tar({ dest: fileGZ, fileList: [fileXml] });
51
49
  }
52
50
  }
@@ -1,6 +1,7 @@
1
1
  import { CACHE_MANAGER, Inject, Injectable } from '@nestjs/common';
2
2
 
3
3
  import { MarketingImageConfigInterface, MarketingImageConfigsInterface } from '@bytebrand/autode-request';
4
+ import { CronicleUtils } from '@bytebrand/cronicle-helper';
4
5
 
5
6
  import { RequestService } from './request.service';
6
7
  import { Cache } from 'cache-manager';
@@ -19,7 +20,7 @@ export class UserService {
19
20
  return cachedResponse;
20
21
  }
21
22
 
22
- const defaultSummary = await this.requestService.userActionsRequest.getDefaultSummaryByDealerId(dealerId);
23
+ const defaultSummary = await CronicleUtils.retry(() => this.requestService.userActionsRequest.getDefaultSummaryByDealerId(dealerId), 1, 30, true);
23
24
  const result = get(defaultSummary, 'data.schema', {});
24
25
  await this.cacheManager.set(cacheKey, result);
25
26