@aurigma/ng-storefront-api-client 2.60.2 → 2.63.14

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.
@@ -931,6 +931,108 @@
931
931
  }
932
932
  return rxjs.of(null);
933
933
  };
934
+ /**
935
+ * Returns a product bundle personalization parameters by product identifier.
936
+ * @param id Product bundle identifier.
937
+ * @param productBundleVersionId (optional) Product bundle version identifier.
938
+ * @param tenantId (optional) Tenant identifier.
939
+ * @return Success
940
+ */
941
+ ProductBundlesApiClient.prototype.getProductBundlePersonalizationParameters = function (id, productBundleVersionId, tenantId) {
942
+ var _this = this;
943
+ var url_ = this.baseUrl + "/api/storefront/v1/product-bundles/{id}/personalization-parameters?";
944
+ if (id === undefined || id === null)
945
+ throw new Error("The parameter 'id' must be defined.");
946
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
947
+ if (productBundleVersionId !== undefined && productBundleVersionId !== null)
948
+ url_ += "productBundleVersionId=" + encodeURIComponent("" + productBundleVersionId) + "&";
949
+ if (tenantId !== undefined && tenantId !== null)
950
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
951
+ url_ = url_.replace(/[?&]$/, "");
952
+ var options_ = {
953
+ observe: "response",
954
+ responseType: "blob",
955
+ headers: new i1.HttpHeaders({
956
+ "Accept": "application/json"
957
+ })
958
+ };
959
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
960
+ return _this.http.request("get", url_, transformedOptions_);
961
+ })).pipe(operators.mergeMap(function (response_) {
962
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetProductBundlePersonalizationParameters(r); });
963
+ })).pipe(operators.catchError(function (response_) {
964
+ if (response_ instanceof i1.HttpResponseBase) {
965
+ try {
966
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetProductBundlePersonalizationParameters(r); });
967
+ }
968
+ catch (e) {
969
+ return rxjs.throwError(e);
970
+ }
971
+ }
972
+ else
973
+ return rxjs.throwError(response_);
974
+ }));
975
+ };
976
+ ProductBundlesApiClient.prototype.processGetProductBundlePersonalizationParameters = function (response) {
977
+ var e_7, _a;
978
+ var _this = this;
979
+ var status = response.status;
980
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
981
+ response.error instanceof Blob ? response.error : undefined;
982
+ var _headers = {};
983
+ if (response.headers) {
984
+ try {
985
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
986
+ var key = _c.value;
987
+ _headers[key] = response.headers.get(key);
988
+ }
989
+ }
990
+ catch (e_7_1) { e_7 = { error: e_7_1 }; }
991
+ finally {
992
+ try {
993
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
994
+ }
995
+ finally { if (e_7) throw e_7.error; }
996
+ }
997
+ }
998
+ if (status === 200) {
999
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
1000
+ var result200 = null;
1001
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
1002
+ return rxjs.of(result200);
1003
+ }));
1004
+ }
1005
+ else if (status === 404) {
1006
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
1007
+ var result404 = null;
1008
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
1009
+ return throwException("Not Found", status, _responseText, _headers, result404);
1010
+ }));
1011
+ }
1012
+ else if (status === 409) {
1013
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
1014
+ var result409 = null;
1015
+ result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
1016
+ return throwException("Conflict", status, _responseText, _headers, result409);
1017
+ }));
1018
+ }
1019
+ else if (status === 401) {
1020
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
1021
+ return throwException("Unauthorized", status, _responseText, _headers);
1022
+ }));
1023
+ }
1024
+ else if (status === 403) {
1025
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
1026
+ return throwException("Forbidden", status, _responseText, _headers);
1027
+ }));
1028
+ }
1029
+ else if (status !== 200 && status !== 204) {
1030
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
1031
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
1032
+ }));
1033
+ }
1034
+ return rxjs.of(null);
1035
+ };
934
1036
  /**
935
1037
  * Returns a product bundle summary by product bundle identifier.
936
1038
  * @param id Product bundle identifier.
@@ -980,7 +1082,7 @@
980
1082
  }));
981
1083
  };
982
1084
  ProductBundlesApiClient.prototype.processGetProductSummary = function (response) {
983
- var e_7, _a;
1085
+ var e_8, _a;
984
1086
  var _this = this;
985
1087
  var status = response.status;
986
1088
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -993,12 +1095,12 @@
993
1095
  _headers[key] = response.headers.get(key);
994
1096
  }
995
1097
  }
996
- catch (e_7_1) { e_7 = { error: e_7_1 }; }
1098
+ catch (e_8_1) { e_8 = { error: e_8_1 }; }
997
1099
  finally {
998
1100
  try {
999
1101
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1000
1102
  }
1001
- finally { if (e_7) throw e_7.error; }
1103
+ finally { if (e_8) throw e_8.error; }
1002
1104
  }
1003
1105
  }
1004
1106
  if (status === 200) {
@@ -1082,7 +1184,7 @@
1082
1184
  }));
1083
1185
  };
1084
1186
  ProductBundlesApiClient.prototype.processGetPersonalizationWorkflow = function (response) {
1085
- var e_8, _a;
1187
+ var e_9, _a;
1086
1188
  var _this = this;
1087
1189
  var status = response.status;
1088
1190
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -1095,12 +1197,12 @@
1095
1197
  _headers[key] = response.headers.get(key);
1096
1198
  }
1097
1199
  }
1098
- catch (e_8_1) { e_8 = { error: e_8_1 }; }
1200
+ catch (e_9_1) { e_9 = { error: e_9_1 }; }
1099
1201
  finally {
1100
1202
  try {
1101
1203
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1102
1204
  }
1103
- finally { if (e_8) throw e_8.error; }
1205
+ finally { if (e_9) throw e_9.error; }
1104
1206
  }
1105
1207
  }
1106
1208
  if (status === 200) {
@@ -1211,7 +1313,7 @@
1211
1313
  }));
1212
1314
  };
1213
1315
  ProductLinksApiClient.prototype.processGetAllProductLinks = function (response) {
1214
- var e_9, _a;
1316
+ var e_10, _a;
1215
1317
  var _this = this;
1216
1318
  var status = response.status;
1217
1319
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -1224,12 +1326,12 @@
1224
1326
  _headers[key] = response.headers.get(key);
1225
1327
  }
1226
1328
  }
1227
- catch (e_9_1) { e_9 = { error: e_9_1 }; }
1329
+ catch (e_10_1) { e_10 = { error: e_10_1 }; }
1228
1330
  finally {
1229
1331
  try {
1230
1332
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1231
1333
  }
1232
- finally { if (e_9) throw e_9.error; }
1334
+ finally { if (e_10) throw e_10.error; }
1233
1335
  }
1234
1336
  }
1235
1337
  if (status === 200) {
@@ -1302,7 +1404,7 @@
1302
1404
  }));
1303
1405
  };
1304
1406
  ProductLinksApiClient.prototype.processGetProductLink = function (response) {
1305
- var e_10, _a;
1407
+ var e_11, _a;
1306
1408
  var _this = this;
1307
1409
  var status = response.status;
1308
1410
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -1315,12 +1417,114 @@
1315
1417
  _headers[key] = response.headers.get(key);
1316
1418
  }
1317
1419
  }
1318
- catch (e_10_1) { e_10 = { error: e_10_1 }; }
1420
+ catch (e_11_1) { e_11 = { error: e_11_1 }; }
1319
1421
  finally {
1320
1422
  try {
1321
1423
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1322
1424
  }
1323
- finally { if (e_10) throw e_10.error; }
1425
+ finally { if (e_11) throw e_11.error; }
1426
+ }
1427
+ }
1428
+ if (status === 200) {
1429
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
1430
+ var result200 = null;
1431
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
1432
+ return rxjs.of(result200);
1433
+ }));
1434
+ }
1435
+ else if (status === 404) {
1436
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
1437
+ var result404 = null;
1438
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
1439
+ return throwException("Not Found", status, _responseText, _headers, result404);
1440
+ }));
1441
+ }
1442
+ else if (status === 409) {
1443
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
1444
+ var result409 = null;
1445
+ result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
1446
+ return throwException("Conflict", status, _responseText, _headers, result409);
1447
+ }));
1448
+ }
1449
+ else if (status === 401) {
1450
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
1451
+ return throwException("Unauthorized", status, _responseText, _headers);
1452
+ }));
1453
+ }
1454
+ else if (status === 403) {
1455
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
1456
+ return throwException("Forbidden", status, _responseText, _headers);
1457
+ }));
1458
+ }
1459
+ else if (status !== 200 && status !== 204) {
1460
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
1461
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
1462
+ }));
1463
+ }
1464
+ return rxjs.of(null);
1465
+ };
1466
+ /**
1467
+ * Returns a product link personalization parameters by product identifier.
1468
+ * @param id Product link identifier.
1469
+ * @param productLinkVersionId (optional) Product link version identifier.
1470
+ * @param tenantId (optional) Tenant identifier.
1471
+ * @return Success
1472
+ */
1473
+ ProductLinksApiClient.prototype.getProductLinkPersonalizationParameters = function (id, productLinkVersionId, tenantId) {
1474
+ var _this = this;
1475
+ var url_ = this.baseUrl + "/api/storefront/v1/product-links/{id}/personalization-parameters?";
1476
+ if (id === undefined || id === null)
1477
+ throw new Error("The parameter 'id' must be defined.");
1478
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
1479
+ if (productLinkVersionId !== undefined && productLinkVersionId !== null)
1480
+ url_ += "productLinkVersionId=" + encodeURIComponent("" + productLinkVersionId) + "&";
1481
+ if (tenantId !== undefined && tenantId !== null)
1482
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
1483
+ url_ = url_.replace(/[?&]$/, "");
1484
+ var options_ = {
1485
+ observe: "response",
1486
+ responseType: "blob",
1487
+ headers: new i1.HttpHeaders({
1488
+ "Accept": "application/json"
1489
+ })
1490
+ };
1491
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
1492
+ return _this.http.request("get", url_, transformedOptions_);
1493
+ })).pipe(operators.mergeMap(function (response_) {
1494
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetProductLinkPersonalizationParameters(r); });
1495
+ })).pipe(operators.catchError(function (response_) {
1496
+ if (response_ instanceof i1.HttpResponseBase) {
1497
+ try {
1498
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetProductLinkPersonalizationParameters(r); });
1499
+ }
1500
+ catch (e) {
1501
+ return rxjs.throwError(e);
1502
+ }
1503
+ }
1504
+ else
1505
+ return rxjs.throwError(response_);
1506
+ }));
1507
+ };
1508
+ ProductLinksApiClient.prototype.processGetProductLinkPersonalizationParameters = function (response) {
1509
+ var e_12, _a;
1510
+ var _this = this;
1511
+ var status = response.status;
1512
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
1513
+ response.error instanceof Blob ? response.error : undefined;
1514
+ var _headers = {};
1515
+ if (response.headers) {
1516
+ try {
1517
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
1518
+ var key = _c.value;
1519
+ _headers[key] = response.headers.get(key);
1520
+ }
1521
+ }
1522
+ catch (e_12_1) { e_12 = { error: e_12_1 }; }
1523
+ finally {
1524
+ try {
1525
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1526
+ }
1527
+ finally { if (e_12) throw e_12.error; }
1324
1528
  }
1325
1529
  }
1326
1530
  if (status === 200) {
@@ -1413,7 +1617,7 @@
1413
1617
  }));
1414
1618
  };
1415
1619
  ProductLinksApiClient.prototype.processGetProductSummary = function (response) {
1416
- var e_11, _a;
1620
+ var e_13, _a;
1417
1621
  var _this = this;
1418
1622
  var status = response.status;
1419
1623
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -1426,12 +1630,12 @@
1426
1630
  _headers[key] = response.headers.get(key);
1427
1631
  }
1428
1632
  }
1429
- catch (e_11_1) { e_11 = { error: e_11_1 }; }
1633
+ catch (e_13_1) { e_13 = { error: e_13_1 }; }
1430
1634
  finally {
1431
1635
  try {
1432
1636
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1433
1637
  }
1434
- finally { if (e_11) throw e_11.error; }
1638
+ finally { if (e_13) throw e_13.error; }
1435
1639
  }
1436
1640
  }
1437
1641
  if (status === 200) {
@@ -1521,7 +1725,7 @@
1521
1725
  }));
1522
1726
  };
