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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1674,6 +1674,109 @@
1674
1674
  }
1675
1675
  return rxjs.of(null);
1676
1676
  };
1677
+ /**
1678
+ * Set product options and returns updated options list.
1679
+ * @param id Product identifier.
1680
+ * @param tenantId (optional) Tenant identifier.
1681
+ * @param body (optional)
1682
+ * @return Success
1683
+ */
1684
+ ProductsManagementApiClient.prototype.setProductOptions = function (id, tenantId, body) {
1685
+ var _this = this;
1686
+ var url_ = this.baseUrl + "/api/backoffice/v1/products/{id}/options?";
1687
+ if (id === undefined || id === null)
1688
+ throw new Error("The parameter 'id' must be defined.");
1689
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
1690
+ if (tenantId !== undefined && tenantId !== null)
1691
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
1692
+ url_ = url_.replace(/[?&]$/, "");
1693
+ var content_ = JSON.stringify(body);
1694
+ var options_ = {
1695
+ body: content_,
1696
+ observe: "response",
1697
+ responseType: "blob",
1698
+ headers: new i1.HttpHeaders({
1699
+ "Content-Type": "application/json",
1700
+ "Accept": "application/json"
1701
+ })
1702
+ };
1703
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
1704
+ return _this.http.request("put", url_, transformedOptions_);
1705
+ })).pipe(operators.mergeMap(function (response_) {
1706
+ return _this.transformResult(url_, response_, function (r) { return _this.processSetProductOptions(r); });
1707
+ })).pipe(operators.catchError(function (response_) {
1708
+ if (response_ instanceof i1.HttpResponseBase) {
1709
+ try {
1710
+ return _this.transformResult(url_, response_, function (r) { return _this.processSetProductOptions(r); });
1711
+ }
1712
+ catch (e) {
1713
+ return rxjs.throwError(e);
1714
+ }
1715
+ }
1716
+ else
1717
+ return rxjs.throwError(response_);
1718
+ }));
1719
+ };
1720
+ ProductsManagementApiClient.prototype.processSetProductOptions = function (response) {
1721
+ var e_12, _a;
1722
+ var _this = this;
1723
+ var status = response.status;
1724
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
1725
+ response.error instanceof Blob ? response.error : undefined;
1726
+ var _headers = {};
1727
+ if (response.headers) {
1728
+ try {
1729
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
1730
+ var key = _c.value;
1731
+ _headers[key] = response.headers.get(key);
1732
+ }
1733
+ }
1734
+ catch (e_12_1) { e_12 = { error: e_12_1 }; }
1735
+ finally {
1736
+ try {
1737
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1738
+ }
1739
+ finally { if (e_12) throw e_12.error; }
1740
+ }
1741
+ }
1742
+ if (status === 200) {
1743
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
1744
+ var result200 = null;
1745
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
1746
+ return rxjs.of(result200);
1747
+ }));
1748
+ }
1749
+ else if (status === 404) {
1750
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
1751
+ var result404 = null;
1752
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
1753
+ return throwException("Not Found", status, _responseText, _headers, result404);
1754
+ }));
1755
+ }
1756
+ else if (status === 409) {
1757
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
1758
+ var result409 = null;
1759
+ result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
1760
+ return throwException("Conflict", status, _responseText, _headers, result409);
1761
+ }));
1762
+ }
1763
+ else if (status === 401) {
1764
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
1765
+ return throwException("Unauthorized", status, _responseText, _headers);
1766
+ }));
1767
+ }
1768
+ else if (status === 403) {
1769
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
1770
+ return throwException("Forbidden", status, _responseText, _headers);
1771
+ }));
1772
+ }
1773
+ else if (status !== 200 && status !== 204) {
1774
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
1775
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
1776
+ }));
1777
+ }
1778
+ return rxjs.of(null);
1779
+ };
1677
1780
  /**
1678
1781
  * Returns a list of product variants.
1679
1782
  * @param id Product identifier.
@@ -1735,7 +1838,7 @@
1735
1838
  }));
1736
1839
  };
1737
1840
  ProductsManagementApiClient.prototype.processGetProductVariants = function (response) {
1738
- var e_12, _a;
1841
+ var e_13, _a;
1739
1842
  var _this = this;
1740
1843
  var status = response.status;
1741
1844
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -1748,12 +1851,12 @@
1748
1851
  _headers[key] = response.headers.get(key);
1749
1852
  }
1750
1853
  }
1751
- catch (e_12_1) { e_12 = { error: e_12_1 }; }
1854
+ catch (e_13_1) { e_13 = { error: e_13_1 }; }
1752
1855
  finally {
1753
1856
  try {
1754
1857
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1755
1858
  }
1756
- finally { if (e_12) throw e_12.error; }
1859
+ finally { if (e_13) throw e_13.error; }
1757
1860
  }
1758
1861
  }
1759
1862
  if (status === 200) {
@@ -1841,7 +1944,7 @@
1841
1944
  }));
1842
1945
  };
1843
1946
  ProductsManagementApiClient.prototype.processGetProductVariant = function (response) {
1844
- var e_13, _a;
1947
+ var e_14, _a;
1845
1948
  var _this = this;
1846
1949
  var status = response.status;
1847
1950
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -1854,12 +1957,12 @@
1854
1957
  _headers[key] = response.headers.get(key);
1855
1958
  }
1856
1959
  }
1857
- catch (e_13_1) { e_13 = { error: e_13_1 }; }
1960
+ catch (e_14_1) { e_14 = { error: e_14_1 }; }
1858
1961
  finally {
1859
1962
  try {
1860
1963
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1861
1964
  }
1862
- finally { if (e_13) throw e_13.error; }
1965
+ finally { if (e_14) throw e_14.error; }
1863
1966
  }
1864
1967
  }
1865
1968
  if (status === 200) {
@@ -1900,6 +2003,199 @@
1900
2003
  }
1901
2004
  return rxjs.of(null);
1902
2005
  };
2006
+ /**
2007
+ * Updates product variant resources.
2008
+ * @param id Product identifier.
2009
+ * @param productVersionId (optional) Product version identifier.
2010
+ * @param tenantId (optional) Tenant identifier.
2011
+ * @return Success
2012
+ */
2013
+ ProductsManagementApiClient.prototype.updateProductVariantResources = function (id, productVersionId, tenantId) {
2014
+ var _this = this;
2015
+ var url_ = this.baseUrl + "/api/backoffice/v1/products/{id}/update-variant-resources?";
2016
+ if (id === undefined || id === null)
2017
+ throw new Error("The parameter 'id' must be defined.");
2018
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
2019
+ if (productVersionId !== undefined && productVersionId !== null)
2020
+ url_ += "productVersionId=" + encodeURIComponent("" + productVersionId) + "&";
2021
+ if (tenantId !== undefined && tenantId !== null)
2022
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
2023
+ url_ = url_.replace(/[?&]$/, "");
2024
+ var options_ = {
2025
+ observe: "response",
2026
+ responseType: "blob",
2027
+ headers: new i1.HttpHeaders({})
2028
+ };
2029
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
2030
+ return _this.http.request("post", url_, transformedOptions_);
2031
+ })).pipe(operators.mergeMap(function (response_) {
2032
+ return _this.transformResult(url_, response_, function (r) { return _this.processUpdateProductVariantResources(r); });
2033
+ })).pipe(operators.catchError(function (response_) {
2034
+ if (response_ instanceof i1.HttpResponseBase) {
2035
+ try {
2036
+ return _this.transformResult(url_, response_, function (r) { return _this.processUpdateProductVariantResources(r); });
2037
+ }
2038
+ catch (e) {
2039
+ return rxjs.throwError(e);
2040
+ }
2041
+ }
2042
+ else
2043
+ return rxjs.throwError(response_);
2044
+ }));
2045
+ };
2046
+ ProductsManagementApiClient.prototype.processUpdateProductVariantResources = function (response) {
2047
+ var e_15, _a;
2048
+ var _this = this;
2049
+ var status = response.status;
2050
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
2051
+ response.error instanceof Blob ? response.error : undefined;
2052
+ var _headers = {};
2053
+ if (response.headers) {
2054
+ try {
2055
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
2056
+ var key = _c.value;
2057
+ _headers[key] = response.headers.get(key);
2058
+ }
2059
+ }
2060
+ catch (e_15_1) { e_15 = { error: e_15_1 }; }
2061
+ finally {
2062
+ try {
2063
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2064
+ }
2065
+ finally { if (e_15) throw e_15.error; }
2066
+ }
2067
+ }
2068
+ if (status === 200) {
2069
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2070
+ return rxjs.of(null);
2071
+ }));
2072
+ }
2073
+ else if (status === 404) {
2074
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2075
+ var result404 = null;
2076
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
2077
+ return throwException("Not Found", status, _responseText, _headers, result404);
2078
+ }));
2079
+ }
2080
+ else if (status === 409) {
2081
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2082
+ var result409 = null;
2083
+ result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
2084
+ return throwException("Conflict", status, _responseText, _headers, result409);
2085
+ }));
2086
+ }
2087
+ else if (status === 401) {
2088
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2089
+ return throwException("Unauthorized", status, _responseText, _headers);
2090
+ }));
2091
+ }
2092
+ else if (status === 403) {
2093
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2094
+ return throwException("Forbidden", status, _responseText, _headers);
2095
+ }));
2096
+ }
2097
+ else if (status !== 200 && status !== 204) {
2098
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2099
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
2100
+ }));
2101
+ }
2102
+ return rxjs.of(null);
2103
+ };
2104
+ /**
2105
+ * Validates product variant resources.
2106
+ * @param id Product identifier.
2107
+ * @param tenantId (optional) Tenant identifier.
2108
+ * @return Success
2109
+ */
2110
+ ProductsManagementApiClient.prototype.validateProductVariantResources = function (id, tenantId) {
2111
+ var _this = this;
2112
+ var url_ = this.baseUrl + "/api/backoffice/v1/products/{id}/validate-variant-resources?";
2113
+ if (id === undefined || id === null)
2114
+ throw new Error("The parameter 'id' must be defined.");
2115
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
2116
+ if (tenantId !== undefined && tenantId !== null)
2117
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
2118
+ url_ = url_.replace(/[?&]$/, "");
2119
+ var options_ = {
2120
+ observe: "response",
2121
+ responseType: "blob",
2122
+ headers: new i1.HttpHeaders({})
2123
+ };
2124
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
2125
+ return _this.http.request("post", url_, transformedOptions_);
2126
+ })).pipe(operators.mergeMap(function (response_) {
2127
+ return _this.transformResult(url_, response_, function (r) { return _this.processValidateProductVariantResources(r); });
2128
+ })).pipe(operators.catchError(function (response_) {
2129
+ if (response_ instanceof i1.HttpResponseBase) {
2130
+ try {
2131
+ return _this.transformResult(url_, response_, function (r) { return _this.processValidateProductVariantResources(r); });
2132
+ }
2133
+ catch (e) {
2134
+ return rxjs.throwError(e);
2135
+ }
2136
+ }
2137
+ else
2138
+ return rxjs.throwError(response_);
2139
+ }));
2140
+ };
2141
+ ProductsManagementApiClient.prototype.processValidateProductVariantResources = function (response) {
2142
+ var e_16, _a;
2143
+ var _this = this;
2144
+ var status = response.status;
2145
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
2146
+ response.error instanceof Blob ? response.error : undefined;
2147
+ var _headers = {};
2148
+ if (response.headers) {
2149
+ try {
2150
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
2151
+ var key = _c.value;
2152
+ _headers[key] = response.headers.get(key);
2153
+ }
2154
+ }
2155
+ catch (e_16_1) { e_16 = { error: e_16_1 }; }
2156
+ finally {
2157
+ try {
2158
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2159
+ }
2160
+ finally { if (e_16) throw e_16.error; }
2161
+ }
2162
+ }
2163
+ if (status === 200) {
2164
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2165
+ return rxjs.of(null);
2166
+ }));
2167
+ }
2168
+ else if (status === 404) {
2169
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2170
+ var result404 = null;
2171
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
2172
+ return throwException("Not Found", status, _responseText, _headers, result404);
2173
+ }));
2174
+ }
2175
+ else if (status === 409) {
2176
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2177
+ var result409 = null;
2178
+ result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
2179
+ return throwException("Conflict", status, _responseText, _headers, result409);
2180
+ }));
2181
+ }
2182
+ else if (status === 401) {
2183
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2184
+ return throwException("Unauthorized", status, _responseText, _headers);
2185
+ }));
2186
+ }
2187
+ else if (status === 403) {
2188
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2189
+ return throwException("Forbidden", status, _responseText, _headers);
2190
+ }));
2191
+ }
2192
+ else if (status !== 200 && status !== 204) {
2193
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2194
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
2195
+ }));
2196
+ }
2197
+ return rxjs.of(null);
2198
+ };
1903
2199
  /**
1904
2200
  * Returns a list of product variant designs.
1905
2201
  * @param id Product identifier.
@@ -1973,7 +2269,7 @@
1973
2269
  }));
1974
2270
  };
1975
2271
  ProductsManagementApiClient.prototype.processGetProductVariantDesigns = function (response) {
1976
- var e_14, _a;
2272
+ var e_17, _a;
1977
2273
  var _this = this;
1978
2274
  var status = response.status;
1979
2275
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -1986,12 +2282,12 @@
1986
2282
  _headers[key] = response.headers.get(key);
1987
2283
  }
1988
2284
  }
1989
- catch (e_14_1) { e_14 = { error: e_14_1 }; }
2285
+ catch (e_17_1) { e_17 = { error: e_17_1 }; }
1990
2286
  finally {
1991
2287
  try {
1992
2288
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1993
2289
  }
1994
- finally { if (e_14) throw e_14.error; }
2290
+ finally { if (e_17) throw e_17.error; }
1995
2291
  }
1996
2292
  }
1997
2293
  if (status === 200) {
@@ -2105,7 +2401,139 @@
2105
2401
  }));
2106
2402
  };
2107
2403
  ProductsManagementApiClient.prototype.processGetProductVariantMockups = function (response) {
2108
- var e_15, _a;
2404
+ var e_18, _a;
2405
+ var _this = this;
2406
+ var status = response.status;
2407
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
2408
+ response.error instanceof Blob ? response.error : undefined;
2409
+ var _headers = {};
2410
+ if (response.headers) {
2411
+ try {
2412
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
2413
+ var key = _c.value;
2414
+ _headers[key] = response.headers.get(key);
2415
+ }
2416
+ }
2417
+ catch (e_18_1) { e_18 = { error: e_18_1 }; }
2418
+ finally {
2419
+ try {
2420
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2421
+ }
2422
+ finally { if (e_18) throw e_18.error; }
2423
+ }
2424
+ }
2425
+ if (status === 200) {
2426
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2427
+ var result200 = null;
2428
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
2429
+ return rxjs.of(result200);
2430
+ }));
2431
+ }
2432
+ else if (status === 404) {
2433
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2434
+ var result404 = null;
2435
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
2436
+ return throwException("Not Found", status, _responseText, _headers, result404);
2437
+ }));
2438
+ }
2439
+ else if (status === 409) {
2440
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2441
+ var result409 = null;
2442
+ result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
2443
+ return throwException("Conflict", status, _responseText, _headers, result409);
2444
+ }));
2445
+ }
2446
+ else if (status === 401) {
2447
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2448
+ return throwException("Unauthorized", status, _responseText, _headers);
2449
+ }));
2450
+ }
2451
+ else if (status === 403) {
2452
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2453
+ return throwException("Forbidden", status, _responseText, _headers);
2454
+ }));
2455
+ }
2456
+ else if (status !== 200 && status !== 204) {
2457
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2458
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
2459
+ }));
2460
+ }
2461
+ return rxjs.of(null);
2462
+ };
2463
+ /**
2464
+ * Returns a list of product variant documents.
2465
+ * @param id Product identifier.
2466
+ * @param productVersionId (optional) Product version identifier.
2467
+ * @param productVariantId (optional) Product variant identifier.
2468
+ * @param search (optional) Search string for document name partial match.
2469
+ * @param documentCustomFields (optional) Custom attributes dictionary filter for documents. For example: {"public":"true","name":"my item"}
2470
+ * @param documentPath (optional) Path filter for documents. Subfolders included by default.
2471
+ * @param skip (optional) Defines page start offset from beginning of sorted result list.
2472
+ * @param take (optional) Defines page length (how many consequent items of sorted result list should be taken).
2473
+ * @param options (optional) Defines options filter e.g.: "{ "opt1_id": "opt1_val1_id, opt1_val2_id", "opt2_id": "opt2_val1_id" }".
2474
+ * @param productFilterId (optional) Defines special filter based on product filter with specified identifier.
2475
+ * @param takeAvailableOnly (optional) Defines special filter for available product variants.
2476
+ * @param sku (optional) SKU of linked ecommerce product.
2477
+ * @param tenantId (optional) Tenant identifier.
2478
+ * @return Success
2479
+ */
2480
+ ProductsManagementApiClient.prototype.getProductVariantDocuments = function (id, productVersionId, productVariantId, search, documentCustomFields, documentPath, skip, take, options, productFilterId, takeAvailableOnly, sku, tenantId) {
2481
+ var _this = this;
2482
+ var url_ = this.baseUrl + "/api/backoffice/v1/products/{id}/variant-documents?";
2483
+ if (id === undefined || id === null)
2484
+ throw new Error("The parameter 'id' must be defined.");
2485
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
2486
+ if (productVersionId !== undefined && productVersionId !== null)
2487
+ url_ += "productVersionId=" + encodeURIComponent("" + productVersionId) + "&";
2488
+ if (productVariantId !== undefined && productVariantId !== null)
2489
+ url_ += "productVariantId=" + encodeURIComponent("" + productVariantId) + "&";
2490
+ if (search !== undefined && search !== null)
2491
+ url_ += "search=" + encodeURIComponent("" + search) + "&";
2492
+ if (documentCustomFields !== undefined && documentCustomFields !== null)
2493
+ url_ += "documentCustomFields=" + encodeURIComponent("" + documentCustomFields) + "&";
2494
+ if (documentPath !== undefined && documentPath !== null)
2495
+ url_ += "documentPath=" + encodeURIComponent("" + documentPath) + "&";
2496
+ if (skip !== undefined && skip !== null)
2497
+ url_ += "skip=" + encodeURIComponent("" + skip) + "&";
2498
+ if (take !== undefined && take !== null)
2499
+ url_ += "take=" + encodeURIComponent("" + take) + "&";
2500
+ if (options !== undefined && options !== null)
2501
+ url_ += "options=" + encodeURIComponent("" + options) + "&";
2502
+ if (productFilterId !== undefined && productFilterId !== null)
2503
+ url_ += "productFilterId=" + encodeURIComponent("" + productFilterId) + "&";
2504
+ if (takeAvailableOnly !== undefined && takeAvailableOnly !== null)
2505
+ url_ += "takeAvailableOnly=" + encodeURIComponent("" + takeAvailableOnly) + "&";
2506
+ if (sku !== undefined && sku !== null)
2507
+ url_ += "sku=" + encodeURIComponent("" + sku) + "&";
2508
+ if (tenantId !== undefined && tenantId !== null)
2509
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
2510
+ url_ = url_.replace(/[?&]$/, "");
2511
+ var options_ = {
2512
+ observe: "response",
2513
+ responseType: "blob",
2514
+ headers: new i1.HttpHeaders({
2515
+ "Accept": "application/json"
2516
+ })
2517
+ };
2518
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
2519
+ return _this.http.request("get", url_, transformedOptions_);
2520
+ })).pipe(operators.mergeMap(function (response_) {
2521
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetProductVariantDocuments(r); });
2522
+ })).pipe(operators.catchError(function (response_) {
2523
+ if (response_ instanceof i1.HttpResponseBase) {
2524
+ try {
2525
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetProductVariantDocuments(r); });
2526
+ }
2527
+ catch (e) {
2528
+ return rxjs.throwError(e);
2529
+ }
2530
+ }
2531
+ else
2532
+ return rxjs.throwError(response_);
2533
+ }));
2534
+ };
2535
+ ProductsManagementApiClient.prototype.processGetProductVariantDocuments = function (response) {
2536
+ var e_19, _a;
2109
2537
  var _this = this;
2110
2538
  var status = response.status;
2111
2539
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2118,12 +2546,12 @@
2118
2546
  _headers[key] = response.headers.get(key);
2119
2547
  }
