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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2003,6 +2003,199 @@
2003
2003
  }
2004
2004
  return rxjs.of(null);
2005
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
+ };
2006
2199
  /**
2007
2200
  * Returns a list of product variant designs.
2008
2201
  * @param id Product identifier.
@@ -2076,7 +2269,7 @@
2076
2269
  }));
2077
2270
  };
2078
2271
  ProductsManagementApiClient.prototype.processGetProductVariantDesigns = function (response) {
2079
- var e_15, _a;
2272
+ var e_17, _a;
2080
2273
  var _this = this;
2081
2274
  var status = response.status;
2082
2275
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2089,12 +2282,12 @@
2089
2282
  _headers[key] = response.headers.get(key);
2090
2283
  }
2091
2284
  }
2092
- catch (e_15_1) { e_15 = { error: e_15_1 }; }
2285
+ catch (e_17_1) { e_17 = { error: e_17_1 }; }
2093
2286
  finally {
2094
2287
  try {
2095
2288
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2096
2289
  }
2097
- finally { if (e_15) throw e_15.error; }
2290
+ finally { if (e_17) throw e_17.error; }
2098
2291
  }
2099
2292
  }
2100
2293
  if (status === 200) {
@@ -2208,7 +2401,7 @@
2208
2401
  }));
2209
2402
  };
2210
2403
  ProductsManagementApiClient.prototype.processGetProductVariantMockups = function (response) {
2211
- var e_16, _a;
2404
+ var e_18, _a;
2212
2405
  var _this = this;
2213
2406
  var status = response.status;
2214
2407
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2221,12 +2414,12 @@
2221
2414
  _headers[key] = response.headers.get(key);
2222
2415
  }
2223
2416
  }
2224
- catch (e_16_1) { e_16 = { error: e_16_1 }; }
2417
+ catch (e_18_1) { e_18 = { error: e_18_1 }; }
2225
2418
  finally {
2226
2419
  try {
2227
2420
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2228
2421
  }
2229
- finally { if (e_16) throw e_16.error; }
2422
+ finally { if (e_18) throw e_18.error; }
2230
2423
  }
2231
2424
  }
2232
2425
  if (status === 200) {
@@ -2340,7 +2533,7 @@
2340
2533
  }));
2341
2534
  };
2342
2535
  ProductsManagementApiClient.prototype.processGetProductVariantDocuments = function (response) {
2343
- var e_17, _a;
2536
+ var e_19, _a;
2344
2537
  var _this = this;
2345
2538
  var status = response.status;
2346
2539
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2353,12 +2546,12 @@
2353
2546
  _headers[key] = response.headers.get(key);
2354
2547
  }
2355
2548
  }
2356
- catch (e_17_1) { e_17 = { error: e_17_1 }; }
2549
+ catch (e_19_1) { e_19 = { error: e_19_1 }; }
2357
2550
  finally {
2358
2551
  try {
2359
2552
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2360
2553
  }
2361
- finally { if (e_17) throw e_17.error; }
2554
+ finally { if (e_19) throw e_19.error; }
2362
2555
  }
2363
2556
  }
2364
2557
  if (status === 200) {
@@ -2442,7 +2635,7 @@
2442
2635
  }));
2443
2636
  };
2444
2637
  ProductsManagementApiClient.prototype.processSetProductVariantPrice = function (response) {
2445
- var e_18, _a;
2638
+ var e_20, _a;
2446
2639
  var _this = this;
2447
2640
  var status = response.status;
2448
2641
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2455,12 +2648,12 @@
2455
2648
  _headers[key] = response.headers.get(key);
2456
2649
  }
2457
2650
  }
2458
- catch (e_18_1) { e_18 = { error: e_18_1 }; }
2651
+ catch (e_20_1) { e_20 = { error: e_20_1 }; }
2459
2652
  finally {
2460
2653
  try {
2461
2654
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2462
2655
  }
2463
- finally { if (e_18) throw e_18.error; }
2656
+ finally { if (e_20) throw e_20.error; }
2464
2657
  }
2465
2658
  }
2466
2659
  if (status === 200) {
@@ -2507,15 +2700,15 @@
2507
2700
  return rxjs.of(null);
2508
2701
  };
2509
2702
  /**
2510
- * Set product variants availability. Variants identifiers will be changed.
2703
+ * Set product variants weight. Variants identifiers will be changed.
2511
2704
  * @param id Product identifier.
2512
2705
  * @param tenantId (optional) Tenant identifier.
2513
- * @param body (optional) Set product variants availability operation parameters.
2706
+ * @param body (optional) Set product variants weight operation parameters.
2514
2707
  * @return Success
2515
2708
  */
2516
- ProductsManagementApiClient.prototype.setProductVariantAvailability = function (id, tenantId, body) {
2709
+ ProductsManagementApiClient.prototype.setProductVariantWeight = function (id, tenantId, body) {
2517
2710
  var _this = this;
2518
- var url_ = this.baseUrl + "/api/backoffice/v1/products/{id}/set-variant-availability?";
2711
+ var url_ = this.baseUrl + "/api/backoffice/v1/products/{id}/set-variant-weight?";
2519
2712
  if (id === undefined || id === null)
2520
2713
  throw new Error("The parameter 'id' must be defined.");
2521
2714
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
@@ -2534,11 +2727,11 @@
2534
2727
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
2535
2728
  return _this.http.request("post", url_, transformedOptions_);
2536
2729
  })).pipe(operators.mergeMap(function (response_) {
2537
- return _this.transformResult(url_, response_, function (r) { return _this.processSetProductVariantAvailability(r); });
2730
+ return _this.transformResult(url_, response_, function (r) { return _this.processSetProductVariantWeight(r); });
2538
2731
  })).pipe(operators.catchError(function (response_) {
2539
2732
  if (response_ instanceof i1.HttpResponseBase) {
2540
2733
  try {
2541
- return _this.transformResult(url_, response_, function (r) { return _this.processSetProductVariantAvailability(r); });
2734
+ return _this.transformResult(url_, response_, function (r) { return _this.processSetProductVariantWeight(r); });
2542
2735
  }
2543
2736
  catch (e) {
2544
2737
  return rxjs.throwError(e);
@@ -2548,8 +2741,8 @@
2548
2741
  return rxjs.throwError(response_);
2549
2742
  }));
2550
2743
  };
2551
- ProductsManagementApiClient.prototype.processSetProductVariantAvailability = function (response) {
2552
- var e_19, _a;
2744
+ ProductsManagementApiClient.prototype.processSetProductVariantWeight = function (response) {
2745
+ var e_21, _a;
2553
2746
  var _this = this;
2554
2747
  var status = response.status;
2555
2748
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2562,12 +2755,12 @@
2562
2755
  _headers[key] = response.headers.get(key);
2563
2756
  }
2564
2757
  }
2565
- catch (e_19_1) { e_19 = { error: e_19_1 }; }
2758
+ catch (e_21_1) { e_21 = { error: e_21_1 }; }
2566
2759
  finally {
2567
2760
  try {
2568
2761
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2569
2762
  }
2570
- finally { if (e_19) throw e_19.error; }
2763
+ finally { if (e_21) throw e_21.error; }
2571
2764
  }
2572
2765
  }
2573
2766
  if (status === 200) {
@@ -2614,15 +2807,15 @@
2614
2807
  return rxjs.of(null);
2615
2808
  };
2616
2809
  /**
2617
- * Set product variants SKU. Variants identifiers will be changed.
2810
+ * Set product variants availability. Variants identifiers will be changed.
2618
2811
  * @param id Product identifier.
2619
2812
  * @param tenantId (optional) Tenant identifier.
2620
- * @param body (optional) Set product variants SKU operation parameters.
2813
+ * @param body (optional) Set product variants availability operation parameters.
2621
2814
  * @return Success
2622
2815
  */
2623
- ProductsManagementApiClient.prototype.setProductVariantSku = function (id, tenantId, body) {
2816
+ ProductsManagementApiClient.prototype.setProductVariantAvailability = function (id, tenantId, body) {
2624
2817
  var _this = this;
2625
- var url_ = this.baseUrl + "/api/backoffice/v1/products/{id}/set-variant-sku?";
2818
+ var url_ = this.baseUrl + "/api/backoffice/v1/products/{id}/set-variant-availability?";
2626
2819
  if (id === undefined || id === null)
2627
2820
  throw new Error("The parameter 'id' must be defined.");
2628
2821
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
@@ -2641,11 +2834,11 @@
2641
2834
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
2642
2835
  return _this.http.request("post", url_, transformedOptions_);
2643
2836
  })).pipe(operators.mergeMap(function (response_) {
2644
- return _this.transformResult(url_, response_, function (r) { return _this.processSetProductVariantSku(r); });
2837
+ return _this.transformResult(url_, response_, function (r) { return _this.processSetProductVariantAvailability(r); });
2645
2838
  })).pipe(operators.catchError(function (response_) {
2646
2839
  if (response_ instanceof i1.HttpResponseBase) {
2647
2840
  try {
2648
- return _this.transformResult(url_, response_, function (r) { return _this.processSetProductVariantSku(r); });
2841
+ return _this.transformResult(url_, response_, function (r) { return _this.processSetProductVariantAvailability(r); });
2649
2842
  }
2650
2843
  catch (e) {
2651
2844
  return rxjs.throwError(e);
@@ -2655,8 +2848,8 @@
2655
2848
  return rxjs.throwError(response_);
2656
2849
  }));
2657
2850
  };
2658
- ProductsManagementApiClient.prototype.processSetProductVariantSku = function (response) {
2659
- var e_20, _a;
2851
+ ProductsManagementApiClient.prototype.processSetProductVariantAvailability = function (response) {
2852
+ var e_22, _a;
2660
2853
  var _this = this;
2661
2854
  var status = response.status;
2662
2855
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2669,12 +2862,12 @@
2669
2862
  _headers[key] = response.headers.get(key);
2670
2863
  }
2671
2864
  }
2672
- catch (e_20_1) { e_20 = { error: e_20_1 }; }
2865
+ catch (e_22_1) { e_22 = { error: e_22_1 }; }
2673
2866
  finally {
2674
2867
  try {
2675
2868
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2676
2869
  }
2677
- finally { if (e_20) throw e_20.error; }
2870
+ finally { if (e_22) throw e_22.error; }
2678
2871
  }
2679
2872
  }
2680
2873
  if (status === 200) {
@@ -2721,26 +2914,133 @@
2721
2914
  return rxjs.of(null);
2722
2915
  };
2723
2916
  /**
2724
- * Imports products from a specific CSV file and returns a list of imported products descriptions.
2917
+ * Set product variants SKU. Variants identifiers will be changed.
2918
+ * @param id Product identifier.
2725
2919
  * @param tenantId (optional) Tenant identifier.
2726
- * @param file (optional)
2920
+ * @param body (optional) Set product variants SKU operation parameters.
2727
2921
  * @return Success
2728
2922
  */