1523
1727
  ProductLinksApiClient.prototype.processGetPersonalizationWorkflow = function (response) {
1524
- var e_12, _a;
1728
+ var e_14, _a;
1525
1729
  var _this = this;
1526
1730
  var status = response.status;
1527
1731
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -1534,12 +1738,12 @@
1534
1738
  _headers[key] = response.headers.get(key);
1535
1739
  }
1536
1740
  }
1537
- catch (e_12_1) { e_12 = { error: e_12_1 }; }
1741
+ catch (e_14_1) { e_14 = { error: e_14_1 }; }
1538
1742
  finally {
1539
1743
  try {
1540
1744
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1541
1745
  }
1542
- finally { if (e_12) throw e_12.error; }
1746
+ finally { if (e_14) throw e_14.error; }
1543
1747
  }
1544
1748
  }
1545
1749
  if (status === 200) {
@@ -1680,7 +1884,7 @@
1680
1884
  }));
1681
1885
  };
1682
1886
  ProductReferencesApiClient.prototype.processGetAll = function (response) {
1683
- var e_13, _a;
1887
+ var e_15, _a;
1684
1888
  var _this = this;
1685
1889
  var status = response.status;
1686
1890
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -1693,12 +1897,12 @@
1693
1897
  _headers[key] = response.headers.get(key);
1694
1898
  }
1695
1899
  }
1696
- catch (e_13_1) { e_13 = { error: e_13_1 }; }
1900
+ catch (e_15_1) { e_15 = { error: e_15_1 }; }
1697
1901
  finally {
1698
1902
  try {
1699
1903
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1700
1904
  }
1701
- finally { if (e_13) throw e_13.error; }
1905
+ finally { if (e_15) throw e_15.error; }
1702
1906
  }
1703
1907
  }
1704
1908
  if (status === 200) {
@@ -1810,7 +2014,7 @@
1810
2014
  }));
1811
2015
  };
1812
2016
  ProductReferencesApiClient.prototype.processGetAllProductSpecifications = function (response) {
1813
- var e_14, _a;
2017
+ var e_16, _a;
1814
2018
  var _this = this;
1815
2019
  var status = response.status;
1816
2020
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -1823,12 +2027,12 @@
1823
2027
  _headers[key] = response.headers.get(key);
1824
2028
  }
1825
2029
  }
1826
- catch (e_14_1) { e_14 = { error: e_14_1 }; }
2030
+ catch (e_16_1) { e_16 = { error: e_16_1 }; }
1827
2031
  finally {
1828
2032
  try {
1829
2033
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1830
2034
  }
1831
- finally { if (e_14) throw e_14.error; }
2035
+ finally { if (e_16) throw e_16.error; }
1832
2036
  }
1833
2037
  }
1834
2038
  if (status === 200) {
@@ -1940,7 +2144,7 @@
1940
2144
  }));
1941
2145
  };
1942
2146
  ProductReferencesApiClient.prototype.processGetAllProducts = function (response) {
1943
- var e_15, _a;
2147
+ var e_17, _a;
1944
2148
  var _this = this;
1945
2149
  var status = response.status;
1946
2150
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -1953,12 +2157,12 @@
1953
2157
  _headers[key] = response.headers.get(key);
1954
2158
  }
1955
2159
  }
1956
- catch (e_15_1) { e_15 = { error: e_15_1 }; }
2160
+ catch (e_17_1) { e_17 = { error: e_17_1 }; }
1957
2161
  finally {
1958
2162
  try {
1959
2163
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1960
2164
  }
1961
- finally { if (e_15) throw e_15.error; }
2165
+ finally { if (e_17) throw e_17.error; }
1962
2166
  }
1963
2167
  }
1964
2168
  if (status === 200) {
@@ -2070,7 +2274,7 @@
2070
2274
  }));
2071
2275
  };
2072
2276
  ProductReferencesApiClient.prototype.processGetAllProductLinks = function (response) {
2073
- var e_16, _a;
2277
+ var e_18, _a;
2074
2278
  var _this = this;
2075
2279
  var status = response.status;
2076
2280
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2083,12 +2287,12 @@
2083
2287
  _headers[key] = response.headers.get(key);
2084
2288
  }
2085
2289
  }
2086
- catch (e_16_1) { e_16 = { error: e_16_1 }; }
2290
+ catch (e_18_1) { e_18 = { error: e_18_1 }; }
2087
2291
  finally {
2088
2292
  try {
2089
2293
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2090
2294
  }
2091
- finally { if (e_16) throw e_16.error; }
2295
+ finally { if (e_18) throw e_18.error; }
2092
2296
  }
2093
2297
  }
2094
2298
  if (status === 200) {
@@ -2200,7 +2404,7 @@
2200
2404
  }));
2201
2405
  };
2202
2406
  ProductReferencesApiClient.prototype.processGetAllProductBundles = function (response) {
2203
- var e_17, _a;
2407
+ var e_19, _a;
2204
2408
  var _this = this;
2205
2409
  var status = response.status;
2206
2410
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2213,12 +2417,12 @@
2213
2417
  _headers[key] = response.headers.get(key);
2214
2418
  }
2215
2419
  }
2216
- catch (e_17_1) { e_17 = { error: e_17_1 }; }
2420
+ catch (e_19_1) { e_19 = { error: e_19_1 }; }
2217
2421
  finally {
2218
2422
  try {
2219
2423
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2220
2424
  }
2221
- finally { if (e_17) throw e_17.error; }
2425
+ finally { if (e_19) throw e_19.error; }
2222
2426
  }
2223
2427
  }
2224
2428
  if (status === 200) {
@@ -2297,7 +2501,7 @@
2297
2501
  }));
2298
2502
  };
2299
2503
  ProductReferencesApiClient.prototype.processGet = function (response) {
2300
- var e_18, _a;
2504
+ var e_20, _a;
2301
2505
  var _this = this;
2302
2506
  var status = response.status;
2303
2507
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2310,12 +2514,12 @@
2310
2514
  _headers[key] = response.headers.get(key);
2311
2515
  }
2312
2516
  }
2313
- catch (e_18_1) { e_18 = { error: e_18_1 }; }
2517
+ catch (e_20_1) { e_20 = { error: e_20_1 }; }
2314
2518
  finally {
2315
2519
  try {
2316
2520
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2317
2521
  }
2318
- finally { if (e_18) throw e_18.error; }
2522
+ finally { if (e_20) throw e_20.error; }
2319
2523
  }
2320
2524
  }
2321
2525
  if (status === 200) {
@@ -2356,6 +2560,110 @@
2356
2560
  }
2357
2561
  return rxjs.of(null);
2358
2562
  };