2120
2548
  }
2121
- catch (e_15_1) { e_15 = { error: e_15_1 }; }
2549
+ catch (e_19_1) { e_19 = { error: e_19_1 }; }
2122
2550
  finally {
2123
2551
  try {
2124
2552
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2125
2553
  }
2126
- finally { if (e_15) throw e_15.error; }
2554
+ finally { if (e_19) throw e_19.error; }
2127
2555
  }
2128
2556
  }
2129
2557
  if (status === 200) {
@@ -2165,68 +2593,38 @@
2165
2593
  return rxjs.of(null);
2166
2594
  };
2167
2595
  /**
2168
- * Returns a list of product variant documents.
2596
+ * Set product variants price. Variants identifiers will be changed.
2169
2597
  * @param id Product identifier.
2170
- * @param productVersionId (optional) Product version identifier.
2171
- * @param productVariantId (optional) Product variant identifier.
2172
- * @param search (optional) Search string for document name partial match.
2173
- * @param documentCustomFields (optional) Custom attributes dictionary filter for documents. For example: {"public":"true","name":"my item"}
2174
- * @param documentPath (optional) Path filter for documents. Subfolders included by default.
2175
- * @param skip (optional) Defines page start offset from beginning of sorted result list.
2176
- * @param take (optional) Defines page length (how many consequent items of sorted result list should be taken).
2177
- * @param options (optional) Defines options filter e.g.: "{ "opt1_id": "opt1_val1_id, opt1_val2_id", "opt2_id": "opt2_val1_id" }".
2178
- * @param productFilterId (optional) Defines special filter based on product filter with specified identifier.
2179
- * @param takeAvailableOnly (optional) Defines special filter for available product variants.
2180
- * @param sku (optional) SKU of linked ecommerce product.
2181
2598
  * @param tenantId (optional) Tenant identifier.
2599
+ * @param body (optional) Set product variants price operation parameters.
2182
2600
  * @return Success
2183
2601
  */