2729
- ProductsManagementApiClient.prototype.importProducts = function (tenantId, file) {
2923
+ ProductsManagementApiClient.prototype.setProductVariantSku = function (id, tenantId, body) {
2730
2924
  var _this = this;
2731
- var url_ = this.baseUrl + "/api/backoffice/v1/products/import?";
2925
+ var url_ = this.baseUrl + "/api/backoffice/v1/products/{id}/set-variant-sku?";
2926
+ if (id === undefined || id === null)
2927
+ throw new Error("The parameter 'id' must be defined.");
2928
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
2732
2929
  if (tenantId !== undefined && tenantId !== null)
2733
2930
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
2734
2931
  url_ = url_.replace(/[?&]$/, "");
2735
- var content_ = new FormData();
2736
- if (file !== null && file !== undefined)
2737
- content_.append("file", file.data, file.fileName ? file.fileName : "file");
2932
+ var content_ = JSON.stringify(body);
2738
2933
  var options_ = {
2739
2934
  body: content_,
2740
2935
  observe: "response",
2741
2936
  responseType: "blob",
2742
2937
  headers: new i1.HttpHeaders({
2743
- "Accept": "application/json"
2938
+ "Content-Type": "application/json",
2939
+ })
2940
+ };
2941
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
2942
+ return _this.http.request("post", url_, transformedOptions_);
2943
+ })).pipe(operators.mergeMap(function (response_) {
2944
+ return _this.transformResult(url_, response_, function (r) { return _this.processSetProductVariantSku(r); });
2945
+ })).pipe(operators.catchError(function (response_) {
2946
+ if (response_ instanceof i1.HttpResponseBase) {
2947
+ try {
2948
+ return _this.transformResult(url_, response_, function (r) { return _this.processSetProductVariantSku(r); });
2949
+ }
2950
+ catch (e) {
2951
+ return rxjs.throwError(e);
2952
+ }
2953
+ }
2954
+ else
2955
+ return rxjs.throwError(response_);
2956
+ }));
2957
+ };
2958
+ ProductsManagementApiClient.prototype.processSetProductVariantSku = function (response) {
2959
+ var e_23, _a;
2960
+ var _this = this;
2961
+ var status = response.status;
2962
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
2963
+ response.error instanceof Blob ? response.error : undefined;
2964
+ var _headers = {};
2965
+ if (response.headers) {
2966
+ try {
2967
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
2968
+ var key = _c.value;
2969
+ _headers[key] = response.headers.get(key);
2970
+ }
2971
+ }
2972
+ catch (e_23_1) { e_23 = { error: e_23_1 }; }
2973
+ finally {
2974
+ try {
2975
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2976
+ }
2977
+ finally { if (e_23) throw e_23.error; }
2978
+ }
2979
+ }
2980
+ if (status === 200) {
2981
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2982
+ return rxjs.of(null);
2983
+ }));
2984
+ }
2985
+ else if (status === 400) {
2986
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2987
+ var result400 = null;
2988
+ result400 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
2989
+ return throwException("Bad Request", status, _responseText, _headers, result400);
2990
+ }));
2991
+ }
2992
+ else if (status === 404) {
2993
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2994
+ var result404 = null;
2995
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
2996
+ return throwException("Not Found", status, _responseText, _headers, result404);
2997
+ }));
2998
+ }
2999
+ else if (status === 409) {
3000
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3001
+ var result409 = null;
3002
+ result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
3003
+ return throwException("Conflict", status, _responseText, _headers, result409);
3004
+ }));
3005
+ }
3006
+ else if (status === 401) {
3007
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3008
+ return throwException("Unauthorized", status, _responseText, _headers);
3009
+ }));
3010
+ }
3011
+ else if (status === 403) {
3012
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3013
+ return throwException("Forbidden", status, _responseText, _headers);
3014
+ }));
3015
+ }
3016
+ else if (status !== 200 && status !== 204) {
3017
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3018
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
3019
+ }));
3020
+ }
3021
+ return rxjs.of(null);
3022
+ };
3023
+ /**
3024
+ * Imports products from a specific CSV file and returns a list of imported products descriptions.
3025
+ * @param tenantId (optional) Tenant identifier.
3026
+ * @param file (optional)
3027
+ * @return Success
3028
+ */
3029
+ ProductsManagementApiClient.prototype.importProducts = function (tenantId, file) {
3030
+ var _this = this;
3031
+ var url_ = this.baseUrl + "/api/backoffice/v1/products/import?";
3032
+ if (tenantId !== undefined && tenantId !== null)
3033
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3034
+ url_ = url_.replace(/[?&]$/, "");
3035
+ var content_ = new FormData();
3036
+ if (file !== null && file !== undefined)
3037
+ content_.append("file", file.data, file.fileName ? file.fileName : "file");
3038
+ var options_ = {
3039
+ body: content_,
3040
+ observe: "response",
3041
+ responseType: "blob",
3042
+ headers: new i1.HttpHeaders({
3043
+ "Accept": "application/json"
2744
3044
  })
2745
3045
  };
2746
3046
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
@@ -2761,7 +3061,7 @@
2761
3061
  }));
2762
3062
  };
2763
3063
  ProductsManagementApiClient.prototype.processImportProducts = function (response) {
2764
- var e_21, _a;
3064
+ var e_24, _a;
2765
3065
  var _this = this;
2766
3066
  var status = response.status;
2767
3067
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2774,12 +3074,12 @@
2774
3074
  _headers[key] = response.headers.get(key);
2775
3075
  }
2776
3076
  }
2777
- catch (e_21_1) { e_21 = { error: e_21_1 }; }
3077
+ catch (e_24_1) { e_24 = { error: e_24_1 }; }
2778
3078
  finally {
2779
3079
  try {
2780
3080
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2781
3081
  }
2782
- finally { if (e_21) throw e_21.error; }
3082
+ finally { if (e_24) throw e_24.error; }
2783
3083
  }
2784
3084
  }
2785
3085
  if (status === 200) {
@@ -2863,7 +3163,7 @@
2863
3163
  }));
2864
3164
  };
2865
3165
  ProductsManagementApiClient.prototype.processCreateDesignsConnections = function (response) {
2866
- var e_22, _a;
3166
+ var e_25, _a;
2867
3167
  var _this = this;
2868
3168
  var status = response.status;
2869
3169
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2876,12 +3176,12 @@
2876
3176
  _headers[key] = response.headers.get(key);
2877
3177
  }
2878
3178
  }
2879
- catch (e_22_1) { e_22 = { error: e_22_1 }; }
3179
+ catch (e_25_1) { e_25 = { error: e_25_1 }; }
2880
3180
  finally {
2881
3181
  try {
2882
3182
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2883
3183
  }
2884
- finally { if (e_22) throw e_22.error; }
3184
+ finally { if (e_25) throw e_25.error; }
2885
3185
  }
2886
3186
  }
2887
3187
  if (status === 200) {
@@ -2963,7 +3263,7 @@
2963
3263
  }));
2964
3264
  };
2965
3265
  ProductsManagementApiClient.prototype.processRemoveDesignsConnections = function (response) {
2966
- var e_23, _a;
3266
+ var e_26, _a;
2967
3267
  var _this = this;
2968
3268
  var status = response.status;
2969
3269
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2976,12 +3276,12 @@
2976
3276
  _headers[key] = response.headers.get(key);
2977
3277
  }
2978
3278
  }
2979
- catch (e_23_1) { e_23 = { error: e_23_1 }; }
3279
+ catch (e_26_1) { e_26 = { error: e_26_1 }; }
2980
3280
  finally {
2981
3281
  try {
2982
3282
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2983
3283
  }
2984
- finally { if (e_23) throw e_23.error; }
3284
+ finally { if (e_26) throw e_26.error; }
2985
3285
  }
2986
3286
  }
2987
3287
  if (status === 200) {
@@ -3063,7 +3363,7 @@
3063
3363
  }));
3064
3364
  };
3065
3365
  ProductsManagementApiClient.prototype.processCreateMockupsConnections = function (response) {
3066
- var e_24, _a;
3366
+ var e_27, _a;
3067
3367
  var _this = this;
3068
3368
  var status = response.status;
3069
3369
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3076,12 +3376,12 @@
3076
3376
  _headers[key] = response.headers.get(key);
3077
3377
  }
3078
3378
  }
3079
- catch (e_24_1) { e_24 = { error: e_24_1 }; }
3379
+ catch (e_27_1) { e_27 = { error: e_27_1 }; }
3080
3380
  finally {
3081
3381
  try {
3082
3382
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3083
3383
  }
3084
- finally { if (e_24) throw e_24.error; }
3384
+ finally { if (e_27) throw e_27.error; }
3085
3385
  }
3086
3386
  }
3087
3387
  if (status === 200) {
@@ -3163,7 +3463,7 @@
3163
3463
  }));
3164
3464
  };
3165
3465
  ProductsManagementApiClient.prototype.processRemoveMockupsConnections = function (response) {
3166
- var e_25, _a;
3466
+ var e_28, _a;
3167
3467
  var _this = this;
3168
3468
  var status = response.status;
3169
3469
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3176,12 +3476,12 @@
3176
3476
  _headers[key] = response.headers.get(key);
3177
3477
  }
3178
3478
  }
3179
- catch (e_25_1) { e_25 = { error: e_25_1 }; }
3479
+ catch (e_28_1) { e_28 = { error: e_28_1 }; }
3180
3480
  finally {
3181
3481
  try {
3182
3482
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3183
3483
  }
3184
- finally { if (e_25) throw e_25.error; }
3484
+ finally { if (e_28) throw e_28.error; }
3185
3485
  }
3186
3486
  }
