pim-import 2.78.2 → 2.78.3

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.
@@ -0,0 +1,117 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.reindexModel = exports.removeSubModelObject = exports.reindexSubModels = exports.reindexSubModel = exports.removeProductObject = exports.reindexProducts = exports.reindexProduct = exports.removeSubFamilyObject = exports.reindexSubFamily = exports.reindexSubFamilies = exports.pipedreamReindex = 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.dailyProductsUpdate = exports.importLatestProducts = exports.importCategories = exports.importDictionaryProductSubLine = exports.importDictionaryProductLine = 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 = exports.reportError = void 0;
4
+ exports.generatePDFByUrl = exports.removeRecordsByStatus = exports.setLogOptions = 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.removeDownloadObject = exports.reindexDownloads = exports.reindexDownload = exports.removeModelObject = exports.reindexModels = void 0;
5
+ const sentry_1 = require("./libs/sentry");
6
+ sentry_1.initSentry();
7
+ var sentry_2 = require("./libs/sentry");
8
+ Object.defineProperty(exports, "reportError", { enumerable: true, get: function () { return sentry_2.reportError; } });
9
+ var config_1 = require("./pim/config");
10
+ Object.defineProperty(exports, "initPim", { enumerable: true, get: function () { return config_1.init; } });
11
+ var contentful_1 = require("./libs/contentful");
12
+ Object.defineProperty(exports, "initContentful", { enumerable: true, get: function () { return contentful_1.init; } });
13
+ Object.defineProperty(exports, "initBaseEntries", { enumerable: true, get: function () { return contentful_1.initBaseEntries; } });
14
+ Object.defineProperty(exports, "deletePages", { enumerable: true, get: function () { return contentful_1.deletePages; } });
15
+ Object.defineProperty(exports, "deleteEntries", { enumerable: true, get: function () { return contentful_1.deleteEntries; } });
16
+ Object.defineProperty(exports, "getEntryByID", { enumerable: true, get: function () { return contentful_1.getEntryByID; } });
17
+ Object.defineProperty(exports, "getTopicPage", { enumerable: true, get: function () { return contentful_1.getTopicPage; } });
18
+ var s3_1 = require("./libs/s3");
19
+ Object.defineProperty(exports, "initS3", { enumerable: true, get: function () { return s3_1.init; } });
20
+ Object.defineProperty(exports, "uploadS3", { enumerable: true, get: function () { return s3_1.upload; } });
21
+ Object.defineProperty(exports, "saveJsonToS3", { enumerable: true, get: function () { return s3_1.saveJsonToS3; } });
22
+ Object.defineProperty(exports, "getFileFromS3", { enumerable: true, get: function () { return s3_1.getFileFromS3; } });
23
+ Object.defineProperty(exports, "savePDFToS3", { enumerable: true, get: function () { return s3_1.savePDFToS3; } });
24
+ var dictionary_1 = require("./pim/methods/dictionary");
25
+ Object.defineProperty(exports, "importDictionaryFields", { enumerable: true, get: function () { return dictionary_1.importDictionaryFields; } });
26
+ Object.defineProperty(exports, "importDictionaryIcons", { enumerable: true, get: function () { return dictionary_1.importDictionaryIcons; } });
27
+ Object.defineProperty(exports, "importDictionaryProductLine", { enumerable: true, get: function () { return dictionary_1.importDictionaryProductLine; } });
28
+ Object.defineProperty(exports, "importDictionaryProductSubLine", { enumerable: true, get: function () { return dictionary_1.importDictionaryProductSubLine; } });
29
+ var catalogs_1 = require("./pim/methods/catalogs");
30
+ Object.defineProperty(exports, "importCategories", { enumerable: true, get: function () { return catalogs_1.importCategories; } });
31
+ var latestProducts_1 = require("./pim/methods/latestProducts");
32
+ Object.defineProperty(exports, "importLatestProducts", { enumerable: true, get: function () { return latestProducts_1.importLatestProducts; } });
33
+ var dailyProductsUpdate_1 = require("./pim/methods/dailyProductsUpdate");
34
+ Object.defineProperty(exports, "dailyProductsUpdate", { enumerable: true, get: function () { return dailyProductsUpdate_1.dailyProductsUpdate; } });
35
+ var models_1 = require("./pim/methods/models");
36
+ Object.defineProperty(exports, "importModels", { enumerable: true, get: function () { return models_1.importModels; } });
37
+ var submodels_1 = require("./pim/methods/submodels");
38
+ Object.defineProperty(exports, "importSubModels", { enumerable: true, get: function () { return submodels_1.importSubModels; } });
39
+ var subfamilies_1 = require("./pim/methods/subfamilies");
40
+ Object.defineProperty(exports, "importSubFamilies", { enumerable: true, get: function () { return subfamilies_1.importSubFamilies; } });
41
+ var families_1 = require("./pim/methods/families");
42
+ Object.defineProperty(exports, "importFamilies", { enumerable: true, get: function () { return families_1.importFamilies; } });
43
+ var products_1 = require("./pim/methods/products");
44
+ Object.defineProperty(exports, "importProductByCode", { enumerable: true, get: function () { return products_1.importProductByCode; } });
45
+ Object.defineProperty(exports, "setProductsRelationships", { enumerable: true, get: function () { return products_1.setProductsRelationships; } });
46
+ Object.defineProperty(exports, "setProductRelationships", { enumerable: true, get: function () { return products_1.setProductRelationships; } });
47
+ Object.defineProperty(exports, "getAllProductEntriesByCatalog", { enumerable: true, get: function () { return products_1.getAllProductEntriesByCatalog; } });
48
+ Object.defineProperty(exports, "audit", { enumerable: true, get: function () { return products_1.audit; } });
49
+ Object.defineProperty(exports, "generateTechSpecPdf", { enumerable: true, get: function () { return products_1.generateTechSpecPdf; } });
50
+ Object.defineProperty(exports, "setProductsAutodescription", { enumerable: true, get: function () { return products_1.setProductsAutodescription; } });
51
+ Object.defineProperty(exports, "getProductAutodescription", { enumerable: true, get: function () { return products_1.getProductAutodescription; } });
52
+ Object.defineProperty(exports, "setProductAutodescriptionByTopicId", { enumerable: true, get: function () { return products_1.setProductAutodescriptionByTopicId; } });
53
+ Object.defineProperty(exports, "removeProductFromColorVariantsByProductLine", { enumerable: true, get: function () { return products_1.removeProductFromColorVariantsByProductLine; } });
54
+ Object.defineProperty(exports, "removeAllProductModelProductRelations", { enumerable: true, get: function () { return products_1.removeAllProductModelProductRelations; } });
55
+ var config_2 = require("./algolia/config");
56
+ Object.defineProperty(exports, "resetIndexSettings", { enumerable: true, get: function () { return config_2.resetIndexSettings; } });
57
+ var families_2 = require("./algolia/families");
58
+ Object.defineProperty(exports, "reindexFamilies", { enumerable: true, get: function () { return families_2.reindexFamilies; } });
59
+ Object.defineProperty(exports, "reindexFamily", { enumerable: true, get: function () { return families_2.reindexFamily; } });
60
+ Object.defineProperty(exports, "removeFamilyObject", { enumerable: true, get: function () { return families_2.removeFamilyObject; } });
61
+ var pipedreamReindex_1 = require("./algolia/pipedreamReindex");
62
+ Object.defineProperty(exports, "pipedreamReindex", { enumerable: true, get: function () { return pipedreamReindex_1.pipedreamReindex; } });
63
+ var subFamilies_1 = require("./algolia/subFamilies");
64
+ Object.defineProperty(exports, "reindexSubFamilies", { enumerable: true, get: function () { return subFamilies_1.reindexSubFamilies; } });
65
+ Object.defineProperty(exports, "reindexSubFamily", { enumerable: true, get: function () { return subFamilies_1.reindexSubFamily; } });
66
+ Object.defineProperty(exports, "removeSubFamilyObject", { enumerable: true, get: function () { return subFamilies_1.removeSubFamilyObject; } });
67
+ var products_2 = require("./algolia/products");
68
+ Object.defineProperty(exports, "reindexProduct", { enumerable: true, get: function () { return products_2.reindexProduct; } });
69
+ Object.defineProperty(exports, "reindexProducts", { enumerable: true, get: function () { return products_2.reindexProducts; } });
70
+ Object.defineProperty(exports, "removeProductObject", { enumerable: true, get: function () { return products_2.removeProductObject; } });
71
+ var subModels_1 = require("./algolia/subModels");
72
+ Object.defineProperty(exports, "reindexSubModel", { enumerable: true, get: function () { return subModels_1.reindexSubModel; } });
73
+ Object.defineProperty(exports, "reindexSubModels", { enumerable: true, get: function () { return subModels_1.reindexSubModels; } });
74
+ Object.defineProperty(exports, "removeSubModelObject", { enumerable: true, get: function () { return subModels_1.removeSubModelObject; } });
75
+ var models_2 = require("./algolia/models");
76
+ Object.defineProperty(exports, "reindexModel", { enumerable: true, get: function () { return models_2.reindexModel; } });
77
+ Object.defineProperty(exports, "reindexModels", { enumerable: true, get: function () { return models_2.reindexModels; } });
78
+ Object.defineProperty(exports, "removeModelObject", { enumerable: true, get: function () { return models_2.removeModelObject; } });
79
+ var downloads_1 = require("./algolia/downloads");
80
+ Object.defineProperty(exports, "reindexDownload", { enumerable: true, get: function () { return downloads_1.reindexDownload; } });
81
+ Object.defineProperty(exports, "reindexDownloads", { enumerable: true, get: function () { return downloads_1.reindexDownloads; } });
82
+ Object.defineProperty(exports, "removeDownloadObject", { enumerable: true, get: function () { return downloads_1.removeDownloadObject; } });
83
+ var projects_1 = require("./algolia/projects");
84
+ Object.defineProperty(exports, "reindexProject", { enumerable: true, get: function () { return projects_1.reindexProject; } });
85
+ Object.defineProperty(exports, "reindexProjects", { enumerable: true, get: function () { return projects_1.reindexProjects; } });
86
+ Object.defineProperty(exports, "removeProjectObject", { enumerable: true, get: function () { return projects_1.removeProjectObject; } });
87
+ var stories_1 = require("./algolia/stories");
88
+ Object.defineProperty(exports, "reindexStory", { enumerable: true, get: function () { return stories_1.reindexStory; } });
89
+ Object.defineProperty(exports, "reindexStories", { enumerable: true, get: function () { return stories_1.reindexStories; } });
90
+ Object.defineProperty(exports, "removeStoryObject", { enumerable: true, get: function () { return stories_1.removeStoryObject; } });
91
+ var pressReview_1 = require("./algolia/pressReview");
92
+ Object.defineProperty(exports, "reindexPressReview", { enumerable: true, get: function () { return pressReview_1.reindexPressReview; } });
93
+ Object.defineProperty(exports, "reindexPressReviews", { enumerable: true, get: function () { return pressReview_1.reindexPressReviews; } });
94
+ Object.defineProperty(exports, "removePressReviewObject", { enumerable: true, get: function () { return pressReview_1.removePressReviewObject; } });
95
+ var pressRelease_1 = require("./algolia/pressRelease");
96
+ Object.defineProperty(exports, "reindexPressRelease", { enumerable: true, get: function () { return pressRelease_1.reindexPressRelease; } });
97
+ Object.defineProperty(exports, "reindexPressReleases", { enumerable: true, get: function () { return pressRelease_1.reindexPressReleases; } });
98
+ Object.defineProperty(exports, "removePressReleaseObject", { enumerable: true, get: function () { return pressRelease_1.removePressReleaseObject; } });
99
+ var news_1 = require("./algolia/news");
100
+ Object.defineProperty(exports, "reindexPost", { enumerable: true, get: function () { return news_1.reindexPost; } });
101
+ Object.defineProperty(exports, "reindexPosts", { enumerable: true, get: function () { return news_1.reindexPosts; } });
102
+ Object.defineProperty(exports, "removePostObject", { enumerable: true, get: function () { return news_1.removePostObject; } });
103
+ var import_1 = require("./downloads/import");
104
+ Object.defineProperty(exports, "importDownloads", { enumerable: true, get: function () { return import_1.importDownloads; } });
105
+ var utils_1 = require("./utils");
106
+ Object.defineProperty(exports, "getLocalISOTime", { enumerable: true, get: function () { return utils_1.getLocalISOTime; } });
107
+ var endpoints_1 = require("./pim/endpoints");
108
+ Object.defineProperty(exports, "getStaticDailyProducts", { enumerable: true, get: function () { return endpoints_1.getStaticDailyProducts; } });
109
+ var logs_1 = require("./libs/logs");
110
+ Object.defineProperty(exports, "log", { enumerable: true, get: function () { return logs_1.log; } });
111
+ Object.defineProperty(exports, "setLogId", { enumerable: true, get: function () { return logs_1.setLogId; } });
112
+ Object.defineProperty(exports, "setLogOptions", { enumerable: true, get: function () { return logs_1.setLogOptions; } });
113
+ var clean_1 = require("./algolia/clean");
114
+ Object.defineProperty(exports, "removeRecordsByStatus", { enumerable: true, get: function () { return clean_1.removeRecordsByStatus; } });
115
+ var puppeteer_1 = require("./libs/puppeteer");
116
+ Object.defineProperty(exports, "generatePDFByUrl", { enumerable: true, get: function () { return puppeteer_1.generatePDFByUrl; } });
117
+ //# sourceMappingURL=browser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"browser.js","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":";;;;AAAA,0CAA2C;AAC3C,mBAAU,EAAE,CAAC;AACb,wCAA4C;AAAnC,qGAAA,WAAW,OAAA;AACpB,uCAA+C;AAAtC,iGAAA,IAAI,OAAW;AACxB,gDAO2B;AANzB,4GAAA,IAAI,OAAkB;AACtB,6GAAA,eAAe,OAAA;AACf,yGAAA,WAAW,OAAA;AACX,2GAAA,aAAa,OAAA;AACb,0GAAA,YAAY,OAAA;AACZ,0GAAA,YAAY,OAAA;AAEd,gCAMmB;AALjB,4FAAA,IAAI,OAAU;AACd,8FAAA,MAAM,OAAY;AAClB,kGAAA,YAAY,OAAA;AACZ,mGAAA,aAAa,OAAA;AACb,iGAAA,WAAW,OAAA;AAEb,uDAKkC;AAJhC,oHAAA,sBAAsB,OAAA;AACtB,mHAAA,qBAAqB,OAAA;AACrB,yHAAA,2BAA2B,OAAA;AAC3B,4HAAA,8BAA8B,OAAA;AAEhC,mDAA0D;AAAjD,4GAAA,gBAAgB,OAAA;AACzB,+DAAoE;AAA3D,sHAAA,oBAAoB,OAAA;AAC7B,yEAAwE;AAA/D,0HAAA,mBAAmB,OAAA;AAC5B,+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,mDAYgC;AAX9B,+GAAA,mBAAmB,OAAA;AACnB,oHAAA,wBAAwB,OAAA;AACxB,mHAAA,uBAAuB,OAAA;AACvB,yHAAA,6BAA6B,OAAA;AAC7B,iGAAA,KAAK,OAAA;AACL,+GAAA,mBAAmB,OAAA;AACnB,sHAAA,0BAA0B,OAAA;AAC1B,qHAAA,yBAAyB,O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6CAAqD;AAA5C,yGAAA,eAAe,OAAA;AACxB,iCAA0C;AAAjC,wGAAA,eAAe,OAAA;AACxB,6CAAyD;AAAhD,mHAAA,sBAAsB,OAAA;AAC/B,oCAA2D;AAAlD,2FAAA,GAAG,OAAA;AAAE,gGAAA,QAAQ,OAAA;AAAE,qGAAA,aAAa,OAAA;AACrC,yCAAwD;AAA/C,8GAAA,qBAAqB,OAAA;AAC9B,8CAAoD;AAA3C,6GAAA,gBAAgB,OAAA"}
@@ -265,6 +265,13 @@
265
265
  "dictionary": "",