2184
- ProductsManagementApiClient.prototype.getProductVariantDocuments = function (id, productVersionId, productVariantId, search, documentCustomFields, documentPath, skip, take, options, productFilterId, takeAvailableOnly, sku, tenantId) {
2602
+ ProductsManagementApiClient.prototype.setProductVariantPrice = function (id, tenantId, body) {
2185
2603
  var _this = this;
2186
- var url_ = this.baseUrl + "/api/backoffice/v1/products/{id}/variant-documents?";
2604
+ var url_ = this.baseUrl + "/api/backoffice/v1/products/{id}/set-variant-price?";
2187
2605
  if (id === undefined || id === null)
2188
2606
  throw new Error("The parameter 'id' must be defined.");
2189
2607
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
2190
- if (productVersionId !== undefined && productVersionId !== null)
2191
- url_ += "productVersionId=" + encodeURIComponent("" + productVersionId) + "&";
2192
- if (productVariantId !== undefined && productVariantId !== null)
2193
- url_ += "productVariantId=" + encodeURIComponent("" + productVariantId) + "&";
2194
- if (search !== undefined && search !== null)
2195
- url_ += "search=" + encodeURIComponent("" + search) + "&";
2196
- if (documentCustomFields !== undefined && documentCustomFields !== null)
2197
- url_ += "documentCustomFields=" + encodeURIComponent("" + documentCustomFields) + "&";
2198
- if (documentPath !== undefined && documentPath !== null)
2199
- url_ += "documentPath=" + encodeURIComponent("" + documentPath) + "&";
2200
- if (skip !== undefined && skip !== null)
2201
- url_ += "skip=" + encodeURIComponent("" + skip) + "&";
2202
- if (take !== undefined && take !== null)
2203
- url_ += "take=" + encodeURIComponent("" + take) + "&";
2204
- if (options !== undefined && options !== null)
2205
- url_ += "options=" + encodeURIComponent("" + options) + "&";
2206
- if (productFilterId !== undefined && productFilterId !== null)
2207
- url_ += "productFilterId=" + encodeURIComponent("" + productFilterId) + "&";
2208
- if (takeAvailableOnly !== undefined && takeAvailableOnly !== null)
2209
- url_ += "takeAvailableOnly=" + encodeURIComponent("" + takeAvailableOnly) + "&";
2210
- if (sku !== undefined && sku !== null)
2211
- url_ += "sku=" + encodeURIComponent("" + sku) + "&";
2212
2608
  if (tenantId !== undefined && tenantId !== null)
2213
2609
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
2214
2610
  url_ = url_.replace(/[?&]$/, "");
2611
+ var content_ = JSON.stringify(body);
2215
2612
  var options_ = {
2613
+ body: content_,
2216
2614
  observe: "response",
2217
2615
  responseType: "blob",
2218
2616
  headers: new i1.HttpHeaders({
2219
- "Accept": "application/json"
2617
+ "Content-Type": "application/json",
2220
2618
  })
2221
2619
  };
2222
2620
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
2223
- return _this.http.request("get", url_, transformedOptions_);
2621
+ return _this.http.request("post", url_, transformedOptions_);
2224
2622
  })).pipe(operators.mergeMap(function (response_) {
2225
- return _this.transformResult(url_, response_, function (r) { return _this.processGetProductVariantDocuments(r); });
2623
+ return _this.transformResult(url_, response_, function (r) { return _this.processSetProductVariantPrice(r); });
2226
2624
  })).pipe(operators.catchError(function (response_) {
2227
2625
  if (response_ instanceof i1.HttpResponseBase) {
2228
2626
  try {
2229
- return _this.transformResult(url_, response_, function (r) { return _this.processGetProductVariantDocuments(r); });
2627
+ return _this.transformResult(url_, response_, function (r) { return _this.processSetProductVariantPrice(r); });
2230
2628
  }
2231
2629
  catch (e) {
2232
2630
  return rxjs.throwError(e);
@@ -2236,8 +2634,8 @@
2236
2634
  return rxjs.throwError(response_);
2237
2635
  }));
2238
2636
  };
2239
- ProductsManagementApiClient.prototype.processGetProductVariantDocuments = function (response) {
2240
- var e_16, _a;
2637
+ ProductsManagementApiClient.prototype.processSetProductVariantPrice = function (response) {
2638
+ var e_20, _a;
2241
2639
  var _this = this;
2242
2640
  var status = response.status;
2243
2641
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2250,19 +2648,24 @@
2250
2648
  _headers[key] = response.headers.get(key);
2251
2649
  }
2252
2650
  }
2253
- catch (e_16_1) { e_16 = { error: e_16_1 }; }
2651
+ catch (e_20_1) { e_20 = { error: e_20_1 }; }
2254
2652
  finally {
2255
2653
  try {
2256
2654
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2257
2655
  }
2258
- finally { if (e_16) throw e_16.error; }
2656
+ finally { if (e_20) throw e_20.error; }
2259
2657
  }
2260
2658
  }