3187
3487
  if (status === 200) {
@@ -3242,17 +3542,1025 @@
3242
3542
  observe: "response",
3243
3543
  responseType: "blob",
3244
3544
  headers: new i1.HttpHeaders({
3245
- "Content-Type": "application/json",
3545
+ "Content-Type": "application/json",
3546
+ })
3547
+ };
3548
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
3549
+ return _this.http.request("post", url_, transformedOptions_);
3550
+ })).pipe(operators.mergeMap(function (response_) {
3551
+ return _this.transformResult(url_, response_, function (r) { return _this.processCreateDocumentsConnections(r); });
3552
+ })).pipe(operators.catchError(function (response_) {
3553
+ if (response_ instanceof i1.HttpResponseBase) {
3554
+ try {
3555
+ return _this.transformResult(url_, response_, function (r) { return _this.processCreateDocumentsConnections(r); });
3556
+ }
3557
+ catch (e) {
3558
+ return rxjs.throwError(e);
3559
+ }
3560
+ }
3561
+ else
3562
+ return rxjs.throwError(response_);
3563
+ }));
3564
+ };
3565
+ ProductsManagementApiClient.prototype.processCreateDocumentsConnections = function (response) {
3566
+ var e_29, _a;
3567
+ var _this = this;
3568
+ var status = response.status;
3569
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
3570
+ response.error instanceof Blob ? response.error : undefined;
3571
+ var _headers = {};
3572
+ if (response.headers) {
3573
+ try {
3574
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
3575
+ var key = _c.value;
3576
+ _headers[key] = response.headers.get(key);
3577
+ }
3578
+ }
3579
+ catch (e_29_1) { e_29 = { error: e_29_1 }; }
3580
+ finally {
3581
+ try {
3582
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3583
+ }
3584
+ finally { if (e_29) throw e_29.error; }
3585
+ }
3586
+ }
3587
+ if (status === 200) {
3588
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3589
+ return rxjs.of(null);
3590
+ }));
3591
+ }
3592
+ else if (status === 404) {
3593
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3594
+ var result404 = null;
3595
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
3596
+ return throwException("Not Found", status, _responseText, _headers, result404);
3597
+ }));
3598
+ }
3599
+ else if (status === 409) {
3600
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3601
+ var result409 = null;
3602
+ result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
3603
+ return throwException("Conflict", status, _responseText, _headers, result409);
3604
+ }));
3605
+ }
3606
+ else if (status === 401) {
3607
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3608
+ return throwException("Unauthorized", status, _responseText, _headers);
3609
+ }));
3610
+ }
3611
+ else if (status === 403) {
3612
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3613
+ return throwException("Forbidden", status, _responseText, _headers);
3614
+ }));
3615
+ }
3616
+ else if (status !== 200 && status !== 204) {
3617
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3618
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
3619
+ }));
3620
+ }
3621
+ return rxjs.of(null);
3622
+ };
3623
+ /**
3624
+ * Removes documents connections for a specified product.
3625
+ * @param id Product identifier.
3626
+ * @param tenantId (optional) Tenant identifier.
3627
+ * @param body (optional) Product documents connections creation parameters.
3628
+ * @return Success
3629
+ */
3630
+ ProductsManagementApiClient.prototype.removeDocumentsConnections = function (id, tenantId, body) {
3631
+ var _this = this;
3632
+ var url_ = this.baseUrl + "/api/backoffice/v1/products/{id}/document-connections?";
3633
+ if (id === undefined || id === null)
3634
+ throw new Error("The parameter 'id' must be defined.");
3635
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
3636
+ if (tenantId !== undefined && tenantId !== null)
3637
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3638
+ url_ = url_.replace(/[?&]$/, "");
3639
+ var content_ = JSON.stringify(body);
3640
+ var options_ = {
3641
+ body: content_,
3642
+ observe: "response",
3643
+ responseType: "blob",
3644
+ headers: new i1.HttpHeaders({
3645
+ "Content-Type": "application/json",
3646
+ })
3647
+ };
3648
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
3649
+ return _this.http.request("delete", url_, transformedOptions_);
3650
+ })).pipe(operators.mergeMap(function (response_) {
3651
+ return _this.transformResult(url_, response_, function (r) { return _this.processRemoveDocumentsConnections(r); });
3652
+ })).pipe(operators.catchError(function (response_) {
3653
+ if (response_ instanceof i1.HttpResponseBase) {
3654
+ try {
3655
+ return _this.transformResult(url_, response_, function (r) { return _this.processRemoveDocumentsConnections(r); });
3656
+ }
3657
+ catch (e) {
3658
+ return rxjs.throwError(e);
3659
+ }
3660
+ }
3661
+ else
3662
+ return rxjs.throwError(response_);
3663
+ }));
3664
+ };
3665
+ ProductsManagementApiClient.prototype.processRemoveDocumentsConnections = function (response) {
3666
+ var e_30, _a;
3667
+ var _this = this;
3668
+ var status = response.status;
3669
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
3670
+ response.error instanceof Blob ? response.error : undefined;
3671
+ var _headers = {};
3672
+ if (response.headers) {
3673
+ try {
3674
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
3675
+ var key = _c.value;
3676
+ _headers[key] = response.headers.get(key);
3677
+ }
3678
+ }
3679
+ catch (e_30_1) { e_30 = { error: e_30_1 }; }
3680
+ finally {
3681
+ try {
3682
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3683
+ }
3684
+ finally { if (e_30) throw e_30.error; }
3685
+ }
3686
+ }
3687
+ if (status === 200) {
3688
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3689
+ return rxjs.of(null);
3690
+ }));
3691
+ }
3692
+ else if (status === 404) {
3693
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3694
+ var result404 = null;
3695
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
3696
+ return throwException("Not Found", status, _responseText, _headers, result404);
3697
+ }));
3698
+ }
3699
+ else if (status === 409) {
3700
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3701
+ var result409 = null;
3702
+ result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
3703
+ return throwException("Conflict", status, _responseText, _headers, result409);
3704
+ }));
3705
+ }
3706
+ else if (status === 401) {
3707
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3708
+ return throwException("Unauthorized", status, _responseText, _headers);
3709
+ }));
3710
+ }
3711
+ else if (status === 403) {
3712
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3713
+ return throwException("Forbidden", status, _responseText, _headers);
3714
+ }));
3715
+ }
3716
+ else if (status !== 200 && status !== 204) {
3717
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3718
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
3719
+ }));
3720
+ }
3721
+ return rxjs.of(null);
3722
+ };
3723
+ /**
3724
+ * Set a thumbnail image for an existing product.
3725
+ * @param id Product identifier.
3726
+ * @param productVersionId (optional)
3727
+ * @param tenantId (optional) Tenant identifier.
3728
+ * @param file (optional)
3729
+ * @return Success
3730
+ */
3731
+ ProductsManagementApiClient.prototype.setProductImage = function (id, productVersionId, tenantId, file) {
3732
+ var _this = this;
3733
+ var url_ = this.baseUrl + "/api/backoffice/v1/products/{id}/set-image?";
3734
+ if (id === undefined || id === null)
3735
+ throw new Error("The parameter 'id' must be defined.");
3736
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
3737
+ if (productVersionId !== undefined && productVersionId !== null)
3738
+ url_ += "productVersionId=" + encodeURIComponent("" + productVersionId) + "&";
3739
+ if (tenantId !== undefined && tenantId !== null)
3740
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3741
+ url_ = url_.replace(/[?&]$/, "");
3742
+ var content_ = new FormData();
3743
+ if (file !== null && file !== undefined)
3744
+ content_.append("file", file.data, file.fileName ? file.fileName : "file");
3745
+ var options_ = {
3746
+ body: content_,
3747
+ observe: "response",
3748
+ responseType: "blob",
3749
+ headers: new i1.HttpHeaders({})
3750
+ };
3751
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
3752
+ return _this.http.request("post", url_, transformedOptions_);
3753
+ })).pipe(operators.mergeMap(function (response_) {
3754
+ return _this.transformResult(url_, response_, function (r) { return _this.processSetProductImage(r); });
3755
+ })).pipe(operators.catchError(function (response_) {
3756
+ if (response_ instanceof i1.HttpResponseBase) {
3757
+ try {
3758
+ return _this.transformResult(url_, response_, function (r) { return _this.processSetProductImage(r); });
3759
+ }
3760
+ catch (e) {
3761
+ return rxjs.throwError(e);
3762
+ }
3763
+ }
3764
+ else
3765
+ return rxjs.throwError(response_);
3766
+ }));
3767
+ };
3768
+ ProductsManagementApiClient.prototype.processSetProductImage = function (response) {
3769
+ var e_31, _a;
3770
+ var _this = this;
3771
+ var status = response.status;
3772
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
3773
+ response.error instanceof Blob ? response.error : undefined;
3774
+ var _headers = {};
3775
+ if (response.headers) {
3776
+ try {
3777
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
3778
+ var key = _c.value;
3779
+ _headers[key] = response.headers.get(key);
3780
+ }
3781
+ }
3782
+ catch (e_31_1) { e_31 = { error: e_31_1 }; }
3783
+ finally {
3784
+ try {
3785
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3786
+ }
3787
+ finally { if (e_31) throw e_31.error; }
3788
+ }
3789
+ }
3790
+ if (status === 200) {
3791
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3792
+ return rxjs.of(null);
3793
+ }));
3794
+ }
3795
+ else if (status === 400) {
3796
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3797
+ var result400 = null;
3798
+ result400 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
3799
+ return throwException("Bad Request", status, _responseText, _headers, result400);
3800
+ }));
3801
+ }
3802
+ else if (status === 404) {
3803
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3804
+ var result404 = null;
3805
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
3806
+ return throwException("Not Found", status, _responseText, _headers, result404);
3807
+ }));
3808
+ }
3809
+ else if (status === 409) {
3810
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3811
+ var result409 = null;
3812
+ result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
3813
+ return throwException("Conflict", status, _responseText, _headers, result409);
3814
+ }));
3815
+ }
3816
+ else if (status === 401) {
3817
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3818
+ return throwException("Unauthorized", status, _responseText, _headers);
3819
+ }));
3820
+ }
3821
+ else if (status === 403) {
3822
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3823
+ return throwException("Forbidden", status, _responseText, _headers);
3824
+ }));
3825
+ }
3826
+ else if (status !== 200 && status !== 204) {
3827
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3828
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
3829
+ }));
3830
+ }
3831
+ return rxjs.of(null);
3832
+ };
3833
+ /**
3834
+ * Returns all available product personalization workflows.
3835
+ * @param skip (optional) Defines page start offset from beginning of sorted result list.
3836
+ * @param take (optional) Defines page length (how many consequent items of sorted result list should be taken).
3837
+ * @param search (optional) Search string for partial by personalization workflow name.
3838
+ * @param tenantId (optional) Tenant identifier.
3839
+ * @return Success
3840
+ */
3841
+ ProductsManagementApiClient.prototype.getAvailablePersonalizationWorkflows = function (skip, take, search, tenantId) {
3842
+ var _this = this;
3843
+ var url_ = this.baseUrl + "/api/backoffice/v1/products/available-workflows?";
3844
+ if (skip !== undefined && skip !== null)
3845
+ url_ += "skip=" + encodeURIComponent("" + skip) + "&";
3846
+ if (take !== undefined && take !== null)
3847
+ url_ += "take=" + encodeURIComponent("" + take) + "&";
3848
+ if (search !== undefined && search !== null)
3849
+ url_ += "search=" + encodeURIComponent("" + search) + "&";
3850
+ if (tenantId !== undefined && tenantId !== null)
3851
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3852
+ url_ = url_.replace(/[?&]$/, "");
3853
+ var options_ = {
3854
+ observe: "response",
3855
+ responseType: "blob",
3856
+ headers: new i1.HttpHeaders({
3857
+ "Accept": "application/json"
3858
+ })
3859
+ };
3860
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
3861
+ return _this.http.request("get", url_, transformedOptions_);
3862
+ })).pipe(operators.mergeMap(function (response_) {
3863
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetAvailablePersonalizationWorkflows(r); });
3864
+ })).pipe(operators.catchError(function (response_) {
3865
+ if (response_ instanceof i1.HttpResponseBase) {
3866
+ try {
3867
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetAvailablePersonalizationWorkflows(r); });
3868
+ }
3869
+ catch (e) {
3870
+ return rxjs.throwError(e);
3871
+ }
3872
+ }
3873
+ else
3874
+ return rxjs.throwError(response_);
3875
+ }));
3876
+ };
3877
+ ProductsManagementApiClient.prototype.processGetAvailablePersonalizationWorkflows = function (response) {
3878
+ var e_32, _a;
3879
+ var _this = this;
3880
+ var status = response.status;
3881
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
3882
+ response.error instanceof Blob ? response.error : undefined;
3883
+ var _headers = {};
3884
+ if (response.headers) {
3885
+ try {
3886
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
3887
+ var key = _c.value;
3888
+ _headers[key] = response.headers.get(key);
3889
+ }
3890
+ }
3891
+ catch (e_32_1) { e_32 = { error: e_32_1 }; }
3892
+ finally {
3893
+ try {
3894
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3895
+ }
3896
+ finally { if (e_32) throw e_32.error; }
3897
+ }
3898
+ }
3899
+ if (status === 200) {
3900
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3901
+ var result200 = null;
3902
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
3903
+ return rxjs.of(result200);
3904
+ }));
3905
+ }
3906
+ else if (status === 401) {
3907
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3908
+ return throwException("Unauthorized", status, _responseText, _headers);
3909
+ }));
3910
+ }
3911
+ else if (status === 403) {
3912
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3913
+ return throwException("Forbidden", status, _responseText, _headers);
3914
+ }));
3915
+ }
3916
+ else if (status !== 200 && status !== 204) {
3917
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3918
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
3919
+ }));
3920
+ }
3921
+ return rxjs.of(null);
3922
+ };
3923
+ /**
3924
+ * Returns all available product processing pipelines.
3925
+ * @param skip (optional) Defines page start offset from beginning of sorted result list.
3926
+ * @param take (optional) Defines page length (how many consequent items of sorted result list should be taken).
3927
+ * @param search (optional) Search string for partial by processing pipeline name.
3928
+ * @param tenantId (optional) Tenant identifier.
3929
+ * @return Success
3930
+ */
3931
+ ProductsManagementApiClient.prototype.getAvailableProcessingPipelines = function (skip, take, search, tenantId) {
3932
+ var _this = this;
3933
+ var url_ = this.baseUrl + "/api/backoffice/v1/products/available-pipelines?";
3934
+ if (skip !== undefined && skip !== null)
3935
+ url_ += "skip=" + encodeURIComponent("" + skip) + "&";
3936
+ if (take !== undefined && take !== null)
3937
+ url_ += "take=" + encodeURIComponent("" + take) + "&";
3938
+ if (search !== undefined && search !== null)
3939
+ url_ += "search=" + encodeURIComponent("" + search) + "&";
3940
+ if (tenantId !== undefined && tenantId !== null)
3941
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3942
+ url_ = url_.replace(/[?&]$/, "");
3943
+ var options_ = {
3944
+ observe: "response",
3945
+ responseType: "blob",
3946
+ headers: new i1.HttpHeaders({
3947
+ "Accept": "application/json"
3948
+ })
3949
+ };
3950
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
3951
+ return _this.http.request("get", url_, transformedOptions_);
3952
+ })).pipe(operators.mergeMap(function (response_) {
3953
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetAvailableProcessingPipelines(r); });
3954
+ })).pipe(operators.catchError(function (response_) {
3955
+ if (response_ instanceof i1.HttpResponseBase) {
3956
+ try {
3957
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetAvailableProcessingPipelines(r); });
3958
+ }
3959
+ catch (e) {
3960
+ return rxjs.throwError(e);
3961
+ }
3962
+ }
3963
+ else
3964
+ return rxjs.throwError(response_);
3965
+ }));
3966
+ };
3967
+ ProductsManagementApiClient.prototype.processGetAvailableProcessingPipelines = function (response) {
3968
+ var e_33, _a;
3969
+ var _this = this;
3970
+ var status = response.status;
3971
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
3972
+ response.error instanceof Blob ? response.error : undefined;
3973
+ var _headers = {};
3974
+ if (response.headers) {
3975
+ try {
3976
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
3977
+ var key = _c.value;
3978
+ _headers[key] = response.headers.get(key);
3979
+ }
3980
+ }
3981
+ catch (e_33_1) { e_33 = { error: e_33_1 }; }
3982
+ finally {
3983
+ try {
3984
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3985
+ }
3986
+ finally { if (e_33) throw e_33.error; }
3987
+ }
3988
+ }
3989
+ if (status === 200) {
3990
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3991
+ var result200 = null;
3992
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
3993
+ return rxjs.of(result200);
3994
+ }));
3995
+ }
3996
+ else if (status === 401) {
3997
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3998
+ return throwException("Unauthorized", status, _responseText, _headers);
3999
+ }));
4000
+ }
4001
+ else if (status === 403) {
4002
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4003
+ return throwException("Forbidden", status, _responseText, _headers);
4004
+ }));
4005
+ }
4006
+ else if (status !== 200 && status !== 204) {
4007
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4008
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
4009
+ }));
4010
+ }
4011
+ return rxjs.of(null);
4012
+ };
4013
+ return ProductsManagementApiClient;
4014
+ }(ApiClientBase));
4015
+ ProductsManagementApiClient.ɵprov = i0.ɵɵdefineInjectable({ factory: function ProductsManagementApiClient_Factory() { return new ProductsManagementApiClient(i0.ɵɵinject(ApiClientConfiguration), i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(API_BASE_URL, 8)); }, token: ProductsManagementApiClient, providedIn: "root" });
4016
+ ProductsManagementApiClient.decorators = [
4017
+ { type: i0.Injectable, args: [{
4018
+ providedIn: 'root'
4019
+ },] }
4020
+ ];
4021
+ ProductsManagementApiClient.ctorParameters = function () { return [
4022
+ { type: ApiClientConfiguration, decorators: [{ type: i0.Inject, args: [ApiClientConfiguration,] }] },
4023
+ { type: i1.HttpClient, decorators: [{ type: i0.Inject, args: [i1.HttpClient,] }] },
4024
+ { type: String, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [API_BASE_URL,] }] }
4025
+ ]; };
4026
+ var ProjectStatusesManagementApiClient = /** @class */ (function (_super) {
4027
+ __extends(ProjectStatusesManagementApiClient, _super);
4028
+ function ProjectStatusesManagementApiClient(configuration, http, baseUrl) {
4029
+ var _this = _super.call(this, configuration) || this;
4030
+ _this.jsonParseReviver = undefined;
4031
+ _this.http = http;
4032
+ _this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : _this.getBaseUrl("");
4033
+ return _this;
4034
+ }
4035
+ /**
4036
+ * Returns a list of all existing project statuses.
4037
+ * @param tenantId (optional) Tenant identifier.
4038
+ * @return Success
4039
+ */
4040
+ ProjectStatusesManagementApiClient.prototype.getAll = function (tenantId) {
4041
+ var _this = this;
4042
+ var url_ = this.baseUrl + "/api/backoffice/v1/projects-statuses?";
4043
+ if (tenantId !== undefined && tenantId !== null)
4044
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
4045
+ url_ = url_.replace(/[?&]$/, "");
4046
+ var options_ = {
4047
+ observe: "response",
4048
+ responseType: "blob",
4049
+ headers: new i1.HttpHeaders({
4050
+ "Accept": "application/json"
4051
+ })
4052
+ };
4053
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
4054
+ return _this.http.request("get", url_, transformedOptions_);
4055
+ })).pipe(operators.mergeMap(function (response_) {
4056
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetAll(r); });
4057
+ })).pipe(operators.catchError(function (response_) {
4058
+ if (response_ instanceof i1.HttpResponseBase) {
4059
+ try {
4060
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetAll(r); });
4061
+ }
4062
+ catch (e) {
4063
+ return rxjs.throwError(e);
4064
+ }
4065
+ }
4066
+ else
4067
+ return rxjs.throwError(response_);
4068
+ }));
4069
+ };
4070
+ ProjectStatusesManagementApiClient.prototype.processGetAll = function (response) {
4071
+ var e_34, _a;
4072
+ var _this = this;
4073
+ var status = response.status;
4074
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
4075
+ response.error instanceof Blob ? response.error : undefined;
4076
+ var _headers = {};
4077
+ if (response.headers) {
4078
+ try {
4079
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
4080
+ var key = _c.value;
4081
+ _headers[key] = response.headers.get(key);
4082
+ }
4083
+ }
4084
+ catch (e_34_1) { e_34 = { error: e_34_1 }; }
4085
+ finally {
4086
+ try {
4087
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4088
+ }
4089
+ finally { if (e_34) throw e_34.error; }
4090
+ }
4091
+ }
4092
+ if (status === 200) {
4093
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4094
+ var result200 = null;
4095
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
4096
+ return rxjs.of(result200);
4097
+ }));
4098
+ }
4099
+ else if (status === 401) {
4100
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4101
+ return throwException("Unauthorized", status, _responseText, _headers);
4102
+ }));
4103
+ }
4104
+ else if (status === 403) {
4105
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4106
+ return throwException("Forbidden", status, _responseText, _headers);
4107
+ }));
4108
+ }
4109
+ else if (status !== 200 && status !== 204) {
4110
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4111
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
4112
+ }));
4113
+ }
4114
+ return rxjs.of(null);
4115
+ };
4116
+ /**
4117
+ * Creates a new project status and returns its description.
4118
+ * @param tenantId (optional) Tenant identifier.
4119
+ * @param body (optional) Status creation parameters.
4120
+ * @return Success
4121
+ */
4122
+ ProjectStatusesManagementApiClient.prototype.create = function (tenantId, body) {
4123
+ var _this = this;
4124
+ var url_ = this.baseUrl + "/api/backoffice/v1/projects-statuses?";
4125
+ if (tenantId !== undefined && tenantId !== null)
4126
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
4127
+ url_ = url_.replace(/[?&]$/, "");
4128
+ var content_ = JSON.stringify(body);
4129
+ var options_ = {
4130
+ body: content_,
4131
+ observe: "response",
4132
+ responseType: "blob",
4133
+ headers: new i1.HttpHeaders({
4134
+ "Content-Type": "application/json",
4135
+ "Accept": "application/json"
4136
+ })
4137
+ };
4138
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
4139
+ return _this.http.request("post", url_, transformedOptions_);
4140
+ })).pipe(operators.mergeMap(function (response_) {
4141
+ return _this.transformResult(url_, response_, function (r) { return _this.processCreate(r); });
4142
+ })).pipe(operators.catchError(function (response_) {
4143
+ if (response_ instanceof i1.HttpResponseBase) {
4144
+ try {
4145
+ return _this.transformResult(url_, response_, function (r) { return _this.processCreate(r); });
4146
+ }
4147
+ catch (e) {
4148
+ return rxjs.throwError(e);
4149
+ }
4150
+ }
4151
+ else
4152
+ return rxjs.throwError(response_);
4153
+ }));
4154
+ };
4155
+ ProjectStatusesManagementApiClient.prototype.processCreate = function (response) {
4156
+ var e_35, _a;
4157
+ var _this = this;
4158
+ var status = response.status;
4159
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
4160
+ response.error instanceof Blob ? response.error : undefined;
4161
+ var _headers = {};
4162
+ if (response.headers) {
4163
+ try {
4164
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
4165
+ var key = _c.value;
4166
+ _headers[key] = response.headers.get(key);
4167
+ }
4168
+ }
4169
+ catch (e_35_1) { e_35 = { error: e_35_1 }; }
4170
+ finally {
4171
+ try {
4172
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4173
+ }
4174
+ finally { if (e_35) throw e_35.error; }
4175
+ }
4176
+ }
4177
+ if (status === 201) {
4178
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4179
+ var result201 = null;
4180
+ result201 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
4181
+ return rxjs.of(result201);
4182
+ }));
4183
+ }
4184
+ else if (status === 400) {
4185
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4186
+ var result400 = null;
4187
+ result400 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
4188
+ return throwException("Bad Request", status, _responseText, _headers, result400);
4189
+ }));
4190
+ }
4191
+ else if (status === 409) {
4192
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4193
+ var result409 = null;
4194
+ result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
4195
+ return throwException("Conflict", status, _responseText, _headers, result409);
4196
+ }));
4197
+ }
4198
+ else if (status === 401) {
4199
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4200
+ return throwException("Unauthorized", status, _responseText, _headers);
4201
+ }));
4202
+ }
4203
+ else if (status === 403) {
4204
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4205
+ return throwException("Forbidden", status, _responseText, _headers);
4206
+ }));
4207
+ }
4208
+ else if (status !== 200 && status !== 204) {
4209
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4210
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
4211
+ }));
4212
+ }
4213
+ return rxjs.of(null);
4214
+ };
4215
+ /**
4216
+ * Returns a project status by its identifier.
4217
+ * @param id Status identifier.
4218
+ * @param tenantId (optional) Tenant identifier.
4219
+ * @return Success
4220
+ */
4221
+ ProjectStatusesManagementApiClient.prototype.get = function (id, tenantId) {
4222
+ var _this = this;
4223
+ var url_ = this.baseUrl + "/api/backoffice/v1/projects-statuses/{id}?";
4224
+ if (id === undefined || id === null)
4225
+ throw new Error("The parameter 'id' must be defined.");
4226
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
4227
+ if (tenantId !== undefined && tenantId !== null)
4228
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
4229
+ url_ = url_.replace(/[?&]$/, "");
4230
+ var options_ = {
4231
+ observe: "response",
4232
+ responseType: "blob",
4233
+ headers: new i1.HttpHeaders({
4234
+ "Accept": "application/json"
4235
+ })
4236
+ };
4237
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
4238
+ return _this.http.request("get", url_, transformedOptions_);
4239
+ })).pipe(operators.mergeMap(function (response_) {
4240
+ return _this.transformResult(url_, response_, function (r) { return _this.processGet(r); });
4241
+ })).pipe(operators.catchError(function (response_) {
4242
+ if (response_ instanceof i1.HttpResponseBase) {
4243
+ try {
4244
+ return _this.transformResult(url_, response_, function (r) { return _this.processGet(r); });
4245
+ }
4246
+ catch (e) {
4247
+ return rxjs.throwError(e);
4248
+ }
4249
+ }
4250
+ else
4251
+ return rxjs.throwError(response_);
4252
+ }));
4253
+ };
4254
+ ProjectStatusesManagementApiClient.prototype.processGet = function (response) {
4255
+ var e_36, _a;
4256
+ var _this = this;
4257
+ var status = response.status;
4258
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
4259
+ response.error instanceof Blob ? response.error : undefined;
4260
+ var _headers = {};
4261
+ if (response.headers) {
4262
+ try {
4263
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
4264
+ var key = _c.value;
4265
+ _headers[key] = response.headers.get(key);
4266
+ }
4267
+ }
4268
+ catch (e_36_1) { e_36 = { error: e_36_1 }; }
4269
+ finally {
4270
+ try {
4271
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4272
+ }
4273
+ finally { if (e_36) throw e_36.error; }
4274
+ }
4275
+ }
4276
+ if (status === 200) {
4277
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4278
+ var result200 = null;
4279
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
4280
+ return rxjs.of(result200);
4281
+ }));
4282
+ }
4283
+ else if (status === 404) {
4284
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4285
+ var result404 = null;
4286
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
4287
+ return throwException("Not Found", status, _responseText, _headers, result404);
4288
+ }));
4289
+ }
4290
+ else if (status === 401) {
4291
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4292
+ return throwException("Unauthorized", status, _responseText, _headers);
4293
+ }));
4294
+ }
4295
+ else if (status === 403) {
4296
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4297
+ return throwException("Forbidden", status, _responseText, _headers);
4298
+ }));
4299
+ }
4300
+ else if (status !== 200 && status !== 204) {
4301
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4302
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
4303
+ }));
4304
+ }
4305
+ return rxjs.of(null);
4306
+ };
4307
+ /**
4308
+ * Updates an existing project status and returns its description.
4309
+ * @param id Status identifier.
4310
+ * @param tenantId (optional) Tenant identifier.
4311
+ * @param body (optional) Status update parameters.
4312
+ * @return Success
4313
+ */
4314
+ ProjectStatusesManagementApiClient.prototype.update = function (id, tenantId, body) {
4315
+ var _this = this;
4316
+ var url_ = this.baseUrl + "/api/backoffice/v1/projects-statuses/{id}?";
4317
+ if (id === undefined || id === null)
4318
+ throw new Error("The parameter 'id' must be defined.");
4319
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
4320
+ if (tenantId !== undefined && tenantId !== null)
4321
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
4322
+ url_ = url_.replace(/[?&]$/, "");
4323
+ var content_ = JSON.stringify(body);
4324
+ var options_ = {
4325
+ body: content_,
4326
+ observe: "response",
4327
+ responseType: "blob",
4328
+ headers: new i1.HttpHeaders({
4329
+ "Content-Type": "application/json",
4330
+ "Accept": "application/json"
4331
+ })
4332
+ };
4333
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
4334
+ return _this.http.request("put", url_, transformedOptions_);
4335
+ })).pipe(operators.mergeMap(function (response_) {
4336
+ return _this.transformResult(url_, response_, function (r) { return _this.processUpdate(r); });
4337
+ })).pipe(operators.catchError(function (response_) {
4338
+ if (response_ instanceof i1.HttpResponseBase) {
4339
+ try {
4340
+ return _this.transformResult(url_, response_, function (r) { return _this.processUpdate(r); });
4341
+ }
4342
+ catch (e) {
4343
+ return rxjs.throwError(e);
4344
+ }
4345
+ }
4346
+ else
4347
+ return rxjs.throwError(response_);
4348
+ }));
4349
+ };
4350
+ ProjectStatusesManagementApiClient.prototype.processUpdate = function (response) {
4351
+ var e_37, _a;
4352
+ var _this = this;
4353
+ var status = response.status;
4354
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
4355
+ response.error instanceof Blob ? response.error : undefined;
4356
+ var _headers = {};
4357
+ if (response.headers) {
4358
+ try {
4359
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
4360
+ var key = _c.value;
4361
+ _headers[key] = response.headers.get(key);
4362
+ }
4363
+ }
4364
+ catch (e_37_1) { e_37 = { error: e_37_1 }; }
4365
+ finally {
4366
+ try {
4367
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4368
+ }
4369
+ finally { if (e_37) throw e_37.error; }
4370
+ }
4371
+ }
4372
+ if (status === 200) {
4373
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4374
+ var result200 = null;
4375
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
4376
+ return rxjs.of(result200);
4377
+ }));
4378
+ }
4379
+ else if (status === 400) {
4380
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4381
+ var result400 = null;
4382
+ result400 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
4383
+ return throwException("Bad Request", status, _responseText, _headers, result400);
4384
+ }));
4385
+ }
4386
+ else if (status === 404) {
4387
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4388
+ var result404 = null;
4389
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
4390
+ return throwException("Not Found", status, _responseText, _headers, result404);
4391
+ }));
4392
+ }
4393
+ else if (status === 409) {
4394
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4395
+ var result409 = null;
4396
+ result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
4397
+ return throwException("Conflict", status, _responseText, _headers, result409);
4398
+ }));
4399
+ }
4400
+ else if (status === 401) {
4401
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4402
+ return throwException("Unauthorized", status, _responseText, _headers);
4403
+ }));
4404
+ }
4405
+ else if (status === 403) {
4406
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4407
+ return throwException("Forbidden", status, _responseText, _headers);
4408
+ }));
4409
+ }
4410
+ else if (status !== 200 && status !== 204) {
4411
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4412
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
4413
+ }));
4414
+ }
4415
+ return rxjs.of(null);
4416
+ };
4417
+ /**
4418
+ * Deletes an existing project status and returns its description.
4419
+ * @param id Status identifier.
4420
+ * @param tenantId (optional) Tenant identifier.
4421
+ * @return Success
4422
+ */
4423
+ ProjectStatusesManagementApiClient.prototype.delete = function (id, tenantId) {
4424
+ var _this = this;
4425
+ var url_ = this.baseUrl + "/api/backoffice/v1/projects-statuses/{id}?";
4426
+ if (id === undefined || id === null)
4427
+ throw new Error("The parameter 'id' must be defined.");
4428
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
4429
+ if (tenantId !== undefined && tenantId !== null)
4430
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
4431
+ url_ = url_.replace(/[?&]$/, "");
4432
+ var options_ = {
4433
+ observe: "response",
4434
+ responseType: "blob",
4435
+ headers: new i1.HttpHeaders({
4436
+ "Accept": "application/json"
4437
+ })
4438
+ };
4439
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
4440
+ return _this.http.request("delete", url_, transformedOptions_);
4441
+ })).pipe(operators.mergeMap(function (response_) {
4442
+ return _this.transformResult(url_, response_, function (r) { return _this.processDelete(r); });
4443
+ })).pipe(operators.catchError(function (response_) {
4444
+ if (response_ instanceof i1.HttpResponseBase) {
4445
+ try {
4446
+ return _this.transformResult(url_, response_, function (r) { return _this.processDelete(r); });
4447
+ }
4448
+ catch (e) {
4449
+ return rxjs.throwError(e);
4450
+ }
4451
+ }
4452
+ else
4453
+ return rxjs.throwError(response_);
4454
+ }));
4455
+ };
4456
+ ProjectStatusesManagementApiClient.prototype.processDelete = function (response) {
4457
+ var e_38, _a;
4458
+ var _this = this;
4459
+ var status = response.status;
4460
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
4461
+ response.error instanceof Blob ? response.error : undefined;
4462
+ var _headers = {};
4463
+ if (response.headers) {
4464
+ try {
4465
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
4466
+ var key = _c.value;
4467
+ _headers[key] = response.headers.get(key);
4468
+ }
4469
+ }
4470
+ catch (e_38_1) { e_38 = { error: e_38_1 }; }
4471
+ finally {
4472
+ try {
4473
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4474
+ }
4475
+ finally { if (e_38) throw e_38.error; }
4476
+ }
4477
+ }
4478
+ if (status === 200) {
4479
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4480
+ var result200 = null;
4481
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
4482
+ return rxjs.of(result200);
4483
+ }));
4484
+ }
4485
+ else if (status === 404) {
4486
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4487
+ var result404 = null;
4488
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
4489
+ return throwException("Not Found", status, _responseText, _headers, result404);
4490
+ }));
4491
+ }
4492
+ else if (status === 409) {
4493
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4494
+ var result409 = null;
4495
+ result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
4496
+ return throwException("Conflict", status, _responseText, _headers, result409);
4497
+ }));
4498
+ }
4499
+ else if (status === 401) {
4500
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4501
+ return throwException("Unauthorized", status, _responseText, _headers);
4502
+ }));
4503
+ }
4504
+ else if (status === 403) {
4505
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4506
+ return throwException("Forbidden", status, _responseText, _headers);
4507
+ }));
4508
+ }
4509
+ else if (status !== 200 && status !== 204) {
4510
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4511
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
4512
+ }));
4513
+ }
4514
+ return rxjs.of(null);
4515
+ };
4516
+ return ProjectStatusesManagementApiClient;
4517
+ }(ApiClientBase));
4518
+ ProjectStatusesManagementApiClient.ɵprov = i0.ɵɵdefineInjectable({ factory: function ProjectStatusesManagementApiClient_Factory() { return new ProjectStatusesManagementApiClient(i0.ɵɵinject(ApiClientConfiguration), i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(API_BASE_URL, 8)); }, token: ProjectStatusesManagementApiClient, providedIn: "root" });
4519
+ ProjectStatusesManagementApiClient.decorators = [
4520
+ { type: i0.Injectable, args: [{
4521
+ providedIn: 'root'
4522
+ },] }
4523
+ ];
4524
+ ProjectStatusesManagementApiClient.ctorParameters = function () { return [
4525
+ { type: ApiClientConfiguration, decorators: [{ type: i0.Inject, args: [ApiClientConfiguration,] }] },
4526
+ { type: i1.HttpClient, decorators: [{ type: i0.Inject, args: [i1.HttpClient,] }] },
4527
+ { type: String, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [API_BASE_URL,] }] }
4528
+ ]; };
4529
+ var ProjectStatusTransitionsManagementApiClient = /** @class */ (function (_super) {
4530
+ __extends(ProjectStatusTransitionsManagementApiClient, _super);
4531
+ function ProjectStatusTransitionsManagementApiClient(configuration, http, baseUrl) {
4532
+ var _this = _super.call(this, configuration) || this;
4533
+ _this.jsonParseReviver = undefined;
4534
+ _this.http = http;
4535
+ _this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : _this.getBaseUrl("");
4536
+ return _this;
4537
+ }
4538
+ /**
4539
+ * Returns a list of all existing project status transitions.
4540
+ * @param tenantId (optional) Tenant identifier.
4541
+ * @return Success
4542
+ */
4543
+ ProjectStatusTransitionsManagementApiClient.prototype.getAll = function (tenantId) {
4544
+ var _this = this;
4545
+ var url_ = this.baseUrl + "/api/backoffice/v1/projects-transitions?";
4546
+ if (tenantId !== undefined && tenantId !== null)
4547
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
4548
+ url_ = url_.replace(/[?&]$/, "");
4549
+ var options_ = {
4550
+ observe: "response",
4551
+ responseType: "blob",
4552
+ headers: new i1.HttpHeaders({
4553
+ "Accept": "application/json"
3246
4554
  })
3247
4555
  };
3248
4556
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
3249
- return _this.http.request("post", url_, transformedOptions_);
4557
+ return _this.http.request("get", url_, transformedOptions_);
3250
4558
  })).pipe(operators.mergeMap(function (response_) {
3251
- return _this.transformResult(url_, response_, function (r) { return _this.processCreateDocumentsConnections(r); });
4559
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetAll(r); });
3252
4560
  })).pipe(operators.catchError(function (response_) {
3253
4561
  if (response_ instanceof i1.HttpResponseBase) {
3254
4562
  try {
3255
- return _this.transformResult(url_, response_, function (r) { return _this.processCreateDocumentsConnections(r); });
4563
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetAll(r); });
3256
4564
  }
3257
4565
  catch (e) {
3258
4566
  return rxjs.throwError(e);
@@ -3262,8 +4570,8 @@
3262
4570
  return rxjs.throwError(response_);
3263
4571
  }));
