pim-import 5.11.0 → 5.12.1

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,7 +17,7 @@ const products_1 = require("../../algolia/products");
17
17
  const designers_1 = require("./designers");
18
18
  const notifications_1 = require("../../libs/notifications");
19
19
  const PIM_DUPLICATE_SEPARATOR = "~";
20
- const S3_PIM_PAYLOAD_PATH = `pim/payload/`;
20
+ const S3_PIM_PAYLOAD_PATH = `pim/payload/${process.env.FPI_CTF_ENVIRONMENT ? process.env.FPI_CTF_ENVIRONMENT + "/" : ""}`;
21
21
  const isTermsToAdd = async (productDetails, catalog) => {
22
22
  if (!productDetails.code.includes(PIM_DUPLICATE_SEPARATOR)) {
23
23
  return false;
@@ -1528,7 +1528,7 @@ const generateTechSpecPdf = async (topicProductId, country = "global", locale =
1528
1528
  }
1529
1529
  footerBaseUrl = footerBaseUrl.replace(/\/?(\?|#|$)/, "/$1");
1530
1530
  const layoutUrl = `${baseUrl}${locale}/${country}/tech-spec/${pageSlug}/v-${version}/`;
1531
- const pdpSiteUrl = `${footerBaseUrl}${locale}/${country}/product/${pageSlug}`.replace(/\/?(\?|#|$)/, "/$1");
1531
+ const pdpSiteUrl = `${footerBaseUrl}${locale}/${country}/product/${encodeURIComponent(pageSlug)}`.replace(/\/?(\?|#|$)/, "/$1");
1532
1532
  (0, logs_1.log)(`pdpSiteUrl: ${pdpSiteUrl}`);
1533
1533
  const contents = {
1534
1534
  footer: {
@@ -1539,6 +1539,12 @@ const generateTechSpecPdf = async (topicProductId, country = "global", locale =
1539
1539
  mail: topicCatalogIds.includes("OUTDOOR")
1540
1540
  ? "flos.outdoor@flos.com"
1541
1541
  : "info@flos.com",
1542
+ site: {
1543
+ url: country === "cn"
1544
+ ? "https://www.flos.cn/zh/cn/"
1545
+ : "https://professional.flos.com/en/global/",
1546
+ label: country === "cn" ? "www.flos.cn" : "professional.flos.com",
1547
+ },
1542
1548
  },
1543
1549
  };
1544
1550
  if (logs_1.serverUtils) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pim-import",
3
- "version": "5.11.0",
3
+ "version": "5.12.1",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",