2563
+ /**
2564
+ * Returns a personalization parameters by the storefront product reference.
2565
+ * @param reference Product reference - external reference to Customer's Canvas product, e.g online store product identifier.
2566
+ * @param storefrontId Storefront identifier.
2567
+ * @param tenantId (optional) Tenant identifier.
2568
+ * @return Success
2569
+ */
2570
+ ProductReferencesApiClient.prototype.getPersonalizationParameters = function (reference, storefrontId, tenantId) {
2571
+ var _this = this;
2572
+ var url_ = this.baseUrl + "/api/storefront/v1/product-references/{reference}/personalization-parameters?";
2573
+ if (reference === undefined || reference === null)
2574
+ throw new Error("The parameter 'reference' must be defined.");
2575
+ url_ = url_.replace("{reference}", encodeURIComponent("" + reference));
2576
+ if (storefrontId === undefined || storefrontId === null)
2577
+ throw new Error("The parameter 'storefrontId' must be defined and cannot be null.");
2578
+ else
2579
+ url_ += "storefrontId=" + encodeURIComponent("" + storefrontId) + "&";
2580
+ if (tenantId !== undefined && tenantId !== null)
2581
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
2582
+ url_ = url_.replace(/[?&]$/, "");
2583
+ var options_ = {
2584
+ observe: "response",
2585
+ responseType: "blob",
2586
+ headers: new i1.HttpHeaders({
2587
+ "Accept": "application/json"
2588
+ })
2589
+ };
2590
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
2591
+ return _this.http.request("get", url_, transformedOptions_);
2592
+ })).pipe(operators.mergeMap(function (response_) {
2593
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetPersonalizationParameters(r); });
2594
+ })).pipe(operators.catchError(function (response_) {
2595
+ if (response_ instanceof i1.HttpResponseBase) {
2596
+ try {
2597
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetPersonalizationParameters(r); });
2598
+ }
2599
+ catch (e) {
2600
+ return rxjs.throwError(e);
2601
+ }
2602
+ }
2603
+ else
2604
+ return rxjs.throwError(response_);
2605
+ }));
2606
+ };
2607
+ ProductReferencesApiClient.prototype.processGetPersonalizationParameters = function (response) {
2608
+ var e_21, _a;
2609
+ var _this = this;
2610
+ var status = response.status;
2611
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
2612
+ response.error instanceof Blob ? response.error : undefined;
2613
+ var _headers = {};
2614
+ if (response.headers) {
2615
+ try {
2616
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
2617
+ var key = _c.value;
2618
+ _headers[key] = response.headers.get(key);
2619
+ }
2620
+ }
2621
+ catch (e_21_1) { e_21 = { error: e_21_1 }; }
2622
+ finally {
2623
+ try {
2624
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2625
+ }
2626
+ finally { if (e_21) throw e_21.error; }
2627
+ }
2628
+ }
2629
+ if (status === 200) {
2630
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2631
+ var result200 = null;
2632
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
2633
+ return rxjs.of(result200);
2634
+ }));
2635
+ }
2636
+ else if (status === 404) {
2637
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2638
+ var result404 = null;
2639
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
2640
+ return throwException("Not Found", status, _responseText, _headers, result404);
2641
+ }));
2642
+ }
2643
+ else if (status === 409) {
2644
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2645
+ var result409 = null;
2646
+ result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
2647
+ return throwException("Conflict", status, _responseText, _headers, result409);
2648
+ }));
2649
+ }
2650
+ else if (status === 401) {
2651
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2652
+ return throwException("Unauthorized", status, _responseText, _headers);
2653
+ }));
2654
+ }
2655
+ else if (status === 403) {
2656
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2657
+ return throwException("Forbidden", status, _responseText, _headers);
2658
+ }));
2659
+ }
2660
+ else if (status !== 200 && status !== 204) {
2661
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2662
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
2663
+ }));
2664
+ }
2665
+ return rxjs.of(null);
2666
+ };
2359
2667
  /**
2360
2668
  * Returns a product specification by the storefront product reference.
2361
2669
  * @param reference Product reference - external reference to Customer's Canvas product, e.g online store product identifier.
@@ -2401,7 +2709,7 @@
2401
2709
  }));
2402
2710
  };
2403
2711
  ProductReferencesApiClient.prototype.processGetProductSpecification = function (response) {
2404
- var e_19, _a;
2712
+ var e_22, _a;
2405
2713
  var _this = this;
2406
2714
  var status = response.status;
2407
2715
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2414,12 +2722,12 @@
2414
2722
  _headers[key] = response.headers.get(key);
2415
2723
  }
2416
2724
  }
2417
- catch (e_19_1) { e_19 = { error: e_19_1 }; }
2725
+ catch (e_22_1) { e_22 = { error: e_22_1 }; }
2418
2726
  finally {
2419
2727
  try {
2420
2728
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2421
2729
  }
2422
- finally { if (e_19) throw e_19.error; }
2730
+ finally { if (e_22) throw e_22.error; }
2423
2731
  }
2424
2732
  }
2425
2733
  if (status === 200) {
@@ -2505,7 +2813,7 @@
2505
2813
  }));
2506
2814
  };
2507
2815
  ProductReferencesApiClient.prototype.processGetProduct = function (response) {
2508
- var e_20, _a;
2816
+ var e_23, _a;
2509
2817
  var _this = this;
2510
2818
  var status = response.status;
2511
2819
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2518,12 +2826,12 @@
2518
2826
  _headers[key] = response.headers.get(key);
2519
2827
  }
2520
2828
  }
2521
- catch (e_20_1) { e_20 = { error: e_20_1 }; }
2829
+ catch (e_23_1) { e_23 = { error: e_23_1 }; }
2522
2830
  finally {
2523
2831
  try {
2524
2832
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2525
2833
  }
2526
- finally { if (e_20) throw e_20.error; }
2834
+ finally { if (e_23) throw e_23.error; }
2527
2835
  }
2528
2836
  }
2529
2837
  if (status === 200) {
@@ -2615,7 +2923,7 @@
2615
2923
  }));
2616
2924
  };
2617
2925
  ProductReferencesApiClient.prototype.processGetProductSummary = function (response) {
2618
- var e_21, _a;
2926
+ var e_24, _a;
2619
2927
  var _this = this;
2620
2928
  var status = response.status;
2621
2929
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2628,12 +2936,12 @@
2628
2936
  _headers[key] = response.headers.get(key);
2629
2937
  }
2630
2938
  }
2631
- catch (e_21_1) { e_21 = { error: e_21_1 }; }
2939
+ catch (e_24_1) { e_24 = { error: e_24_1 }; }
2632
2940
  finally {
2633
2941
  try {
2634
2942
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2635
2943
  }
2636
- finally { if (e_21) throw e_21.error; }
2944
+ finally { if (e_24) throw e_24.error; }
2637
2945
  }
2638
2946
  }
2639
2947
  if (status === 200) {
@@ -2719,7 +3027,7 @@
2719
3027
  }));
2720
3028
  };
2721
3029
  ProductReferencesApiClient.prototype.processGetProductLink = function (response) {
2722
- var e_22, _a;
3030
+ var e_25, _a;
2723
3031
  var _this = this;
2724
3032
  var status = response.status;
2725
3033
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2732,12 +3040,12 @@
2732
3040
  _headers[key] = response.headers.get(key);
2733
3041
  }
2734
3042
  }
2735
- catch (e_22_1) { e_22 = { error: e_22_1 }; }
3043
+ catch (e_25_1) { e_25 = { error: e_25_1 }; }
2736
3044
  finally {
2737
3045
  try {
2738
3046
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2739
3047
  }
2740
- finally { if (e_22) throw e_22.error; }
3048
+ finally { if (e_25) throw e_25.error; }
2741
3049
  }
2742
3050
  }
2743
3051
  if (status === 200) {
@@ -2823,7 +3131,7 @@
2823
3131
  }));
2824
3132
  };
2825
3133
  ProductReferencesApiClient.prototype.processGetProductBundle = function (response) {
2826
- var e_23, _a;
3134
+ var e_26, _a;
2827
3135
  var _this = this;
2828
3136
  var status = response.status;
2829
3137
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2836,12 +3144,12 @@
2836
3144
  _headers[key] = response.headers.get(key);
2837
3145
  }
2838
3146
  }
2839
- catch (e_23_1) { e_23 = { error: e_23_1 }; }
3147
+ catch (e_26_1) { e_26 = { error: e_26_1 }; }
2840
3148
  finally {
2841
3149
  try {
2842
3150
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2843
3151
  }
2844
- finally { if (e_23) throw e_23.error; }
3152
+ finally { if (e_26) throw e_26.error; }
2845
3153
  }
2846
3154
  }
2847
3155
  if (status === 200) {
@@ -2943,7 +3251,7 @@
2943
3251
  }));
2944
3252
  };
2945
3253
  ProductReferencesApiClient.prototype.processGetProductCostDetails = function (response) {
2946
- var e_24, _a;
3254
+ var e_27, _a;
2947
3255
  var _this = this;
2948
3256
  var status = response.status;
2949
3257
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2956,12 +3264,12 @@
2956
3264
  _headers[key] = response.headers.get(key);
2957
3265
  }
2958
3266
  }
2959
- catch (e_24_1) { e_24 = { error: e_24_1 }; }
3267
+ catch (e_27_1) { e_27 = { error: e_27_1 }; }
2960
3268
  finally {
2961
3269
  try {
2962
3270
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2963
3271
  }
2964
- finally { if (e_24) throw e_24.error; }
3272
+ finally { if (e_27) throw e_27.error; }
2965
3273
  }
2966
3274
  }
2967
3275
  if (status === 200) {
@@ -3047,7 +3355,7 @@
3047
3355
  }));
3048
3356
  };
3049
3357
  ProductReferencesApiClient.prototype.processGetPersonalizationWorkflow = function (response) {
3050
- var e_25, _a;
3358
+ var e_28, _a;
3051
3359
  var _this = this;
3052
3360
  var status = response.status;
3053
3361
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3060,12 +3368,12 @@
3060
3368
  _headers[key] = response.headers.get(key);
3061
3369
  }
3062
3370
  }
3063
- catch (e_25_1) { e_25 = { error: e_25_1 }; }
3371
+ catch (e_28_1) { e_28 = { error: e_28_1 }; }
3064
3372
  finally {
3065
3373
  try {
3066
3374
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3067
3375
  }
3068
- finally { if (e_25) throw e_25.error; }
3376
+ finally { if (e_28) throw e_28.error; }
3069
3377
  }
3070
3378
  }
3071
3379
  if (status === 200) {
@@ -3129,34 +3437,122 @@
3129
3437
  return _this;
3130
3438
  }
3131
3439
  /**
3132
- * Returns all products, relevant to the specified query parameters.
3133
- * @param skip (optional) Defines page start offset from beginning of sorted result list.
3134
- * @param take (optional) Defines page length (how many consequent items of sorted result list should be taken).
3135
- * @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC".
3136
- * @param search (optional) Search string for partial match.
3137
- * @param sku (optional) SKU of linked ecommerce product.
3138
- * @param tags (optional) List of tags that product should have.
3139
- * @param customFields (optional) Serialized custom fields dictionary filter. For example: {"public":"true","name":"my item"}.
3440
+ * Returns all products, relevant to the specified query parameters.
3441
+ * @param skip (optional) Defines page start offset from beginning of sorted result list.
3442
+ * @param take (optional) Defines page length (how many consequent items of sorted result list should be taken).
3443
+ * @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC".
3444
+ * @param search (optional) Search string for partial match.
3445
+ * @param sku (optional) SKU of linked ecommerce product.
3446
+ * @param tags (optional) List of tags that product should have.
3447
+ * @param customFields (optional) Serialized custom fields dictionary filter. For example: {"public":"true","name":"my item"}.
3448
+ * @param tenantId (optional) Tenant identifier.
3449
+ * @return Success
3450
+ */
3451
+ ProductsApiClient.prototype.getAllProducts = function (skip, take, sorting, search, sku, tags, customFields, tenantId) {
3452
+ var _this = this;
3453
+ var url_ = this.baseUrl + "/api/storefront/v1/products?";
3454
+ if (skip !== undefined && skip !== null)
3455
+ url_ += "skip=" + encodeURIComponent("" + skip) + "&";
3456
+ if (take !== undefined && take !== null)
3457
+ url_ += "take=" + encodeURIComponent("" + take) + "&";
3458
+ if (sorting !== undefined && sorting !== null)
3459
+ url_ += "sorting=" + encodeURIComponent("" + sorting) + "&";
3460
+ if (search !== undefined && search !== null)
3461
+ url_ += "search=" + encodeURIComponent("" + search) + "&";
3462
+ if (sku !== undefined && sku !== null)
3463
+ url_ += "sku=" + encodeURIComponent("" + sku) + "&";
3464
+ if (tags !== undefined && tags !== null)
3465
+ tags && tags.forEach(function (item) { url_ += "tags=" + encodeURIComponent("" + item) + "&"; });
3466
+ if (customFields !== undefined && customFields !== null)
3467
+ url_ += "customFields=" + encodeURIComponent("" + customFields) + "&";
3468
+ if (tenantId !== undefined && tenantId !== null)
3469
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3470
+ url_ = url_.replace(/[?&]$/, "");
3471
+ var options_ = {
3472
+ observe: "response",
3473
+ responseType: "blob",
3474
+ headers: new i1.HttpHeaders({
3475
+ "Accept": "application/json"
3476
+ })
3477
+ };
3478
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
3479
+ return _this.http.request("get", url_, transformedOptions_);
3480
+ })).pipe(operators.mergeMap(function (response_) {
3481
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetAllProducts(r); });
3482
+ })).pipe(operators.catchError(function (response_) {
3483
+ if (response_ instanceof i1.HttpResponseBase) {
3484
+ try {
3485
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetAllProducts(r); });
3486
+ }
3487
+ catch (e) {
3488
+ return rxjs.throwError(e);
3489
+ }
3490
+ }
3491
+ else
3492
+ return rxjs.throwError(response_);
3493
+ }));
3494
+ };
3495
+ ProductsApiClient.prototype.processGetAllProducts = function (response) {
3496
+ var e_29, _a;
3497
+ var _this = this;
3498
+ var status = response.status;
3499
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
3500
+ response.error instanceof Blob ? response.error : undefined;
3501
+ var _headers = {};
3502
+ if (response.headers) {
3503
+ try {
3504
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
3505
+ var key = _c.value;
3506
+ _headers[key] = response.headers.get(key);
3507
+ }
3508
+ }
3509
+ catch (e_29_1) { e_29 = { error: e_29_1 }; }
3510
+ finally {
3511
+ try {
3512
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3513
+ }
3514
+ finally { if (e_29) throw e_29.error; }
3515
+ }
3516
+ }
3517
+ if (status === 200) {
3518
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3519
+ var result200 = null;
3520
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
3521
+ return rxjs.of(result200);
3522
+ }));
3523
+ }
3524
+ else if (status === 401) {
3525
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3526
+ return throwException("Unauthorized", status, _responseText, _headers);
3527
+ }));
3528
+ }
3529
+ else if (status === 403) {
3530
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3531
+ return throwException("Forbidden", status, _responseText, _headers);
3532
+ }));
3533
+ }
3534
+ else if (status !== 200 && status !== 204) {
3535
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3536
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
3537
+ }));
3538
+ }
3539
+ return rxjs.of(null);
3540
+ };
3541
+ /**
3542
+ * Returns a product by identifier.
3543
+ * @param id Product identifier.
3544
+ * @param productVersionId (optional) Product version identifier.
3140
3545
  * @param tenantId (optional) Tenant identifier.
3141
3546
  * @return Success
3142
3547
  */
3143
- ProductsApiClient.prototype.getAllProducts = function (skip, take, sorting, search, sku, tags, customFields, tenantId) {
3548
+ ProductsApiClient.prototype.getProduct = function (id, productVersionId, tenantId) {
3144
3549
  var _this = this;
3145
- var url_ = this.baseUrl + "/api/storefront/v1/products?";
3146
- if (skip !== undefined && skip !== null)
3147
- url_ += "skip=" + encodeURIComponent("" + skip) + "&";
3148
- if (take !== undefined && take !== null)
3149
- url_ += "take=" + encodeURIComponent("" + take) + "&";
3150
- if (sorting !== undefined && sorting !== null)
3151
- url_ += "sorting=" + encodeURIComponent("" + sorting) + "&";
3152
- if (search !== undefined && search !== null)
3153
- url_ += "search=" + encodeURIComponent("" + search) + "&";
3154
- if (sku !== undefined && sku !== null)
3155
- url_ += "sku=" + encodeURIComponent("" + sku) + "&";
3156
- if (tags !== undefined && tags !== null)
3157
- tags && tags.forEach(function (item) { url_ += "tags=" + encodeURIComponent("" + item) + "&"; });
3158
- if (customFields !== undefined && customFields !== null)
3159
- url_ += "customFields=" + encodeURIComponent("" + customFields) + "&";
3550
+ var url_ = this.baseUrl + "/api/storefront/v1/products/{id}?";
3551
+ if (id === undefined || id === null)
3552
+ throw new Error("The parameter 'id' must be defined.");
3553
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
3554
+ if (productVersionId !== undefined && productVersionId !== null)
3555
+ url_ += "productVersionId=" + encodeURIComponent("" + productVersionId) + "&";
3160
3556
  if (tenantId !== undefined && tenantId !== null)
3161
3557
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3162
3558
  url_ = url_.replace(/[?&]$/, "");
@@ -3170,11 +3566,11 @@
3170
3566
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
3171
3567
  return _this.http.request("get", url_, transformedOptions_);
3172
3568
  })).pipe(operators.mergeMap(function (response_) {
3173
- return _this.transformResult(url_, response_, function (r) { return _this.processGetAllProducts(r); });
3569
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetProduct(r); });
3174
3570
  })).pipe(operators.catchError(function (response_) {
3175
3571
  if (response_ instanceof i1.HttpResponseBase) {
3176
3572
  try {
3177
- return _this.transformResult(url_, response_, function (r) { return _this.processGetAllProducts(r); });
3573
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetProduct(r); });
3178
3574
  }
3179
3575
  catch (e) {
3180
3576
  return rxjs.throwError(e);
@@ -3184,8 +3580,8 @@
3184
3580
  return rxjs.throwError(response_);
3185
3581
  }));
3186
3582
  };