3264
4572
  };
3265
- ProductsManagementApiClient.prototype.processCreateDocumentsConnections = function (response) {
3266
- var e_26, _a;
4573
+ ProjectStatusTransitionsManagementApiClient.prototype.processGetAll = function (response) {
4574
+ var e_39, _a;
3267
4575
  var _this = this;
3268
4576
  var status = response.status;
3269
4577
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3276,31 +4584,19 @@
3276
4584
  _headers[key] = response.headers.get(key);
3277
4585
  }
3278
4586
  }
3279
- catch (e_26_1) { e_26 = { error: e_26_1 }; }
4587
+ catch (e_39_1) { e_39 = { error: e_39_1 }; }
3280
4588
  finally {
3281
4589
  try {
3282
4590
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3283
4591
  }
3284
- finally { if (e_26) throw e_26.error; }
4592
+ finally { if (e_39) throw e_39.error; }
3285
4593
  }
3286
4594
  }
3287
4595
  if (status === 200) {
3288
4596
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3289
- return rxjs.of(null);
3290
- }));
3291
- }
3292
- else if (status === 404) {
3293
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3294
- var result404 = null;
3295
- result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
3296
- return throwException("Not Found", status, _responseText, _headers, result404);
3297
- }));
3298
- }
3299
- else if (status === 409) {
3300
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3301
- var result409 = null;
3302
- result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
3303
- return throwException("Conflict", status, _responseText, _headers, result409);
4597
+ var result200 = null;
4598
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
4599
+ return rxjs.of(result200);
3304
4600
  }));
