@crystaldesign/product-handler 26.6.0-beta.26 → 26.6.0-beta.28
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/build/cjs/index.js +4 -4
- package/build/esm/index.js +4 -4
- package/package.json +2 -2
package/build/cjs/index.js
CHANGED
|
@@ -1890,7 +1890,7 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
1890
1890
|
}, {
|
|
1891
1891
|
key: "apiGetCatalogDataIDM",
|
|
1892
1892
|
value: function () {
|
|
1893
|
-
var _apiGetCatalogDataIDM = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee8(serieNo, language,
|
|
1893
|
+
var _apiGetCatalogDataIDM = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee8(serieNo, language, enricherId) {
|
|
1894
1894
|
var _this$organization, _cat$Properties, _cat$detailInfos$filt, _cat$detailInfos;
|
|
1895
1895
|
var organizationId, fullUrl, response, cat, actCatalogInfoData;
|
|
1896
1896
|
return _regeneratorRuntime__default["default"].wrap(function _callee8$(_context10) {
|
|
@@ -1903,7 +1903,7 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
1903
1903
|
}
|
|
1904
1904
|
throw new Error('organizationId is required to load IDM catalog data');
|
|
1905
1905
|
case 3:
|
|
1906
|
-
fullUrl = this.enricherService + '/live/' + organizationId + '/packages/' +
|
|
1906
|
+
fullUrl = this.enricherService + '/live/' + organizationId + '/packages/' + enricherId + '/series/' + serieNo;
|
|
1907
1907
|
_context10.next = 6;
|
|
1908
1908
|
return fetch(fullUrl, {
|
|
1909
1909
|
headers: _objectSpread(_objectSpread({}, this.getHeaders()), {}, {
|
|
@@ -1939,8 +1939,8 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
1939
1939
|
description: DivaUtils__default["default"].getLocals(cat.seriesFullText, language),
|
|
1940
1940
|
description_locales: cat.seriesFullText,
|
|
1941
1941
|
hasPlanner: true,
|
|
1942
|
-
accountGuid:
|
|
1943
|
-
supplierGuid:
|
|
1942
|
+
accountGuid: enricherId,
|
|
1943
|
+
supplierGuid: enricherId,
|
|
1944
1944
|
options: cat.Options,
|
|
1945
1945
|
optionValues: cat.Optionvalues,
|
|
1946
1946
|
has3D: !!((_cat$Properties = cat.Properties) !== null && _cat$Properties !== void 0 && (_cat$Properties = _cat$Properties.find(function (p) {
|
package/build/esm/index.js
CHANGED
|
@@ -1872,7 +1872,7 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
1872
1872
|
}, {
|
|
1873
1873
|
key: "apiGetCatalogDataIDM",
|
|
1874
1874
|
value: function () {
|
|
1875
|
-
var _apiGetCatalogDataIDM = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee8(serieNo, language,
|
|
1875
|
+
var _apiGetCatalogDataIDM = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee8(serieNo, language, enricherId) {
|
|
1876
1876
|
var _this$organization, _cat$Properties, _cat$detailInfos$filt, _cat$detailInfos;
|
|
1877
1877
|
var organizationId, fullUrl, response, cat, actCatalogInfoData;
|
|
1878
1878
|
return _regeneratorRuntime.wrap(function _callee8$(_context10) {
|
|
@@ -1885,7 +1885,7 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
1885
1885
|
}
|
|
1886
1886
|
throw new Error('organizationId is required to load IDM catalog data');
|
|
1887
1887
|
case 3:
|
|
1888
|
-
fullUrl = this.enricherService + '/live/' + organizationId + '/packages/' +
|
|
1888
|
+
fullUrl = this.enricherService + '/live/' + organizationId + '/packages/' + enricherId + '/series/' + serieNo;
|
|
1889
1889
|
_context10.next = 6;
|
|
1890
1890
|
return fetch(fullUrl, {
|
|
1891
1891
|
headers: _objectSpread(_objectSpread({}, this.getHeaders()), {}, {
|
|
@@ -1921,8 +1921,8 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
1921
1921
|
description: DivaUtils.getLocals(cat.seriesFullText, language),
|
|
1922
1922
|
description_locales: cat.seriesFullText,
|
|
1923
1923
|
hasPlanner: true,
|
|
1924
|
-
accountGuid:
|
|
1925
|
-
supplierGuid:
|
|
1924
|
+
accountGuid: enricherId,
|
|
1925
|
+
supplierGuid: enricherId,
|
|
1926
1926
|
options: cat.Options,
|
|
1927
1927
|
optionValues: cat.Optionvalues,
|
|
1928
1928
|
has3D: !!((_cat$Properties = cat.Properties) !== null && _cat$Properties !== void 0 && (_cat$Properties = _cat$Properties.find(function (p) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/product-handler",
|
|
3
|
-
"version": "26.6.0-beta.
|
|
3
|
+
"version": "26.6.0-beta.28",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@crystaldesign/basket-model": "*",
|
|
6
6
|
"@crystaldesign/diva-utils": "*"
|
|
@@ -12,5 +12,5 @@
|
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"classnames": "^2.5.1"
|
|
14
14
|
},
|
|
15
|
-
"gitHead": "
|
|
15
|
+
"gitHead": "2639ecac1acefff50b9f868591124e855376a096"
|
|
16
16
|
}
|