@aurigma/ng-storefront-api-client 2.54.19 → 2.55.3
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 +302 -1026
- 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 +18 -651
- package/esm2015/lib/storefront.module.js +1 -1
- package/esm2015/public-api.js +1 -1
- package/fesm2015/aurigma-ng-storefront-api-client.js +17 -650
- package/fesm2015/aurigma-ng-storefront-api-client.js.map +1 -1
- package/lib/storefront-api-client.d.ts +18 -186
- package/package.json +1 -1
|
@@ -1299,110 +1299,6 @@
|
|
|
1299
1299
|
}
|
|
1300
1300
|
return rxjs.of(null);
|
|
1301
1301
|
};
|
|
1302
|
-
/**
|
|
1303
|
-
* Creates a new storefront product reference.
|
|
1304
|
-
* @param storefrontId Storefront identifier.
|
|
1305
|
-
* @param tenantId (optional) Tenant identifier.
|
|
1306
|
-
* @param body (optional) Create operation parameters.
|
|
1307
|
-
* @return Success
|
|
1308
|
-
*/
|
|
1309
|
-
ProductReferencesApiClient.prototype.create = function (storefrontId, tenantId, body) {
|
|
1310
|
-
var _this = this;
|
|
1311
|
-
var url_ = this.baseUrl + "/api/storefront/v1/product-references?";
|
|
1312
|
-
if (storefrontId === undefined || storefrontId === null)
|
|
1313
|
-
throw new Error("The parameter 'storefrontId' must be defined and cannot be null.");
|
|
1314
|
-
else
|
|
1315
|
-
url_ += "storefrontId=" + encodeURIComponent("" + storefrontId) + "&";
|
|
1316
|
-
if (tenantId !== undefined && tenantId !== null)
|
|
1317
|
-
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
1318
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
1319
|
-
var content_ = JSON.stringify(body);
|
|
1320
|
-
var options_ = {
|
|
1321
|
-
body: content_,
|
|
1322
|
-
observe: "response",
|
|
1323
|
-
responseType: "blob",
|
|
1324
|
-
headers: new i1.HttpHeaders({
|
|
1325
|
-
"Content-Type": "application/json",
|
|
1326
|
-
"Accept": "application/json"
|
|
1327
|
-
})
|
|
1328
|
-
};
|
|
1329
|
-
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
1330
|
-
return _this.http.request("post", url_, transformedOptions_);
|
|
1331
|
-
})).pipe(operators.mergeMap(function (response_) {
|
|
1332
|
-
return _this.transformResult(url_, response_, function (r) { return _this.processCreate(r); });
|
|
1333
|
-
})).pipe(operators.catchError(function (response_) {
|
|
1334
|
-
if (response_ instanceof i1.HttpResponseBase) {
|
|
1335
|
-
try {
|
|
1336
|
-
return _this.transformResult(url_, response_, function (r) { return _this.processCreate(r); });
|
|
1337
|
-
}
|
|
1338
|
-
catch (e) {
|
|
1339
|
-
return rxjs.throwError(e);
|
|
1340
|
-
}
|
|
1341
|
-
}
|
|
1342
|
-
else
|
|
1343
|
-
return rxjs.throwError(response_);
|
|
1344
|
-
}));
|
|
1345
|
-
};
|
|
1346
|
-
ProductReferencesApiClient.prototype.processCreate = function (response) {
|
|
1347
|
-
var e_10, _a;
|
|
1348
|
-
var _this = this;
|
|
1349
|
-
var status = response.status;
|
|
1350
|
-
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
1351
|
-
response.error instanceof Blob ? response.error : undefined;
|
|
1352
|
-
var _headers = {};
|
|
1353
|
-
if (response.headers) {
|
|
1354
|
-
try {
|
|
1355
|
-
for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
1356
|
-
var key = _c.value;
|
|
1357
|
-
_headers[key] = response.headers.get(key);
|
|
1358
|
-
}
|
|
1359
|
-
}
|
|
1360
|
-
catch (e_10_1) { e_10 = { error: e_10_1 }; }
|
|
1361
|
-
finally {
|
|
1362
|
-
try {
|
|
1363
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
1364
|
-
}
|
|
1365
|
-
finally { if (e_10) throw e_10.error; }
|
|
1366
|
-
}
|
|
1367
|
-
}
|
|
1368
|
-
if (status === 201) {
|
|
1369
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
1370
|
-
var result201 = null;
|
|
1371
|
-
result201 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
1372
|
-
return rxjs.of(result201);
|
|
1373
|
-
}));
|
|
1374
|
-
}
|
|
1375
|
-
else if (status === 404) {
|
|
1376
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
1377
|
-
var result404 = null;
|
|
1378
|
-
result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
1379
|
-
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
1380
|
-
}));
|
|
1381
|
-
}
|
|
1382
|
-
else if (status === 409) {
|
|
1383
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
1384
|
-
var result409 = null;
|
|
1385
|
-
result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
1386
|
-
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
1387
|
-
}));
|
|
1388
|
-
}
|
|
1389
|
-
else if (status === 401) {
|
|
1390
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
1391
|
-
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1392
|
-
}));
|
|
1393
|
-
}
|
|
1394
|
-
else if (status === 403) {
|
|
1395
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
1396
|
-
return throwException("Forbidden", status, _responseText, _headers);
|
|
1397
|
-
}));
|
|
1398
|
-
}
|
|
1399
|
-
else if (status !== 200 && status !== 204) {
|
|
1400
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
1401
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1402
|
-
}));
|
|
1403
|
-
}
|
|
1404
|
-
return rxjs.of(null);
|
|
1405
|
-
};
|
|
1406
1302
|
/**
|
|
1407
1303
|
* Returns a list of product specifications associated with storefront product references relevant to the specified query parameters.
|
|
1408
1304
|
* @param storefrontId Storefront identifier.
|
|
@@ -1478,7 +1374,7 @@
|
|
|
1478
1374
|
}));
|
|
1479
1375
|
};
|
|
1480
1376
|
ProductReferencesApiClient.prototype.processGetAllProductSpecifications = function (response) {
|
|
1481
|
-
var
|
|
1377
|
+
var e_10, _a;
|
|
1482
1378
|
var _this = this;
|
|
1483
1379
|
var status = response.status;
|
|
1484
1380
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -1491,12 +1387,12 @@
|
|
|
1491
1387
|
_headers[key] = response.headers.get(key);
|
|
1492
1388
|
}
|
|
1493
1389
|
}
|
|
1494
|
-
catch (
|
|
1390
|
+
catch (e_10_1) { e_10 = { error: e_10_1 }; }
|
|
1495
1391
|
finally {
|
|
1496
1392
|
try {
|
|
1497
1393
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
1498
1394
|
}
|
|
1499
|
-
finally { if (
|
|
1395
|
+
finally { if (e_10) throw e_10.error; }
|
|
1500
1396
|
}
|
|
1501
1397
|
}
|
|
1502
1398
|
if (status === 200) {
|
|
@@ -1605,7 +1501,7 @@
|
|
|
1605
1501
|
}));
|
|
1606
1502
|
};
|
|
1607
1503
|
ProductReferencesApiClient.prototype.processGetAllProducts = function (response) {
|
|
1608
|
-
var
|
|
1504
|
+
var e_11, _a;
|
|
1609
1505
|
var _this = this;
|
|
1610
1506
|
var status = response.status;
|
|
1611
1507
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -1618,12 +1514,12 @@
|
|
|
1618
1514
|
_headers[key] = response.headers.get(key);
|
|
1619
1515
|
}
|
|
1620
1516
|
}
|
|
1621
|
-
catch (
|
|
1517
|
+
catch (e_11_1) { e_11 = { error: e_11_1 }; }
|
|
1622
1518
|
finally {
|
|
1623
1519
|
try {
|
|
1624
1520
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
1625
1521
|
}
|
|
1626
|
-
finally { if (
|
|
1522
|
+
finally { if (e_11) throw e_11.error; }
|
|
1627
1523
|
}
|
|
1628
1524
|
}
|
|
1629
1525
|
if (status === 200) {
|
|
@@ -1732,7 +1628,7 @@
|
|
|
1732
1628
|
}));
|
|
1733
1629
|
};
|
|
1734
1630
|
ProductReferencesApiClient.prototype.processGetAllProductLinks = function (response) {
|
|
1735
|
-
var
|
|
1631
|
+
var e_12, _a;
|
|
1736
1632
|
var _this = this;
|
|
1737
1633
|
var status = response.status;
|
|
1738
1634
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -1745,12 +1641,12 @@
|
|
|
1745
1641
|
_headers[key] = response.headers.get(key);
|
|
1746
1642
|
}
|
|
1747
1643
|
}
|
|
1748
|
-
catch (
|
|
1644
|
+
catch (e_12_1) { e_12 = { error: e_12_1 }; }
|
|
1749
1645
|
finally {
|
|
1750
1646
|
try {
|
|
1751
1647
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
1752
1648
|
}
|
|
1753
|
-
finally { if (
|
|
1649
|
+
finally { if (e_12) throw e_12.error; }
|
|
1754
1650
|
}
|
|
1755
1651
|
}
|
|
1756
1652
|
if (status === 200) {
|
|
@@ -1829,7 +1725,7 @@
|
|
|
1829
1725
|
}));
|
|
1830
1726
|
};
|
|
1831
1727
|
ProductReferencesApiClient.prototype.processGet = function (response) {
|
|
1832
|
-
var
|
|
1728
|
+
var e_13, _a;
|
|
1833
1729
|
var _this = this;
|
|
1834
1730
|
var status = response.status;
|
|
1835
1731
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -1842,12 +1738,12 @@
|
|
|
1842
1738
|
_headers[key] = response.headers.get(key);
|
|
1843
1739
|
}
|
|
1844
1740
|
}
|
|
1845
|
-
catch (
|
|
1741
|
+
catch (e_13_1) { e_13 = { error: e_13_1 }; }
|
|
1846
1742
|
finally {
|
|
1847
1743
|
try {
|
|
1848
1744
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
1849
1745
|
}
|
|
1850
|
-
finally { if (
|
|
1746
|
+
finally { if (e_13) throw e_13.error; }
|
|
1851
1747
|
}
|
|
1852
1748
|
}
|
|
1853
1749
|
if (status === 200) {
|
|
@@ -1888,110 +1784,6 @@
|
|
|
1888
1784
|
}
|
|
1889
1785
|
return rxjs.of(null);
|
|
1890
1786
|
};
|
|
1891
|
-
/**
|
|
1892
|
-
* Deletes the storefront product reference.
|
|
1893
|
-
* @param reference Product reference - external reference to Customer's Canvas product specification, e.g online store product identifier.
|
|
1894
|
-
* @param storefrontId Storefront identifier.
|
|
1895
|
-
* @param tenantId (optional) Tenant identifier.
|
|
1896
|
-
* @return Success
|
|
1897
|
-
*/
|
|
1898
|
-
ProductReferencesApiClient.prototype.delete = function (reference, storefrontId, tenantId) {
|
|
1899
|
-
var _this = this;
|
|
1900
|
-
var url_ = this.baseUrl + "/api/storefront/v1/product-references/{reference}?";
|
|
1901
|
-
if (reference === undefined || reference === null)
|
|
1902
|
-
throw new Error("The parameter 'reference' must be defined.");
|
|
1903
|
-
url_ = url_.replace("{reference}", encodeURIComponent("" + reference));
|
|
1904
|
-
if (storefrontId === undefined || storefrontId === null)
|
|
1905
|
-
throw new Error("The parameter 'storefrontId' must be defined and cannot be null.");
|
|
1906
|
-
else
|
|
1907
|
-
url_ += "storefrontId=" + encodeURIComponent("" + storefrontId) + "&";
|
|
1908
|
-
if (tenantId !== undefined && tenantId !== null)
|
|
1909
|
-
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
1910
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
1911
|
-
var options_ = {
|
|
1912
|
-
observe: "response",
|
|
1913
|
-
responseType: "blob",
|
|
1914
|
-
headers: new i1.HttpHeaders({
|
|
1915
|
-
"Accept": "application/json"
|
|
1916
|
-
})
|
|
1917
|
-
};
|
|
1918
|
-
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
1919
|
-
return _this.http.request("delete", url_, transformedOptions_);
|
|
1920
|
-
})).pipe(operators.mergeMap(function (response_) {
|
|
1921
|
-
return _this.transformResult(url_, response_, function (r) { return _this.processDelete(r); });
|
|
1922
|
-
})).pipe(operators.catchError(function (response_) {
|
|
1923
|
-
if (response_ instanceof i1.HttpResponseBase) {
|
|
1924
|
-
try {
|
|
1925
|
-
return _this.transformResult(url_, response_, function (r) { return _this.processDelete(r); });
|
|
1926
|
-
}
|
|
1927
|
-
catch (e) {
|
|
1928
|
-
return rxjs.throwError(e);
|
|
1929
|
-
}
|
|
1930
|
-
}
|
|
1931
|
-
else
|
|
1932
|
-
return rxjs.throwError(response_);
|
|
1933
|
-
}));
|
|
1934
|
-
};
|
|
1935
|
-
ProductReferencesApiClient.prototype.processDelete = function (response) {
|
|
1936
|
-
var e_15, _a;
|
|
1937
|
-
var _this = this;
|
|
1938
|
-
var status = response.status;
|
|
1939
|
-
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
1940
|
-
response.error instanceof Blob ? response.error : undefined;
|
|
1941
|
-
var _headers = {};
|
|
1942
|
-
if (response.headers) {
|
|
1943
|
-
try {
|
|
1944
|
-
for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
1945
|
-
var key = _c.value;
|
|
1946
|
-
_headers[key] = response.headers.get(key);
|
|
1947
|
-
}
|
|
1948
|
-
}
|
|
1949
|
-
catch (e_15_1) { e_15 = { error: e_15_1 }; }
|
|
1950
|
-
finally {
|
|
1951
|
-
try {
|
|
1952
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
1953
|
-
}
|
|
1954
|
-
finally { if (e_15) throw e_15.error; }
|
|
1955
|
-
}
|
|
1956
|
-
}
|
|
1957
|
-
if (status === 200) {
|
|
1958
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
1959
|
-
var result200 = null;
|
|
1960
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
1961
|
-
return rxjs.of(result200);
|
|
1962
|
-
}));
|
|
1963
|
-
}
|
|
1964
|
-
else if (status === 404) {
|
|
1965
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
1966
|
-
var result404 = null;
|
|
1967
|
-
result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
1968
|
-
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
1969
|
-
}));
|
|
1970
|
-
}
|
|
1971
|
-
else if (status === 409) {
|
|
1972
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
1973
|
-
var result409 = null;
|
|
1974
|
-
result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
1975
|
-
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
1976
|
-
}));
|
|
1977
|
-
}
|
|
1978
|
-
else if (status === 401) {
|
|
1979
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
1980
|
-
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1981
|
-
}));
|
|
1982
|
-
}
|
|
1983
|
-
else if (status === 403) {
|
|
1984
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
1985
|
-
return throwException("Forbidden", status, _responseText, _headers);
|
|
1986
|
-
}));
|
|
1987
|
-
}
|
|
1988
|
-
else if (status !== 200 && status !== 204) {
|
|
1989
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
1990
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1991
|
-
}));
|
|
1992
|
-
}
|
|
1993
|
-
return rxjs.of(null);
|
|
1994
|
-
};
|
|
1995
1787
|
/**
|
|
1996
1788
|
* Returns a product specification by the storefront product reference.
|
|
1997
1789
|
* @param reference Product reference - external reference to Customer's Canvas product, e.g online store product identifier.
|
|
@@ -2037,7 +1829,7 @@
|
|
|
2037
1829
|
}));
|
|
2038
1830
|
};
|
|
2039
1831
|
ProductReferencesApiClient.prototype.processGetProductSpecification = function (response) {
|
|
2040
|
-
var
|
|
1832
|
+
var e_14, _a;
|
|
2041
1833
|
var _this = this;
|
|
2042
1834
|
var status = response.status;
|
|
2043
1835
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -2050,12 +1842,12 @@
|
|
|
2050
1842
|
_headers[key] = response.headers.get(key);
|
|
2051
1843
|
}
|
|
2052
1844
|
}
|
|
2053
|
-
catch (
|
|
1845
|
+
catch (e_14_1) { e_14 = { error: e_14_1 }; }
|
|
2054
1846
|
finally {
|
|
2055
1847
|
try {
|
|
2056
1848
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
2057
1849
|
}
|
|
2058
|
-
finally { if (
|
|
1850
|
+
finally { if (e_14) throw e_14.error; }
|
|
2059
1851
|
}
|
|
2060
1852
|
}
|
|
2061
1853
|
if (status === 200) {
|
|
@@ -2141,7 +1933,7 @@
|
|
|
2141
1933
|
}));
|
|
2142
1934
|
};
|
|
2143
1935
|
ProductReferencesApiClient.prototype.processGetProduct = function (response) {
|
|
2144
|
-
var
|
|
1936
|
+
var e_15, _a;
|
|
2145
1937
|
var _this = this;
|
|
2146
1938
|
var status = response.status;
|
|
2147
1939
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -2154,12 +1946,12 @@
|
|
|
2154
1946
|
_headers[key] = response.headers.get(key);
|
|
2155
1947
|
}
|
|
2156
1948
|
}
|
|
2157
|
-
catch (
|
|
1949
|
+
catch (e_15_1) { e_15 = { error: e_15_1 }; }
|
|
2158
1950
|
finally {
|
|
2159
1951
|
try {
|
|
2160
1952
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
2161
1953
|
}
|
|
2162
|
-
finally { if (
|
|
1954
|
+
finally { if (e_15) throw e_15.error; }
|
|
2163
1955
|
}
|
|
2164
1956
|
}
|
|
2165
1957
|
if (status === 200) {
|
|
@@ -2251,7 +2043,7 @@
|
|
|
2251
2043
|
}));
|
|
2252
2044
|
};
|
|
2253
2045
|
ProductReferencesApiClient.prototype.processGetProductSummary = function (response) {
|
|
2254
|
-
var
|
|
2046
|
+
var e_16, _a;
|
|
2255
2047
|
var _this = this;
|
|
2256
2048
|
var status = response.status;
|
|
2257
2049
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -2264,12 +2056,12 @@
|
|
|
2264
2056
|
_headers[key] = response.headers.get(key);
|
|
2265
2057
|
}
|
|
2266
2058
|
}
|
|
2267
|
-
catch (
|
|
2059
|
+
catch (e_16_1) { e_16 = { error: e_16_1 }; }
|
|
2268
2060
|
finally {
|
|
2269
2061
|
try {
|
|
2270
2062
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
2271
2063
|
}
|
|
2272
|
-
finally { if (
|
|
2064
|
+
finally { if (e_16) throw e_16.error; }
|
|
2273
2065
|
}
|
|
2274
2066
|
}
|
|
2275
2067
|
if (status === 200) {
|
|
@@ -2355,7 +2147,7 @@
|
|
|
2355
2147
|
}));
|
|
2356
2148
|
};
|
|
2357
2149
|
ProductReferencesApiClient.prototype.processGetProductLink = function (response) {
|
|
2358
|
-
var
|
|
2150
|
+
var e_17, _a;
|
|
2359
2151
|
var _this = this;
|
|
2360
2152
|
var status = response.status;
|
|
2361
2153
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -2368,12 +2160,12 @@
|
|
|
2368
2160
|
_headers[key] = response.headers.get(key);
|
|
2369
2161
|
}
|
|
2370
2162
|
}
|
|
2371
|
-
catch (
|
|
2163
|
+
catch (e_17_1) { e_17 = { error: e_17_1 }; }
|
|
2372
2164
|
finally {
|
|
2373
2165
|
try {
|
|
2374
2166
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
2375
2167
|
}
|
|
2376
|
-
finally { if (
|
|
2168
|
+
finally { if (e_17) throw e_17.error; }
|
|
2377
2169
|
}
|
|
2378
2170
|
}
|
|
2379
2171
|
if (status === 200) {
|
|
@@ -2475,7 +2267,7 @@
|
|
|
2475
2267
|
}));
|
|
2476
2268
|
};
|
|
2477
2269
|
ProductReferencesApiClient.prototype.processGetProductCostDetails = function (response) {
|
|
2478
|
-
var
|
|
2270
|
+
var e_18, _a;
|
|
2479
2271
|
var _this = this;
|
|
2480
2272
|
var status = response.status;
|
|
2481
2273
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -2488,12 +2280,12 @@
|
|
|
2488
2280
|
_headers[key] = response.headers.get(key);
|
|
2489
2281
|
}
|
|
2490
2282
|
}
|
|
2491
|
-
catch (
|
|
2283
|
+
catch (e_18_1) { e_18 = { error: e_18_1 }; }
|
|
2492
2284
|
finally {
|
|
2493
2285
|
try {
|
|
2494
2286
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
2495
2287
|
}
|
|
2496
|
-
finally { if (
|
|
2288
|
+
finally { if (e_18) throw e_18.error; }
|
|
2497
2289
|
}
|
|
2498
2290
|
}
|
|
2499
2291
|
if (status === 200) {
|
|
@@ -2579,7 +2371,7 @@
|
|
|
2579
2371
|
}));
|
|
2580
2372
|
};
|
|
2581
2373
|
ProductReferencesApiClient.prototype.processGetPersonalizationWorkflow = function (response) {
|
|
2582
|
-
var
|
|
2374
|
+
var e_19, _a;
|
|
2583
2375
|
var _this = this;
|
|
2584
2376
|
var status = response.status;
|
|
2585
2377
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -2592,12 +2384,12 @@
|
|
|
2592
2384
|
_headers[key] = response.headers.get(key);
|
|
2593
2385
|
}
|
|
2594
2386
|
}
|
|
2595
|
-
catch (
|
|
2387
|
+
catch (e_19_1) { e_19 = { error: e_19_1 }; }
|
|
2596
2388
|
finally {
|
|
2597
2389
|
try {
|
|
2598
2390
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
2599
2391
|
}
|
|
2600
|
-
finally { if (
|
|
2392
|
+
finally { if (e_19) throw e_19.error; }
|
|
2601
2393
|
}
|
|
2602
2394
|
}
|
|
2603
2395
|
if (status === 200) {
|
|
@@ -2638,111 +2430,6 @@
|
|
|
2638
2430
|
}
|
|
2639
2431
|
return rxjs.of(null);
|
|
2640
2432
|
};
|
|
2641
|
-
/**
|
|
2642
|
-
* Returns a product personalization workflow configuration by storefront product reference.
|
|
2643
|
-
* @param reference An external reference to Customer's Canvas product, e.g online store product identifier.
|
|
2644
|
-
* @param storefrontId Storefront identifier.
|
|
2645
|
-
* @param tenantId (optional) Tenant identifier.
|
|
2646
|
-
* @return Success
|
|
2647
|
-
* @deprecated
|
|
2648
|
-
*/
|
|
2649
|
-
ProductReferencesApiClient.prototype.getProductConfig = function (reference, storefrontId, tenantId) {
|
|
2650
|
-
var _this = this;
|
|
2651
|
-
var url_ = this.baseUrl + "/api/storefront/v1/product-references/{reference}/product-config?";
|
|
2652
|
-
if (reference === undefined || reference === null)
|
|
2653
|
-
throw new Error("The parameter 'reference' must be defined.");
|
|
2654
|
-
url_ = url_.replace("{reference}", encodeURIComponent("" + reference));
|
|
2655
|
-
if (storefrontId === undefined || storefrontId === null)
|
|
2656
|
-
throw new Error("The parameter 'storefrontId' must be defined and cannot be null.");
|
|
2657
|
-
else
|
|
2658
|
-
url_ += "storefrontId=" + encodeURIComponent("" + storefrontId) + "&";
|
|
2659
|
-
if (tenantId !== undefined && tenantId !== null)
|
|
2660
|
-
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
2661
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
2662
|
-
var options_ = {
|
|
2663
|
-
observe: "response",
|
|
2664
|
-
responseType: "blob",
|
|
2665
|
-
headers: new i1.HttpHeaders({
|
|
2666
|
-
"Accept": "text/plain"
|
|
2667
|
-
})
|
|
2668
|
-
};
|
|
2669
|
-
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
2670
|
-
return _this.http.request("get", url_, transformedOptions_);
|
|
2671
|
-
})).pipe(operators.mergeMap(function (response_) {
|
|
2672
|
-
return _this.transformResult(url_, response_, function (r) { return _this.processGetProductConfig(r); });
|
|
2673
|
-
})).pipe(operators.catchError(function (response_) {
|
|
2674
|
-
if (response_ instanceof i1.HttpResponseBase) {
|
|
2675
|
-
try {
|
|
2676
|
-
return _this.transformResult(url_, response_, function (r) { return _this.processGetProductConfig(r); });
|
|
2677
|
-
}
|
|
2678
|
-
catch (e) {
|
|
2679
|
-
return rxjs.throwError(e);
|
|
2680
|
-
}
|
|
2681
|
-
}
|
|
2682
|
-
else
|
|
2683
|
-
return rxjs.throwError(response_);
|
|
2684
|
-
}));
|
|
2685
|
-
};
|
|
2686
|
-
ProductReferencesApiClient.prototype.processGetProductConfig = function (response) {
|
|
2687
|
-
var e_22, _a;
|
|
2688
|
-
var _this = this;
|
|
2689
|
-
var status = response.status;
|
|
2690
|
-
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
2691
|
-
response.error instanceof Blob ? response.error : undefined;
|
|
2692
|
-
var _headers = {};
|
|
2693
|
-
if (response.headers) {
|
|
2694
|
-
try {
|
|
2695
|
-
for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
2696
|
-
var key = _c.value;
|
|
2697
|
-
_headers[key] = response.headers.get(key);
|
|
2698
|
-
}
|
|
2699
|
-
}
|
|
2700
|
-
catch (e_22_1) { e_22 = { error: e_22_1 }; }
|
|
2701
|
-
finally {
|
|
2702
|
-
try {
|
|
2703
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
2704
|
-
}
|
|
2705
|
-
finally { if (e_22) throw e_22.error; }
|
|
2706
|
-
}
|
|
2707
|
-
}
|
|
2708
|
-
if (status === 200) {
|
|
2709
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
2710
|
-
var result200 = null;
|
|
2711
|
-
result200 = _responseText === "" ? null : _responseText;
|
|
2712
|
-
return rxjs.of(result200);
|
|
2713
|
-
}));
|
|
2714
|
-
}
|
|
2715
|
-
else if (status === 404) {
|
|
2716
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
2717
|
-
var result404 = null;
|
|
2718
|
-
result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
2719
|
-
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
2720
|
-
}));
|
|
2721
|
-
}
|
|
2722
|
-
else if (status === 409) {
|
|
2723
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
2724
|
-
var result409 = null;
|
|
2725
|
-
result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
2726
|
-
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
2727
|
-
}));
|
|
2728
|
-
}
|
|
2729
|
-
else if (status === 401) {
|
|
2730
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
2731
|
-
return throwException("Unauthorized", status, _responseText, _headers);
|
|
2732
|
-
}));
|
|
2733
|
-
}
|
|
2734
|
-
else if (status === 403) {
|
|
2735
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
2736
|
-
return throwException("Forbidden", status, _responseText, _headers);
|
|
2737
|
-
}));
|
|
2738
|
-
}
|
|
2739
|
-
else if (status !== 200 && status !== 204) {
|
|
2740
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
2741
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
2742
|
-
}));
|
|
2743
|
-
}
|
|
2744
|
-
return rxjs.of(null);
|
|
2745
|
-
};
|
|
2746
2433
|
return ProductReferencesApiClient;
|
|
2747
2434
|
}(ApiClientBase));
|
|
2748
2435
|
ProductReferencesApiClient.ɵprov = i0.ɵɵdefineInjectable({ factory: function ProductReferencesApiClient_Factory() { return new ProductReferencesApiClient(i0.ɵɵinject(ApiClientConfiguration), i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(API_BASE_URL, 8)); }, token: ProductReferencesApiClient, providedIn: "root" });
|
|
@@ -2822,7 +2509,7 @@
|
|
|
2822
2509
|
}));
|
|
2823
2510
|
};
|
|
2824
2511
|
ProductsApiClient.prototype.processGetAllProducts = function (response) {
|
|
2825
|
-
var
|
|
2512
|
+
var e_20, _a;
|
|
2826
2513
|
var _this = this;
|
|
2827
2514
|
var status = response.status;
|
|
2828
2515
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -2835,12 +2522,12 @@
|
|
|
2835
2522
|
_headers[key] = response.headers.get(key);
|
|
2836
2523
|
}
|
|
2837
2524
|
}
|
|
2838
|
-
catch (
|
|
2525
|
+
catch (e_20_1) { e_20 = { error: e_20_1 }; }
|
|
2839
2526
|
finally {
|
|
2840
2527
|
try {
|
|
2841
2528
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
2842
2529
|
}
|
|
2843
|
-
finally { if (
|
|
2530
|
+
finally { if (e_20) throw e_20.error; }
|
|
2844
2531
|
}
|
|
2845
2532
|
}
|
|
2846
2533
|
if (status === 200) {
|
|
@@ -2910,7 +2597,7 @@
|
|
|
2910
2597
|
}));
|
|
2911
2598
|
};
|
|
2912
2599
|
ProductsApiClient.prototype.processGetProduct = function (response) {
|
|
2913
|
-
var
|
|
2600
|
+
var e_21, _a;
|
|
2914
2601
|
var _this = this;
|
|
2915
2602
|
var status = response.status;
|
|
2916
2603
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -2923,12 +2610,12 @@
|
|
|
2923
2610
|
_headers[key] = response.headers.get(key);
|
|
2924
2611
|
}
|
|
2925
2612
|
}
|
|
2926
|
-
catch (
|
|
2613
|
+
catch (e_21_1) { e_21 = { error: e_21_1 }; }
|
|
2927
2614
|
finally {
|
|
2928
2615
|
try {
|
|
2929
2616
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
2930
2617
|
}
|
|
2931
|
-
finally { if (
|
|
2618
|
+
finally { if (e_21) throw e_21.error; }
|
|
2932
2619
|
}
|
|
2933
2620
|
}
|
|
2934
2621
|
if (status === 200) {
|
|
@@ -3021,7 +2708,7 @@
|
|
|
3021
2708
|
}));
|
|
3022
2709
|
};
|
|
3023
2710
|
ProductsApiClient.prototype.processGetProductSummary = function (response) {
|
|
3024
|
-
var
|
|
2711
|
+
var e_22, _a;
|
|
3025
2712
|
var _this = this;
|
|
3026
2713
|
var status = response.status;
|
|
3027
2714
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -3034,12 +2721,12 @@
|
|
|
3034
2721
|
_headers[key] = response.headers.get(key);
|
|
3035
2722
|
}
|
|
3036
2723
|
}
|
|
3037
|
-
catch (
|
|
2724
|
+
catch (e_22_1) { e_22 = { error: e_22_1 }; }
|
|
3038
2725
|
finally {
|
|
3039
2726
|
try {
|
|
3040
2727
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
3041
2728
|
}
|
|
3042
|
-
finally { if (
|
|
2729
|
+
finally { if (e_22) throw e_22.error; }
|
|
3043
2730
|
}
|
|
3044
2731
|
}
|
|
3045
2732
|
if (status === 200) {
|
|
@@ -3123,7 +2810,7 @@
|
|
|
3123
2810
|
}));
|
|
3124
2811
|
};
|
|
3125
2812
|
ProductsApiClient.prototype.processGetProductOptions = function (response) {
|
|
3126
|
-
var
|
|
2813
|
+
var e_23, _a;
|
|
3127
2814
|
var _this = this;
|
|
3128
2815
|
var status = response.status;
|
|
3129
2816
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -3136,12 +2823,12 @@
|
|
|
3136
2823
|
_headers[key] = response.headers.get(key);
|
|
3137
2824
|
}
|
|
3138
2825
|
}
|
|
3139
|
-
catch (
|
|
2826
|
+
catch (e_23_1) { e_23 = { error: e_23_1 }; }
|
|
3140
2827
|
finally {
|
|
3141
2828
|
try {
|
|
3142
2829
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
3143
2830
|
}
|
|
3144
|
-
finally { if (
|
|
2831
|
+
finally { if (e_23) throw e_23.error; }
|
|
3145
2832
|
}
|
|
3146
2833
|
}
|
|
3147
2834
|
if (status === 200) {
|
|
@@ -3218,7 +2905,7 @@
|
|
|
3218
2905
|
}));
|
|
3219
2906
|
};
|
|
3220
2907
|
ProductsApiClient.prototype.processGetAllProductOptions = function (response) {
|
|
3221
|
-
var
|
|
2908
|
+
var e_24, _a;
|
|
3222
2909
|
var _this = this;
|
|
3223
2910
|
var status = response.status;
|
|
3224
2911
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -3231,12 +2918,12 @@
|
|
|
3231
2918
|
_headers[key] = response.headers.get(key);
|
|
3232
2919
|
}
|
|
3233
2920
|
}
|
|
3234
|
-
catch (
|
|
2921
|
+
catch (e_24_1) { e_24 = { error: e_24_1 }; }
|
|
3235
2922
|
finally {
|
|
3236
2923
|
try {
|
|
3237
2924
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
3238
2925
|
}
|
|
3239
|
-
finally { if (
|
|
2926
|
+
finally { if (e_24) throw e_24.error; }
|
|
3240
2927
|
}
|
|
3241
2928
|
}
|
|
3242
2929
|
if (status === 200) {
|
|
@@ -3318,7 +3005,7 @@
|
|
|
3318
3005
|
}));
|
|
3319
3006
|
};
|
|
3320
3007
|
ProductsApiClient.prototype.processGetProductLinks = function (response) {
|
|
3321
|
-
var
|
|
3008
|
+
var e_25, _a;
|
|
3322
3009
|
var _this = this;
|
|
3323
3010
|
var status = response.status;
|
|
3324
3011
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -3331,12 +3018,12 @@
|
|
|
3331
3018
|
_headers[key] = response.headers.get(key);
|
|
3332
3019
|
}
|
|
3333
3020
|
}
|
|
3334
|
-
catch (
|
|
3021
|
+
catch (e_25_1) { e_25 = { error: e_25_1 }; }
|
|
3335
3022
|
finally {
|
|
3336
3023
|
try {
|
|
3337
3024
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
3338
3025
|
}
|
|
3339
|
-
finally { if (
|
|
3026
|
+
finally { if (e_25) throw e_25.error; }
|
|
3340
3027
|
}
|
|
3341
3028
|
}
|
|
3342
3029
|
if (status === 200) {
|
|
@@ -3424,7 +3111,7 @@
|
|
|
3424
3111
|
}));
|
|
3425
3112
|
};
|
|
3426
3113
|
ProductsApiClient.prototype.processGetProductLink = function (response) {
|
|
3427
|
-
var
|
|
3114
|
+
var e_26, _a;
|
|
3428
3115
|
var _this = this;
|
|
3429
3116
|
var status = response.status;
|
|
3430
3117
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -3437,12 +3124,12 @@
|
|
|
3437
3124
|
_headers[key] = response.headers.get(key);
|
|
3438
3125
|
}
|
|
3439
3126
|
}
|
|
3440
|
-
catch (
|
|
3127
|
+
catch (e_26_1) { e_26 = { error: e_26_1 }; }
|
|
3441
3128
|
finally {
|
|
3442
3129
|
try {
|
|
3443
3130
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
3444
3131
|
}
|
|
3445
|
-
finally { if (
|
|
3132
|
+
finally { if (e_26) throw e_26.error; }
|
|
3446
3133
|
}
|
|
3447
3134
|
}
|
|
3448
3135
|
if (status === 200) {
|
|
@@ -3544,7 +3231,7 @@
|
|
|
3544
3231
|
}));
|
|
3545
3232
|
};
|
|
3546
3233
|
ProductsApiClient.prototype.processGetProductVariants = function (response) {
|
|
3547
|
-
var
|
|
3234
|
+
var e_27, _a;
|
|
3548
3235
|
var _this = this;
|
|
3549
3236
|
var status = response.status;
|
|
3550
3237
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -3557,12 +3244,12 @@
|
|
|
3557
3244
|
_headers[key] = response.headers.get(key);
|
|
3558
3245
|
}
|
|
3559
3246
|
}
|
|
3560
|
-
catch (
|
|
3247
|
+
catch (e_27_1) { e_27 = { error: e_27_1 }; }
|
|
3561
3248
|
finally {
|
|
3562
3249
|
try {
|
|
3563
3250
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
3564
3251
|
}
|
|
3565
|
-
finally { if (
|
|
3252
|
+
finally { if (e_27) throw e_27.error; }
|
|
3566
3253
|
}
|
|
3567
3254
|
}
|
|
3568
3255
|
if (status === 200) {
|
|
@@ -3650,7 +3337,7 @@
|
|
|
3650
3337
|
}));
|
|
3651
3338
|
};
|
|
3652
3339
|
ProductsApiClient.prototype.processGetProductVariant = function (response) {
|
|
3653
|
-
var
|
|
3340
|
+
var e_28, _a;
|
|
3654
3341
|
var _this = this;
|
|
3655
3342
|
var status = response.status;
|
|
3656
3343
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -3663,12 +3350,12 @@
|
|
|
3663
3350
|
_headers[key] = response.headers.get(key);
|
|
3664
3351
|
}
|
|
3665
3352
|
}
|
|
3666
|
-
catch (
|
|
3353
|
+
catch (e_28_1) { e_28 = { error: e_28_1 }; }
|
|
3667
3354
|
finally {
|
|
3668
3355
|
try {
|
|
3669
3356
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
3670
3357
|
}
|
|
3671
|
-
finally { if (
|
|
3358
|
+
finally { if (e_28) throw e_28.error; }
|
|
3672
3359
|
}
|
|
3673
3360
|
}
|
|
3674
3361
|
if (status === 200) {
|
|
@@ -3782,7 +3469,7 @@
|
|
|
3782
3469
|
}));
|
|
3783
3470
|
};
|
|
3784
3471
|
ProductsApiClient.prototype.processGetProductVariantDesigns = function (response) {
|
|
3785
|
-
var
|
|
3472
|
+
var e_29, _a;
|
|
3786
3473
|
var _this = this;
|
|
3787
3474
|
var status = response.status;
|
|
3788
3475
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -3795,12 +3482,12 @@
|
|
|
3795
3482
|
_headers[key] = response.headers.get(key);
|
|
3796
3483
|
}
|
|
3797
3484
|
}
|
|
3798
|
-
catch (
|
|
3485
|
+
catch (e_29_1) { e_29 = { error: e_29_1 }; }
|
|
3799
3486
|
finally {
|
|
3800
3487
|
try {
|
|
3801
3488
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
3802
3489
|
}
|
|
3803
|
-
finally { if (
|
|
3490
|
+
finally { if (e_29) throw e_29.error; }
|
|
3804
3491
|
}
|
|
3805
3492
|
}
|
|
3806
3493
|
if (status === 200) {
|
|
@@ -3914,7 +3601,7 @@
|
|
|
3914
3601
|
}));
|
|
3915
3602
|
};
|
|
3916
3603
|
ProductsApiClient.prototype.processGetProductVariantMockups = function (response) {
|
|
3917
|
-
var
|
|
3604
|
+
var e_30, _a;
|
|
3918
3605
|
var _this = this;
|
|
3919
3606
|
var status = response.status;
|
|
3920
3607
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -3927,12 +3614,12 @@
|
|
|
3927
3614
|
_headers[key] = response.headers.get(key);
|
|
3928
3615
|
}
|
|
3929
3616
|
}
|
|
3930
|
-
catch (
|
|
3617
|
+
catch (e_30_1) { e_30 = { error: e_30_1 }; }
|
|
3931
3618
|
finally {
|
|
3932
3619
|
try {
|
|
3933
3620
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
3934
3621
|
}
|
|
3935
|
-
finally { if (
|
|
3622
|
+
finally { if (e_30) throw e_30.error; }
|
|
3936
3623
|
}
|
|
3937
3624
|
}
|
|
3938
3625
|
if (status === 200) {
|
|
@@ -4046,7 +3733,7 @@
|
|
|
4046
3733
|
}));
|
|
4047
3734
|
};
|
|
4048
3735
|
ProductsApiClient.prototype.processGetProductVariantDocuments = function (response) {
|
|
4049
|
-
var
|
|
3736
|
+
var e_31, _a;
|
|
4050
3737
|
var _this = this;
|
|
4051
3738
|
var status = response.status;
|
|
4052
3739
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4059,12 +3746,12 @@
|
|
|
4059
3746
|
_headers[key] = response.headers.get(key);
|
|
4060
3747
|
}
|
|
4061
3748
|
}
|
|
4062
|
-
catch (
|
|
3749
|
+
catch (e_31_1) { e_31 = { error: e_31_1 }; }
|
|
4063
3750
|
finally {
|
|
4064
3751
|
try {
|
|
4065
3752
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4066
3753
|
}
|
|
4067
|
-
finally { if (
|
|
3754
|
+
finally { if (e_31) throw e_31.error; }
|
|
4068
3755
|
}
|
|
4069
3756
|
}
|
|
4070
3757
|
if (status === 200) {
|
|
@@ -4146,7 +3833,7 @@
|
|
|
4146
3833
|
}));
|
|
4147
3834
|
};
|
|
4148
3835
|
ProductsApiClient.prototype.processUpdateProductVariantResources = function (response) {
|
|
4149
|
-
var
|
|
3836
|
+
var e_32, _a;
|
|
4150
3837
|
var _this = this;
|
|
4151
3838
|
var status = response.status;
|
|
4152
3839
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4159,12 +3846,12 @@
|
|
|
4159
3846
|
_headers[key] = response.headers.get(key);
|
|
4160
3847
|
}
|
|
4161
3848
|
}
|
|
4162
|
-
catch (
|
|
3849
|
+
catch (e_32_1) { e_32 = { error: e_32_1 }; }
|
|
4163
3850
|
finally {
|
|
4164
3851
|
try {
|
|
4165
3852
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4166
3853
|
}
|
|
4167
|
-
finally { if (
|
|
3854
|
+
finally { if (e_32) throw e_32.error; }
|
|
4168
3855
|
}
|
|
4169
3856
|
}
|
|
4170
3857
|
if (status === 200) {
|
|
@@ -4204,41 +3891,34 @@
|
|
|
4204
3891
|
return rxjs.of(null);
|
|
4205
3892
|
};
|
|
4206
3893
|
/**
|
|
4207
|
-
*
|
|
4208
|
-
* @param
|
|
4209
|
-
* @param productVersionId (optional) Product version identifier.
|
|
3894
|
+
* Returns a list of all available product tags.
|
|
3895
|
+
* @param search (optional) Search string for partial match.
|
|
4210
3896
|
* @param tenantId (optional) Tenant identifier.
|
|
4211
|
-
* @param body (optional) Set product variant price operation parameters.
|
|
4212
3897
|
* @return Success
|
|
4213
3898
|
*/
|
|
4214
|
-
ProductsApiClient.prototype.
|
|
3899
|
+
ProductsApiClient.prototype.getAvailableProductTags = function (search, tenantId) {
|
|
4215
3900
|
var _this = this;
|
|
4216
|
-
var url_ = this.baseUrl + "/api/storefront/v1/products/
|
|
4217
|
-
if (
|
|
4218
|
-
|
|
4219
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4220
|
-
if (productVersionId !== undefined && productVersionId !== null)
|
|
4221
|
-
url_ += "productVersionId=" + encodeURIComponent("" + productVersionId) + "&";
|
|
3901
|
+
var url_ = this.baseUrl + "/api/storefront/v1/products/available-tags?";
|
|
3902
|
+
if (search !== undefined && search !== null)
|
|
3903
|
+
url_ += "search=" + encodeURIComponent("" + search) + "&";
|
|
4222
3904
|
if (tenantId !== undefined && tenantId !== null)
|
|
4223
3905
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
4224
3906
|
url_ = url_.replace(/[?&]$/, "");
|
|
4225
|
-
var content_ = JSON.stringify(body);
|
|
4226
3907
|
var options_ = {
|
|
4227
|
-
body: content_,
|
|
4228
3908
|
observe: "response",
|
|
4229
3909
|
responseType: "blob",
|
|
4230
3910
|
headers: new i1.HttpHeaders({
|
|
4231
|
-
"
|
|
3911
|
+
"Accept": "application/json"
|
|
4232
3912
|
})
|
|
4233
3913
|
};
|
|
4234
3914
|
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
4235
|
-
return _this.http.request("
|
|
3915
|
+
return _this.http.request("get", url_, transformedOptions_);
|
|
4236
3916
|
})).pipe(operators.mergeMap(function (response_) {
|
|
4237
|
-
return _this.transformResult(url_, response_, function (r) { return _this.
|
|
3917
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processGetAvailableProductTags(r); });
|
|
4238
3918
|
})).pipe(operators.catchError(function (response_) {
|
|
4239
3919
|
if (response_ instanceof i1.HttpResponseBase) {
|
|
4240
3920
|
try {
|
|
4241
|
-
return _this.transformResult(url_, response_, function (r) { return _this.
|
|
3921
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processGetAvailableProductTags(r); });
|
|
4242
3922
|
}
|
|
4243
3923
|
catch (e) {
|
|
4244
3924
|
return rxjs.throwError(e);
|
|
@@ -4248,8 +3928,8 @@
|
|
|
4248
3928
|
return rxjs.throwError(response_);
|
|
4249
3929
|
}));
|
|
4250
3930
|
};
|
|
4251
|
-
ProductsApiClient.prototype.
|
|
4252
|
-
var
|
|
3931
|
+
ProductsApiClient.prototype.processGetAvailableProductTags = function (response) {
|
|
3932
|
+
var e_33, _a;
|
|
4253
3933
|
var _this = this;
|
|
4254
3934
|
var status = response.status;
|
|
4255
3935
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4262,31 +3942,19 @@
|
|
|
4262
3942
|
_headers[key] = response.headers.get(key);
|
|
4263
3943
|
}
|
|
4264
3944
|
}
|
|
4265
|
-
catch (
|
|
3945
|
+
catch (e_33_1) { e_33 = { error: e_33_1 }; }
|
|
4266
3946
|
finally {
|
|
4267
3947
|
try {
|
|
4268
3948
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4269
3949
|
}
|
|
4270
|
-
finally { if (
|
|
3950
|
+
finally { if (e_33) throw e_33.error; }
|
|
4271
3951
|
}
|
|
4272
3952
|
}
|
|
4273
3953
|
if (status === 200) {
|
|
4274
3954
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
else if (status === 404) {
|
|
4279
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4280
|
-
var result404 = null;
|
|
4281
|
-
result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4282
|
-
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
4283
|
-
}));
|
|
4284
|
-
}
|
|
4285
|
-
else if (status === 409) {
|
|
4286
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4287
|
-
var result409 = null;
|
|
4288
|
-
result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4289
|
-
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
3955
|
+
var result200 = null;
|
|
3956
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
3957
|
+
return rxjs.of(result200);
|
|
4290
3958
|
}));
|
|
4291
3959
|
}
|
|
4292
3960
|
else if (status === 401) {
|
|
@@ -4307,16 +3975,26 @@
|
|
|
4307
3975
|
return rxjs.of(null);
|
|
4308
3976
|
};
|
|
4309
3977
|
/**
|
|
4310
|
-
* Returns a
|
|
4311
|
-
* @param
|
|
3978
|
+
* Returns a product personalization workflow description by product identifier.
|
|
3979
|
+
* @param id Product identifier.
|
|
3980
|
+
* @param productVersionId (optional) Product version identifier.
|
|
3981
|
+
* @param productLinkId (optional) Product link identifier.
|
|
3982
|
+
* @param productFilterId (optional) Product filter identifier.
|
|
4312
3983
|
* @param tenantId (optional) Tenant identifier.
|
|
4313
3984
|
* @return Success
|
|
4314
3985
|
*/
|
|
4315
|
-
ProductsApiClient.prototype.
|
|
3986
|
+
ProductsApiClient.prototype.getPersonalizationWorkflow = function (id, productVersionId, productLinkId, productFilterId, tenantId) {
|
|
4316
3987
|
var _this = this;
|
|
4317
|
-
var url_ = this.baseUrl + "/api/storefront/v1/products/
|
|
4318
|
-
if (
|
|
4319
|
-
|
|
3988
|
+
var url_ = this.baseUrl + "/api/storefront/v1/products/{id}/personalization-workflow?";
|
|
3989
|
+
if (id === undefined || id === null)
|
|
3990
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
3991
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3992
|
+
if (productVersionId !== undefined && productVersionId !== null)
|
|
3993
|
+
url_ += "productVersionId=" + encodeURIComponent("" + productVersionId) + "&";
|
|
3994
|
+
if (productLinkId !== undefined && productLinkId !== null)
|
|
3995
|
+
url_ += "productLinkId=" + encodeURIComponent("" + productLinkId) + "&";
|
|
3996
|
+
if (productFilterId !== undefined && productFilterId !== null)
|
|
3997
|
+
url_ += "productFilterId=" + encodeURIComponent("" + productFilterId) + "&";
|
|
4320
3998
|
if (tenantId !== undefined && tenantId !== null)
|
|
4321
3999
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
4322
4000
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -4330,105 +4008,11 @@
|
|
|
4330
4008
|
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
4331
4009
|
return _this.http.request("get", url_, transformedOptions_);
|
|
4332
4010
|
})).pipe(operators.mergeMap(function (response_) {
|
|
4333
|
-
return _this.transformResult(url_, response_, function (r) { return _this.
|
|
4011
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processGetPersonalizationWorkflow(r); });
|
|
4334
4012
|
})).pipe(operators.catchError(function (response_) {
|
|
4335
4013
|
if (response_ instanceof i1.HttpResponseBase) {
|
|
4336
4014
|
try {
|
|
4337
|
-
return _this.transformResult(url_, response_, function (r) { return _this.
|
|
4338
|
-
}
|
|
4339
|
-
catch (e) {
|
|
4340
|
-
return rxjs.throwError(e);
|
|
4341
|
-
}
|
|
4342
|
-
}
|
|
4343
|
-
else
|
|
4344
|
-
return rxjs.throwError(response_);
|
|
4345
|
-
}));
|
|
4346
|
-
};
|
|
4347
|
-
ProductsApiClient.prototype.processGetAvailableProductTags = function (response) {
|
|
4348
|
-
var e_37, _a;
|
|
4349
|
-
var _this = this;
|
|
4350
|
-
var status = response.status;
|
|
4351
|
-
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
4352
|
-
response.error instanceof Blob ? response.error : undefined;
|
|
4353
|
-
var _headers = {};
|
|
4354
|
-
if (response.headers) {
|
|
4355
|
-
try {
|
|
4356
|
-
for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
4357
|
-
var key = _c.value;
|
|
4358
|
-
_headers[key] = response.headers.get(key);
|
|
4359
|
-
}
|
|
4360
|
-
}
|
|
4361
|
-
catch (e_37_1) { e_37 = { error: e_37_1 }; }
|
|
4362
|
-
finally {
|
|
4363
|
-
try {
|
|
4364
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4365
|
-
}
|
|
4366
|
-
finally { if (e_37) throw e_37.error; }
|
|
4367
|
-
}
|
|
4368
|
-
}
|
|
4369
|
-
if (status === 200) {
|
|
4370
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4371
|
-
var result200 = null;
|
|
4372
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4373
|
-
return rxjs.of(result200);
|
|
4374
|
-
}));
|
|
4375
|
-
}
|
|
4376
|
-
else if (status === 401) {
|
|
4377
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4378
|
-
return throwException("Unauthorized", status, _responseText, _headers);
|
|
4379
|
-
}));
|
|
4380
|
-
}
|
|
4381
|
-
else if (status === 403) {
|
|
4382
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4383
|
-
return throwException("Forbidden", status, _responseText, _headers);
|
|
4384
|
-
}));
|
|
4385
|
-
}
|
|
4386
|
-
else if (status !== 200 && status !== 204) {
|
|
4387
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4388
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4389
|
-
}));
|
|
4390
|
-
}
|
|
4391
|
-
return rxjs.of(null);
|
|
4392
|
-
};
|
|
4393
|
-
/**
|
|
4394
|
-
* Returns a product personalization workflow description by product identifier.
|
|
4395
|
-
* @param id Product identifier.
|
|
4396
|
-
* @param productVersionId (optional) Product version identifier.
|
|
4397
|
-
* @param productLinkId (optional) Product link identifier.
|
|
4398
|
-
* @param productFilterId (optional) Product filter identifier.
|
|
4399
|
-
* @param tenantId (optional) Tenant identifier.
|
|
4400
|
-
* @return Success
|
|
4401
|
-
*/
|
|
4402
|
-
ProductsApiClient.prototype.getPersonalizationWorkflow = function (id, productVersionId, productLinkId, productFilterId, tenantId) {
|
|
4403
|
-
var _this = this;
|
|
4404
|
-
var url_ = this.baseUrl + "/api/storefront/v1/products/{id}/personalization-workflow?";
|
|
4405
|
-
if (id === undefined || id === null)
|
|
4406
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
4407
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4408
|
-
if (productVersionId !== undefined && productVersionId !== null)
|
|
4409
|
-
url_ += "productVersionId=" + encodeURIComponent("" + productVersionId) + "&";
|
|
4410
|
-
if (productLinkId !== undefined && productLinkId !== null)
|
|
4411
|
-
url_ += "productLinkId=" + encodeURIComponent("" + productLinkId) + "&";
|
|
4412
|
-
if (productFilterId !== undefined && productFilterId !== null)
|
|
4413
|
-
url_ += "productFilterId=" + encodeURIComponent("" + productFilterId) + "&";
|
|
4414
|
-
if (tenantId !== undefined && tenantId !== null)
|
|
4415
|
-
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
4416
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
4417
|
-
var options_ = {
|
|
4418
|
-
observe: "response",
|
|
4419
|
-
responseType: "blob",
|
|
4420
|
-
headers: new i1.HttpHeaders({
|
|
4421
|
-
"Accept": "application/json"
|
|
4422
|
-
})
|
|
4423
|
-
};
|
|
4424
|
-
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
4425
|
-
return _this.http.request("get", url_, transformedOptions_);
|
|
4426
|
-
})).pipe(operators.mergeMap(function (response_) {
|
|
4427
|
-
return _this.transformResult(url_, response_, function (r) { return _this.processGetPersonalizationWorkflow(r); });
|
|
4428
|
-
})).pipe(operators.catchError(function (response_) {
|
|
4429
|
-
if (response_ instanceof i1.HttpResponseBase) {
|
|
4430
|
-
try {
|
|
4431
|
-
return _this.transformResult(url_, response_, function (r) { return _this.processGetPersonalizationWorkflow(r); });
|
|
4015
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processGetPersonalizationWorkflow(r); });
|
|
4432
4016
|
}
|
|
4433
4017
|
catch (e) {
|
|
4434
4018
|
return rxjs.throwError(e);
|
|
@@ -4439,7 +4023,7 @@
|
|
|
4439
4023
|
}));
|
|
4440
4024
|
};
|
|
4441
4025
|
ProductsApiClient.prototype.processGetPersonalizationWorkflow = function (response) {
|
|
4442
|
-
var
|
|
4026
|
+
var e_34, _a;
|
|
4443
4027
|
var _this = this;
|
|
4444
4028
|
var status = response.status;
|
|
4445
4029
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4452,12 +4036,12 @@
|
|
|
4452
4036
|
_headers[key] = response.headers.get(key);
|
|
4453
4037
|
}
|
|
4454
4038
|
}
|
|
4455
|
-
catch (
|
|
4039
|
+
catch (e_34_1) { e_34 = { error: e_34_1 }; }
|
|
4456
4040
|
finally {
|
|
4457
4041
|
try {
|
|
4458
4042
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4459
4043
|
}
|
|
4460
|
-
finally { if (
|
|
4044
|
+
finally { if (e_34) throw e_34.error; }
|
|
4461
4045
|
}
|
|
4462
4046
|
}
|
|
4463
4047
|
if (status === 200) {
|
|
@@ -4568,7 +4152,7 @@
|
|
|
4568
4152
|
}));
|
|
4569
4153
|
};
|
|
4570
4154
|
ProductSpecificationsApiClient.prototype.processGetAll = function (response) {
|
|
4571
|
-
var
|
|
4155
|
+
var e_35, _a;
|
|
4572
4156
|
var _this = this;
|
|
4573
4157
|
var status = response.status;
|
|
4574
4158
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4581,12 +4165,12 @@
|
|
|
4581
4165
|
_headers[key] = response.headers.get(key);
|
|
4582
4166
|
}
|
|
4583
4167
|
}
|
|
4584
|
-
catch (
|
|
4168
|
+
catch (e_35_1) { e_35 = { error: e_35_1 }; }
|
|
4585
4169
|
finally {
|
|
4586
4170
|
try {
|
|
4587
4171
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4588
4172
|
}
|
|
4589
|
-
finally { if (
|
|
4173
|
+
finally { if (e_35) throw e_35.error; }
|
|
4590
4174
|
}
|
|
4591
4175
|
}
|
|
4592
4176
|
if (status === 200) {
|
|
@@ -4653,7 +4237,7 @@
|
|
|
4653
4237
|
}));
|
|
4654
4238
|
};
|
|
4655
4239
|
ProductSpecificationsApiClient.prototype.processGet = function (response) {
|
|
4656
|
-
var
|
|
4240
|
+
var e_36, _a;
|
|
4657
4241
|
var _this = this;
|
|
4658
4242
|
var status = response.status;
|
|
4659
4243
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4666,12 +4250,12 @@
|
|
|
4666
4250
|
_headers[key] = response.headers.get(key);
|
|
4667
4251
|
}
|
|
4668
4252
|
}
|
|
4669
|
-
catch (
|
|
4253
|
+
catch (e_36_1) { e_36 = { error: e_36_1 }; }
|
|
4670
4254
|
finally {
|
|
4671
4255
|
try {
|
|
4672
4256
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4673
4257
|
}
|
|
4674
|
-
finally { if (
|
|
4258
|
+
finally { if (e_36) throw e_36.error; }
|
|
4675
4259
|
}
|
|
4676
4260
|
}
|
|
4677
4261
|
if (status === 200) {
|
|
@@ -4745,7 +4329,7 @@
|
|
|
4745
4329
|
}));
|
|
4746
4330
|
};
|
|
4747
4331
|
ProductSpecificationsApiClient.prototype.processGetPersonalizationWorkflow = function (response) {
|
|
4748
|
-
var
|
|
4332
|
+
var e_37, _a;
|
|
4749
4333
|
var _this = this;
|
|
4750
4334
|
var status = response.status;
|
|
4751
4335
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4758,12 +4342,12 @@
|
|
|
4758
4342
|
_headers[key] = response.headers.get(key);
|
|
4759
4343
|
}
|
|
4760
4344
|
}
|
|
4761
|
-
catch (
|
|
4345
|
+
catch (e_37_1) { e_37 = { error: e_37_1 }; }
|
|
4762
4346
|
finally {
|
|
4763
4347
|
try {
|
|
4764
4348
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4765
4349
|
}
|
|
4766
|
-
finally { if (
|
|
4350
|
+
finally { if (e_37) throw e_37.error; }
|
|
4767
4351
|
}
|
|
4768
4352
|
}
|
|
4769
4353
|
if (status === 200) {
|
|
@@ -4797,99 +4381,6 @@
|
|
|
4797
4381
|
}
|
|
4798
4382
|
return rxjs.of(null);
|
|
4799
4383
|
};
|
|
4800
|
-
/**
|
|
4801
|
-
* Returns a product personalization workflow configuration by product specification identifier.
|
|
4802
|
-
* @param id Product specification identifier.
|
|
4803
|
-
* @param tenantId (optional) Tenant identifier.
|
|
4804
|
-
* @return Success
|
|
4805
|
-
* @deprecated
|
|
4806
|
-
*/
|
|
4807
|
-
ProductSpecificationsApiClient.prototype.getConfiguration = function (id, tenantId) {
|
|
4808
|
-
var _this = this;
|
|
4809
|
-
var url_ = this.baseUrl + "/api/storefront/v1/product-specifications/{id}/config?";
|
|
4810
|
-
if (id === undefined || id === null)
|
|
4811
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
4812
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4813
|
-
if (tenantId !== undefined && tenantId !== null)
|
|
4814
|
-
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
4815
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
4816
|
-
var options_ = {
|
|
4817
|
-
observe: "response",
|
|
4818
|
-
responseType: "blob",
|
|
4819
|
-
headers: new i1.HttpHeaders({
|
|
4820
|
-
"Accept": "text/plain"
|
|
4821
|
-
})
|
|
4822
|
-
};
|
|
4823
|
-
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
4824
|
-
return _this.http.request("get", url_, transformedOptions_);
|
|
4825
|
-
})).pipe(operators.mergeMap(function (response_) {
|
|
4826
|
-
return _this.transformResult(url_, response_, function (r) { return _this.processGetConfiguration(r); });
|
|
4827
|
-
})).pipe(operators.catchError(function (response_) {
|
|
4828
|
-
if (response_ instanceof i1.HttpResponseBase) {
|
|
4829
|
-
try {
|
|
4830
|
-
return _this.transformResult(url_, response_, function (r) { return _this.processGetConfiguration(r); });
|
|
4831
|
-
}
|
|
4832
|
-
catch (e) {
|
|
4833
|
-
return rxjs.throwError(e);
|
|
4834
|
-
}
|
|
4835
|
-
}
|
|
4836
|
-
else
|
|
4837
|
-
return rxjs.throwError(response_);
|
|
4838
|
-
}));
|
|
4839
|
-
};
|
|
4840
|
-
ProductSpecificationsApiClient.prototype.processGetConfiguration = function (response) {
|
|
4841
|
-
var e_42, _a;
|
|
4842
|
-
var _this = this;
|
|
4843
|
-
var status = response.status;
|
|
4844
|
-
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
4845
|
-
response.error instanceof Blob ? response.error : undefined;
|
|
4846
|
-
var _headers = {};
|
|
4847
|
-
if (response.headers) {
|
|
4848
|
-
try {
|
|
4849
|
-
for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
4850
|
-
var key = _c.value;
|
|
4851
|
-
_headers[key] = response.headers.get(key);
|
|
4852
|
-
}
|
|
4853
|
-
}
|
|
4854
|
-
catch (e_42_1) { e_42 = { error: e_42_1 }; }
|
|
4855
|
-
finally {
|
|
4856
|
-
try {
|
|
4857
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4858
|
-
}
|
|
4859
|
-
finally { if (e_42) throw e_42.error; }
|
|
4860
|
-
}
|
|
4861
|
-
}
|
|
4862
|
-
if (status === 200) {
|
|
4863
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4864
|
-
var result200 = null;
|
|
4865
|
-
result200 = _responseText === "" ? null : _responseText;
|
|
4866
|
-
return rxjs.of(result200);
|
|
4867
|
-
}));
|
|
4868
|
-
}
|
|
4869
|
-
else if (status === 404) {
|
|
4870
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4871
|
-
var result404 = null;
|
|
4872
|
-
result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4873
|
-
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
4874
|
-
}));
|
|
4875
|
-
}
|
|
4876
|
-
else if (status === 401) {
|
|
4877
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4878
|
-
return throwException("Unauthorized", status, _responseText, _headers);
|
|
4879
|
-
}));
|
|
4880
|
-
}
|
|
4881
|
-
else if (status === 403) {
|
|
4882
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4883
|
-
return throwException("Forbidden", status, _responseText, _headers);
|
|
4884
|
-
}));
|
|
4885
|
-
}
|
|
4886
|
-
else if (status !== 200 && status !== 204) {
|
|
4887
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4888
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4889
|
-
}));
|
|
4890
|
-
}
|
|
4891
|
-
return rxjs.of(null);
|
|
4892
|
-
};
|
|
4893
4384
|
return ProductSpecificationsApiClient;
|
|
4894
4385
|
}(ApiClientBase));
|
|
4895
4386
|
ProductSpecificationsApiClient.ɵprov = i0.ɵɵdefineInjectable({ factory: function ProductSpecificationsApiClient_Factory() { return new ProductSpecificationsApiClient(i0.ɵɵinject(ApiClientConfiguration), i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(API_BASE_URL, 8)); }, token: ProductSpecificationsApiClient, providedIn: "root" });
|
|
@@ -4988,7 +4479,7 @@
|
|
|
4988
4479
|
}));
|
|
4989
4480
|
};
|
|
4990
4481
|
ProjectsApiClient.prototype.processGetAll = function (response) {
|
|
4991
|
-
var
|
|
4482
|
+
var e_38, _a;
|
|
4992
4483
|
var _this = this;
|
|
4993
4484
|
var status = response.status;
|
|
4994
4485
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -5001,12 +4492,12 @@
|
|
|
5001
4492
|
_headers[key] = response.headers.get(key);
|
|
5002
4493
|
}
|
|
5003
4494
|
}
|
|
5004
|
-
catch (
|
|
4495
|
+
catch (e_38_1) { e_38 = { error: e_38_1 }; }
|
|
5005
4496
|
finally {
|
|
5006
4497
|
try {
|
|
5007
4498
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5008
4499
|
}
|
|
5009
|
-
finally { if (
|
|
4500
|
+
finally { if (e_38) throw e_38.error; }
|
|
5010
4501
|
}
|
|
5011
4502
|
}
|
|
5012
4503
|
if (status === 200) {
|
|
@@ -5073,7 +4564,7 @@
|
|
|
5073
4564
|
}));
|
|
5074
4565
|
};
|
|
5075
4566
|
ProjectsApiClient.prototype.processGet = function (response) {
|
|
5076
|
-
var
|
|
4567
|
+
var e_39, _a;
|
|
5077
4568
|
var _this = this;
|
|
5078
4569
|
var status = response.status;
|
|
5079
4570
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -5086,12 +4577,12 @@
|
|
|
5086
4577
|
_headers[key] = response.headers.get(key);
|
|
5087
4578
|
}
|
|
5088
4579
|
}
|
|
5089
|
-
catch (
|
|
4580
|
+
catch (e_39_1) { e_39 = { error: e_39_1 }; }
|
|
5090
4581
|
finally {
|
|
5091
4582
|
try {
|
|
5092
4583
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5093
4584
|
}
|
|
5094
|
-
finally { if (
|
|
4585
|
+
finally { if (e_39) throw e_39.error; }
|
|
5095
4586
|
}
|
|
5096
4587
|
}
|
|
5097
4588
|
if (status === 200) {
|
|
@@ -5170,7 +4661,7 @@
|
|
|
5170
4661
|
}));
|
|
5171
4662
|
};
|
|
5172
4663
|
ProjectsApiClient.prototype.processDelete = function (response) {
|
|
5173
|
-
var
|
|
4664
|
+
var e_40, _a;
|
|
5174
4665
|
var _this = this;
|
|
5175
4666
|
var status = response.status;
|
|
5176
4667
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -5183,12 +4674,12 @@
|
|
|
5183
4674
|
_headers[key] = response.headers.get(key);
|
|
5184
4675
|
}
|
|
5185
4676
|
}
|
|
5186
|
-
catch (
|
|
4677
|
+
catch (e_40_1) { e_40 = { error: e_40_1 }; }
|
|
5187
4678
|
finally {
|
|
5188
4679
|
try {
|
|
5189
4680
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5190
4681
|
}
|
|
5191
|
-
finally { if (
|
|
4682
|
+
finally { if (e_40) throw e_40.error; }
|
|
5192
4683
|
}
|
|
5193
4684
|
}
|
|
5194
4685
|
if (status === 200) {
|
|
@@ -5267,7 +4758,7 @@
|
|
|
5267
4758
|
}));
|
|
5268
4759
|
};
|
|
5269
4760
|
ProjectsApiClient.prototype.processGetPreview = function (response) {
|
|
5270
|
-
var
|
|
4761
|
+
var e_41, _a;
|
|
5271
4762
|
var _this = this;
|
|
5272
4763
|
var status = response.status;
|
|
5273
4764
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -5280,12 +4771,12 @@
|
|
|
5280
4771
|
_headers[key] = response.headers.get(key);
|
|
5281
4772
|
}
|
|
5282
4773
|
}
|
|
5283
|
-
catch (
|
|
4774
|
+
catch (e_41_1) { e_41 = { error: e_41_1 }; }
|
|
5284
4775
|
finally {
|
|
5285
4776
|
try {
|
|
5286
4777
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5287
4778
|
}
|
|
5288
|
-
finally { if (
|
|
4779
|
+
finally { if (e_41) throw e_41.error; }
|
|
5289
4780
|
}
|
|
5290
4781
|
}
|
|
5291
4782
|
if (status === 200 || status === 206) {
|
|
@@ -5365,7 +4856,7 @@
|
|
|
5365
4856
|
}));
|
|
5366
4857
|
};
|
|
5367
4858
|
ProjectsApiClient.prototype.processGetPreviewUrl = function (response) {
|
|
5368
|
-
var
|
|
4859
|
+
var e_42, _a;
|
|
5369
4860
|
var _this = this;
|
|
5370
4861
|
var status = response.status;
|
|
5371
4862
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -5378,12 +4869,12 @@
|
|
|
5378
4869
|
_headers[key] = response.headers.get(key);
|
|
5379
4870
|
}
|
|
5380
4871
|
}
|
|
5381
|
-
catch (
|
|
4872
|
+
catch (e_42_1) { e_42 = { error: e_42_1 }; }
|
|
5382
4873
|
finally {
|
|
5383
4874
|
try {
|
|
5384
4875
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5385
4876
|
}
|
|
5386
|
-
finally { if (
|
|
4877
|
+
finally { if (e_42) throw e_42.error; }
|
|
5387
4878
|
}
|
|
5388
4879
|
}
|
|
5389
4880
|
if (status === 200) {
|
|
@@ -5469,7 +4960,7 @@
|
|
|
5469
4960
|
}));
|
|
5470
4961
|
};
|
|
5471
4962
|
ProjectsApiClient.prototype.processCreateWithSingleItem = function (response) {
|
|
5472
|
-
var
|
|
4963
|
+
var e_43, _a;
|
|
5473
4964
|
var _this = this;
|
|
5474
4965
|
var status = response.status;
|
|
5475
4966
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -5482,12 +4973,12 @@
|
|
|
5482
4973
|
_headers[key] = response.headers.get(key);
|
|
5483
4974
|
}
|
|
5484
4975
|
}
|
|
5485
|
-
catch (
|
|
4976
|
+
catch (e_43_1) { e_43 = { error: e_43_1 }; }
|
|
5486
4977
|
finally {
|
|
5487
4978
|
try {
|
|
5488
4979
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5489
4980
|
}
|
|
5490
|
-
finally { if (
|
|
4981
|
+
finally { if (e_43) throw e_43.error; }
|
|
5491
4982
|
}
|
|
5492
4983
|
}
|
|
5493
4984
|
if (status === 201) {
|
|
@@ -5573,7 +5064,7 @@
|
|
|
5573
5064
|
}));
|
|
5574
5065
|
};
|
|
5575
5066
|
ProjectsApiClient.prototype.processCreateWithMultipleItems = function (response) {
|
|
5576
|
-
var
|
|
5067
|
+
var e_44, _a;
|
|
5577
5068
|
var _this = this;
|
|
5578
5069
|
var status = response.status;
|
|
5579
5070
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -5586,12 +5077,12 @@
|
|
|
5586
5077
|
_headers[key] = response.headers.get(key);
|
|
5587
5078
|
}
|
|
5588
5079
|
}
|
|
5589
|
-
catch (
|
|
5080
|
+
catch (e_44_1) { e_44 = { error: e_44_1 }; }
|
|
5590
5081
|
finally {
|
|
5591
5082
|
try {
|
|
5592
5083
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5593
5084
|
}
|
|
5594
|
-
finally { if (
|
|
5085
|
+
finally { if (e_44) throw e_44.error; }
|
|
5595
5086
|
}
|
|
5596
5087
|
}
|
|
5597
5088
|
if (status === 201) {
|
|
@@ -5677,7 +5168,7 @@
|
|
|
5677
5168
|
}));
|
|
5678
5169
|
};
|
|
5679
5170
|
ProjectsApiClient.prototype.processCreateByRenderHiResScenario = function (response) {
|
|
5680
|
-
var
|
|
5171
|
+
var e_45, _a;
|
|
5681
5172
|
var _this = this;
|
|
5682
5173
|
var status = response.status;
|
|
5683
5174
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -5690,12 +5181,12 @@
|
|
|
5690
5181
|
_headers[key] = response.headers.get(key);
|
|
5691
5182
|
}
|
|
5692
5183
|
}
|
|
5693
|
-
catch (
|
|
5184
|
+
catch (e_45_1) { e_45 = { error: e_45_1 }; }
|
|
5694
5185
|
finally {
|
|
5695
5186
|
try {
|
|
5696
5187
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5697
5188
|
}
|
|
5698
|
-
finally { if (
|
|
5189
|
+
finally { if (e_45) throw e_45.error; }
|
|
5699
5190
|
}
|
|
5700
5191
|
}
|
|
5701
5192
|
if (status === 201) {
|
|
@@ -5781,7 +5272,7 @@
|
|
|
5781
5272
|
}));
|
|
5782
5273
|
};
|
|
5783
5274
|
ProjectsApiClient.prototype.processCreateBySpecificPipelineScenario = function (response) {
|
|
5784
|
-
var
|
|
5275
|
+
var e_46, _a;
|
|
5785
5276
|
var _this = this;
|
|
5786
5277
|
var status = response.status;
|
|
5787
5278
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -5794,12 +5285,12 @@
|
|
|
5794
5285
|
_headers[key] = response.headers.get(key);
|
|
5795
5286
|
}
|
|
5796
5287
|
}
|
|
5797
|
-
catch (
|
|
5288
|
+
catch (e_46_1) { e_46 = { error: e_46_1 }; }
|
|
5798
5289
|
finally {
|
|
5799
5290
|
try {
|
|
5800
5291
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5801
5292
|
}
|
|
5802
|
-
finally { if (
|
|
5293
|
+
finally { if (e_46) throw e_46.error; }
|
|
5803
5294
|
}
|
|
5804
5295
|
}
|
|
5805
5296
|
if (status === 201) {
|
|
@@ -5880,7 +5371,7 @@
|
|
|
5880
5371
|
}));
|
|
5881
5372
|
};
|
|
5882
5373
|
ProjectsApiClient.prototype.processGetAvailableTransitions = function (response) {
|
|
5883
|
-
var
|
|
5374
|
+
var e_47, _a;
|
|
5884
5375
|
var _this = this;
|
|
5885
5376
|
var status = response.status;
|
|
5886
5377
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -5893,12 +5384,12 @@
|
|
|
5893
5384
|
_headers[key] = response.headers.get(key);
|
|
5894
5385
|
}
|
|
5895
5386
|
}
|
|
5896
|
-
catch (
|
|
5387
|
+
catch (e_47_1) { e_47 = { error: e_47_1 }; }
|
|
5897
5388
|
finally {
|
|
5898
5389
|
try {
|
|
5899
5390
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5900
5391
|
}
|
|
5901
|
-
finally { if (
|
|
5392
|
+
finally { if (e_47) throw e_47.error; }
|
|
5902
5393
|
}
|
|
5903
5394
|
}
|
|
5904
5395
|
if (status === 200) {
|
|
@@ -5973,230 +5464,13 @@
|
|
|
5973
5464
|
})
|
|
5974
5465
|
};
|
|
5975
5466
|
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
5976
|
-
return _this.http.request("post", url_, transformedOptions_);
|
|
5977
|
-
})).pipe(operators.mergeMap(function (response_) {
|
|
5978
|
-
return _this.transformResult(url_, response_, function (r) { return _this.processChangeStatus(r); });
|
|
5979
|
-
})).pipe(operators.catchError(function (response_) {
|
|
5980
|
-
if (response_ instanceof i1.HttpResponseBase) {
|
|
5981
|
-
try {
|
|
5982
|
-
return _this.transformResult(url_, response_, function (r) { return _this.processChangeStatus(r); });
|
|
5983
|
-
}
|
|
5984
|
-
catch (e) {
|
|
5985
|
-
return rxjs.throwError(e);
|
|
5986
|
-
}
|
|
5987
|
-
}
|
|
5988
|
-
else
|
|
5989
|
-
return rxjs.throwError(response_);
|
|
5990
|
-
}));
|
|
5991
|
-
};
|
|
5992
|
-
ProjectsApiClient.prototype.processChangeStatus = function (response) {
|
|
5993
|
-
var e_53, _a;
|
|
5994
|
-
var _this = this;
|
|
5995
|
-
var status = response.status;
|
|
5996
|
-
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
5997
|
-
response.error instanceof Blob ? response.error : undefined;
|
|
5998
|
-
var _headers = {};
|
|
5999
|
-
if (response.headers) {
|
|
6000
|
-
try {
|
|
6001
|
-
for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
6002
|
-
var key = _c.value;
|
|
6003
|
-
_headers[key] = response.headers.get(key);
|
|
6004
|
-
}
|
|
6005
|
-
}
|
|
6006
|
-
catch (e_53_1) { e_53 = { error: e_53_1 }; }
|
|
6007
|
-
finally {
|
|
6008
|
-
try {
|
|
6009
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
6010
|
-
}
|
|
6011
|
-
finally { if (e_53) throw e_53.error; }
|
|
6012
|
-
}
|
|
6013
|
-
}
|
|
6014
|
-
if (status === 200) {
|
|
6015
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6016
|
-
var result200 = null;
|
|
6017
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
6018
|
-
return rxjs.of(result200);
|
|
6019
|
-
}));
|
|
6020
|
-
}
|
|
6021
|
-
else if (status === 400) {
|
|
6022
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6023
|
-
var result400 = null;
|
|
6024
|
-
result400 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
6025
|
-
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
6026
|
-
}));
|
|
6027
|
-
}
|
|
6028
|
-
else if (status === 404) {
|
|
6029
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6030
|
-
var result404 = null;
|
|
6031
|
-
result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
6032
|
-
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
6033
|
-
}));
|
|
6034
|
-
}
|
|
6035
|
-
else if (status === 409) {
|
|
6036
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6037
|
-
var result409 = null;
|
|
6038
|
-
result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
6039
|
-
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
6040
|
-
}));
|
|
6041
|
-
}
|
|
6042
|
-
else if (status === 401) {
|
|
6043
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6044
|
-
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6045
|
-
}));
|
|
6046
|
-
}
|
|
6047
|
-
else if (status === 403) {
|
|
6048
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6049
|
-
return throwException("Forbidden", status, _responseText, _headers);
|
|
6050
|
-
}));
|
|
6051
|
-
}
|
|
6052
|
-
else if (status !== 200 && status !== 204) {
|
|
6053
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6054
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6055
|
-
}));
|
|
6056
|
-
}
|
|
6057
|
-
return rxjs.of(null);
|
|
6058
|
-
};
|
|
6059
|
-
/**
|
|
6060
|
-
* Changes the project status forcibly without a proper transition.
|
|
6061
|
-
* @param id Project identifier.
|
|
6062
|
-
* @param status Project status code.
|
|
6063
|
-
* @param tenantId (optional) Tenant identifier.
|
|
6064
|
-
* @return Success
|
|
6065
|
-
*/
|
|
6066
|
-
ProjectsApiClient.prototype.forceStatus = function (id, status, tenantId) {
|
|
6067
|
-
var _this = this;
|
|
6068
|
-
var url_ = this.baseUrl + "/api/storefront/v1/projects/{id}/statuses/{status}?";
|
|
6069
|
-
if (id === undefined || id === null)
|
|
6070
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
6071
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
6072
|
-
if (status === undefined || status === null)
|
|
6073
|
-
throw new Error("The parameter 'status' must be defined.");
|
|
6074
|
-
url_ = url_.replace("{status}", encodeURIComponent("" + status));
|
|
6075
|
-
if (tenantId !== undefined && tenantId !== null)
|
|
6076
|
-
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
6077
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
6078
|
-
var options_ = {
|
|
6079
|
-
observe: "response",
|
|
6080
|
-
responseType: "blob",
|
|
6081
|
-
headers: new i1.HttpHeaders({
|
|
6082
|
-
"Accept": "application/json"
|
|
6083
|
-
})
|
|
6084
|
-
};
|
|
6085
|
-
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
6086
|
-
return _this.http.request("post", url_, transformedOptions_);
|
|
6087
|
-
})).pipe(operators.mergeMap(function (response_) {
|
|
6088
|
-
return _this.transformResult(url_, response_, function (r) { return _this.processForceStatus(r); });
|
|
6089
|
-
})).pipe(operators.catchError(function (response_) {
|
|
6090
|
-
if (response_ instanceof i1.HttpResponseBase) {
|
|
6091
|
-
try {
|
|
6092
|
-
return _this.transformResult(url_, response_, function (r) { return _this.processForceStatus(r); });
|
|
6093
|
-
}
|
|
6094
|
-
catch (e) {
|
|
6095
|
-
return rxjs.throwError(e);
|
|
6096
|
-
}
|
|
6097
|
-
}
|
|
6098
|
-
else
|
|
6099
|
-
return rxjs.throwError(response_);
|
|
6100
|
-
}));
|
|
6101
|
-
};
|
|
6102
|
-
ProjectsApiClient.prototype.processForceStatus = function (response) {
|
|
6103
|
-
var e_54, _a;
|
|
6104
|
-
var _this = this;
|
|
6105
|
-
var status = response.status;
|
|
6106
|
-
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
6107
|
-
response.error instanceof Blob ? response.error : undefined;
|
|
6108
|
-
var _headers = {};
|
|
6109
|
-
if (response.headers) {
|
|
6110
|
-
try {
|
|
6111
|
-
for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
6112
|
-
var key = _c.value;
|
|
6113
|
-
_headers[key] = response.headers.get(key);
|
|
6114
|
-
}
|
|
6115
|
-
}
|
|
6116
|
-
catch (e_54_1) { e_54 = { error: e_54_1 }; }
|
|
6117
|
-
finally {
|
|
6118
|
-
try {
|
|
6119
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
6120
|
-
}
|
|
6121
|
-
finally { if (e_54) throw e_54.error; }
|
|
6122
|
-
}
|
|
6123
|
-
}
|
|
6124
|
-
if (status === 200) {
|
|
6125
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6126
|
-
var result200 = null;
|
|
6127
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
6128
|
-
return rxjs.of(result200);
|
|
6129
|
-
}));
|
|
6130
|
-
}
|
|
6131
|
-
else if (status === 400) {
|
|
6132
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6133
|
-
var result400 = null;
|
|
6134
|
-
result400 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
6135
|
-
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
6136
|
-
}));
|
|
6137
|
-
}
|
|
6138
|
-
else if (status === 404) {
|
|
6139
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6140
|
-
var result404 = null;
|
|
6141
|
-
result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
6142
|
-
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
6143
|
-
}));
|
|
6144
|
-
}
|
|
6145
|
-
else if (status === 409) {
|
|
6146
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6147
|
-
var result409 = null;
|
|
6148
|
-
result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
6149
|
-
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
6150
|
-
}));
|
|
6151
|
-
}
|
|
6152
|
-
else if (status === 401) {
|
|
6153
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6154
|
-
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6155
|
-
}));
|
|
6156
|
-
}
|
|
6157
|
-
else if (status === 403) {
|
|
6158
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6159
|
-
return throwException("Forbidden", status, _responseText, _headers);
|
|
6160
|
-
}));
|
|
6161
|
-
}
|
|
6162
|
-
else if (status !== 200 && status !== 204) {
|
|
6163
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6164
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6165
|
-
}));
|
|
6166
|
-
}
|
|
6167
|
-
return rxjs.of(null);
|
|
6168
|
-
};
|
|
6169
|
-
/**
|
|
6170
|
-
* Deletes specified projects.
|
|
6171
|
-
These projects will be hide from projects list immediately, but complete projects data cleaning will take some additional time.
|
|
6172
|
-
* @param tenantId (optional) Tenant identifier.
|
|
6173
|
-
* @param body (optional) Operation parameters.
|
|
6174
|
-
* @return Success
|
|
6175
|
-
*/
|
|
6176
|
-
ProjectsApiClient.prototype.batchDelete = function (tenantId, body) {
|
|
6177
|
-
var _this = this;
|
|
6178
|
-
var url_ = this.baseUrl + "/api/storefront/v1/projects/batch-delete?";
|
|
6179
|
-
if (tenantId !== undefined && tenantId !== null)
|
|
6180
|
-
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
6181
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
6182
|
-
var content_ = JSON.stringify(body);
|
|
6183
|
-
var options_ = {
|
|
6184
|
-
body: content_,
|
|
6185
|
-
observe: "response",
|
|
6186
|
-
responseType: "blob",
|
|
6187
|
-
headers: new i1.HttpHeaders({
|
|
6188
|
-
"Content-Type": "application/json",
|
|
6189
|
-
"Accept": "application/json"
|
|
6190
|
-
})
|
|
6191
|
-
};
|
|
6192
|
-
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
6193
|
-
return _this.http.request("delete", url_, transformedOptions_);
|
|
5467
|
+
return _this.http.request("post", url_, transformedOptions_);
|
|
6194
5468
|
})).pipe(operators.mergeMap(function (response_) {
|
|
6195
|
-
return _this.transformResult(url_, response_, function (r) { return _this.
|
|
5469
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processChangeStatus(r); });
|
|
6196
5470
|
})).pipe(operators.catchError(function (response_) {
|
|
6197
5471
|
if (response_ instanceof i1.HttpResponseBase) {
|
|
6198
5472
|
try {
|
|
6199
|
-
return _this.transformResult(url_, response_, function (r) { return _this.
|
|
5473
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processChangeStatus(r); });
|
|
6200
5474
|
}
|
|
6201
5475
|
catch (e) {
|
|
6202
5476
|
return rxjs.throwError(e);
|
|
@@ -6206,8 +5480,8 @@
|
|
|
6206
5480
|
return rxjs.throwError(response_);
|
|
6207
5481
|
}));
|
|
6208
5482
|
};
|
|
6209
|
-
ProjectsApiClient.prototype.
|
|
6210
|
-
var
|
|
5483
|
+
ProjectsApiClient.prototype.processChangeStatus = function (response) {
|
|
5484
|
+
var e_48, _a;
|
|
6211
5485
|
var _this = this;
|
|
6212
5486
|
var status = response.status;
|
|
6213
5487
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -6220,12 +5494,12 @@
|
|
|
6220
5494
|
_headers[key] = response.headers.get(key);
|
|
6221
5495
|
}
|
|
6222
5496
|
}
|
|
6223
|
-
catch (
|
|
5497
|
+
catch (e_48_1) { e_48 = { error: e_48_1 }; }
|
|
6224
5498
|
finally {
|
|
6225
5499
|
try {
|
|
6226
5500
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
6227
5501
|
}
|
|
6228
|
-
finally { if (
|
|
5502
|
+
finally { if (e_48) throw e_48.error; }
|
|
6229
5503
|
}
|
|
6230
5504
|
}
|
|
6231
5505
|
if (status === 200) {
|
|
@@ -6235,6 +5509,27 @@
|
|
|
6235
5509
|
return rxjs.of(result200);
|
|
6236
5510
|
}));
|
|
6237
5511
|
}
|
|
5512
|
+
else if (status === 400) {
|
|
5513
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5514
|
+
var result400 = null;
|
|
5515
|
+
result400 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5516
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
5517
|
+
}));
|
|
5518
|
+
}
|
|
5519
|
+
else if (status === 404) {
|
|
5520
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5521
|
+
var result404 = null;
|
|
5522
|
+
result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5523
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
5524
|
+
}));
|
|
5525
|
+
}
|
|
5526
|
+
else if (status === 409) {
|
|
5527
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5528
|
+
var result409 = null;
|
|
5529
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5530
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
5531
|
+
}));
|
|
5532
|
+
}
|
|
6238
5533
|
else if (status === 401) {
|
|
6239
5534
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6240
5535
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -6253,13 +5548,21 @@
|
|
|
6253
5548
|
return rxjs.of(null);
|
|
6254
5549
|
};
|
|
6255
5550
|
/**
|
|
6256
|
-
*
|
|
5551
|
+
* Changes the project status forcibly without a proper transition.
|
|
5552
|
+
* @param id Project identifier.
|
|
5553
|
+
* @param status Project status code.
|
|
6257
5554
|
* @param tenantId (optional) Tenant identifier.
|
|
6258
5555
|
* @return Success
|
|
6259
5556
|
*/
|
|
6260
|
-
ProjectsApiClient.prototype.
|
|
5557
|
+
ProjectsApiClient.prototype.forceStatus = function (id, status, tenantId) {
|
|
6261
5558
|
var _this = this;
|
|
6262
|
-
var url_ = this.baseUrl + "/api/storefront/v1/projects/statuses?";
|
|
5559
|
+
var url_ = this.baseUrl + "/api/storefront/v1/projects/{id}/statuses/{status}?";
|
|
5560
|
+
if (id === undefined || id === null)
|
|
5561
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
5562
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
5563
|
+
if (status === undefined || status === null)
|
|
5564
|
+
throw new Error("The parameter 'status' must be defined.");
|
|
5565
|
+
url_ = url_.replace("{status}", encodeURIComponent("" + status));
|
|
6263
5566
|
if (tenantId !== undefined && tenantId !== null)
|
|
6264
5567
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
6265
5568
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -6271,13 +5574,13 @@
|
|
|
6271
5574
|
})
|
|
6272
5575
|
};
|
|
6273
5576
|
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
6274
|
-
return _this.http.request("
|
|
5577
|
+
return _this.http.request("post", url_, transformedOptions_);
|
|
6275
5578
|
})).pipe(operators.mergeMap(function (response_) {
|
|
6276
|
-
return _this.transformResult(url_, response_, function (r) { return _this.
|
|
5579
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processForceStatus(r); });
|
|
6277
5580
|
})).pipe(operators.catchError(function (response_) {
|
|
6278
5581
|
if (response_ instanceof i1.HttpResponseBase) {
|
|
6279
5582
|
try {
|
|
6280
|
-
return _this.transformResult(url_, response_, function (r) { return _this.
|
|
5583
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processForceStatus(r); });
|
|
6281
5584
|
}
|
|
6282
5585
|
catch (e) {
|
|
6283
5586
|
return rxjs.throwError(e);
|
|
@@ -6287,8 +5590,8 @@
|
|
|
6287
5590
|
return rxjs.throwError(response_);
|
|
6288
5591
|
}));
|
|
6289
5592
|
};
|
|
6290
|
-
ProjectsApiClient.prototype.
|
|
6291
|
-
var
|
|
5593
|
+
ProjectsApiClient.prototype.processForceStatus = function (response) {
|
|
5594
|
+
var e_49, _a;
|
|
6292
5595
|
var _this = this;
|
|
6293
5596
|
var status = response.status;
|
|
6294
5597
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -6301,12 +5604,12 @@
|
|
|
6301
5604
|
_headers[key] = response.headers.get(key);
|
|
6302
5605
|
}
|
|
6303
5606
|
}
|
|
6304
|
-
catch (
|
|
5607
|
+
catch (e_49_1) { e_49 = { error: e_49_1 }; }
|
|
6305
5608
|
finally {
|
|
6306
5609
|
try {
|
|
6307
5610
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
6308
5611
|
}
|
|
6309
|
-
finally { if (
|
|
5612
|
+
finally { if (e_49) throw e_49.error; }
|
|
6310
5613
|
}
|
|
6311
5614
|
}
|
|
6312
5615
|
if (status === 200) {
|
|
@@ -6316,6 +5619,27 @@
|
|
|
6316
5619
|
return rxjs.of(result200);
|
|
6317
5620
|
}));
|
|
6318
5621
|
}
|
|
5622
|
+
else if (status === 400) {
|
|
5623
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5624
|
+
var result400 = null;
|
|
5625
|
+
result400 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5626
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
5627
|
+
}));
|
|
5628
|
+
}
|
|
5629
|
+
else if (status === 404) {
|
|
5630
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5631
|
+
var result404 = null;
|
|
5632
|
+
result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5633
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
5634
|
+
}));
|
|
5635
|
+
}
|
|
5636
|
+
else if (status === 409) {
|
|
5637
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5638
|
+
var result409 = null;
|
|
5639
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5640
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
5641
|
+
}));
|
|
5642
|
+
}
|
|
6319
5643
|
else if (status === 401) {
|
|
6320
5644
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6321
5645
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -6334,31 +5658,36 @@
|
|
|
6334
5658
|
return rxjs.of(null);
|
|
6335
5659
|
};
|
|
6336
5660
|
/**
|
|
6337
|
-
*
|
|
5661
|
+
* Deletes specified projects.
|
|
5662
|
+
These projects will be hide from projects list immediately, but complete projects data cleaning will take some additional time.
|
|
6338
5663
|
* @param tenantId (optional) Tenant identifier.
|
|
5664
|
+
* @param body (optional) Operation parameters.
|
|
6339
5665
|
* @return Success
|
|
6340
5666
|
*/
|
|
6341
|
-
ProjectsApiClient.prototype.
|
|
5667
|
+
ProjectsApiClient.prototype.batchDelete = function (tenantId, body) {
|
|
6342
5668
|
var _this = this;
|
|
6343
|
-
var url_ = this.baseUrl + "/api/storefront/v1/projects/
|
|
5669
|
+
var url_ = this.baseUrl + "/api/storefront/v1/projects/batch-delete?";
|
|
6344
5670
|
if (tenantId !== undefined && tenantId !== null)
|
|
6345
5671
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
6346
5672
|
url_ = url_.replace(/[?&]$/, "");
|
|
5673
|
+
var content_ = JSON.stringify(body);
|
|
6347
5674
|
var options_ = {
|
|
5675
|
+
body: content_,
|
|
6348
5676
|
observe: "response",
|
|
6349
5677
|
responseType: "blob",
|
|
6350
5678
|
headers: new i1.HttpHeaders({
|
|
5679
|
+
"Content-Type": "application/json",
|
|
6351
5680
|
"Accept": "application/json"
|
|
6352
5681
|
})
|
|
6353
5682
|
};
|
|
6354
5683
|
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
6355
|
-
return _this.http.request("
|
|
5684
|
+
return _this.http.request("delete", url_, transformedOptions_);
|
|
6356
5685
|
})).pipe(operators.mergeMap(function (response_) {
|
|
6357
|
-
return _this.transformResult(url_, response_, function (r) { return _this.
|
|
5686
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processBatchDelete(r); });
|
|
6358
5687
|
})).pipe(operators.catchError(function (response_) {
|
|
6359
5688
|
if (response_ instanceof i1.HttpResponseBase) {
|
|
6360
5689
|
try {
|
|
6361
|
-
return _this.transformResult(url_, response_, function (r) { return _this.
|
|
5690
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processBatchDelete(r); });
|
|
6362
5691
|
}
|
|
6363
5692
|
catch (e) {
|
|
6364
5693
|
return rxjs.throwError(e);
|
|
@@ -6368,8 +5697,8 @@
|
|
|
6368
5697
|
return rxjs.throwError(response_);
|
|
6369
5698
|
}));
|
|
6370
5699
|
};
|
|
6371
|
-
ProjectsApiClient.prototype.
|
|
6372
|
-
var
|
|
5700
|
+
ProjectsApiClient.prototype.processBatchDelete = function (response) {
|
|
5701
|
+
var e_50, _a;
|
|
6373
5702
|
var _this = this;
|
|
6374
5703
|
var status = response.status;
|
|
6375
5704
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -6382,12 +5711,12 @@
|
|
|
6382
5711
|
_headers[key] = response.headers.get(key);
|
|
6383
5712
|
}
|
|
6384
5713
|
}
|
|
6385
|
-
catch (
|
|
5714
|
+
catch (e_50_1) { e_50 = { error: e_50_1 }; }
|
|
6386
5715
|
finally {
|
|
6387
5716
|
try {
|
|
6388
5717
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
6389
5718
|
}
|
|
6390
|
-
finally { if (
|
|
5719
|
+
finally { if (e_50) throw e_50.error; }
|
|
6391
5720
|
}
|
|
6392
5721
|
}
|
|
6393
5722
|
if (status === 200) {
|
|
@@ -6415,28 +5744,13 @@
|
|
|
6415
5744
|
return rxjs.of(null);
|
|
6416
5745
|
};
|
|
6417
5746
|
/**
|
|
6418
|
-
* Returns
|
|
6419
|
-
* @param id Project identifier.
|
|
6420
|
-
* @param designUserId Design owner identifier.
|
|
6421
|
-
* @param designId Design identifier.
|
|
5747
|
+
* Returns a list of all existing project statuses.
|
|
6422
5748
|
* @param tenantId (optional) Tenant identifier.
|
|
6423
5749
|
* @return Success
|
|
6424
|
-
* @deprecated
|
|
6425
5750
|
*/
|
|
6426
|
-
ProjectsApiClient.prototype.
|
|
5751
|
+
ProjectsApiClient.prototype.getAllStatuses = function (tenantId) {
|
|
6427
5752
|
var _this = this;
|
|
6428
|
-
var url_ = this.baseUrl + "/api/storefront/v1/projects/
|
|
6429
|
-
if (id === undefined || id === null)
|
|
6430
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
6431
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
6432
|
-
if (designUserId === undefined || designUserId === null)
|
|
6433
|
-
throw new Error("The parameter 'designUserId' must be defined and cannot be null.");
|
|
6434
|
-
else
|
|
6435
|
-
url_ += "designUserId=" + encodeURIComponent("" + designUserId) + "&";
|
|
6436
|
-
if (designId === undefined || designId === null)
|
|
6437
|
-
throw new Error("The parameter 'designId' must be defined and cannot be null.");
|
|
6438
|
-
else
|
|
6439
|
-
url_ += "designId=" + encodeURIComponent("" + designId) + "&";
|
|
5753
|
+
var url_ = this.baseUrl + "/api/storefront/v1/projects/statuses?";
|
|
6440
5754
|
if (tenantId !== undefined && tenantId !== null)
|
|
6441
5755
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
6442
5756
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -6450,11 +5764,11 @@
|
|
|
6450
5764
|
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
6451
5765
|
return _this.http.request("get", url_, transformedOptions_);
|
|
6452
5766
|
})).pipe(operators.mergeMap(function (response_) {
|
|
6453
|
-
return _this.transformResult(url_, response_, function (r) { return _this.
|
|
5767
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processGetAllStatuses(r); });
|
|
6454
5768
|
})).pipe(operators.catchError(function (response_) {
|
|
6455
5769
|
if (response_ instanceof i1.HttpResponseBase) {
|
|
6456
5770
|
try {
|
|
6457
|
-
return _this.transformResult(url_, response_, function (r) { return _this.
|
|
5771
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processGetAllStatuses(r); });
|
|
6458
5772
|
}
|
|
6459
5773
|
catch (e) {
|
|
6460
5774
|
return rxjs.throwError(e);
|
|
@@ -6464,8 +5778,8 @@
|
|
|
6464
5778
|
return rxjs.throwError(response_);
|
|
6465
5779
|
}));
|
|
6466
5780
|
};
|
|
6467
|
-
ProjectsApiClient.prototype.
|
|
6468
|
-
var
|
|
5781
|
+
ProjectsApiClient.prototype.processGetAllStatuses = function (response) {
|
|
5782
|
+
var e_51, _a;
|
|
6469
5783
|
var _this = this;
|
|
6470
5784
|
var status = response.status;
|
|
6471
5785
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -6478,12 +5792,12 @@
|
|
|
6478
5792
|
_headers[key] = response.headers.get(key);
|
|
6479
5793
|
}
|
|
6480
5794
|
}
|
|
6481
|
-
catch (
|
|
5795
|
+
catch (e_51_1) { e_51 = { error: e_51_1 }; }
|
|
6482
5796
|
finally {
|
|
6483
5797
|
try {
|
|
6484
5798
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
6485
5799
|
}
|
|
6486
|
-
finally { if (
|
|
5800
|
+
finally { if (e_51) throw e_51.error; }
|
|
6487
5801
|
}
|
|
6488
5802
|
}
|
|
6489
5803
|
if (status === 200) {
|
|
@@ -6493,13 +5807,6 @@
|
|
|
6493
5807
|
return rxjs.of(result200);
|
|
6494
5808
|
}));
|
|
6495
5809
|
}
|
|
6496
|
-
else if (status === 409) {
|
|
6497
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6498
|
-
var result409 = null;
|
|
6499
|
-
result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
6500
|
-
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
6501
|
-
}));
|
|
6502
|
-
}
|
|
6503
5810
|
else if (status === 401) {
|
|
6504
5811
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6505
5812
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -6518,31 +5825,13 @@
|
|
|
6518
5825
|
return rxjs.of(null);
|
|
6519
5826
|
};
|
|
6520
5827
|
/**
|
|
6521
|
-
* Returns
|
|
6522
|
-
* @param id Project identifier.
|
|
6523
|
-
* @param designUserId Design owner identifier.
|
|
6524
|
-
* @param designId Design identifier.
|
|
6525
|
-
* @param attachment (optional) If set to 'true', the requested file will be provided as an attachment with proper filename supplied (default value is 'false').
|
|
5828
|
+
* Returns a list of all existing project status transitions.
|
|
6526
5829
|
* @param tenantId (optional) Tenant identifier.
|
|
6527
5830
|
* @return Success
|
|
6528
|
-
* @deprecated
|
|
6529
5831
|
*/
|
|
6530
|
-
ProjectsApiClient.prototype.
|
|
5832
|
+
ProjectsApiClient.prototype.getAllTransitions = function (tenantId) {
|
|
6531
5833
|
var _this = this;
|
|
6532
|
-
var url_ = this.baseUrl + "/api/storefront/v1/projects/
|
|
6533
|
-
if (id === undefined || id === null)
|
|
6534
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
6535
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
6536
|
-
if (designUserId === undefined || designUserId === null)
|
|
6537
|
-
throw new Error("The parameter 'designUserId' must be defined and cannot be null.");
|
|
6538
|
-
else
|
|
6539
|
-
url_ += "designUserId=" + encodeURIComponent("" + designUserId) + "&";
|
|
6540
|
-
if (designId === undefined || designId === null)
|
|
6541
|
-
throw new Error("The parameter 'designId' must be defined and cannot be null.");
|
|
6542
|
-
else
|
|
6543
|
-
url_ += "designId=" + encodeURIComponent("" + designId) + "&";
|
|
6544
|
-
if (attachment !== undefined && attachment !== null)
|
|
6545
|
-
url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
|
|
5834
|
+
var url_ = this.baseUrl + "/api/storefront/v1/projects/transitions?";
|
|
6546
5835
|
if (tenantId !== undefined && tenantId !== null)
|
|
6547
5836
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
6548
5837
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -6550,17 +5839,17 @@
|
|
|
6550
5839
|
observe: "response",
|
|
6551
5840
|
responseType: "blob",
|
|
6552
5841
|
headers: new i1.HttpHeaders({
|
|
6553
|
-
"Accept": "application/
|
|
5842
|
+
"Accept": "application/json"
|
|
6554
5843
|
})
|
|
6555
5844
|
};
|
|
6556
5845
|
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
6557
5846
|
return _this.http.request("get", url_, transformedOptions_);
|
|
6558
5847
|
})).pipe(operators.mergeMap(function (response_) {
|
|
6559
|
-
return _this.transformResult(url_, response_, function (r) { return _this.
|
|
5848
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processGetAllTransitions(r); });
|
|
6560
5849
|
})).pipe(operators.catchError(function (response_) {
|
|
6561
5850
|
if (response_ instanceof i1.HttpResponseBase) {
|
|
6562
5851
|
try {
|
|
6563
|
-
return _this.transformResult(url_, response_, function (r) { return _this.
|
|
5852
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processGetAllTransitions(r); });
|
|
6564
5853
|
}
|
|
6565
5854
|
catch (e) {
|
|
6566
5855
|
return rxjs.throwError(e);
|
|
@@ -6570,8 +5859,8 @@
|
|
|
6570
5859
|
return rxjs.throwError(response_);
|
|
6571
5860
|
}));
|
|
6572
5861
|
};
|
|
6573
|
-
ProjectsApiClient.prototype.
|
|
6574
|
-
var
|
|
5862
|
+
ProjectsApiClient.prototype.processGetAllTransitions = function (response) {
|
|
5863
|
+
var e_52, _a;
|
|
6575
5864
|
var _this = this;
|
|
6576
5865
|
var status = response.status;
|
|
6577
5866
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -6584,32 +5873,19 @@
|
|
|
6584
5873
|
_headers[key] = response.headers.get(key);
|
|
6585
5874
|
}
|
|
6586
5875
|
}
|
|
6587
|
-
catch (
|
|
5876
|
+
catch (e_52_1) { e_52 = { error: e_52_1 }; }
|
|
6588
5877
|
finally {
|
|
6589
5878
|
try {
|
|
6590
5879
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
6591
5880
|
}
|
|
6592
|
-
finally { if (
|
|
5881
|
+
finally { if (e_52) throw e_52.error; }
|
|
6593
5882
|
}
|
|
6594
5883
|
}
|
|
6595
|
-
if (status === 200
|
|
6596
|
-
var contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
|
|
6597
|
-
var fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
|
|
6598
|
-
var fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
|
|
6599
|
-
return rxjs.of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
|
|
6600
|
-
}
|
|
6601
|
-
else if (status === 404) {
|
|
6602
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6603
|
-
var result404 = null;
|
|
6604
|
-
result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
6605
|
-
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
6606
|
-
}));
|
|
6607
|
-
}
|
|
6608
|
-
else if (status === 409) {
|
|
5884
|
+
if (status === 200) {
|
|
6609
5885
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6610
|
-
var
|
|
6611
|
-
|
|
6612
|
-
return
|
|
5886
|
+
var result200 = null;
|
|
5887
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5888
|
+
return rxjs.of(result200);
|
|
6613
5889
|
}));
|
|
6614
5890
|
}
|
|
6615
5891
|
else if (status === 401) {
|
|
@@ -6672,7 +5948,7 @@
|
|
|
6672
5948
|
}));
|
|
6673
5949
|
};
|
|
6674
5950
|
ProjectsApiClient.prototype.processGetProjectProcessingResults = function (response) {
|
|
6675
|
-
var
|
|
5951
|
+
var e_53, _a;
|
|
6676
5952
|
var _this = this;
|
|
6677
5953
|
var status = response.status;
|
|
6678
5954
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -6685,12 +5961,12 @@
|
|
|
6685
5961
|
_headers[key] = response.headers.get(key);
|
|
6686
5962
|
}
|
|
6687
5963
|
}
|
|
6688
|
-
catch (
|
|
5964
|
+
catch (e_53_1) { e_53 = { error: e_53_1 }; }
|
|
6689
5965
|
finally {
|
|
6690
5966
|
try {
|
|
6691
5967
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
6692
5968
|
}
|
|
6693
|
-
finally { if (
|
|
5969
|
+
finally { if (e_53) throw e_53.error; }
|
|
6694
5970
|
}
|
|
6695
5971
|
}
|
|
6696
5972
|
if (status === 200) {
|
|
@@ -6772,7 +6048,7 @@
|
|
|
6772
6048
|
}));
|
|
6773
6049
|
};
|
|
6774
6050
|
ProjectsApiClient.prototype.processResumeProjectProcessing = function (response) {
|
|
6775
|
-
var
|
|
6051
|
+
var e_54, _a;
|
|
6776
6052
|
var _this = this;
|
|
6777
6053
|
var status = response.status;
|
|
6778
6054
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -6785,12 +6061,12 @@
|
|
|
6785
6061
|
_headers[key] = response.headers.get(key);
|
|
6786
6062
|
}
|
|
6787
6063
|
}
|
|
6788
|
-
catch (
|
|
6064
|
+
catch (e_54_1) { e_54 = { error: e_54_1 }; }
|
|
6789
6065
|
finally {
|
|
6790
6066
|
try {
|
|
6791
6067
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
6792
6068
|
}
|
|
6793
|
-
finally { if (
|
|
6069
|
+
finally { if (e_54) throw e_54.error; }
|
|
6794
6070
|
}
|
|
6795
6071
|
}
|
|
6796
6072
|
if (status === 204) {
|
|
@@ -6870,7 +6146,7 @@
|
|
|
6870
6146
|
}));
|
|
6871
6147
|
};
|
|
6872
6148
|
ProjectsApiClient.prototype.processRestartProjectProcessing = function (response) {
|
|
6873
|
-
var
|
|
6149
|
+
var e_55, _a;
|
|
6874
6150
|
var _this = this;
|
|
6875
6151
|
var status = response.status;
|
|
6876
6152
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -6883,12 +6159,12 @@
|
|
|
6883
6159
|
_headers[key] = response.headers.get(key);
|
|
6884
6160
|
}
|
|
6885
6161
|
}
|
|
6886
|
-
catch (
|
|
6162
|
+
catch (e_55_1) { e_55 = { error: e_55_1 }; }
|
|
6887
6163
|
finally {
|
|
6888
6164
|
try {
|
|
6889
6165
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
6890
6166
|
}
|
|
6891
|
-
finally { if (
|
|
6167
|
+
finally { if (e_55) throw e_55.error; }
|
|
6892
6168
|
}
|
|
6893
6169
|
}
|
|
6894
6170
|
if (status === 204) {
|
|
@@ -6967,7 +6243,7 @@
|
|
|
6967
6243
|
}));
|
|
6968
6244
|
};
|
|
6969
6245
|
ProjectsApiClient.prototype.processGetProjectOrder = function (response) {
|
|
6970
|
-
var
|
|
6246
|
+
var e_56, _a;
|
|
6971
6247
|
var _this = this;
|
|
6972
6248
|
var status = response.status;
|
|
6973
6249
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -6980,12 +6256,12 @@
|
|
|
6980
6256
|
_headers[key] = response.headers.get(key);
|
|
6981
6257
|
}
|
|
6982
6258
|
}
|
|
6983
|
-
catch (
|
|
6259
|
+
catch (e_56_1) { e_56 = { error: e_56_1 }; }
|
|
6984
6260
|
finally {
|
|
6985
6261
|
try {
|
|
6986
6262
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
6987
6263
|
}
|
|
6988
|
-
finally { if (
|
|
6264
|
+
finally { if (e_56) throw e_56.error; }
|
|
6989
6265
|
}
|
|
6990
6266
|
}
|
|
6991
6267
|
if (status === 200) {
|
|
@@ -7072,7 +6348,7 @@
|
|
|
7072
6348
|
}));
|
|
7073
6349
|
};
|
|
7074
6350
|
ProjectsApiClient.prototype.processAttachDataToProjectOrder = function (response) {
|
|
7075
|
-
var
|
|
6351
|
+
var e_57, _a;
|
|
7076
6352
|
var _this = this;
|
|
7077
6353
|
var status = response.status;
|
|
7078
6354
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -7085,12 +6361,12 @@
|
|
|
7085
6361
|
_headers[key] = response.headers.get(key);
|
|
7086
6362
|
}
|
|
7087
6363
|
}
|
|
7088
|
-
catch (
|
|
6364
|
+
catch (e_57_1) { e_57 = { error: e_57_1 }; }
|
|
7089
6365
|
finally {
|
|
7090
6366
|
try {
|
|
7091
6367
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
7092
6368
|
}
|
|
7093
|
-
finally { if (
|
|
6369
|
+
finally { if (e_57) throw e_57.error; }
|
|
7094
6370
|
}
|
|
7095
6371
|
}
|
|
7096
6372
|
if (status === 204) {
|
|
@@ -7202,7 +6478,7 @@
|
|
|
7202
6478
|
}));
|
|
7203
6479
|
};
|
|
7204
6480
|
StorefrontsApiClient.prototype.processGetAll = function (response) {
|
|
7205
|
-
var
|
|
6481
|
+
var e_58, _a;
|
|
7206
6482
|
var _this = this;
|
|
7207
6483
|
var status = response.status;
|
|
7208
6484
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -7215,12 +6491,12 @@
|
|
|
7215
6491
|
_headers[key] = response.headers.get(key);
|
|
7216
6492
|
}
|
|
7217
6493
|
}
|
|
7218
|
-
catch (
|
|
6494
|
+
catch (e_58_1) { e_58 = { error: e_58_1 }; }
|
|
7219
6495
|
finally {
|
|
7220
6496
|
try {
|
|
7221
6497
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
7222
6498
|
}
|
|
7223
|
-
finally { if (
|
|
6499
|
+
finally { if (e_58) throw e_58.error; }
|
|
7224
6500
|
}
|
|
7225
6501
|
}
|
|
7226
6502
|
if (status === 200) {
|
|
@@ -7287,7 +6563,7 @@
|
|
|
7287
6563
|
}));
|
|
7288
6564
|
};
|
|
7289
6565
|
StorefrontsApiClient.prototype.processGet = function (response) {
|
|
7290
|
-
var
|
|
6566
|
+
var e_59, _a;
|
|
7291
6567
|
var _this = this;
|
|
7292
6568
|
var status = response.status;
|
|
7293
6569
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -7300,12 +6576,12 @@
|
|
|
7300
6576
|
_headers[key] = response.headers.get(key);
|
|
7301
6577
|
}
|
|
7302
6578
|
}
|
|
7303
|
-
catch (
|
|
6579
|
+
catch (e_59_1) { e_59 = { error: e_59_1 }; }
|
|
7304
6580
|
finally {
|
|
7305
6581
|
try {
|
|
7306
6582
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
7307
6583
|
}
|
|
7308
|
-
finally { if (
|
|
6584
|
+
finally { if (e_59) throw e_59.error; }
|
|
7309
6585
|
}
|
|
7310
6586
|
}
|
|
7311
6587
|
if (status === 200) {
|
|
@@ -7424,7 +6700,7 @@
|
|
|
7424
6700
|
}));
|
|
7425
6701
|
};
|
|
7426
6702
|
StorefrontUsersApiClient.prototype.processGetAll = function (response) {
|
|
7427
|
-
var
|
|
6703
|
+
var e_60, _a;
|
|
7428
6704
|
var _this = this;
|
|
7429
6705
|
var status = response.status;
|
|
7430
6706
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -7437,12 +6713,12 @@
|
|
|
7437
6713
|
_headers[key] = response.headers.get(key);
|
|
7438
6714
|
}
|
|
7439
6715
|
}
|
|
7440
|
-
catch (
|
|
6716
|
+
catch (e_60_1) { e_60 = { error: e_60_1 }; }
|
|
7441
6717
|
finally {
|
|
7442
6718
|
try {
|
|
7443
6719
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
7444
6720
|
}
|
|
7445
|
-
finally { if (
|
|
6721
|
+
finally { if (e_60) throw e_60.error; }
|
|
7446
6722
|
}
|
|
7447
6723
|
}
|
|
7448
6724
|
if (status === 200) {
|
|
@@ -7521,7 +6797,7 @@
|
|
|
7521
6797
|
}));
|
|
7522
6798
|
};
|
|
7523
6799
|
StorefrontUsersApiClient.prototype.processCreate = function (response) {
|
|
7524
|
-
var
|
|
6800
|
+
var e_61, _a;
|
|
7525
6801
|
var _this = this;
|
|
7526
6802
|
var status = response.status;
|
|
7527
6803
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -7534,12 +6810,12 @@
|
|
|
7534
6810
|
_headers[key] = response.headers.get(key);
|
|
7535
6811
|
}
|
|
7536
6812
|
}
|
|
7537
|
-
catch (
|
|
6813
|
+
catch (e_61_1) { e_61 = { error: e_61_1 }; }
|
|
7538
6814
|
finally {
|
|
7539
6815
|
try {
|
|
7540
6816
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
7541
6817
|
}
|
|
7542
|
-
finally { if (
|
|
6818
|
+
finally { if (e_61) throw e_61.error; }
|
|
7543
6819
|
}
|
|
7544
6820
|
}
|
|
7545
6821
|
if (status === 201) {
|
|
@@ -7618,7 +6894,7 @@
|
|
|
7618
6894
|
}));
|
|
7619
6895
|
};
|
|
7620
6896
|
StorefrontUsersApiClient.prototype.processGet = function (response) {
|
|
7621
|
-
var
|
|
6897
|
+
var e_62, _a;
|
|
7622
6898
|
var _this = this;
|
|
7623
6899
|
var status = response.status;
|
|
7624
6900
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -7631,12 +6907,12 @@
|
|
|
7631
6907
|
_headers[key] = response.headers.get(key);
|
|
7632
6908
|
}
|
|
7633
6909
|
}
|
|
7634
|
-
catch (
|
|
6910
|
+
catch (e_62_1) { e_62 = { error: e_62_1 }; }
|
|
7635
6911
|
finally {
|
|
7636
6912
|
try {
|
|
7637
6913
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
7638
6914
|
}
|
|
7639
|
-
finally { if (
|
|
6915
|
+
finally { if (e_62) throw e_62.error; }
|
|
7640
6916
|
}
|
|
7641
6917
|
}
|
|
7642
6918
|
if (status === 200) {
|
|
@@ -7722,7 +6998,7 @@
|
|
|
7722
6998
|
}));
|
|
7723
6999
|
};
|
|
7724
7000
|
StorefrontUsersApiClient.prototype.processRegister = function (response) {
|
|
7725
|
-
var
|
|
7001
|
+
var e_63, _a;
|
|
7726
7002
|
var _this = this;
|
|
7727
7003
|
var status = response.status;
|
|
7728
7004
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -7735,12 +7011,12 @@
|
|
|
7735
7011
|
_headers[key] = response.headers.get(key);
|
|
7736
7012
|
}
|
|
7737
7013
|
}
|
|
7738
|
-
catch (
|
|
7014
|
+
catch (e_63_1) { e_63 = { error: e_63_1 }; }
|
|
7739
7015
|
finally {
|
|
7740
7016
|
try {
|
|
7741
7017
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
7742
7018
|
}
|
|
7743
|
-
finally { if (
|
|
7019
|
+
finally { if (e_63) throw e_63.error; }
|
|
7744
7020
|
}
|
|
7745
7021
|
}
|
|
7746
7022
|
if (status === 200) {
|
|
@@ -7818,7 +7094,7 @@
|
|
|
7818
7094
|
}));
|
|
7819
7095
|
};
|
|
7820
7096
|
StorefrontUsersApiClient.prototype.processMergeAnonymous = function (response) {
|
|
7821
|
-
var
|
|
7097
|
+
var e_64, _a;
|
|
7822
7098
|
var _this = this;
|
|
7823
7099
|
var status = response.status;
|
|
7824
7100
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -7831,12 +7107,12 @@
|
|
|
7831
7107
|
_headers[key] = response.headers.get(key);
|
|
7832
7108
|
}
|
|
7833
7109
|
}
|
|
7834
|
-
catch (
|
|
7110
|
+
catch (e_64_1) { e_64 = { error: e_64_1 }; }
|
|
7835
7111
|
finally {
|
|
7836
7112
|
try {
|
|
7837
7113
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
7838
7114
|
}
|
|
7839
|
-
finally { if (
|
|
7115
|
+
finally { if (e_64) throw e_64.error; }
|
|
7840
7116
|
}
|
|
7841
7117
|
}
|
|
7842
7118
|
if (status === 200) {
|
|
@@ -7921,7 +7197,7 @@
|
|
|
7921
7197
|
}));
|
|
7922
7198
|
};
|
|
7923
7199
|
StorefrontUsersApiClient.prototype.processGetToken = function (response) {
|
|
7924
|
-
var
|
|
7200
|
+
var e_65, _a;
|
|
7925
7201
|
var _this = this;
|
|
7926
7202
|
var status = response.status;
|
|
7927
7203
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -7934,12 +7210,12 @@
|
|
|
7934
7210
|
_headers[key] = response.headers.get(key);
|
|
7935
7211
|
}
|
|
7936
7212
|
}
|
|
7937
|
-
catch (
|
|
7213
|
+
catch (e_65_1) { e_65 = { error: e_65_1 }; }
|
|
7938
7214
|
finally {
|
|
7939
7215
|
try {
|
|
7940
7216
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
7941
7217
|
}
|
|
7942
|
-
finally { if (
|
|
7218
|
+
finally { if (e_65) throw e_65.error; }
|
|
7943
7219
|
}
|
|
7944
7220
|
}
|
|
7945
7221
|
if (status === 200) {
|
|
@@ -8038,7 +7314,7 @@
|
|
|
8038
7314
|
}));
|
|
8039
7315
|
};
|
|
8040
7316
|
TenantInfoApiClient.prototype.processGetApplicationsInfo = function (response) {
|
|
8041
|
-
var
|
|
7317
|
+
var e_66, _a;
|
|
8042
7318
|
var _this = this;
|
|
8043
7319
|
var status = response.status;
|
|
8044
7320
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -8051,12 +7327,12 @@
|
|
|
8051
7327
|
_headers[key] = response.headers.get(key);
|
|
8052
7328
|
}
|
|
8053
7329
|
}
|
|
8054
|
-
catch (
|
|
7330
|
+
catch (e_66_1) { e_66 = { error: e_66_1 }; }
|
|
8055
7331
|
finally {
|
|
8056
7332
|
try {
|
|
8057
7333
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
8058
7334
|
}
|
|
8059
|
-
finally { if (
|
|
7335
|
+
finally { if (e_66) throw e_66.error; }
|
|
8060
7336
|
}
|
|
8061
7337
|
}
|
|
8062
7338
|
if (status === 200) {
|
|
@@ -8119,7 +7395,7 @@
|
|
|
8119
7395
|
}));
|
|
8120
7396
|
};
|
|
8121
7397
|
TenantInfoApiClient.prototype.processGetInfo = function (response) {
|
|
8122
|
-
var
|
|
7398
|
+
var e_67, _a;
|
|
8123
7399
|
var _this = this;
|
|
8124
7400
|
var status = response.status;
|
|
8125
7401
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -8132,12 +7408,12 @@
|
|
|
8132
7408
|
_headers[key] = response.headers.get(key);
|
|
8133
7409
|
}
|
|
8134
7410
|
}
|
|
8135
|
-
catch (
|
|
7411
|
+
catch (e_67_1) { e_67 = { error: e_67_1 }; }
|
|
8136
7412
|
finally {
|
|
8137
7413
|
try {
|
|
8138
7414
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
8139
7415
|
}
|
|
8140
|
-
finally { if (
|
|
7416
|
+
finally { if (e_67) throw e_67.error; }
|
|
8141
7417
|
}
|
|
8142
7418
|
}
|
|
8143
7419
|
if (status === 200) {
|
|
@@ -8200,7 +7476,7 @@
|
|
|
8200
7476
|
}));
|
|
8201
7477
|
};
|
|
8202
7478
|
TenantInfoApiClient.prototype.processGetMeasureUnitsInfo = function (response) {
|
|
8203
|
-
var
|
|
7479
|
+
var e_68, _a;
|
|
8204
7480
|
var _this = this;
|
|
8205
7481
|
var status = response.status;
|
|
8206
7482
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -8213,12 +7489,12 @@
|
|
|
8213
7489
|
_headers[key] = response.headers.get(key);
|
|
8214
7490
|
}
|
|
8215
7491
|
}
|
|
8216
|
-
catch (
|
|
7492
|
+
catch (e_68_1) { e_68 = { error: e_68_1 }; }
|
|
8217
7493
|
finally {
|
|
8218
7494
|
try {
|
|
8219
7495
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
8220
7496
|
}
|
|
8221
|
-
finally { if (
|
|
7497
|
+
finally { if (e_68) throw e_68.error; }
|
|
8222
7498
|
}
|
|
8223
7499
|
}
|
|
8224
7500
|
if (status === 200) {
|
|
@@ -8281,7 +7557,7 @@
|
|
|
8281
7557
|
}));
|
|
8282
7558
|
};
|
|
8283
7559
|
TenantInfoApiClient.prototype.processGetUsersInfo = function (response) {
|
|
8284
|
-
var
|
|
7560
|
+
var e_69, _a;
|
|
8285
7561
|
var _this = this;
|
|
8286
7562
|
var status = response.status;
|
|
8287
7563
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -8294,12 +7570,12 @@
|
|
|
8294
7570
|
_headers[key] = response.headers.get(key);
|
|
8295
7571
|
}
|
|
8296
7572
|
}
|
|
8297
|
-
catch (
|
|
7573
|
+
catch (e_69_1) { e_69 = { error: e_69_1 }; }
|
|
8298
7574
|
finally {
|
|
8299
7575
|
try {
|
|
8300
7576
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
8301
7577
|
}
|
|
8302
|
-
finally { if (
|
|
7578
|
+
finally { if (e_69) throw e_69.error; }
|
|
8303
7579
|
}
|
|
8304
7580
|
}
|
|
8305
7581
|
if (status === 200) {
|