3187
- ProductsApiClient.prototype.processGetAllProducts = function (response) {
3188
- var e_26, _a;
3583
+ ProductsApiClient.prototype.processGetProduct = function (response) {
3584
+ var e_30, _a;
3189
3585
  var _this = this;
3190
3586
  var status = response.status;
3191
3587
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3198,12 +3594,12 @@
3198
3594
  _headers[key] = response.headers.get(key);
3199
3595
  }
3200
3596
  }
3201
- catch (e_26_1) { e_26 = { error: e_26_1 }; }
3597
+ catch (e_30_1) { e_30 = { error: e_30_1 }; }
3202
3598
  finally {
3203
3599
  try {
3204
3600
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3205
3601
  }
3206
- finally { if (e_26) throw e_26.error; }
3602
+ finally { if (e_30) throw e_30.error; }
3207
3603
  }
3208
3604
  }
3209
3605
  if (status === 200) {
@@ -3213,6 +3609,20 @@
3213
3609
  return rxjs.of(result200);
3214
3610
  }));
3215
3611
  }
3612
+ else if (status === 404) {
3613
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3614
+ var result404 = null;
3615
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
3616
+ return throwException("Not Found", status, _responseText, _headers, result404);
3617
+ }));
3618
+ }
3619
+ else if (status === 409) {
3620
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3621
+ var result409 = null;
3622
+ result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
3623
+ return throwException("Conflict", status, _responseText, _headers, result409);
3624
+ }));
3625
+ }
3216
3626
  else if (status === 401) {
3217
3627
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3218
3628
  return throwException("Unauthorized", status, _responseText, _headers);
@@ -3231,15 +3641,15 @@
3231
3641
  return rxjs.of(null);
3232
3642
  };
3233
3643
  /**
3234
- * Returns a product by identifier.
3644
+ * Returns a product personalization parameters by product identifier.
3235
3645
  * @param id Product identifier.
3236
3646
  * @param productVersionId (optional) Product version identifier.
3237
3647
  * @param tenantId (optional) Tenant identifier.
3238
3648
  * @return Success
3239
3649
  */
3240
- ProductsApiClient.prototype.getProduct = function (id, productVersionId, tenantId) {
3650
+ ProductsApiClient.prototype.getProductSummary = function (id, productVersionId, tenantId) {
3241
3651
  var _this = this;
3242
- var url_ = this.baseUrl + "/api/storefront/v1/products/{id}?";
3652
+ var url_ = this.baseUrl + "/api/storefront/v1/products/{id}/personalization-parameters?";
3243
3653
  if (id === undefined || id === null)
3244
3654
  throw new Error("The parameter 'id' must be defined.");
3245
3655
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
@@ -3258,11 +3668,11 @@
3258
3668
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
3259
3669
  return _this.http.request("get", url_, transformedOptions_);
3260
3670
  })).pipe(operators.mergeMap(function (response_) {
3261
- return _this.transformResult(url_, response_, function (r) { return _this.processGetProduct(r); });
3671
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetProductSummary(r); });
3262
3672
  })).pipe(operators.catchError(function (response_) {
3263
3673
  if (response_ instanceof i1.HttpResponseBase) {
3264
3674
  try {
3265
- return _this.transformResult(url_, response_, function (r) { return _this.processGetProduct(r); });
3675
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetProductSummary(r); });
3266
3676
  }
3267
3677
  catch (e) {
3268
3678
  return rxjs.throwError(e);
@@ -3272,8 +3682,8 @@
3272
3682
  return rxjs.throwError(response_);
3273
3683
  }));
3274
3684
  };
3275
- ProductsApiClient.prototype.processGetProduct = function (response) {
3276
- var e_27, _a;
3685
+ ProductsApiClient.prototype.processGetProductSummary = function (response) {
3686
+ var e_31, _a;
3277
3687
  var _this = this;
3278
3688
  var status = response.status;
3279
3689
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3286,12 +3696,12 @@
3286
3696
  _headers[key] = response.headers.get(key);
3287
3697
  }
3288
3698
  }
3289
- catch (e_27_1) { e_27 = { error: e_27_1 }; }
3699
+ catch (e_31_1) { e_31 = { error: e_31_1 }; }
3290
3700
  finally {
3291
3701
  try {
3292
3702
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3293
3703
  }
3294
- finally { if (e_27) throw e_27.error; }
3704
+ finally { if (e_31) throw e_31.error; }
3295
3705
  }
3296
3706
  }
3297
3707
  if (status === 200) {
@@ -3342,7 +3752,7 @@
3342
3752
  * @param tenantId (optional) Tenant identifier.
3343
3753
  * @return Success
3344
3754
  */
3345
- ProductsApiClient.prototype.getProductSummary = function (id, productVersionId, productLinkId, productVariantId, sku, tenantId) {
3755
+ ProductsApiClient.prototype.getProductSummary2 = function (id, productVersionId, productLinkId, productVariantId, sku, tenantId) {
3346
3756
  var _this = this;
3347
3757
  var url_ = this.baseUrl + "/api/storefront/v1/products/{id}/summary?";
3348
3758
  if (id === undefined || id === null)
@@ -3369,11 +3779,11 @@
3369
3779
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
3370
3780
  return _this.http.request("get", url_, transformedOptions_);
3371
3781
  })).pipe(operators.mergeMap(function (response_) {
3372
- return _this.transformResult(url_, response_, function (r) { return _this.processGetProductSummary(r); });
3782
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetProductSummary2(r); });
3373
3783
  })).pipe(operators.catchError(function (response_) {
3374
3784
  if (response_ instanceof i1.HttpResponseBase) {
3375
3785
  try {
3376
- return _this.transformResult(url_, response_, function (r) { return _this.processGetProductSummary(r); });
3786
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetProductSummary2(r); });
3377
3787
  }
3378
3788
  catch (e) {
3379
3789
  return rxjs.throwError(e);
@@ -3383,8 +3793,8 @@
3383
3793
  return rxjs.throwError(response_);
3384
3794
  }));
3385
3795
  };
3386
- ProductsApiClient.prototype.processGetProductSummary = function (response) {
3387
- var e_28, _a;
3796
+ ProductsApiClient.prototype.processGetProductSummary2 = function (response) {
3797
+ var e_32, _a;
3388
3798
  var _this = this;
3389
3799
  var status = response.status;
3390
3800
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3397,12 +3807,12 @@
3397
3807
  _headers[key] = response.headers.get(key);
3398
3808
  }
3399
3809
  }
3400
- catch (e_28_1) { e_28 = { error: e_28_1 }; }
3810
+ catch (e_32_1) { e_32 = { error: e_32_1 }; }
3401
3811
  finally {
3402
3812
  try {
3403
3813
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3404
3814
  }
3405
- finally { if (e_28) throw e_28.error; }
3815
+ finally { if (e_32) throw e_32.error; }
3406
3816
  }
3407
3817
  }
3408
3818
  if (status === 200) {
@@ -3486,7 +3896,7 @@
3486
3896
  }));
3487
3897
  };
3488
3898
  ProductsApiClient.prototype.processGetProductOptions = function (response) {
3489
- var e_29, _a;
3899
+ var e_33, _a;
3490
3900
  var _this = this;
3491
3901
  var status = response.status;
3492
3902
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3499,12 +3909,12 @@
3499
3909
  _headers[key] = response.headers.get(key);
3500
3910
  }
3501
3911
  }
3502
- catch (e_29_1) { e_29 = { error: e_29_1 }; }
3912
+ catch (e_33_1) { e_33 = { error: e_33_1 }; }
3503
3913
  finally {
3504
3914
  try {
3505
3915
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3506
3916
  }
3507
- finally { if (e_29) throw e_29.error; }
3917
+ finally { if (e_33) throw e_33.error; }
3508
3918
  }
3509
3919
  }
3510
3920
  if (status === 200) {
@@ -3581,7 +3991,7 @@
3581
3991
  }));
3582
3992
  };
3583
3993
  ProductsApiClient.prototype.processGetAllProductOptions = function (response) {
3584
- var e_30, _a;
3994
+ var e_34, _a;
3585
3995
  var _this = this;
3586
3996
  var status = response.status;
3587
3997
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3594,12 +4004,12 @@
3594
4004
  _headers[key] = response.headers.get(key);
3595
4005
  }
3596
4006
  }
3597
- catch (e_30_1) { e_30 = { error: e_30_1 }; }
4007
+ catch (e_34_1) { e_34 = { error: e_34_1 }; }
3598
4008
  finally {
3599
4009
  try {
3600
4010
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3601
4011
  }
3602
- finally { if (e_30) throw e_30.error; }
4012
+ finally { if (e_34) throw e_34.error; }
3603
4013
  }
3604
4014
  }
3605
4015
  if (status === 200) {
@@ -3629,7 +4039,7 @@
3629
4039
  /**
3630
4040
  * Returns a list of product links.
3631
4041
  * @param id Product identifier.
3632
- * @param productVersionId (optional)
4042
+ * @param productVersionId (optional) Product version identifier.
3633
4043
  * @param skip (optional) Defines page start offset from beginning of sorted result list.
3634
4044
  * @param take (optional) Defines page length (how many consequent items of sorted result list should be taken).
3635
4045
  * @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC".
@@ -3681,7 +4091,7 @@
3681
4091
  }));
3682
4092
  };
3683
4093
  ProductsApiClient.prototype.processGetProductLinks = function (response) {
3684
- var e_31, _a;
4094
+ var e_35, _a;
3685
4095
  var _this = this;
3686
4096
  var status = response.status;
3687
4097
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3694,12 +4104,12 @@
3694
4104
  _headers[key] = response.headers.get(key);
3695
4105
  }
3696
4106
  }
3697
- catch (e_31_1) { e_31 = { error: e_31_1 }; }
4107
+ catch (e_35_1) { e_35 = { error: e_35_1 }; }
3698
4108
  finally {
3699
4109
  try {
3700
4110
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3701
4111
  }
3702
- finally { if (e_31) throw e_31.error; }
4112
+ finally { if (e_35) throw e_35.error; }
3703
4113
  }
3704
4114
  }
3705
4115
  if (status === 200) {
@@ -3744,7 +4154,7 @@
3744
4154
  * Returns a product link.
3745
4155
  * @param id Product identifier.
3746
4156
  * @param productLinkId Product link identifier.
3747
- * @param productVersionId (optional)
4157
+ * @param productVersionId (optional) Product version identifier.
3748
4158
  * @param tenantId (optional) Tenant identifier.
3749
4159
  * @return Success
3750
4160
  */
@@ -3787,7 +4197,7 @@
3787
4197
  }));
3788
4198
  };
3789
4199
  ProductsApiClient.prototype.processGetProductLink = function (response) {
3790
- var e_32, _a;
4200
+ var e_36, _a;
3791
4201
  var _this = this;
3792
4202
  var status = response.status;
3793
4203
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3800,12 +4210,12 @@
3800
4210
  _headers[key] = response.headers.get(key);
3801
4211
  }
3802
4212
  }
3803
- catch (e_32_1) { e_32 = { error: e_32_1 }; }
4213
+ catch (e_36_1) { e_36 = { error: e_36_1 }; }
3804
4214
  finally {
3805
4215
  try {
3806
4216
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3807
4217
  }
3808
- finally { if (e_32) throw e_32.error; }
4218
+ finally { if (e_36) throw e_36.error; }
3809
4219
  }
3810
4220
  }
3811
4221
  if (status === 200) {
@@ -3907,7 +4317,7 @@
3907
4317
  }));
3908
4318
  };
3909
4319
  ProductsApiClient.prototype.processGetProductVariants = function (response) {
3910
- var e_33, _a;
4320
+ var e_37, _a;
3911
4321
  var _this = this;
3912
4322
  var status = response.status;
3913
4323
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3920,12 +4330,12 @@
3920
4330
  _headers[key] = response.headers.get(key);
3921
4331
  }
3922
4332
  }
3923
- catch (e_33_1) { e_33 = { error: e_33_1 }; }
4333
+ catch (e_37_1) { e_37 = { error: e_37_1 }; }
3924
4334
  finally {
3925
4335
  try {
3926
4336
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3927
4337
  }
3928
- finally { if (e_33) throw e_33.error; }
4338
+ finally { if (e_37) throw e_37.error; }
3929
4339
  }
3930
4340
  }
3931
4341
  if (status === 200) {
@@ -4013,7 +4423,7 @@
4013
4423
  }));
4014
4424
  };
4015
4425
  ProductsApiClient.prototype.processGetProductVariant = function (response) {
4016
- var e_34, _a;
4426
+ var e_38, _a;
4017
4427
  var _this = this;
4018
4428
  var status = response.status;
4019
4429
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4026,12 +4436,12 @@
4026
4436
  _headers[key] = response.headers.get(key);
4027
4437
  }
