@aurigma/ng-backoffice-api-client 2.59.1 → 2.62.12

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.
@@ -730,6 +730,7 @@
730
730
  * @param productSpecificationId (optional) Customer's Canvas product specification filter.
731
731
  * @param productId (optional) Customer's Canvas product filter.
732
732
  * @param productLinkId (optional) Customer's Canvas product link filter.
733
+ * @param productBundleId (optional) Customer's Canvas product bundle filter.
733
734
  * @param skip (optional) Defines page start offset from beginning of sorted result list.
734
735
  * @param take (optional) Defines page length (how many consequent items of sorted result list should be taken).
735
736
  * @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC".
@@ -740,7 +741,7 @@
740
741
  * @param tenantId (optional) Tenant identifier.
741
742
  * @return Success
742
743
  */
743
- ProductReferencesManagementApiClient.prototype.getAll = function (storefrontId, productReference, productSpecificationId, productId, productLinkId, skip, take, sorting, search, sku, tags, customFields, tenantId) {
744
+ ProductReferencesManagementApiClient.prototype.getAll = function (storefrontId, productReference, productSpecificationId, productId, productLinkId, productBundleId, skip, take, sorting, search, sku, tags, customFields, tenantId) {
744
745
  var _this = this;
745
746
  var url_ = this.baseUrl + "/api/backoffice/v1/product-references?";
746
747
  if (storefrontId === undefined || storefrontId === null)
@@ -755,6 +756,10 @@
755
756
  url_ += "productId=" + encodeURIComponent("" + productId) + "&";
756
757
  if (productLinkId !== undefined && productLinkId !== null)
757
758
  url_ += "productLinkId=" + encodeURIComponent("" + productLinkId) + "&";
759
+ if (productBundleId === null)
760
+ throw new Error("The parameter 'productBundleId' cannot be null.");
761
+ else if (productBundleId !== undefined)
762
+ url_ += "productBundleId=" + encodeURIComponent("" + productBundleId) + "&";
758
763
  if (skip !== undefined && skip !== null)
759
764
  url_ += "skip=" + encodeURIComponent("" + skip) + "&";
760
765
  if (take !== undefined && take !== null)
@@ -1669,6 +1674,109 @@
1669
1674
  }
1670
1675
  return rxjs.of(null);
1671
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
+ };
1672
1780
  /**
1673
1781
  * Returns a list of product variants.
1674
1782
  * @param id Product identifier.
@@ -1730,7 +1838,7 @@
1730
1838
  }));
1731
1839
  };
1732
1840
  ProductsManagementApiClient.prototype.processGetProductVariants = function (response) {
1733
- var e_12, _a;
1841
+ var e_13, _a;
1734
1842
  var _this = this;
1735
1843
  var status = response.status;
1736
1844
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -1743,12 +1851,12 @@
1743
1851
  _headers[key] = response.headers.get(key);
1744
1852
  }
1745
1853
  }
1746
- catch (e_12_1) { e_12 = { error: e_12_1 }; }
1854
+ catch (e_13_1) { e_13 = { error: e_13_1 }; }
1747
1855
  finally {
1748
1856
  try {
1749
1857
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1750
1858
  }
1751
- finally { if (e_12) throw e_12.error; }
1859
+ finally { if (e_13) throw e_13.error; }
1752
1860
  }
1753
1861
  }
1754
1862
  if (status === 200) {
@@ -1836,7 +1944,7 @@
1836
1944
  }));
1837
1945
  };
1838
1946
  ProductsManagementApiClient.prototype.processGetProductVariant = function (response) {
1839
- var e_13, _a;
1947
+ var e_14, _a;
1840
1948
  var _this = this;
1841
1949
  var status = response.status;
1842
1950
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -1849,12 +1957,12 @@
1849
1957
  _headers[key] = response.headers.get(key);
1850
1958
  }
1851
1959
  }
1852
- catch (e_13_1) { e_13 = { error: e_13_1 }; }
1960
+ catch (e_14_1) { e_14 = { error: e_14_1 }; }
1853
1961
  finally {
1854
1962
  try {
1855
1963
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1856
1964
  }
1857
- finally { if (e_13) throw e_13.error; }
1965
+ finally { if (e_14) throw e_14.error; }
1858
1966
  }
1859
1967
  }
1860
1968
  if (status === 200) {
@@ -1968,7 +2076,7 @@
1968
2076
  }));
1969
2077
  };
1970
2078
  ProductsManagementApiClient.prototype.processGetProductVariantDesigns = function (response) {
1971
- var e_14, _a;
2079
+ var e_15, _a;
1972
2080
  var _this = this;
1973
2081
  var status = response.status;
1974
2082
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -1981,12 +2089,12 @@
1981
2089
  _headers[key] = response.headers.get(key);
1982
2090
  }
1983
2091
  }
1984
- catch (e_14_1) { e_14 = { error: e_14_1 }; }
2092
+ catch (e_15_1) { e_15 = { error: e_15_1 }; }
1985
2093
  finally {
1986
2094
  try {
1987
2095
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1988
2096
  }
1989
- finally { if (e_14) throw e_14.error; }
2097
+ finally { if (e_15) throw e_15.error; }
1990
2098
  }
1991
2099
  }
1992
2100
  if (status === 200) {
@@ -2100,7 +2208,7 @@
2100
2208
  }));
2101
2209
  };
2102
2210
  ProductsManagementApiClient.prototype.processGetProductVariantMockups = function (response) {
2103
- var e_15, _a;
2211
+ var e_16, _a;
2104
2212
  var _this = this;
2105
2213
  var status = response.status;
2106
2214
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2113,12 +2221,12 @@
2113
2221
  _headers[key] = response.headers.get(key);
2114
2222
  }
2115
2223
  }
2116
- catch (e_15_1) { e_15 = { error: e_15_1 }; }
2224
+ catch (e_16_1) { e_16 = { error: e_16_1 }; }
2117
2225
  finally {
2118
2226
  try {
2119
2227
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2120
2228
  }
2121
- finally { if (e_15) throw e_15.error; }
2229
+ finally { if (e_16) throw e_16.error; }
2122
2230
  }
2123
2231
  }
2124
2232
  if (status === 200) {
@@ -2232,7 +2340,7 @@
2232
2340
  }));
2233
2341
  };
2234
2342
  ProductsManagementApiClient.prototype.processGetProductVariantDocuments = function (response) {
2235
- var e_16, _a;
2343
+ var e_17, _a;
2236
2344
  var _this = this;
2237
2345
  var status = response.status;
2238
2346
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2245,12 +2353,12 @@
2245
2353
  _headers[key] = response.headers.get(key);
2246
2354
  }
2247
2355
  }
2248
- catch (e_16_1) { e_16 = { error: e_16_1 }; }
2356
+ catch (e_17_1) { e_17 = { error: e_17_1 }; }
2249
2357
  finally {
2250
2358
  try {
2251
2359
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2252
2360
  }
2253
- finally { if (e_16) throw e_16.error; }
2361
+ finally { if (e_17) throw e_17.error; }
2254
2362
  }
2255
2363
  }
2256
2364
  if (status === 200) {
@@ -2334,7 +2442,7 @@
2334
2442
  }));
2335
2443
  };
2336
2444
  ProductsManagementApiClient.prototype.processSetProductVariantPrice = function (response) {
2337
- var e_17, _a;
2445
+ var e_18, _a;
2338
2446
  var _this = this;
2339
2447
  var status = response.status;
2340
2448
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2347,12 +2455,12 @@
2347
2455
  _headers[key] = response.headers.get(key);
2348
2456
  }
2349
2457
  }
2350
- catch (e_17_1) { e_17 = { error: e_17_1 }; }
2458
+ catch (e_18_1) { e_18 = { error: e_18_1 }; }
2351
2459
  finally {
2352
2460
  try {
2353
2461
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2354
2462
  }
2355
- finally { if (e_17) throw e_17.error; }
2463
+ finally { if (e_18) throw e_18.error; }
2356
2464
  }
2357
2465
  }
2358
2466
  if (status === 200) {
@@ -2441,7 +2549,7 @@
2441
2549
  }));
2442
2550
  };
2443
2551
  ProductsManagementApiClient.prototype.processSetProductVariantAvailability = function (response) {
2444
- var e_18, _a;
2552
+ var e_19, _a;
2445
2553
  var _this = this;
2446
2554
  var status = response.status;
2447
2555
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2454,12 +2562,12 @@
2454
2562
  _headers[key] = response.headers.get(key);
2455
2563
  }
2456
2564
  }
2457
- catch (e_18_1) { e_18 = { error: e_18_1 }; }
2565
+ catch (e_19_1) { e_19 = { error: e_19_1 }; }
2458
2566
  finally {
2459
2567
  try {
2460
2568
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2461
2569
  }
2462
- finally { if (e_18) throw e_18.error; }
2570
+ finally { if (e_19) throw e_19.error; }
2463
2571
  }
2464
2572
  }
2465
2573
  if (status === 200) {
@@ -2548,7 +2656,7 @@
2548
2656
  }));
2549
2657
  };
2550
2658
  ProductsManagementApiClient.prototype.processSetProductVariantSku = function (response) {
2551
- var e_19, _a;
2659
+ var e_20, _a;
2552
2660
  var _this = this;
2553
2661
  var status = response.status;
2554
2662
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2561,12 +2669,12 @@
2561
2669
  _headers[key] = response.headers.get(key);
2562
2670
  }
2563
2671
  }
2564
- catch (e_19_1) { e_19 = { error: e_19_1 }; }
2672
+ catch (e_20_1) { e_20 = { error: e_20_1 }; }
2565
2673
  finally {
2566
2674
  try {
2567
2675
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2568
2676
  }
2569
- finally { if (e_19) throw e_19.error; }
2677
+ finally { if (e_20) throw e_20.error; }
2570
2678
  }
2571
2679
  }
2572
2680
  if (status === 200) {
@@ -2653,7 +2761,7 @@
2653
2761
  }));
2654
2762
  };
2655
2763
  ProductsManagementApiClient.prototype.processImportProducts = function (response) {
2656
- var e_20, _a;
2764
+ var e_21, _a;
2657
2765
  var _this = this;
2658
2766
  var status = response.status;
2659
2767
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2666,12 +2774,12 @@
2666
2774
  _headers[key] = response.headers.get(key);
2667
2775
  }
2668
2776
  }
2669
- catch (e_20_1) { e_20 = { error: e_20_1 }; }
2777
+ catch (e_21_1) { e_21 = { error: e_21_1 }; }
2670
2778
  finally {
2671
2779
  try {
2672
2780
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2673
2781
  }
2674
- finally { if (e_20) throw e_20.error; }
2782
+ finally { if (e_21) throw e_21.error; }
2675
2783
  }
2676
2784
  }
2677
2785
  if (status === 200) {
@@ -2755,7 +2863,7 @@
2755
2863
  }));
2756
2864
  };
2757
2865
  ProductsManagementApiClient.prototype.processCreateDesignsConnections = function (response) {
2758
- var e_21, _a;
2866
+ var e_22, _a;
2759
2867
  var _this = this;
2760
2868
  var status = response.status;
2761
2869
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2768,12 +2876,12 @@
2768
2876
  _headers[key] = response.headers.get(key);
2769
2877
  }
2770
2878
  }
2771
- catch (e_21_1) { e_21 = { error: e_21_1 }; }
2879
+ catch (e_22_1) { e_22 = { error: e_22_1 }; }
2772
2880
  finally {
2773
2881
  try {
2774
2882
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2775
2883
  }
2776
- finally { if (e_21) throw e_21.error; }
2884
+ finally { if (e_22) throw e_22.error; }
2777
2885
  }
2778
2886
  }
2779
2887
  if (status === 200) {
@@ -2855,7 +2963,7 @@
2855
2963
  }));
2856
2964
  };
2857
2965
  ProductsManagementApiClient.prototype.processRemoveDesignsConnections = function (response) {
2858
- var e_22, _a;
2966
+ var e_23, _a;
2859
2967
  var _this = this;
2860
2968
  var status = response.status;
2861
2969
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2868,12 +2976,12 @@
2868
2976
  _headers[key] = response.headers.get(key);
2869
2977
  }
2870
2978
  }
2871
- catch (e_22_1) { e_22 = { error: e_22_1 }; }
2979
+ catch (e_23_1) { e_23 = { error: e_23_1 }; }
2872
2980
  finally {
2873
2981
  try {
2874
2982
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2875
2983
  }
2876
- finally { if (e_22) throw e_22.error; }
2984
+ finally { if (e_23) throw e_23.error; }
2877
2985
  }
2878
2986
  }
2879
2987
  if (status === 200) {
@@ -2955,7 +3063,7 @@
2955
3063
  }));
2956
3064
  };
2957
3065
  ProductsManagementApiClient.prototype.processCreateMockupsConnections = function (response) {
2958
- var e_23, _a;
3066
+ var e_24, _a;
2959
3067
  var _this = this;
2960
3068
  var status = response.status;
2961
3069
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2968,12 +3076,12 @@
2968
3076
  _headers[key] = response.headers.get(key);
2969
3077
  }
2970
3078
  }
2971
- catch (e_23_1) { e_23 = { error: e_23_1 }; }
3079
+ catch (e_24_1) { e_24 = { error: e_24_1 }; }
2972
3080
  finally {
2973
3081
  try {
2974
3082
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2975
3083
  }
2976
- finally { if (e_23) throw e_23.error; }
3084
+ finally { if (e_24) throw e_24.error; }
2977
3085
  }
2978
3086
  }
2979
3087
  if (status === 200) {
@@ -3055,7 +3163,7 @@
3055
3163
  }));
3056
3164
  };
3057
3165
  ProductsManagementApiClient.prototype.processRemoveMockupsConnections = function (response) {
3058
- var e_24, _a;
3166
+ var e_25, _a;
3059
3167
  var _this = this;
3060
3168
  var status = response.status;
3061
3169
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3068,12 +3176,12 @@
3068
3176
  _headers[key] = response.headers.get(key);
3069
3177
  }
3070
3178
  }
3071
- catch (e_24_1) { e_24 = { error: e_24_1 }; }
3179
+ catch (e_25_1) { e_25 = { error: e_25_1 }; }
3072
3180
  finally {
3073
3181
  try {
3074
3182
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3075
3183
  }
3076
- finally { if (e_24) throw e_24.error; }
3184
+ finally { if (e_25) throw e_25.error; }
3077
3185
  }
3078
3186
  }
3079
3187
  if (status === 200) {
@@ -3155,7 +3263,7 @@
3155
3263
  }));
3156
3264
  };
3157
3265
  ProductsManagementApiClient.prototype.processCreateDocumentsConnections = function (response) {
3158
- var e_25, _a;
3266
+ var e_26, _a;
3159
3267
  var _this = this;
3160
3268
  var status = response.status;
3161
3269
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3168,12 +3276,12 @@
3168
3276
  _headers[key] = response.headers.get(key);
3169
3277
  }
3170
3278
  }
3171
- catch (e_25_1) { e_25 = { error: e_25_1 }; }
3279
+ catch (e_26_1) { e_26 = { error: e_26_1 }; }
3172
3280
  finally {
3173
3281
  try {
3174
3282
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3175
3283
  }
3176
- finally { if (e_25) throw e_25.error; }
3284
+ finally { if (e_26) throw e_26.error; }
3177
3285
  }
3178
3286
  }
3179
3287
  if (status === 200) {
@@ -3255,7 +3363,7 @@
3255
3363
  }));
3256
3364
  };
3257
3365
  ProductsManagementApiClient.prototype.processRemoveDocumentsConnections = function (response) {
3258
- var e_26, _a;
3366
+ var e_27, _a;
3259
3367
  var _this = this;
3260
3368
  var status = response.status;
3261
3369
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3268,12 +3376,12 @@
3268
3376
  _headers[key] = response.headers.get(key);
3269
3377
  }
3270
3378
  }
3271
- catch (e_26_1) { e_26 = { error: e_26_1 }; }
3379
+ catch (e_27_1) { e_27 = { error: e_27_1 }; }
3272
3380
  finally {
3273
3381
  try {
3274
3382
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3275
3383
  }
3276
- finally { if (e_26) throw e_26.error; }
3384
+ finally { if (e_27) throw e_27.error; }
3277
3385
  }
3278
3386
  }
3279
3387
  if (status === 200) {
@@ -3358,7 +3466,7 @@
3358
3466
  }));
3359
3467
  };
3360
3468
  ProductsManagementApiClient.prototype.processSetProductImage = function (response) {
3361
- var e_27, _a;
3469
+ var e_28, _a;
3362
3470
  var _this = this;
3363
3471
  var status = response.status;
3364
3472
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3371,12 +3479,12 @@
3371
3479
  _headers[key] = response.headers.get(key);
3372
3480
  }
3373
3481
  }
3374
- catch (e_27_1) { e_27 = { error: e_27_1 }; }
3482
+ catch (e_28_1) { e_28 = { error: e_28_1 }; }
3375
3483
  finally {
3376
3484
  try {
3377
3485
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3378
3486
  }
3379
- finally { if (e_27) throw e_27.error; }
3487
+ finally { if (e_28) throw e_28.error; }
3380
3488
  }
3381
3489
  }
3382
3490
  if (status === 200) {
@@ -3467,7 +3575,7 @@
3467
3575
  }));
3468
3576
  };
3469
3577
  ProductsManagementApiClient.prototype.processGetAvailablePersonalizationWorkflows = function (response) {
3470
- var e_28, _a;
3578
+ var e_29, _a;
3471
3579
  var _this = this;
3472
3580
  var status = response.status;
3473
3581
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3480,12 +3588,12 @@
3480
3588
  _headers[key] = response.headers.get(key);
3481
3589
  }
3482
3590
  }
3483
- catch (e_28_1) { e_28 = { error: e_28_1 }; }
3591
+ catch (e_29_1) { e_29 = { error: e_29_1 }; }
3484
3592
  finally {
3485
3593
  try {
3486
3594
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3487
3595
  }
3488
- finally { if (e_28) throw e_28.error; }
3596
+ finally { if (e_29) throw e_29.error; }
3489
3597
  }
3490
3598
  }
3491
3599
  if (status === 200) {
@@ -3557,7 +3665,7 @@
3557
3665
  }));
3558
3666
  };
3559
3667
  ProductsManagementApiClient.prototype.processGetAvailableProcessingPipelines = function (response) {
3560
- var e_29, _a;
3668
+ var e_30, _a;
3561
3669
  var _this = this;
3562
3670
  var status = response.status;
3563
3671
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3570,12 +3678,12 @@
3570
3678
  _headers[key] = response.headers.get(key);
3571
3679
  }
3572
3680
  }
3573
- catch (e_29_1) { e_29 = { error: e_29_1 }; }
3681
+ catch (e_30_1) { e_30 = { error: e_30_1 }; }
3574
3682
  finally {
3575
3683
  try {
3576
3684
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3577
3685
  }
3578
- finally { if (e_29) throw e_29.error; }
3686
+ finally { if (e_30) throw e_30.error; }
3579
3687
  }
3580
3688
  }
3581
3689
  if (status === 200) {
@@ -3675,7 +3783,7 @@
3675
3783
  }));
3676
3784
  };
3677
3785
  StorefrontsManagementApiClient.prototype.processGetAll = function (response) {
3678
- var e_30, _a;
3786
+ var e_31, _a;
3679
3787
  var _this = this;
3680
3788
  var status = response.status;
3681
3789
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3688,12 +3796,12 @@
3688
3796
  _headers[key] = response.headers.get(key);
3689
3797
  }
3690
3798
  }
3691
- catch (e_30_1) { e_30 = { error: e_30_1 }; }
3799
+ catch (e_31_1) { e_31 = { error: e_31_1 }; }
3692
3800
  finally {
3693
3801
  try {
3694
3802
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3695
3803
  }
3696
- finally { if (e_30) throw e_30.error; }
3804
+ finally { if (e_31) throw e_31.error; }
3697
3805
  }
3698
3806
  }
3699
3807
  if (status === 200) {
@@ -3760,7 +3868,7 @@
3760
3868
  }));
3761
3869
  };
3762
3870
  StorefrontsManagementApiClient.prototype.processGet = function (response) {
3763
- var e_31, _a;
3871
+ var e_32, _a;
3764
3872
  var _this = this;
3765
3873
  var status = response.status;
3766
3874
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3773,12 +3881,12 @@
3773
3881
  _headers[key] = response.headers.get(key);
3774
3882
  }
3775
3883
  }
3776
- catch (e_31_1) { e_31 = { error: e_31_1 }; }
3884
+ catch (e_32_1) { e_32 = { error: e_32_1 }; }
3777
3885
  finally {
3778
3886
  try {
3779
3887
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3780
3888
  }
3781
- finally { if (e_31) throw e_31.error; }
3889
+ finally { if (e_32) throw e_32.error; }
3782
3890
  }
3783
3891
  }
3784
3892
  if (status === 200) {
@@ -3852,7 +3960,7 @@
3852
3960
  }));
3853
3961
  };
3854
3962
  StorefrontsManagementApiClient.prototype.processDelete = function (response) {
3855
- var e_32, _a;
3963
+ var e_33, _a;
3856
3964
  var _this = this;
3857
3965
  var status = response.status;
3858
3966
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3865,12 +3973,12 @@
3865
3973
  _headers[key] = response.headers.get(key);
3866
3974
  }
3867
3975
  }
3868
- catch (e_32_1) { e_32 = { error: e_32_1 }; }
3976
+ catch (e_33_1) { e_33 = { error: e_33_1 }; }
3869
3977
  finally {
3870
3978
  try {
3871
3979
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3872
3980
  }
3873
- finally { if (e_32) throw e_32.error; }
3981
+ finally { if (e_33) throw e_33.error; }
3874
3982
  }
3875
3983
  }
3876
3984
  if (status === 200) {
@@ -3944,7 +4052,7 @@
3944
4052
  }));
3945
4053
  };
3946
4054
  StorefrontsManagementApiClient.prototype.processCreateCustomStorefront = function (response) {
3947
- var e_33, _a;
4055
+ var e_34, _a;
3948
4056
  var _this = this;
3949
4057
  var status = response.status;
3950
4058
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3957,12 +4065,12 @@
3957
4065
  _headers[key] = response.headers.get(key);
3958
4066
  }
3959
4067
  }
3960
- catch (e_33_1) { e_33 = { error: e_33_1 }; }
4068
+ catch (e_34_1) { e_34 = { error: e_34_1 }; }
3961
4069
  finally {
3962
4070
  try {
3963
4071
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3964
4072
  }
3965
- finally { if (e_33) throw e_33.error; }
4073
+ finally { if (e_34) throw e_34.error; }
3966
4074
  }
3967
4075
  }
3968
4076
  if (status === 200) {
@@ -4043,7 +4151,7 @@
4043
4151
  }));
4044
4152
  };
4045
4153
  StorefrontsManagementApiClient.prototype.processGetCustomStorefront = function (response) {
4046
- var e_34, _a;
4154
+ var e_35, _a;
4047
4155
  var _this = this;
4048
4156
  var status = response.status;
4049
4157
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4056,12 +4164,12 @@
4056
4164
  _headers[key] = response.headers.get(key);
4057
4165
  }
4058
4166
  }
4059
- catch (e_34_1) { e_34 = { error: e_34_1 }; }
4167
+ catch (e_35_1) { e_35 = { error: e_35_1 }; }
4060
4168
  finally {
4061
4169
  try {
4062
4170
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4063
4171
  }
4064
- finally { if (e_34) throw e_34.error; }
4172
+ finally { if (e_35) throw e_35.error; }
4065
4173
  }
4066
4174
  }
4067
4175
  if (status === 200) {
@@ -4135,7 +4243,7 @@
4135
4243
  }));
4136
4244
  };
4137
4245
  StorefrontsManagementApiClient.prototype.processCreateNopCommerceStorefront = function (response) {
4138
- var e_35, _a;
4246
+ var e_36, _a;
4139
4247
  var _this = this;
4140
4248
  var status = response.status;
4141
4249
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4148,12 +4256,12 @@
4148
4256
  _headers[key] = response.headers.get(key);
4149
4257
  }
4150
4258
  }
4151
- catch (e_35_1) { e_35 = { error: e_35_1 }; }
4259
+ catch (e_36_1) { e_36 = { error: e_36_1 }; }
4152
4260
  finally {
4153
4261
  try {
4154
4262
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4155
4263
  }
4156
- finally { if (e_35) throw e_35.error; }
4264
+ finally { if (e_36) throw e_36.error; }
4157
4265
  }
4158
4266
  }
4159
4267
  if (status === 200) {
@@ -4234,7 +4342,7 @@
4234
4342
  }));
4235
4343
  };
4236
4344
  StorefrontsManagementApiClient.prototype.processGetNopCommerceStorefront = function (response) {
4237
- var e_36, _a;
4345
+ var e_37, _a;
4238
4346
  var _this = this;
4239
4347
  var status = response.status;
4240
4348
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4247,12 +4355,12 @@
4247
4355
  _headers[key] = response.headers.get(key);
4248
4356
  }
4249
4357
  }
4250
- catch (e_36_1) { e_36 = { error: e_36_1 }; }
4358
+ catch (e_37_1) { e_37 = { error: e_37_1 }; }
4251
4359
  finally {
4252
4360
  try {
4253
4361
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4254
4362
  }
4255
- finally { if (e_36) throw e_36.error; }
4363
+ finally { if (e_37) throw e_37.error; }
4256
4364
  }
4257
4365
  }
4258
4366
  if (status === 200) {
@@ -4326,7 +4434,7 @@
4326
4434
  }));
4327
4435
  };
4328
4436
  StorefrontsManagementApiClient.prototype.processCreateWooCommerceStorefront = function (response) {
4329
- var e_37, _a;
4437
+ var e_38, _a;
4330
4438
  var _this = this;
4331
4439
  var status = response.status;
4332
4440
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4339,12 +4447,12 @@
4339
4447
  _headers[key] = response.headers.get(key);
4340
4448
  }
4341
4449
  }
4342
- catch (e_37_1) { e_37 = { error: e_37_1 }; }
4450
+ catch (e_38_1) { e_38 = { error: e_38_1 }; }
4343
4451
  finally {
4344
4452
  try {
4345
4453
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4346
4454
  }
4347
- finally { if (e_37) throw e_37.error; }
4455
+ finally { if (e_38) throw e_38.error; }
4348
4456
  }
4349
4457
  }
4350
4458
  if (status === 200) {
@@ -4425,7 +4533,7 @@
4425
4533
  }));
4426
4534
  };
4427
4535
  StorefrontsManagementApiClient.prototype.processGetWooCommerceStorefront = function (response) {
4428
- var e_38, _a;
4536
+ var e_39, _a;
4429
4537
  var _this = this;
4430
4538
  var status = response.status;
4431
4539
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4438,12 +4546,12 @@
4438
4546
  _headers[key] = response.headers.get(key);
4439
4547
  }
4440
4548
  }
4441
- catch (e_38_1) { e_38 = { error: e_38_1 }; }
4549
+ catch (e_39_1) { e_39 = { error: e_39_1 }; }
4442
4550
  finally {
4443
4551
  try {
4444
4552
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4445
4553
  }
4446
- finally { if (e_38) throw e_38.error; }
4554
+ finally { if (e_39) throw e_39.error; }
4447
4555
  }
4448
4556
  }
4449
4557
  if (status === 200) {
@@ -4517,7 +4625,7 @@
4517
4625
  }));
4518
4626
  };
4519
4627
  StorefrontsManagementApiClient.prototype.processCreateMagentoStorefront = function (response) {
4520
- var e_39, _a;
4628
+ var e_40, _a;
4521
4629
  var _this = this;
4522
4630
  var status = response.status;
4523
4631
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4530,12 +4638,12 @@
4530
4638
  _headers[key] = response.headers.get(key);
4531
4639
  }
4532
4640
  }
4533
- catch (e_39_1) { e_39 = { error: e_39_1 }; }
4641
+ catch (e_40_1) { e_40 = { error: e_40_1 }; }
4534
4642
  finally {
4535
4643
  try {
4536
4644
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4537
4645
  }
4538
- finally { if (e_39) throw e_39.error; }
4646
+ finally { if (e_40) throw e_40.error; }
4539
4647
  }
4540
4648
  }
4541
4649
  if (status === 200) {
@@ -4616,7 +4724,7 @@
4616
4724
  }));
4617
4725
  };
4618
4726
  StorefrontsManagementApiClient.prototype.processGetMagentoStorefront = function (response) {
4619
- var e_40, _a;
4727
+ var e_41, _a;
4620
4728
  var _this = this;
4621
4729
  var status = response.status;
4622
4730
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4629,12 +4737,12 @@
4629
4737
  _headers[key] = response.headers.get(key);
4630
4738
  }
4631
4739
  }
4632
- catch (e_40_1) { e_40 = { error: e_40_1 }; }
4740
+ catch (e_41_1) { e_41 = { error: e_41_1 }; }
4633
4741
  finally {
4634
4742
  try {
4635
4743
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4636
4744
  }
4637
- finally { if (e_40) throw e_40.error; }
4745
+ finally { if (e_41) throw e_41.error; }
4638
4746
  }
4639
4747
  }
4640
4748
  if (status === 200) {
@@ -4708,7 +4816,7 @@
4708
4816
  }));
4709
4817
  };
4710
4818
  StorefrontsManagementApiClient.prototype.processCreateBigCommerceStorefront = function (response) {
4711
- var e_41, _a;
4819
+ var e_42, _a;
4712
4820
  var _this = this;
4713
4821
  var status = response.status;
4714
4822
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4721,12 +4829,12 @@
4721
4829
  _headers[key] = response.headers.get(key);
4722
4830
  }
4723
4831
  }
4724
- catch (e_41_1) { e_41 = { error: e_41_1 }; }
4832
+ catch (e_42_1) { e_42 = { error: e_42_1 }; }
4725
4833
  finally {
4726
4834
  try {
4727
4835
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4728
4836
  }
4729
- finally { if (e_41) throw e_41.error; }
4837
+ finally { if (e_42) throw e_42.error; }
4730
4838
  }
4731
4839
  }
4732
4840
  if (status === 200) {
@@ -4807,7 +4915,7 @@
4807
4915
  }));
4808
4916
  };
4809
4917
  StorefrontsManagementApiClient.prototype.processGetBigCommerceStorefront = function (response) {
4810
- var e_42, _a;
4918
+ var e_43, _a;
4811
4919
  var _this = this;
4812
4920
  var status = response.status;
4813
4921
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4820,12 +4928,12 @@
4820
4928
  _headers[key] = response.headers.get(key);
4821
4929
  }
4822
4930
  }
4823
- catch (e_42_1) { e_42 = { error: e_42_1 }; }
4931
+ catch (e_43_1) { e_43 = { error: e_43_1 }; }
4824
4932
  finally {
4825
4933
  try {
4826
4934
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4827
4935
  }
4828
- finally { if (e_42) throw e_42.error; }
4936
+ finally { if (e_43) throw e_43.error; }
4829
4937
  }
4830
4938
  }
4831
4939
  if (status === 200) {
@@ -4917,7 +5025,7 @@
4917
5025
  }));
4918
5026
  };
4919
5027
  UsersManagementApiClient.prototype.processGetAll = function (response) {
4920
- var e_43, _a;
5028
+ var e_44, _a;
4921
5029
  var _this = this;
4922
5030
  var status = response.status;
4923
5031
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4930,12 +5038,12 @@
4930
5038
  _headers[key] = response.headers.get(key);
4931
5039
  }
4932
5040
  }
4933
- catch (e_43_1) { e_43 = { error: e_43_1 }; }
5041
+ catch (e_44_1) { e_44 = { error: e_44_1 }; }
4934
5042
  finally {
4935
5043
  try {
4936
5044
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4937
5045
  }
4938
- finally { if (e_43) throw e_43.error; }
5046
+ finally { if (e_44) throw e_44.error; }
4939
5047
  }
4940
5048
  }
4941
5049
  if (status === 200) {
@@ -5002,7 +5110,7 @@
5002
5110
  }));
5003
5111
  };
5004
5112
  UsersManagementApiClient.prototype.processCreate = function (response) {
5005
- var e_44, _a;
5113
+ var e_45, _a;
5006
5114
  var _this = this;
5007
5115
  var status = response.status;
5008
5116
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5015,12 +5123,12 @@
5015
5123
  _headers[key] = response.headers.get(key);
5016
5124
  }
5017
5125
  }
5018
- catch (e_44_1) { e_44 = { error: e_44_1 }; }
5126
+ catch (e_45_1) { e_45 = { error: e_45_1 }; }
5019
5127
  finally {
5020
5128
  try {
5021
5129
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5022
5130
  }
5023
- finally { if (e_44) throw e_44.error; }
5131
+ finally { if (e_45) throw e_45.error; }
5024
5132
  }
5025
5133
  }
5026
5134
  if (status === 200) {
@@ -5094,7 +5202,7 @@
5094
5202
  }));
5095
5203
  };
5096
5204
  UsersManagementApiClient.prototype.processGet = function (response) {
5097
- var e_45, _a;
5205
+ var e_46, _a;
5098
5206
  var _this = this;
5099
5207
  var status = response.status;
5100
5208
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5107,12 +5215,12 @@
5107
5215
  _headers[key] = response.headers.get(key);
5108
5216
  }
5109
5217
  }
5110
- catch (e_45_1) { e_45 = { error: e_45_1 }; }
5218
+ catch (e_46_1) { e_46 = { error: e_46_1 }; }
5111
5219
  finally {
5112
5220
  try {
5113
5221
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5114
5222
  }
5115
- finally { if (e_45) throw e_45.error; }
5223
+ finally { if (e_46) throw e_46.error; }
5116
5224
  }
5117
5225
  }
5118
5226
  if (status === 200) {
@@ -5184,7 +5292,7 @@
5184
5292
  }));
5185
5293
  };
5186
5294
  UsersManagementApiClient.prototype.processDelete = function (response) {
5187
- var e_46, _a;
5295
+ var e_47, _a;
5188
5296
  var status = response.status;
5189
5297
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
5190
5298
  response.error instanceof Blob ? response.error : undefined;
@@ -5196,12 +5304,12 @@
5196
5304
  _headers[key] = response.headers.get(key);
5197
5305
  }
5198
5306
  }
5199
- catch (e_46_1) { e_46 = { error: e_46_1 }; }
5307
+ catch (e_47_1) { e_47 = { error: e_47_1 }; }
5200
5308
  finally {
5201
5309
  try {
5202
5310
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5203
5311
  }
5204
- finally { if (e_46) throw e_46.error; }
5312
+ finally { if (e_47) throw e_47.error; }
5205
5313
  }
5206
5314
  }
5207
5315
  if (status === 200) {
@@ -5274,7 +5382,7 @@
5274
5382
  }));
5275
5383
  };
5276
5384
  UsersManagementApiClient.prototype.processGetAllRoles = function (response) {
5277
- var e_47, _a;
5385
+ var e_48, _a;
5278
5386
  var _this = this;
5279
5387
  var status = response.status;
5280
5388
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5287,12 +5395,12 @@
5287
5395
  _headers[key] = response.headers.get(key);
5288
5396
  }
5289
5397
  }
5290
- catch (e_47_1) { e_47 = { error: e_47_1 }; }
5398
+ catch (e_48_1) { e_48 = { error: e_48_1 }; }
5291
5399
  finally {
5292
5400
  try {
5293
5401
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5294
5402
  }
5295
- finally { if (e_47) throw e_47.error; }
5403
+ finally { if (e_48) throw e_48.error; }
5296
5404
  }
5297
5405
  }
5298
5406
  if (status === 200) {
@@ -5336,6 +5444,7 @@
5336
5444
  ProductReferenceType["ProductSpecification"] = "ProductSpecification";
5337
5445
  ProductReferenceType["Product"] = "Product";
5338
5446
  ProductReferenceType["ProductLink"] = "ProductLink";
5447
+ ProductReferenceType["ProductBundle"] = "ProductBundle";
5339
5448
  })(exports.ProductReferenceType || (exports.ProductReferenceType = {}));
5340
5449
  (function (ConflictType) {
5341
5450
  ConflictType["NameConflict"] = "NameConflict";