@aurigma/ng-storefront-api-client 2.29.5 → 2.32.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,189 @@
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 _this = this;
2078
+ var status = response.status;
2079
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
2080
+ response.error instanceof Blob ? response.error : undefined;
2081
+ var _headers = {};
2082
+ if (response.headers) {
2083
+ try {
2084
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
2085
+ var key = _c.value;
2086
+ _headers[key] = response.headers.get(key);
2087
+ }
2088
+ }
2089
+ catch (e_18_1) { e_18 = { error: e_18_1 }; }
2090
+ finally {
2091
+ try {
2092
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2093
+ }
2094
+ finally { if (e_18) throw e_18.error; }
2095
+ }
2096
+ }
2097
+ if (status === 200) {
2098
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2099
+ var result200 = null;
2100
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
2101
+ return rxjs.of(result200);
2102
+ }));
2103
+ }
2104
+ else if (status === 404) {
2105
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2106
+ var result404 = null;
2107
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
2108
+ return throwException("Not Found", status, _responseText, _headers, result404);
2109
+ }));
2110
+ }
2111
+ else if (status === 401) {
2112
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2113
+ return throwException("Unauthorized", status, _responseText, _headers);
2114
+ }));
2115
+ }
2116
+ else if (status === 403) {
2117
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2118
+ return throwException("Forbidden", status, _responseText, _headers);
2119
+ }));
2120
+ }
2121
+ else if (status !== 200 && status !== 204) {
2122
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2123
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
2124
+ }));
2125
+ }
2126
+ return rxjs.of(null);
2127
+ };
1945
2128
  /**
1946
2129
  * Creates a new project by 'Render HiRes' scenario.
1947
2130
  * @param storefrontId Storefront identifier.
@@ -1987,7 +2170,7 @@
1987
2170
  }));
1988
2171
  };
1989
2172
  ProjectsApiClient.prototype.processCreateByRenderHiResScenario = function (response) {
1990
- var e_17, _a;
2173
+ var e_19, _a;
1991
2174
  var _this = this;
1992
2175
  var status = response.status;
1993
2176
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2000,12 +2183,12 @@
2000
2183
  _headers[key] = response.headers.get(key);
2001
2184
  }
2002
2185
  }
2003
- catch (e_17_1) { e_17 = { error: e_17_1 }; }
2186
+ catch (e_19_1) { e_19 = { error: e_19_1 }; }
2004
2187
  finally {
2005
2188
  try {
2006
2189
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2007
2190
  }
2008
- finally { if (e_17) throw e_17.error; }
2191
+ finally { if (e_19) throw e_19.error; }
2009
2192
  }
2010
2193
  }
2011
2194
  if (status === 201) {
@@ -2079,7 +2262,7 @@
2079
2262
  }));
2080
2263
  };
2081
2264
  ProjectsApiClient.prototype.processGetAvailableTransitions = function (response) {
2082
- var e_18, _a;
2265
+ var e_20, _a;
2083
2266
  var _this = this;
2084
2267
  var status = response.status;
2085
2268
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2092,12 +2275,12 @@
2092
2275
  _headers[key] = response.headers.get(key);
2093
2276
  }
2094
2277
  }
2095
- catch (e_18_1) { e_18 = { error: e_18_1 }; }
2278
+ catch (e_20_1) { e_20 = { error: e_20_1 }; }
2096
2279
  finally {
2097
2280
  try {
2098
2281
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2099
2282
  }
2100
- finally { if (e_18) throw e_18.error; }
2283
+ finally { if (e_20) throw e_20.error; }
2101
2284
  }
2102
2285
  }
2103
2286
  if (status === 200) {
@@ -2189,7 +2372,7 @@
2189
2372
  }));
2190
2373
  };
2191
2374
  ProjectsApiClient.prototype.processChangeStatus = function (response) {
2192
- var e_19, _a;
2375
+ var e_21, _a;
2193
2376
  var _this = this;
2194
2377
  var status = response.status;
2195
2378
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2202,12 +2385,12 @@
2202
2385
  _headers[key] = response.headers.get(key);
2203
2386
  }
2204
2387
  }
2205
- catch (e_19_1) { e_19 = { error: e_19_1 }; }
2388
+ catch (e_21_1) { e_21 = { error: e_21_1 }; }
2206
2389
  finally {
2207
2390
  try {
2208
2391
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2209
2392
  }
2210
- finally { if (e_19) throw e_19.error; }
2393
+ finally { if (e_21) throw e_21.error; }
2211
2394
  }
2212
2395
  }
2213
2396
  if (status === 200) {
@@ -2299,7 +2482,7 @@
2299
2482
  }));
2300
2483
  };
2301
2484
  ProjectsApiClient.prototype.processForceStatus = function (response) {
2302
- var e_20, _a;
2485
+ var e_22, _a;
2303
2486
  var _this = this;
2304
2487
  var status = response.status;
2305
2488
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2312,12 +2495,12 @@
2312
2495
  _headers[key] = response.headers.get(key);
2313
2496
  }
2314
2497
  }
2315
- catch (e_20_1) { e_20 = { error: e_20_1 }; }
2498
+ catch (e_22_1) { e_22 = { error: e_22_1 }; }
2316
2499
  finally {
2317
2500
  try {
2318
2501
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2319
2502
  }
2320
- finally { if (e_20) throw e_20.error; }
2503
+ finally { if (e_22) throw e_22.error; }
2321
2504
  }
2322
2505
  }
2323
2506
  if (status === 200) {
@@ -2394,7 +2577,7 @@
2394
2577
  }));
2395
2578
  };
2396
2579
  ProjectsApiClient.prototype.processGetAllStatuses = function (response) {
2397
- var e_21, _a;
2580
+ var e_23, _a;
2398
2581
  var _this = this;
2399
2582
  var status = response.status;
2400
2583
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2407,12 +2590,12 @@
2407
2590
  _headers[key] = response.headers.get(key);
2408
2591
  }
2409
2592
  }
2410
- catch (e_21_1) { e_21 = { error: e_21_1 }; }
2593
+ catch (e_23_1) { e_23 = { error: e_23_1 }; }
2411
2594
  finally {
2412
2595
  try {
2413
2596
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2414
2597
  }
2415
- finally { if (e_21) throw e_21.error; }
2598
+ finally { if (e_23) throw e_23.error; }
2416
2599
  }
2417
2600
  }
2418
2601
  if (status === 200) {
@@ -2475,7 +2658,7 @@
2475
2658
  }));
2476
2659
  };
2477
2660
  ProjectsApiClient.prototype.processGetAllTransitions = function (response) {
2478
- var e_22, _a;
2661
+ var e_24, _a;
2479
2662
  var _this = this;
2480
2663
  var status = response.status;
2481
2664
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2488,12 +2671,12 @@
2488
2671
  _headers[key] = response.headers.get(key);
2489
2672
  }
2490
2673
  }
2491
- catch (e_22_1) { e_22 = { error: e_22_1 }; }
2674
+ catch (e_24_1) { e_24 = { error: e_24_1 }; }
2492
2675
  finally {
2493
2676
  try {
2494
2677
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2495
2678
  }
2496
- finally { if (e_22) throw e_22.error; }
2679
+ finally { if (e_24) throw e_24.error; }
2497
2680
  }
2498
2681
  }
2499
2682
  if (status === 200) {
@@ -2571,7 +2754,7 @@
2571
2754
  }));
2572
2755
  };
2573
2756
  ProjectsApiClient.prototype.processGetProjectPdfUrl = function (response) {
2574
- var e_23, _a;
2757
+ var e_25, _a;
2575
2758
  var _this = this;
2576
2759
  var status = response.status;
2577
2760
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2584,12 +2767,12 @@
2584
2767
  _headers[key] = response.headers.get(key);
2585
2768
  }
2586
2769
  }
2587
- catch (e_23_1) { e_23 = { error: e_23_1 }; }
2770
+ catch (e_25_1) { e_25 = { error: e_25_1 }; }
2588
2771
  finally {
2589
2772
  try {
2590
2773
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2591
2774
  }
2592
- finally { if (e_23) throw e_23.error; }
2775
+ finally { if (e_25) throw e_25.error; }
2593
2776
  }
2594
2777
  }
2595
2778
  if (status === 200) {
@@ -2670,7 +2853,7 @@
2670
2853
  }));
2671
2854
  };
2672
2855
  ProjectsApiClient.prototype.processGetProjectPdfZip = function (response) {
2673
- var e_24, _a;
2856
+ var e_26, _a;
2674
2857
  var _this = this;
2675
2858
  var status = response.status;
2676
2859
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2683,12 +2866,12 @@
2683
2866
  _headers[key] = response.headers.get(key);
2684
2867
  }
2685
2868
  }
2686
- catch (e_24_1) { e_24 = { error: e_24_1 }; }
2869
+ catch (e_26_1) { e_26 = { error: e_26_1 }; }
2687
2870
  finally {
2688
2871
  try {
2689
2872
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2690
2873
  }
2691
- finally { if (e_24) throw e_24.error; }
2874
+ finally { if (e_26) throw e_26.error; }
2692
2875
  }
2693
2876
  }
2694
2877
  if (status === 200 || status === 206) {
@@ -2761,7 +2944,7 @@
2761
2944
  }));
2762
2945
  };
2763
2946
  ProjectsApiClient.prototype.processGetProjectProcessingResults = function (response) {
2764
- var e_25, _a;
2947
+ var e_27, _a;
2765
2948
  var _this = this;
2766
2949
  var status = response.status;
2767
2950
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2774,12 +2957,12 @@
2774
2957
  _headers[key] = response.headers.get(key);
2775
2958
  }
2776
2959
  }
2777
- catch (e_25_1) { e_25 = { error: e_25_1 }; }
2960
+ catch (e_27_1) { e_27 = { error: e_27_1 }; }
2778
2961
  finally {
2779
2962
  try {
2780
2963
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2781
2964
  }
2782
- finally { if (e_25) throw e_25.error; }
2965
+ finally { if (e_27) throw e_27.error; }
2783
2966
  }
2784
2967
  }
2785
2968
  if (status === 200) {
@@ -2851,7 +3034,7 @@
2851
3034
  }));
2852
3035
  };
2853
3036
  ProjectsApiClient.prototype.processResumeProjectProcessing = function (response) {
2854
- var e_26, _a;
3037
+ var e_28, _a;
2855
3038
  var _this = this;
2856
3039
  var status = response.status;
2857
3040
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2864,12 +3047,12 @@
2864
3047
  _headers[key] = response.headers.get(key);
2865
3048
  }
2866
3049
  }
2867
- catch (e_26_1) { e_26 = { error: e_26_1 }; }
3050
+ catch (e_28_1) { e_28 = { error: e_28_1 }; }
2868
3051
  finally {
2869
3052
  try {
2870
3053
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2871
3054
  }
2872
- finally { if (e_26) throw e_26.error; }
3055
+ finally { if (e_28) throw e_28.error; }
2873
3056
  }
2874
3057
  }
2875
3058
  if (status === 204) {
@@ -2939,7 +3122,7 @@
2939
3122
  }));
2940
3123
  };
2941
3124
  ProjectsApiClient.prototype.processRestartProjectProcessing = function (response) {
2942
- var e_27, _a;
3125
+ var e_29, _a;
2943
3126
  var _this = this;
2944
3127
  var status = response.status;
2945
3128
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2952,12 +3135,12 @@
2952
3135
  _headers[key] = response.headers.get(key);
2953
3136
  }
2954
3137
  }
2955
- catch (e_27_1) { e_27 = { error: e_27_1 }; }
3138
+ catch (e_29_1) { e_29 = { error: e_29_1 }; }
2956
3139
  finally {
2957
3140
  try {
2958
3141
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2959
3142
  }
2960
- finally { if (e_27) throw e_27.error; }
3143
+ finally { if (e_29) throw e_29.error; }
2961
3144
  }
2962
3145
  }
2963
3146
  if (status === 204) {
@@ -3029,7 +3212,7 @@
3029
3212
  }));
3030
3213
  };
3031
3214
  ProjectsApiClient.prototype.processGetProjectOrder = function (response) {
3032
- var e_28, _a;
3215
+ var e_30, _a;
3033
3216
  var _this = this;
3034
3217
  var status = response.status;
3035
3218
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3042,12 +3225,12 @@
3042
3225
  _headers[key] = response.headers.get(key);
3043
3226
  }
3044
3227
  }
3045
- catch (e_28_1) { e_28 = { error: e_28_1 }; }
3228
+ catch (e_30_1) { e_30 = { error: e_30_1 }; }
3046
3229
  finally {
3047
3230
  try {
3048
3231
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3049
3232
  }
3050
- finally { if (e_28) throw e_28.error; }
3233
+ finally { if (e_30) throw e_30.error; }
3051
3234
  }
3052
3235
  }
3053
3236
  if (status === 200) {
@@ -3124,7 +3307,7 @@
3124
3307
  }));
3125
3308
  };
3126
3309
  ProjectsApiClient.prototype.processAttachDataToProjectOrder = function (response) {
3127
- var e_29, _a;
3310
+ var e_31, _a;
3128
3311
  var _this = this;
3129
3312
  var status = response.status;
3130
3313
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3137,12 +3320,12 @@
3137
3320
  _headers[key] = response.headers.get(key);
3138
3321
  }
3139
3322
  }
3140
- catch (e_29_1) { e_29 = { error: e_29_1 }; }
3323
+ catch (e_31_1) { e_31 = { error: e_31_1 }; }
3141
3324
  finally {
3142
3325
  try {
3143
3326
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3144
3327
  }
3145
- finally { if (e_29) throw e_29.error; }
3328
+ finally { if (e_31) throw e_31.error; }
3146
3329
  }
3147
3330
  }
3148
3331
  if (status === 204) {
@@ -3247,7 +3430,7 @@
3247
3430
  }));
3248
3431
  };
3249
3432
  StorefrontsApiClient.prototype.processGetAll = function (response) {
3250
- var e_30, _a;
3433
+ var e_32, _a;
3251
3434
  var _this = this;
3252
3435
  var status = response.status;
3253
3436
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3260,12 +3443,12 @@
3260
3443
  _headers[key] = response.headers.get(key);
3261
3444
  }
3262
3445
  }
3263
- catch (e_30_1) { e_30 = { error: e_30_1 }; }
3446
+ catch (e_32_1) { e_32 = { error: e_32_1 }; }
3264
3447
  finally {
3265
3448
  try {
3266
3449
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3267
3450
  }
3268
- finally { if (e_30) throw e_30.error; }
3451
+ finally { if (e_32) throw e_32.error; }
3269
3452
  }
3270
3453
  }
3271
3454
  if (status === 200) {
@@ -3332,7 +3515,7 @@
3332
3515
  }));
3333
3516
  };
3334
3517
  StorefrontsApiClient.prototype.processGet = function (response) {
3335
- var e_31, _a;
3518
+ var e_33, _a;
3336
3519
  var _this = this;
3337
3520
  var status = response.status;
3338
3521
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3345,12 +3528,12 @@
3345
3528
  _headers[key] = response.headers.get(key);
3346
3529
  }
3347
3530
  }
3348
- catch (e_31_1) { e_31 = { error: e_31_1 }; }
3531
+ catch (e_33_1) { e_33 = { error: e_33_1 }; }
3349
3532
  finally {
3350
3533
  try {
3351
3534
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3352
3535
  }
3353
- finally { if (e_31) throw e_31.error; }
3536
+ finally { if (e_33) throw e_33.error; }
3354
3537
  }
3355
3538
  }
3356
3539
  if (status === 200) {
@@ -3462,7 +3645,7 @@
3462
3645
  }));
3463
3646
  };
3464
3647
  StorefrontUsersApiClient.prototype.processGetAll = function (response) {
3465
- var e_32, _a;
3648
+ var e_34, _a;
3466
3649
  var _this = this;
3467
3650
  var status = response.status;
3468
3651
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3475,12 +3658,12 @@
3475
3658
  _headers[key] = response.headers.get(key);
3476
3659
  }
3477
3660
  }
3478
- catch (e_32_1) { e_32 = { error: e_32_1 }; }
3661
+ catch (e_34_1) { e_34 = { error: e_34_1 }; }
3479
3662
  finally {
3480
3663
  try {
3481
3664
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3482
3665
  }
3483
- finally { if (e_32) throw e_32.error; }
3666
+ finally { if (e_34) throw e_34.error; }
3484
3667
  }
3485
3668
  }
3486
3669
  if (status === 200) {
@@ -3552,7 +3735,7 @@
3552
3735
  }));
3553
3736
  };
3554
3737
  StorefrontUsersApiClient.prototype.processCreate = function (response) {
3555
- var e_33, _a;
3738
+ var e_35, _a;
3556
3739
  var _this = this;
3557
3740
  var status = response.status;
3558
3741
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3565,12 +3748,12 @@
3565
3748
  _headers[key] = response.headers.get(key);
3566
3749
  }
3567
3750
  }
3568
- catch (e_33_1) { e_33 = { error: e_33_1 }; }
3751
+ catch (e_35_1) { e_35 = { error: e_35_1 }; }
3569
3752
  finally {
3570
3753
  try {
3571
3754
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3572
3755
  }
3573
- finally { if (e_33) throw e_33.error; }
3756
+ finally { if (e_35) throw e_35.error; }
3574
3757
  }
3575
3758
  }
3576
3759
  if (status === 201) {
@@ -3649,7 +3832,7 @@
3649
3832
  }));
3650
3833
  };
3651
3834
  StorefrontUsersApiClient.prototype.processGet = function (response) {
3652
- var e_34, _a;
3835
+ var e_36, _a;
3653
3836
  var _this = this;
3654
3837
  var status = response.status;
3655
3838
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3662,12 +3845,12 @@
3662
3845
  _headers[key] = response.headers.get(key);
3663
3846
  }
3664
3847
  }
3665
- catch (e_34_1) { e_34 = { error: e_34_1 }; }
3848
+ catch (e_36_1) { e_36 = { error: e_36_1 }; }
3666
3849
  finally {
3667
3850
  try {
3668
3851
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3669
3852
  }
3670
- finally { if (e_34) throw e_34.error; }
3853
+ finally { if (e_36) throw e_36.error; }
3671
3854
  }
3672
3855
  }
3673
3856
  if (status === 200) {
@@ -3746,7 +3929,7 @@
3746
3929
  }));
3747
3930
  };
3748
3931
  StorefrontUsersApiClient.prototype.processRegister = function (response) {
3749
- var e_35, _a;
3932
+ var e_37, _a;
3750
3933
  var _this = this;
3751
3934
  var status = response.status;
3752
3935
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3759,12 +3942,12 @@
3759
3942
  _headers[key] = response.headers.get(key);
3760
3943
  }
3761
3944
  }
3762
- catch (e_35_1) { e_35 = { error: e_35_1 }; }
3945
+ catch (e_37_1) { e_37 = { error: e_37_1 }; }
3763
3946
  finally {
3764
3947
  try {
3765
3948
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3766
3949
  }
3767
- finally { if (e_35) throw e_35.error; }
3950
+ finally { if (e_37) throw e_37.error; }
3768
3951
  }
3769
3952
  }
3770
3953
  if (status === 200) {
@@ -3842,7 +4025,7 @@
3842
4025
  }));
3843
4026
  };
3844
4027
  StorefrontUsersApiClient.prototype.processMergeAnonymous = function (response) {
3845
- var e_36, _a;
4028
+ var e_38, _a;
3846
4029
  var _this = this;
3847
4030
  var status = response.status;
3848
4031
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3855,12 +4038,12 @@
3855
4038
  _headers[key] = response.headers.get(key);
3856
4039
  }
3857
4040
  }
3858
- catch (e_36_1) { e_36 = { error: e_36_1 }; }
4041
+ catch (e_38_1) { e_38 = { error: e_38_1 }; }
3859
4042
  finally {
3860
4043
  try {
3861
4044
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3862
4045
  }
3863
- finally { if (e_36) throw e_36.error; }
4046
+ finally { if (e_38) throw e_38.error; }
3864
4047
  }
3865
4048
  }
3866
4049
  if (status === 200) {
@@ -3945,8 +4128,7 @@
3945
4128
  }));
3946
4129
  };
3947
4130
  StorefrontUsersApiClient.prototype.processGetToken = function (response) {
3948
- var e_37, _a;
3949
- var _this = this;
4131
+ var e_39, _a;
3950
4132
  var status = response.status;
3951
4133
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
3952
4134
  response.error instanceof Blob ? response.error : undefined;
@@ -3958,32 +4140,32 @@
3958
4140
  _headers[key] = response.headers.get(key);
3959
4141
  }
3960
4142
  }
3961
- catch (e_37_1) { e_37 = { error: e_37_1 }; }
4143
+ catch (e_39_1) { e_39 = { error: e_39_1 }; }
3962
4144
  finally {
3963
4145
  try {
3964
4146
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3965
4147
  }
3966
- finally { if (e_37) throw e_37.error; }
4148
+ finally { if (e_39) throw e_39.error; }
3967
4149
  }
3968
4150
  }
3969
- if (status === 201) {
4151
+ if (status === 200) {
3970
4152
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3971
- var result201 = null;
3972
- result201 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
3973
- return rxjs.of(result201);
4153
+ var result200 = null;
4154
+ result200 = _responseText === "" ? null : _responseText;
4155
+ return rxjs.of(result200);
3974
4156
  }));
3975
4157
  }
3976
4158
  else if (status === 404) {
3977
4159
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3978
4160
  var result404 = null;
3979
- result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
4161
+ result404 = _responseText === "" ? null : _responseText;
3980
4162
  return throwException("Not Found", status, _responseText, _headers, result404);
3981
4163
  }));
3982
4164
  }
3983
4165
  else if (status === 409) {
3984
4166
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3985
4167
  var result409 = null;
3986
- result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
4168
+ result409 = _responseText === "" ? null : _responseText;
3987
4169
  return throwException("Conflict", status, _responseText, _headers, result409);
3988
4170
  }));
3989
4171
  }
@@ -4062,7 +4244,7 @@
4062
4244
  }));
4063
4245
  };
4064
4246
  TenantInfoApiClient.prototype.processGetApplicationsInfo = function (response) {
4065
- var e_38, _a;
4247
+ var e_40, _a;
4066
4248
  var _this = this;
4067
4249
  var status = response.status;
4068
4250
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4075,12 +4257,12 @@
4075
4257
  _headers[key] = response.headers.get(key);
4076
4258
  }
4077
4259
  }
4078
- catch (e_38_1) { e_38 = { error: e_38_1 }; }
4260
+ catch (e_40_1) { e_40 = { error: e_40_1 }; }
4079
4261
  finally {
4080
4262
  try {
4081
4263
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4082
4264
  }
4083
- finally { if (e_38) throw e_38.error; }
4265
+ finally { if (e_40) throw e_40.error; }
4084
4266
  }
4085
4267
  }
4086
4268
  if (status === 200) {
@@ -4143,7 +4325,7 @@
4143
4325
  }));
4144
4326
  };
4145
4327
  TenantInfoApiClient.prototype.processGetInfo = function (response) {
4146
- var e_39, _a;
4328
+ var e_41, _a;
4147
4329
  var _this = this;
4148
4330
  var status = response.status;
4149
4331
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4156,12 +4338,12 @@
4156
4338
  _headers[key] = response.headers.get(key);
4157
4339
  }
4158
4340
  }
4159
- catch (e_39_1) { e_39 = { error: e_39_1 }; }
4341
+ catch (e_41_1) { e_41 = { error: e_41_1 }; }
4160
4342
  finally {
4161
4343
  try {
4162
4344
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4163
4345
  }
4164
- finally { if (e_39) throw e_39.error; }
4346
+ finally { if (e_41) throw e_41.error; }
4165
4347
  }
4166
4348
  }
4167
4349
  if (status === 200) {
@@ -4224,7 +4406,7 @@
4224
4406
  }));
4225
4407
  };
4226
4408
  TenantInfoApiClient.prototype.processGetUsersInfo = function (response) {
4227
- var e_40, _a;
4409
+ var e_42, _a;
4228
4410
  var _this = this;
4229
4411
  var status = response.status;
4230
4412
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4237,12 +4419,12 @@
4237
4419
  _headers[key] = response.headers.get(key);
4238
4420
  }
4239
4421
  }
4240
- catch (e_40_1) { e_40 = { error: e_40_1 }; }
4422
+ catch (e_42_1) { e_42 = { error: e_42_1 }; }
4241
4423
  finally {
4242
4424
  try {
4243
4425
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4244
4426
  }
4245
- finally { if (e_40) throw e_40.error; }
4427
+ finally { if (e_42) throw e_42.error; }
4246
4428
  }
4247
4429
  }
4248
4430
  if (status === 200) {