4028
4438
  }
4029
- catch (e_34_1) { e_34 = { error: e_34_1 }; }
4439
+ catch (e_38_1) { e_38 = { error: e_38_1 }; }
4030
4440
  finally {
4031
4441
  try {
4032
4442
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4033
4443
  }
4034
- finally { if (e_34) throw e_34.error; }
4444
+ finally { if (e_38) throw e_38.error; }
4035
4445
  }
4036
4446
  }
4037
4447
  if (status === 200) {
@@ -4145,7 +4555,7 @@
4145
4555
  }));
4146
4556
  };
4147
4557
  ProductsApiClient.prototype.processGetProductVariantDesigns = function (response) {
4148
- var e_35, _a;
4558
+ var e_39, _a;
4149
4559
  var _this = this;
4150
4560
  var status = response.status;
4151
4561
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4158,12 +4568,12 @@
4158
4568
  _headers[key] = response.headers.get(key);
4159
4569
  }
4160
4570
  }
4161
- catch (e_35_1) { e_35 = { error: e_35_1 }; }
4571
+ catch (e_39_1) { e_39 = { error: e_39_1 }; }
4162
4572
  finally {
4163
4573
  try {
4164
4574
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4165
4575
  }
4166
- finally { if (e_35) throw e_35.error; }
4576
+ finally { if (e_39) throw e_39.error; }
4167
4577
  }
4168
4578
  }
4169
4579
  if (status === 200) {
@@ -4277,7 +4687,7 @@
4277
4687
  }));
4278
4688
  };
4279
4689
  ProductsApiClient.prototype.processGetProductVariantMockups = function (response) {
4280
- var e_36, _a;
4690
+ var e_40, _a;
4281
4691
  var _this = this;
4282
4692
  var status = response.status;
4283
4693
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4290,12 +4700,12 @@
4290
4700
  _headers[key] = response.headers.get(key);
4291
4701
  }
4292
4702
  }
4293
- catch (e_36_1) { e_36 = { error: e_36_1 }; }
4703
+ catch (e_40_1) { e_40 = { error: e_40_1 }; }
4294
4704
  finally {
4295
4705
  try {
4296
4706
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4297
4707
  }
4298
- finally { if (e_36) throw e_36.error; }
4708
+ finally { if (e_40) throw e_40.error; }
4299
4709
  }
4300
4710
  }
4301
4711
  if (status === 200) {
@@ -4409,7 +4819,7 @@
4409
4819
  }));
4410
4820
  };
4411
4821
  ProductsApiClient.prototype.processGetProductVariantDocuments = function (response) {
4412
- var e_37, _a;
4822
+ var e_41, _a;
4413
4823
  var _this = this;
4414
4824
  var status = response.status;
4415
4825
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4422,12 +4832,12 @@
4422
4832
  _headers[key] = response.headers.get(key);
4423
4833
  }
4424
4834
  }
4425
- catch (e_37_1) { e_37 = { error: e_37_1 }; }
4835
+ catch (e_41_1) { e_41 = { error: e_41_1 }; }
4426
4836
  finally {
4427
4837
  try {
4428
4838
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4429
4839
  }
4430
- finally { if (e_37) throw e_37.error; }
4840
+ finally { if (e_41) throw e_41.error; }
4431
4841
  }
4432
4842
  }
4433
4843
  if (status === 200) {
@@ -4509,7 +4919,7 @@
4509
4919
  }));
4510
4920
  };
4511
4921
  ProductsApiClient.prototype.processUpdateProductVariantResources = function (response) {
4512
- var e_38, _a;
4922
+ var e_42, _a;
4513
4923
  var _this = this;
4514
4924
  var status = response.status;
4515
4925
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4522,12 +4932,12 @@
4522
4932
  _headers[key] = response.headers.get(key);
4523
4933
  }
4524
4934
  }
4525
- catch (e_38_1) { e_38 = { error: e_38_1 }; }
4935
+ catch (e_42_1) { e_42 = { error: e_42_1 }; }
4526
4936
  finally {
4527
4937
  try {
4528
4938
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4529
4939
  }
4530
- finally { if (e_38) throw e_38.error; }
4940
+ finally { if (e_42) throw e_42.error; }
4531
4941
  }
4532
4942
  }
4533
4943
  if (status === 200) {
@@ -4605,7 +5015,7 @@
4605
5015
  }));
4606
5016
  };
4607
5017
  ProductsApiClient.prototype.processGetAvailableProductTags = function (response) {
4608
- var e_39, _a;
5018
+ var e_43, _a;
4609
5019
  var _this = this;
4610
5020
  var status = response.status;
4611
5021
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4618,12 +5028,12 @@
4618
5028
  _headers[key] = response.headers.get(key);
4619
5029
  }
4620
5030
  }
4621
- catch (e_39_1) { e_39 = { error: e_39_1 }; }
5031
+ catch (e_43_1) { e_43 = { error: e_43_1 }; }
4622
5032
  finally {
4623
5033
  try {
4624
5034
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4625
5035
  }
4626
- finally { if (e_39) throw e_39.error; }
5036
+ finally { if (e_43) throw e_43.error; }
4627
5037
  }
4628
5038
  }
4629
5039
  if (status === 200) {
@@ -4699,7 +5109,7 @@
4699
5109
  }));
4700
5110
  };
4701
5111
  ProductsApiClient.prototype.processGetPersonalizationWorkflow = function (response) {
4702
- var e_40, _a;
5112
+ var e_44, _a;
4703
5113
  var _this = this;
4704
5114
  var status = response.status;
4705
5115
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4712,12 +5122,12 @@
4712
5122
  _headers[key] = response.headers.get(key);
4713
5123
  }
4714
5124
  }
4715
- catch (e_40_1) { e_40 = { error: e_40_1 }; }
5125
+ catch (e_44_1) { e_44 = { error: e_44_1 }; }
4716
5126
  finally {
4717
5127
  try {
4718
5128
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4719
5129
  }
4720
- finally { if (e_40) throw e_40.error; }
5130
+ finally { if (e_44) throw e_44.error; }
4721
5131
  }
4722
5132
  }
4723
5133
  if (status === 200) {
@@ -4789,17 +5199,102 @@
4789
5199
  * @param tenantId (optional) Tenant identifier.
4790
5200
  * @return Success
4791
5201
  */
4792
- ProductSpecificationsApiClient.prototype.getAll = function (skip, take, sorting, search, tenantId) {
5202
+ ProductSpecificationsApiClient.prototype.getAll = function (skip, take, sorting, search, tenantId) {
5203
+ var _this = this;
5204
+ var url_ = this.baseUrl + "/api/storefront/v1/product-specifications?";
5205
+ if (skip !== undefined && skip !== null)
5206
+ url_ += "skip=" + encodeURIComponent("" + skip) + "&";
5207
+ if (take !== undefined && take !== null)
5208
+ url_ += "take=" + encodeURIComponent("" + take) + "&";
5209
+ if (sorting !== undefined && sorting !== null)
5210
+ url_ += "sorting=" + encodeURIComponent("" + sorting) + "&";
5211
+ if (search !== undefined && search !== null)
5212
+ url_ += "search=" + encodeURIComponent("" + search) + "&";
5213
+ if (tenantId !== undefined && tenantId !== null)
5214
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
5215
+ url_ = url_.replace(/[?&]$/, "");
5216
+ var options_ = {
5217
+ observe: "response",
5218
+ responseType: "blob",
5219
+ headers: new i1.HttpHeaders({
5220
+ "Accept": "application/json"
5221
+ })
5222
+ };
5223
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
5224
+ return _this.http.request("get", url_, transformedOptions_);
5225
+ })).pipe(operators.mergeMap(function (response_) {
5226
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetAll(r); });
5227
+ })).pipe(operators.catchError(function (response_) {
5228
+ if (response_ instanceof i1.HttpResponseBase) {
5229
+ try {
5230
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetAll(r); });
5231
+ }
5232
+ catch (e) {
5233
+ return rxjs.throwError(e);
5234
+ }
5235
+ }
5236
+ else
5237
+ return rxjs.throwError(response_);
5238
+ }));
5239
+ };
5240
+ ProductSpecificationsApiClient.prototype.processGetAll = function (response) {
5241
+ var e_45, _a;
5242
+ var _this = this;
5243
+ var status = response.status;
5244
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
5245
+ response.error instanceof Blob ? response.error : undefined;
5246
+ var _headers = {};
5247
+ if (response.headers) {
5248
+ try {
5249
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
5250
+ var key = _c.value;
5251
+ _headers[key] = response.headers.get(key);
5252
+ }
5253
+ }
5254
+ catch (e_45_1) { e_45 = { error: e_45_1 }; }
5255
+ finally {
5256
+ try {
5257
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5258
+ }
5259
+ finally { if (e_45) throw e_45.error; }
5260
+ }
5261
+ }
5262
+ if (status === 200) {
5263
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
5264
+ var result200 = null;
5265
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
5266
+ return rxjs.of(result200);
5267
+ }));
5268
+ }
5269
+ else if (status === 401) {
5270
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
5271
+ return throwException("Unauthorized", status, _responseText, _headers);
5272
+ }));
5273
+ }
5274
+ else if (status === 403) {
5275
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
5276
+ return throwException("Forbidden", status, _responseText, _headers);
5277
+ }));
5278
+ }
5279
+ else if (status !== 200 && status !== 204) {
5280
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
5281
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
5282
+ }));
5283
+ }
5284
+ return rxjs.of(null);
5285
+ };
5286
+ /**
5287
+ * Returns a product specification by identifier.
5288
+ * @param id Product specification identifier.
5289
+ * @param tenantId (optional) Tenant identifier.
5290
+ * @return Success
5291
+ */
5292
+ ProductSpecificationsApiClient.prototype.get = function (id, tenantId) {
4793
5293
  var _this = this;
4794
- var url_ = this.baseUrl + "/api/storefront/v1/product-specifications?";
4795
- if (skip !== undefined && skip !== null)
4796
- url_ += "skip=" + encodeURIComponent("" + skip) + "&";
4797
- if (take !== undefined && take !== null)
4798
- url_ += "take=" + encodeURIComponent("" + take) + "&";
4799
- if (sorting !== undefined && sorting !== null)
4800
- url_ += "sorting=" + encodeURIComponent("" + sorting) + "&";
4801
- if (search !== undefined && search !== null)
4802
- url_ += "search=" + encodeURIComponent("" + search) + "&";
5294
+ var url_ = this.baseUrl + "/api/storefront/v1/product-specifications/{id}?";
5295
+ if (id === undefined || id === null)
5296
+ throw new Error("The parameter 'id' must be defined.");
5297
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
4803
5298
  if (tenantId !== undefined && tenantId !== null)
4804
5299
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
4805
5300
  url_ = url_.replace(/[?&]$/, "");
@@ -4813,11 +5308,11 @@
4813
5308
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
4814
5309
  return _this.http.request("get", url_, transformedOptions_);
4815
5310
  })).pipe(operators.mergeMap(function (response_) {
4816
- return _this.transformResult(url_, response_, function (r) { return _this.processGetAll(r); });
5311
+ return _this.transformResult(url_, response_, function (r) { return _this.processGet(r); });
4817
5312
  })).pipe(operators.catchError(function (response_) {
4818
5313
  if (response_ instanceof i1.HttpResponseBase) {
4819
5314
  try {
4820
- return _this.transformResult(url_, response_, function (r) { return _this.processGetAll(r); });
5315
+ return _this.transformResult(url_, response_, function (r) { return _this.processGet(r); });
4821
5316
  }
4822
5317
  catch (e) {
4823
5318
  return rxjs.throwError(e);
@@ -4827,8 +5322,8 @@
4827
5322
  return rxjs.throwError(response_);
4828
5323
  }));
4829
5324
  };
4830
- ProductSpecificationsApiClient.prototype.processGetAll = function (response) {
4831
- var e_41, _a;
5325
+ ProductSpecificationsApiClient.prototype.processGet = function (response) {
5326
+ var e_46, _a;
4832
5327
  var _this = this;
4833
5328
  var status = response.status;
4834
5329
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4841,12 +5336,12 @@
4841
5336
  _headers[key] = response.headers.get(key);
4842
5337
  }
4843
5338
  }
4844
- catch (e_41_1) { e_41 = { error: e_41_1 }; }
5339
+ catch (e_46_1) { e_46 = { error: e_46_1 }; }
4845
5340
  finally {
4846
5341
  try {
4847
5342
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4848
5343
  }
4849
- finally { if (e_41) throw e_41.error; }
5344
+ finally { if (e_46) throw e_46.error; }
4850
5345
  }
4851
5346
  }