266
266
  "type": "number"
267
267
  },
268
+ {
269
+ "key": "length_us",
270
+ "parent": "physical",
271
+ "icon": false,
272
+ "dictionary": "",
273
+ "type": "number"
274
+ },
268
275
  {
269
276
  "key": "netWeight",
270
277
  "parent": "logistic",
@@ -475,6 +482,13 @@
475
482
  "dictionary": "",
476
483
  "type": "number"
477
484
  },
485
+ {
486
+ "key": "vac",
487
+ "parent": "electrical",
488
+ "icon": false,
489
+ "dictionary": "",
490
+ "type": "string"
491
+ },
478
492
  {
479
493
  "key": "vdc",
480
494
  "parent": "electrical",
@@ -783,6 +797,13 @@
783
797
  "dictionary": "",
784
798
  "type": "number"
785
799
  },
800
+ {
801
+ "key": "rgGamutIndex",
802
+ "parent": "photomestric",
803
+ "icon": false,
804
+ "dictionary": "",
805
+ "type": "number"
806
+ },
786
807
  {
787
808
  "key": "transversalTilting",
788
809
  "parent": "physical",
@@ -838,5 +859,229 @@
838
859
  "icon": false,
839
860
  "dictionary": "DTernaryFlag",
840
861
  "type": "object"
862
+ },
863
+ {
864
+ "key": "priceLists",
865
+ "parent": "",
866
+ "icon": false,
867
+ "dictionary": "DPriceList",
868
+ "type": "array"
869
+ },
870
+ {
871
+ "key": "productionSite",
872
+ "parent": "",
873
+ "icon": false,
874
+ "dictionary": "DProductionSite",
875
+ "type": "object"
876
+ },
877
+ {
878
+ "key": "customProduct",
879
+ "parent": "",
880
+ "icon": false,
881
+ "dictionary": "DTernaryFlag",
882
+ "type": "object"
883
+ },
884
+ {
885
+ "key": "bucketColours",
886
+ "parent": "",
887
+ "icon": true,
888
+ "dictionary": "DWebColour",
889
+ "type": "array"
890
+ },
891
+ {
892
+ "key": "quickDelivery",
893
+ "parent": "",
894
+ "icon": false,
895
+ "dictionary": "DTernaryFlag",
896
+ "type": "object"
897
+ },
898
+ {
899
+ "key": "reflectorFinish",
900
+ "parent": "optical",
901
+ "icon": false,
902
+ "dictionary": "DReflectorFinish",
903
+ "type": "object"
904
+ },
905
+ {
906
+ "key": "screenFinish",
907
+ "parent": "optical",
908
+ "icon": false,
909
+ "dictionary": "",
910
+ "type": "string"
911
+ },
912
+ {
913
+ "key": "cutOff",
914
+ "parent": "electrical",
915
+ "icon": false,
916
+ "dictionary": "",
917
+ "type": "boolean"
918
+ },
919
+ {
920
+ "key": "emergencyLightingFlux",
921
+ "parent": "electrical",
922
+ "icon": false,
923
+ "dictionary": "",
924
+ "type": "number"
925
+ },
926
+ {
927
+ "key": "lightSourceIncluded",
928
+ "parent": "electrical",
929
+ "icon": false,
930
+ "dictionary": "",
931
+ "type": "string"
932
+ },
933
+ {
934
+ "key": "phases",
935
+ "parent": "electrical",
936
+ "icon": false,
937
+ "dictionary": "DPhase",
938
+ "type": "array"
939
+ },
940
+ {
941
+ "key": "maximumWattage",
942
+ "parent": "electrical",
943
+ "icon": false,
944
+ "dictionary": "",
945
+ "type": "number"
946
+ },
947
+ {
948
+ "key": "driverInputVoltage",
949
+ "parent": "electrical",
950
+ "icon": false,
951
+ "dictionary": "",
952
+ "type": "string"
953
+ },
954
+ {
955
+ "key": "driverOutputVoltage",
956
+ "parent": "electrical",
957
+ "icon": false,
958
+ "dictionary": "",
959
+ "type": "string"
960
+ },
961
+ {
962
+ "key": "lor",
963
+ "parent": "photometric",
964
+ "icon": false,
965
+ "dictionary": "",
966
+ "type": "string"
967
+ },
968
+ {
969
+ "key": "rgGamutIndex",
970
+ "parent": "photometric",
971
+ "icon": false,
972
+ "dictionary": "",
973
+ "type": "number"
974
+ },
975
+ {
976
+ "key": "suspensionType",
977
+ "parent": "physical",
978
+ "icon": false,
979
+ "dictionary": "DSuspensionType",
980
+ "type": "object"
981
+ },
982
+ {
983
+ "key": "constructionMaterial",
984
+ "parent": "physical",
985
+ "icon": false,
986
+ "dictionary": "",
987
+ "type": "string"
988
+ },
989
+ {
990
+ "key": "width",
991
+ "parent": "physical",
992
+ "icon": false,
993
+ "dictionary": "",
994
+ "type": "number"
995
+ },
996
+ {
997
+ "key": "width_us",
998
+ "parent": "physical",
999
+ "icon": false,
1000
+ "dictionary": "",
1001
+ "type": "number"
1002
+ },
1003
+ {
1004
+ "key": "height",
1005
+ "parent": "physical",
1006
+ "icon": false,
1007
+ "dictionary": "",
1008
+ "type": "number"
1009
+ },
1010
+ {
1011
+ "key": "height_us",
1012
+ "parent": "physical",
1013
+ "icon": false,
1014
+ "dictionary": "",
1015
+ "type": "number"
1016
+ },
1017
+ {
1018
+ "key": "cableIngress",
1019
+ "parent": "physical",
1020
+ "icon": false,
1021
+ "dictionary": "DCableIngress",
1022
+ "type": "object"
1023
+ },
1024
+ {
1025
+ "key": "cordsColour",
1026
+ "parent": "physical",
1027
+ "icon": false,
1028
+ "dictionary": "DWebColour",
1029
+ "type": "array"
1030
+ },
1031
+ {
1032
+ "key": "canopyColor",
1033
+ "parent": "physical",
1034
+ "icon": false,
1035
+ "dictionary": "DWebColour",
1036
+ "type": "object"
1037
+ },
1038
+ {
1039
+ "key": "shippingPkgQty",
1040
+ "parent": "logistic",
1041
+ "icon": false,
1042
+ "dictionary": "",
1043
+ "type": "string"
1044
+ },
1045
+ {
1046
+ "key": "pkgRefCode",
1047
+ "parent": "logistic",
1048
+ "icon": false,
1049
+ "dictionary": "",
1050
+ "type": "string"
1051
+ },
1052
+ {
1053
+ "key": "available",
1054
+ "parent": "logistic",
1055
+ "icon": false,
1056
+ "dictionary": "DTernaryFlag",
1057
+ "type": "object"
1058
+ },
1059
+ {
1060
+ "key": "production",
1061
+ "parent": "logistic",
1062
+ "icon": false,
1063
+ "dictionary": "DProduction",
1064
+ "type": "object"
1065
+ },
1066
+ {
1067
+ "key": "euRule",
1068
+ "parent": "certification",
1069
+ "icon": false,
1070
+ "dictionary": "",
1071
+ "type": "string"
1072
+ },
1073
+ {
1074
+ "key": "lightObjMinDist",
1075
+ "parent": "marking",
1076
+ "icon": false,
1077
+ "dictionary": "",
1078
+ "type": "number"
1079
+ },
1080
+ {
1081
+ "key": "spareParts",
1082
+ "parent": "DTernaryFlag",
1083
+ "icon": false,
1084
+ "dictionary": "",
1085
+ "type": "object"
841
1086
  }
