@bytebrand/export-cars 1.26.18 → 1.26.19

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.
@@ -8,7 +8,7 @@ class FacebookShopConfig extends config_1.Config {
8
8
  constructor(params) {
9
9
  super(params);
10
10
  this.pathesConfig.localConvertedDirectory = `resources/${enums_1.ExportType.FACEBOOK_SHOP}-export`;
11
- this.maxCurrentSalesPrice = feed_price_constants_1.MAX_FEED_SALES_PRICE_EUR;
11
+ this.maxCurrentSalesPrice = (0, feed_price_constants_1.resolveMaxFeedSalesPrice)(params.maxCurrentSalesPrice);
12
12
  this.imageUrl = this.environmentConfig[params.environment].baseImageUrl;
13
13
  this.outputFiles = [
14
14
  `${this.pathesConfig.localConvertedDirectory}/api_export_cars_${enums_1.ExportType.FACEBOOK_SHOP}.${enums_1.FileType.XML}`,
@@ -1 +1 @@
1
- {"version":3,"file":"facebook-shop.config.js","sourceRoot":"","sources":["../../src/configs/facebook-shop.config.ts"],"names":[],"mappings":";;;AACA,qCAAkC;AAClC,oCAAgD;AAChD,4EAA6E;AAE7E,MAAa,kBAAmB,SAAQ,eAAM;IAC5C,YAAY,MAAc;QACxB,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,YAAY,CAAC,uBAAuB,GAAG,aAAa,kBAAU,CAAC,aAAa,SAAS,CAAC;QAC3F,IAAI,CAAC,oBAAoB,GAAG,+CAAwB,CAAC;QACrD,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,YAAY,CAAC;QACxE,IAAI,CAAC,WAAW,GAAG;YACjB,GAAG,IAAI,CAAC,YAAY,CAAC,uBAAuB,oBAAoB,kBAAU,CAAC,aAAa,IAAI,gBAAQ,CAAC,GAAG,EAAE;SAC3G,CAAC;IACJ,CAAC;CACF;AAVD,gDAUC"}
1
+ {"version":3,"file":"facebook-shop.config.js","sourceRoot":"","sources":["../../src/configs/facebook-shop.config.ts"],"names":[],"mappings":";;;AACA,qCAAkC;AAClC,oCAAgD;AAChD,4EAA6E;AAE7E,MAAa,kBAAmB,SAAQ,eAAM;IAC5C,YAAY,MAAc;QACxB,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,YAAY,CAAC,uBAAuB,GAAG,aAAa,kBAAU,CAAC,aAAa,SAAS,CAAC;QAC3F,IAAI,CAAC,oBAAoB,GAAG,IAAA,+CAAwB,EAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC;QAClF,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,YAAY,CAAC;QACxE,IAAI,CAAC,WAAW,GAAG;YACjB,GAAG,IAAI,CAAC,YAAY,CAAC,uBAAuB,oBAAoB,kBAAU,CAAC,aAAa,IAAI,gBAAQ,CAAC,GAAG,EAAE;SAC3G,CAAC;IACJ,CAAC;CACF;AAVD,gDAUC"}
@@ -8,7 +8,7 @@ class FbConfig extends config_1.Config {
8
8
  constructor(params) {
9
9
  super(params);
10
10
  this.pathesConfig.localConvertedDirectory = `resources/${enums_1.ExportType.FB}-export`;
11
- this.maxCurrentSalesPrice = feed_price_constants_1.MAX_FEED_SALES_PRICE_EUR;
11
+ this.maxCurrentSalesPrice = (0, feed_price_constants_1.resolveMaxFeedSalesPrice)(params.maxCurrentSalesPrice);
12
12
  this.imageUrl = this.environmentConfig[params.environment].imageUrl;
13
13
  this.imageType = enums_1.ImageType.marketing;
14
14
  this.marketingImageConfigId = this.environmentConfig[params.environment].fbMarketingImageId;
@@ -1 +1 @@
1
- {"version":3,"file":"fb.config.js","sourceRoot":"","sources":["../../src/configs/fb.config.ts"],"names":[],"mappings":";;;AAAA,oCAA4D;AAC5D,4EAA6E;AAE7E,qCAAkC;AAElC,MAAa,QAAS,SAAQ,eAAM;IAClC,YAAY,MAAc;QACxB,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,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,IAAI,CAAC,YAAY,CAAC,uBAAuB,oBAAoB,kBAAU,CAAC,EAAE,IAAI,gBAAQ,CAAC,GAAG,EAAE;SAChG,CAAC;IACJ,CAAC;CACF;AAZD,4BAYC"}
@@ -9,7 +9,7 @@ class GoogleConfig extends config_1.Config {
9
9
  super(params);
10
10
  this.pathesConfig.localConvertedDirectory = `resources/${enums_1.ExportType.GOOGLE}-export`;
11
11
  this.imageType = enums_1.ImageType.default;
12
- this.maxCurrentSalesPrice = feed_price_constants_1.MAX_FEED_SALES_PRICE_EUR;
12
+ this.maxCurrentSalesPrice = (0, feed_price_constants_1.resolveMaxFeedSalesPrice)(params.maxCurrentSalesPrice);
13
13
  this.outputFiles = [
14
14
  `${this.pathesConfig.localConvertedDirectory}/api_export_cars_${enums_1.ExportType.GOOGLE}.${enums_1.FileType.XML}`,
15
15
  ];
@@ -1 +1 @@
1
- {"version":3,"file":"google.config.js","sourceRoot":"","sources":["../../src/configs/google.config.ts"],"names":[],"mappings":";;;AAAA,oCAA4D;AAC5D,4EAA6E;AAE7E,qCAAkC;AAElC,MAAa,YAAa,SAAQ,eAAM;IACtC,YAAY,MAAc;QACxB,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,YAAY,CAAC,uBAAuB,GAAG,aAAa,kBAAU,CAAC,MAAM,SAAS,CAAC;QACpF,IAAI,CAAC,SAAS,GAAG,iBAAS,CAAC,OAAO,CAAC;QACnC,IAAI,CAAC,oBAAoB,GAAG,+CAAwB,CAAC;QACrD,IAAI,CAAC,WAAW,GAAG;YACjB,GAAG,IAAI,CAAC,YAAY,CAAC,uBAAuB,oBAAoB,kBAAU,CAAC,MAAM,IAAI,gBAAQ,CAAC,GAAG,EAAE;SACpG,CAAC;IACJ,CAAC;CACF;AAVD,oCAUC"}
1
+ {"version":3,"file":"google.config.js","sourceRoot":"","sources":["../../src/configs/google.config.ts"],"names":[],"mappings":";;;AAAA,oCAA4D;AAC5D,4EAA6E;AAE7E,qCAAkC;AAElC,MAAa,YAAa,SAAQ,eAAM;IACtC,YAAY,MAAc;QACxB,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,YAAY,CAAC,uBAAuB,GAAG,aAAa,kBAAU,CAAC,MAAM,SAAS,CAAC;QACpF,IAAI,CAAC,SAAS,GAAG,iBAAS,CAAC,OAAO,CAAC;QACnC,IAAI,CAAC,oBAAoB,GAAG,IAAA,+CAAwB,EAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC;QAClF,IAAI,CAAC,WAAW,GAAG;YACjB,GAAG,IAAI,CAAC,YAAY,CAAC,uBAAuB,oBAAoB,kBAAU,CAAC,MAAM,IAAI,gBAAQ,CAAC,GAAG,EAAE;SACpG,CAAC;IACJ,CAAC;CACF;AAVD,oCAUC"}
@@ -1 +1,2 @@
1
1
  export declare const MAX_FEED_SALES_PRICE_EUR = 80000;
2
+ export declare const resolveMaxFeedSalesPrice: (raw?: string) => number;
@@ -1,5 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MAX_FEED_SALES_PRICE_EUR = void 0;
3
+ exports.resolveMaxFeedSalesPrice = exports.MAX_FEED_SALES_PRICE_EUR = void 0;
4
+ const lodash_1 = require("lodash");
4
5
  exports.MAX_FEED_SALES_PRICE_EUR = 80000;
6
+ const resolveMaxFeedSalesPrice = (raw) => (0, lodash_1.toNumber)(raw) > 0 ? (0, lodash_1.toNumber)(raw) : exports.MAX_FEED_SALES_PRICE_EUR;
7
+ exports.resolveMaxFeedSalesPrice = resolveMaxFeedSalesPrice;
5
8
  //# sourceMappingURL=feed-price.constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"feed-price.constants.js","sourceRoot":"","sources":["../../src/constants/feed-price.constants.ts"],"names":[],"mappings":";;;AAGa,QAAA,wBAAwB,GAAG,KAAM,CAAC"}
1
+ {"version":3,"file":"feed-price.constants.js","sourceRoot":"","sources":["../../src/constants/feed-price.constants.ts"],"names":[],"mappings":";;;AAAA,mCAAkC;AAKrB,QAAA,wBAAwB,GAAG,KAAM,CAAC;AAIxC,MAAM,wBAAwB,GAAG,CAAC,GAAY,EAAU,EAAE,CAC/D,IAAA,iBAAQ,EAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAA,iBAAQ,EAAC,GAAG,CAAC,CAAC,CAAC,CAAC,gCAAwB,CAAC;AADlD,QAAA,wBAAwB,4BAC0B"}
@@ -10,4 +10,5 @@ export interface Params {
10
10
  cpc?: string;
11
11
  ownerId?: string;
12
12
  metaPushPriorityCsvUrl?: string;
13
+ maxCurrentSalesPrice?: string;
13
14
  }