4852
5347
  if (status === 200) {
@@ -4856,6 +5351,13 @@
4856
5351
  return rxjs.of(result200);
4857
5352
  }));
4858
5353
  }
5354
+ else if (status === 404) {
5355
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
5356
+ var result404 = null;
5357
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
5358
+ return throwException("Not Found", status, _responseText, _headers, result404);
5359
+ }));
5360
+ }
4859
5361
  else if (status === 401) {
4860
5362
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4861
5363
  return throwException("Unauthorized", status, _responseText, _headers);
@@ -4874,14 +5376,14 @@
4874
5376
  return rxjs.of(null);
4875
5377
  };
4876
5378
  /**
4877
- * Returns a product specification by identifier.
5379
+ * Returns a product specification personalization parameters by product identifier.
4878
5380
  * @param id Product specification identifier.
4879
5381
  * @param tenantId (optional) Tenant identifier.
4880
5382
  * @return Success
4881
5383
  */
4882
- ProductSpecificationsApiClient.prototype.get = function (id, tenantId) {
5384
+ ProductSpecificationsApiClient.prototype.getProductSpecificationSummary = function (id, tenantId) {
4883
5385
  var _this = this;
4884
- var url_ = this.baseUrl + "/api/storefront/v1/product-specifications/{id}?";
5386
+ var url_ = this.baseUrl + "/api/storefront/v1/product-specifications/{id}/personalization-parameters?";
4885
5387
  if (id === undefined || id === null)
4886
5388
  throw new Error("The parameter 'id' must be defined.");
4887
5389
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
@@ -4898,11 +5400,11 @@
4898
5400
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
4899
5401
  return _this.http.request("get", url_, transformedOptions_);
4900
5402
  })).pipe(operators.mergeMap(function (response_) {
4901
- return _this.transformResult(url_, response_, function (r) { return _this.processGet(r); });
5403
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetProductSpecificationSummary(r); });
4902
5404
  })).pipe(operators.catchError(function (response_) {
4903
5405
  if (response_ instanceof i1.HttpResponseBase) {
4904
5406
  try {
4905
- return _this.transformResult(url_, response_, function (r) { return _this.processGet(r); });
5407
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetProductSpecificationSummary(r); });
4906
5408
  }
4907
5409
  catch (e) {
4908
5410
  return rxjs.throwError(e);
@@ -4912,8 +5414,8 @@
4912
5414
  return rxjs.throwError(response_);
4913
5415
  }));
4914
5416
  };
4915
- ProductSpecificationsApiClient.prototype.processGet = function (response) {
4916
- var e_42, _a;
5417
+ ProductSpecificationsApiClient.prototype.processGetProductSpecificationSummary = function (response) {
5418
+ var e_47, _a;
4917
5419
  var _this = this;
4918
5420
  var status = response.status;
4919
5421
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4926,12 +5428,12 @@
4926
5428
  _headers[key] = response.headers.get(key);
4927
5429
  }
4928
5430
  }
4929
- catch (e_42_1) { e_42 = { error: e_42_1 }; }
5431
+ catch (e_47_1) { e_47 = { error: e_47_1 }; }
4930
5432
  finally {
4931
5433
  try {
4932
5434
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4933
5435
  }
4934
- finally { if (e_42) throw e_42.error; }
5436
+ finally { if (e_47) throw e_47.error; }
4935
5437
  }
4936
5438
  }
4937
5439
  if (status === 200) {
@@ -4948,6 +5450,13 @@
4948
5450
  return throwException("Not Found", status, _responseText, _headers, result404);
4949
5451
  }));
4950
5452
  }
5453
+ else if (status === 409) {
5454
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
5455
+ var result409 = null;
5456
+ result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
5457
+ return throwException("Conflict", status, _responseText, _headers, result409);
5458
+ }));
5459
+ }
4951
5460
  else if (status === 401) {
4952
5461
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4953
5462
  return throwException("Unauthorized", status, _responseText, _headers);
@@ -5005,7 +5514,7 @@
5005
5514
  }));
5006
5515
  };
5007
5516
  ProductSpecificationsApiClient.prototype.processGetPersonalizationWorkflow = function (response) {
5008
- var e_43, _a;
5517
+ var e_48, _a;
5009
5518
  var _this = this;
5010
5519
  var status = response.status;
5011
5520
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5018,12 +5527,12 @@
5018
5527
  _headers[key] = response.headers.get(key);
5019
5528
  }
5020
5529
  }
5021
- catch (e_43_1) { e_43 = { error: e_43_1 }; }
5530
+ catch (e_48_1) { e_48 = { error: e_48_1 }; }
5022
5531
  finally {
5023
5532
  try {
5024
5533
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5025
5534
  }
5026
- finally { if (e_43) throw e_43.error; }
5535
+ finally { if (e_48) throw e_48.error; }
5027
5536
  }
5028
5537
  }
5029
5538
  if (status === 200) {
@@ -5155,7 +5664,7 @@
5155
5664
  }));
5156
5665
  };
5157
5666
  ProjectsApiClient.prototype.processGetAll = function (response) {
5158
- var e_44, _a;
5667
+ var e_49, _a;
5159
5668
  var _this = this;
5160
5669
  var status = response.status;
5161
5670
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5168,12 +5677,12 @@
5168
5677
  _headers[key] = response.headers.get(key);
5169
5678
  }
5170
5679
  }
5171
- catch (e_44_1) { e_44 = { error: e_44_1 }; }
5680
+ catch (e_49_1) { e_49 = { error: e_49_1 }; }
5172
5681
  finally {
5173
5682
  try {
5174
5683
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5175
5684
  }
5176
- finally { if (e_44) throw e_44.error; }
5685
+ finally { if (e_49) throw e_49.error; }
5177
5686
  }
5178
5687
  }
5179
5688
  if (status === 200) {
@@ -5240,7 +5749,7 @@
5240
5749
  }));
5241
5750
  };
5242
5751
  ProjectsApiClient.prototype.processGet = function (response) {
5243
- var e_45, _a;
5752
+ var e_50, _a;
5244
5753
  var _this = this;
5245
5754
  var status = response.status;
5246
5755
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5253,12 +5762,12 @@
5253
5762
  _headers[key] = response.headers.get(key);
5254
5763
  }
5255
5764
  }
5256
- catch (e_45_1) { e_45 = { error: e_45_1 }; }
5765
+ catch (e_50_1) { e_50 = { error: e_50_1 }; }
5257
5766
  finally {
5258
5767
  try {
5259
5768
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5260
5769
  }
5261
- finally { if (e_45) throw e_45.error; }
5770
+ finally { if (e_50) throw e_50.error; }
5262
5771
  }
5263
5772
  }
5264
5773
  if (status === 200) {
@@ -5337,7 +5846,7 @@
5337
5846
  }));
5338
5847
  };
5339
5848
  ProjectsApiClient.prototype.processDelete = function (response) {
5340
- var e_46, _a;
5849
+ var e_51, _a;
5341
5850
  var _this = this;
5342
5851
  var status = response.status;
5343
5852
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5350,12 +5859,12 @@
5350
5859
  _headers[key] = response.headers.get(key);
5351
5860
  }
5352
5861
  }
5353
- catch (e_46_1) { e_46 = { error: e_46_1 }; }
5862
+ catch (e_51_1) { e_51 = { error: e_51_1 }; }
5354
5863
  finally {
5355
5864
  try {
5356
5865
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5357
5866
  }
5358
- finally { if (e_46) throw e_46.error; }
5867
+ finally { if (e_51) throw e_51.error; }
5359
5868
  }
5360
5869
  }
5361
5870
  if (status === 200) {
@@ -5434,7 +5943,7 @@
5434
5943
  }));
5435
5944
  };
5436
5945
  ProjectsApiClient.prototype.processGetPreview = function (response) {
5437
- var e_47, _a;
5946
+ var e_52, _a;
5438
5947
  var _this = this;
5439
5948
  var status = response.status;
5440
5949
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5447,12 +5956,12 @@
5447
5956
  _headers[key] = response.headers.get(key);
5448
5957
  }
5449
5958
  }
5450
- catch (e_47_1) { e_47 = { error: e_47_1 }; }
5959
+ catch (e_52_1) { e_52 = { error: e_52_1 }; }
5451
5960
  finally {
5452
5961
  try {
5453
5962
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5454
5963
  }
5455
- finally { if (e_47) throw e_47.error; }
5964
+ finally { if (e_52) throw e_52.error; }
5456
5965
  }
5457
5966
  }
5458
5967
  if (status === 200 || status === 206) {
@@ -5532,7 +6041,7 @@
5532
6041
  }));
5533
6042
  };
5534
6043
  ProjectsApiClient.prototype.processGetPreviewUrl = function (response) {
5535
- var e_48, _a;
6044
+ var e_53, _a;
5536
6045
  var _this = this;
5537
6046
  var status = response.status;
5538
6047
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5545,12 +6054,12 @@
5545
6054
  _headers[key] = response.headers.get(key);
5546
6055
  }
5547
6056
  }
5548
- catch (e_48_1) { e_48 = { error: e_48_1 }; }
6057
+ catch (e_53_1) { e_53 = { error: e_53_1 }; }
5549
6058
  finally {
5550
6059
  try {
5551
6060
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5552
6061
  }
5553
- finally { if (e_48) throw e_48.error; }
6062
+ finally { if (e_53) throw e_53.error; }
5554
6063
  }
5555
6064
  }
5556
6065
  if (status === 200) {
@@ -5636,7 +6145,7 @@
5636
6145
  }));
5637
6146
  };
5638
6147
  ProjectsApiClient.prototype.processCreateWithSingleItem = function (response) {
5639
- var e_49, _a;
6148
+ var e_54, _a;
5640
6149
  var _this = this;
5641
6150
  var status = response.status;
5642
6151
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5649,12 +6158,12 @@
5649
6158
  _headers[key] = response.headers.get(key);
5650
6159
  }
5651
6160
  }
5652
- catch (e_49_1) { e_49 = { error: e_49_1 }; }
6161
+ catch (e_54_1) { e_54 = { error: e_54_1 }; }
5653
6162
  finally {
5654
6163
  try {
5655
6164
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5656
6165
  }
5657
- finally { if (e_49) throw e_49.error; }
6166
+ finally { if (e_54) throw e_54.error; }
5658
6167
  }
5659
6168
  }
5660
6169
  if (status === 201) {
@@ -5740,7 +6249,7 @@
5740
6249
  }));
5741
6250
  };
5742
6251
  ProjectsApiClient.prototype.processCreateWithMultipleItems = function (response) {
5743
- var e_50, _a;
6252
+ var e_55, _a;
5744
6253
  var _this = this;
5745
6254
  var status = response.status;
5746
6255
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5753,12 +6262,12 @@
5753
6262
  _headers[key] = response.headers.get(key);
5754
6263
  }
5755
6264
  }
5756
- catch (e_50_1) { e_50 = { error: e_50_1 }; }
6265
+ catch (e_55_1) { e_55 = { error: e_55_1 }; }
5757
6266
  finally {
5758
6267
  try {
5759
6268
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5760
6269
  }
5761
- finally { if (e_50) throw e_50.error; }
6270
+ finally { if (e_55) throw e_55.error; }
5762
6271
  }
5763
6272
  }
5764
6273
  if (status === 201) {
@@ -5844,7 +6353,7 @@
5844
6353
  }));
5845
6354
  };
5846
6355
  ProjectsApiClient.prototype.processCreateByRenderHiResScenario = function (response) {
5847
- var e_51, _a;
6356
+ var e_56, _a;
5848
6357
  var _this = this;
5849
6358
  var status = response.status;
5850
6359
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5857,12 +6366,12 @@
5857
6366
  _headers[key] = response.headers.get(key);
5858
6367
  }
5859
6368
  }
5860
- catch (e_51_1) { e_51 = { error: e_51_1 }; }
6369
+ catch (e_56_1) { e_56 = { error: e_56_1 }; }
5861
6370
  finally {
5862
6371
  try {
5863
6372
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5864
6373
  }
5865
- finally { if (e_51) throw e_51.error; }
6374
+ finally { if (e_56) throw e_56.error; }
5866
6375
  }
5867
6376
  }
