pim-import 4.55.0 → 4.56.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/.env.example CHANGED
@@ -43,4 +43,5 @@ FPI_TECH_SPEC_FOOTER_BASE_URL=""
43
43
  FPI_ATOMIC_JOBS_API_URL=""
44
44
  FPI_ATOMIC_JOBS_API_SECRET=""
45
45
  FPI_ATOMIC_JOBS_GEN_PDF_PROJECT_ID=""
46
- FPI_ATOMIC_JOBS_GEN_PDF_TASK_ID=""
46
+ FPI_ATOMIC_JOBS_GEN_PDF_TASK_ID=""
47
+ FPID_NETLIFY_BUILD_HOOK=""
package/dist/browser.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.removeModelObject = exports.reindexModels = exports.reindexModel = exports.removeSubModelObject = exports.reindexSubModels = exports.reindexSubModel = exports.removeProductObject = exports.reindexProducts = exports.reindexProduct = exports.removeSubFamilyObject = exports.reindexSubFamily = exports.reindexSubFamilies = exports.removeFamilyObject = exports.reindexFamily = exports.reindexFamilies = exports.resetIndexSettings = exports.removeAllProductModelProductRelations = exports.removeProductFromColorVariantsByProductLine = exports.setProductAutodescriptionByTopicId = exports.getProductAutodescription = exports.setProductsAutodescription = exports.generateTechSpecPdf = exports.audit = exports.getAllProductEntriesByCatalog = exports.setProductRelationships = exports.setProductsRelationships = exports.importProductByCode = exports.importFamilies = exports.importSubFamilies = exports.importSubModels = exports.importModels = exports.importLatestProducts = exports.importCategories = exports.importDictionaryProductSubLine = exports.importDictionaryProductLine = exports.importDictionaryData = exports.importDictionaryIcons = exports.importDictionaryFields = exports.savePDFToS3 = exports.getFileFromS3 = exports.saveJsonToS3 = exports.uploadS3 = exports.initS3 = exports.getTopicPage = exports.getEntryByID = exports.deleteEntries = exports.deletePages = exports.initBaseEntries = exports.initContentful = exports.initPim = void 0;
4
- exports.generatePDFByUrl = exports.removeRecordsByStatus = exports.setLogId = exports.log = exports.getStaticDailyProducts = exports.getLocalISOTime = exports.importDownloads = exports.removePostObject = exports.reindexPosts = exports.reindexPost = exports.removePressReleaseObject = exports.reindexPressReleases = exports.reindexPressRelease = exports.removePressReviewObject = exports.reindexPressReviews = exports.reindexPressReview = exports.removeStoryObject = exports.reindexStories = exports.reindexStory = exports.removeProjectObject = exports.reindexProjects = exports.reindexProject = exports.removeInspirationObject = exports.reindexInspirations = exports.reindexInspiration = exports.removeDownloadObject = exports.reindexDownloads = exports.reindexDownload = void 0;
4
+ exports.netlifyBuild = exports.generatePDFByUrl = exports.removeRecordsByStatus = exports.setLogId = exports.log = exports.getStaticDailyProducts = exports.getLocalISOTime = exports.importDownloads = exports.removePostObject = exports.reindexPosts = exports.reindexPost = exports.removePressReleaseObject = exports.reindexPressReleases = exports.reindexPressRelease = exports.removePressReviewObject = exports.reindexPressReviews = exports.reindexPressReview = exports.removeStoryObject = exports.reindexStories = exports.reindexStory = exports.removeProjectObject = exports.reindexProjects = exports.reindexProject = exports.removeInspirationObject = exports.reindexInspirations = exports.reindexInspiration = exports.removeDownloadObject = exports.reindexDownloads = exports.reindexDownload = void 0;
5
5
  var config_1 = require("./pim/config");
6
6
  Object.defineProperty(exports, "initPim", { enumerable: true, get: function () { return config_1.init; } });
7
7
  var contentful_1 = require("./libs/contentful");
@@ -110,4 +110,6 @@ var clean_1 = require("./algolia/clean");
110
110
  Object.defineProperty(exports, "removeRecordsByStatus", { enumerable: true, get: function () { return clean_1.removeRecordsByStatus; } });
111
111
  var pdf_1 = require("./libs/pdf");
112
112
  Object.defineProperty(exports, "generatePDFByUrl", { enumerable: true, get: function () { return pdf_1.generatePDFByUrl; } });