2261
2659
  if (status === 200) {
2262
2660
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2263
- var result200 = null;
2264
- result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
2265
- return rxjs.of(result200);
2661
+ return rxjs.of(null);
2662
+ }));
2663
+ }
2664
+ else if (status === 400) {
2665
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2666
+ var result400 = null;
2667
+ result400 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
2668
+ return throwException("Bad Request", status, _responseText, _headers, result400);
2266
2669
  }));
2267
2670
  }
2268
2671
  else if (status === 404) {
@@ -2297,15 +2700,15 @@
2297
2700
  return rxjs.of(null);
2298
2701
  };
2299
2702
  /**
2300
- * Set product variants price. Variants identifiers will be changed.
2703
+ * Set product variants weight. Variants identifiers will be changed.
2301
2704
  * @param id Product identifier.
2302
2705
  * @param tenantId (optional) Tenant identifier.
2303
- * @param body (optional) Set product variants price operation parameters.
2706
+ * @param body (optional) Set product variants weight operation parameters.
2304
2707
  * @return Success
2305
2708
  */
2306
- ProductsManagementApiClient.prototype.setProductVariantPrice = function (id, tenantId, body) {
2709
+ ProductsManagementApiClient.prototype.setProductVariantWeight = function (id, tenantId, body) {
2307
2710
  var _this = this;
2308
- var url_ = this.baseUrl + "/api/backoffice/v1/products/{id}/set-variant-price?";
2711
+ var url_ = this.baseUrl + "/api/backoffice/v1/products/{id}/set-variant-weight?";
2309
2712
  if (id === undefined || id === null)
2310
2713
  throw new Error("The parameter 'id' must be defined.");
2311
2714
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
@@ -2324,11 +2727,11 @@
2324
2727
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
2325
2728
  return _this.http.request("post", url_, transformedOptions_);
2326
2729
  })).pipe(operators.mergeMap(function (response_) {
2327
- return _this.transformResult(url_, response_, function (r) { return _this.processSetProductVariantPrice(r); });
2730
+ return _this.transformResult(url_, response_, function (r) { return _this.processSetProductVariantWeight(r); });
2328
2731
  })).pipe(operators.catchError(function (response_) {
2329
2732
  if (response_ instanceof i1.HttpResponseBase) {
2330
2733
  try {
2331
- return _this.transformResult(url_, response_, function (r) { return _this.processSetProductVariantPrice(r); });
2734
+ return _this.transformResult(url_, response_, function (r) { return _this.processSetProductVariantWeight(r); });
2332
2735
  }
2333
2736
  catch (e) {
2334
2737
  return rxjs.throwError(e);
@@ -2338,8 +2741,8 @@
2338
2741
  return rxjs.throwError(response_);
2339
2742
  }));
2340
2743
  };
2341
- ProductsManagementApiClient.prototype.processSetProductVariantPrice = function (response) {
2342
- var e_17, _a;
2744
+ ProductsManagementApiClient.prototype.processSetProductVariantWeight = function (response) {
2745
+ var e_21, _a;
2343
2746
  var _this = this;
2344
2747
  var status = response.status;
2345
2748
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2352,12 +2755,12 @@
2352
2755
  _headers[key] = response.headers.get(key);
2353
2756
  }
2354
2757
  }
2355
- catch (e_17_1) { e_17 = { error: e_17_1 }; }
2758
+ catch (e_21_1) { e_21 = { error: e_21_1 }; }
2356
2759
  finally {
2357
2760
  try {
2358
2761
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2359
2762
  }
2360
- finally { if (e_17) throw e_17.error; }
2763
+ finally { if (e_21) throw e_21.error; }
2361
2764
  }
2362
2765
  }