5868
6377
  if (status === 201) {
@@ -5948,7 +6457,7 @@
5948
6457
  }));
5949
6458
  };
5950
6459
  ProjectsApiClient.prototype.processCreateBySpecificPipelineScenario = function (response) {
5951
- var e_52, _a;
6460
+ var e_57, _a;
5952
6461
  var _this = this;
5953
6462
  var status = response.status;
5954
6463
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5961,12 +6470,12 @@
5961
6470
  _headers[key] = response.headers.get(key);
5962
6471
  }
5963
6472
  }
5964
- catch (e_52_1) { e_52 = { error: e_52_1 }; }
6473
+ catch (e_57_1) { e_57 = { error: e_57_1 }; }
5965
6474
  finally {
5966
6475
  try {
5967
6476
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5968
6477
  }
5969
- finally { if (e_52) throw e_52.error; }
6478
+ finally { if (e_57) throw e_57.error; }
5970
6479
  }
5971
6480
  }
5972
6481
  if (status === 201) {
@@ -6047,7 +6556,7 @@
6047
6556
  }));
6048
6557
  };
6049
6558
  ProjectsApiClient.prototype.processGetAvailableTransitions = function (response) {
6050
- var e_53, _a;
6559
+ var e_58, _a;
6051
6560
  var _this = this;
6052
6561
  var status = response.status;
6053
6562
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -6060,12 +6569,12 @@
6060
6569
  _headers[key] = response.headers.get(key);
6061
6570
  }
6062
6571
  }
6063
- catch (e_53_1) { e_53 = { error: e_53_1 }; }
6572
+ catch (e_58_1) { e_58 = { error: e_58_1 }; }
6064
6573
  finally {
6065
6574
  try {
6066
6575
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
6067
6576
  }
6068
- finally { if (e_53) throw e_53.error; }
6577
+ finally { if (e_58) throw e_58.error; }
6069
6578
  }
6070
6579
  }
6071
6580
  if (status === 200) {
@@ -6157,7 +6666,7 @@
6157
6666
  }));
6158
6667
  };
6159
6668
  ProjectsApiClient.prototype.processChangeStatus = function (response) {
6160
- var e_54, _a;
6669
+ var e_59, _a;
6161
6670
  var _this = this;
6162
6671
  var status = response.status;
6163
6672
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -6170,12 +6679,12 @@
6170
6679
  _headers[key] = response.headers.get(key);
6171
6680
  }
6172
6681
  }
6173
- catch (e_54_1) { e_54 = { error: e_54_1 }; }
6682
+ catch (e_59_1) { e_59 = { error: e_59_1 }; }
6174
6683
  finally {
6175
6684
  try {
6176
6685
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
6177
6686
  }
6178
- finally { if (e_54) throw e_54.error; }
6687
+ finally { if (e_59) throw e_59.error; }
6179
6688
  }
6180
6689
  }
6181
6690
  if (status === 200) {
@@ -6267,7 +6776,7 @@
6267
6776
  }));
6268
6777
  };
6269
6778
  ProjectsApiClient.prototype.processForceStatus = function (response) {
6270
- var e_55, _a;
6779
+ var e_60, _a;
6271
6780
  var _this = this;
6272
6781
  var status = response.status;
6273
6782
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -6280,12 +6789,12 @@
6280
6789
  _headers[key] = response.headers.get(key);
6281
6790
  }
6282
6791
  }
6283
- catch (e_55_1) { e_55 = { error: e_55_1 }; }
6792
+ catch (e_60_1) { e_60 = { error: e_60_1 }; }
6284
6793
  finally {
6285
6794
  try {
6286
6795
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
6287
6796
  }
6288
- finally { if (e_55) throw e_55.error; }
6797
+ finally { if (e_60) throw e_60.error; }
6289
6798
  }
6290
6799
  }
6291
6800
  if (status === 200) {
@@ -6374,7 +6883,7 @@
6374
6883
  }));
6375
6884
  };
6376
6885
  ProjectsApiClient.prototype.processBatchDelete = function (response) {
6377
- var e_56, _a;
6886
+ var e_61, _a;
6378
6887
  var _this = this;
6379
6888
  var status = response.status;
6380
6889
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -6387,12 +6896,12 @@
6387
6896
  _headers[key] = response.headers.get(key);
6388
6897
  }
6389
6898
  }
6390
- catch (e_56_1) { e_56 = { error: e_56_1 }; }
6899
+ catch (e_61_1) { e_61 = { error: e_61_1 }; }
6391
6900
  finally {
6392
6901
  try {
6393
6902
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
6394
6903
  }
6395
- finally { if (e_56) throw e_56.error; }
6904
+ finally { if (e_61) throw e_61.error; }
6396
6905
  }
6397
6906
  }
6398
6907
  if (status === 200) {
@@ -6402,6 +6911,13 @@
6402
6911
  return rxjs.of(result200);
6403
6912
  }));
6404
6913
  }
6914
+ else if (status === 404) {
6915
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
6916
+ var result404 = null;
6917
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
6918
+ return throwException("Not Found", status, _responseText, _headers, result404);
6919
+ }));
6920
+ }
6405
6921
  else if (status === 401) {
6406
6922
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
6407
6923
  return throwException("Unauthorized", status, _responseText, _headers);
@@ -6455,7 +6971,7 @@
6455
6971
  }));
6456
6972
  };
6457
6973
  ProjectsApiClient.prototype.processGetAllStatuses = function (response) {
6458
- var e_57, _a;
6974
+ var e_62, _a;
6459
6975
  var _this = this;
6460
6976
  var status = response.status;
6461
6977
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -6468,12 +6984,12 @@
6468
6984
  _headers[key] = response.headers.get(key);
6469
6985
  }
6470
6986
  }
6471
- catch (e_57_1) { e_57 = { error: e_57_1 }; }
6987
+ catch (e_62_1) { e_62 = { error: e_62_1 }; }
6472
6988
  finally {
6473
6989
  try {
6474
6990
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
6475
6991
  }
6476
- finally { if (e_57) throw e_57.error; }
6992
+ finally { if (e_62) throw e_62.error; }
6477
6993
  }
6478
6994
  }
6479
6995
  if (status === 200) {
@@ -6536,7 +7052,7 @@
6536
7052
  }));
6537
7053
  };
6538
7054
  ProjectsApiClient.prototype.processGetAllTransitions = function (response) {
6539
- var e_58, _a;
7055
+ var e_63, _a;
6540
7056
  var _this = this;
6541
7057
  var status = response.status;
6542
7058
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -6549,12 +7065,12 @@
6549
7065
  _headers[key] = response.headers.get(key);
6550
7066
  }
6551
7067
  }
6552
- catch (e_58_1) { e_58 = { error: e_58_1 }; }
7068
+ catch (e_63_1) { e_63 = { error: e_63_1 }; }
6553
7069
  finally {
6554
7070
  try {
6555
7071
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
6556
7072
  }
6557
- finally { if (e_58) throw e_58.error; }
7073
+ finally { if (e_63) throw e_63.error; }
6558
7074
  }
6559
7075
  }
6560
7076
  if (status === 200) {
@@ -6624,7 +7140,7 @@
6624
7140
  }));
6625
7141
  };
6626
7142
  ProjectsApiClient.prototype.processGetProjectProcessingResults = function (response) {
6627
- var e_59, _a;
7143
+ var e_64, _a;
6628
7144
  var _this = this;
6629
7145
  var status = response.status;
6630
7146
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -6637,12 +7153,12 @@
6637
7153
  _headers[key] = response.headers.get(key);
6638
7154
  }
6639
7155
  }
6640
- catch (e_59_1) { e_59 = { error: e_59_1 }; }
7156
+ catch (e_64_1) { e_64 = { error: e_64_1 }; }
6641
7157
  finally {
6642
7158
  try {
6643
7159
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
6644
7160
  }
6645
- finally { if (e_59) throw e_59.error; }
7161
+ finally { if (e_64) throw e_64.error; }
6646
7162
  }
6647
7163
  }
6648
7164
  if (status === 200) {
@@ -6724,7 +7240,7 @@
6724
7240
  }));
6725
7241
  };
6726
7242
  ProjectsApiClient.prototype.processResumeProjectProcessing = function (response) {
6727
- var e_60, _a;
7243
+ var e_65, _a;
6728
7244
  var _this = this;
6729
7245
  var status = response.status;
6730
7246
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -6737,12 +7253,12 @@
6737
7253
  _headers[key] = response.headers.get(key);
6738
7254
  }
6739
7255
  }
6740
- catch (e_60_1) { e_60 = { error: e_60_1 }; }
7256
+ catch (e_65_1) { e_65 = { error: e_65_1 }; }
6741
7257
  finally {
6742
7258
  try {
6743
7259
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
6744
7260
  }
6745
- finally { if (e_60) throw e_60.error; }
7261
+ finally { if (e_65) throw e_65.error; }
6746
7262
  }
6747
7263
  }
6748
7264
  if (status === 204) {
@@ -6822,7 +7338,7 @@
6822
7338
  }));
6823
7339
  };
6824
7340
  ProjectsApiClient.prototype.processRestartProjectProcessing = function (response) {
6825
- var e_61, _a;
7341
+ var e_66, _a;
6826
7342
  var _this = this;
6827
7343
  var status = response.status;
6828
7344
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -6835,12 +7351,12 @@
6835
7351
  _headers[key] = response.headers.get(key);
6836
7352
  }
6837
7353
  }
6838
- catch (e_61_1) { e_61 = { error: e_61_1 }; }
7354
+ catch (e_66_1) { e_66 = { error: e_66_1 }; }
6839
7355
  finally {
6840
7356
  try {
6841
7357
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
6842
7358
  }
6843
- finally { if (e_61) throw e_61.error; }
7359
+ finally { if (e_66) throw e_66.error; }
6844
7360
  }
6845
7361
  }
6846
7362
  if (status === 204) {
@@ -6919,7 +7435,7 @@
6919
7435
  }));
6920
7436
  };
6921
7437
  ProjectsApiClient.prototype.processGetProjectOrder = function (response) {
6922
- var e_62, _a;
7438
+ var e_67, _a;
6923
7439
  var _this = this;
6924
7440
  var status = response.status;
6925
7441
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -6932,12 +7448,12 @@
6932
7448
  _headers[key] = response.headers.get(key);
6933
7449
  }
6934
7450
  }
6935
- catch (e_62_1) { e_62 = { error: e_62_1 }; }
7451
+ catch (e_67_1) { e_67 = { error: e_67_1 }; }
6936
7452
  finally {
6937
7453
  try {
6938
7454
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
6939
7455
  }
6940
- finally { if (e_62) throw e_62.error; }
7456
+ finally { if (e_67) throw e_67.error; }
6941
7457
  }
6942
7458
  }
6943
7459
  if (status === 200) {
@@ -7024,7 +7540,7 @@
7024
7540
  }));
7025
7541
  };
7026
7542
  ProjectsApiClient.prototype.processAttachDataToProjectOrder = function (response) {
7027
- var e_63, _a;
7543
+ var e_68, _a;
7028
7544
  var _this = this;
7029
7545
  var status = response.status;
7030
7546
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -7037,12 +7553,12 @@
7037
7553
  _headers[key] = response.headers.get(key);
7038
7554
  }
7039
7555
  }
7040
- catch (e_63_1) { e_63 = { error: e_63_1 }; }
7556
+ catch (e_68_1) { e_68 = { error: e_68_1 }; }
7041
7557
  finally {
7042
7558
  try {
7043
7559
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
7044
7560
  }
7045
- finally { if (e_63) throw e_63.error; }
7561
+ finally { if (e_68) throw e_68.error; }
7046
7562
  }
7047
7563
  }
7048
7564
  if (status === 204) {
@@ -7154,7 +7670,7 @@
7154
7670
  }));
7155
7671
  };
7156
7672
  StorefrontsApiClient.prototype.processGetAll = function (response) {
7157
- var e_64, _a;
7673
+ var e_69, _a;
7158
7674
  var _this = this;
7159
7675
  var status = response.status;
7160
7676
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -7167,12 +7683,12 @@
7167
7683
  _headers[key] = response.headers.get(key);
7168
7684
  }
7169
7685
  }
7170
- catch (e_64_1) { e_64 = { error: e_64_1 }; }
7686
+ catch (e_69_1) { e_69 = { error: e_69_1 }; }
7171
7687
  finally {
7172
7688
  try {
7173
7689
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
7174
7690
  }
7175
- finally { if (e_64) throw e_64.error; }
7691
+ finally { if (e_69) throw e_69.error; }
7176
7692
  }
