@aurigma/ng-storefront-api-client 2.62.12 → 2.65.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/aurigma-ng-storefront-api-client.metadata.json +1 -1
- package/bundles/aurigma-ng-storefront-api-client.umd.js +792 -270
- package/bundles/aurigma-ng-storefront-api-client.umd.js.map +1 -1
- package/bundles/aurigma-ng-storefront-api-client.umd.min.js +1 -1
- package/bundles/aurigma-ng-storefront-api-client.umd.min.js.map +1 -1
- package/esm2015/aurigma-ng-storefront-api-client.js +1 -1
- package/esm2015/lib/storefront-api-client.js +475 -14
- package/esm2015/lib/storefront.module.js +1 -1
- package/esm2015/public-api.js +1 -1
- package/fesm2015/aurigma-ng-storefront-api-client.js +475 -14
- package/fesm2015/aurigma-ng-storefront-api-client.js.map +1 -1
- package/lib/storefront-api-client.d.ts +172 -26
- package/package.json +1 -1
|
@@ -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
|
|
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 (
|
|
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 (
|
|
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
|
|
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 (
|
|
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 (
|
|
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
|
|
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 (
|
|
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 (
|
|
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
|
|
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 (
|
|
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 (
|
|
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
|
|
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 (
|
|
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 (
|
|
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
|
|
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 (
|
|
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 (
|
|
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
|
|
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 (
|
|
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 (
|
|
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
|
|
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 (
|
|
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 (
|
|
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
|
|
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 (
|
|
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 (
|
|
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
|
|
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 (
|
|
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 (
|
|
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
|
|
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 (
|
|
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 (
|
|
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
|
|
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 (
|
|
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 (
|
|
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
|
|
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 (
|
|
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 (
|
|
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
|
|
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 (
|
|
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 (
|
|
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
|
|
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 (
|
|
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 (
|
|
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
|
|
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 (
|
|
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 (
|
|
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
|
|
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 (
|
|
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 (
|
|
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
|
|
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 (
|
|
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 (
|
|
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
|
|
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 (
|
|
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 (
|
|
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.
|
|
3548
|
+
ProductsApiClient.prototype.getProduct = function (id, productVersionId, tenantId) {
|
|
3144
3549
|
var _this = this;
|
|
3145
|
-
var url_ = this.baseUrl + "/api/storefront/v1/products?";
|
|
3146
|
-
if (
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
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.
|
|
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.
|
|
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.
|
|
3188
|
-
var
|
|
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 (
|
|
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 (
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
3276
|
-
var
|
|
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 (
|
|
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 (
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
3387
|
-
var
|
|
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 (
|
|
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 (
|
|
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
|
|
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 (
|
|
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 (
|
|
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
|
|
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 (
|
|
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 (
|
|
4012
|
+
finally { if (e_34) throw e_34.error; }
|
|
3603
4013
|
}
|
|
3604
4014
|
}
|
|
3605
4015
|
if (status === 200) {
|
|
@@ -3681,7 +4091,7 @@
|
|
|
3681
4091
|
}));
|
|
3682
4092
|
};
|
|
3683
4093
|
ProductsApiClient.prototype.processGetProductLinks = function (response) {
|
|
3684
|
-
var
|
|
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 (
|
|
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 (
|
|
4112
|
+
finally { if (e_35) throw e_35.error; }
|
|
3703
4113
|
}
|
|
3704
4114
|
}
|
|
3705
4115
|
if (status === 200) {
|
|
@@ -3787,7 +4197,7 @@
|
|
|
3787
4197
|
}));
|
|
3788
4198
|
};
|
|
3789
4199
|
ProductsApiClient.prototype.processGetProductLink = function (response) {
|
|
3790
|
-
var
|
|
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 (
|
|
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 (
|
|
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
|
|
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 (
|
|
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 (
|
|
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
|
|
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 (
|
|
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 (
|
|
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
|
|
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 (
|
|
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 (
|
|
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
|
|
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 (
|
|
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 (
|
|
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
|
|
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 (
|
|
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 (
|
|
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
|
|
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 (
|
|
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 (
|
|
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
|
|
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 (
|
|
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 (
|
|
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
|
|
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 (
|
|
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 (
|
|
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 (
|
|
4796
|
-
|
|
4797
|
-
|
|
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.
|
|
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.
|
|
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.
|
|
4831
|
-
var
|
|
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 (
|
|
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 (
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
4916
|
-
var
|
|
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 (
|
|
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 (
|
|
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
|
|
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 (
|
|
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 (
|
|
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
|
|
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 (
|
|
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 (
|
|
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
|
|
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 (
|
|
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 (
|
|
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
|
|
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 (
|
|
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 (
|
|
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
|
|
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 (
|
|
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 (
|
|
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
|
|
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 (
|
|
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 (
|
|
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
|
|
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 (
|
|
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 (
|
|
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
|
|
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 (
|
|
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 (
|
|
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
|
|
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 (
|
|
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 (
|
|
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
|
|
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 (
|
|
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 (
|
|
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
|
|
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 (
|
|
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 (
|
|
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
|
|
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 (
|
|
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 (
|
|
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
|
|
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 (
|
|
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 (
|
|
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
|
|
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 (
|
|
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 (
|
|
6904
|
+
finally { if (e_61) throw e_61.error; }
|
|
6396
6905
|
}
|
|
6397
6906
|
}
|
|
6398
6907
|
if (status === 200) {
|
|
@@ -6462,7 +6971,7 @@
|
|
|
6462
6971
|
}));
|
|
6463
6972
|
};
|
|
6464
6973
|
ProjectsApiClient.prototype.processGetAllStatuses = function (response) {
|
|
6465
|
-
var
|
|
6974
|
+
var e_62, _a;
|
|
6466
6975
|
var _this = this;
|
|
6467
6976
|
var status = response.status;
|
|
6468
6977
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -6475,12 +6984,12 @@
|
|
|
6475
6984
|
_headers[key] = response.headers.get(key);
|
|
6476
6985
|
}
|
|
6477
6986
|
}
|
|
6478
|
-
catch (
|
|
6987
|
+
catch (e_62_1) { e_62 = { error: e_62_1 }; }
|
|
6479
6988
|
finally {
|
|
6480
6989
|
try {
|
|
6481
6990
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
6482
6991
|
}
|
|
6483
|
-
finally { if (
|
|
6992
|
+
finally { if (e_62) throw e_62.error; }
|
|
6484
6993
|
}
|
|
6485
6994
|
}
|
|
6486
6995
|
if (status === 200) {
|
|
@@ -6543,7 +7052,7 @@
|
|
|
6543
7052
|
}));
|
|
6544
7053
|
};
|
|
6545
7054
|
ProjectsApiClient.prototype.processGetAllTransitions = function (response) {
|
|
6546
|
-
var
|
|
7055
|
+
var e_63, _a;
|
|
6547
7056
|
var _this = this;
|
|
6548
7057
|
var status = response.status;
|
|
6549
7058
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -6556,12 +7065,12 @@
|
|
|
6556
7065
|
_headers[key] = response.headers.get(key);
|
|
6557
7066
|
}
|
|
6558
7067
|
}
|
|
6559
|
-
catch (
|
|
7068
|
+
catch (e_63_1) { e_63 = { error: e_63_1 }; }
|
|
6560
7069
|
finally {
|
|
6561
7070
|
try {
|
|
6562
7071
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
6563
7072
|
}
|
|
6564
|
-
finally { if (
|
|
7073
|
+
finally { if (e_63) throw e_63.error; }
|
|
6565
7074
|
}
|
|
6566
7075
|
}
|
|
6567
7076
|
if (status === 200) {
|
|
@@ -6631,7 +7140,7 @@
|
|
|
6631
7140
|
}));
|
|
6632
7141
|
};
|
|
6633
7142
|
ProjectsApiClient.prototype.processGetProjectProcessingResults = function (response) {
|
|
6634
|
-
var
|
|
7143
|
+
var e_64, _a;
|
|
6635
7144
|
var _this = this;
|
|
6636
7145
|
var status = response.status;
|
|
6637
7146
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -6644,12 +7153,12 @@
|
|
|
6644
7153
|
_headers[key] = response.headers.get(key);
|
|
6645
7154
|
}
|
|
6646
7155
|
}
|
|
6647
|
-
catch (
|
|
7156
|
+
catch (e_64_1) { e_64 = { error: e_64_1 }; }
|
|
6648
7157
|
finally {
|
|
6649
7158
|
try {
|
|
6650
7159
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
6651
7160
|
}
|
|
6652
|
-
finally { if (
|
|
7161
|
+
finally { if (e_64) throw e_64.error; }
|
|
6653
7162
|
}
|
|
6654
7163
|
}
|
|
6655
7164
|
if (status === 200) {
|
|
@@ -6731,7 +7240,7 @@
|
|
|
6731
7240
|
}));
|
|
6732
7241
|
};
|
|
6733
7242
|
ProjectsApiClient.prototype.processResumeProjectProcessing = function (response) {
|
|
6734
|
-
var
|
|
7243
|
+
var e_65, _a;
|
|
6735
7244
|
var _this = this;
|
|
6736
7245
|
var status = response.status;
|
|
6737
7246
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -6744,12 +7253,12 @@
|
|
|
6744
7253
|
_headers[key] = response.headers.get(key);
|
|
6745
7254
|
}
|
|
6746
7255
|
}
|
|
6747
|
-
catch (
|
|
7256
|
+
catch (e_65_1) { e_65 = { error: e_65_1 }; }
|
|
6748
7257
|
finally {
|
|
6749
7258
|
try {
|
|
6750
7259
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
6751
7260
|
}
|
|
6752
|
-
finally { if (
|
|
7261
|
+
finally { if (e_65) throw e_65.error; }
|
|
6753
7262
|
}
|
|
6754
7263
|
}
|
|
6755
7264
|
if (status === 204) {
|
|
@@ -6829,7 +7338,7 @@
|
|
|
6829
7338
|
}));
|
|
6830
7339
|
};
|
|
6831
7340
|
ProjectsApiClient.prototype.processRestartProjectProcessing = function (response) {
|
|
6832
|
-
var
|
|
7341
|
+
var e_66, _a;
|
|
6833
7342
|
var _this = this;
|
|
6834
7343
|
var status = response.status;
|
|
6835
7344
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -6842,12 +7351,12 @@
|
|
|
6842
7351
|
_headers[key] = response.headers.get(key);
|
|
6843
7352
|
}
|
|
6844
7353
|
}
|
|
6845
|
-
catch (
|
|
7354
|
+
catch (e_66_1) { e_66 = { error: e_66_1 }; }
|
|
6846
7355
|
finally {
|
|
6847
7356
|
try {
|
|
6848
7357
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
6849
7358
|
}
|
|
6850
|
-
finally { if (
|
|
7359
|
+
finally { if (e_66) throw e_66.error; }
|
|
6851
7360
|
}
|
|
6852
7361
|
}
|
|
6853
7362
|
if (status === 204) {
|
|
@@ -6926,7 +7435,7 @@
|
|
|
6926
7435
|
}));
|
|
6927
7436
|
};
|
|
6928
7437
|
ProjectsApiClient.prototype.processGetProjectOrder = function (response) {
|
|
6929
|
-
var
|
|
7438
|
+
var e_67, _a;
|
|
6930
7439
|
var _this = this;
|
|
6931
7440
|
var status = response.status;
|
|
6932
7441
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -6939,12 +7448,12 @@
|
|
|
6939
7448
|
_headers[key] = response.headers.get(key);
|
|
6940
7449
|
}
|
|
6941
7450
|
}
|
|
6942
|
-
catch (
|
|
7451
|
+
catch (e_67_1) { e_67 = { error: e_67_1 }; }
|
|
6943
7452
|
finally {
|
|
6944
7453
|
try {
|
|
6945
7454
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
6946
7455
|
}
|
|
6947
|
-
finally { if (
|
|
7456
|
+
finally { if (e_67) throw e_67.error; }
|
|
6948
7457
|
}
|
|
6949
7458
|
}
|
|
6950
7459
|
if (status === 200) {
|
|
@@ -7031,7 +7540,7 @@
|
|
|
7031
7540
|
}));
|
|
7032
7541
|
};
|
|
7033
7542
|
ProjectsApiClient.prototype.processAttachDataToProjectOrder = function (response) {
|
|
7034
|
-
var
|
|
7543
|
+
var e_68, _a;
|
|
7035
7544
|
var _this = this;
|
|
7036
7545
|
var status = response.status;
|
|
7037
7546
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -7044,12 +7553,12 @@
|
|
|
7044
7553
|
_headers[key] = response.headers.get(key);
|
|
7045
7554
|
}
|
|
7046
7555
|
}
|
|
7047
|
-
catch (
|
|
7556
|
+
catch (e_68_1) { e_68 = { error: e_68_1 }; }
|
|
7048
7557
|
finally {
|
|
7049
7558
|
try {
|
|
7050
7559
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
7051
7560
|
}
|
|
7052
|
-
finally { if (
|
|
7561
|
+
finally { if (e_68) throw e_68.error; }
|
|
7053
7562
|
}
|
|
7054
7563
|
}
|
|
7055
7564
|
if (status === 204) {
|
|
@@ -7117,10 +7626,11 @@
|
|
|
7117
7626
|
* @param take (optional) Defines page length (how many consequent items of sorted result list should be taken).
|
|
7118
7627
|
* @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC".
|
|
7119
7628
|
* @param search (optional) Search string for partial match.
|
|
7629
|
+
* @param status (optional) Storefront status.
|
|
7120
7630
|
* @param tenantId (optional) Tenant identifier.
|
|
7121
7631
|
* @return Success
|
|
7122
7632
|
*/
|
|
7123
|
-
StorefrontsApiClient.prototype.getAll = function (types, skip, take, sorting, search, tenantId) {
|
|
7633
|
+
StorefrontsApiClient.prototype.getAll = function (types, skip, take, sorting, search, status, tenantId) {
|
|
7124
7634
|
var _this = this;
|
|
7125
7635
|
var url_ = this.baseUrl + "/api/storefront/v1/storefronts?";
|
|
7126
7636
|
if (types !== undefined && types !== null)
|
|
@@ -7133,6 +7643,8 @@
|
|
|
7133
7643
|
url_ += "sorting=" + encodeURIComponent("" + sorting) + "&";
|
|
7134
7644
|
if (search !== undefined && search !== null)
|
|
7135
7645
|
url_ += "search=" + encodeURIComponent("" + search) + "&";
|
|
7646
|
+
if (status !== undefined && status !== null)
|
|
7647
|
+
url_ += "status=" + encodeURIComponent("" + status) + "&";
|
|
7136
7648
|
if (tenantId !== undefined && tenantId !== null)
|
|
7137
7649
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
7138
7650
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -7161,7 +7673,7 @@
|
|
|
7161
7673
|
}));
|
|
7162
7674
|
};
|
|
7163
7675
|
StorefrontsApiClient.prototype.processGetAll = function (response) {
|
|
7164
|
-
var
|
|
7676
|
+
var e_69, _a;
|
|
7165
7677
|
var _this = this;
|
|
7166
7678
|
var status = response.status;
|
|
7167
7679
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -7174,12 +7686,12 @@
|
|
|
7174
7686
|
_headers[key] = response.headers.get(key);
|
|
7175
7687
|
}
|
|
7176
7688
|
}
|
|
7177
|
-
catch (
|
|
7689
|
+
catch (e_69_1) { e_69 = { error: e_69_1 }; }
|
|
7178
7690
|
finally {
|
|
7179
7691
|
try {
|
|
7180
7692
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
7181
7693
|
}
|
|
7182
|
-
finally { if (
|
|
7694
|
+
finally { if (e_69) throw e_69.error; }
|
|
7183
7695
|
}
|
|
7184
7696
|
}
|
|
7185
7697
|
if (status === 200) {
|
|
@@ -7246,7 +7758,7 @@
|
|
|
7246
7758
|
}));
|
|
7247
7759
|
};
|
|
7248
7760
|
StorefrontsApiClient.prototype.processGet = function (response) {
|
|
7249
|
-
var
|
|
7761
|
+
var e_70, _a;
|
|
7250
7762
|
var _this = this;
|
|
7251
7763
|
var status = response.status;
|
|
7252
7764
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -7259,12 +7771,12 @@
|
|
|
7259
7771
|
_headers[key] = response.headers.get(key);
|
|
7260
7772
|
}
|
|
7261
7773
|
}
|
|
7262
|
-
catch (
|
|
7774
|
+
catch (e_70_1) { e_70 = { error: e_70_1 }; }
|
|
7263
7775
|
finally {
|
|
7264
7776
|
try {
|
|
7265
7777
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
7266
7778
|
}
|
|
7267
|
-
finally { if (
|
|
7779
|
+
finally { if (e_70) throw e_70.error; }
|
|
7268
7780
|
}
|
|
7269
7781
|
}
|
|
7270
7782
|
if (status === 200) {
|
|
@@ -7386,7 +7898,7 @@
|
|
|
7386
7898
|
}));
|
|
7387
7899
|
};
|
|
7388
7900
|
StorefrontUsersApiClient.prototype.processGetAll = function (response) {
|
|
7389
|
-
var
|
|
7901
|
+
var e_71, _a;
|
|
7390
7902
|
var _this = this;
|
|
7391
7903
|
var status = response.status;
|
|
7392
7904
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -7399,12 +7911,12 @@
|
|
|
7399
7911
|
_headers[key] = response.headers.get(key);
|
|
7400
7912
|
}
|
|
7401
7913
|
}
|
|
7402
|
-
catch (
|
|
7914
|
+
catch (e_71_1) { e_71 = { error: e_71_1 }; }
|
|
7403
7915
|
finally {
|
|
7404
7916
|
try {
|
|
7405
7917
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
7406
7918
|
}
|
|
7407
|
-
finally { if (
|
|
7919
|
+
finally { if (e_71) throw e_71.error; }
|
|
7408
7920
|
}
|
|
7409
7921
|
}
|
|
7410
7922
|
if (status === 200) {
|
|
@@ -7483,7 +7995,7 @@
|
|
|
7483
7995
|
}));
|
|
7484
7996
|
};
|
|
7485
7997
|
StorefrontUsersApiClient.prototype.processCreate = function (response) {
|
|
7486
|
-
var
|
|
7998
|
+
var e_72, _a;
|
|
7487
7999
|
var _this = this;
|
|
7488
8000
|
var status = response.status;
|
|
7489
8001
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -7496,12 +8008,12 @@
|
|
|
7496
8008
|
_headers[key] = response.headers.get(key);
|
|
7497
8009
|
}
|
|
7498
8010
|
}
|
|
7499
|
-
catch (
|
|
8011
|
+
catch (e_72_1) { e_72 = { error: e_72_1 }; }
|
|
7500
8012
|
finally {
|
|
7501
8013
|
try {
|
|
7502
8014
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
7503
8015
|
}
|
|
7504
|
-
finally { if (
|
|
8016
|
+
finally { if (e_72) throw e_72.error; }
|
|
7505
8017
|
}
|
|
7506
8018
|
}
|
|
7507
8019
|
if (status === 201) {
|
|
@@ -7580,7 +8092,7 @@
|
|
|
7580
8092
|
}));
|
|
7581
8093
|
};
|
|
7582
8094
|
StorefrontUsersApiClient.prototype.processGet = function (response) {
|
|
7583
|
-
var
|
|
8095
|
+
var e_73, _a;
|
|
7584
8096
|
var _this = this;
|
|
7585
8097
|
var status = response.status;
|
|
7586
8098
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -7593,12 +8105,12 @@
|
|
|
7593
8105
|
_headers[key] = response.headers.get(key);
|
|
7594
8106
|
}
|
|
7595
8107
|
}
|
|
7596
|
-
catch (
|
|
8108
|
+
catch (e_73_1) { e_73 = { error: e_73_1 }; }
|
|
7597
8109
|
finally {
|
|
7598
8110
|
try {
|
|
7599
8111
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
7600
8112
|
}
|
|
7601
|
-
finally { if (
|
|
8113
|
+
finally { if (e_73) throw e_73.error; }
|
|
7602
8114
|
}
|
|
7603
8115
|
}
|
|
7604
8116
|
if (status === 200) {
|
|
@@ -7684,7 +8196,7 @@
|
|
|
7684
8196
|
}));
|
|
7685
8197
|
};
|
|
7686
8198
|
StorefrontUsersApiClient.prototype.processRegister = function (response) {
|
|
7687
|
-
var
|
|
8199
|
+
var e_74, _a;
|
|
7688
8200
|
var _this = this;
|
|
7689
8201
|
var status = response.status;
|
|
7690
8202
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -7697,12 +8209,12 @@
|
|
|
7697
8209
|
_headers[key] = response.headers.get(key);
|
|
7698
8210
|
}
|
|
7699
8211
|
}
|
|
7700
|
-
catch (
|
|
8212
|
+
catch (e_74_1) { e_74 = { error: e_74_1 }; }
|
|
7701
8213
|
finally {
|
|
7702
8214
|
try {
|
|
7703
8215
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
7704
8216
|
}
|
|
7705
|
-
finally { if (
|
|
8217
|
+
finally { if (e_74) throw e_74.error; }
|
|
7706
8218
|
}
|
|
7707
8219
|
}
|
|
7708
8220
|
if (status === 200) {
|
|
@@ -7780,7 +8292,7 @@
|
|
|
7780
8292
|
}));
|
|
7781
8293
|
};
|
|
7782
8294
|
StorefrontUsersApiClient.prototype.processMergeAnonymous = function (response) {
|
|
7783
|
-
var
|
|
8295
|
+
var e_75, _a;
|
|
7784
8296
|
var _this = this;
|
|
7785
8297
|
var status = response.status;
|
|
7786
8298
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -7793,12 +8305,12 @@
|
|
|
7793
8305
|
_headers[key] = response.headers.get(key);
|
|
7794
8306
|
}
|
|
7795
8307
|
}
|
|
7796
|
-
catch (
|
|
8308
|
+
catch (e_75_1) { e_75 = { error: e_75_1 }; }
|
|
7797
8309
|
finally {
|
|
7798
8310
|
try {
|
|
7799
8311
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
7800
8312
|
}
|
|
7801
|
-
finally { if (
|
|
8313
|
+
finally { if (e_75) throw e_75.error; }
|
|
7802
8314
|
}
|
|
7803
8315
|
}
|
|
7804
8316
|
if (status === 200) {
|
|
@@ -7883,7 +8395,7 @@
|
|
|
7883
8395
|
}));
|
|
7884
8396
|
};
|
|
7885
8397
|
StorefrontUsersApiClient.prototype.processGetToken = function (response) {
|
|
7886
|
-
var
|
|
8398
|
+
var e_76, _a;
|
|
7887
8399
|
var _this = this;
|
|
7888
8400
|
var status = response.status;
|
|
7889
8401
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -7896,12 +8408,12 @@
|
|
|
7896
8408
|
_headers[key] = response.headers.get(key);
|
|
7897
8409
|
}
|
|
7898
8410
|
}
|
|
7899
|
-
catch (
|
|
8411
|
+
catch (e_76_1) { e_76 = { error: e_76_1 }; }
|
|
7900
8412
|
finally {
|
|
7901
8413
|
try {
|
|
7902
8414
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
7903
8415
|
}
|
|
7904
|
-
finally { if (
|
|
8416
|
+
finally { if (e_76) throw e_76.error; }
|
|
7905
8417
|
}
|
|
7906
8418
|
}
|
|
7907
8419
|
if (status === 200) {
|
|
@@ -8000,7 +8512,7 @@
|
|
|
8000
8512
|
}));
|
|
8001
8513
|
};
|
|
8002
8514
|
TenantInfoApiClient.prototype.processGetApplicationsInfo = function (response) {
|
|
8003
|
-
var
|
|
8515
|
+
var e_77, _a;
|
|
8004
8516
|
var _this = this;
|
|
8005
8517
|
var status = response.status;
|
|
8006
8518
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -8013,12 +8525,12 @@
|
|
|
8013
8525
|
_headers[key] = response.headers.get(key);
|
|
8014
8526
|
}
|
|
8015
8527
|
}
|
|
8016
|
-
catch (
|
|
8528
|
+
catch (e_77_1) { e_77 = { error: e_77_1 }; }
|
|
8017
8529
|
finally {
|
|
8018
8530
|
try {
|
|
8019
8531
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
8020
8532
|
}
|
|
8021
|
-
finally { if (
|
|
8533
|
+
finally { if (e_77) throw e_77.error; }
|
|
8022
8534
|
}
|
|
8023
8535
|
}
|
|
8024
8536
|
if (status === 200) {
|
|
@@ -8081,7 +8593,7 @@
|
|
|
8081
8593
|
}));
|
|
8082
8594
|
};
|
|
8083
8595
|
TenantInfoApiClient.prototype.processGetInfo = function (response) {
|
|
8084
|
-
var
|
|
8596
|
+
var e_78, _a;
|
|
8085
8597
|
var _this = this;
|
|
8086
8598
|
var status = response.status;
|
|
8087
8599
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -8094,12 +8606,12 @@
|
|
|
8094
8606
|
_headers[key] = response.headers.get(key);
|
|
8095
8607
|
}
|
|
8096
8608
|
}
|
|
8097
|
-
catch (
|
|
8609
|
+
catch (e_78_1) { e_78 = { error: e_78_1 }; }
|
|
8098
8610
|
finally {
|
|
8099
8611
|
try {
|
|
8100
8612
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
8101
8613
|
}
|
|
8102
|
-
finally { if (
|
|
8614
|
+
finally { if (e_78) throw e_78.error; }
|
|
8103
8615
|
}
|
|
8104
8616
|
}
|
|
8105
8617
|
if (status === 200) {
|
|
@@ -8162,7 +8674,7 @@
|
|
|
8162
8674
|
}));
|
|
8163
8675
|
};
|
|
8164
8676
|
TenantInfoApiClient.prototype.processGetMeasureUnitsInfo = function (response) {
|
|
8165
|
-
var
|
|
8677
|
+
var e_79, _a;
|
|
8166
8678
|
var _this = this;
|
|
8167
8679
|
var status = response.status;
|
|
8168
8680
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -8175,12 +8687,12 @@
|
|
|
8175
8687
|
_headers[key] = response.headers.get(key);
|
|
8176
8688
|
}
|
|
8177
8689
|
}
|
|
8178
|
-
catch (
|
|
8690
|
+
catch (e_79_1) { e_79 = { error: e_79_1 }; }
|
|
8179
8691
|
finally {
|
|
8180
8692
|
try {
|
|
8181
8693
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
8182
8694
|
}
|
|
8183
|
-
finally { if (
|
|
8695
|
+
finally { if (e_79) throw e_79.error; }
|
|
8184
8696
|
}
|
|
8185
8697
|
}
|
|
8186
8698
|
if (status === 200) {
|
|
@@ -8243,7 +8755,7 @@
|
|
|
8243
8755
|
}));
|
|
8244
8756
|
};
|
|
8245
8757
|
TenantInfoApiClient.prototype.processGetUsersInfo = function (response) {
|
|
8246
|
-
var
|
|
8758
|
+
var e_80, _a;
|
|
8247
8759
|
var _this = this;
|
|
8248
8760
|
var status = response.status;
|
|
8249
8761
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -8256,12 +8768,12 @@
|
|
|
8256
8768
|
_headers[key] = response.headers.get(key);
|
|
8257
8769
|
}
|
|
8258
8770
|
}
|
|
8259
|
-
catch (
|
|
8771
|
+
catch (e_80_1) { e_80 = { error: e_80_1 }; }
|
|
8260
8772
|
finally {
|
|
8261
8773
|
try {
|
|
8262
8774
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
8263
8775
|
}
|
|
8264
|
-
finally { if (
|
|
8776
|
+
finally { if (e_80) throw e_80.error; }
|
|
8265
8777
|
}
|
|
8266
8778
|
}
|
|
8267
8779
|
if (status === 200) {
|
|
@@ -8311,6 +8823,18 @@
|
|
|
8311
8823
|
ConflictType["IdConflict"] = "IdConflict";
|
|
8312
8824
|
ConflictType["GeneralConflict"] = "GeneralConflict";
|
|
8313
8825
|
})(exports.ConflictType || (exports.ConflictType = {}));
|
|
8826
|
+
(function (ProductType) {
|
|
8827
|
+
ProductType["ProductSpecification"] = "ProductSpecification";
|
|
8828
|
+
ProductType["Product"] = "Product";
|
|
8829
|
+
ProductType["ProductLink"] = "ProductLink";
|
|
8830
|
+
ProductType["ProductBundle"] = "ProductBundle";
|
|
8831
|
+
})(exports.ProductType || (exports.ProductType = {}));
|
|
8832
|
+
(function (WorkflowType) {
|
|
8833
|
+
WorkflowType["UIFramework"] = "UIFramework";
|
|
8834
|
+
WorkflowType["SimpleEditor"] = "SimpleEditor";
|
|
8835
|
+
WorkflowType["DesignEditor"] = "DesignEditor";
|
|
8836
|
+
WorkflowType["WorkflowElements"] = "WorkflowElements";
|
|
8837
|
+
})(exports.WorkflowType || (exports.WorkflowType = {}));
|
|
8314
8838
|
(function (AppearanceDataType) {
|
|
8315
8839
|
AppearanceDataType["Radio"] = "Radio";
|
|
8316
8840
|
AppearanceDataType["Dropdown"] = "Dropdown";
|
|
@@ -8320,12 +8844,6 @@
|
|
|
8320
8844
|
AppearanceDataType["ImageGrid"] = "ImageGrid";
|
|
8321
8845
|
AppearanceDataType["ImageList"] = "ImageList";
|
|
8322
8846
|
})(exports.AppearanceDataType || (exports.AppearanceDataType = {}));
|
|
8323
|
-
(function (WorkflowType) {
|
|
8324
|
-
WorkflowType["UIFramework"] = "UIFramework";
|
|
8325
|
-
WorkflowType["SimpleEditor"] = "SimpleEditor";
|
|
8326
|
-
WorkflowType["DesignEditor"] = "DesignEditor";
|
|
8327
|
-
WorkflowType["WorkflowElements"] = "WorkflowElements";
|
|
8328
|
-
})(exports.WorkflowType || (exports.WorkflowType = {}));
|
|
8329
8847
|
(function (ProductLinkResourceType) {
|
|
8330
8848
|
ProductLinkResourceType["Preview"] = "Preview";
|
|
8331
8849
|
ProductLinkResourceType["Custom"] = "Custom";
|
|
@@ -8420,6 +8938,10 @@
|
|
|
8420
8938
|
StorefrontType["Shopify"] = "Shopify";
|
|
8421
8939
|
StorefrontType["ShopifyCustom"] = "ShopifyCustom";
|
|
8422
8940
|
})(exports.StorefrontType || (exports.StorefrontType = {}));
|
|
8941
|
+
(function (StorefrontStatus) {
|
|
8942
|
+
StorefrontStatus["Dev"] = "Dev";
|
|
8943
|
+
StorefrontStatus["Prod"] = "Prod";
|
|
8944
|
+
})(exports.StorefrontStatus || (exports.StorefrontStatus = {}));
|
|
8423
8945
|
var ApiException = /** @class */ (function (_super) {
|
|
8424
8946
|
__extends(ApiException, _super);
|
|
8425
8947
|
function ApiException(message, status, response, headers, result) {
|