2363
2766
  if (status === 200) {
@@ -2446,7 +2849,7 @@
2446
2849
  }));
2447
2850
  };
2448
2851
  ProductsManagementApiClient.prototype.processSetProductVariantAvailability = function (response) {
2449
- var e_18, _a;
2852
+ var e_22, _a;
2450
2853
  var _this = this;
2451
2854
  var status = response.status;
2452
2855
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2459,12 +2862,12 @@
2459
2862
  _headers[key] = response.headers.get(key);
2460
2863
  }
2461
2864
  }
2462
- catch (e_18_1) { e_18 = { error: e_18_1 }; }
2865
+ catch (e_22_1) { e_22 = { error: e_22_1 }; }
2463
2866
  finally {
2464
2867
  try {
2465
2868
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2466
2869
  }
2467
- finally { if (e_18) throw e_18.error; }
2870
+ finally { if (e_22) throw e_22.error; }
2468
2871
  }
2469
2872
  }
2470
2873
  if (status === 200) {
@@ -2553,7 +2956,7 @@
2553
2956
  }));
2554
2957
  };
2555
2958
  ProductsManagementApiClient.prototype.processSetProductVariantSku = function (response) {
2556
- var e_19, _a;
2959
+ var e_23, _a;
2557
2960
  var _this = this;
2558
2961
  var status = response.status;
2559
2962
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2566,12 +2969,12 @@
2566
2969
  _headers[key] = response.headers.get(key);
2567
2970
  }
2568
2971
  }
2569
- catch (e_19_1) { e_19 = { error: e_19_1 }; }
2972
+ catch (e_23_1) { e_23 = { error: e_23_1 }; }
2570
2973
  finally {
2571
2974
  try {
2572
2975
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2573
2976
  }
2574
- finally { if (e_19) throw e_19.error; }
2977
+ finally { if (e_23) throw e_23.error; }
2575
2978
  }
2576
2979
  }
2577
2980
  if (status === 200) {
@@ -2658,7 +3061,7 @@
2658
3061
  }));
2659
3062
  };
2660
3063
  ProductsManagementApiClient.prototype.processImportProducts = function (response) {
2661
- var e_20, _a;
3064
+ var e_24, _a;
2662
3065
  var _this = this;
2663
3066
  var status = response.status;
2664
3067
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2671,12 +3074,12 @@
2671
3074
  _headers[key] = response.headers.get(key);
2672
3075
  }
2673
3076
  }
2674
- catch (e_20_1) { e_20 = { error: e_20_1 }; }
3077
+ catch (e_24_1) { e_24 = { error: e_24_1 }; }
2675
3078
  finally {
2676
3079
  try {
2677
3080
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2678
3081
  }
2679
- finally { if (e_20) throw e_20.error; }
3082
+ finally { if (e_24) throw e_24.error; }
2680
3083
  }
2681
3084
  }
2682
3085
  if (status === 200) {
@@ -2760,7 +3163,7 @@
2760
3163
  }));
2761
3164
  };
2762
3165
  ProductsManagementApiClient.prototype.processCreateDesignsConnections = function (response) {
2763
- var e_21, _a;
3166
+ var e_25, _a;
2764
3167
  var _this = this;
2765
3168
  var status = response.status;
2766
3169
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2773,12 +3176,12 @@
2773
3176
  _headers[key] = response.headers.get(key);
2774
3177
  }
2775
3178
  }
2776
- catch (e_21_1) { e_21 = { error: e_21_1 }; }
3179
+ catch (e_25_1) { e_25 = { error: e_25_1 }; }
2777
3180
  finally {
2778
3181
  try {
2779
3182
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2780
3183
  }
2781
- finally { if (e_21) throw e_21.error; }
3184
+ finally { if (e_25) throw e_25.error; }
2782
3185
  }
2783
3186
  }
2784
3187
  if (status === 200) {
@@ -2860,7 +3263,7 @@
2860
3263
  }));
2861
3264
  };
2862
3265
  ProductsManagementApiClient.prototype.processRemoveDesignsConnections = function (response) {
2863
- var e_22, _a;
3266
+ var e_26, _a;
2864
3267
  var _this = this;
2865
3268
  var status = response.status;
2866
3269
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2873,12 +3276,12 @@
2873
3276
  _headers[key] = response.headers.get(key);
2874
3277
  }
2875
3278
  }
2876
- catch (e_22_1) { e_22 = { error: e_22_1 }; }
3279
+ catch (e_26_1) { e_26 = { error: e_26_1 }; }
2877
3280
  finally {
2878
3281
  try {
2879
3282
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2880
3283
  }
2881
- finally { if (e_22) throw e_22.error; }
3284
+ finally { if (e_26) throw e_26.error; }
2882
3285
  }
2883
3286
  }
2884
3287
  if (status === 200) {
@@ -2960,7 +3363,7 @@
2960
3363
  }));
2961
3364
  };
2962
3365
  ProductsManagementApiClient.prototype.processCreateMockupsConnections = function (response) {
2963
- var e_23, _a;
3366
+ var e_27, _a;
2964
3367
  var _this = this;
2965
3368
  var status = response.status;
2966
3369
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2973,12 +3376,12 @@
2973
3376
  _headers[key] = response.headers.get(key);
2974
3377
  }
2975
3378
  }
2976
- catch (e_23_1) { e_23 = { error: e_23_1 }; }
3379
+ catch (e_27_1) { e_27 = { error: e_27_1 }; }
2977
3380
  finally {
2978
3381
  try {
2979
3382
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2980
3383
  }
2981
- finally { if (e_23) throw e_23.error; }
3384
+ finally { if (e_27) throw e_27.error; }
2982
3385
  }
2983
3386
  }
2984
3387
  if (status === 200) {
@@ -3060,7 +3463,7 @@
3060
3463
  }));
3061
3464
  };
3062
3465
  ProductsManagementApiClient.prototype.processRemoveMockupsConnections = function (response) {
3063
- var e_24, _a;
3466
+ var e_28, _a;
3064
3467
  var _this = this;
3065
3468
  var status = response.status;
3066
3469
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3073,12 +3476,12 @@
3073
3476
  _headers[key] = response.headers.get(key);
3074
3477
  }
