@aurigma/ng-storefront-api-client 2.30.6 → 2.34.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.
@@ -1942,6 +1942,188 @@
1942
1942
  }
1943
1943
  return rxjs.of(null);
1944
1944
  };
1945
+ /**
1946
+ * Returns a project preview file by project identifier.
1947
+ * @param id Project identifier.
1948
+ * @param tenantId (optional) Tenant identifier.
1949
+ * @return Success
1950
+ */
1951
+ ProjectsApiClient.prototype.getPreview = function (id, tenantId) {
1952
+ var _this = this;
1953
+ var url_ = this.baseUrl + "/api/storefront/v1/projects/{id}/preview?";
1954
+ if (id === undefined || id === null)
1955
+ throw new Error("The parameter 'id' must be defined.");
1956
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
1957
+ if (tenantId !== undefined && tenantId !== null)
1958
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
1959
+ url_ = url_.replace(/[?&]$/, "");
1960
+ var options_ = {
1961
+ observe: "response",
1962
+ responseType: "blob",
1963
+ headers: new i1.HttpHeaders({
1964
+ "Accept": "text/plain"
1965
+ })
1966
+ };
1967
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
1968
+ return _this.http.request("get", url_, transformedOptions_);
1969
+ })).pipe(operators.mergeMap(function (response_) {
1970
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetPreview(r); });
1971
+ })).pipe(operators.catchError(function (response_) {
1972
+ if (response_ instanceof i1.HttpResponseBase) {
1973
+ try {
1974
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetPreview(r); });
1975
+ }
1976
+ catch (e) {
1977
+ return rxjs.throwError(e);
1978
+ }
1979
+ }
1980
+ else
1981
+ return rxjs.throwError(response_);
1982
+ }));
1983
+ };
1984
+ ProjectsApiClient.prototype.processGetPreview = function (response) {
1985
+ var e_17, _a;
1986
+ var _this = this;
1987
+ var status = response.status;
1988
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
1989
+ response.error instanceof Blob ? response.error : undefined;
1990
+ var _headers = {};
1991
+ if (response.headers) {
1992
+ try {
1993
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
1994
+ var key = _c.value;
1995
+ _headers[key] = response.headers.get(key);
1996
+ }
1997
+ }
1998
+ catch (e_17_1) { e_17 = { error: e_17_1 }; }
1999
+ finally {
2000
+ try {
2001
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2002
+ }
2003
+ finally { if (e_17) throw e_17.error; }
2004
+ }
2005
+ }
2006
+ if (status === 200 || status === 206) {
2007
+ var contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
2008
+ var fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
2009
+ var fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
2010
+ return rxjs.of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
2011
+ }
2012
+ else if (status === 404) {
2013
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2014
+ var result404 = null;
2015
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
2016
+ return throwException("Not Found", status, _responseText, _headers, result404);
2017
+ }));
2018
+ }
2019
+ else if (status === 401) {
2020
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2021
+ return throwException("Unauthorized", status, _responseText, _headers);
2022
+ }));
2023
+ }
2024
+ else if (status === 403) {
2025
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2026
+ return throwException("Forbidden", status, _responseText, _headers);
2027
+ }));
2028
+ }
2029
+ else if (status !== 200 && status !== 204) {
2030
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2031
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
2032
+ }));
2033
+ }
2034
+ return rxjs.of(null);
2035
+ };
2036
+ /**
2037
+ * Returns a project preview URL by project identifier.
2038
+ * @param id Project identifier.
2039
+ * @param tenantId (optional) Tenant identifier.
2040
+ * @return Success
2041
+ */
2042
+ ProjectsApiClient.prototype.getPreviewUrl = function (id, tenantId) {
2043
+ var _this = this;
2044
+ var url_ = this.baseUrl + "/api/storefront/v1/projects/{id}/preview-url?";
2045
+ if (id === undefined || id === null)
2046
+ throw new Error("The parameter 'id' must be defined.");
2047
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
2048
+ if (tenantId !== undefined && tenantId !== null)
2049
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
2050
+ url_ = url_.replace(/[?&]$/, "");
2051
+ var options_ = {
2052
+ observe: "response",
2053
+ responseType: "blob",
2054
+ headers: new i1.HttpHeaders({
2055
+ "Accept": "text/plain"
2056
+ })
2057
+ };
2058
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
2059
+ return _this.http.request("get", url_, transformedOptions_);
2060
+ })).pipe(operators.mergeMap(function (response_) {
2061
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetPreviewUrl(r); });
2062
+ })).pipe(operators.catchError(function (response_) {
2063
+ if (response_ instanceof i1.HttpResponseBase) {
2064
+ try {
2065
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetPreviewUrl(r); });
2066
+ }
2067
+ catch (e) {
2068
+ return rxjs.throwError(e);
2069
+ }
2070
+ }
2071
+ else
2072
+ return rxjs.throwError(response_);
2073
+ }));
2074
+ };
2075
+ ProjectsApiClient.prototype.processGetPreviewUrl = function (response) {
2076
+ var e_18, _a;
2077
+ var status = response.status;
2078
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
2079
+ response.error instanceof Blob ? response.error : undefined;
2080
+ var _headers = {};
2081
+ if (response.headers) {
2082
+ try {
2083
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
2084
+ var key = _c.value;
2085
+ _headers[key] = response.headers.get(key);
2086
+ }
2087
+ }
2088
+ catch (e_18_1) { e_18 = { error: e_18_1 }; }
2089
+ finally {
2090
+ try {
2091
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2092
+ }
2093
+ finally { if (e_18) throw e_18.error; }
2094
+ }
2095
+ }
2096
+ if (status === 200) {
2097
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2098
+ var result200 = null;
2099
+ result200 = _responseText === "" ? null : _responseText;
2100
+ return rxjs.of(result200);
2101
+ }));
2102
+ }
2103
+ else if (status === 404) {
2104
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2105
+ var result404 = null;
2106
+ result404 = _responseText === "" ? null : _responseText;
2107
+ return throwException("Not Found", status, _responseText, _headers, result404);
2108
+ }));
2109
+ }
2110
+ else if (status === 401) {
2111
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2112
+ return throwException("Unauthorized", status, _responseText, _headers);
2113
+ }));
2114
+ }
2115
+ else if (status === 403) {
2116
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2117
+ return throwException("Forbidden", status, _responseText, _headers);
2118
+ }));
2119
+ }
2120
+ else if (status !== 200 && status !== 204) {
2121
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2122
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
2123
+ }));
2124
+ }
2125
+ return rxjs.of(null);
2126
+ };
1945
2127
  /**
1946
2128
  * Creates a new project by 'Render HiRes' scenario.
1947
2129
  * @param storefrontId Storefront identifier.
@@ -1987,7 +2169,7 @@
1987
2169
  }));
1988
2170
  };
1989
2171
  ProjectsApiClient.prototype.processCreateByRenderHiResScenario = function (response) {
1990
- var e_17, _a;
2172
+ var e_19, _a;
1991
2173
  var _this = this;
1992
2174
  var status = response.status;
1993
2175
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2000,12 +2182,12 @@
2000
2182
  _headers[key] = response.headers.get(key);
2001
2183
  }
2002
2184
  }
2003
- catch (e_17_1) { e_17 = { error: e_17_1 }; }
2185
+ catch (e_19_1) { e_19 = { error: e_19_1 }; }
2004
2186
  finally {
2005
2187
  try {
2006
2188
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2007
2189
  }
2008
- finally { if (e_17) throw e_17.error; }
2190
+ finally { if (e_19) throw e_19.error; }
2009
2191
  }
2010
2192
  }
2011
2193
  if (status === 201) {
@@ -2079,7 +2261,7 @@
2079
2261
  }));
2080
2262
  };
2081
2263
  ProjectsApiClient.prototype.processGetAvailableTransitions = function (response) {
2082
- var e_18, _a;
2264
+ var e_20, _a;
2083
2265
  var _this = this;
2084
2266
  var status = response.status;
2085
2267
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2092,12 +2274,12 @@
2092
2274
  _headers[key] = response.headers.get(key);
2093
2275
  }
2094
2276
  }
2095
- catch (e_18_1) { e_18 = { error: e_18_1 }; }
2277
+ catch (e_20_1) { e_20 = { error: e_20_1 }; }
2096
2278
  finally {
2097
2279
  try {
2098
2280
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2099
2281
  }
2100
- finally { if (e_18) throw e_18.error; }
2282
+ finally { if (e_20) throw e_20.error; }
2101
2283
  }
2102
2284
  }
2103
2285
  if (status === 200) {
@@ -2189,7 +2371,7 @@
2189
2371
  }));
2190
2372
  };
2191
2373
  ProjectsApiClient.prototype.processChangeStatus = function (response) {
2192
- var e_19, _a;
2374
+ var e_21, _a;
2193
2375
  var _this = this;
2194
2376
  var status = response.status;
2195
2377
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2202,12 +2384,12 @@
2202
2384
  _headers[key] = response.headers.get(key);
2203
2385
  }
2204
2386
  }
2205
- catch (e_19_1) { e_19 = { error: e_19_1 }; }
2387
+ catch (e_21_1) { e_21 = { error: e_21_1 }; }
2206
2388
  finally {
2207
2389
  try {
2208
2390
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2209
2391
  }
2210
- finally { if (e_19) throw e_19.error; }
2392
+ finally { if (e_21) throw e_21.error; }
2211
2393
  }
2212
2394
  }
2213
2395
  if (status === 200) {
@@ -2299,7 +2481,7 @@
2299
2481
  }));
2300
2482
  };
2301
2483
  ProjectsApiClient.prototype.processForceStatus = function (response) {
2302
- var e_20, _a;
2484
+ var e_22, _a;
2303
2485
  var _this = this;
2304
2486
  var status = response.status;
2305
2487
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2312,12 +2494,12 @@
2312
2494
  _headers[key] = response.headers.get(key);
2313
2495
  }
2314
2496
  }
2315
- catch (e_20_1) { e_20 = { error: e_20_1 }; }
2497
+ catch (e_22_1) { e_22 = { error: e_22_1 }; }
2316
2498
  finally {
2317
2499
  try {
2318
2500
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2319
2501
  }
2320
- finally { if (e_20) throw e_20.error; }
2502
+ finally { if (e_22) throw e_22.error; }
2321
2503
  }
2322
2504
  }
2323
2505
  if (status === 200) {
@@ -2394,7 +2576,7 @@
2394
2576
  }));
2395
2577
  };
2396
2578
  ProjectsApiClient.prototype.processGetAllStatuses = function (response) {
2397
- var e_21, _a;
2579
+ var e_23, _a;
2398
2580
  var _this = this;
2399
2581
  var status = response.status;
2400
2582
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2407,12 +2589,12 @@
2407
2589
  _headers[key] = response.headers.get(key);
2408
2590
  }
2409
2591
  }
2410
- catch (e_21_1) { e_21 = { error: e_21_1 }; }
2592
+ catch (e_23_1) { e_23 = { error: e_23_1 }; }
2411
2593
  finally {
2412
2594
  try {
2413
2595
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2414
2596
  }
2415
- finally { if (e_21) throw e_21.error; }
2597
+ finally { if (e_23) throw e_23.error; }
2416
2598
  }
2417
2599
  }
2418
2600
  if (status === 200) {
@@ -2475,7 +2657,7 @@
2475
2657
  }));
2476
2658
  };
2477
2659
  ProjectsApiClient.prototype.processGetAllTransitions = function (response) {
2478
- var e_22, _a;
2660
+ var e_24, _a;
2479
2661
  var _this = this;
2480
2662
  var status = response.status;
2481
2663
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2488,12 +2670,12 @@
2488
2670
  _headers[key] = response.headers.get(key);
2489
2671
  }
2490
2672
  }
2491
- catch (e_22_1) { e_22 = { error: e_22_1 }; }
2673
+ catch (e_24_1) { e_24 = { error: e_24_1 }; }
2492
2674
  finally {
2493
2675
  try {
2494
2676
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2495
2677
  }
2496
- finally { if (e_22) throw e_22.error; }
2678
+ finally { if (e_24) throw e_24.error; }
2497
2679
  }
2498
2680
  }
2499
2681
  if (status === 200) {
@@ -2571,7 +2753,7 @@
2571
2753
  }));
2572
2754
  };
2573
2755
  ProjectsApiClient.prototype.processGetProjectPdfUrl = function (response) {
2574
- var e_23, _a;
2756
+ var e_25, _a;
2575
2757
  var _this = this;
2576
2758
  var status = response.status;
2577
2759
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2584,12 +2766,12 @@
2584
2766
  _headers[key] = response.headers.get(key);
2585
2767
  }
2586
2768
  }
2587
- catch (e_23_1) { e_23 = { error: e_23_1 }; }
2769
+ catch (e_25_1) { e_25 = { error: e_25_1 }; }
2588
2770
  finally {
2589
2771
  try {
2590
2772
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2591
2773
  }
2592
- finally { if (e_23) throw e_23.error; }
2774
+ finally { if (e_25) throw e_25.error; }
2593
2775
  }
2594
2776
  }
2595
2777
  if (status === 200) {
@@ -2670,7 +2852,7 @@
2670
2852
  }));
2671
2853
  };
2672
2854
  ProjectsApiClient.prototype.processGetProjectPdfZip = function (response) {
2673
- var e_24, _a;
2855
+ var e_26, _a;
2674
2856
  var _this = this;
2675
2857
  var status = response.status;
2676
2858
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2683,12 +2865,12 @@
2683
2865
  _headers[key] = response.headers.get(key);
2684
2866
  }
2685
2867
  }
2686
- catch (e_24_1) { e_24 = { error: e_24_1 }; }
2868
+ catch (e_26_1) { e_26 = { error: e_26_1 }; }
2687
2869
  finally {
2688
2870
  try {
2689
2871
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2690
2872
  }
2691
- finally { if (e_24) throw e_24.error; }
2873
+ finally { if (e_26) throw e_26.error; }
2692
2874
  }
2693
2875
  }
2694
2876
  if (status === 200 || status === 206) {
@@ -2761,7 +2943,7 @@
2761
2943
  }));
2762
2944
  };
2763
2945
  ProjectsApiClient.prototype.processGetProjectProcessingResults = function (response) {
2764
- var e_25, _a;
2946
+ var e_27, _a;
2765
2947
  var _this = this;
2766
2948
  var status = response.status;
2767
2949
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2774,12 +2956,12 @@
2774
2956
  _headers[key] = response.headers.get(key);
2775
2957
  }
2776
2958
  }
2777
- catch (e_25_1) { e_25 = { error: e_25_1 }; }
2959
+ catch (e_27_1) { e_27 = { error: e_27_1 }; }
2778
2960
  finally {
2779
2961
  try {
2780
2962
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2781
2963
  }
2782
- finally { if (e_25) throw e_25.error; }
2964
+ finally { if (e_27) throw e_27.error; }
2783
2965
  }
2784
2966
  }
2785
2967
  if (status === 200) {
@@ -2851,7 +3033,7 @@
2851
3033
  }));
2852
3034
  };
2853
3035
  ProjectsApiClient.prototype.processResumeProjectProcessing = function (response) {
2854
- var e_26, _a;
3036
+ var e_28, _a;
2855
3037
  var _this = this;
2856
3038
  var status = response.status;
2857
3039
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2864,12 +3046,12 @@
2864
3046
  _headers[key] = response.headers.get(key);
2865
3047
  }
2866
3048
  }
2867
- catch (e_26_1) { e_26 = { error: e_26_1 }; }
3049
+ catch (e_28_1) { e_28 = { error: e_28_1 }; }
2868
3050
  finally {
2869
3051
  try {
2870
3052
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2871
3053
  }
2872
- finally { if (e_26) throw e_26.error; }
3054
+ finally { if (e_28) throw e_28.error; }
2873
3055
  }
2874
3056
  }
2875
3057
  if (status === 204) {
@@ -2939,7 +3121,7 @@
2939
3121
  }));
2940
3122
  };
2941
3123
  ProjectsApiClient.prototype.processRestartProjectProcessing = function (response) {
2942
- var e_27, _a;
3124
+ var e_29, _a;
2943
3125
  var _this = this;
2944
3126
  var status = response.status;
2945
3127
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2952,12 +3134,12 @@
2952
3134
  _headers[key] = response.headers.get(key);
2953
3135
  }
2954
3136
  }
2955
- catch (e_27_1) { e_27 = { error: e_27_1 }; }
3137
+ catch (e_29_1) { e_29 = { error: e_29_1 }; }
2956
3138
  finally {
2957
3139
  try {
2958
3140
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2959
3141
  }
2960
- finally { if (e_27) throw e_27.error; }
3142
+ finally { if (e_29) throw e_29.error; }
2961
3143
  }
2962
3144
  }
2963
3145
  if (status === 204) {
@@ -3029,7 +3211,7 @@
3029
3211
  }));
3030
3212
  };
3031
3213
  ProjectsApiClient.prototype.processGetProjectOrder = function (response) {
3032
- var e_28, _a;
3214
+ var e_30, _a;
3033
3215
  var _this = this;
3034
3216
  var status = response.status;
3035
3217
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3042,12 +3224,12 @@
3042
3224
  _headers[key] = response.headers.get(key);
3043
3225
  }
3044
3226
  }
3045
- catch (e_28_1) { e_28 = { error: e_28_1 }; }
3227
+ catch (e_30_1) { e_30 = { error: e_30_1 }; }
3046
3228
  finally {
3047
3229
  try {
3048
3230
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3049
3231
  }
3050
- finally { if (e_28) throw e_28.error; }
3232
+ finally { if (e_30) throw e_30.error; }
3051
3233
  }
3052
3234
  }
3053
3235
  if (status === 200) {
@@ -3124,7 +3306,7 @@
3124
3306
  }));
3125
3307
  };
3126
3308
  ProjectsApiClient.prototype.processAttachDataToProjectOrder = function (response) {
3127
- var e_29, _a;
3309
+ var e_31, _a;
3128
3310
  var _this = this;
3129
3311
  var status = response.status;
3130
3312
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3137,12 +3319,12 @@
3137
3319
  _headers[key] = response.headers.get(key);
3138
3320
  }
3139
3321
  }
3140
- catch (e_29_1) { e_29 = { error: e_29_1 }; }
3322
+ catch (e_31_1) { e_31 = { error: e_31_1 }; }
3141
3323
  finally {
3142
3324
  try {
3143
3325
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3144
3326
  }
3145
- finally { if (e_29) throw e_29.error; }
3327
+ finally { if (e_31) throw e_31.error; }
3146
3328
  }
3147
3329
  }
3148
3330
  if (status === 204) {
@@ -3247,7 +3429,7 @@
3247
3429
  }));
3248
3430
  };
3249
3431
  StorefrontsApiClient.prototype.processGetAll = function (response) {
3250
- var e_30, _a;
3432
+ var e_32, _a;
3251
3433
  var _this = this;
3252
3434
  var status = response.status;
3253
3435
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3260,12 +3442,12 @@
3260
3442
  _headers[key] = response.headers.get(key);
3261
3443
  }
3262
3444
  }
3263
- catch (e_30_1) { e_30 = { error: e_30_1 }; }
3445
+ catch (e_32_1) { e_32 = { error: e_32_1 }; }
3264
3446
  finally {
3265
3447
  try {
3266
3448
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3267
3449
  }
3268
- finally { if (e_30) throw e_30.error; }
3450
+ finally { if (e_32) throw e_32.error; }
3269
3451
  }
3270
3452
  }
3271
3453
  if (status === 200) {
@@ -3332,7 +3514,7 @@
3332
3514
  }));
3333
3515
  };
3334
3516
  StorefrontsApiClient.prototype.processGet = function (response) {
3335
- var e_31, _a;
3517
+ var e_33, _a;
3336
3518
  var _this = this;
3337
3519
  var status = response.status;
3338
3520
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3345,12 +3527,12 @@
3345
3527
  _headers[key] = response.headers.get(key);
3346
3528
  }
3347
3529
  }
3348
- catch (e_31_1) { e_31 = { error: e_31_1 }; }
3530
+ catch (e_33_1) { e_33 = { error: e_33_1 }; }
3349
3531
  finally {
3350
3532
  try {
3351
3533
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3352
3534
  }
3353
- finally { if (e_31) throw e_31.error; }
3535
+ finally { if (e_33) throw e_33.error; }
3354
3536
  }
3355
3537
  }
3356
3538
  if (status === 200) {
@@ -3462,7 +3644,7 @@
3462
3644
  }));
3463
3645
  };
3464
3646
  StorefrontUsersApiClient.prototype.processGetAll = function (response) {
3465
- var e_32, _a;
3647
+ var e_34, _a;
3466
3648
  var _this = this;
3467
3649
  var status = response.status;
3468
3650
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3475,12 +3657,12 @@
3475
3657
  _headers[key] = response.headers.get(key);
3476
3658
  }
3477
3659
  }
3478
- catch (e_32_1) { e_32 = { error: e_32_1 }; }
3660
+ catch (e_34_1) { e_34 = { error: e_34_1 }; }
3479
3661
  finally {
3480
3662
  try {
3481
3663
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3482
3664
  }
3483
- finally { if (e_32) throw e_32.error; }
3665
+ finally { if (e_34) throw e_34.error; }
3484
3666
  }
3485
3667
  }
3486
3668
  if (status === 200) {
@@ -3552,7 +3734,7 @@
3552
3734
  }));
3553
3735
  };
3554
3736
  StorefrontUsersApiClient.prototype.processCreate = function (response) {
3555
- var e_33, _a;
3737
+ var e_35, _a;
3556
3738
  var _this = this;
3557
3739
  var status = response.status;
3558
3740
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3565,12 +3747,12 @@
3565
3747
  _headers[key] = response.headers.get(key);
3566
3748
  }
3567
3749
  }
3568
- catch (e_33_1) { e_33 = { error: e_33_1 }; }
3750
+ catch (e_35_1) { e_35 = { error: e_35_1 }; }
3569
3751
  finally {
3570
3752
  try {
3571
3753
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3572
3754
  }
3573
- finally { if (e_33) throw e_33.error; }
3755
+ finally { if (e_35) throw e_35.error; }
3574
3756
  }
3575
3757
  }
3576
3758
  if (status === 201) {
@@ -3649,7 +3831,7 @@
3649
3831
  }));
3650
3832
  };
3651
3833
  StorefrontUsersApiClient.prototype.processGet = function (response) {
3652
- var e_34, _a;
3834
+ var e_36, _a;
3653
3835
  var _this = this;
3654
3836
  var status = response.status;
3655
3837
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3662,12 +3844,12 @@
3662
3844
  _headers[key] = response.headers.get(key);
3663
3845
  }
3664
3846
  }
3665
- catch (e_34_1) { e_34 = { error: e_34_1 }; }
3847
+ catch (e_36_1) { e_36 = { error: e_36_1 }; }
3666
3848
  finally {
3667
3849
  try {
3668
3850
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3669
3851
  }
3670
- finally { if (e_34) throw e_34.error; }
3852
+ finally { if (e_36) throw e_36.error; }
3671
3853
  }
3672
3854
  }
3673
3855
  if (status === 200) {
@@ -3746,7 +3928,7 @@
3746
3928
  }));
3747
3929
  };
3748
3930
  StorefrontUsersApiClient.prototype.processRegister = function (response) {
3749
- var e_35, _a;
3931
+ var e_37, _a;
3750
3932
  var _this = this;
3751
3933
  var status = response.status;
3752
3934
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3759,12 +3941,12 @@
3759
3941
  _headers[key] = response.headers.get(key);
3760
3942
  }
3761
3943
  }
3762
- catch (e_35_1) { e_35 = { error: e_35_1 }; }
3944
+ catch (e_37_1) { e_37 = { error: e_37_1 }; }
3763
3945
  finally {
3764
3946
  try {
3765
3947
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3766
3948
  }
3767
- finally { if (e_35) throw e_35.error; }
3949
+ finally { if (e_37) throw e_37.error; }
3768
3950
  }
3769
3951
  }
3770
3952
  if (status === 200) {
@@ -3842,7 +4024,7 @@
3842
4024
  }));
3843
4025
  };
3844
4026
  StorefrontUsersApiClient.prototype.processMergeAnonymous = function (response) {
3845
- var e_36, _a;
4027
+ var e_38, _a;
3846
4028
  var _this = this;
3847
4029
  var status = response.status;
3848
4030
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3855,12 +4037,12 @@
3855
4037
  _headers[key] = response.headers.get(key);
3856
4038
  }
3857
4039
  }
3858
- catch (e_36_1) { e_36 = { error: e_36_1 }; }
4040
+ catch (e_38_1) { e_38 = { error: e_38_1 }; }
3859
4041
  finally {
3860
4042
  try {
3861
4043
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3862
4044
  }
3863
- finally { if (e_36) throw e_36.error; }
4045
+ finally { if (e_38) throw e_38.error; }
3864
4046
  }
3865
4047
  }
3866
4048
  if (status === 200) {
@@ -3945,7 +4127,7 @@
3945
4127
  }));
3946
4128
  };
3947
4129
  StorefrontUsersApiClient.prototype.processGetToken = function (response) {
3948
- var e_37, _a;
4130
+ var e_39, _a;
3949
4131
  var status = response.status;
3950
4132
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
3951
4133
  response.error instanceof Blob ? response.error : undefined;
@@ -3957,12 +4139,12 @@
3957
4139
  _headers[key] = response.headers.get(key);
3958
4140
  }
3959
4141
  }
3960
- catch (e_37_1) { e_37 = { error: e_37_1 }; }
4142
+ catch (e_39_1) { e_39 = { error: e_39_1 }; }
3961
4143
  finally {
3962
4144
  try {
3963
4145
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3964
4146
  }
3965
- finally { if (e_37) throw e_37.error; }
4147
+ finally { if (e_39) throw e_39.error; }
3966
4148
  }
3967
4149
  }
3968
4150
  if (status === 200) {
@@ -4061,7 +4243,7 @@
4061
4243
  }));
4062
4244
  };
4063
4245
  TenantInfoApiClient.prototype.processGetApplicationsInfo = function (response) {
4064
- var e_38, _a;
4246
+ var e_40, _a;
4065
4247
  var _this = this;
4066
4248
  var status = response.status;
4067
4249
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4074,12 +4256,12 @@
4074
4256
  _headers[key] = response.headers.get(key);
4075
4257
  }
4076
4258
  }
4077
- catch (e_38_1) { e_38 = { error: e_38_1 }; }
4259
+ catch (e_40_1) { e_40 = { error: e_40_1 }; }
4078
4260
  finally {
4079
4261
  try {
4080
4262
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4081
4263
  }
4082
- finally { if (e_38) throw e_38.error; }
4264
+ finally { if (e_40) throw e_40.error; }
4083
4265
  }
4084
4266
  }
4085
4267
  if (status === 200) {
@@ -4142,7 +4324,7 @@
4142
4324
  }));
4143
4325
  };
4144
4326
  TenantInfoApiClient.prototype.processGetInfo = function (response) {
4145
- var e_39, _a;
4327
+ var e_41, _a;
4146
4328
  var _this = this;
4147
4329
  var status = response.status;
4148
4330
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4155,12 +4337,12 @@
4155
4337
  _headers[key] = response.headers.get(key);
4156
4338
  }
4157
4339
  }
4158
- catch (e_39_1) { e_39 = { error: e_39_1 }; }
4340
+ catch (e_41_1) { e_41 = { error: e_41_1 }; }
4159
4341
  finally {
4160
4342
  try {
4161
4343
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4162
4344
  }
4163
- finally { if (e_39) throw e_39.error; }
4345
+ finally { if (e_41) throw e_41.error; }
4164
4346
  }
4165
4347
  }
4166
4348
  if (status === 200) {
@@ -4223,7 +4405,7 @@
4223
4405
  }));
4224
4406
  };
4225
4407
  TenantInfoApiClient.prototype.processGetUsersInfo = function (response) {
4226
- var e_40, _a;
4408
+ var e_42, _a;
4227
4409
  var _this = this;
4228
4410
  var status = response.status;
4229
4411
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4236,12 +4418,12 @@
4236
4418
  _headers[key] = response.headers.get(key);
4237
4419
  }
4238
4420
  }
4239
- catch (e_40_1) { e_40 = { error: e_40_1 }; }
4421
+ catch (e_42_1) { e_42 = { error: e_42_1 }; }
4240
4422
  finally {
4241
4423
  try {
4242
4424
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4243
4425
  }
4244
- finally { if (e_40) throw e_40.error; }
4426
+ finally { if (e_42) throw e_42.error; }
4245
4427
  }
4246
4428
  }
4247
4429
  if (status === 200) {