7177
7693
  }
7178
7694
  if (status === 200) {
@@ -7239,7 +7755,7 @@
7239
7755
  }));
7240
7756
  };
7241
7757
  StorefrontsApiClient.prototype.processGet = function (response) {
7242
- var e_65, _a;
7758
+ var e_70, _a;
7243
7759
  var _this = this;
7244
7760
  var status = response.status;
7245
7761
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -7252,12 +7768,12 @@
7252
7768
  _headers[key] = response.headers.get(key);
7253
7769
  }
7254
7770
  }
7255
- catch (e_65_1) { e_65 = { error: e_65_1 }; }
7771
+ catch (e_70_1) { e_70 = { error: e_70_1 }; }
7256
7772
  finally {
7257
7773
  try {
7258
7774
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
7259
7775
  }
7260
- finally { if (e_65) throw e_65.error; }
7776
+ finally { if (e_70) throw e_70.error; }
7261
7777
  }
7262
7778
  }
7263
7779
  if (status === 200) {
@@ -7379,7 +7895,7 @@
7379
7895
  }));
7380
7896
  };
7381
7897
  StorefrontUsersApiClient.prototype.processGetAll = function (response) {
7382
- var e_66, _a;
7898
+ var e_71, _a;
7383
7899
  var _this = this;
7384
7900
  var status = response.status;
7385
7901
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -7392,12 +7908,12 @@
7392
7908
  _headers[key] = response.headers.get(key);
7393
7909
  }
7394
7910
  }
7395
- catch (e_66_1) { e_66 = { error: e_66_1 }; }
7911
+ catch (e_71_1) { e_71 = { error: e_71_1 }; }
7396
7912
  finally {
7397
7913
  try {
7398
7914
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
7399
7915
  }
7400
- finally { if (e_66) throw e_66.error; }
7916
+ finally { if (e_71) throw e_71.error; }
7401
7917
  }
7402
7918
  }
7403
7919
  if (status === 200) {
@@ -7476,7 +7992,7 @@
7476
7992
  }));
7477
7993
  };
7478
7994
  StorefrontUsersApiClient.prototype.processCreate = function (response) {
7479
- var e_67, _a;
7995
+ var e_72, _a;
7480
7996
  var _this = this;
7481
7997
  var status = response.status;
7482
7998
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -7489,12 +8005,12 @@
7489
8005
  _headers[key] = response.headers.get(key);
7490
8006
  }
7491
8007
  }
7492
- catch (e_67_1) { e_67 = { error: e_67_1 }; }
8008
+ catch (e_72_1) { e_72 = { error: e_72_1 }; }
7493
8009
  finally {
7494
8010
  try {
7495
8011
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
7496
8012
  }
7497
- finally { if (e_67) throw e_67.error; }
8013
+ finally { if (e_72) throw e_72.error; }
7498
8014
  }
7499
8015
  }
7500
8016
  if (status === 201) {
@@ -7573,7 +8089,7 @@
7573
8089
  }));
7574
8090
  };
7575
8091
  StorefrontUsersApiClient.prototype.processGet = function (response) {
7576
- var e_68, _a;
8092
+ var e_73, _a;
7577
8093
  var _this = this;
7578
8094
  var status = response.status;
7579
8095
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -7586,12 +8102,12 @@
7586
8102
  _headers[key] = response.headers.get(key);
7587
8103
  }
7588
8104
  }
7589
- catch (e_68_1) { e_68 = { error: e_68_1 }; }
8105
+ catch (e_73_1) { e_73 = { error: e_73_1 }; }
7590
8106
  finally {
7591
8107
  try {
7592
8108
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
7593
8109
  }
7594
- finally { if (e_68) throw e_68.error; }
8110
+ finally { if (e_73) throw e_73.error; }
7595
8111
  }
7596
8112
  }
7597
8113
  if (status === 200) {
@@ -7677,7 +8193,7 @@
7677
8193
  }));
7678
8194
  };
7679
8195
  StorefrontUsersApiClient.prototype.processRegister = function (response) {
7680
- var e_69, _a;
8196
+ var e_74, _a;
7681
8197
  var _this = this;
7682
8198
  var status = response.status;
7683
8199
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -7690,12 +8206,12 @@
7690
8206
  _headers[key] = response.headers.get(key);
7691
8207
  }
7692
8208
  }
7693
- catch (e_69_1) { e_69 = { error: e_69_1 }; }
8209
+ catch (e_74_1) { e_74 = { error: e_74_1 }; }
7694
8210
  finally {
7695
8211
  try {
7696
8212
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
7697
8213
  }
7698
- finally { if (e_69) throw e_69.error; }
8214
+ finally { if (e_74) throw e_74.error; }
7699
8215
  }
7700
8216
  }
7701
8217
  if (status === 200) {
@@ -7773,7 +8289,7 @@
7773
8289
  }));
7774
8290
  };
7775
8291
  StorefrontUsersApiClient.prototype.processMergeAnonymous = function (response) {
7776
- var e_70, _a;
8292
+ var e_75, _a;
7777
8293
  var _this = this;
7778
8294
  var status = response.status;
7779
8295
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -7786,12 +8302,12 @@
7786
8302
  _headers[key] = response.headers.get(key);
7787
8303
  }
7788
8304
  }
7789
- catch (e_70_1) { e_70 = { error: e_70_1 }; }
8305
+ catch (e_75_1) { e_75 = { error: e_75_1 }; }
7790
8306
  finally {
7791
8307
  try {
7792
8308
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
7793
8309
  }
7794
- finally { if (e_70) throw e_70.error; }
8310
+ finally { if (e_75) throw e_75.error; }
7795
8311
  }
7796
8312
  }
7797
8313
  if (status === 200) {
@@ -7876,7 +8392,7 @@
7876
8392
  }));
7877
8393
  };
7878
8394
  StorefrontUsersApiClient.prototype.processGetToken = function (response) {
7879
- var e_71, _a;
8395
+ var e_76, _a;
7880
8396
  var _this = this;
7881
8397
  var status = response.status;
7882
8398
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -7889,12 +8405,12 @@
7889
8405
  _headers[key] = response.headers.get(key);
7890
8406
  }
7891
8407
  }
7892
- catch (e_71_1) { e_71 = { error: e_71_1 }; }
8408
+ catch (e_76_1) { e_76 = { error: e_76_1 }; }
7893
8409
  finally {
7894
8410
  try {
7895
8411
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
7896
8412
  }
7897
- finally { if (e_71) throw e_71.error; }
8413
+ finally { if (e_76) throw e_76.error; }
7898
8414
  }
7899
8415
  }
7900
8416
  if (status === 200) {
@@ -7993,7 +8509,7 @@
7993
8509
  }));
7994
8510
  };
7995
8511
  TenantInfoApiClient.prototype.processGetApplicationsInfo = function (response) {
7996
- var e_72, _a;
8512
+ var e_77, _a;
7997
8513
  var _this = this;
7998
8514
  var status = response.status;
7999
8515
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -8006,12 +8522,12 @@
8006
8522
  _headers[key] = response.headers.get(key);
8007
8523
  }
8008
8524
  }
8009
- catch (e_72_1) { e_72 = { error: e_72_1 }; }
8525
+ catch (e_77_1) { e_77 = { error: e_77_1 }; }
8010
8526
  finally {
8011
8527
  try {
8012
8528
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
8013
8529
  }
8014
- finally { if (e_72) throw e_72.error; }
8530
+ finally { if (e_77) throw e_77.error; }
8015
8531
  }
8016
8532
  }
8017
8533
  if (status === 200) {
@@ -8074,7 +8590,7 @@
8074
8590
  }));
8075
8591
  };
8076
8592
  TenantInfoApiClient.prototype.processGetInfo = function (response) {
8077
- var e_73, _a;
8593
+ var e_78, _a;
8078
8594
  var _this = this;
8079
8595
  var status = response.status;
8080
8596
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -8087,12 +8603,12 @@
8087
8603
  _headers[key] = response.headers.get(key);
8088
8604
  }
8089
8605
  }
8090
- catch (e_73_1) { e_73 = { error: e_73_1 }; }
8606
+ catch (e_78_1) { e_78 = { error: e_78_1 }; }
8091
8607
  finally {
8092
8608
  try {
8093
8609
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
8094
8610
  }
8095
- finally { if (e_73) throw e_73.error; }
8611
+ finally { if (e_78) throw e_78.error; }
8096
8612
  }
8097
8613
  }
8098
8614
  if (status === 200) {
@@ -8155,7 +8671,7 @@
8155
8671
  }));
8156
8672
  };
8157
8673
  TenantInfoApiClient.prototype.processGetMeasureUnitsInfo = function (response) {
8158
- var e_74, _a;
8674
+ var e_79, _a;
8159
8675
  var _this = this;
8160
8676
  var status = response.status;
8161
8677
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -8168,12 +8684,12 @@
8168
8684
  _headers[key] = response.headers.get(key);
8169
8685
  }
8170
8686
  }
8171
- catch (e_74_1) { e_74 = { error: e_74_1 }; }
8687
+ catch (e_79_1) { e_79 = { error: e_79_1 }; }
8172
8688
  finally {
8173
8689
  try {
8174
8690
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
8175
8691
  }
8176
- finally { if (e_74) throw e_74.error; }
8692
+ finally { if (e_79) throw e_79.error; }
8177
8693
  }
8178
8694
  }
8179
8695
  if (status === 200) {
@@ -8236,7 +8752,7 @@
8236
8752
  }));
8237
8753
  };
8238
8754
  TenantInfoApiClient.prototype.processGetUsersInfo = function (response) {
8239
- var e_75, _a;
8755
+ var e_80, _a;
8240
8756
  var _this = this;
8241
8757
  var status = response.status;
8242
8758
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -8249,12 +8765,12 @@
8249
8765
  _headers[key] = response.headers.get(key);
8250
8766
  }
8251
8767
  }
8252
- catch (e_75_1) { e_75 = { error: e_75_1 }; }
8768
+ catch (e_80_1) { e_80 = { error: e_80_1 }; }
8253
8769
  finally {
8254
8770
  try {
8255
8771
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
8256
8772
  }
8257
- finally { if (e_75) throw e_75.error; }
8773
+ finally { if (e_80) throw e_80.error; }
8258
8774
  }
8259
8775
  }
8260
8776
  if (status === 200) {
@@ -8304,6 +8820,18 @@
8304
8820
  ConflictType["IdConflict"] = "IdConflict";
8305
8821
  ConflictType["GeneralConflict"] = "GeneralConflict";
8306
8822
  })(exports.ConflictType || (exports.ConflictType = {}));
8823
+ (function (ProductType) {
8824
+ ProductType["ProductSpecification"] = "ProductSpecification";
8825
+ ProductType["Product"] = "Product";
8826
+ ProductType["ProductLink"] = "ProductLink";
8827
+ ProductType["ProductBundle"] = "ProductBundle";
8828
+ })(exports.ProductType || (exports.ProductType = {}));
8829
+ (function (WorkflowType) {
8830
+ WorkflowType["UIFramework"] = "UIFramework";
8831
+ WorkflowType["SimpleEditor"] = "SimpleEditor";
8832
+ WorkflowType["DesignEditor"] = "DesignEditor";
8833
+ WorkflowType["WorkflowElements"] = "WorkflowElements";
8834
+ })(exports.WorkflowType || (exports.WorkflowType = {}));
8307
8835
  (function (AppearanceDataType) {
8308
8836
  AppearanceDataType["Radio"] = "Radio";
8309
8837
  AppearanceDataType["Dropdown"] = "Dropdown";
@@ -8313,12 +8841,6 @@
8313
8841
  AppearanceDataType["ImageGrid"] = "ImageGrid";
8314
8842
  AppearanceDataType["ImageList"] = "ImageList";
8315
8843
  })(exports.AppearanceDataType || (exports.AppearanceDataType = {}));
8316
- (function (WorkflowType) {
8317
- WorkflowType["UIFramework"] = "UIFramework";
8318
- WorkflowType["SimpleEditor"] = "SimpleEditor";
8319
- WorkflowType["DesignEditor"] = "DesignEditor";
8320
- WorkflowType["WorkflowElements"] = "WorkflowElements";
8321
- })(exports.WorkflowType || (exports.WorkflowType = {}));
8322
8844
  (function (ProductLinkResourceType) {
8323
8845
  ProductLinkResourceType["Preview"] = "Preview";
8324
8846
  ProductLinkResourceType["Custom"] = "Custom";