@crystaldesign/product-handler 24.12.0-beta.35 → 24.12.0-beta.36
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
CHANGED
|
@@ -286,7 +286,7 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
286
286
|
}
|
|
287
287
|
_context2.next = 17;
|
|
288
288
|
return Promise.all((_baseProduct$configur = (_baseProduct$configur2 = baseProduct.configuration) === null || _baseProduct$configur2 === void 0 ? void 0 : _baseProduct$configur2.OrderSets.map(function (os) {
|
|
289
|
-
return _this.apiGetCatalogData(os.CatalogCodex, currentLang, os.AccountGUID);
|
|
289
|
+
return _this.apiGetCatalogData(os.CatalogCodex, os.CatalogGUID, currentLang, os.AccountGUID);
|
|
290
290
|
})) !== null && _baseProduct$configur !== void 0 ? _baseProduct$configur : []);
|
|
291
291
|
case 17:
|
|
292
292
|
catalogData = _context2.sent;
|
|
@@ -295,7 +295,7 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
295
295
|
case 20:
|
|
296
296
|
_context2.next = 22;
|
|
297
297
|
return Promise.all((_basket$OrderSets$map = basket === null || basket === void 0 ? void 0 : basket.OrderSets.map(function (os) {
|
|
298
|
-
return _this.apiGetCatalogData(os.CatalogCodex, currentLang, os.AccountGUID);
|
|
298
|
+
return _this.apiGetCatalogData(os.CatalogCodex, os.CatalogGUID, currentLang, os.AccountGUID);
|
|
299
299
|
})) !== null && _basket$OrderSets$map !== void 0 ? _basket$OrderSets$map : []);
|
|
300
300
|
case 22:
|
|
301
301
|
catalogData = _context2.sent;
|
|
@@ -1657,14 +1657,14 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
1657
1657
|
}, {
|
|
1658
1658
|
key: "apiGetCatalogData",
|
|
1659
1659
|
value: function () {
|
|
1660
|
-
var _apiGetCatalogData = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee7(catalogCodex, language, accountId) {
|
|
1660
|
+
var _apiGetCatalogData = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee7(catalogCodex, catalogId, language, accountId) {
|
|
1661
1661
|
var _response$CollectionG, _response$Properties, _response$Properties2;
|
|
1662
1662
|
var currentAccountSessionId, fullUrl, response, actCatalogInfoData;
|
|
1663
1663
|
return _regeneratorRuntime__default["default"].wrap(function _callee7$(_context8) {
|
|
1664
1664
|
while (1) switch (_context8.prev = _context8.next) {
|
|
1665
1665
|
case 0:
|
|
1666
1666
|
_context8.next = 2;
|
|
1667
|
-
return this.apiAccountLogin(accountId);
|
|
1667
|
+
return this.apiAccountLogin(accountId, catalogId);
|
|
1668
1668
|
case 2:
|
|
1669
1669
|
currentAccountSessionId = _context8.sent;
|
|
1670
1670
|
if (currentAccountSessionId) {
|
|
@@ -1727,7 +1727,7 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
1727
1727
|
}
|
|
1728
1728
|
}, _callee7, this);
|
|
1729
1729
|
}));
|
|
1730
|
-
function apiGetCatalogData(_x9, _x10, _x11) {
|
|
1730
|
+
function apiGetCatalogData(_x9, _x10, _x11, _x12) {
|
|
1731
1731
|
return _apiGetCatalogData.apply(this, arguments);
|
|
1732
1732
|
}
|
|
1733
1733
|
return apiGetCatalogData;
|
|
@@ -1735,8 +1735,8 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
1735
1735
|
}, {
|
|
1736
1736
|
key: "apiAccountLogin",
|
|
1737
1737
|
value: function () {
|
|
1738
|
-
var _apiAccountLogin = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee8(accountId) {
|
|
1739
|
-
var fullUrl, response;
|
|
1738
|
+
var _apiAccountLogin = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee8(accountId, catalogId) {
|
|
1739
|
+
var fullUrl, response, fallbackUrl, fallbackResponse;
|
|
1740
1740
|
return _regeneratorRuntime__default["default"].wrap(function _callee8$(_context9) {
|
|
1741
1741
|
while (1) switch (_context9.prev = _context9.next) {
|
|
1742
1742
|
case 0:
|
|
@@ -1762,14 +1762,42 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
1762
1762
|
});
|
|
1763
1763
|
case 10:
|
|
1764
1764
|
response = _context9.sent;
|
|
1765
|
+
if (!response.SessionGUID) {
|
|
1766
|
+
_context9.next = 13;
|
|
1767
|
+
break;
|
|
1768
|
+
}
|
|
1765
1769
|
return _context9.abrupt("return", response.SessionGUID);
|
|
1766
|
-
case
|
|
1770
|
+
case 13:
|
|
1771
|
+
fallbackUrl = this.api2 + '?function=JsonAccountLogin&UserRole=v&catalogGuid=' + catalogId;
|
|
1772
|
+
_context9.t5 = fetch;
|
|
1773
|
+
_context9.t6 = fallbackUrl;
|
|
1774
|
+
_context9.next = 18;
|
|
1775
|
+
return this.sessionGuid;
|
|
1776
|
+
case 18:
|
|
1777
|
+
_context9.t7 = _context9.sent;
|
|
1778
|
+
_context9.t8 = {
|
|
1779
|
+
sessionGuid: _context9.t7
|
|
1780
|
+
};
|
|
1781
|
+
_context9.t9 = {
|
|
1782
|
+
headers: _context9.t8
|
|
1783
|
+
};
|
|
1784
|
+
_context9.next = 23;
|
|
1785
|
+
return (0, _context9.t5)(_context9.t6, _context9.t9).then(function (res) {
|
|
1786
|
+
if (res.status !== 200) {
|
|
1787
|
+
throw new Error('Collections not loaded.');
|
|
1788
|
+
}
|
|
1789
|
+
return res.json();
|
|
1790
|
+
});
|
|
1791
|
+
case 23:
|
|
1792
|
+
fallbackResponse = _context9.sent;
|
|
1793
|
+
return _context9.abrupt("return", fallbackResponse.SessionGUID);
|
|
1794
|
+
case 25:
|
|
1767
1795
|
case "end":
|
|
1768
1796
|
return _context9.stop();
|
|
1769
1797
|
}
|
|
1770
1798
|
}, _callee8, this);
|
|
1771
1799
|
}));
|
|
1772
|
-
function apiAccountLogin(
|
|
1800
|
+
function apiAccountLogin(_x13, _x14) {
|
|
1773
1801
|
return _apiAccountLogin.apply(this, arguments);
|
|
1774
1802
|
}
|
|
1775
1803
|
return apiAccountLogin;
|
|
@@ -1819,7 +1847,7 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
1819
1847
|
}
|
|
1820
1848
|
}, _callee9, this, [[1, 10]]);
|
|
1821
1849
|
}));
|
|
1822
|
-
function apiGetProductVariants(
|
|
1850
|
+
function apiGetProductVariants(_x15, _x16) {
|
|
1823
1851
|
return _apiGetProductVariants.apply(this, arguments);
|
|
1824
1852
|
}
|
|
1825
1853
|
return apiGetProductVariants;
|
|
@@ -1890,7 +1918,7 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
1890
1918
|
}
|
|
1891
1919
|
}, _callee10, this, [[4, 14]]);
|
|
1892
1920
|
}));
|
|
1893
|
-
function apiGetProductByFilter(
|
|
1921
|
+
function apiGetProductByFilter(_x17) {
|
|
1894
1922
|
return _apiGetProductByFilter.apply(this, arguments);
|
|
1895
1923
|
}
|
|
1896
1924
|
return apiGetProductByFilter;
|
|
@@ -1942,7 +1970,7 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
1942
1970
|
}
|
|
1943
1971
|
}, _callee11, this, [[3, 12]]);
|
|
1944
1972
|
}));
|
|
1945
|
-
function apiSetCustomFlag(
|
|
1973
|
+
function apiSetCustomFlag(_x18, _x19, _x20, _x21) {
|
|
1946
1974
|
return _apiSetCustomFlag.apply(this, arguments);
|
|
1947
1975
|
}
|
|
1948
1976
|
return apiSetCustomFlag;
|
|
@@ -1998,7 +2026,7 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
1998
2026
|
}
|
|
1999
2027
|
}, _callee12, this);
|
|
2000
2028
|
}));
|
|
2001
|
-
function apiDeleteProducts(
|
|
2029
|
+
function apiDeleteProducts(_x22) {
|
|
2002
2030
|
return _apiDeleteProducts.apply(this, arguments);
|
|
2003
2031
|
}
|
|
2004
2032
|
return apiDeleteProducts;
|
|
@@ -2052,7 +2080,7 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2052
2080
|
}
|
|
2053
2081
|
}, _callee13, this);
|
|
2054
2082
|
}));
|
|
2055
|
-
function apiLoadProductVariantsGrouped(
|
|
2083
|
+
function apiLoadProductVariantsGrouped(_x23) {
|
|
2056
2084
|
return _apiLoadProductVariantsGrouped.apply(this, arguments);
|
|
2057
2085
|
}
|
|
2058
2086
|
return apiLoadProductVariantsGrouped;
|
|
@@ -2061,13 +2089,37 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2061
2089
|
key: "apiSaveProducts",
|
|
2062
2090
|
value: function () {
|
|
2063
2091
|
var _apiSaveProducts = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee14(serverUrl, jwt, products, awaitPDF, removedProductIds) {
|
|
2064
|
-
var fullUrl, response, status;
|
|
2065
|
-
return _regeneratorRuntime__default["default"].wrap(function _callee14$(
|
|
2066
|
-
while (1) switch (
|
|
2092
|
+
var fullUrl, response, status, BATCH_SIZE, productsPackages, groupIndex, i, responseProducts, _i2, _responseProducts$fin, _loop2, j;
|
|
2093
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee14$(_context16) {
|
|
2094
|
+
while (1) switch (_context16.prev = _context16.next) {
|
|
2067
2095
|
case 0:
|
|
2068
2096
|
fullUrl = serverUrl + '/v1/products/groups';
|
|
2069
|
-
|
|
2070
|
-
|
|
2097
|
+
BATCH_SIZE = 40;
|
|
2098
|
+
productsPackages = [];
|
|
2099
|
+
groupIndex = 0;
|
|
2100
|
+
for (i = 0; i < products.length; i++) {
|
|
2101
|
+
if ((groupIndex + 1) * BATCH_SIZE < i) groupIndex++;
|
|
2102
|
+
if (!productsPackages[groupIndex]) productsPackages[groupIndex] = [];
|
|
2103
|
+
productsPackages[groupIndex].push(products[i]);
|
|
2104
|
+
}
|
|
2105
|
+
responseProducts = [];
|
|
2106
|
+
_i2 = 0;
|
|
2107
|
+
case 7:
|
|
2108
|
+
if (!(_i2 < productsPackages.length)) {
|
|
2109
|
+
_context16.next = 30;
|
|
2110
|
+
break;
|
|
2111
|
+
}
|
|
2112
|
+
if (!productsPackages[_i2].find(function (p) {
|
|
2113
|
+
return !!p.baseProduct;
|
|
2114
|
+
})) {
|
|
2115
|
+
productsPackages[_i2].unshift((_responseProducts$fin = responseProducts.find(function (p) {
|
|
2116
|
+
return p.baseProduct;
|
|
2117
|
+
})) !== null && _responseProducts$fin !== void 0 ? _responseProducts$fin : products.find(function (p) {
|
|
2118
|
+
return p.baseProduct;
|
|
2119
|
+
}));
|
|
2120
|
+
}
|
|
2121
|
+
_context16.prev = 9;
|
|
2122
|
+
_context16.next = 12;
|
|
2071
2123
|
return fetch(fullUrl, {
|
|
2072
2124
|
method: 'PUT',
|
|
2073
2125
|
headers: {
|
|
@@ -2075,7 +2127,7 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2075
2127
|
'Content-Type': 'application/json'
|
|
2076
2128
|
},
|
|
2077
2129
|
body: JSON.stringify({
|
|
2078
|
-
products:
|
|
2130
|
+
products: productsPackages[_i2],
|
|
2079
2131
|
removedProductIds: removedProductIds,
|
|
2080
2132
|
awaitPDF: awaitPDF
|
|
2081
2133
|
})
|
|
@@ -2086,29 +2138,60 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2086
2138
|
}
|
|
2087
2139
|
return res.json();
|
|
2088
2140
|
});
|
|
2089
|
-
case
|
|
2090
|
-
response =
|
|
2141
|
+
case 12:
|
|
2142
|
+
response = _context16.sent;
|
|
2091
2143
|
if (!response.Error) {
|
|
2092
|
-
|
|
2144
|
+
_context16.next = 15;
|
|
2093
2145
|
break;
|
|
2094
2146
|
}
|
|
2095
2147
|
throw new Error('Error saving Basket and Products. serverError: ' + response.Error);
|
|
2096
|
-
case
|
|
2097
|
-
|
|
2148
|
+
case 15:
|
|
2149
|
+
_context16.next = 20;
|
|
2098
2150
|
break;
|
|
2099
|
-
case
|
|
2100
|
-
|
|
2101
|
-
|
|
2151
|
+
case 17:
|
|
2152
|
+
_context16.prev = 17;
|
|
2153
|
+
_context16.t0 = _context16["catch"](9);
|
|
2102
2154
|
throw Error(status);
|
|
2103
|
-
case
|
|
2104
|
-
|
|
2105
|
-
|
|
2155
|
+
case 20:
|
|
2156
|
+
_loop2 = /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _loop2(j) {
|
|
2157
|
+
return _regeneratorRuntime__default["default"].wrap(function _loop2$(_context15) {
|
|
2158
|
+
while (1) switch (_context15.prev = _context15.next) {
|
|
2159
|
+
case 0:
|
|
2160
|
+
if (!responseProducts.find(function (p) {
|
|
2161
|
+
return p._id == response.products[j]._id;
|
|
2162
|
+
})) {
|
|
2163
|
+
responseProducts.push(response.products[j]);
|
|
2164
|
+
}
|
|
2165
|
+
case 1:
|
|
2166
|
+
case "end":
|
|
2167
|
+
return _context15.stop();
|
|
2168
|
+
}
|
|
2169
|
+
}, _loop2);
|
|
2170
|
+
});
|
|
2171
|
+
j = 0;
|
|
2172
|
+
case 22:
|
|
2173
|
+
if (!(j < response.products.length)) {
|
|
2174
|
+
_context16.next = 27;
|
|
2175
|
+
break;
|
|
2176
|
+
}
|
|
2177
|
+
return _context16.delegateYield(_loop2(j), "t1", 24);
|
|
2178
|
+
case 24:
|
|
2179
|
+
j++;
|
|
2180
|
+
_context16.next = 22;
|
|
2181
|
+
break;
|
|
2182
|
+
case 27:
|
|
2183
|
+
_i2++;
|
|
2184
|
+
_context16.next = 7;
|
|
2185
|
+
break;
|
|
2186
|
+
case 30:
|
|
2187
|
+
return _context16.abrupt("return", responseProducts);
|
|
2188
|
+
case 31:
|
|
2106
2189
|
case "end":
|
|
2107
|
-
return
|
|
2190
|
+
return _context16.stop();
|
|
2108
2191
|
}
|
|
2109
|
-
}, _callee14, null, [[
|
|
2192
|
+
}, _callee14, null, [[9, 17]]);
|
|
2110
2193
|
}));
|
|
2111
|
-
function apiSaveProducts(
|
|
2194
|
+
function apiSaveProducts(_x24, _x25, _x26, _x27, _x28) {
|
|
2112
2195
|
return _apiSaveProducts.apply(this, arguments);
|
|
2113
2196
|
}
|
|
2114
2197
|
return apiSaveProducts;
|
|
@@ -2158,7 +2241,7 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2158
2241
|
return true;
|
|
2159
2242
|
}
|
|
2160
2243
|
var orderlines = (_product$configuratio2 = (_product$configuratio3 = product.configuration) === null || _product$configuratio3 === void 0 ? void 0 : _product$configuratio3.OrderSets[0].OrderLines) !== null && _product$configuratio2 !== void 0 ? _product$configuratio2 : [];
|
|
2161
|
-
var
|
|
2244
|
+
var _loop3 = function _loop3() {
|
|
2162
2245
|
var article = orderlines[i];
|
|
2163
2246
|
var orderLine = orderLines.find(function (ol) {
|
|
2164
2247
|
return ol.ArticleCodex == article.ArticleCodex && catalogCodex == article.CatalogCodex;
|
|
@@ -2169,7 +2252,7 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2169
2252
|
};
|
|
2170
2253
|
}
|
|
2171
2254
|
if (article.VariantBasketDatas.length) {
|
|
2172
|
-
var
|
|
2255
|
+
var _loop4 = function _loop4() {
|
|
2173
2256
|
var varinatValue = article.VariantBasketDatas[j];
|
|
2174
2257
|
if (!varinatData.find(function (vb) {
|
|
2175
2258
|
return vb.OPT == varinatValue['OPT'] && vb.OPV == varinatValue['OPV'];
|
|
@@ -2183,14 +2266,14 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2183
2266
|
},
|
|
2184
2267
|
_ret2;
|
|
2185
2268
|
for (var j = 0; j < article.VariantBasketDatas.length; j++) {
|
|
2186
|
-
_ret2 =
|
|
2269
|
+
_ret2 = _loop4();
|
|
2187
2270
|
if (_ret2) return _ret2.v;
|
|
2188
2271
|
}
|
|
2189
2272
|
}
|
|
2190
2273
|
},
|
|
2191
2274
|
_ret;
|
|
2192
2275
|
for (var i = 0; i < orderlines.length; i++) {
|
|
2193
|
-
_ret =
|
|
2276
|
+
_ret = _loop3();
|
|
2194
2277
|
if (_ret) return _ret.v;
|
|
2195
2278
|
}
|
|
2196
2279
|
return true;
|
|
@@ -2268,7 +2351,7 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2268
2351
|
//calculate defaultShortDescription from template string
|
|
2269
2352
|
var shortDescriptionTemplate = (_configurationData$sh = configurationData === null || configurationData === void 0 ? void 0 : configurationData.shortDescription) !== null && _configurationData$sh !== void 0 ? _configurationData$sh : '${modelName} ${subCategory} ${mainColor}';
|
|
2270
2353
|
var parts = shortDescriptionTemplate.split(/\${|}/);
|
|
2271
|
-
var
|
|
2354
|
+
var _loop5 = function _loop5() {
|
|
2272
2355
|
var _classificationConfig2, _classificationConfig4, _value;
|
|
2273
2356
|
var field = parts[i];
|
|
2274
2357
|
var value;
|
|
@@ -2300,7 +2383,7 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2300
2383
|
shortDescriptionTemplate = shortDescriptionTemplate.replace("${".concat(field, "}"), (_value = value) !== null && _value !== void 0 ? _value : '');
|
|
2301
2384
|
};
|
|
2302
2385
|
for (var i = 1; i < parts.length; i = i + 2) {
|
|
2303
|
-
|
|
2386
|
+
_loop5();
|
|
2304
2387
|
}
|
|
2305
2388
|
|
|
2306
2389
|
//as long as shortDescription is not modified by user, autocalc it
|
|
@@ -2334,9 +2417,9 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2334
2417
|
key: "loadSelectOptions",
|
|
2335
2418
|
value: function () {
|
|
2336
2419
|
var _loadSelectOptions = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee15(sessionGuid, dataSource, additionalFilter) {
|
|
2337
|
-
var values, apiUrl, i, apiResult,
|
|
2338
|
-
return _regeneratorRuntime__default["default"].wrap(function _callee15$(
|
|
2339
|
-
while (1) switch (
|
|
2420
|
+
var values, apiUrl, i, apiResult, _i3, value, text;
|
|
2421
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee15$(_context17) {
|
|
2422
|
+
while (1) switch (_context17.prev = _context17.next) {
|
|
2340
2423
|
case 0:
|
|
2341
2424
|
values = [];
|
|
2342
2425
|
apiUrl = dataSource.url;
|
|
@@ -2345,7 +2428,7 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2345
2428
|
apiUrl += '&' + additionalFilter[i].key + '=' + additionalFilter[i].value;
|
|
2346
2429
|
}
|
|
2347
2430
|
}
|
|
2348
|
-
|
|
2431
|
+
_context17.next = 5;
|
|
2349
2432
|
return fetch(apiUrl, {
|
|
2350
2433
|
headers: {
|
|
2351
2434
|
sessionGuid: sessionGuid
|
|
@@ -2357,26 +2440,26 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2357
2440
|
return res.json();
|
|
2358
2441
|
});
|
|
2359
2442
|
case 5:
|
|
2360
|
-
apiResult =
|
|
2443
|
+
apiResult = _context17.sent;
|
|
2361
2444
|
if (dataSource.useKey) {
|
|
2362
2445
|
apiResult = apiResult[dataSource.useKey];
|
|
2363
2446
|
}
|
|
2364
|
-
for (
|
|
2365
|
-
value = apiResult[
|
|
2366
|
-
text = apiResult[
|
|
2447
|
+
for (_i3 = 0; _i3 < apiResult.length; _i3++) {
|
|
2448
|
+
value = apiResult[_i3][dataSource.fieldValueMapping];
|
|
2449
|
+
text = apiResult[_i3][dataSource.fieldDescriptionMapping];
|
|
2367
2450
|
values.push({
|
|
2368
2451
|
value: value,
|
|
2369
2452
|
text: text
|
|
2370
2453
|
});
|
|
2371
2454
|
}
|
|
2372
|
-
return
|
|
2455
|
+
return _context17.abrupt("return", values);
|
|
2373
2456
|
case 9:
|
|
2374
2457
|
case "end":
|
|
2375
|
-
return
|
|
2458
|
+
return _context17.stop();
|
|
2376
2459
|
}
|
|
2377
2460
|
}, _callee15);
|
|
2378
2461
|
}));
|
|
2379
|
-
function loadSelectOptions(
|
|
2462
|
+
function loadSelectOptions(_x29, _x30, _x31) {
|
|
2380
2463
|
return _loadSelectOptions.apply(this, arguments);
|
|
2381
2464
|
}
|
|
2382
2465
|
return loadSelectOptions;
|
|
@@ -2393,7 +2476,7 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2393
2476
|
key: "getVariantBasketDatasByOrderlines",
|
|
2394
2477
|
value: function getVariantBasketDatasByOrderlines(orderLines, catalogData) {
|
|
2395
2478
|
var variantBasketDatas = [];
|
|
2396
|
-
var
|
|
2479
|
+
var _loop6 = function _loop6() {
|
|
2397
2480
|
var ol = orderLines[i];
|
|
2398
2481
|
var catalog = catalogData.find(function (c) {
|
|
2399
2482
|
return c.codex === ol.CatalogCodex;
|
|
@@ -2415,7 +2498,7 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2415
2498
|
}
|
|
2416
2499
|
};
|
|
2417
2500
|
for (var i = 0; i < orderLines.length; i++) {
|
|
2418
|
-
if (
|
|
2501
|
+
if (_loop6()) continue;
|
|
2419
2502
|
}
|
|
2420
2503
|
return variantBasketDatas;
|
|
2421
2504
|
}
|
package/build/esm/index.js
CHANGED
|
@@ -268,7 +268,7 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
268
268
|
}
|
|
269
269
|
_context2.next = 17;
|
|
270
270
|
return Promise.all((_baseProduct$configur = (_baseProduct$configur2 = baseProduct.configuration) === null || _baseProduct$configur2 === void 0 ? void 0 : _baseProduct$configur2.OrderSets.map(function (os) {
|
|
271
|
-
return _this.apiGetCatalogData(os.CatalogCodex, currentLang, os.AccountGUID);
|
|
271
|
+
return _this.apiGetCatalogData(os.CatalogCodex, os.CatalogGUID, currentLang, os.AccountGUID);
|
|
272
272
|
})) !== null && _baseProduct$configur !== void 0 ? _baseProduct$configur : []);
|
|
273
273
|
case 17:
|
|
274
274
|
catalogData = _context2.sent;
|
|
@@ -277,7 +277,7 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
277
277
|
case 20:
|
|
278
278
|
_context2.next = 22;
|
|
279
279
|
return Promise.all((_basket$OrderSets$map = basket === null || basket === void 0 ? void 0 : basket.OrderSets.map(function (os) {
|
|
280
|
-
return _this.apiGetCatalogData(os.CatalogCodex, currentLang, os.AccountGUID);
|
|
280
|
+
return _this.apiGetCatalogData(os.CatalogCodex, os.CatalogGUID, currentLang, os.AccountGUID);
|
|
281
281
|
})) !== null && _basket$OrderSets$map !== void 0 ? _basket$OrderSets$map : []);
|
|
282
282
|
case 22:
|
|
283
283
|
catalogData = _context2.sent;
|
|
@@ -1639,14 +1639,14 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
1639
1639
|
}, {
|
|
1640
1640
|
key: "apiGetCatalogData",
|
|
1641
1641
|
value: function () {
|
|
1642
|
-
var _apiGetCatalogData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee7(catalogCodex, language, accountId) {
|
|
1642
|
+
var _apiGetCatalogData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee7(catalogCodex, catalogId, language, accountId) {
|
|
1643
1643
|
var _response$CollectionG, _response$Properties, _response$Properties2;
|
|
1644
1644
|
var currentAccountSessionId, fullUrl, response, actCatalogInfoData;
|
|
1645
1645
|
return _regeneratorRuntime.wrap(function _callee7$(_context8) {
|
|
1646
1646
|
while (1) switch (_context8.prev = _context8.next) {
|
|
1647
1647
|
case 0:
|
|
1648
1648
|
_context8.next = 2;
|
|
1649
|
-
return this.apiAccountLogin(accountId);
|
|
1649
|
+
return this.apiAccountLogin(accountId, catalogId);
|
|
1650
1650
|
case 2:
|
|
1651
1651
|
currentAccountSessionId = _context8.sent;
|
|
1652
1652
|
if (currentAccountSessionId) {
|
|
@@ -1709,7 +1709,7 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
1709
1709
|
}
|
|
1710
1710
|
}, _callee7, this);
|
|
1711
1711
|
}));
|
|
1712
|
-
function apiGetCatalogData(_x9, _x10, _x11) {
|
|
1712
|
+
function apiGetCatalogData(_x9, _x10, _x11, _x12) {
|
|
1713
1713
|
return _apiGetCatalogData.apply(this, arguments);
|
|
1714
1714
|
}
|
|
1715
1715
|
return apiGetCatalogData;
|
|
@@ -1717,8 +1717,8 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
1717
1717
|
}, {
|
|
1718
1718
|
key: "apiAccountLogin",
|
|
1719
1719
|
value: function () {
|
|
1720
|
-
var _apiAccountLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee8(accountId) {
|
|
1721
|
-
var fullUrl, response;
|
|
1720
|
+
var _apiAccountLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee8(accountId, catalogId) {
|
|
1721
|
+
var fullUrl, response, fallbackUrl, fallbackResponse;
|
|
1722
1722
|
return _regeneratorRuntime.wrap(function _callee8$(_context9) {
|
|
1723
1723
|
while (1) switch (_context9.prev = _context9.next) {
|
|
1724
1724
|
case 0:
|
|
@@ -1744,14 +1744,42 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
1744
1744
|
});
|
|
1745
1745
|
case 10:
|
|
1746
1746
|
response = _context9.sent;
|
|
1747
|
+
if (!response.SessionGUID) {
|
|
1748
|
+
_context9.next = 13;
|
|
1749
|
+
break;
|
|
1750
|
+
}
|
|
1747
1751
|
return _context9.abrupt("return", response.SessionGUID);
|
|
1748
|
-
case
|
|
1752
|
+
case 13:
|
|
1753
|
+
fallbackUrl = this.api2 + '?function=JsonAccountLogin&UserRole=v&catalogGuid=' + catalogId;
|
|
1754
|
+
_context9.t5 = fetch;
|
|
1755
|
+
_context9.t6 = fallbackUrl;
|
|
1756
|
+
_context9.next = 18;
|
|
1757
|
+
return this.sessionGuid;
|
|
1758
|
+
case 18:
|
|
1759
|
+
_context9.t7 = _context9.sent;
|
|
1760
|
+
_context9.t8 = {
|
|
1761
|
+
sessionGuid: _context9.t7
|
|
1762
|
+
};
|
|
1763
|
+
_context9.t9 = {
|
|
1764
|
+
headers: _context9.t8
|
|
1765
|
+
};
|
|
1766
|
+
_context9.next = 23;
|
|
1767
|
+
return (0, _context9.t5)(_context9.t6, _context9.t9).then(function (res) {
|
|
1768
|
+
if (res.status !== 200) {
|
|
1769
|
+
throw new Error('Collections not loaded.');
|
|
1770
|
+
}
|
|
1771
|
+
return res.json();
|
|
1772
|
+
});
|
|
1773
|
+
case 23:
|
|
1774
|
+
fallbackResponse = _context9.sent;
|
|
1775
|
+
return _context9.abrupt("return", fallbackResponse.SessionGUID);
|
|
1776
|
+
case 25:
|
|
1749
1777
|
case "end":
|
|
1750
1778
|
return _context9.stop();
|
|
1751
1779
|
}
|
|
1752
1780
|
}, _callee8, this);
|
|
1753
1781
|
}));
|
|
1754
|
-
function apiAccountLogin(
|
|
1782
|
+
function apiAccountLogin(_x13, _x14) {
|
|
1755
1783
|
return _apiAccountLogin.apply(this, arguments);
|
|
1756
1784
|
}
|
|
1757
1785
|
return apiAccountLogin;
|
|
@@ -1801,7 +1829,7 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
1801
1829
|
}
|
|
1802
1830
|
}, _callee9, this, [[1, 10]]);
|
|
1803
1831
|
}));
|
|
1804
|
-
function apiGetProductVariants(
|
|
1832
|
+
function apiGetProductVariants(_x15, _x16) {
|
|
1805
1833
|
return _apiGetProductVariants.apply(this, arguments);
|
|
1806
1834
|
}
|
|
1807
1835
|
return apiGetProductVariants;
|
|
@@ -1872,7 +1900,7 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
1872
1900
|
}
|
|
1873
1901
|
}, _callee10, this, [[4, 14]]);
|
|
1874
1902
|
}));
|
|
1875
|
-
function apiGetProductByFilter(
|
|
1903
|
+
function apiGetProductByFilter(_x17) {
|
|
1876
1904
|
return _apiGetProductByFilter.apply(this, arguments);
|
|
1877
1905
|
}
|
|
1878
1906
|
return apiGetProductByFilter;
|
|
@@ -1924,7 +1952,7 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
1924
1952
|
}
|
|
1925
1953
|
}, _callee11, this, [[3, 12]]);
|
|
1926
1954
|
}));
|
|
1927
|
-
function apiSetCustomFlag(
|
|
1955
|
+
function apiSetCustomFlag(_x18, _x19, _x20, _x21) {
|
|
1928
1956
|
return _apiSetCustomFlag.apply(this, arguments);
|
|
1929
1957
|
}
|
|
1930
1958
|
return apiSetCustomFlag;
|
|
@@ -1980,7 +2008,7 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
1980
2008
|
}
|
|
1981
2009
|
}, _callee12, this);
|
|
1982
2010
|
}));
|
|
1983
|
-
function apiDeleteProducts(
|
|
2011
|
+
function apiDeleteProducts(_x22) {
|
|
1984
2012
|
return _apiDeleteProducts.apply(this, arguments);
|
|
1985
2013
|
}
|
|
1986
2014
|
return apiDeleteProducts;
|
|
@@ -2034,7 +2062,7 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2034
2062
|
}
|
|
2035
2063
|
}, _callee13, this);
|
|
2036
2064
|
}));
|
|
2037
|
-
function apiLoadProductVariantsGrouped(
|
|
2065
|
+
function apiLoadProductVariantsGrouped(_x23) {
|
|
2038
2066
|
return _apiLoadProductVariantsGrouped.apply(this, arguments);
|
|
2039
2067
|
}
|
|
2040
2068
|
return apiLoadProductVariantsGrouped;
|
|
@@ -2043,13 +2071,37 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2043
2071
|
key: "apiSaveProducts",
|
|
2044
2072
|
value: function () {
|
|
2045
2073
|
var _apiSaveProducts = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee14(serverUrl, jwt, products, awaitPDF, removedProductIds) {
|
|
2046
|
-
var fullUrl, response, status;
|
|
2047
|
-
return _regeneratorRuntime.wrap(function _callee14$(
|
|
2048
|
-
while (1) switch (
|
|
2074
|
+
var fullUrl, response, status, BATCH_SIZE, productsPackages, groupIndex, i, responseProducts, _i2, _responseProducts$fin, _loop2, j;
|
|
2075
|
+
return _regeneratorRuntime.wrap(function _callee14$(_context16) {
|
|
2076
|
+
while (1) switch (_context16.prev = _context16.next) {
|
|
2049
2077
|
case 0:
|
|
2050
2078
|
fullUrl = serverUrl + '/v1/products/groups';
|
|
2051
|
-
|
|
2052
|
-
|
|
2079
|
+
BATCH_SIZE = 40;
|
|
2080
|
+
productsPackages = [];
|
|
2081
|
+
groupIndex = 0;
|
|
2082
|
+
for (i = 0; i < products.length; i++) {
|
|
2083
|
+
if ((groupIndex + 1) * BATCH_SIZE < i) groupIndex++;
|
|
2084
|
+
if (!productsPackages[groupIndex]) productsPackages[groupIndex] = [];
|
|
2085
|
+
productsPackages[groupIndex].push(products[i]);
|
|
2086
|
+
}
|
|
2087
|
+
responseProducts = [];
|
|
2088
|
+
_i2 = 0;
|
|
2089
|
+
case 7:
|
|
2090
|
+
if (!(_i2 < productsPackages.length)) {
|
|
2091
|
+
_context16.next = 30;
|
|
2092
|
+
break;
|
|
2093
|
+
}
|
|
2094
|
+
if (!productsPackages[_i2].find(function (p) {
|
|
2095
|
+
return !!p.baseProduct;
|
|
2096
|
+
})) {
|
|
2097
|
+
productsPackages[_i2].unshift((_responseProducts$fin = responseProducts.find(function (p) {
|
|
2098
|
+
return p.baseProduct;
|
|
2099
|
+
})) !== null && _responseProducts$fin !== void 0 ? _responseProducts$fin : products.find(function (p) {
|
|
2100
|
+
return p.baseProduct;
|
|
2101
|
+
}));
|
|
2102
|
+
}
|
|
2103
|
+
_context16.prev = 9;
|
|
2104
|
+
_context16.next = 12;
|
|
2053
2105
|
return fetch(fullUrl, {
|
|
2054
2106
|
method: 'PUT',
|
|
2055
2107
|
headers: {
|
|
@@ -2057,7 +2109,7 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2057
2109
|
'Content-Type': 'application/json'
|
|
2058
2110
|
},
|
|
2059
2111
|
body: JSON.stringify({
|
|
2060
|
-
products:
|
|
2112
|
+
products: productsPackages[_i2],
|
|
2061
2113
|
removedProductIds: removedProductIds,
|
|
2062
2114
|
awaitPDF: awaitPDF
|
|
2063
2115
|
})
|
|
@@ -2068,29 +2120,60 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2068
2120
|
}
|
|
2069
2121
|
return res.json();
|
|
2070
2122
|
});
|
|
2071
|
-
case
|
|
2072
|
-
response =
|
|
2123
|
+
case 12:
|
|
2124
|
+
response = _context16.sent;
|
|
2073
2125
|
if (!response.Error) {
|
|
2074
|
-
|
|
2126
|
+
_context16.next = 15;
|
|
2075
2127
|
break;
|
|
2076
2128
|
}
|
|
2077
2129
|
throw new Error('Error saving Basket and Products. serverError: ' + response.Error);
|
|
2078
|
-
case
|
|
2079
|
-
|
|
2130
|
+
case 15:
|
|
2131
|
+
_context16.next = 20;
|
|
2080
2132
|
break;
|
|
2081
|
-
case
|
|
2082
|
-
|
|
2083
|
-
|
|
2133
|
+
case 17:
|
|
2134
|
+
_context16.prev = 17;
|
|
2135
|
+
_context16.t0 = _context16["catch"](9);
|
|
2084
2136
|
throw Error(status);
|
|
2085
|
-
case
|
|
2086
|
-
|
|
2087
|
-
|
|
2137
|
+
case 20:
|
|
2138
|
+
_loop2 = /*#__PURE__*/_regeneratorRuntime.mark(function _loop2(j) {
|
|
2139
|
+
return _regeneratorRuntime.wrap(function _loop2$(_context15) {
|
|
2140
|
+
while (1) switch (_context15.prev = _context15.next) {
|
|
2141
|
+
case 0:
|
|
2142
|
+
if (!responseProducts.find(function (p) {
|
|
2143
|
+
return p._id == response.products[j]._id;
|
|
2144
|
+
})) {
|
|
2145
|
+
responseProducts.push(response.products[j]);
|
|
2146
|
+
}
|
|
2147
|
+
case 1:
|
|
2148
|
+
case "end":
|
|
2149
|
+
return _context15.stop();
|
|
2150
|
+
}
|
|
2151
|
+
}, _loop2);
|
|
2152
|
+
});
|
|
2153
|
+
j = 0;
|
|
2154
|
+
case 22:
|
|
2155
|
+
if (!(j < response.products.length)) {
|
|
2156
|
+
_context16.next = 27;
|
|
2157
|
+
break;
|
|
2158
|
+
}
|
|
2159
|
+
return _context16.delegateYield(_loop2(j), "t1", 24);
|
|
2160
|
+
case 24:
|
|
2161
|
+
j++;
|
|
2162
|
+
_context16.next = 22;
|
|
2163
|
+
break;
|
|
2164
|
+
case 27:
|
|
2165
|
+
_i2++;
|
|
2166
|
+
_context16.next = 7;
|
|
2167
|
+
break;
|
|
2168
|
+
case 30:
|
|
2169
|
+
return _context16.abrupt("return", responseProducts);
|
|
2170
|
+
case 31:
|
|
2088
2171
|
case "end":
|
|
2089
|
-
return
|
|
2172
|
+
return _context16.stop();
|
|
2090
2173
|
}
|
|
2091
|
-
}, _callee14, null, [[
|
|
2174
|
+
}, _callee14, null, [[9, 17]]);
|
|
2092
2175
|
}));
|
|
2093
|
-
function apiSaveProducts(
|
|
2176
|
+
function apiSaveProducts(_x24, _x25, _x26, _x27, _x28) {
|
|
2094
2177
|
return _apiSaveProducts.apply(this, arguments);
|
|
2095
2178
|
}
|
|
2096
2179
|
return apiSaveProducts;
|
|
@@ -2140,7 +2223,7 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2140
2223
|
return true;
|
|
2141
2224
|
}
|
|
2142
2225
|
var orderlines = (_product$configuratio2 = (_product$configuratio3 = product.configuration) === null || _product$configuratio3 === void 0 ? void 0 : _product$configuratio3.OrderSets[0].OrderLines) !== null && _product$configuratio2 !== void 0 ? _product$configuratio2 : [];
|
|
2143
|
-
var
|
|
2226
|
+
var _loop3 = function _loop3() {
|
|
2144
2227
|
var article = orderlines[i];
|
|
2145
2228
|
var orderLine = orderLines.find(function (ol) {
|
|
2146
2229
|
return ol.ArticleCodex == article.ArticleCodex && catalogCodex == article.CatalogCodex;
|
|
@@ -2151,7 +2234,7 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2151
2234
|
};
|
|
2152
2235
|
}
|
|
2153
2236
|
if (article.VariantBasketDatas.length) {
|
|
2154
|
-
var
|
|
2237
|
+
var _loop4 = function _loop4() {
|
|
2155
2238
|
var varinatValue = article.VariantBasketDatas[j];
|
|
2156
2239
|
if (!varinatData.find(function (vb) {
|
|
2157
2240
|
return vb.OPT == varinatValue['OPT'] && vb.OPV == varinatValue['OPV'];
|
|
@@ -2165,14 +2248,14 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2165
2248
|
},
|
|
2166
2249
|
_ret2;
|
|
2167
2250
|
for (var j = 0; j < article.VariantBasketDatas.length; j++) {
|
|
2168
|
-
_ret2 =
|
|
2251
|
+
_ret2 = _loop4();
|
|
2169
2252
|
if (_ret2) return _ret2.v;
|
|
2170
2253
|
}
|
|
2171
2254
|
}
|
|
2172
2255
|
},
|
|
2173
2256
|
_ret;
|
|
2174
2257
|
for (var i = 0; i < orderlines.length; i++) {
|
|
2175
|
-
_ret =
|
|
2258
|
+
_ret = _loop3();
|
|
2176
2259
|
if (_ret) return _ret.v;
|
|
2177
2260
|
}
|
|
2178
2261
|
return true;
|
|
@@ -2250,7 +2333,7 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2250
2333
|
//calculate defaultShortDescription from template string
|
|
2251
2334
|
var shortDescriptionTemplate = (_configurationData$sh = configurationData === null || configurationData === void 0 ? void 0 : configurationData.shortDescription) !== null && _configurationData$sh !== void 0 ? _configurationData$sh : '${modelName} ${subCategory} ${mainColor}';
|
|
2252
2335
|
var parts = shortDescriptionTemplate.split(/\${|}/);
|
|
2253
|
-
var
|
|
2336
|
+
var _loop5 = function _loop5() {
|
|
2254
2337
|
var _classificationConfig2, _classificationConfig4, _value;
|
|
2255
2338
|
var field = parts[i];
|
|
2256
2339
|
var value;
|
|
@@ -2282,7 +2365,7 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2282
2365
|
shortDescriptionTemplate = shortDescriptionTemplate.replace("${".concat(field, "}"), (_value = value) !== null && _value !== void 0 ? _value : '');
|
|
2283
2366
|
};
|
|
2284
2367
|
for (var i = 1; i < parts.length; i = i + 2) {
|
|
2285
|
-
|
|
2368
|
+
_loop5();
|
|
2286
2369
|
}
|
|
2287
2370
|
|
|
2288
2371
|
//as long as shortDescription is not modified by user, autocalc it
|
|
@@ -2316,9 +2399,9 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2316
2399
|
key: "loadSelectOptions",
|
|
2317
2400
|
value: function () {
|
|
2318
2401
|
var _loadSelectOptions = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee15(sessionGuid, dataSource, additionalFilter) {
|
|
2319
|
-
var values, apiUrl, i, apiResult,
|
|
2320
|
-
return _regeneratorRuntime.wrap(function _callee15$(
|
|
2321
|
-
while (1) switch (
|
|
2402
|
+
var values, apiUrl, i, apiResult, _i3, value, text;
|
|
2403
|
+
return _regeneratorRuntime.wrap(function _callee15$(_context17) {
|
|
2404
|
+
while (1) switch (_context17.prev = _context17.next) {
|
|
2322
2405
|
case 0:
|
|
2323
2406
|
values = [];
|
|
2324
2407
|
apiUrl = dataSource.url;
|
|
@@ -2327,7 +2410,7 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2327
2410
|
apiUrl += '&' + additionalFilter[i].key + '=' + additionalFilter[i].value;
|
|
2328
2411
|
}
|
|
2329
2412
|
}
|
|
2330
|
-
|
|
2413
|
+
_context17.next = 5;
|
|
2331
2414
|
return fetch(apiUrl, {
|
|
2332
2415
|
headers: {
|
|
2333
2416
|
sessionGuid: sessionGuid
|
|
@@ -2339,26 +2422,26 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2339
2422
|
return res.json();
|
|
2340
2423
|
});
|
|
2341
2424
|
case 5:
|
|
2342
|
-
apiResult =
|
|
2425
|
+
apiResult = _context17.sent;
|
|
2343
2426
|
if (dataSource.useKey) {
|
|
2344
2427
|
apiResult = apiResult[dataSource.useKey];
|
|
2345
2428
|
}
|
|
2346
|
-
for (
|
|
2347
|
-
value = apiResult[
|
|
2348
|
-
text = apiResult[
|
|
2429
|
+
for (_i3 = 0; _i3 < apiResult.length; _i3++) {
|
|
2430
|
+
value = apiResult[_i3][dataSource.fieldValueMapping];
|
|
2431
|
+
text = apiResult[_i3][dataSource.fieldDescriptionMapping];
|
|
2349
2432
|
values.push({
|
|
2350
2433
|
value: value,
|
|
2351
2434
|
text: text
|
|
2352
2435
|
});
|
|
2353
2436
|
}
|
|
2354
|
-
return
|
|
2437
|
+
return _context17.abrupt("return", values);
|
|
2355
2438
|
case 9:
|
|
2356
2439
|
case "end":
|
|
2357
|
-
return
|
|
2440
|
+
return _context17.stop();
|
|
2358
2441
|
}
|
|
2359
2442
|
}, _callee15);
|
|
2360
2443
|
}));
|
|
2361
|
-
function loadSelectOptions(
|
|
2444
|
+
function loadSelectOptions(_x29, _x30, _x31) {
|
|
2362
2445
|
return _loadSelectOptions.apply(this, arguments);
|
|
2363
2446
|
}
|
|
2364
2447
|
return loadSelectOptions;
|
|
@@ -2375,7 +2458,7 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2375
2458
|
key: "getVariantBasketDatasByOrderlines",
|
|
2376
2459
|
value: function getVariantBasketDatasByOrderlines(orderLines, catalogData) {
|
|
2377
2460
|
var variantBasketDatas = [];
|
|
2378
|
-
var
|
|
2461
|
+
var _loop6 = function _loop6() {
|
|
2379
2462
|
var ol = orderLines[i];
|
|
2380
2463
|
var catalog = catalogData.find(function (c) {
|
|
2381
2464
|
return c.codex === ol.CatalogCodex;
|
|
@@ -2397,7 +2480,7 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2397
2480
|
}
|
|
2398
2481
|
};
|
|
2399
2482
|
for (var i = 0; i < orderLines.length; i++) {
|
|
2400
|
-
if (
|
|
2483
|
+
if (_loop6()) continue;
|
|
2401
2484
|
}
|
|
2402
2485
|
return variantBasketDatas;
|
|
2403
2486
|
}
|
|
@@ -151,7 +151,7 @@ export declare class ProductHandlerAbstract {
|
|
|
151
151
|
products: ProductDataAbstract[];
|
|
152
152
|
awaitPDF?: boolean;
|
|
153
153
|
removedProducts?: string[];
|
|
154
|
-
}): Promise<any>;
|
|
154
|
+
}): Promise<any[]>;
|
|
155
155
|
private setFirstVariant;
|
|
156
156
|
/**
|
|
157
157
|
* Calculates the inital state of one varinat data entry
|
|
@@ -218,7 +218,7 @@ export declare class ProductHandlerAbstract {
|
|
|
218
218
|
private apiRemoveMedia;
|
|
219
219
|
private getHeaders;
|
|
220
220
|
apiGetProducts(divanrOrID: string): Promise<any[]>;
|
|
221
|
-
apiGetCatalogData(catalogCodex: string, language: string, accountId: string): Promise<any>;
|
|
221
|
+
apiGetCatalogData(catalogCodex: string, catalogId: string, language: string, accountId: string): Promise<any>;
|
|
222
222
|
private apiAccountLogin;
|
|
223
223
|
apiGetProductVariants(id: string, full?: boolean): Promise<any[]>;
|
|
224
224
|
apiGetProductByFilter(filter: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAoB,aAAa,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACrH,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAIzE,OAAO,EACL,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,mBAAmB,EACnB,SAAS,EACT,KAAK,EACL,iBAAiB,EACjB,aAAa,EACb,aAAa,EAEb,mBAAmB,EACnB,KAAK,EACL,aAAa,EACd,MAAM,SAAS,CAAC;AAEjB,cAAc,SAAS,CAAC;AAExB,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,UAAU,CAAC;IACnB,WAAW,CAAC,EAAE,eAAe,EAAE,CAAC;IAChC,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC;CACnD;AAED,MAAM,WAAW,kBAAkB;IACjC,MAAM,CAAC,EAAE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GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;;;;YA2BpH,iBAAiB;IAmC/B,OAAO,CAAC,oBAAoB;IAQf,6BAA6B,CAAC,EACzC,KAAK,EACL,IAAI,EACJ,MAAM,EACN,MAAW,EACX,IAAI,EACJ,eAAe,EACf,eAAe,GAChB,EAAE;QACD,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;QAClB,MAAM,CAAC,EAAE,YAAY,EAAE,CAAC;QACxB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,eAAe,CAAC,EAAE,OAAO,CAAC;QAC1B,eAAe,CAAC,EAAE,eAAe,CAAC;KACnC;YAmCa,eAAe;IAsD7B,OAAO,CAAC,WAAW;IAoBnB,MAAM,CAAC,mBAAmB,CAAC,IAAI,EAAE,GAAG,EAAE;IAOtC,MAAM,CAAC,iCAAiC,CAAC,UAAU,EAAE,aAAa,EAAE,EAAE,WAAW,EAAE,eAAe,EAAE;IAwBpG,MAAM,CAAC,qBAAqB,EAAE,cAAc,EAAE,CAa5C;IAEF,MAAM,CAAC,sBAAsB,EAAE,cAAc,EAAE,CA0D7C;IAEF,MAAM,CAAC,cAAc,EAAE,cAAc,EAAE,CAAsG;IAE7I,MAAM,CAAC,wBAAwB,EAAE,cAAc,EAAE,CAI/C;CACH"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/product-handler",
|
|
3
|
-
"version": "24.12.0-beta.
|
|
3
|
+
"version": "24.12.0-beta.36",
|
|
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": "9ec2aeebddb19e4915a832c4252740c7f49c7d30"
|
|
16
16
|
}
|