3075
3478
  }
3076
- catch (e_24_1) { e_24 = { error: e_24_1 }; }
3479
+ catch (e_28_1) { e_28 = { error: e_28_1 }; }
3077
3480
  finally {
3078
3481
  try {
3079
3482
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3080
3483
  }
3081
- finally { if (e_24) throw e_24.error; }
3484
+ finally { if (e_28) throw e_28.error; }
3082
3485
  }
3083
3486
  }
3084
3487
  if (status === 200) {
@@ -3160,7 +3563,7 @@
3160
3563
  }));
3161
3564
  };
3162
3565
  ProductsManagementApiClient.prototype.processCreateDocumentsConnections = function (response) {
3163
- var e_25, _a;
3566
+ var e_29, _a;
3164
3567
  var _this = this;
3165
3568
  var status = response.status;
3166
3569
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3173,12 +3576,12 @@
3173
3576
  _headers[key] = response.headers.get(key);
3174
3577
  }
3175
3578
  }
3176
- catch (e_25_1) { e_25 = { error: e_25_1 }; }
3579
+ catch (e_29_1) { e_29 = { error: e_29_1 }; }
3177
3580
  finally {
3178
3581
  try {
3179
3582
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3180
3583
  }
3181
- finally { if (e_25) throw e_25.error; }
3584
+ finally { if (e_29) throw e_29.error; }
3182
3585
  }
3183
3586
  }
3184
3587
  if (status === 200) {
@@ -3260,7 +3663,7 @@
3260
3663
  }));
3261
3664
  };
3262
3665
  ProductsManagementApiClient.prototype.processRemoveDocumentsConnections = function (response) {
3263
- var e_26, _a;
3666
+ var e_30, _a;
3264
3667
  var _this = this;
3265
3668
  var status = response.status;
3266
3669
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3273,12 +3676,12 @@
3273
3676
  _headers[key] = response.headers.get(key);
3274
3677
  }
3275
3678
  }
3276
- catch (e_26_1) { e_26 = { error: e_26_1 }; }
3679
+ catch (e_30_1) { e_30 = { error: e_30_1 }; }
3277
3680
  finally {
3278
3681
  try {
3279
3682
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3280
3683
  }
3281
- finally { if (e_26) throw e_26.error; }
3684
+ finally { if (e_30) throw e_30.error; }
3282
3685
  }
3283
3686
  }
3284
3687
  if (status === 200) {
@@ -3363,7 +3766,7 @@
3363
3766
  }));
3364
3767
  };
3365
3768
  ProductsManagementApiClient.prototype.processSetProductImage = function (response) {
3366
- var e_27, _a;
3769
+ var e_31, _a;
3367
3770
  var _this = this;
3368
3771
  var status = response.status;
3369
3772
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3376,12 +3779,12 @@
3376
3779
  _headers[key] = response.headers.get(key);
3377
3780
  }
3378
3781
  }
3379
- catch (e_27_1) { e_27 = { error: e_27_1 }; }
3782
+ catch (e_31_1) { e_31 = { error: e_31_1 }; }
3380
3783
  finally {
3381
3784
  try {
3382
3785
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3383
3786
  }
3384
- finally { if (e_27) throw e_27.error; }
3787
+ finally { if (e_31) throw e_31.error; }
3385
3788
  }
3386
3789
  }
3387
3790
  if (status === 200) {
@@ -3472,7 +3875,7 @@
3472
3875
  }));
3473
3876
  };
3474
3877
  ProductsManagementApiClient.prototype.processGetAvailablePersonalizationWorkflows = function (response) {
3475
- var e_28, _a;
3878
+ var e_32, _a;
3476
3879
  var _this = this;
3477
3880
  var status = response.status;
3478
3881
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3485,12 +3888,12 @@
3485
3888
  _headers[key] = response.headers.get(key);
3486
3889
  }
3487
3890
  }
3488
- catch (e_28_1) { e_28 = { error: e_28_1 }; }
3891
+ catch (e_32_1) { e_32 = { error: e_32_1 }; }
3489
3892
  finally {
3490
3893
  try {
3491
3894
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3492
3895
  }
3493
- finally { if (e_28) throw e_28.error; }
3896
+ finally { if (e_32) throw e_32.error; }
3494
3897
  }
3495
3898
  }
3496
3899
  if (status === 200) {
@@ -3562,7 +3965,7 @@
3562
3965
  }));
3563
3966
  };
3564
3967
  ProductsManagementApiClient.prototype.processGetAvailableProcessingPipelines = function (response) {
3565
- var e_29, _a;
3968
+ var e_33, _a;
3566
3969
  var _this = this;
3567
3970
  var status = response.status;
3568
3971
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3575,12 +3978,12 @@
3575
3978
  _headers[key] = response.headers.get(key);
3576
3979
  }
3577
3980
  }
3578
- catch (e_29_1) { e_29 = { error: e_29_1 }; }
3981
+ catch (e_33_1) { e_33 = { error: e_33_1 }; }
3579
3982
  finally {
3580
3983
  try {
3581
3984
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3582
3985
  }
3583
- finally { if (e_29) throw e_29.error; }
3986
+ finally { if (e_33) throw e_33.error; }
3584
3987
  }
3585
3988
  }
3586
3989
  if (status === 200) {
@@ -3680,7 +4083,7 @@
3680
4083
  }));
3681
4084
  };
3682
4085
  StorefrontsManagementApiClient.prototype.processGetAll = function (response) {
3683
- var e_30, _a;
4086
+ var e_34, _a;
3684
4087
  var _this = this;
3685
4088
  var status = response.status;
3686
4089
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3693,12 +4096,12 @@
3693
4096
  _headers[key] = response.headers.get(key);
3694
4097
  }
3695
4098
  }
3696
- catch (e_30_1) { e_30 = { error: e_30_1 }; }
4099
+ catch (e_34_1) { e_34 = { error: e_34_1 }; }
3697
4100
  finally {
3698
4101
  try {
3699
4102
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3700
4103
  }
3701
- finally { if (e_30) throw e_30.error; }
4104
+ finally { if (e_34) throw e_34.error; }
3702
4105
  }
3703
4106
  }
3704
4107
  if (status === 200) {
@@ -3765,7 +4168,7 @@
3765
4168
  }));
3766
4169
  };
3767
4170
  StorefrontsManagementApiClient.prototype.processGet = function (response) {
3768
- var e_31, _a;
4171
+ var e_35, _a;
3769
4172
  var _this = this;
3770
4173
  var status = response.status;
3771
4174
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3778,12 +4181,12 @@
3778
4181
  _headers[key] = response.headers.get(key);
3779
4182
  }
3780
4183
  }
3781
- catch (e_31_1) { e_31 = { error: e_31_1 }; }
4184
+ catch (e_35_1) { e_35 = { error: e_35_1 }; }
3782
4185
  finally {
3783
4186
  try {
3784
4187
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3785
4188
  }
3786
- finally { if (e_31) throw e_31.error; }
4189
+ finally { if (e_35) throw e_35.error; }
3787
4190
  }
3788
4191
  }
3789
4192
  if (status === 200) {
@@ -3857,7 +4260,7 @@
3857
4260
  }));
3858
4261
  };
