@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.
- package/dist/configs/facebook-shop.config.js +1 -1
- package/dist/configs/facebook-shop.config.js.map +1 -1
- package/dist/configs/fb.config.js +1 -1
- package/dist/configs/fb.config.js.map +1 -1
- package/dist/configs/google.config.js +1 -1
- package/dist/configs/google.config.js.map +1 -1
- package/dist/constants/feed-price.constants.d.ts +1 -0
- package/dist/constants/feed-price.constants.js +4 -1
- package/dist/constants/feed-price.constants.js.map +1 -1
- package/dist/interfaces/params.interface.d.ts +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/configs/facebook-shop.config.ts +2 -2
- package/src/configs/fb.config.ts +2 -2
- package/src/configs/google.config.ts +2 -2
- package/src/constants/feed-price.constants.ts +7 -0
- package/src/interfaces/params.interface.ts +3 -0
|
@@ -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.
|
|
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;
|
|
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.
|
|
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,CAAC,YAAY,CAAC,uBAAuB,GAAG,aAAa,kBAAU,CAAC,EAAE,SAAS,CAAC;QAChF,IAAI,CAAC,oBAAoB,GAAG,+CAAwB,CAAC;
|
|
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,CAAC,YAAY,CAAC,uBAAuB,GAAG,aAAa,kBAAU,CAAC,EAAE,SAAS,CAAC;QAChF,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,QAAQ,CAAC;QACpE,IAAI,CAAC,SAAS,GAAG,iBAAS,CAAC,SAAS,CAAC;QACrC,IAAI,CAAC,sBAAsB,GAAG,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,kBAAkB,CAAC;QAC5F,IAAI,CAAC,WAAW,GAAG;YACjB,GAAG,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.
|
|
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;
|
|
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,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":";;;
|
|
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"}
|