3305
4601
  }
3306
4602
  else if (status === 401) {
@@ -3321,38 +4617,35 @@
3321
4617
  return rxjs.of(null);
3322
4618
  };
3323
4619
  /**
3324
- * Removes documents connections for a specified product.
3325
- * @param id Product identifier.
4620
+ * Returns a project status transition by its identifier.
4621
+ * @param id Status transition identifier.
3326
4622
  * @param tenantId (optional) Tenant identifier.
3327
- * @param body (optional) Product documents connections creation parameters.
3328
4623
  * @return Success
3329
4624
  */
3330
- ProductsManagementApiClient.prototype.removeDocumentsConnections = function (id, tenantId, body) {
4625
+ ProjectStatusTransitionsManagementApiClient.prototype.get = function (id, tenantId) {
3331
4626
  var _this = this;
3332
- var url_ = this.baseUrl + "/api/backoffice/v1/products/{id}/document-connections?";
4627
+ var url_ = this.baseUrl + "/api/backoffice/v1/projects-transitions/{id}?";
3333
4628
  if (id === undefined || id === null)
3334
4629
  throw new Error("The parameter 'id' must be defined.");
3335
4630
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
3336
4631
  if (tenantId !== undefined && tenantId !== null)
3337
4632
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3338
4633
  url_ = url_.replace(/[?&]$/, "");
3339
- var content_ = JSON.stringify(body);
3340
4634
  var options_ = {
3341
- body: content_,
3342
4635
  observe: "response",
3343
4636
  responseType: "blob",
3344
4637
  headers: new i1.HttpHeaders({
3345
- "Content-Type": "application/json",
4638
+ "Accept": "application/json"
3346
4639
  })
3347
4640
  };
3348
4641
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
3349
- return _this.http.request("delete", url_, transformedOptions_);
4642
+ return _this.http.request("get", url_, transformedOptions_);
3350
4643
  })).pipe(operators.mergeMap(function (response_) {
3351
- return _this.transformResult(url_, response_, function (r) { return _this.processRemoveDocumentsConnections(r); });
4644
+ return _this.transformResult(url_, response_, function (r) { return _this.processGet(r); });
3352
4645
  })).pipe(operators.catchError(function (response_) {
3353
4646
  if (response_ instanceof i1.HttpResponseBase) {
3354
4647
  try {
3355
- return _this.transformResult(url_, response_, function (r) { return _this.processRemoveDocumentsConnections(r); });
4648
+ return _this.transformResult(url_, response_, function (r) { return _this.processGet(r); });
3356
4649
  }
3357
4650
  catch (e) {
3358
4651
  return rxjs.throwError(e);
@@ -3362,8 +4655,8 @@
3362
4655
  return rxjs.throwError(response_);
3363
4656
  }));
3364
4657
  };
3365
- ProductsManagementApiClient.prototype.processRemoveDocumentsConnections = function (response) {
3366
- var e_27, _a;
4658
+ ProjectStatusTransitionsManagementApiClient.prototype.processGet = function (response) {
4659
+ var e_40, _a;
3367
4660
  var _this = this;
3368
4661
  var status = response.status;
3369
4662
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3376,17 +4669,19 @@
3376
4669
  _headers[key] = response.headers.get(key);
3377
4670
  }
3378
4671
  }
3379
- catch (e_27_1) { e_27 = { error: e_27_1 }; }
4672
+ catch (e_40_1) { e_40 = { error: e_40_1 }; }
3380
4673
  finally {
3381
4674
  try {
3382
4675
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3383
4676
  }
3384
- finally { if (e_27) throw e_27.error; }
4677
+ finally { if (e_40) throw e_40.error; }
3385
4678
  }
3386
4679
  }