3859
4262
  StorefrontsManagementApiClient.prototype.processDelete = function (response) {
3860
- var e_32, _a;
4263
+ var e_36, _a;
3861
4264
  var _this = this;
3862
4265
  var status = response.status;
3863
4266
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3870,12 +4273,12 @@
3870
4273
  _headers[key] = response.headers.get(key);
3871
4274
  }
3872
4275
  }
3873
- catch (e_32_1) { e_32 = { error: e_32_1 }; }
4276
+ catch (e_36_1) { e_36 = { error: e_36_1 }; }
3874
4277
  finally {
3875
4278
  try {
3876
4279
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3877
4280
  }
3878
- finally { if (e_32) throw e_32.error; }
4281
+ finally { if (e_36) throw e_36.error; }
3879
4282
  }
3880
4283
  }
3881
4284
  if (status === 200) {
@@ -3949,7 +4352,7 @@
3949
4352
  }));
3950
4353
  };
3951
4354
  StorefrontsManagementApiClient.prototype.processCreateCustomStorefront = function (response) {
3952
- var e_33, _a;
4355
+ var e_37, _a;
3953
4356
  var _this = this;
3954
4357
  var status = response.status;
3955
4358
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3962,12 +4365,12 @@
3962
4365
  _headers[key] = response.headers.get(key);
3963
4366
  }
3964
4367
  }
3965
- catch (e_33_1) { e_33 = { error: e_33_1 }; }
4368
+ catch (e_37_1) { e_37 = { error: e_37_1 }; }
3966
4369
  finally {
3967
4370
  try {
3968
4371
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3969
4372
  }
3970
- finally { if (e_33) throw e_33.error; }
4373
+ finally { if (e_37) throw e_37.error; }
3971
4374
  }
3972
4375
  }
3973
4376
  if (status === 200) {
@@ -4048,7 +4451,7 @@
4048
4451
  }));
4049
4452
  };
4050
4453
  StorefrontsManagementApiClient.prototype.processGetCustomStorefront = function (response) {
4051
- var e_34, _a;
4454
+ var e_38, _a;
4052
4455
  var _this = this;
4053
4456
  var status = response.status;
4054
4457
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4061,12 +4464,12 @@
4061
4464
  _headers[key] = response.headers.get(key);
4062
4465
  }
4063
4466
  }
4064
- catch (e_34_1) { e_34 = { error: e_34_1 }; }
4467
+ catch (e_38_1) { e_38 = { error: e_38_1 }; }
4065
4468
  finally {
4066
4469
  try {
4067
4470
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4068
4471
  }
4069
- finally { if (e_34) throw e_34.error; }
4472
+ finally { if (e_38) throw e_38.error; }
4070
4473
  }
4071
4474
  }
4072
4475
  if (status === 200) {
@@ -4140,7 +4543,7 @@
4140
4543
  }));
4141
4544
  };
4142
4545
  StorefrontsManagementApiClient.prototype.processCreateNopCommerceStorefront = function (response) {
4143
- var e_35, _a;
4546
+ var e_39, _a;
4144
4547
  var _this = this;
4145
4548
  var status = response.status;
4146
4549
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4153,12 +4556,12 @@
4153
4556
  _headers[key] = response.headers.get(key);
4154
4557
  }
4155
4558
  }
4156
- catch (e_35_1) { e_35 = { error: e_35_1 }; }
4559
+ catch (e_39_1) { e_39 = { error: e_39_1 }; }
4157
4560
  finally {
4158
4561
  try {
4159
4562
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4160
4563
  }
4161
- finally { if (e_35) throw e_35.error; }
4564
+ finally { if (e_39) throw e_39.error; }
4162
4565
  }
4163
4566
  }
4164
4567
  if (status === 200) {
@@ -4239,7 +4642,7 @@
4239
4642
  }));
4240
4643
  };
4241
4644
  StorefrontsManagementApiClient.prototype.processGetNopCommerceStorefront = function (response) {
4242
- var e_36, _a;
4645
+ var e_40, _a;
4243
4646
  var _this = this;
4244
4647
  var status = response.status;
4245
4648
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4252,12 +4655,12 @@
4252
4655
  _headers[key] = response.headers.get(key);
4253
4656
  }
4254
4657
  }
4255
- catch (e_36_1) { e_36 = { error: e_36_1 }; }
4658
+ catch (e_40_1) { e_40 = { error: e_40_1 }; }
4256
4659
  finally {
4257
4660
  try {
4258
4661
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4259
4662
  }
4260
- finally { if (e_36) throw e_36.error; }
4663
+ finally { if (e_40) throw e_40.error; }
4261
4664
  }
4262
4665
  }
4263
4666
  if (status === 200) {
@@ -4331,7 +4734,7 @@
4331
4734
  }));
4332
4735
  };
4333
4736
  StorefrontsManagementApiClient.prototype.processCreateWooCommerceStorefront = function (response) {
4334
- var e_37, _a;
4737
+ var e_41, _a;
4335
4738
  var _this = this;
4336
4739
  var status = response.status;
4337
4740
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4344,12 +4747,12 @@
4344
4747
  _headers[key] = response.headers.get(key);
4345
4748
  }
4346
4749
  }
4347
- catch (e_37_1) { e_37 = { error: e_37_1 }; }
4750
+ catch (e_41_1) { e_41 = { error: e_41_1 }; }
4348
4751
  finally {
4349
4752
  try {
4350
4753
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4351
4754
  }
4352
- finally { if (e_37) throw e_37.error; }
4755
+ finally { if (e_41) throw e_41.error; }
4353
4756
  }
4354
4757
  }
4355
4758
  if (status === 200) {
@@ -4430,7 +4833,7 @@
4430
4833
  }));
4431
4834
  };
4432
4835
  StorefrontsManagementApiClient.prototype.processGetWooCommerceStorefront = function (response) {
4433
- var e_38, _a;
4836
+ var e_42, _a;
4434
4837
  var _this = this;
4435
4838
  var status = response.status;
4436
4839
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4443,12 +4846,12 @@
4443
4846
  _headers[key] = response.headers.get(key);
4444
4847
  }
4445
4848
  }
4446
- catch (e_38_1) { e_38 = { error: e_38_1 }; }
4849
+ catch (e_42_1) { e_42 = { error: e_42_1 }; }
4447
4850
  finally {
4448
4851
  try {
4449
4852
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4450
4853
  }
4451
- finally { if (e_38) throw e_38.error; }
4854
+ finally { if (e_42) throw e_42.error; }
4452
4855
  }
4453
4856
  }
4454
4857
  if (status === 200) {
@@ -4522,7 +4925,7 @@
4522
4925
  }));
4523
4926
  };
4524
4927
  StorefrontsManagementApiClient.prototype.processCreateMagentoStorefront = function (response) {
4525
- var e_39, _a;
4928
+ var e_43, _a;
4526
4929
  var _this = this;
4527
4930
  var status = response.status;
4528
4931
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4535,12 +4938,12 @@
4535
4938
  _headers[key] = response.headers.get(key);
4536
4939
  }
4537
4940
  }
4538
- catch (e_39_1) { e_39 = { error: e_39_1 }; }
4941
+ catch (e_43_1) { e_43 = { error: e_43_1 }; }
4539
4942
  finally {
4540
4943
  try {
4541
4944
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4542
4945
  }
4543
- finally { if (e_39) throw e_39.error; }
4946
+ finally { if (e_43) throw e_43.error; }
4544
4947
  }
4545
4948
  }
4546
4949
  if (status === 200) {
@@ -4621,7 +5024,7 @@
4621
5024
  }));
4622
5025
  };