842
1087
  ]
@@ -13,37 +13,6 @@ const logs_1 = require("../../libs/logs");
13
13
  const utils_1 = require("../../utils");
14
14
  exports.contentTypeId = "globalJsonFile";
15
15
  exports.entryId = "globalJsonProductFields";
16
- const updateContentfulDictionaryData = async (data, clearBefore = false) => {
17
- logs_1.log(`updateContentfulDictionaryData - Start`, "INFO");
18
- const environment = await contentful_1.getEnvironment();
19
- const defaultEnvironmentLocaleCode = await contentful_1.getEnvironmentDefaultLocaleCode();
20
- logs_1.log(`Check if dictionary entry exists`);
21
- let entry = await contentful_1.getEntryByID(exports.entryId, exports.contentTypeId);
22
- const entryData = {
23
- fields: {},
24
- };
25
- if (entry) {
26
- logs_1.log(`Dictionary entry exists. Update entry data`);
27
- if (clearBefore &&
28
- Object.entries(entry.fields.json[defaultEnvironmentLocaleCode]).length) {
29
- entry.fields.json[defaultEnvironmentLocaleCode] = {};
30
- entry = await entry.update();
31
- }
32
- entryData.fields = entry?.fields || {};
33
- entryData.fields = await contentful_1.addFieldValue(entryData, "internalName", "DictionaryProductFields");
34
- entryData.fields = await contentful_1.addFieldValue(entryData, "json", data);
35
- entry = await entry.update();
36
- entry = await entry.publish();
37
- }
38
- else {
39
- logs_1.log(`Entry not exists. Create new entry with data`);
40
- entryData.fields = await contentful_1.addFieldValue(entryData, "internalName", "DictionaryProductFields");
41
- entryData.fields = await contentful_1.addFieldValue(entryData, "json", data);
42
- entry = await environment.createEntryWithId(exports.contentTypeId, exports.entryId, entryData);
43
- entry = await entry.publish();
44
- }
45
- logs_1.log(`updateContentfulDictionaryData - Completed`);
46
- };
47
16
  const getRequiredDictionaryDataWithIcons = () => {
48
17
  return productFields_json_1.default.filter((field) => field.icon);
49
18
  };