3387
4680
  if (status === 200) {
3388
4681
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3389
- return rxjs.of(null);
4682
+ var result200 = null;
4683
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
4684
+ return rxjs.of(result200);
3390
4685
  }));
3391
4686
  }
3392
4687
  else if (status === 404) {
@@ -3396,13 +4691,6 @@
3396
4691
  return throwException("Not Found", status, _responseText, _headers, result404);
3397
4692
  }));
3398
4693
  }
3399
- else if (status === 409) {
3400
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3401
- var result409 = null;
3402
- result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
3403
- return throwException("Conflict", status, _responseText, _headers, result409);
3404
- }));
3405
- }
3406
4694
  else if (status === 401) {
3407
4695
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3408
4696
  return throwException("Unauthorized", status, _responseText, _headers);
@@ -3421,41 +4709,39 @@
3421
4709
  return rxjs.of(null);
3422
4710
  };
3423
4711
  /**
3424
- * Set a thumbnail image for an existing product.
3425
- * @param id Product identifier.
3426
- * @param productVersionId (optional)
4712
+ * Updates an existing project status transition and returns its description.
4713
+ * @param id Status transition identifier.
3427
4714
  * @param tenantId (optional) Tenant identifier.
3428
- * @param file (optional)
4715
+ * @param body (optional) Status transition update parameters.
3429
4716
  * @return Success
3430
4717
  */
3431
- ProductsManagementApiClient.prototype.setProductImage = function (id, productVersionId, tenantId, file) {
4718
+ ProjectStatusTransitionsManagementApiClient.prototype.update = function (id, tenantId, body) {
3432
4719
  var _this = this;
3433
- var url_ = this.baseUrl + "/api/backoffice/v1/products/{id}/set-image?";
4720
+ var url_ = this.baseUrl + "/api/backoffice/v1/projects-transitions/{id}?";
3434
4721
  if (id === undefined || id === null)
3435
4722
  throw new Error("The parameter 'id' must be defined.");
3436
4723
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
3437
- if (productVersionId !== undefined && productVersionId !== null)
3438
- url_ += "productVersionId=" + encodeURIComponent("" + productVersionId) + "&";
3439
4724
  if (tenantId !== undefined && tenantId !== null)
3440
4725
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3441
4726
  url_ = url_.replace(/[?&]$/, "");
3442
- var content_ = new FormData();
3443
- if (file !== null && file !== undefined)
3444
- content_.append("file", file.data, file.fileName ? file.fileName : "file");
4727
+ var content_ = JSON.stringify(body);
3445
4728
  var options_ = {
3446
4729
  body: content_,
3447
4730
  observe: "response",
3448
4731
  responseType: "blob",
3449
- headers: new i1.HttpHeaders({})
4732
+ headers: new i1.HttpHeaders({
4733
+ "Content-Type": "application/json",
4734
+ "Accept": "application/json"
4735
+ })
3450
4736
  };
3451
4737
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
3452
- return _this.http.request("post", url_, transformedOptions_);
4738
+ return _this.http.request("put", url_, transformedOptions_);
3453
4739
  })).pipe(operators.mergeMap(function (response_) {
3454
- return _this.transformResult(url_, response_, function (r) { return _this.processSetProductImage(r); });
4740
+ return _this.transformResult(url_, response_, function (r) { return _this.processUpdate(r); });
3455
4741
  })).pipe(operators.catchError(function (response_) {
3456
4742
  if (response_ instanceof i1.HttpResponseBase) {
3457
4743
  try {
3458
- return _this.transformResult(url_, response_, function (r) { return _this.processSetProductImage(r); });
4744
+ return _this.transformResult(url_, response_, function (r) { return _this.processUpdate(r); });
3459
4745
  }
3460
4746
  catch (e) {
3461
4747
  return rxjs.throwError(e);
@@ -3465,8 +4751,8 @@
3465
4751
  return rxjs.throwError(response_);
3466
4752
  }));
3467
4753
  };
3468
- ProductsManagementApiClient.prototype.processSetProductImage = function (response) {
3469
- var e_28, _a;
4754
+ ProjectStatusTransitionsManagementApiClient.prototype.processUpdate = function (response) {
4755
+ var e_41, _a;
3470
4756
  var _this = this;
3471
4757
  var status = response.status;
3472
4758
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3479,17 +4765,19 @@
3479
4765
  _headers[key] = response.headers.get(key);
3480
4766
  }
3481
4767
  }
3482
- catch (e_28_1) { e_28 = { error: e_28_1 }; }
4768
+ catch (e_41_1) { e_41 = { error: e_41_1 }; }
3483
4769
  finally {
3484
4770
  try {
3485
4771
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3486
4772
  }
3487
- finally { if (e_28) throw e_28.error; }
4773
+ finally { if (e_41) throw e_41.error; }
3488
4774
  }
3489
4775
  }
3490
4776
  if (status === 200) {
3491
4777
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3492
- return rxjs.of(null);
4778
+ var result200 = null;
4779
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
4780
+ return rxjs.of(result200);
3493
4781
  }));
3494
4782
  }
3495
4783
  else if (status === 400) {
@@ -3531,22 +4819,17 @@
3531
4819
  return rxjs.of(null);
3532
4820
  };
3533
4821
  /**
3534
- * Returns all available product personalization workflows.
3535
- * @param skip (optional) Defines page start offset from beginning of sorted result list.
3536
- * @param take (optional) Defines page length (how many consequent items of sorted result list should be taken).
3537
- * @param search (optional) Search string for partial by personalization workflow name.
4822
+ * Deletes an existing project status transition and returns its description.
4823
+ * @param id Status transition identifier.
3538
4824
  * @param tenantId (optional) Tenant identifier.
3539
4825
  * @return Success
3540
4826
  */
3541
- ProductsManagementApiClient.prototype.getAvailablePersonalizationWorkflows = function (skip, take, search, tenantId) {
4827
+ ProjectStatusTransitionsManagementApiClient.prototype.delete = function (id, tenantId) {
3542
4828
  var _this = this;
3543
- var url_ = this.baseUrl + "/api/backoffice/v1/products/available-workflows?";
3544
- if (skip !== undefined && skip !== null)
3545
- url_ += "skip=" + encodeURIComponent("" + skip) + "&";
3546
- if (take !== undefined && take !== null)
3547
- url_ += "take=" + encodeURIComponent("" + take) + "&";
3548
- if (search !== undefined && search !== null)
3549
- url_ += "search=" + encodeURIComponent("" + search) + "&";
4829
+ var url_ = this.baseUrl + "/api/backoffice/v1/projects-transitions/{id}?";
4830
+ if (id === undefined || id === null)
4831
+ throw new Error("The parameter 'id' must be defined.");
4832
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
3550
4833
  if (tenantId !== undefined && tenantId !== null)
3551
4834
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3552
4835
  url_ = url_.replace(/[?&]$/, "");
@@ -3558,13 +4841,13 @@
3558
4841
  })
3559
4842
  };
3560
4843
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
3561
- return _this.http.request("get", url_, transformedOptions_);
4844
+ return _this.http.request("delete", url_, transformedOptions_);
3562
4845
  })).pipe(operators.mergeMap(function (response_) {
3563
- return _this.transformResult(url_, response_, function (r) { return _this.processGetAvailablePersonalizationWorkflows(r); });
4846
+ return _this.transformResult(url_, response_, function (r) { return _this.processDelete(r); });
3564
4847
  })).pipe(operators.catchError(function (response_) {
3565
4848
  if (response_ instanceof i1.HttpResponseBase) {
3566
4849
  try {
3567
- return _this.transformResult(url_, response_, function (r) { return _this.processGetAvailablePersonalizationWorkflows(r); });
4850
+ return _this.transformResult(url_, response_, function (r) { return _this.processDelete(r); });
3568
4851
  }
3569
4852
  catch (e) {
3570
4853
  return rxjs.throwError(e);
@@ -3574,8 +4857,8 @@
3574
4857
  return rxjs.throwError(response_);
3575
4858
  }));
3576
4859
  };
3577
- ProductsManagementApiClient.prototype.processGetAvailablePersonalizationWorkflows = function (response) {
3578
- var e_29, _a;
4860
+ ProjectStatusTransitionsManagementApiClient.prototype.processDelete = function (response) {
4861
+ var e_42, _a;
3579
4862
  var _this = this;
3580
4863
  var status = response.status;
3581
4864
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3588,12 +4871,12 @@
3588
4871
  _headers[key] = response.headers.get(key);
3589
4872
  }
3590
4873
  }
3591
- catch (e_29_1) { e_29 = { error: e_29_1 }; }
4874
+ catch (e_42_1) { e_42 = { error: e_42_1 }; }
3592
4875
  finally {
3593
4876
  try {
3594
4877
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3595
4878
  }
3596
- finally { if (e_29) throw e_29.error; }
4879
+ finally { if (e_42) throw e_42.error; }
3597
4880
  }
3598
4881
  }
3599
4882
  if (status === 200) {
@@ -3603,6 +4886,13 @@
3603
4886
  return rxjs.of(result200);
3604
4887
  }));
3605
4888
  }
4889
+ else if (status === 404) {
4890
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4891
+ var result404 = null;
4892
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
4893
+ return throwException("Not Found", status, _responseText, _headers, result404);
4894
+ }));
4895
+ }
3606
4896
  else if (status === 401) {
3607
4897
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3608
4898
  return throwException("Unauthorized", status, _responseText, _headers);
@@ -3621,40 +4911,35 @@
3621
4911
  return rxjs.of(null);
3622
4912
  };
3623
4913
  /**
3624
- * Returns all available product processing pipelines.
3625
- * @param skip (optional) Defines page start offset from beginning of sorted result list.
3626
- * @param take (optional) Defines page length (how many consequent items of sorted result list should be taken).
3627
- * @param search (optional) Search string for partial by processing pipeline name.
4914
+ * Creates a new project status transition and returns its description.
3628
4915
  * @param tenantId (optional) Tenant identifier.
4916
+ * @param body (optional) Status transition creation parameters.
3629
4917
  * @return Success
3630
4918
  */
