@crystaldesign/product-handler 25.8.0-beta.18 → 25.8.0-beta.2
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
|
@@ -1974,117 +1974,52 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
1974
1974
|
return apiGetProductByFilter;
|
|
1975
1975
|
}()
|
|
1976
1976
|
}, {
|
|
1977
|
-
key: "
|
|
1977
|
+
key: "apiMarkAsFavorite",
|
|
1978
1978
|
value: function () {
|
|
1979
|
-
var
|
|
1979
|
+
var _apiMarkAsFavorite = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee11(id, organizationId) {
|
|
1980
1980
|
var _res4;
|
|
1981
|
-
var
|
|
1982
|
-
useFilter,
|
|
1983
|
-
filterParam,
|
|
1984
|
-
fullUrl,
|
|
1985
|
-
queryString,
|
|
1986
|
-
res,
|
|
1987
|
-
resData,
|
|
1988
|
-
_args13 = arguments;
|
|
1981
|
+
var fullUrl, res, resData;
|
|
1989
1982
|
return _regeneratorRuntime__default["default"].wrap(function _callee11$(_context13) {
|
|
1990
1983
|
while (1) switch (_context13.prev = _context13.next) {
|
|
1991
|
-
case 0:
|
|
1992
|
-
limit = _args13.length > 1 && _args13[1] !== undefined ? _args13[1] : 1;
|
|
1993
|
-
useFilter = _args13.length > 2 ? _args13[2] : undefined;
|
|
1994
|
-
filterParam = useFilter ? 'filter' : 'search';
|
|
1995
|
-
fullUrl = new URL(this.catalogService + '/v1/products/query');
|
|
1996
|
-
queryString = new URLSearchParams();
|
|
1997
|
-
queryString.append(filterParam, encodeURIComponent(this.parseFilter(filter)));
|
|
1998
|
-
queryString.append('sort', encodeURIComponent('{-created}'));
|
|
1999
|
-
queryString.append('limit', limit.toString());
|
|
2000
|
-
fullUrl.search = queryString.toString();
|
|
2001
|
-
_context13.prev = 9;
|
|
2002
|
-
_context13.next = 12;
|
|
2003
|
-
return axios__default["default"].get(fullUrl.toString(), {
|
|
2004
|
-
headers: _objectSpread(_objectSpread({}, this.getHeaders()), {}, {
|
|
2005
|
-
'Content-Type': 'application/json'
|
|
2006
|
-
})
|
|
2007
|
-
});
|
|
2008
|
-
case 12:
|
|
2009
|
-
res = _context13.sent;
|
|
2010
|
-
_context13.next = 15;
|
|
2011
|
-
return res.data;
|
|
2012
|
-
case 15:
|
|
2013
|
-
resData = _context13.sent;
|
|
2014
|
-
_context13.next = 21;
|
|
2015
|
-
break;
|
|
2016
|
-
case 18:
|
|
2017
|
-
_context13.prev = 18;
|
|
2018
|
-
_context13.t0 = _context13["catch"](9);
|
|
2019
|
-
throw new Error('Could not get existing products', {
|
|
2020
|
-
cause: _context13.t0
|
|
2021
|
-
});
|
|
2022
|
-
case 21:
|
|
2023
|
-
if (!(((_res4 = res) === null || _res4 === void 0 ? void 0 : _res4.status) == 200)) {
|
|
2024
|
-
_context13.next = 23;
|
|
2025
|
-
break;
|
|
2026
|
-
}
|
|
2027
|
-
return _context13.abrupt("return", resData);
|
|
2028
|
-
case 23:
|
|
2029
|
-
throw new Error(resData.error);
|
|
2030
|
-
case 24:
|
|
2031
|
-
case "end":
|
|
2032
|
-
return _context13.stop();
|
|
2033
|
-
}
|
|
2034
|
-
}, _callee11, this, [[9, 18]]);
|
|
2035
|
-
}));
|
|
2036
|
-
function apiGetProductByQuery(_x18) {
|
|
2037
|
-
return _apiGetProductByQuery.apply(this, arguments);
|
|
2038
|
-
}
|
|
2039
|
-
return apiGetProductByQuery;
|
|
2040
|
-
}()
|
|
2041
|
-
}, {
|
|
2042
|
-
key: "apiMarkAsFavorite",
|
|
2043
|
-
value: function () {
|
|
2044
|
-
var _apiMarkAsFavorite = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee12(id, organizationId) {
|
|
2045
|
-
var _res5;
|
|
2046
|
-
var fullUrl, res, resData;
|
|
2047
|
-
return _regeneratorRuntime__default["default"].wrap(function _callee12$(_context14) {
|
|
2048
|
-
while (1) switch (_context14.prev = _context14.next) {
|
|
2049
1984
|
case 0:
|
|
2050
1985
|
fullUrl = new URL(this.catalogService + '/v1/products/' + id + '/favorite');
|
|
2051
1986
|
fullUrl.searchParams.append('organizationId', organizationId);
|
|
2052
|
-
|
|
2053
|
-
|
|
1987
|
+
_context13.prev = 2;
|
|
1988
|
+
_context13.next = 5;
|
|
2054
1989
|
return axios__default["default"].post(fullUrl.toString(), undefined, {
|
|
2055
1990
|
headers: _objectSpread(_objectSpread({}, this.getHeaders()), {}, {
|
|
2056
1991
|
'Content-Type': 'application/json'
|
|
2057
1992
|
})
|
|
2058
1993
|
});
|
|
2059
1994
|
case 5:
|
|
2060
|
-
res =
|
|
2061
|
-
|
|
1995
|
+
res = _context13.sent;
|
|
1996
|
+
_context13.next = 8;
|
|
2062
1997
|
return res.data;
|
|
2063
1998
|
case 8:
|
|
2064
|
-
resData =
|
|
2065
|
-
|
|
1999
|
+
resData = _context13.sent;
|
|
2000
|
+
_context13.next = 14;
|
|
2066
2001
|
break;
|
|
2067
2002
|
case 11:
|
|
2068
|
-
|
|
2069
|
-
|
|
2003
|
+
_context13.prev = 11;
|
|
2004
|
+
_context13.t0 = _context13["catch"](2);
|
|
2070
2005
|
throw new Error('Error on activate product', {
|
|
2071
|
-
cause:
|
|
2006
|
+
cause: _context13.t0
|
|
2072
2007
|
});
|
|
2073
2008
|
case 14:
|
|
2074
|
-
if (!(((
|
|
2075
|
-
|
|
2009
|
+
if (!(((_res4 = res) === null || _res4 === void 0 ? void 0 : _res4.status) == 204)) {
|
|
2010
|
+
_context13.next = 16;
|
|
2076
2011
|
break;
|
|
2077
2012
|
}
|
|
2078
|
-
return
|
|
2013
|
+
return _context13.abrupt("return");
|
|
2079
2014
|
case 16:
|
|
2080
2015
|
throw new Error(resData.error);
|
|
2081
2016
|
case 17:
|
|
2082
2017
|
case "end":
|
|
2083
|
-
return
|
|
2018
|
+
return _context13.stop();
|
|
2084
2019
|
}
|
|
2085
|
-
},
|
|
2020
|
+
}, _callee11, this, [[2, 11]]);
|
|
2086
2021
|
}));
|
|
2087
|
-
function apiMarkAsFavorite(
|
|
2022
|
+
function apiMarkAsFavorite(_x18, _x19) {
|
|
2088
2023
|
return _apiMarkAsFavorite.apply(this, arguments);
|
|
2089
2024
|
}
|
|
2090
2025
|
return apiMarkAsFavorite;
|
|
@@ -2092,47 +2027,47 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2092
2027
|
}, {
|
|
2093
2028
|
key: "apiGetUniqueDivaNr",
|
|
2094
2029
|
value: function () {
|
|
2095
|
-
var _apiGetUniqueDivaNr = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function
|
|
2096
|
-
var
|
|
2030
|
+
var _apiGetUniqueDivaNr = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee12() {
|
|
2031
|
+
var _res5;
|
|
2097
2032
|
var fullUrl, res, resData;
|
|
2098
|
-
return _regeneratorRuntime__default["default"].wrap(function
|
|
2099
|
-
while (1) switch (
|
|
2033
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee12$(_context14) {
|
|
2034
|
+
while (1) switch (_context14.prev = _context14.next) {
|
|
2100
2035
|
case 0:
|
|
2101
2036
|
fullUrl = new URL(this.basketService + '/baskets/uniqueDivaNr');
|
|
2102
|
-
|
|
2103
|
-
|
|
2037
|
+
_context14.prev = 1;
|
|
2038
|
+
_context14.next = 4;
|
|
2104
2039
|
return axios__default["default"].get(fullUrl.toString(), {
|
|
2105
2040
|
headers: _objectSpread(_objectSpread({}, this.getHeaders()), {}, {
|
|
2106
2041
|
'Content-Type': 'application/json'
|
|
2107
2042
|
})
|
|
2108
2043
|
});
|
|
2109
2044
|
case 4:
|
|
2110
|
-
res =
|
|
2111
|
-
|
|
2045
|
+
res = _context14.sent;
|
|
2046
|
+
_context14.next = 7;
|
|
2112
2047
|
return res.data;
|
|
2113
2048
|
case 7:
|
|
2114
|
-
resData =
|
|
2115
|
-
|
|
2049
|
+
resData = _context14.sent;
|
|
2050
|
+
_context14.next = 13;
|
|
2116
2051
|
break;
|
|
2117
2052
|
case 10:
|
|
2118
|
-
|
|
2119
|
-
|
|
2053
|
+
_context14.prev = 10;
|
|
2054
|
+
_context14.t0 = _context14["catch"](1);
|
|
2120
2055
|
throw new Error('Error on activate product', {
|
|
2121
|
-
cause:
|
|
2056
|
+
cause: _context14.t0
|
|
2122
2057
|
});
|
|
2123
2058
|
case 13:
|
|
2124
|
-
if (!(((
|
|
2125
|
-
|
|
2059
|
+
if (!(((_res5 = res) === null || _res5 === void 0 ? void 0 : _res5.status) == 200)) {
|
|
2060
|
+
_context14.next = 15;
|
|
2126
2061
|
break;
|
|
2127
2062
|
}
|
|
2128
|
-
return
|
|
2063
|
+
return _context14.abrupt("return", resData.divaNr);
|
|
2129
2064
|
case 15:
|
|
2130
2065
|
throw new Error(resData.error);
|
|
2131
2066
|
case 16:
|
|
2132
2067
|
case "end":
|
|
2133
|
-
return
|
|
2068
|
+
return _context14.stop();
|
|
2134
2069
|
}
|
|
2135
|
-
},
|
|
2070
|
+
}, _callee12, this, [[1, 10]]);
|
|
2136
2071
|
}));
|
|
2137
2072
|
function apiGetUniqueDivaNr() {
|
|
2138
2073
|
return _apiGetUniqueDivaNr.apply(this, arguments);
|
|
@@ -2142,10 +2077,10 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2142
2077
|
}, {
|
|
2143
2078
|
key: "apiLoadProductVariantsGrouped",
|
|
2144
2079
|
value: function () {
|
|
2145
|
-
var _apiLoadProductVariantsGrouped = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function
|
|
2080
|
+
var _apiLoadProductVariantsGrouped = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee13(_ref45) {
|
|
2146
2081
|
var limit, skip, fields, _ref45$search, search, sort, favorites, abortController, fullUrl, headers, promise;
|
|
2147
|
-
return _regeneratorRuntime__default["default"].wrap(function
|
|
2148
|
-
while (1) switch (
|
|
2082
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee13$(_context15) {
|
|
2083
|
+
while (1) switch (_context15.prev = _context15.next) {
|
|
2149
2084
|
case 0:
|
|
2150
2085
|
limit = _ref45.limit, skip = _ref45.skip, fields = _ref45.fields, _ref45$search = _ref45.search, search = _ref45$search === void 0 ? [] : _ref45$search, sort = _ref45.sort, favorites = _ref45.favorites, abortController = _ref45.abortController;
|
|
2151
2086
|
fullUrl = this.catalogService + '/v1/products/groups' + '?organizationId=' + this.organization._id + (this._organization.parentOrganizationIds ? '&parentOrganizationIds=' + this._organization.parentOrganizationIds.join(',') : '') + (limit ? '&limit=' + limit : '') + (skip ? '&skip=' + skip : '') + (fields ? '&fileds=' + DivaUtils__default["default"].fixedEncodeURIComponent('{' + fields.join(',') + '}') : '') + (search.length ? '&search=' + DivaUtils__default["default"].fixedEncodeURIComponent(this.parseFilter(search)) : '') + (sort ? '&sort=' + DivaUtils__default["default"].fixedEncodeURIComponent(sort) : '') + (favorites ? '&favorites=true' : '');
|
|
@@ -2169,17 +2104,17 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2169
2104
|
reject('Error loading products grouped by variants: ' + error.message);
|
|
2170
2105
|
});
|
|
2171
2106
|
});
|
|
2172
|
-
|
|
2107
|
+
_context15.next = 7;
|
|
2173
2108
|
return promise;
|
|
2174
2109
|
case 7:
|
|
2175
|
-
return
|
|
2110
|
+
return _context15.abrupt("return", _context15.sent);
|
|
2176
2111
|
case 8:
|
|
2177
2112
|
case "end":
|
|
2178
|
-
return
|
|
2113
|
+
return _context15.stop();
|
|
2179
2114
|
}
|
|
2180
|
-
},
|
|
2115
|
+
}, _callee13, this);
|
|
2181
2116
|
}));
|
|
2182
|
-
function apiLoadProductVariantsGrouped(
|
|
2117
|
+
function apiLoadProductVariantsGrouped(_x20) {
|
|
2183
2118
|
return _apiLoadProductVariantsGrouped.apply(this, arguments);
|
|
2184
2119
|
}
|
|
2185
2120
|
return apiLoadProductVariantsGrouped;
|
|
@@ -2187,11 +2122,11 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2187
2122
|
}, {
|
|
2188
2123
|
key: "apiSaveProducts",
|
|
2189
2124
|
value: function () {
|
|
2190
|
-
var _apiSaveProducts = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function
|
|
2125
|
+
var _apiSaveProducts = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee14(serverUrl, jwt, products, awaitPDF, removedProductIds) {
|
|
2191
2126
|
var _this$openModal3, _this$t3;
|
|
2192
2127
|
var fullUrl, response, status, BATCH_SIZE, productsPackages, groupIndex, baseProduct, i, _productsPackages$gro, _productsPackages$gro2, responseProducts, timeItTook, _i2, _this$openModal4, _this$t4, startTime, endTime, estTime, _loop3, j;
|
|
2193
|
-
return _regeneratorRuntime__default["default"].wrap(function
|
|
2194
|
-
while (1) switch (
|
|
2128
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee14$(_context17) {
|
|
2129
|
+
while (1) switch (_context17.prev = _context17.next) {
|
|
2195
2130
|
case 0:
|
|
2196
2131
|
fullUrl = serverUrl + '/v1/products/groups';
|
|
2197
2132
|
BATCH_SIZE = 10;
|
|
@@ -2200,22 +2135,22 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2200
2135
|
i = 0;
|
|
2201
2136
|
case 5:
|
|
2202
2137
|
if (!(i < products.length)) {
|
|
2203
|
-
|
|
2138
|
+
_context17.next = 15;
|
|
2204
2139
|
break;
|
|
2205
2140
|
}
|
|
2206
2141
|
if (!products[i].baseProduct) {
|
|
2207
|
-
|
|
2142
|
+
_context17.next = 9;
|
|
2208
2143
|
break;
|
|
2209
2144
|
}
|
|
2210
2145
|
baseProduct = products[i];
|
|
2211
|
-
return
|
|
2146
|
+
return _context17.abrupt("continue", 12);
|
|
2212
2147
|
case 9:
|
|
2213
2148
|
if (BATCH_SIZE < ((_productsPackages$gro = (_productsPackages$gro2 = productsPackages[groupIndex]) === null || _productsPackages$gro2 === void 0 ? void 0 : _productsPackages$gro2.length) !== null && _productsPackages$gro !== void 0 ? _productsPackages$gro : 0)) groupIndex++;
|
|
2214
2149
|
if (!productsPackages[groupIndex]) productsPackages[groupIndex] = [];
|
|
2215
2150
|
productsPackages[groupIndex].push(products[i]);
|
|
2216
2151
|
case 12:
|
|
2217
2152
|
i++;
|
|
2218
|
-
|
|
2153
|
+
_context17.next = 5;
|
|
2219
2154
|
break;
|
|
2220
2155
|
case 15:
|
|
2221
2156
|
responseProducts = [];
|
|
@@ -2228,13 +2163,13 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2228
2163
|
_i2 = 0;
|
|
2229
2164
|
case 19:
|
|
2230
2165
|
if (!(_i2 < productsPackages.length)) {
|
|
2231
|
-
|
|
2166
|
+
_context17.next = 47;
|
|
2232
2167
|
break;
|
|
2233
2168
|
}
|
|
2234
2169
|
if (baseProduct && _i2 == 0) productsPackages[_i2].unshift(baseProduct);
|
|
2235
2170
|
startTime = Date.now();
|
|
2236
|
-
|
|
2237
|
-
|
|
2171
|
+
_context17.prev = 22;
|
|
2172
|
+
_context17.next = 25;
|
|
2238
2173
|
return fetch(fullUrl, {
|
|
2239
2174
|
method: 'PUT',
|
|
2240
2175
|
headers: {
|
|
@@ -2254,18 +2189,18 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2254
2189
|
return res.json();
|
|
2255
2190
|
});
|
|
2256
2191
|
case 25:
|
|
2257
|
-
response =
|
|
2192
|
+
response = _context17.sent;
|
|
2258
2193
|
if (!response.Error) {
|
|
2259
|
-
|
|
2194
|
+
_context17.next = 28;
|
|
2260
2195
|
break;
|
|
2261
2196
|
}
|
|
2262
2197
|
throw new Error('Error saving Basket and Products. serverError: ' + response.Error);
|
|
2263
2198
|
case 28:
|
|
2264
|
-
|
|
2199
|
+
_context17.next = 33;
|
|
2265
2200
|
break;
|
|
2266
2201
|
case 30:
|
|
2267
|
-
|
|
2268
|
-
|
|
2202
|
+
_context17.prev = 30;
|
|
2203
|
+
_context17.t0 = _context17["catch"](22);
|
|
2269
2204
|
throw Error(status);
|
|
2270
2205
|
case 33:
|
|
2271
2206
|
endTime = Date.now();
|
|
@@ -2279,8 +2214,8 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2279
2214
|
dontRenderForm: true
|
|
2280
2215
|
});
|
|
2281
2216
|
_loop3 = /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _loop3(j) {
|
|
2282
|
-
return _regeneratorRuntime__default["default"].wrap(function _loop3$(
|
|
2283
|
-
while (1) switch (
|
|
2217
|
+
return _regeneratorRuntime__default["default"].wrap(function _loop3$(_context16) {
|
|
2218
|
+
while (1) switch (_context16.prev = _context16.next) {
|
|
2284
2219
|
case 0:
|
|
2285
2220
|
if (response.products[j].baseProduct) baseProduct = response.products[j];
|
|
2286
2221
|
if (!responseProducts.find(function (p) {
|
|
@@ -2290,34 +2225,34 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2290
2225
|
}
|
|
2291
2226
|
case 2:
|
|
2292
2227
|
case "end":
|
|
2293
|
-
return
|
|
2228
|
+
return _context16.stop();
|
|
2294
2229
|
}
|
|
2295
2230
|
}, _loop3);
|
|
2296
2231
|
});
|
|
2297
2232
|
j = 0;
|
|
2298
2233
|
case 39:
|
|
2299
2234
|
if (!(j < response.products.length)) {
|
|
2300
|
-
|
|
2235
|
+
_context17.next = 44;
|
|
2301
2236
|
break;
|
|
2302
2237
|
}
|
|
2303
|
-
return
|
|
2238
|
+
return _context17.delegateYield(_loop3(j), "t1", 41);
|
|
2304
2239
|
case 41:
|
|
2305
2240
|
j++;
|
|
2306
|
-
|
|
2241
|
+
_context17.next = 39;
|
|
2307
2242
|
break;
|
|
2308
2243
|
case 44:
|
|
2309
2244
|
_i2++;
|
|
2310
|
-
|
|
2245
|
+
_context17.next = 19;
|
|
2311
2246
|
break;
|
|
2312
2247
|
case 47:
|
|
2313
|
-
return
|
|
2248
|
+
return _context17.abrupt("return", responseProducts);
|
|
2314
2249
|
case 48:
|
|
2315
2250
|
case "end":
|
|
2316
|
-
return
|
|
2251
|
+
return _context17.stop();
|
|
2317
2252
|
}
|
|
2318
|
-
},
|
|
2253
|
+
}, _callee14, this, [[22, 30]]);
|
|
2319
2254
|
}));
|
|
2320
|
-
function apiSaveProducts(_x22, _x23, _x24, _x25
|
|
2255
|
+
function apiSaveProducts(_x21, _x22, _x23, _x24, _x25) {
|
|
2321
2256
|
return _apiSaveProducts.apply(this, arguments);
|
|
2322
2257
|
}
|
|
2323
2258
|
return apiSaveProducts;
|
|
@@ -2337,14 +2272,14 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2337
2272
|
filter.push("+[".concat(groups[key].filter(function (f) {
|
|
2338
2273
|
return f.or;
|
|
2339
2274
|
}).map(function (f) {
|
|
2340
|
-
return "{".concat(f.id, ",").concat(f.op, ",").concat(typeof f.value == 'string'
|
|
2275
|
+
return "{".concat(f.id, ",").concat(f.op, ",").concat(typeof f.value == 'string' ? "\"".concat(f.value, "\"") : f.value, "}");
|
|
2341
2276
|
}).join(), "]"));
|
|
2342
2277
|
}
|
|
2343
2278
|
}
|
|
2344
2279
|
filters.filter(function (f) {
|
|
2345
2280
|
return !f.or;
|
|
2346
2281
|
}).forEach(function (f) {
|
|
2347
|
-
return filter.push("{".concat(f.id, ",").concat(f.op, ",").concat(typeof f.value == 'string'
|
|
2282
|
+
return filter.push("{".concat(f.id, ",").concat(f.op, ",").concat(typeof f.value == 'string' ? "\"".concat(f.value, "\"") : f.value, "}"));
|
|
2348
2283
|
});
|
|
2349
2284
|
}
|
|
2350
2285
|
return "[".concat(filter.join(), "]");
|
|
@@ -2542,10 +2477,10 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2542
2477
|
}, {
|
|
2543
2478
|
key: "loadSelectOptions",
|
|
2544
2479
|
value: function () {
|
|
2545
|
-
var _loadSelectOptions = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function
|
|
2480
|
+
var _loadSelectOptions = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee15(sessionGuid, dataSource, additionalFilter) {
|
|
2546
2481
|
var values, apiUrl, i, apiResult, _i3, value, text;
|
|
2547
|
-
return _regeneratorRuntime__default["default"].wrap(function
|
|
2548
|
-
while (1) switch (
|
|
2482
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee15$(_context18) {
|
|
2483
|
+
while (1) switch (_context18.prev = _context18.next) {
|
|
2549
2484
|
case 0:
|
|
2550
2485
|
values = [];
|
|
2551
2486
|
apiUrl = dataSource.url;
|
|
@@ -2554,7 +2489,7 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2554
2489
|
apiUrl += '&' + additionalFilter[i].key + '=' + additionalFilter[i].value;
|
|
2555
2490
|
}
|
|
2556
2491
|
}
|
|
2557
|
-
|
|
2492
|
+
_context18.next = 5;
|
|
2558
2493
|
return fetch(apiUrl, {
|
|
2559
2494
|
headers: {
|
|
2560
2495
|
sessionGuid: sessionGuid
|
|
@@ -2566,7 +2501,7 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2566
2501
|
return res.json();
|
|
2567
2502
|
});
|
|
2568
2503
|
case 5:
|
|
2569
|
-
apiResult =
|
|
2504
|
+
apiResult = _context18.sent;
|
|
2570
2505
|
if (dataSource.useKey) {
|
|
2571
2506
|
apiResult = apiResult[dataSource.useKey];
|
|
2572
2507
|
}
|
|
@@ -2578,14 +2513,14 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2578
2513
|
text: text
|
|
2579
2514
|
});
|
|
2580
2515
|
}
|
|
2581
|
-
return
|
|
2516
|
+
return _context18.abrupt("return", values);
|
|
2582
2517
|
case 9:
|
|
2583
2518
|
case "end":
|
|
2584
|
-
return
|
|
2519
|
+
return _context18.stop();
|
|
2585
2520
|
}
|
|
2586
|
-
},
|
|
2521
|
+
}, _callee15);
|
|
2587
2522
|
}));
|
|
2588
|
-
function loadSelectOptions(_x27, _x28
|
|
2523
|
+
function loadSelectOptions(_x26, _x27, _x28) {
|
|
2589
2524
|
return _loadSelectOptions.apply(this, arguments);
|
|
2590
2525
|
}
|
|
2591
2526
|
return loadSelectOptions;
|
package/build/esm/index.js
CHANGED
|
@@ -1956,117 +1956,52 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
1956
1956
|
return apiGetProductByFilter;
|
|
1957
1957
|
}()
|
|
1958
1958
|
}, {
|
|
1959
|
-
key: "
|
|
1959
|
+
key: "apiMarkAsFavorite",
|
|
1960
1960
|
value: function () {
|
|
1961
|
-
var
|
|
1961
|
+
var _apiMarkAsFavorite = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee11(id, organizationId) {
|
|
1962
1962
|
var _res4;
|
|
1963
|
-
var
|
|
1964
|
-
useFilter,
|
|
1965
|
-
filterParam,
|
|
1966
|
-
fullUrl,
|
|
1967
|
-
queryString,
|
|
1968
|
-
res,
|
|
1969
|
-
resData,
|
|
1970
|
-
_args13 = arguments;
|
|
1963
|
+
var fullUrl, res, resData;
|
|
1971
1964
|
return _regeneratorRuntime.wrap(function _callee11$(_context13) {
|
|
1972
1965
|
while (1) switch (_context13.prev = _context13.next) {
|
|
1973
|
-
case 0:
|
|
1974
|
-
limit = _args13.length > 1 && _args13[1] !== undefined ? _args13[1] : 1;
|
|
1975
|
-
useFilter = _args13.length > 2 ? _args13[2] : undefined;
|
|
1976
|
-
filterParam = useFilter ? 'filter' : 'search';
|
|
1977
|
-
fullUrl = new URL(this.catalogService + '/v1/products/query');
|
|
1978
|
-
queryString = new URLSearchParams();
|
|
1979
|
-
queryString.append(filterParam, encodeURIComponent(this.parseFilter(filter)));
|
|
1980
|
-
queryString.append('sort', encodeURIComponent('{-created}'));
|
|
1981
|
-
queryString.append('limit', limit.toString());
|
|
1982
|
-
fullUrl.search = queryString.toString();
|
|
1983
|
-
_context13.prev = 9;
|
|
1984
|
-
_context13.next = 12;
|
|
1985
|
-
return axios.get(fullUrl.toString(), {
|
|
1986
|
-
headers: _objectSpread(_objectSpread({}, this.getHeaders()), {}, {
|
|
1987
|
-
'Content-Type': 'application/json'
|
|
1988
|
-
})
|
|
1989
|
-
});
|
|
1990
|
-
case 12:
|
|
1991
|
-
res = _context13.sent;
|
|
1992
|
-
_context13.next = 15;
|
|
1993
|
-
return res.data;
|
|
1994
|
-
case 15:
|
|
1995
|
-
resData = _context13.sent;
|
|
1996
|
-
_context13.next = 21;
|
|
1997
|
-
break;
|
|
1998
|
-
case 18:
|
|
1999
|
-
_context13.prev = 18;
|
|
2000
|
-
_context13.t0 = _context13["catch"](9);
|
|
2001
|
-
throw new Error('Could not get existing products', {
|
|
2002
|
-
cause: _context13.t0
|
|
2003
|
-
});
|
|
2004
|
-
case 21:
|
|
2005
|
-
if (!(((_res4 = res) === null || _res4 === void 0 ? void 0 : _res4.status) == 200)) {
|
|
2006
|
-
_context13.next = 23;
|
|
2007
|
-
break;
|
|
2008
|
-
}
|
|
2009
|
-
return _context13.abrupt("return", resData);
|
|
2010
|
-
case 23:
|
|
2011
|
-
throw new Error(resData.error);
|
|
2012
|
-
case 24:
|
|
2013
|
-
case "end":
|
|
2014
|
-
return _context13.stop();
|
|
2015
|
-
}
|
|
2016
|
-
}, _callee11, this, [[9, 18]]);
|
|
2017
|
-
}));
|
|
2018
|
-
function apiGetProductByQuery(_x18) {
|
|
2019
|
-
return _apiGetProductByQuery.apply(this, arguments);
|
|
2020
|
-
}
|
|
2021
|
-
return apiGetProductByQuery;
|
|
2022
|
-
}()
|
|
2023
|
-
}, {
|
|
2024
|
-
key: "apiMarkAsFavorite",
|
|
2025
|
-
value: function () {
|
|
2026
|
-
var _apiMarkAsFavorite = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee12(id, organizationId) {
|
|
2027
|
-
var _res5;
|
|
2028
|
-
var fullUrl, res, resData;
|
|
2029
|
-
return _regeneratorRuntime.wrap(function _callee12$(_context14) {
|
|
2030
|
-
while (1) switch (_context14.prev = _context14.next) {
|
|
2031
1966
|
case 0:
|
|
2032
1967
|
fullUrl = new URL(this.catalogService + '/v1/products/' + id + '/favorite');
|
|
2033
1968
|
fullUrl.searchParams.append('organizationId', organizationId);
|
|
2034
|
-
|
|
2035
|
-
|
|
1969
|
+
_context13.prev = 2;
|
|
1970
|
+
_context13.next = 5;
|
|
2036
1971
|
return axios.post(fullUrl.toString(), undefined, {
|
|
2037
1972
|
headers: _objectSpread(_objectSpread({}, this.getHeaders()), {}, {
|
|
2038
1973
|
'Content-Type': 'application/json'
|
|
2039
1974
|
})
|
|
2040
1975
|
});
|
|
2041
1976
|
case 5:
|
|
2042
|
-
res =
|
|
2043
|
-
|
|
1977
|
+
res = _context13.sent;
|
|
1978
|
+
_context13.next = 8;
|
|
2044
1979
|
return res.data;
|
|
2045
1980
|
case 8:
|
|
2046
|
-
resData =
|
|
2047
|
-
|
|
1981
|
+
resData = _context13.sent;
|
|
1982
|
+
_context13.next = 14;
|
|
2048
1983
|
break;
|
|
2049
1984
|
case 11:
|
|
2050
|
-
|
|
2051
|
-
|
|
1985
|
+
_context13.prev = 11;
|
|
1986
|
+
_context13.t0 = _context13["catch"](2);
|
|
2052
1987
|
throw new Error('Error on activate product', {
|
|
2053
|
-
cause:
|
|
1988
|
+
cause: _context13.t0
|
|
2054
1989
|
});
|
|
2055
1990
|
case 14:
|
|
2056
|
-
if (!(((
|
|
2057
|
-
|
|
1991
|
+
if (!(((_res4 = res) === null || _res4 === void 0 ? void 0 : _res4.status) == 204)) {
|
|
1992
|
+
_context13.next = 16;
|
|
2058
1993
|
break;
|
|
2059
1994
|
}
|
|
2060
|
-
return
|
|
1995
|
+
return _context13.abrupt("return");
|
|
2061
1996
|
case 16:
|
|
2062
1997
|
throw new Error(resData.error);
|
|
2063
1998
|
case 17:
|
|
2064
1999
|
case "end":
|
|
2065
|
-
return
|
|
2000
|
+
return _context13.stop();
|
|
2066
2001
|
}
|
|
2067
|
-
},
|
|
2002
|
+
}, _callee11, this, [[2, 11]]);
|
|
2068
2003
|
}));
|
|
2069
|
-
function apiMarkAsFavorite(
|
|
2004
|
+
function apiMarkAsFavorite(_x18, _x19) {
|
|
2070
2005
|
return _apiMarkAsFavorite.apply(this, arguments);
|
|
2071
2006
|
}
|
|
2072
2007
|
return apiMarkAsFavorite;
|
|
@@ -2074,47 +2009,47 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2074
2009
|
}, {
|
|
2075
2010
|
key: "apiGetUniqueDivaNr",
|
|
2076
2011
|
value: function () {
|
|
2077
|
-
var _apiGetUniqueDivaNr = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function
|
|
2078
|
-
var
|
|
2012
|
+
var _apiGetUniqueDivaNr = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee12() {
|
|
2013
|
+
var _res5;
|
|
2079
2014
|
var fullUrl, res, resData;
|
|
2080
|
-
return _regeneratorRuntime.wrap(function
|
|
2081
|
-
while (1) switch (
|
|
2015
|
+
return _regeneratorRuntime.wrap(function _callee12$(_context14) {
|
|
2016
|
+
while (1) switch (_context14.prev = _context14.next) {
|
|
2082
2017
|
case 0:
|
|
2083
2018
|
fullUrl = new URL(this.basketService + '/baskets/uniqueDivaNr');
|
|
2084
|
-
|
|
2085
|
-
|
|
2019
|
+
_context14.prev = 1;
|
|
2020
|
+
_context14.next = 4;
|
|
2086
2021
|
return axios.get(fullUrl.toString(), {
|
|
2087
2022
|
headers: _objectSpread(_objectSpread({}, this.getHeaders()), {}, {
|
|
2088
2023
|
'Content-Type': 'application/json'
|
|
2089
2024
|
})
|
|
2090
2025
|
});
|
|
2091
2026
|
case 4:
|
|
2092
|
-
res =
|
|
2093
|
-
|
|
2027
|
+
res = _context14.sent;
|
|
2028
|
+
_context14.next = 7;
|
|
2094
2029
|
return res.data;
|
|
2095
2030
|
case 7:
|
|
2096
|
-
resData =
|
|
2097
|
-
|
|
2031
|
+
resData = _context14.sent;
|
|
2032
|
+
_context14.next = 13;
|
|
2098
2033
|
break;
|
|
2099
2034
|
case 10:
|
|
2100
|
-
|
|
2101
|
-
|
|
2035
|
+
_context14.prev = 10;
|
|
2036
|
+
_context14.t0 = _context14["catch"](1);
|
|
2102
2037
|
throw new Error('Error on activate product', {
|
|
2103
|
-
cause:
|
|
2038
|
+
cause: _context14.t0
|
|
2104
2039
|
});
|
|
2105
2040
|
case 13:
|
|
2106
|
-
if (!(((
|
|
2107
|
-
|
|
2041
|
+
if (!(((_res5 = res) === null || _res5 === void 0 ? void 0 : _res5.status) == 200)) {
|
|
2042
|
+
_context14.next = 15;
|
|
2108
2043
|
break;
|
|
2109
2044
|
}
|
|
2110
|
-
return
|
|
2045
|
+
return _context14.abrupt("return", resData.divaNr);
|
|
2111
2046
|
case 15:
|
|
2112
2047
|
throw new Error(resData.error);
|
|
2113
2048
|
case 16:
|
|
2114
2049
|
case "end":
|
|
2115
|
-
return
|
|
2050
|
+
return _context14.stop();
|
|
2116
2051
|
}
|
|
2117
|
-
},
|
|
2052
|
+
}, _callee12, this, [[1, 10]]);
|
|
2118
2053
|
}));
|
|
2119
2054
|
function apiGetUniqueDivaNr() {
|
|
2120
2055
|
return _apiGetUniqueDivaNr.apply(this, arguments);
|
|
@@ -2124,10 +2059,10 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2124
2059
|
}, {
|
|
2125
2060
|
key: "apiLoadProductVariantsGrouped",
|
|
2126
2061
|
value: function () {
|
|
2127
|
-
var _apiLoadProductVariantsGrouped = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function
|
|
2062
|
+
var _apiLoadProductVariantsGrouped = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee13(_ref45) {
|
|
2128
2063
|
var limit, skip, fields, _ref45$search, search, sort, favorites, abortController, fullUrl, headers, promise;
|
|
2129
|
-
return _regeneratorRuntime.wrap(function
|
|
2130
|
-
while (1) switch (
|
|
2064
|
+
return _regeneratorRuntime.wrap(function _callee13$(_context15) {
|
|
2065
|
+
while (1) switch (_context15.prev = _context15.next) {
|
|
2131
2066
|
case 0:
|
|
2132
2067
|
limit = _ref45.limit, skip = _ref45.skip, fields = _ref45.fields, _ref45$search = _ref45.search, search = _ref45$search === void 0 ? [] : _ref45$search, sort = _ref45.sort, favorites = _ref45.favorites, abortController = _ref45.abortController;
|
|
2133
2068
|
fullUrl = this.catalogService + '/v1/products/groups' + '?organizationId=' + this.organization._id + (this._organization.parentOrganizationIds ? '&parentOrganizationIds=' + this._organization.parentOrganizationIds.join(',') : '') + (limit ? '&limit=' + limit : '') + (skip ? '&skip=' + skip : '') + (fields ? '&fileds=' + DivaUtils.fixedEncodeURIComponent('{' + fields.join(',') + '}') : '') + (search.length ? '&search=' + DivaUtils.fixedEncodeURIComponent(this.parseFilter(search)) : '') + (sort ? '&sort=' + DivaUtils.fixedEncodeURIComponent(sort) : '') + (favorites ? '&favorites=true' : '');
|
|
@@ -2151,17 +2086,17 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2151
2086
|
reject('Error loading products grouped by variants: ' + error.message);
|
|
2152
2087
|
});
|
|
2153
2088
|
});
|
|
2154
|
-
|
|
2089
|
+
_context15.next = 7;
|
|
2155
2090
|
return promise;
|
|
2156
2091
|
case 7:
|
|
2157
|
-
return
|
|
2092
|
+
return _context15.abrupt("return", _context15.sent);
|
|
2158
2093
|
case 8:
|
|
2159
2094
|
case "end":
|
|
2160
|
-
return
|
|
2095
|
+
return _context15.stop();
|
|
2161
2096
|
}
|
|
2162
|
-
},
|
|
2097
|
+
}, _callee13, this);
|
|
2163
2098
|
}));
|
|
2164
|
-
function apiLoadProductVariantsGrouped(
|
|
2099
|
+
function apiLoadProductVariantsGrouped(_x20) {
|
|
2165
2100
|
return _apiLoadProductVariantsGrouped.apply(this, arguments);
|
|
2166
2101
|
}
|
|
2167
2102
|
return apiLoadProductVariantsGrouped;
|
|
@@ -2169,11 +2104,11 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2169
2104
|
}, {
|
|
2170
2105
|
key: "apiSaveProducts",
|
|
2171
2106
|
value: function () {
|
|
2172
|
-
var _apiSaveProducts = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function
|
|
2107
|
+
var _apiSaveProducts = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee14(serverUrl, jwt, products, awaitPDF, removedProductIds) {
|
|
2173
2108
|
var _this$openModal3, _this$t3;
|
|
2174
2109
|
var fullUrl, response, status, BATCH_SIZE, productsPackages, groupIndex, baseProduct, i, _productsPackages$gro, _productsPackages$gro2, responseProducts, timeItTook, _i2, _this$openModal4, _this$t4, startTime, endTime, estTime, _loop3, j;
|
|
2175
|
-
return _regeneratorRuntime.wrap(function
|
|
2176
|
-
while (1) switch (
|
|
2110
|
+
return _regeneratorRuntime.wrap(function _callee14$(_context17) {
|
|
2111
|
+
while (1) switch (_context17.prev = _context17.next) {
|
|
2177
2112
|
case 0:
|
|
2178
2113
|
fullUrl = serverUrl + '/v1/products/groups';
|
|
2179
2114
|
BATCH_SIZE = 10;
|
|
@@ -2182,22 +2117,22 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2182
2117
|
i = 0;
|
|
2183
2118
|
case 5:
|
|
2184
2119
|
if (!(i < products.length)) {
|
|
2185
|
-
|
|
2120
|
+
_context17.next = 15;
|
|
2186
2121
|
break;
|
|
2187
2122
|
}
|
|
2188
2123
|
if (!products[i].baseProduct) {
|
|
2189
|
-
|
|
2124
|
+
_context17.next = 9;
|
|
2190
2125
|
break;
|
|
2191
2126
|
}
|
|
2192
2127
|
baseProduct = products[i];
|
|
2193
|
-
return
|
|
2128
|
+
return _context17.abrupt("continue", 12);
|
|
2194
2129
|
case 9:
|
|
2195
2130
|
if (BATCH_SIZE < ((_productsPackages$gro = (_productsPackages$gro2 = productsPackages[groupIndex]) === null || _productsPackages$gro2 === void 0 ? void 0 : _productsPackages$gro2.length) !== null && _productsPackages$gro !== void 0 ? _productsPackages$gro : 0)) groupIndex++;
|
|
2196
2131
|
if (!productsPackages[groupIndex]) productsPackages[groupIndex] = [];
|
|
2197
2132
|
productsPackages[groupIndex].push(products[i]);
|
|
2198
2133
|
case 12:
|
|
2199
2134
|
i++;
|
|
2200
|
-
|
|
2135
|
+
_context17.next = 5;
|
|
2201
2136
|
break;
|
|
2202
2137
|
case 15:
|
|
2203
2138
|
responseProducts = [];
|
|
@@ -2210,13 +2145,13 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2210
2145
|
_i2 = 0;
|
|
2211
2146
|
case 19:
|
|
2212
2147
|
if (!(_i2 < productsPackages.length)) {
|
|
2213
|
-
|
|
2148
|
+
_context17.next = 47;
|
|
2214
2149
|
break;
|
|
2215
2150
|
}
|
|
2216
2151
|
if (baseProduct && _i2 == 0) productsPackages[_i2].unshift(baseProduct);
|
|
2217
2152
|
startTime = Date.now();
|
|
2218
|
-
|
|
2219
|
-
|
|
2153
|
+
_context17.prev = 22;
|
|
2154
|
+
_context17.next = 25;
|
|
2220
2155
|
return fetch(fullUrl, {
|
|
2221
2156
|
method: 'PUT',
|
|
2222
2157
|
headers: {
|
|
@@ -2236,18 +2171,18 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2236
2171
|
return res.json();
|
|
2237
2172
|
});
|
|
2238
2173
|
case 25:
|
|
2239
|
-
response =
|
|
2174
|
+
response = _context17.sent;
|
|
2240
2175
|
if (!response.Error) {
|
|
2241
|
-
|
|
2176
|
+
_context17.next = 28;
|
|
2242
2177
|
break;
|
|
2243
2178
|
}
|
|
2244
2179
|
throw new Error('Error saving Basket and Products. serverError: ' + response.Error);
|
|
2245
2180
|
case 28:
|
|
2246
|
-
|
|
2181
|
+
_context17.next = 33;
|
|
2247
2182
|
break;
|
|
2248
2183
|
case 30:
|
|
2249
|
-
|
|
2250
|
-
|
|
2184
|
+
_context17.prev = 30;
|
|
2185
|
+
_context17.t0 = _context17["catch"](22);
|
|
2251
2186
|
throw Error(status);
|
|
2252
2187
|
case 33:
|
|
2253
2188
|
endTime = Date.now();
|
|
@@ -2261,8 +2196,8 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2261
2196
|
dontRenderForm: true
|
|
2262
2197
|
});
|
|
2263
2198
|
_loop3 = /*#__PURE__*/_regeneratorRuntime.mark(function _loop3(j) {
|
|
2264
|
-
return _regeneratorRuntime.wrap(function _loop3$(
|
|
2265
|
-
while (1) switch (
|
|
2199
|
+
return _regeneratorRuntime.wrap(function _loop3$(_context16) {
|
|
2200
|
+
while (1) switch (_context16.prev = _context16.next) {
|
|
2266
2201
|
case 0:
|
|
2267
2202
|
if (response.products[j].baseProduct) baseProduct = response.products[j];
|
|
2268
2203
|
if (!responseProducts.find(function (p) {
|
|
@@ -2272,34 +2207,34 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2272
2207
|
}
|
|
2273
2208
|
case 2:
|
|
2274
2209
|
case "end":
|
|
2275
|
-
return
|
|
2210
|
+
return _context16.stop();
|
|
2276
2211
|
}
|
|
2277
2212
|
}, _loop3);
|
|
2278
2213
|
});
|
|
2279
2214
|
j = 0;
|
|
2280
2215
|
case 39:
|
|
2281
2216
|
if (!(j < response.products.length)) {
|
|
2282
|
-
|
|
2217
|
+
_context17.next = 44;
|
|
2283
2218
|
break;
|
|
2284
2219
|
}
|
|
2285
|
-
return
|
|
2220
|
+
return _context17.delegateYield(_loop3(j), "t1", 41);
|
|
2286
2221
|
case 41:
|
|
2287
2222
|
j++;
|
|
2288
|
-
|
|
2223
|
+
_context17.next = 39;
|
|
2289
2224
|
break;
|
|
2290
2225
|
case 44:
|
|
2291
2226
|
_i2++;
|
|
2292
|
-
|
|
2227
|
+
_context17.next = 19;
|
|
2293
2228
|
break;
|
|
2294
2229
|
case 47:
|
|
2295
|
-
return
|
|
2230
|
+
return _context17.abrupt("return", responseProducts);
|
|
2296
2231
|
case 48:
|
|
2297
2232
|
case "end":
|
|
2298
|
-
return
|
|
2233
|
+
return _context17.stop();
|
|
2299
2234
|
}
|
|
2300
|
-
},
|
|
2235
|
+
}, _callee14, this, [[22, 30]]);
|
|
2301
2236
|
}));
|
|
2302
|
-
function apiSaveProducts(_x22, _x23, _x24, _x25
|
|
2237
|
+
function apiSaveProducts(_x21, _x22, _x23, _x24, _x25) {
|
|
2303
2238
|
return _apiSaveProducts.apply(this, arguments);
|
|
2304
2239
|
}
|
|
2305
2240
|
return apiSaveProducts;
|
|
@@ -2319,14 +2254,14 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2319
2254
|
filter.push("+[".concat(groups[key].filter(function (f) {
|
|
2320
2255
|
return f.or;
|
|
2321
2256
|
}).map(function (f) {
|
|
2322
|
-
return "{".concat(f.id, ",").concat(f.op, ",").concat(typeof f.value == 'string'
|
|
2257
|
+
return "{".concat(f.id, ",").concat(f.op, ",").concat(typeof f.value == 'string' ? "\"".concat(f.value, "\"") : f.value, "}");
|
|
2323
2258
|
}).join(), "]"));
|
|
2324
2259
|
}
|
|
2325
2260
|
}
|
|
2326
2261
|
filters.filter(function (f) {
|
|
2327
2262
|
return !f.or;
|
|
2328
2263
|
}).forEach(function (f) {
|
|
2329
|
-
return filter.push("{".concat(f.id, ",").concat(f.op, ",").concat(typeof f.value == 'string'
|
|
2264
|
+
return filter.push("{".concat(f.id, ",").concat(f.op, ",").concat(typeof f.value == 'string' ? "\"".concat(f.value, "\"") : f.value, "}"));
|
|
2330
2265
|
});
|
|
2331
2266
|
}
|
|
2332
2267
|
return "[".concat(filter.join(), "]");
|
|
@@ -2524,10 +2459,10 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2524
2459
|
}, {
|
|
2525
2460
|
key: "loadSelectOptions",
|
|
2526
2461
|
value: function () {
|
|
2527
|
-
var _loadSelectOptions = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function
|
|
2462
|
+
var _loadSelectOptions = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee15(sessionGuid, dataSource, additionalFilter) {
|
|
2528
2463
|
var values, apiUrl, i, apiResult, _i3, value, text;
|
|
2529
|
-
return _regeneratorRuntime.wrap(function
|
|
2530
|
-
while (1) switch (
|
|
2464
|
+
return _regeneratorRuntime.wrap(function _callee15$(_context18) {
|
|
2465
|
+
while (1) switch (_context18.prev = _context18.next) {
|
|
2531
2466
|
case 0:
|
|
2532
2467
|
values = [];
|
|
2533
2468
|
apiUrl = dataSource.url;
|
|
@@ -2536,7 +2471,7 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2536
2471
|
apiUrl += '&' + additionalFilter[i].key + '=' + additionalFilter[i].value;
|
|
2537
2472
|
}
|
|
2538
2473
|
}
|
|
2539
|
-
|
|
2474
|
+
_context18.next = 5;
|
|
2540
2475
|
return fetch(apiUrl, {
|
|
2541
2476
|
headers: {
|
|
2542
2477
|
sessionGuid: sessionGuid
|
|
@@ -2548,7 +2483,7 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2548
2483
|
return res.json();
|
|
2549
2484
|
});
|
|
2550
2485
|
case 5:
|
|
2551
|
-
apiResult =
|
|
2486
|
+
apiResult = _context18.sent;
|
|
2552
2487
|
if (dataSource.useKey) {
|
|
2553
2488
|
apiResult = apiResult[dataSource.useKey];
|
|
2554
2489
|
}
|
|
@@ -2560,14 +2495,14 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2560
2495
|
text: text
|
|
2561
2496
|
});
|
|
2562
2497
|
}
|
|
2563
|
-
return
|
|
2498
|
+
return _context18.abrupt("return", values);
|
|
2564
2499
|
case 9:
|
|
2565
2500
|
case "end":
|
|
2566
|
-
return
|
|
2501
|
+
return _context18.stop();
|
|
2567
2502
|
}
|
|
2568
|
-
},
|
|
2503
|
+
}, _callee15);
|
|
2569
2504
|
}));
|
|
2570
|
-
function loadSelectOptions(_x27, _x28
|
|
2505
|
+
function loadSelectOptions(_x26, _x27, _x28) {
|
|
2571
2506
|
return _loadSelectOptions.apply(this, arguments);
|
|
2572
2507
|
}
|
|
2573
2508
|
return loadSelectOptions;
|
|
@@ -240,11 +240,6 @@ export declare class ProductHandlerAbstract {
|
|
|
240
240
|
}[], limit?: number, useFilter?: boolean, hierarchy?: boolean): Promise<{
|
|
241
241
|
data: any[];
|
|
242
242
|
}>;
|
|
243
|
-
apiGetProductByQuery(filter: {
|
|
244
|
-
id: string;
|
|
245
|
-
op: string;
|
|
246
|
-
value: string | number | boolean;
|
|
247
|
-
}[], limit?: number, useFilter?: boolean): Promise<any>;
|
|
248
243
|
apiMarkAsFavorite(id: string, organizationId: string): Promise<void>;
|
|
249
244
|
apiGetUniqueDivaNr(): Promise<any>;
|
|
250
245
|
static loadSelectOptions(sessionGuid: string, dataSource: DataSourceApi, additionalFilter?: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAoB,aAAa,EAAE,6BAA6B,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAIpJ,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,EAA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EAAE,MAAM,CAAC;QACd,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;QAClB,MAAM,CAAC,EAAE,YAAY,EAAE,CAAC;QACxB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,eAAe,CAAC,EAAE,eAAe,CAAC;KACnC;YAoCa,eAAe;IA0E7B,OAAO,CAAC,WAAW;IAoBnB,MAAM,CAAC,mBAAmB,CAAC,IAAI,EAAE,GAAG,EAAE;IAOtC,MAAM,CAAC,iCAAiC,CAAC,UAAU,EAAE,6BAA6B,EAAE,EAAE,WAAW,EAAE,eAAe,EAAE;IAyBpH,MAAM,CAAC,qBAAqB,EAAE,cAAc,EAAE,CAa5C;IAEF,MAAM,CAAC,sBAAsB,EAAE,cAAc,EAAE,CAiE7C;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": "25.8.0-beta.
|
|
3
|
+
"version": "25.8.0-beta.2",
|
|
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": "4333eeff9a165c43b2421ffe3abb4852c6014f08"
|
|
16
16
|
}
|