4623
5026
  StorefrontsManagementApiClient.prototype.processGetMagentoStorefront = function (response) {
4624
- var e_40, _a;
5027
+ var e_44, _a;
4625
5028
  var _this = this;
4626
5029
  var status = response.status;
4627
5030
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4634,12 +5037,12 @@
4634
5037
  _headers[key] = response.headers.get(key);
4635
5038
  }
4636
5039
  }
4637
- catch (e_40_1) { e_40 = { error: e_40_1 }; }
5040
+ catch (e_44_1) { e_44 = { error: e_44_1 }; }
4638
5041
  finally {
4639
5042
  try {
4640
5043
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4641
5044
  }
4642
- finally { if (e_40) throw e_40.error; }
5045
+ finally { if (e_44) throw e_44.error; }
4643
5046
  }
4644
5047
  }
4645
5048
  if (status === 200) {
@@ -4713,7 +5116,7 @@
4713
5116
  }));
4714
5117
  };
4715
5118
  StorefrontsManagementApiClient.prototype.processCreateBigCommerceStorefront = function (response) {
4716
- var e_41, _a;
5119
+ var e_45, _a;
4717
5120
  var _this = this;
4718
5121
  var status = response.status;
4719
5122
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4726,12 +5129,12 @@
4726
5129
  _headers[key] = response.headers.get(key);
4727
5130
  }
4728
5131
  }
4729
- catch (e_41_1) { e_41 = { error: e_41_1 }; }
5132
+ catch (e_45_1) { e_45 = { error: e_45_1 }; }
4730
5133
  finally {
4731
5134
  try {
4732
5135
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4733
5136
  }
4734
- finally { if (e_41) throw e_41.error; }
5137
+ finally { if (e_45) throw e_45.error; }
4735
5138
  }
4736
5139
  }
4737
5140
  if (status === 200) {
@@ -4812,7 +5215,7 @@
4812
5215
  }));
4813
5216
  };
4814
5217
  StorefrontsManagementApiClient.prototype.processGetBigCommerceStorefront = function (response) {
4815
- var e_42, _a;
5218
+ var e_46, _a;
4816
5219
  var _this = this;
4817
5220
  var status = response.status;
4818
5221
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4825,12 +5228,12 @@
4825
5228
  _headers[key] = response.headers.get(key);
4826
5229
  }
4827
5230
  }
4828
- catch (e_42_1) { e_42 = { error: e_42_1 }; }
5231
+ catch (e_46_1) { e_46 = { error: e_46_1 }; }
4829
5232
  finally {
4830
5233
  try {
4831
5234
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4832
5235
  }
4833
- finally { if (e_42) throw e_42.error; }
5236
+ finally { if (e_46) throw e_46.error; }
4834
5237
  }
4835
5238
  }
4836
5239
  if (status === 200) {
@@ -4922,7 +5325,7 @@
4922
5325
  }));
4923
5326
  };
4924
5327
  UsersManagementApiClient.prototype.processGetAll = function (response) {
4925
- var e_43, _a;
5328
+ var e_47, _a;
4926
5329
  var _this = this;
4927
5330
  var status = response.status;
4928
5331
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4935,12 +5338,12 @@
4935
5338
  _headers[key] = response.headers.get(key);
4936
5339
  }
4937
5340
  }
4938
- catch (e_43_1) { e_43 = { error: e_43_1 }; }
5341
+ catch (e_47_1) { e_47 = { error: e_47_1 }; }
4939
5342
  finally {
4940
5343
  try {
4941
5344
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4942
5345
  }
4943
- finally { if (e_43) throw e_43.error; }
5346
+ finally { if (e_47) throw e_47.error; }
4944
5347
  }
4945
5348
  }
4946
5349
  if (status === 200) {
@@ -5007,7 +5410,7 @@
5007
5410
  }));
5008
5411
  };
5009
5412
  UsersManagementApiClient.prototype.processCreate = function (response) {
5010
- var e_44, _a;
5413
+ var e_48, _a;
5011
5414
  var _this = this;
5012
5415
  var status = response.status;
5013
5416
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5020,12 +5423,12 @@
5020
5423
  _headers[key] = response.headers.get(key);
5021
5424
  }
5022
5425
  }
5023
- catch (e_44_1) { e_44 = { error: e_44_1 }; }
5426
+ catch (e_48_1) { e_48 = { error: e_48_1 }; }
5024
5427
  finally {
5025
5428
  try {
5026
5429
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5027
5430
  }
5028
- finally { if (e_44) throw e_44.error; }
5431
+ finally { if (e_48) throw e_48.error; }
5029
5432
  }
5030
5433
  }
5031
5434
  if (status === 200) {
@@ -5099,7 +5502,7 @@
5099
5502
  }));
5100
5503
  };
5101
5504
  UsersManagementApiClient.prototype.processGet = function (response) {
5102
- var e_45, _a;
5505
+ var e_49, _a;
5103
5506
  var _this = this;
5104
5507
  var status = response.status;
5105
5508
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5112,12 +5515,12 @@
5112
5515
  _headers[key] = response.headers.get(key);
5113
5516
  }
5114
5517
  }
5115
- catch (e_45_1) { e_45 = { error: e_45_1 }; }
5518
+ catch (e_49_1) { e_49 = { error: e_49_1 }; }
5116
5519
  finally {
5117
5520
  try {
5118
5521
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5119
5522
  }
5120
- finally { if (e_45) throw e_45.error; }
5523
+ finally { if (e_49) throw e_49.error; }
5121
5524
  }
5122
5525
  }
5123
5526
  if (status === 200) {
@@ -5189,7 +5592,7 @@
5189
5592
  }));
5190
5593
  };
5191
5594
  UsersManagementApiClient.prototype.processDelete = function (response) {
5192
- var e_46, _a;
5595
+ var e_50, _a;
5193
5596
  var status = response.status;
5194
5597
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
5195
5598
  response.error instanceof Blob ? response.error : undefined;
@@ -5201,12 +5604,12 @@
5201
5604
  _headers[key] = response.headers.get(key);
5202
5605
  }
5203
5606
  }
5204
- catch (e_46_1) { e_46 = { error: e_46_1 }; }
5607
+ catch (e_50_1) { e_50 = { error: e_50_1 }; }
5205
5608
  finally {
5206
5609
  try {
5207
5610
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5208
5611
  }
5209
- finally { if (e_46) throw e_46.error; }
5612
+ finally { if (e_50) throw e_50.error; }
5210
5613
  }
5211
5614
  }
5212
5615
  if (status === 200) {
@@ -5279,7 +5682,7 @@
5279
5682
  }));
5280
5683
  };
5281
5684
  UsersManagementApiClient.prototype.processGetAllRoles = function (response) {
5282
- var e_47, _a;
5685
+ var e_51, _a;
5283
5686
  var _this = this;
5284
5687
  var status = response.status;
5285
5688
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5292,12 +5695,12 @@
5292
5695
  _headers[key] = response.headers.get(key);
5293
5696
  }
5294
5697
  }
5295
- catch (e_47_1) { e_47 = { error: e_47_1 }; }
5698
+ catch (e_51_1) { e_51 = { error: e_51_1 }; }
5296
5699
  finally {
5297
5700
  try {
5298
5701
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5299
5702
  }
5300
- finally { if (e_47) throw e_47.error; }
5703
+ finally { if (e_51) throw e_51.error; }
5301
5704
  }
5302
5705
  }
5303
5706
  if (status === 200) {