113
+ var netlify_1 = require("./libs/netlify");
114
+ Object.defineProperty(exports, "netlifyBuild", { enumerable: true, get: function () { return netlify_1.netlifyBuild; } });
113
115
  //# sourceMappingURL=browser.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"browser.js","sourceRoot":"","sources":["../src/browser.ts"],"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Ae,OAAA;AACxB,iCAA0C;AAAjC,wGAAA,eAAe,OAAA;AACxB,6CAAyD;AAAhD,mHAAA,sBAAsB,OAAA;AAC/B,oCAA4C;AAAnC,2FAAA,GAAG,OAAA;AAAE,gGAAA,QAAQ,OAAA;AACtB,yCAAwD;AAA/C,8GAAA,qBAAqB,OAAA;AAC9B,kCAA8C;AAArC,uGAAA,gBAAgB,OAAA;AACzB,0CAA8C;AAArC,uGAAA,YAAY,OAAA"}
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.reindexProducts = exports.reindexProduct = exports.removeSubFamilyObject = exports.reindexSubFamily = exports.reindexSubFamilies = exports.removeFamilyObject = exports.reindexFamily = exports.reindexFamilies = exports.getIndex = exports.checkTopicDraftAndPagePublished = exports.publishAllProductDrafts = exports.purgeProductThumbCacheByProductCodes = exports.populateDestinations = exports.reimportAuditProducts = exports.getProductPageIdByCode = exports.removeAllProductModelProductRelations = exports.removeProductFromColorVariantsByProductLine = exports.setProductAutodescriptionByTopicId = exports.getProductAutodescription = exports.setProductsAutodescription = exports.generateTechSpecPdf = exports.audit = exports.getAllProductEntriesByCatalog = exports.setProductRelationships = exports.setProductsRelationships = exports.importProductByCode = exports.importFamilies = exports.importSubFamilies = exports.importSubModels = exports.importModels = exports.importLatestProducts = exports.importCategories = exports.importDictionaryProductSubLine = exports.importDictionaryProductLine = exports.importDictionaryData = exports.importDictionaryIcons = exports.importDictionaryFields = exports.savePDFToS3 = exports.getFileFromS3 = exports.saveJsonToS3 = exports.uploadS3 = exports.initS3 = exports.getEntries = exports.getTopicPage = exports.getEntryByID = exports.deleteEntries = exports.deletePages = exports.initBaseEntries = exports.initContentful = exports.initPim = void 0;
4
- exports.notify = exports.importDesigner = exports.importDesigners = exports.generatePDFByUrl = exports.removeRecordsByStatus = exports.getLogFolder = exports.setLogFilename = exports.setLogPath = exports.setLogId = exports.setServerUtils = exports.log = exports.getLatestProducts = exports.getStaticDailyProducts = exports.getLocalISOTime = exports.importDownloads = exports.removePostObject = exports.reindexPosts = exports.reindexPost = exports.removePressReleaseObject = exports.reindexPressReleases = exports.reindexPressRelease = exports.removePressReviewObject = exports.reindexPressReviews = exports.reindexPressReview = exports.removeStoryObject = exports.reindexStories = exports.reindexStory = exports.removeProjectObject = exports.reindexProjects = exports.reindexProject = exports.removeInspirationObject = exports.reindexInspirations = exports.reindexInspiration = exports.removeDownloadObject = exports.reindexDownloads = exports.reindexDownload = exports.removeModelObject = exports.reindexModels = exports.reindexModel = exports.removeSubModelObject = exports.reindexSubModels = exports.reindexSubModel = exports.renderPDFGenerator = exports.removeProductObject = void 0;
4
+ exports.netlifyBuild = exports.notify = exports.importDesigner = exports.importDesigners = exports.generatePDFByUrl = exports.removeRecordsByStatus = exports.getLogFolder = exports.setLogFilename = exports.setLogPath = exports.setLogId = exports.setServerUtils = exports.log = exports.getLatestProducts = exports.getStaticDailyProducts = exports.getLocalISOTime = exports.importDownloads = exports.removePostObject = exports.reindexPosts = exports.reindexPost = exports.removePressReleaseObject = exports.reindexPressReleases = exports.reindexPressRelease = exports.removePressReviewObject = exports.reindexPressReviews = exports.reindexPressReview = exports.removeStoryObject = exports.reindexStories = exports.reindexStory = exports.removeProjectObject = exports.reindexProjects = exports.reindexProject = exports.removeInspirationObject = exports.reindexInspirations = exports.reindexInspiration = exports.removeDownloadObject = exports.reindexDownloads = exports.reindexDownload = exports.removeModelObject = exports.reindexModels = exports.reindexModel = exports.removeSubModelObject = exports.reindexSubModels = exports.reindexSubModel = exports.renderPDFGenerator = exports.removeProductObject = void 0;
5
5
  var config_1 = require("./pim/config");
6
6
  Object.defineProperty(exports, "initPim", { enumerable: true, get: function () { return config_1.init; } });
7
7
  var contentful_1 = require("./libs/contentful");