@@ -83,13 +52,11 @@ const importDictionaryIcons = async (skipAlreadyExistsCheck = false) => {
83
52
  try {
84
53
  s3_1.checkConfig();
85
54
  logs_1.log("importDictionaryIcons - Start", "INFO");
86
- logs_1.log("Get dictionary Contentful entry");
87
- const defaultEnvironmentLocaleCode = await contentful_1.getEnvironmentDefaultLocaleCode();
88
- const entry = await contentful_1.getEntryByID(exports.entryId, exports.contentTypeId);
89
- if (!entry) {
90
- throw new Error("Dictionary entry not exists.");
55
+ logs_1.log("Get S3 JSON dictionary file");
56
+ const data = await s3_1.getFileFromS3(`dictionary.json`);
57
+ if (!data) {
58
+ throw new Error("Dictionary JSON file not found on S3.");
91
59
  }
92
- const data = entry.fields.json[defaultEnvironmentLocaleCode];
93
60
  const requiredDictionaryDataWithIcons = getRequiredDictionaryDataWithIcons();
94
61
  for (const reqField of requiredDictionaryDataWithIcons) {
95
62
  const reqFieldKey = reqField.key;
@@ -124,8 +91,8 @@ const importDictionaryIcons = async (skipAlreadyExistsCheck = false) => {
124
91
  else {
125
92
  logs_1.log(`No certifications found into contenful dictionary`);
126
93
  }
127
- logs_1.log("Updating Contentful dictionary entry data");
128
- await updateContentfulDictionaryData(data, true);
94
+ logs_1.log("Updating S3 dictionary entry data");
95
+ await s3_1.saveJsonToS3(data, "dictionary.json");
129
96
  logs_1.log("importDictionaryIcons - Completed");
130
97
  return { completed: true };
131
98
  }
@@ -205,7 +172,7 @@ const importDictionaryFields = async (offset = 0, limit = -1) => {
205
172
  }
206
173
  if (Object.entries(data).length) {
207
174
  logs_1.log("Create/Update Contentful entry");
208
- await updateContentfulDictionaryData(data, offset === 0);
175
+ await s3_1.saveJsonToS3(data, "dictionary.json", "");
209
176
  }
210
177
  else {
211
178
  logs_1.log("no matches found", "ERROR");
@@ -1 +1 @@
1
- {"version":3,"file":"dictionary.js","sourceRoot":"","sources":["../../../src/pim/methods/dictionary.ts"],"names":[],"mappings":";;;;;;AAAA,4CAA6C;AAM7C,sDAS+B;AAC/B,oFAAmE;AACnE,4DAA8B;AAC9B,sCAIuB;AAKvB,0CAAsC;AACtC,uCAIqB;AAGR,QAAA,aAAa,GAAG,gBAAgB,CAAC;AACjC,QAAA,OAAO,GAAG,yBAAyB,CAAC;AAuBjD,MAAM,8BAA8B,GAAG,KAAK,EAC1C,IAA8B,EAC9B,cAAuB,KAAK,EAC5B,EAAE;IACF,UAAG,CAAC,wCAAwC,EAAE,MAAM,CAAC,CAAC;IAEtD,MAAM,WAAW,GAAG,MAAM,2BAAc,EAAE,CAAC;IAC3C,MAAM,4BAA4B,GAAG,MAAM,4CAA+B,EAAE,CAAC;IAG7E,UAAG,CAAC,kCAAkC,CAAC,CAAC;IACxC,IAAI,KAAK,GAAG,MAAM,yBAAY,CAAC,eAAO,EAAE,qBAAa,CAAC,CAAC;IAEvD,MAAM,SAAS,GAAqB;QAClC,MAAM,EAAE,EAAE;KACX,CAAC;IAEF,IAAI,KAAK,EAAE;QAET,UAAG,CAAC,4CAA4C,CAAC,CAAC;QAClD,IACE,WAAW;YACX,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,4BAA4B,CAAC,CAAC,CAAC,MAAM,EACtE;YACA,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,4BAA4B,CAAC,GAAG,EAAE,CAAC;YACrD,KAAK,GAAG,MAAM,KAAK,CAAC,MAAM,EAAE,CAAC;SAC9B;QAED,SAAS,CAAC,MAAM,GAAG,KAAK,EAAE,MAAM,IAAI,EAAE,CAAC;QAEvC,SAAS,CAAC,MAAM,GAAG,MAAM,0BAAa,CACpC,SAAS,EACT,cAAc,EACd,yBAAyB,CAC1B,CAAC;QACF,SAAS,CAA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,cAAc,CAAC,IAAI,EAAE,CAClI,CAAC;qBACH;iBACF;qBAAM;oBACL,UAAG,CACD,sDAAsD,cAAc,CAAC,IAAI,WAAW,CACrF,CAAC;iBACH;gBAED,MAAM,IAAI,GAAqB,MAAM,qBAAqB,CACxD,KAAK,EACL,cAAc,CAAC,IAAI,EACnB,gBAAgB,EAChB,mBAAmB,CACpB,CAAC;gBAEF,IAAI,mBAAmB,EAAE;oBACvB,UAAG,CACD,kBAAkB,cAAc,CAAC,IAAI,8BAA8B,CACpE,CAAC;oBACF,mBAAmB,GAAG,MAAM,wBAAW,CACrC,mBAAmB,EACnB,IAAI,EACJ,mBAAmB,CAAC,WAAW,EAAE,CAClC,CAAC;iBACH;qBAAM;oBACL,UAAG,CACD,kBAAkB,cAAc,CAAC,IAAI,yCAAyC,CAC/E,CAAC;oBACF,mBAAmB,GAAG,MAAM,8BAAiB,CAC3C,qBAAqB,EACrB,cAAc,CAAC,IAAI,EACnB,IAAI,EACJ,IAAI,CACL,CAAC;iBACH;gBAED,EAAE,KAAK,CAAC;aACT;SACF;QAED,OAAO,KAAK,CAAC;KACd;SAAM;QACL,UAAG,CAAC,iCAAiC,EAAE,OAAO,CAAC,CAAC;KACjD;AACH,CAAC,CAAC;AAzEW,QAAA,8BAA8B,kCAyEzC"}
1
+ {"version":3,"file":"dictionary.js","sourceRoot":"","sources":["../../../src/pim/methods/dictionary.ts"],"names":[],"mappings":";;;;;;AAAA,4CAA6C;AAM7C,sDAM+B;AAC/B,oFAAmE;AACnE,4DAA8B;AAC9B,sCAKuB;AAKvB,0CAAsC;AACtC,uCAIqB;AAGR,QAAA,aAAa,GAAG,gBAAgB,CAAC;AACjC,QAAA,OAAO,GAAG,yBAAyB,CAAC;AAmBjD,MAAM,kCAAkC,GAAG,GAAgC,EAAE;IAC3E,OAAO,4BAAyB,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;AACjE,CAAC,CAAC;A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B,GAAG,IAAI,CAAC;gBAC5B,IAAI,cAAc,CAAC,UAAU,CAAC,WAAW,CAAC,IAAI,EAAE;oBAC9C,gBAAgB,GAAG,MAAM,2BAAc,CACrC,cAAc,CAAC,UAAU,CAAC,WAAW,CAAC,IAAI,EAC1C,kBAAkB,CACnB,CAAC;oBAEF,IAAI,CAAC,gBAAgB,EAAE;wBACrB,UAAG,CACD,iCAAiC,cAAc,CAAC,UAAU,CAAC,WAAW,CAAC,IAAI,iCAAiC,cAAc,CAAC,IAAI,EAAE,CAClI,CAAC;qBACH;iBACF;qBAAM;oBACL,UAAG,CACD,sDAAsD,cAAc,CAAC,IAAI,WAAW,CACrF,CAAC;iBACH;gBAED,MAAM,IAAI,GAAqB,MAAM,qBAAqB,CACxD,KAAK,EACL,cAAc,CAAC,IAAI,EACnB,gBAAgB,EAChB,mBAAmB,CACpB,CAAC;gBAEF,IAAI,mBAAmB,EAAE;oBACvB,UAAG,CACD,kBAAkB,cAAc,CAAC,IAAI,8BAA8B,CACpE,CAAC;oBACF,mBAAmB,GAAG,MAAM,wBAAW,CACrC,mBAAmB,EACnB,IAAI,EACJ,mBAAmB,CAAC,WAAW,EAAE,CAClC,CAAC;iBACH;qBAAM;oBACL,UAAG,CACD,kBAAkB,cAAc,CAAC,IAAI,yCAAyC,CAC/E,CAAC;oBACF,mBAAmB,GAAG,MAAM,8BAAiB,CAC3C,qBAAqB,EACrB,cAAc,CAAC,IAAI,EACnB,IAAI,EACJ,IAAI,CACL,CAAC;iBACH;gBAED,EAAE,KAAK,CAAC;aACT;SACF;QAED,OAAO,KAAK,CAAC;KACd;SAAM;QACL,UAAG,CAAC,iCAAiC,EAAE,OAAO,CAAC,CAAC;KACjD;AACH,CAAC,CAAC;AAzEW,QAAA,8BAA8B,kCAyEzC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pim-import",
3
- "version": "2.78.2",
3
+ "version": "2.78.3",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "types": "types/index.d.ts",
package/src/browser.ts ADDED
@@ -0,0 +1,117 @@
1
+ import { initSentry } from "./libs/sentry";
2
+ initSentry();
3
+ export { reportError } from "./libs/sentry";
4
+ export { init as initPim } from "./pim/config";
5
+ export {
6
+ init as initContentful,
7
+ initBaseEntries,
8
+ deletePages,
9
+ deleteEntries,
10
+ getEntryByID,
11
+ getTopicPage,
12
+ } from "./libs/contentful";
13
+ export {
14
+ init as initS3,
15
+ upload as uploadS3,
16
+ saveJsonToS3,
17
+ getFileFromS3,
18
+ savePDFToS3,
19
+ } from "./libs/s3";
20
+ export {
21
+ importDictionaryFields,
22
+ importDictionaryIcons,
23
+ importDictionaryProductLine,
24
+ importDictionaryProductSubLine,
25
+ } from "./pim/methods/dictionary";
26
+ export { importCategories } from "./pim/methods/catalogs";
27
+ export { importLatestProducts } from "./pim/methods/latestProducts";
28
+ export { dailyProductsUpdate } from "./pim/methods/dailyProductsUpdate";
29
+ export { importModels } from "./pim/methods/models";
30
+ export { importSubModels } from "./pim/methods/submodels";
31
+ export { importSubFamilies } from "./pim/methods/subfamilies";
32
+ export { importFamilies } from "./pim/methods/families";
33
+ export {
34
+ importProductByCode,
35
+ setProductsRelationships,
36
+ setProductRelationships,
37
+ getAllProductEntriesByCatalog,
38
+ audit,
39
+ generateTechSpecPdf,
40
+ setProductsAutodescription,
41
+ getProductAutodescription,
42
+ setProductAutodescriptionByTopicId,
43
+ removeProductFromColorVariantsByProductLine,
44
+ removeAllProductModelProductRelations,
45
+ } from "./pim/methods/products";
46
+ // export {
47
+ // createOrUpdateCatalogPages,
48
+ // createOrUpdateCatalogPageByCode,
49
+ // } from "./pim/methods/pages/catalogs";
50
+ export { resetIndexSettings } from "./algolia/config";
51
+ export {
52
+ reindexFamilies,
53
+ reindexFamily,
54
+ removeFamilyObject,
55
+ } from "./algolia/families";
56
+ export { pipedreamReindex } from "./algolia/pipedreamReindex";
57
+ // export {
58
+ // createOrUpdateFamilyPages,
59
+ // createOrUpdateFamilyPageByCode,
60
+ // } from "./pim/methods/pages/families";
61
+ export {
62
+ reindexSubFamilies,
63
+ reindexSubFamily,
64
+ removeSubFamilyObject,
65
+ } from "./algolia/subFamilies";
66
+ // export {
67
+ // createOrUpdateSubFamilyPages,
68
+ // createOrUpdateSubFamilyPageByCode,
69
+ // createOrUpdateSubFamilyPagesByCatalog,
70
+ // } from "./pim/methods/pages/subfamilies";
71
+ export {
72
+ reindexProduct,
73
+ reindexProducts,
74
+ removeProductObject,
75
+ } from "./algolia/products";
76
+ export {
77
+ reindexSubModel,
78
+ reindexSubModels,
79
+ removeSubModelObject,
80
+ } from "./algolia/subModels";
81
+ export {
82
+ reindexModel,
83
+ reindexModels,
84
+ removeModelObject,
85
+ } from "./algolia/models";
86
+ export {
87
+ reindexDownload,
88
+ reindexDownloads,
89
+ removeDownloadObject,
90
+ } from "./algolia/downloads";
91
+ export {
92
+ reindexProject,
93
+ reindexProjects,
94
+ removeProjectObject,
95
+ } from "./algolia/projects";
96
+ export {
97
+ reindexStory,
98
+ reindexStories,
99
+ removeStoryObject,
100
+ } from "./algolia/stories";
101
+ export {
102
+ reindexPressReview,
103
+ reindexPressReviews,
104
+ removePressReviewObject,
105
+ } from "./algolia/pressReview";
106
+ export {
107
+ reindexPressRelease,
108
+ reindexPressReleases,
109
+ removePressReleaseObject,
110
+ } from "./algolia/pressRelease";
111
+ export { reindexPost, reindexPosts, removePostObject } from "./algolia/news";
112
+ export { importDownloads } from "./downloads/import";
113
+ export { getLocalISOTime } from "./utils";
114
+ export { getStaticDailyProducts } from "./pim/endpoints";
115
+ export { log, setLogId, setLogOptions } from "./libs/logs";
116
+ export { removeRecordsByStatus } from "./algolia/clean";
117
+ export { generatePDFByUrl } from "./libs/puppeteer";
@@ -265,6 +265,13 @@
265
265
  "dictionary": "",
266
266
  "type": "number"
267
267
  },
268
+ {
269
+ "key": "length_us",
270
+ "parent": "physical",
271
+ "icon": false,
272
+ "dictionary": "",
273
+ "type": "number"
274
+ },
268
275
  {
269
276
  "key": "netWeight",
270
277
  "parent": "logistic",
@@ -475,6 +482,13 @@
475
482
  "dictionary": "",
476
483
  "type": "number"
477
484
  },
485
+ {
486
+ "key": "vac",
487
+ "parent": "electrical",
488
+ "icon": false,
489
+ "dictionary": "",
490
+ "type": "string"
491
+ },
478
492
  {
479
493
  "key": "vdc",
480
494
  "parent": "electrical",
@@ -783,6 +797,13 @@
783
797
  "dictionary": "",
784
798
  "type": "number"
785
799
  },
800
+ {
801
+ "key": "rgGamutIndex",
802
+ "parent": "photomestric",
803
+ "icon": false,
804
+ "dictionary": "",
805
+ "type": "number"
806
+ },
786
807
  {
787
808
  "key": "transversalTilting",
788
809
  "parent": "physical",
@@ -838,5 +859,229 @@
838
859
  "icon": false,
839
860
  "dictionary": "DTernaryFlag",
840
861
  "type": "object"
862
+ },
863
+ {
864
+ "key": "priceLists",
865
+ "parent": "",
866
+ "icon": false,
867
+ "dictionary": "DPriceList",
868
+ "type": "array"
869
+ },
870
+ {
871
+ "key": "productionSite",
872
+ "parent": "",
873
+ "icon": false,
874
+ "dictionary": "DProductionSite",
875
+ "type": "object"
876
+ },
877
+ {
878
+ "key": "customProduct",
879
+ "parent": "",
880
+ "icon": false,
881
+ "dictionary": "DTernaryFlag",
882
+ "type": "object"
883
+ },
884
+ {
885
+ "key": "bucketColours",
886
+ "parent": "",
887
+ "icon": true,
888
+ "dictionary": "DWebColour",
889
+ "type": "array"
890
+ },
891
+ {
892
+ "key": "quickDelivery",
893
+ "parent": "",
894
+ "icon": false,
895
+ "dictionary": "DTernaryFlag",
896
+ "type": "object"
897
+ },
898
+ {
899
+ "key": "reflectorFinish",
900
+ "parent": "optical",
901
+ "icon": false,
902
+ "dictionary": "DReflectorFinish",
903
+ "type": "object"
904
+ },
905
+ {
906
+ "key": "screenFinish",
907
+ "parent": "optical",
908
+ "icon": false,
909
+ "dictionary": "",
910
+ "type": "string"
911
+ },
912
+ {
913
+ "key": "cutOff",
914
+ "parent": "electrical",
915
+ "icon": false,
916
+ "dictionary": "",
917
+ "type": "boolean"
918
+ },
919
+ {
920
+ "key": "emergencyLightingFlux",
921
+ "parent": "electrical",
922
+ "icon": false,
923
+ "dictionary": "",
924
+ "type": "number"
925
+ },
926
+ {
927
+ "key": "lightSourceIncluded",
928
+ "parent": "electrical",
929
+ "icon": false,
930
+ "dictionary": "",
931
+ "type": "string"
932
+ },
933
+ {
934
+ "key": "phases",
935
+ "parent": "electrical",
936
+ "icon": false,
937
+ "dictionary": "DPhase",
938
+ "type": "array"
939
+ },
940
+ {
941
+ "key": "maximumWattage",
942
+ "parent": "electrical",
943
+ "icon": false,
944
+ "dictionary": "",
945
+ "type": "number"
946
+ },
947
+ {
948
+ "key": "driverInputVoltage",
949
+ "parent": "electrical",
950
+ "icon": false,
951
+ "dictionary": "",
952
+ "type": "string"
953
+ },
954
+ {
955
+ "key": "driverOutputVoltage",
956
+ "parent": "electrical",
957
+ "icon": false,
958
+ "dictionary": "",
959
+ "type": "string"
960
+ },
961
+ {
962
+ "key": "lor",
963
+ "parent": "photometric",
964
+ "icon": false,
965
+ "dictionary": "",
966
+ "type": "string"
967
+ },
968
+ {
969
+ "key": "rgGamutIndex",
970
+ "parent": "photometric",
971
+ "icon": false,
972
+ "dictionary": "",
973
+ "type": "number"
974
+ },
975
+ {
976
+ "key": "suspensionType",
977
+ "parent": "physical",
978
+ "icon": false,
979
+ "dictionary": "DSuspensionType",
980
+ "type": "object"
981
+ },
982
+ {
983
+ "key": "constructionMaterial",
984
+ "parent": "physical",
985
+ "icon": false,
986
+ "dictionary": "",
987
+ "type": "string"
988
+ },
989
+ {
990
+ "key": "width",
991
+ "parent": "physical",
992
+ "icon": false,
993
+ "dictionary": "",
994
+ "type": "number"
995
+ },
996
+ {
997
+ "key": "width_us",
998
+ "parent": "physical",
999
+ "icon": false,
1000
+ "dictionary": "",
1001
+ "type": "number"
1002
+ },
1003
+ {
1004
+ "key": "height",
1005
+ "parent": "physical",
1006
+ "icon": false,
1007
+ "dictionary": "",
1008
+ "type": "number"
1009
+ },
1010
+ {
1011
+ "key": "height_us",
1012
+ "parent": "physical",
1013
+ "icon": false,
1014
+ "dictionary": "",
1015
+ "type": "number"
1016
+ },
1017
+ {
1018
+ "key": "cableIngress",
1019
+ "parent": "physical",
1020
+ "icon": false,
1021
+ "dictionary": "DCableIngress",
1022
+ "type": "object"
1023
+ },
1024
+ {
1025
+ "key": "cordsColour",
1026
+ "parent": "physical",
1027
+ "icon": false,
1028
+ "dictionary": "DWebColour",
1029
+ "type": "array"
1030
+ },
1031
+ {
1032
+ "key": "canopyColor",
1033
+ "parent": "physical",
1034
+ "icon": false,
1035
+ "dictionary": "DWebColour",
1036
+ "type": "object"
1037
+ },
1038
+ {
1039
+ "key": "shippingPkgQty",
1040
+ "parent": "logistic",
1041
+ "icon": false,
1042
+ "dictionary": "",
1043
+ "type": "string"
1044
+ },
1045
+ {
1046
+ "key": "pkgRefCode",
1047
+ "parent": "logistic",
1048
+ "icon": false,
1049
+ "dictionary": "",
1050
+ "type": "string"
1051
+ },
1052
+ {
1053
+ "key": "available",
1054
+ "parent": "logistic",
1055
+ "icon": false,
1056
+ "dictionary": "DTernaryFlag",
1057
+ "type": "object"
1058
+ },
1059
+ {
1060
+ "key": "production",
1061
+ "parent": "logistic",
1062
+ "icon": false,
1063
+ "dictionary": "DProduction",
1064
+ "type": "object"
1065
+ },
1066
+ {
1067
+ "key": "euRule",
1068
+ "parent": "certification",
1069
+ "icon": false,
1070
+ "dictionary": "",
1071
+ "type": "string"
1072
+ },
1073
+ {
1074
+ "key": "lightObjMinDist",
1075
+ "parent": "marking",
1076
+ "icon": false,
1077
+ "dictionary": "",
1078
+ "type": "number"
1079
+ },
1080
+ {
1081
+ "key": "spareParts",
1082
+ "parent": "DTernaryFlag",
1083
+ "icon": false,
1084
+ "dictionary": "",
1085
+ "type": "object"
841
1086
  }
842
1087
  ]
@@ -5,9 +5,6 @@ import {
5
5
  ProductFieldsRequiredData,
6
6
  } from "../../types";
7
7
  import {
8
- getEnvironment,
9
- getEnvironmentDefaultLocaleCode,
10
- getEntryByID,
11
8
  createEntryWithId,
12
9
  updateEntry,
13
10
  getEntryByCode,
@@ -20,6 +17,7 @@ import {
20
17
  checkConfig as checkS3Config,
21
18
  upload as uploadToS3,
22
19
  getFileFromS3,
20
+ saveJsonToS3,
23
21
  } from "../../libs/s3";
24
22
  import type {
25
23
  CreateEntryProps,
@@ -53,69 +51,6 @@ type DictionaryRecord = {
53
51
  otherData: ObjectPartial;
54
52
  };
55
53
 
56
- interface DictionaryContentfulData {
57
- [key: string]: DictionaryRecord[];
58
- }
59
-
60
- const updateContentfulDictionaryData = async (
61
- data: DictionaryContentfulData,
62
- clearBefore: boolean = false
63
- ) => {
64
- log(`updateContentfulDictionaryData - Start`, "INFO");
65
-
66
- const environment = await getEnvironment();
67
- const defaultEnvironmentLocaleCode = await getEnvironmentDefaultLocaleCode();
68
-
69
- // Check if entry exists
70
- log(`Check if dictionary entry exists`);
71
- let entry = await getEntryByID(entryId, contentTypeId);
72
-
73
- const entryData: CreateEntryProps = {
74
- fields: {},
75
- };
76
-
77
- if (entry) {
78
- // Entry exists. Update entry data
79
- log(`Dictionary entry exists. Update entry data`);
80
- if (
81
- clearBefore &&
82
- Object.entries(entry.fields.json[defaultEnvironmentLocaleCode]).length
83
- ) {
84
- entry.fields.json[defaultEnvironmentLocaleCode] = {};
85
- entry = await entry.update();
86
- }
87
-
88
- entryData.fields = entry?.fields || {};
89
-
90
- entryData.fields = await addFieldValue(
91
- entryData,
92
- "internalName",
93
- "DictionaryProductFields"
94
- );
95
- entryData.fields = await addFieldValue(entryData, "json", data);
96
- entry = await entry.update();
97
- entry = await entry.publish();
98
- } else {
99
- // Entry not exists. Create new entry with data
100
- log(`Entry not exists. Create new entry with data`);
101
-
102
- entryData.fields = await addFieldValue(
103
- entryData,
104
- "internalName",
105
- "DictionaryProductFields"
106
- );
107
- entryData.fields = await addFieldValue(entryData, "json", data);
108
- entry = await environment.createEntryWithId(
109
- contentTypeId,
110
- entryId,
111
- entryData
112
- );
113
- entry = await entry.publish();
114
- }
115
-
116
- log(`updateContentfulDictionaryData - Completed`);
117
- };
118
-
119
54
  const getRequiredDictionaryDataWithIcons = (): ProductFieldsRequiredData[] => {
120
55
  return productFieldsRequiredData.filter((field) => field.icon);
121
56
  };
@@ -174,17 +109,13 @@ export const importDictionaryIcons = async (
174
109
  checkS3Config();
175
110
 
176
111
  log("importDictionaryIcons - Start", "INFO");
177
- log("Get dictionary Contentful entry");
178
- const defaultEnvironmentLocaleCode =
179
- await getEnvironmentDefaultLocaleCode();
180
- const entry = await getEntryByID(entryId, contentTypeId);
112
+ log("Get S3 JSON dictionary file");
181
113
 
182
- if (!entry) {
183
- throw new Error("Dictionary entry not exists.");
114
+ const data = await getFileFromS3(`dictionary.json`);
115
+ if (!data) {
116
+ throw new Error("Dictionary JSON file not found on S3.");
184
117
  }
185
118
 
186
- const data = entry.fields.json[defaultEnvironmentLocaleCode];
187
-
188
119
  const requiredDictionaryDataWithIcons =
189
120
  getRequiredDictionaryDataWithIcons();
190
121
  for (const reqField of requiredDictionaryDataWithIcons) {
@@ -224,9 +155,9 @@ export const importDictionaryIcons = async (
224
155
  log(`No certifications found into contenful dictionary`);
225
156
  }
226
157
 
227
- // Updating Contentful dictionary entry data
228
- log("Updating Contentful dictionary entry data");
229
- await updateContentfulDictionaryData(data, true);
158
+ // Updating S3 dictionary entry data
159
+ log("Updating S3 dictionary entry data");
160
+ await saveJsonToS3(data, "dictionary.json");
230
161
  log("importDictionaryIcons - Completed");
231
162
 
232
163
  return { completed: true };
@@ -327,7 +258,9 @@ export const importDictionaryFields = async (
327
258
  if (Object.entries(data).length) {
328
259
  // Create/Update Contentful entry
329
260
  log("Create/Update Contentful entry");
330
- await updateContentfulDictionaryData(data, offset === 0);
261
+ // await updateContentfulDictionaryData(data, offset === 0);
262
+
263
+ await saveJsonToS3(data, "dictionary.json", "");
331
264
  } else {
332
265
  log("no matches found", "ERROR");
333
266
  }
@@ -0,0 +1,32 @@
1
+ export { reportError } from "./libs/sentry";
2
+ export { init as initPim } from "./pim/config";
3
+ export { init as initContentful, initBaseEntries, deletePages, deleteEntries, getEntryByID, getTopicPage, } from "./libs/contentful";
4
+ export { init as initS3, upload as uploadS3, saveJsonToS3, getFileFromS3, savePDFToS3, } from "./libs/s3";
5
+ export { importDictionaryFields, importDictionaryIcons, importDictionaryProductLine, importDictionaryProductSubLine, } from "./pim/methods/dictionary";
6
+ export { importCategories } from "./pim/methods/catalogs";
7
+ export { importLatestProducts } from "./pim/methods/latestProducts";
8
+ export { dailyProductsUpdate } from "./pim/methods/dailyProductsUpdate";
9
+ export { importModels } from "./pim/methods/models";
10
+ export { importSubModels } from "./pim/methods/submodels";
11
+ export { importSubFamilies } from "./pim/methods/subfamilies";
12
+ export { importFamilies } from "./pim/methods/families";
13
+ export { importProductByCode, setProductsRelationships, setProductRelationships, getAllProductEntriesByCatalog, audit, generateTechSpecPdf, setProductsAutodescription, getProductAutodescription, setProductAutodescriptionByTopicId, removeProductFromColorVariantsByProductLine, removeAllProductModelProductRelations, } from "./pim/methods/products";
14
+ export { resetIndexSettings } from "./algolia/config";
15
+ export { reindexFamilies, reindexFamily, removeFamilyObject, } from "./algolia/families";
16
+ export { pipedreamReindex } from "./algolia/pipedreamReindex";
17
+ export { reindexSubFamilies, reindexSubFamily, removeSubFamilyObject, } from "./algolia/subFamilies";
18
+ export { reindexProduct, reindexProducts, removeProductObject, } from "./algolia/products";
19
+ export { reindexSubModel, reindexSubModels, removeSubModelObject, } from "./algolia/subModels";
20
+ export { reindexModel, reindexModels, removeModelObject, } from "./algolia/models";
21
+ export { reindexDownload, reindexDownloads, removeDownloadObject, } from "./algolia/downloads";
22
+ export { reindexProject, reindexProjects, removeProjectObject, } from "./algolia/projects";
23
+ export { reindexStory, reindexStories, removeStoryObject, } from "./algolia/stories";
24
+ export { reindexPressReview, reindexPressReviews, removePressReviewObject, } from "./algolia/pressReview";
25
+ export { reindexPressRelease, reindexPressReleases, removePressReleaseObject, } from "./algolia/pressRelease";
26
+ export { reindexPost, reindexPosts, removePostObject } from "./algolia/news";
27
+ export { importDownloads } from "./downloads/import";
28
+ export { getLocalISOTime } from "./utils";
29
+ export { getStaticDailyProducts } from "./pim/endpoints";
30
+ export { log, setLogId, setLogOptions } from "./libs/logs";
31
+ export { removeRecordsByStatus } from "./algolia/clean";
32
+ export { generatePDFByUrl } from "./libs/puppeteer";