3631
- ProductsManagementApiClient.prototype.getAvailableProcessingPipelines = function (skip, take, search, tenantId) {
4919
+ ProjectStatusTransitionsManagementApiClient.prototype.create = function (tenantId, body) {
3632
4920
  var _this = this;
3633
- var url_ = this.baseUrl + "/api/backoffice/v1/products/available-pipelines?";
3634
- if (skip !== undefined && skip !== null)
3635
- url_ += "skip=" + encodeURIComponent("" + skip) + "&";
3636
- if (take !== undefined && take !== null)
3637
- url_ += "take=" + encodeURIComponent("" + take) + "&";
3638
- if (search !== undefined && search !== null)
3639
- url_ += "search=" + encodeURIComponent("" + search) + "&";
4921
+ var url_ = this.baseUrl + "/api/backoffice/v1/projects-transitions/transitions?";
3640
4922
  if (tenantId !== undefined && tenantId !== null)
3641
4923
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3642
4924
  url_ = url_.replace(/[?&]$/, "");
4925
+ var content_ = JSON.stringify(body);
3643
4926
  var options_ = {
4927
+ body: content_,
3644
4928
  observe: "response",
3645
4929
  responseType: "blob",
3646
4930
  headers: new i1.HttpHeaders({
4931
+ "Content-Type": "application/json",
3647
4932
  "Accept": "application/json"
3648
4933
  })
3649
4934
  };
3650
4935
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
3651
- return _this.http.request("get", url_, transformedOptions_);
4936
+ return _this.http.request("post", url_, transformedOptions_);
3652
4937
  })).pipe(operators.mergeMap(function (response_) {
3653
- return _this.transformResult(url_, response_, function (r) { return _this.processGetAvailableProcessingPipelines(r); });
4938
+ return _this.transformResult(url_, response_, function (r) { return _this.processCreate(r); });
3654
4939
  })).pipe(operators.catchError(function (response_) {
3655
4940
  if (response_ instanceof i1.HttpResponseBase) {
3656
4941
  try {
3657
- return _this.transformResult(url_, response_, function (r) { return _this.processGetAvailableProcessingPipelines(r); });
4942
+ return _this.transformResult(url_, response_, function (r) { return _this.processCreate(r); });
3658
4943
  }
3659
4944
  catch (e) {
3660
4945
  return rxjs.throwError(e);
@@ -3664,8 +4949,8 @@
3664
4949
  return rxjs.throwError(response_);
3665
4950
  }));
3666
4951
  };
3667
- ProductsManagementApiClient.prototype.processGetAvailableProcessingPipelines = function (response) {
3668
- var e_30, _a;
4952
+ ProjectStatusTransitionsManagementApiClient.prototype.processCreate = function (response) {
4953
+ var e_43, _a;
3669
4954
  var _this = this;
3670
4955
  var status = response.status;
3671
4956
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3678,19 +4963,33 @@
3678
4963
  _headers[key] = response.headers.get(key);
3679
4964
  }
3680
4965
  }
3681
- catch (e_30_1) { e_30 = { error: e_30_1 }; }
4966
+ catch (e_43_1) { e_43 = { error: e_43_1 }; }
3682
4967
  finally {
3683
4968
  try {
3684
4969
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3685
4970
  }
3686
- finally { if (e_30) throw e_30.error; }
4971
+ finally { if (e_43) throw e_43.error; }
3687
4972
  }
3688
4973
  }
3689
- if (status === 200) {
4974
+ if (status === 201) {
3690
4975
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3691
- var result200 = null;
3692
- result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
3693
- return rxjs.of(result200);
4976
+ var result201 = null;
4977
+ result201 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
4978
+ return rxjs.of(result201);
4979
+ }));
4980
+ }
4981
+ else if (status === 400) {
4982
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4983
+ var result400 = null;
4984
+ result400 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
4985
+ return throwException("Bad Request", status, _responseText, _headers, result400);
4986
+ }));
4987
+ }
4988
+ else if (status === 409) {
4989
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4990
+ var result409 = null;
4991
+ result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
4992
+ return throwException("Conflict", status, _responseText, _headers, result409);
3694
4993
  }));
3695
4994
  }
3696
4995
  else if (status === 401) {
@@ -3710,15 +5009,15 @@
3710
5009
  }
3711
5010
  return rxjs.of(null);
3712
5011
  };
3713
- return ProductsManagementApiClient;
5012
+ return ProjectStatusTransitionsManagementApiClient;
3714
5013
  }(ApiClientBase));
3715
- ProductsManagementApiClient.ɵprov = i0.ɵɵdefineInjectable({ factory: function ProductsManagementApiClient_Factory() { return new ProductsManagementApiClient(i0.ɵɵinject(ApiClientConfiguration), i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(API_BASE_URL, 8)); }, token: ProductsManagementApiClient, providedIn: "root" });
3716
- ProductsManagementApiClient.decorators = [
5014
+ ProjectStatusTransitionsManagementApiClient.ɵprov = i0.ɵɵdefineInjectable({ factory: function ProjectStatusTransitionsManagementApiClient_Factory() { return new ProjectStatusTransitionsManagementApiClient(i0.ɵɵinject(ApiClientConfiguration), i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(API_BASE_URL, 8)); }, token: ProjectStatusTransitionsManagementApiClient, providedIn: "root" });
5015
+ ProjectStatusTransitionsManagementApiClient.decorators = [
3717
5016
  { type: i0.Injectable, args: [{
3718
5017
  providedIn: 'root'
3719
5018
  },] }
3720
5019
  ];
3721
- ProductsManagementApiClient.ctorParameters = function () { return [
5020
+ ProjectStatusTransitionsManagementApiClient.ctorParameters = function () { return [
3722
5021
  { type: ApiClientConfiguration, decorators: [{ type: i0.Inject, args: [ApiClientConfiguration,] }] },
3723
5022
  { type: i1.HttpClient, decorators: [{ type: i0.Inject, args: [i1.HttpClient,] }] },
3724
5023
  { type: String, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [API_BASE_URL,] }] }
@@ -3739,10 +5038,11 @@
3739
5038
  * @param take (optional) Defines page length (how many consequent items of sorted result list should be taken).
3740
5039
  * @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC".
3741
5040
  * @param search (optional) Search string for partial match.
5041
+ * @param status (optional) Storefront status.
3742
5042
  * @param tenantId (optional) Tenant identifier.
3743
5043
  * @return Success
3744
5044
  */
3745
- StorefrontsManagementApiClient.prototype.getAll = function (types, skip, take, sorting, search, tenantId) {
5045
+ StorefrontsManagementApiClient.prototype.getAll = function (types, skip, take, sorting, search, status, tenantId) {
3746
5046
  var _this = this;
3747
5047
  var url_ = this.baseUrl + "/api/backoffice/v1/storefronts?";
3748
5048
  if (types !== undefined && types !== null)
@@ -3755,6 +5055,8 @@
3755
5055
  url_ += "sorting=" + encodeURIComponent("" + sorting) + "&";
3756
5056
  if (search !== undefined && search !== null)
3757
5057
  url_ += "search=" + encodeURIComponent("" + search) + "&";
5058
+ if (status !== undefined && status !== null)
5059
+ url_ += "status=" + encodeURIComponent("" + status) + "&";
3758
5060
  if (tenantId !== undefined && tenantId !== null)
3759
5061
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3760
5062
  url_ = url_.replace(/[?&]$/, "");
@@ -3783,7 +5085,7 @@
3783
5085
  }));
3784
5086
  };
3785
5087
  StorefrontsManagementApiClient.prototype.processGetAll = function (response) {
3786
- var e_31, _a;
5088
+ var e_44, _a;
3787
5089
  var _this = this;
3788
5090
  var status = response.status;
3789
5091
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3796,12 +5098,12 @@
3796
5098
  _headers[key] = response.headers.get(key);
3797
5099
  }
3798
5100
  }
3799
- catch (e_31_1) { e_31 = { error: e_31_1 }; }
5101
+ catch (e_44_1) { e_44 = { error: e_44_1 }; }
3800
5102
  finally {
3801
5103
  try {
3802
5104
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3803
5105
  }
3804
- finally { if (e_31) throw e_31.error; }
5106
+ finally { if (e_44) throw e_44.error; }
3805
5107
  }
3806
5108
  }
3807
5109
  if (status === 200) {
@@ -3868,7 +5170,7 @@
3868
5170
  }));
3869
5171
  };
3870
5172
  StorefrontsManagementApiClient.prototype.processGet = function (response) {
3871
- var e_32, _a;
5173
+ var e_45, _a;
3872
5174
  var _this = this;
3873
5175
  var status = response.status;
3874
5176
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3881,12 +5183,12 @@
3881
5183
  _headers[key] = response.headers.get(key);
3882
5184
  }
3883
5185
  }
3884
- catch (e_32_1) { e_32 = { error: e_32_1 }; }
5186
+ catch (e_45_1) { e_45 = { error: e_45_1 }; }
3885
5187
  finally {
3886
5188
  try {
3887
5189
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3888
5190
  }
3889
- finally { if (e_32) throw e_32.error; }
5191
+ finally { if (e_45) throw e_45.error; }
3890
5192
  }
3891
5193
  }
3892
5194
  if (status === 200) {
@@ -3960,7 +5262,7 @@
3960
5262
  }));
3961
5263
  };
3962
5264
  StorefrontsManagementApiClient.prototype.processDelete = function (response) {
3963
- var e_33, _a;
5265
+ var e_46, _a;
3964
5266
  var _this = this;
3965
5267
  var status = response.status;
3966
5268
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3973,12 +5275,12 @@
3973
5275
  _headers[key] = response.headers.get(key);
3974
5276
  }
3975
5277
  }
3976
- catch (e_33_1) { e_33 = { error: e_33_1 }; }
5278
+ catch (e_46_1) { e_46 = { error: e_46_1 }; }
3977
5279
  finally {
3978
5280
  try {
3979
5281
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3980
5282
  }
3981
- finally { if (e_33) throw e_33.error; }
5283
+ finally { if (e_46) throw e_46.error; }
3982
5284
  }
3983
5285
  }
3984
5286
  if (status === 200) {
@@ -4052,7 +5354,7 @@
4052
5354
  }));
4053
5355
  };
4054
5356
  StorefrontsManagementApiClient.prototype.processCreateCustomStorefront = function (response) {
4055
- var e_34, _a;
5357
+ var e_47, _a;
4056
5358
  var _this = this;
4057
5359
  var status = response.status;
4058
5360
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4065,12 +5367,12 @@
4065
5367
  _headers[key] = response.headers.get(key);
4066
5368
  }
4067
5369
  }
4068
- catch (e_34_1) { e_34 = { error: e_34_1 }; }
5370
+ catch (e_47_1) { e_47 = { error: e_47_1 }; }
4069
5371
  finally {
4070
5372
  try {
4071
5373
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4072
5374
  }
4073
- finally { if (e_34) throw e_34.error; }
5375
+ finally { if (e_47) throw e_47.error; }
4074
5376
  }
4075
5377
  }
4076
5378
  if (status === 200) {
@@ -4151,7 +5453,7 @@
4151
5453
  }));
4152
5454
  };
4153
5455
  StorefrontsManagementApiClient.prototype.processGetCustomStorefront = function (response) {
4154
- var e_35, _a;
5456
+ var e_48, _a;
4155
5457
  var _this = this;
4156
5458
  var status = response.status;
4157
5459
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4164,12 +5466,12 @@
4164
5466
  _headers[key] = response.headers.get(key);
4165
5467
  }
4166
5468
  }
4167
- catch (e_35_1) { e_35 = { error: e_35_1 }; }
5469
+ catch (e_48_1) { e_48 = { error: e_48_1 }; }
4168
5470
  finally {
4169
5471
  try {
4170
5472
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4171
5473
  }
4172
- finally { if (e_35) throw e_35.error; }
5474
+ finally { if (e_48) throw e_48.error; }
4173
5475
  }
4174
5476
  }
4175
5477
  if (status === 200) {
@@ -4243,7 +5545,7 @@
4243
5545
  }));
4244
5546
  };
4245
5547
  StorefrontsManagementApiClient.prototype.processCreateNopCommerceStorefront = function (response) {
4246
- var e_36, _a;
5548
+ var e_49, _a;
4247
5549
  var _this = this;
4248
5550
  var status = response.status;
4249
5551
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4256,12 +5558,12 @@
4256
5558
  _headers[key] = response.headers.get(key);
4257
5559
  }
4258
5560
  }
4259
- catch (e_36_1) { e_36 = { error: e_36_1 }; }
5561
+ catch (e_49_1) { e_49 = { error: e_49_1 }; }
4260
5562
  finally {
4261
5563
  try {
4262
5564
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4263
5565
  }
4264
- finally { if (e_36) throw e_36.error; }
5566
+ finally { if (e_49) throw e_49.error; }
4265
5567
  }
4266
5568
  }
4267
5569
  if (status === 200) {
@@ -4342,7 +5644,7 @@
4342
5644
  }));
4343
5645
  };