@@ -130,4 +130,6 @@ Object.defineProperty(exports, "importDesigners", { enumerable: true, get: funct
130
130
  Object.defineProperty(exports, "importDesigner", { enumerable: true, get: function () { return designers_1.importDesigner; } });
131
131
  var notifications_1 = require("./libs/notifications");
132
132
  Object.defineProperty(exports, "notify", { enumerable: true, get: function () { return notifications_1.notify; } });
133
+ var netlify_1 = require("./libs/netlify");
134
+ Object.defineProperty(exports, "netlifyBuild", { enumerable: true, get: function () { return netlify_1.netlifyBuild; } });
133
135
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAGA,uCAA+C;AAAtC,iGAAA,IAAI,OAAW;AACxB,gDAQ2B;AAPzB,4GAAA,IAAI,OAAkB;AACtB,6GAAA,eAAe,OAAA;AACf,yGAAA,WAAW,OAAA;AACX,2GAAA,aAAa,OAAA;AACb,0GAAA,YAAY,OAAA;AACZ,0GAAA,YAAY,OAAA;AACZ,wGAAA,UAAU,OAAA;AAEZ,gCAMmB;AALjB,4FAAA,IAAI,OAAU;AACd,8FAAA,MAAM,OAAY;AAClB,kGAAA,YAAY,OAAA;AACZ,mGAAA,aAAa,OAAA;AACb,iGAAA,WAAW,OAAA;AAEb,uDAMkC;AALhC,oHAAA,sBAAsB,OAAA;AACtB,mHAAA,qBAAqB,OAAA;AACrB,kHAAA,oBAAoB,OAAA;AACpB,yHAAA,2BAA2B,OAAA;AAC3B,4HAAA,8BAA8B,OAAA;AAEhC,mDAA0D;AAAjD,4GAAA,gBAAgB,OAAA;AACzB,+DAAoE;AAA3D,sHAAA,oBAAoB,OAAA;AAC7B,+CAAoD;AAA3C,sGAAA,YAAY,OAAA;AACrB,qDAA0D;AAAjD,4GAAA,eAAe,OAAA;AACxB,yDAA8D;AAArD,gHAAA,iBAAiB,OAAA;AAC1B,mDAAwD;AAA/C,0GAAA,cAAc,OAAA;AACvB,mDAgBgC;AAf9B,+GAAA,mBAAmB,OAAA;AACnB,oHAAA,wBAAwB,OAAA;AACxB,mHAAA,uBAAuB,OAAA;AACvB,yHAAA,6BAA6B,OAAA;AAC7B,iGAAA,K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,OAAA;AACR,kGAAA,UAAU,OAAA;AACV,sGAAA,cAAc,OAAA;AACd,oGAAA,YAAY,OAAA;AAEd,yCAAwD;AAA/C,8GAAA,qBAAqB,OAAA;AAC9B,kCAA8C;AAArC,uGAAA,gBAAgB,OAAA;AACzB,qDAA0E;AAAjE,4GAAA,eAAe,OAAA;AAAE,2GAAA,cAAc,OAAA;AACxC,sDAA8C;AAArC,uGAAA,MAAM,OAAA;AACf,0CAA8C;AAArC,uGAAA,YAAY,OAAA"}
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.netlifyBuild = void 0;
7
+ const dotenv_1 = __importDefault(require("dotenv"));
8
+ const axios_1 = __importDefault(require("@atoms-studio/axios"));
9
+ const logs_1 = require("./logs");
10
+ dotenv_1.default.config();
11
+ const netlifyBuild = async () => {
12
+ let logMsg = `Triggering Netlify build...`;
13
+ (0, logs_1.log)(logMsg, "INFO");
14
+ if (logs_1.serverUtils) {
15
+ logs_1.serverUtils.log(logMsg);
16
+ }
17
+ if (!process.env.FPID_NETLIFY_BUILD_HOOK) {
18
+ logMsg = `FPID_NETLIFY_BUILD_HOOK environment variable not found`;
19
+ if (logs_1.serverUtils) {
20
+ logs_1.serverUtils.log(logMsg);
21
+ }
22
+ (0, logs_1.log)(logMsg, "ERROR");
23
+ return;
24
+ }
25
+ const options = {
26
+ method: "POST",
27
+ url: process.env.FPID_NETLIFY_BUILD_HOOK,
28
+ };
29
+ try {
30
+ await axios_1.default.request(options);
31
+ logMsg = `Netlify build triggered`;
32
+ (0, logs_1.log)(logMsg, "INFO");
33
+ if (logs_1.serverUtils) {
34
+ logs_1.serverUtils.log(logMsg);
35
+ }
36
+ }
37
+ catch (err) {
38
+ console.log(err.message);
39
+ }
40
+ };
41
+ exports.netlifyBuild = netlifyBuild;
42
+ //# sourceMappingURL=netlify.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"netlify.js","sourceRoot":"","sources":["../../src/libs/netlify.ts"],"names":[],"mappings":";;;;;;AAAA,oDAA4B;AAC5B,gEAAwC;AACxC,iCAA0C;AAC1C,gBAAM,CAAC,MAAM,EAAE,CAAC;AAET,MAAM,YAAY,GAAG,KAAK,IAAI,EAAE;IACrC,IAAI,MAAM,GAAG,6BAA6B,CAAC;IAC3C,IAAA,UAAG,EAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpB,IAAI,kBAAW,EAAE;QACf,kBAAW,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;KACzB;IAED,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE;QACxC,MAAM,GAAG,wDAAwD,CAAC;QAClE,IAAI,kBAAW,EAAE;YACf,kBAAW,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;SACzB;QACD,IAAA,UAAG,EAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QACrB,OAAO;KACR;IAED,MAAM,OAAO,GAAG;QACd,MAAM,EAAE,MAAM;QACd,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,uBAAuB;KACzC,CAAC;IAEF,IAAI;QACF,MAAM,eAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QAC7B,MAAM,GAAG,yBAAyB,CAAC;QACnC,IAAA,UAAG,EAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACpB,IAAI,kBAAW,EAAE;YACf,kBAAW,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;SACzB;KACF;IAAC,OAAO,GAAQ,EAAE;QACjB,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;KAC1B;AACH,CAAC,CAAC;AA/BW,QAAA,YAAY,gBA+BvB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pim-import",
3
- "version": "4.55.0",
3
+ "version": "4.56.0",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "types": "types/index.d.ts",
package/src/browser.ts CHANGED
@@ -119,3 +119,4 @@ export { getStaticDailyProducts } from "./pim/endpoints";
119
119
  export { log, setLogId } from "./libs/logs";
120
120
  export { removeRecordsByStatus } from "./algolia/clean";
121
121
  export { generatePDFByUrl } from "./libs/pdf";
122
+ export { netlifyBuild } from "./libs/netlify";
package/src/index.ts CHANGED
@@ -136,3 +136,4 @@ export { removeRecordsByStatus } from "./algolia/clean";
136
136
  export { generatePDFByUrl } from "./libs/pdf";
137
137
  export { importDesigners, importDesigner } from "./pim/methods/designers";
138
138
  export { notify } from "./libs/notifications";
139
+ export { netlifyBuild } from "./libs/netlify";
@@ -0,0 +1,37 @@
1
+ import dotenv from "dotenv";
2
+ import axios from "@atoms-studio/axios";
3
+ import { log, serverUtils } from "./logs";
4
+ dotenv.config();
5
+
6
+ export const netlifyBuild = async () => {
7
+ let logMsg = `Triggering Netlify build...`;
8
+ log(logMsg, "INFO");
9
+ if (serverUtils) {
10
+ serverUtils.log(logMsg);
11
+ }
12
+
13
+ if (!process.env.FPID_NETLIFY_BUILD_HOOK) {
14
+ logMsg = `FPID_NETLIFY_BUILD_HOOK environment variable not found`;
15
+ if (serverUtils) {
16
+ serverUtils.log(logMsg);
17
+ }
18
+ log(logMsg, "ERROR");
19
+ return;
20
+ }
21
+
22
+ const options = {
23
+ method: "POST",
24
+ url: process.env.FPID_NETLIFY_BUILD_HOOK,
25
+ };
26
+
27
+ try {
28
+ await axios.request(options);
29
+ logMsg = `Netlify build triggered`;
30
+ log(logMsg, "INFO");
31
+ if (serverUtils) {
32
+ serverUtils.log(logMsg);
33
+ }
34
+ } catch (err: any) {
35
+ console.log(err.message);
36
+ }
37
+ };
@@ -28,3 +28,4 @@ export { getStaticDailyProducts } from "./pim/endpoints";
28
28
  export { log, setLogId } from "./libs/logs";
29
29
  export { removeRecordsByStatus } from "./algolia/clean";
30
30
  export { generatePDFByUrl } from "./libs/pdf";
31
+ export { netlifyBuild } from "./libs/netlify";
package/types/index.d.ts CHANGED
@@ -32,3 +32,4 @@ export { removeRecordsByStatus } from "./algolia/clean";
32
32
  export { generatePDFByUrl } from "./libs/pdf";
33
33
  export { importDesigners, importDesigner } from "./pim/methods/designers";
34
34
  export { notify } from "./libs/notifications";
35
+ export { netlifyBuild } from "./libs/netlify";
@@ -0,0 +1 @@
1
+ export declare const netlifyBuild: () => Promise<void>;