4344
5646
  StorefrontsManagementApiClient.prototype.processGetNopCommerceStorefront = function (response) {
4345
- var e_37, _a;
5647
+ var e_50, _a;
4346
5648
  var _this = this;
4347
5649
  var status = response.status;
4348
5650
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4355,12 +5657,12 @@
4355
5657
  _headers[key] = response.headers.get(key);
4356
5658
  }
4357
5659
  }
4358
- catch (e_37_1) { e_37 = { error: e_37_1 }; }
5660
+ catch (e_50_1) { e_50 = { error: e_50_1 }; }
4359
5661
  finally {
4360
5662
  try {
4361
5663
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4362
5664
  }
4363
- finally { if (e_37) throw e_37.error; }
5665
+ finally { if (e_50) throw e_50.error; }
4364
5666
  }
4365
5667
  }
4366
5668
  if (status === 200) {
@@ -4434,7 +5736,7 @@
4434
5736
  }));
4435
5737
  };
4436
5738
  StorefrontsManagementApiClient.prototype.processCreateWooCommerceStorefront = function (response) {
4437
- var e_38, _a;
5739
+ var e_51, _a;
4438
5740
  var _this = this;
4439
5741
  var status = response.status;
4440
5742
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4447,12 +5749,12 @@
4447
5749
  _headers[key] = response.headers.get(key);
4448
5750
  }
4449
5751
  }
4450
- catch (e_38_1) { e_38 = { error: e_38_1 }; }
5752
+ catch (e_51_1) { e_51 = { error: e_51_1 }; }
4451
5753
  finally {
4452
5754
  try {
4453
5755
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4454
5756
  }
4455
- finally { if (e_38) throw e_38.error; }
5757
+ finally { if (e_51) throw e_51.error; }
4456
5758
  }
4457
5759
  }
4458
5760
  if (status === 200) {
@@ -4533,7 +5835,7 @@
4533
5835
  }));
4534
5836
  };
4535
5837
  StorefrontsManagementApiClient.prototype.processGetWooCommerceStorefront = function (response) {
4536
- var e_39, _a;
5838
+ var e_52, _a;
4537
5839
  var _this = this;
4538
5840
  var status = response.status;
4539
5841
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4546,12 +5848,12 @@
4546
5848
  _headers[key] = response.headers.get(key);
4547
5849
  }
4548
5850
  }
4549
- catch (e_39_1) { e_39 = { error: e_39_1 }; }
5851
+ catch (e_52_1) { e_52 = { error: e_52_1 }; }
4550
5852
  finally {
4551
5853
  try {
4552
5854
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4553
5855
  }
4554
- finally { if (e_39) throw e_39.error; }
5856
+ finally { if (e_52) throw e_52.error; }
4555
5857
  }
4556
5858
  }
4557
5859
  if (status === 200) {
@@ -4625,7 +5927,7 @@
4625
5927
  }));
4626
5928
  };
4627
5929
  StorefrontsManagementApiClient.prototype.processCreateMagentoStorefront = function (response) {
4628
- var e_40, _a;
5930
+ var e_53, _a;
4629
5931
  var _this = this;
4630
5932
  var status = response.status;
4631
5933
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4638,12 +5940,12 @@
4638
5940
  _headers[key] = response.headers.get(key);
4639
5941
  }
4640
5942
  }
4641
- catch (e_40_1) { e_40 = { error: e_40_1 }; }
5943
+ catch (e_53_1) { e_53 = { error: e_53_1 }; }
4642
5944
  finally {
4643
5945
  try {
4644
5946
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4645
5947
  }
4646
- finally { if (e_40) throw e_40.error; }
5948
+ finally { if (e_53) throw e_53.error; }
4647
5949
  }
4648
5950
  }
4649
5951
  if (status === 200) {
@@ -4724,7 +6026,7 @@
4724
6026
  }));
4725
6027
  };
4726
6028
  StorefrontsManagementApiClient.prototype.processGetMagentoStorefront = function (response) {
4727
- var e_41, _a;
6029
+ var e_54, _a;
4728
6030
  var _this = this;
4729
6031
  var status = response.status;
4730
6032
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4737,12 +6039,12 @@
4737
6039
  _headers[key] = response.headers.get(key);
4738
6040
  }
4739
6041
  }
4740
- catch (e_41_1) { e_41 = { error: e_41_1 }; }
6042
+ catch (e_54_1) { e_54 = { error: e_54_1 }; }
4741
6043
  finally {
4742
6044
  try {
4743
6045
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4744
6046
  }
4745
- finally { if (e_41) throw e_41.error; }
6047
+ finally { if (e_54) throw e_54.error; }
4746
6048
  }
4747
6049
  }
4748
6050
  if (status === 200) {
@@ -4816,7 +6118,7 @@
4816
6118
  }));
4817
6119
  };
4818
6120
  StorefrontsManagementApiClient.prototype.processCreateBigCommerceStorefront = function (response) {
4819
- var e_42, _a;
6121
+ var e_55, _a;
4820
6122
  var _this = this;
4821
6123
  var status = response.status;
4822
6124
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4829,12 +6131,12 @@
4829
6131
  _headers[key] = response.headers.get(key);
4830
6132
  }
4831
6133
  }
4832
- catch (e_42_1) { e_42 = { error: e_42_1 }; }
6134
+ catch (e_55_1) { e_55 = { error: e_55_1 }; }
4833
6135
  finally {
4834
6136
  try {
4835
6137
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4836
6138
  }
4837
- finally { if (e_42) throw e_42.error; }
6139
+ finally { if (e_55) throw e_55.error; }
4838
6140
  }
4839
6141
  }
4840
6142
  if (status === 200) {
@@ -4915,7 +6217,7 @@
4915
6217
  }));
4916
6218
  };
4917
6219
  StorefrontsManagementApiClient.prototype.processGetBigCommerceStorefront = function (response) {
4918
- var e_43, _a;
6220
+ var e_56, _a;
4919
6221
  var _this = this;
4920
6222
  var status = response.status;
4921
6223
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4928,12 +6230,12 @@
4928
6230
  _headers[key] = response.headers.get(key);
4929
6231
  }
4930
6232
  }
4931
- catch (e_43_1) { e_43 = { error: e_43_1 }; }
6233
+ catch (e_56_1) { e_56 = { error: e_56_1 }; }
4932
6234
  finally {
4933
6235
  try {
4934
6236
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4935
6237
  }
4936
- finally { if (e_43) throw e_43.error; }
6238
+ finally { if (e_56) throw e_56.error; }
4937
6239
  }
4938
6240
  }
4939
6241
  if (status === 200) {
@@ -5025,7 +6327,7 @@
5025
6327
  }));
5026
6328
  };
5027
6329
  UsersManagementApiClient.prototype.processGetAll = function (response) {
5028
- var e_44, _a;
6330
+ var e_57, _a;
5029
6331
  var _this = this;
5030
6332
  var status = response.status;
5031
6333
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5038,12 +6340,12 @@
5038
6340
  _headers[key] = response.headers.get(key);
5039
6341
  }
5040
6342
  }
5041
- catch (e_44_1) { e_44 = { error: e_44_1 }; }
6343
+ catch (e_57_1) { e_57 = { error: e_57_1 }; }
5042
6344
  finally {
5043
6345
  try {
5044
6346
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5045
6347
  }
5046
- finally { if (e_44) throw e_44.error; }
6348
+ finally { if (e_57) throw e_57.error; }
5047
6349
  }
5048
6350
  }
5049
6351
  if (status === 200) {
@@ -5110,7 +6412,7 @@
5110
6412
  }));
5111
6413
  };
5112
6414
  UsersManagementApiClient.prototype.processCreate = function (response) {
5113
- var e_45, _a;
6415
+ var e_58, _a;
5114
6416
  var _this = this;
5115
6417
  var status = response.status;
5116
6418
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5123,12 +6425,12 @@
5123
6425
  _headers[key] = response.headers.get(key);
5124
6426
  }
5125
6427
  }
5126
- catch (e_45_1) { e_45 = { error: e_45_1 }; }
6428
+ catch (e_58_1) { e_58 = { error: e_58_1 }; }
5127
6429
  finally {
5128
6430
  try {
5129
6431
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5130
6432
  }
5131
- finally { if (e_45) throw e_45.error; }
6433
+ finally { if (e_58) throw e_58.error; }
5132
6434
  }
5133
6435
  }
5134
6436
  if (status === 200) {
@@ -5202,7 +6504,7 @@
5202
6504
  }));
5203
6505
  };
5204
6506
  UsersManagementApiClient.prototype.processGet = function (response) {
5205
- var e_46, _a;
6507
+ var e_59, _a;
5206
6508
  var _this = this;
5207
6509
  var status = response.status;
5208
6510
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5215,12 +6517,12 @@
5215
6517
  _headers[key] = response.headers.get(key);
5216
6518
  }
5217
6519
  }
5218
- catch (e_46_1) { e_46 = { error: e_46_1 }; }
6520
+ catch (e_59_1) { e_59 = { error: e_59_1 }; }
5219
6521
  finally {
5220
6522
  try {
5221
6523
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5222
6524
  }
5223
- finally { if (e_46) throw e_46.error; }
6525
+ finally { if (e_59) throw e_59.error; }
5224
6526
  }
5225
6527
  }
5226
6528
  if (status === 200) {
@@ -5292,7 +6594,7 @@
5292
6594
  }));
5293
6595
  };
5294
6596
  UsersManagementApiClient.prototype.processDelete = function (response) {
5295
- var e_47, _a;
6597
+ var e_60, _a;
5296
6598
  var status = response.status;
5297
6599
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
5298
6600
  response.error instanceof Blob ? response.error : undefined;
@@ -5304,12 +6606,12 @@
5304
6606
  _headers[key] = response.headers.get(key);
5305
6607
  }
5306
6608
  }
5307
- catch (e_47_1) { e_47 = { error: e_47_1 }; }
6609
+ catch (e_60_1) { e_60 = { error: e_60_1 }; }
5308
6610
  finally {
5309
6611
  try {
5310
6612
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5311
6613
  }
5312
- finally { if (e_47) throw e_47.error; }
6614
+ finally { if (e_60) throw e_60.error; }
5313
6615
  }
5314
6616
  }
5315
6617
  if (status === 200) {
@@ -5382,7 +6684,7 @@
5382
6684
  }));
5383
6685
  };
5384
6686
  UsersManagementApiClient.prototype.processGetAllRoles = function (response) {
5385
- var e_48, _a;
6687
+ var e_61, _a;
5386
6688
  var _this = this;
5387
6689
  var status = response.status;
5388
6690
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5395,12 +6697,12 @@
5395
6697
  _headers[key] = response.headers.get(key);
5396
6698
  }
5397
6699
  }
5398
- catch (e_48_1) { e_48 = { error: e_48_1 }; }
6700
+ catch (e_61_1) { e_61 = { error: e_61_1 }; }
5399
6701
  finally {
5400
6702
  try {
5401
6703
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5402
6704
  }
5403
- finally { if (e_48) throw e_48.error; }
6705
+ finally { if (e_61) throw e_61.error; }
5404
6706
  }
5405
6707
  }
5406
6708
  if (status === 200) {
@@ -5504,6 +6806,10 @@
5504
6806
  StorefrontType["Shopify"] = "Shopify";
5505
6807
  StorefrontType["ShopifyCustom"] = "ShopifyCustom";
5506
6808
  })(exports.StorefrontType || (exports.StorefrontType = {}));
6809
+ (function (StorefrontStatus) {
6810
+ StorefrontStatus["Dev"] = "Dev";
6811
+ StorefrontStatus["Prod"] = "Prod";
6812
+ })(exports.StorefrontStatus || (exports.StorefrontStatus = {}));
5507
6813
  var ApiException = /** @class */ (function (_super) {
5508
6814
  __extends(ApiException, _super);
5509
6815
  function ApiException(message, status, response, headers, result) {
@@ -5596,6 +6902,8 @@
5596
6902
  exports.CreateApiClientConfiguration = CreateApiClientConfiguration;
5597
6903
  exports.ProductReferencesManagementApiClient = ProductReferencesManagementApiClient;
5598
6904
  exports.ProductsManagementApiClient = ProductsManagementApiClient;
6905
+ exports.ProjectStatusTransitionsManagementApiClient = ProjectStatusTransitionsManagementApiClient;
6906
+ exports.ProjectStatusesManagementApiClient = ProjectStatusesManagementApiClient;
5599
6907
  exports.StorefrontsManagementApiClient = StorefrontsManagementApiClient;
5600
6908
  exports.UsersManagementApiClient = UsersManagementApiClient;
5601
6909