@aurigma/ng-storefront-api-client 2.17.17 → 2.19.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.
- package/aurigma-ng-storefront-api-client.metadata.json +1 -1
- package/bundles/aurigma-ng-storefront-api-client.umd.js +149 -58
- package/bundles/aurigma-ng-storefront-api-client.umd.js.map +1 -1
- package/bundles/aurigma-ng-storefront-api-client.umd.min.js +1 -1
- package/bundles/aurigma-ng-storefront-api-client.umd.min.js.map +1 -1
- package/esm2015/aurigma-ng-storefront-api-client.js +1 -1
- package/esm2015/lib/storefront-api-client.js +80 -2
- package/esm2015/lib/storefront.module.js +1 -1
- package/esm2015/public-api.js +1 -1
- package/fesm2015/aurigma-ng-storefront-api-client.js +79 -1
- package/fesm2015/aurigma-ng-storefront-api-client.js.map +1 -1
- package/lib/storefront-api-client.d.ts +15 -0
- package/package.json +1 -1
|
@@ -319,7 +319,7 @@
|
|
|
319
319
|
var API_BASE_URL = new i0.InjectionToken('API_BASE_URL');
|
|
320
320
|
var ApiClientConfiguration = /** @class */ (function () {
|
|
321
321
|
function ApiClientConfiguration() {
|
|
322
|
-
this.apiKey = '
|
|
322
|
+
this.apiKey = '';
|
|
323
323
|
this.authorizationToken = null;
|
|
324
324
|
}
|
|
325
325
|
ApiClientConfiguration.prototype.getAuthorizationToken = function () {
|
|
@@ -357,6 +357,9 @@
|
|
|
357
357
|
});
|
|
358
358
|
};
|
|
359
359
|
ApiClientBase.prototype.getBaseUrl = function (defultUrl) {
|
|
360
|
+
if (this.configuration.apiUrl.endsWith('/')) {
|
|
361
|
+
return this.configuration.apiUrl.slice(0, -1);
|
|
362
|
+
}
|
|
360
363
|
return this.configuration.apiUrl;
|
|
361
364
|
};
|
|
362
365
|
ApiClientBase.prototype.transformResult = function (url, res, cb) {
|
|
@@ -1850,6 +1853,94 @@
|
|
|
1850
1853
|
}
|
|
1851
1854
|
return rxjs.of(null);
|
|
1852
1855
|
};
|
|
1856
|
+
/**
|
|
1857
|
+
* Removes a project by identifier.
|
|
1858
|
+
* @param id Project identifier.
|
|
1859
|
+
* @param tenantId (optional) Tenant identifier.
|
|
1860
|
+
* @return Success
|
|
1861
|
+
*/
|
|
1862
|
+
ProjectsApiClient.prototype.delete = function (id, tenantId) {
|
|
1863
|
+
var _this = this;
|
|
1864
|
+
var url_ = this.baseUrl + "/api/storefront/v1/projects/{id}?";
|
|
1865
|
+
if (id === undefined || id === null)
|
|
1866
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
1867
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
1868
|
+
if (tenantId !== undefined && tenantId !== null)
|
|
1869
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
1870
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
1871
|
+
var options_ = {
|
|
1872
|
+
observe: "response",
|
|
1873
|
+
responseType: "blob",
|
|
1874
|
+
headers: new i1.HttpHeaders({})
|
|
1875
|
+
};
|
|
1876
|
+
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
1877
|
+
return _this.http.request("delete", url_, transformedOptions_);
|
|
1878
|
+
})).pipe(operators.mergeMap(function (response_) {
|
|
1879
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processDelete(r); });
|
|
1880
|
+
})).pipe(operators.catchError(function (response_) {
|
|
1881
|
+
if (response_ instanceof i1.HttpResponseBase) {
|
|
1882
|
+
try {
|
|
1883
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processDelete(r); });
|
|
1884
|
+
}
|
|
1885
|
+
catch (e) {
|
|
1886
|
+
return rxjs.throwError(e);
|
|
1887
|
+
}
|
|
1888
|
+
}
|
|
1889
|
+
else
|
|
1890
|
+
return rxjs.throwError(response_);
|
|
1891
|
+
}));
|
|
1892
|
+
};
|
|
1893
|
+
ProjectsApiClient.prototype.processDelete = function (response) {
|
|
1894
|
+
var e_16, _a;
|
|
1895
|
+
var _this = this;
|
|
1896
|
+
var status = response.status;
|
|
1897
|
+
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
1898
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
1899
|
+
var _headers = {};
|
|
1900
|
+
if (response.headers) {
|
|
1901
|
+
try {
|
|
1902
|
+
for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
1903
|
+
var key = _c.value;
|
|
1904
|
+
_headers[key] = response.headers.get(key);
|
|
1905
|
+
}
|
|
1906
|
+
}
|
|
1907
|
+
catch (e_16_1) { e_16 = { error: e_16_1 }; }
|
|
1908
|
+
finally {
|
|
1909
|
+
try {
|
|
1910
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
1911
|
+
}
|
|
1912
|
+
finally { if (e_16) throw e_16.error; }
|
|
1913
|
+
}
|
|
1914
|
+
}
|
|
1915
|
+
if (status === 200) {
|
|
1916
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
1917
|
+
return rxjs.of(null);
|
|
1918
|
+
}));
|
|
1919
|
+
}
|
|
1920
|
+
else if (status === 404) {
|
|
1921
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
1922
|
+
var result404 = null;
|
|
1923
|
+
result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
1924
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
1925
|
+
}));
|
|
1926
|
+
}
|
|
1927
|
+
else if (status === 401) {
|
|
1928
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
1929
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1930
|
+
}));
|
|
1931
|
+
}
|
|
1932
|
+
else if (status === 403) {
|
|
1933
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
1934
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1935
|
+
}));
|
|
1936
|
+
}
|
|
1937
|
+
else if (status !== 200 && status !== 204) {
|
|
1938
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
1939
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1940
|
+
}));
|
|
1941
|
+
}
|
|
1942
|
+
return rxjs.of(null);
|
|
1943
|
+
};
|
|
1853
1944
|
/**
|
|
1854
1945
|
* Returns all available status transitions for a project.
|
|
1855
1946
|
* @param id Project identifier.
|
|
@@ -1890,7 +1981,7 @@
|
|
|
1890
1981
|
}));
|
|
1891
1982
|
};
|
|
1892
1983
|
ProjectsApiClient.prototype.processGetAvailableTransitions = function (response) {
|
|
1893
|
-
var
|
|
1984
|
+
var e_17, _a;
|
|
1894
1985
|
var _this = this;
|
|
1895
1986
|
var status = response.status;
|
|
1896
1987
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -1903,12 +1994,12 @@
|
|
|
1903
1994
|
_headers[key] = response.headers.get(key);
|
|
1904
1995
|
}
|
|
1905
1996
|
}
|
|
1906
|
-
catch (
|
|
1997
|
+
catch (e_17_1) { e_17 = { error: e_17_1 }; }
|
|
1907
1998
|
finally {
|
|
1908
1999
|
try {
|
|
1909
2000
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
1910
2001
|
}
|
|
1911
|
-
finally { if (
|
|
2002
|
+
finally { if (e_17) throw e_17.error; }
|
|
1912
2003
|
}
|
|
1913
2004
|
}
|
|
1914
2005
|
if (status === 200) {
|
|
@@ -2000,7 +2091,7 @@
|
|
|
2000
2091
|
}));
|
|
2001
2092
|
};
|
|
2002
2093
|
ProjectsApiClient.prototype.processChangeStatus = function (response) {
|
|
2003
|
-
var
|
|
2094
|
+
var e_18, _a;
|
|
2004
2095
|
var _this = this;
|
|
2005
2096
|
var status = response.status;
|
|
2006
2097
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -2013,12 +2104,12 @@
|
|
|
2013
2104
|
_headers[key] = response.headers.get(key);
|
|
2014
2105
|
}
|
|
2015
2106
|
}
|
|
2016
|
-
catch (
|
|
2107
|
+
catch (e_18_1) { e_18 = { error: e_18_1 }; }
|
|
2017
2108
|
finally {
|
|
2018
2109
|
try {
|
|
2019
2110
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
2020
2111
|
}
|
|
2021
|
-
finally { if (
|
|
2112
|
+
finally { if (e_18) throw e_18.error; }
|
|
2022
2113
|
}
|
|
2023
2114
|
}
|
|
2024
2115
|
if (status === 200) {
|
|
@@ -2110,7 +2201,7 @@
|
|
|
2110
2201
|
}));
|
|
2111
2202
|
};
|
|
2112
2203
|
ProjectsApiClient.prototype.processForceStatus = function (response) {
|
|
2113
|
-
var
|
|
2204
|
+
var e_19, _a;
|
|
2114
2205
|
var _this = this;
|
|
2115
2206
|
var status = response.status;
|
|
2116
2207
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -2123,12 +2214,12 @@
|
|
|
2123
2214
|
_headers[key] = response.headers.get(key);
|
|
2124
2215
|
}
|
|
2125
2216
|
}
|
|
2126
|
-
catch (
|
|
2217
|
+
catch (e_19_1) { e_19 = { error: e_19_1 }; }
|
|
2127
2218
|
finally {
|
|
2128
2219
|
try {
|
|
2129
2220
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
2130
2221
|
}
|
|
2131
|
-
finally { if (
|
|
2222
|
+
finally { if (e_19) throw e_19.error; }
|
|
2132
2223
|
}
|
|
2133
2224
|
}
|
|
2134
2225
|
if (status === 200) {
|
|
@@ -2205,7 +2296,7 @@
|
|
|
2205
2296
|
}));
|
|
2206
2297
|
};
|
|
2207
2298
|
ProjectsApiClient.prototype.processGetAllStatuses = function (response) {
|
|
2208
|
-
var
|
|
2299
|
+
var e_20, _a;
|
|
2209
2300
|
var _this = this;
|
|
2210
2301
|
var status = response.status;
|
|
2211
2302
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -2218,12 +2309,12 @@
|
|
|
2218
2309
|
_headers[key] = response.headers.get(key);
|
|
2219
2310
|
}
|
|
2220
2311
|
}
|
|
2221
|
-
catch (
|
|
2312
|
+
catch (e_20_1) { e_20 = { error: e_20_1 }; }
|
|
2222
2313
|
finally {
|
|
2223
2314
|
try {
|
|
2224
2315
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
2225
2316
|
}
|
|
2226
|
-
finally { if (
|
|
2317
|
+
finally { if (e_20) throw e_20.error; }
|
|
2227
2318
|
}
|
|
2228
2319
|
}
|
|
2229
2320
|
if (status === 200) {
|
|
@@ -2286,7 +2377,7 @@
|
|
|
2286
2377
|
}));
|
|
2287
2378
|
};
|
|
2288
2379
|
ProjectsApiClient.prototype.processGetAllTransitions = function (response) {
|
|
2289
|
-
var
|
|
2380
|
+
var e_21, _a;
|
|
2290
2381
|
var _this = this;
|
|
2291
2382
|
var status = response.status;
|
|
2292
2383
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -2299,12 +2390,12 @@
|
|
|
2299
2390
|
_headers[key] = response.headers.get(key);
|
|
2300
2391
|
}
|
|
2301
2392
|
}
|
|
2302
|
-
catch (
|
|
2393
|
+
catch (e_21_1) { e_21 = { error: e_21_1 }; }
|
|
2303
2394
|
finally {
|
|
2304
2395
|
try {
|
|
2305
2396
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
2306
2397
|
}
|
|
2307
|
-
finally { if (
|
|
2398
|
+
finally { if (e_21) throw e_21.error; }
|
|
2308
2399
|
}
|
|
2309
2400
|
}
|
|
2310
2401
|
if (status === 200) {
|
|
@@ -2381,7 +2472,7 @@
|
|
|
2381
2472
|
}));
|
|
2382
2473
|
};
|
|
2383
2474
|
ProjectsApiClient.prototype.processGetProjectPdfUrl = function (response) {
|
|
2384
|
-
var
|
|
2475
|
+
var e_22, _a;
|
|
2385
2476
|
var _this = this;
|
|
2386
2477
|
var status = response.status;
|
|
2387
2478
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -2394,12 +2485,12 @@
|
|
|
2394
2485
|
_headers[key] = response.headers.get(key);
|
|
2395
2486
|
}
|
|
2396
2487
|
}
|
|
2397
|
-
catch (
|
|
2488
|
+
catch (e_22_1) { e_22 = { error: e_22_1 }; }
|
|
2398
2489
|
finally {
|
|
2399
2490
|
try {
|
|
2400
2491
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
2401
2492
|
}
|
|
2402
|
-
finally { if (
|
|
2493
|
+
finally { if (e_22) throw e_22.error; }
|
|
2403
2494
|
}
|
|
2404
2495
|
}
|
|
2405
2496
|
if (status === 200) {
|
|
@@ -2479,7 +2570,7 @@
|
|
|
2479
2570
|
}));
|
|
2480
2571
|
};
|
|
2481
2572
|
ProjectsApiClient.prototype.processGetProjectPdfZip = function (response) {
|
|
2482
|
-
var
|
|
2573
|
+
var e_23, _a;
|
|
2483
2574
|
var _this = this;
|
|
2484
2575
|
var status = response.status;
|
|
2485
2576
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -2492,12 +2583,12 @@
|
|
|
2492
2583
|
_headers[key] = response.headers.get(key);
|
|
2493
2584
|
}
|
|
2494
2585
|
}
|
|
2495
|
-
catch (
|
|
2586
|
+
catch (e_23_1) { e_23 = { error: e_23_1 }; }
|
|
2496
2587
|
finally {
|
|
2497
2588
|
try {
|
|
2498
2589
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
2499
2590
|
}
|
|
2500
|
-
finally { if (
|
|
2591
|
+
finally { if (e_23) throw e_23.error; }
|
|
2501
2592
|
}
|
|
2502
2593
|
}
|
|
2503
2594
|
if (status === 200 || status === 206) {
|
|
@@ -2570,7 +2661,7 @@
|
|
|
2570
2661
|
}));
|
|
2571
2662
|
};
|
|
2572
2663
|
ProjectsApiClient.prototype.processGetProjectOrder = function (response) {
|
|
2573
|
-
var
|
|
2664
|
+
var e_24, _a;
|
|
2574
2665
|
var _this = this;
|
|
2575
2666
|
var status = response.status;
|
|
2576
2667
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -2583,12 +2674,12 @@
|
|
|
2583
2674
|
_headers[key] = response.headers.get(key);
|
|
2584
2675
|
}
|
|
2585
2676
|
}
|
|
2586
|
-
catch (
|
|
2677
|
+
catch (e_24_1) { e_24 = { error: e_24_1 }; }
|
|
2587
2678
|
finally {
|
|
2588
2679
|
try {
|
|
2589
2680
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
2590
2681
|
}
|
|
2591
|
-
finally { if (
|
|
2682
|
+
finally { if (e_24) throw e_24.error; }
|
|
2592
2683
|
}
|
|
2593
2684
|
}
|
|
2594
2685
|
if (status === 200) {
|
|
@@ -2695,7 +2786,7 @@
|
|
|
2695
2786
|
}));
|
|
2696
2787
|
};
|
|
2697
2788
|
StorefrontsApiClient.prototype.processGetAll = function (response) {
|
|
2698
|
-
var
|
|
2789
|
+
var e_25, _a;
|
|
2699
2790
|
var _this = this;
|
|
2700
2791
|
var status = response.status;
|
|
2701
2792
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -2708,12 +2799,12 @@
|
|
|
2708
2799
|
_headers[key] = response.headers.get(key);
|
|
2709
2800
|
}
|
|
2710
2801
|
}
|
|
2711
|
-
catch (
|
|
2802
|
+
catch (e_25_1) { e_25 = { error: e_25_1 }; }
|
|
2712
2803
|
finally {
|
|
2713
2804
|
try {
|
|
2714
2805
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
2715
2806
|
}
|
|
2716
|
-
finally { if (
|
|
2807
|
+
finally { if (e_25) throw e_25.error; }
|
|
2717
2808
|
}
|
|
2718
2809
|
}
|
|
2719
2810
|
if (status === 200) {
|
|
@@ -2780,7 +2871,7 @@
|
|
|
2780
2871
|
}));
|
|
2781
2872
|
};
|
|
2782
2873
|
StorefrontsApiClient.prototype.processGet = function (response) {
|
|
2783
|
-
var
|
|
2874
|
+
var e_26, _a;
|
|
2784
2875
|
var _this = this;
|
|
2785
2876
|
var status = response.status;
|
|
2786
2877
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -2793,12 +2884,12 @@
|
|
|
2793
2884
|
_headers[key] = response.headers.get(key);
|
|
2794
2885
|
}
|
|
2795
2886
|
}
|
|
2796
|
-
catch (
|
|
2887
|
+
catch (e_26_1) { e_26 = { error: e_26_1 }; }
|
|
2797
2888
|
finally {
|
|
2798
2889
|
try {
|
|
2799
2890
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
2800
2891
|
}
|
|
2801
|
-
finally { if (
|
|
2892
|
+
finally { if (e_26) throw e_26.error; }
|
|
2802
2893
|
}
|
|
2803
2894
|
}
|
|
2804
2895
|
if (status === 200) {
|
|
@@ -2910,7 +3001,7 @@
|
|
|
2910
3001
|
}));
|
|
2911
3002
|
};
|
|
2912
3003
|
StorefrontUsersApiClient.prototype.processGetAll = function (response) {
|
|
2913
|
-
var
|
|
3004
|
+
var e_27, _a;
|
|
2914
3005
|
var _this = this;
|
|
2915
3006
|
var status = response.status;
|
|
2916
3007
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -2923,12 +3014,12 @@
|
|
|
2923
3014
|
_headers[key] = response.headers.get(key);
|
|
2924
3015
|
}
|
|
2925
3016
|
}
|
|
2926
|
-
catch (
|
|
3017
|
+
catch (e_27_1) { e_27 = { error: e_27_1 }; }
|
|
2927
3018
|
finally {
|
|
2928
3019
|
try {
|
|
2929
3020
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
2930
3021
|
}
|
|
2931
|
-
finally { if (
|
|
3022
|
+
finally { if (e_27) throw e_27.error; }
|
|
2932
3023
|
}
|
|
2933
3024
|
}
|
|
2934
3025
|
if (status === 200) {
|
|
@@ -3000,7 +3091,7 @@
|
|
|
3000
3091
|
}));
|
|
3001
3092
|
};
|
|
3002
3093
|
StorefrontUsersApiClient.prototype.processCreate = function (response) {
|
|
3003
|
-
var
|
|
3094
|
+
var e_28, _a;
|
|
3004
3095
|
var _this = this;
|
|
3005
3096
|
var status = response.status;
|
|
3006
3097
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -3013,12 +3104,12 @@
|
|
|
3013
3104
|
_headers[key] = response.headers.get(key);
|
|
3014
3105
|
}
|
|
3015
3106
|
}
|
|
3016
|
-
catch (
|
|
3107
|
+
catch (e_28_1) { e_28 = { error: e_28_1 }; }
|
|
3017
3108
|
finally {
|
|
3018
3109
|
try {
|
|
3019
3110
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
3020
3111
|
}
|
|
3021
|
-
finally { if (
|
|
3112
|
+
finally { if (e_28) throw e_28.error; }
|
|
3022
3113
|
}
|
|
3023
3114
|
}
|
|
3024
3115
|
if (status === 201) {
|
|
@@ -3097,7 +3188,7 @@
|
|
|
3097
3188
|
}));
|
|
3098
3189
|
};
|
|
3099
3190
|
StorefrontUsersApiClient.prototype.processGet = function (response) {
|
|
3100
|
-
var
|
|
3191
|
+
var e_29, _a;
|
|
3101
3192
|
var _this = this;
|
|
3102
3193
|
var status = response.status;
|
|
3103
3194
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -3110,12 +3201,12 @@
|
|
|
3110
3201
|
_headers[key] = response.headers.get(key);
|
|
3111
3202
|
}
|
|
3112
3203
|
}
|
|
3113
|
-
catch (
|
|
3204
|
+
catch (e_29_1) { e_29 = { error: e_29_1 }; }
|
|
3114
3205
|
finally {
|
|
3115
3206
|
try {
|
|
3116
3207
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
3117
3208
|
}
|
|
3118
|
-
finally { if (
|
|
3209
|
+
finally { if (e_29) throw e_29.error; }
|
|
3119
3210
|
}
|
|
3120
3211
|
}
|
|
3121
3212
|
if (status === 200) {
|
|
@@ -3194,7 +3285,7 @@
|
|
|
3194
3285
|
}));
|
|
3195
3286
|
};
|
|
3196
3287
|
StorefrontUsersApiClient.prototype.processRegister = function (response) {
|
|
3197
|
-
var
|
|
3288
|
+
var e_30, _a;
|
|
3198
3289
|
var _this = this;
|
|
3199
3290
|
var status = response.status;
|
|
3200
3291
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -3207,12 +3298,12 @@
|
|
|
3207
3298
|
_headers[key] = response.headers.get(key);
|
|
3208
3299
|
}
|
|
3209
3300
|
}
|
|
3210
|
-
catch (
|
|
3301
|
+
catch (e_30_1) { e_30 = { error: e_30_1 }; }
|
|
3211
3302
|
finally {
|
|
3212
3303
|
try {
|
|
3213
3304
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
3214
3305
|
}
|
|
3215
|
-
finally { if (
|
|
3306
|
+
finally { if (e_30) throw e_30.error; }
|
|
3216
3307
|
}
|
|
3217
3308
|
}
|
|
3218
3309
|
if (status === 200) {
|
|
@@ -3290,7 +3381,7 @@
|
|
|
3290
3381
|
}));
|
|
3291
3382
|
};
|
|
3292
3383
|
StorefrontUsersApiClient.prototype.processMergeAnonymous = function (response) {
|
|
3293
|
-
var
|
|
3384
|
+
var e_31, _a;
|
|
3294
3385
|
var _this = this;
|
|
3295
3386
|
var status = response.status;
|
|
3296
3387
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -3303,12 +3394,12 @@
|
|
|
3303
3394
|
_headers[key] = response.headers.get(key);
|
|
3304
3395
|
}
|
|
3305
3396
|
}
|
|
3306
|
-
catch (
|
|
3397
|
+
catch (e_31_1) { e_31 = { error: e_31_1 }; }
|
|
3307
3398
|
finally {
|
|
3308
3399
|
try {
|
|
3309
3400
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
3310
3401
|
}
|
|
3311
|
-
finally { if (
|
|
3402
|
+
finally { if (e_31) throw e_31.error; }
|
|
3312
3403
|
}
|
|
3313
3404
|
}
|
|
3314
3405
|
if (status === 200) {
|
|
@@ -3393,7 +3484,7 @@
|
|
|
3393
3484
|
}));
|
|
3394
3485
|
};
|
|
3395
3486
|
StorefrontUsersApiClient.prototype.processGetToken = function (response) {
|
|
3396
|
-
var
|
|
3487
|
+
var e_32, _a;
|
|
3397
3488
|
var _this = this;
|
|
3398
3489
|
var status = response.status;
|
|
3399
3490
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -3406,12 +3497,12 @@
|
|
|
3406
3497
|
_headers[key] = response.headers.get(key);
|
|
3407
3498
|
}
|
|
3408
3499
|
}
|
|
3409
|
-
catch (
|
|
3500
|
+
catch (e_32_1) { e_32 = { error: e_32_1 }; }
|
|
3410
3501
|
finally {
|
|
3411
3502
|
try {
|
|
3412
3503
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
3413
3504
|
}
|
|
3414
|
-
finally { if (
|
|
3505
|
+
finally { if (e_32) throw e_32.error; }
|
|
3415
3506
|
}
|
|
3416
3507
|
}
|
|
3417
3508
|
if (status === 201) {
|
|
@@ -3510,7 +3601,7 @@
|
|
|
3510
3601
|
}));
|
|
3511
3602
|
};
|
|
3512
3603
|
TenantInfoApiClient.prototype.processGetApplicationsInfo = function (response) {
|
|
3513
|
-
var
|
|
3604
|
+
var e_33, _a;
|
|
3514
3605
|
var _this = this;
|
|
3515
3606
|
var status = response.status;
|
|
3516
3607
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -3523,12 +3614,12 @@
|
|
|
3523
3614
|
_headers[key] = response.headers.get(key);
|
|
3524
3615
|
}
|
|
3525
3616
|
}
|
|
3526
|
-
catch (
|
|
3617
|
+
catch (e_33_1) { e_33 = { error: e_33_1 }; }
|
|
3527
3618
|
finally {
|
|
3528
3619
|
try {
|
|
3529
3620
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
3530
3621
|
}
|
|
3531
|
-
finally { if (
|
|
3622
|
+
finally { if (e_33) throw e_33.error; }
|
|
3532
3623
|
}
|
|
3533
3624
|
}
|
|
3534
3625
|
if (status === 200) {
|
|
@@ -3591,7 +3682,7 @@
|
|
|
3591
3682
|
}));
|
|
3592
3683
|
};
|
|
3593
3684
|
TenantInfoApiClient.prototype.processGetInfo = function (response) {
|
|
3594
|
-
var
|
|
3685
|
+
var e_34, _a;
|
|
3595
3686
|
var _this = this;
|
|
3596
3687
|
var status = response.status;
|
|
3597
3688
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -3604,12 +3695,12 @@
|
|
|
3604
3695
|
_headers[key] = response.headers.get(key);
|
|
3605
3696
|
}
|
|
3606
3697
|
}
|
|
3607
|
-
catch (
|
|
3698
|
+
catch (e_34_1) { e_34 = { error: e_34_1 }; }
|
|
3608
3699
|
finally {
|
|
3609
3700
|
try {
|
|
3610
3701
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
3611
3702
|
}
|
|
3612
|
-
finally { if (
|
|
3703
|
+
finally { if (e_34) throw e_34.error; }
|
|
3613
3704
|
}
|
|
3614
3705
|
}
|
|
3615
3706
|
if (status === 200) {
|
|
@@ -3672,7 +3763,7 @@
|
|
|
3672
3763
|
}));
|
|
3673
3764
|
};
|
|
3674
3765
|
TenantInfoApiClient.prototype.processGetUsersInfo = function (response) {
|
|
3675
|
-
var
|
|
3766
|
+
var e_35, _a;
|
|
3676
3767
|
var _this = this;
|
|
3677
3768
|
var status = response.status;
|
|
3678
3769
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -3685,12 +3776,12 @@
|
|
|
3685
3776
|
_headers[key] = response.headers.get(key);
|
|
3686
3777
|
}
|
|
3687
3778
|
}
|
|
3688
|
-
catch (
|
|
3779
|
+
catch (e_35_1) { e_35 = { error: e_35_1 }; }
|
|
3689
3780
|
finally {
|
|
3690
3781
|
try {
|
|
3691
3782
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
3692
3783
|
}
|
|
3693
|
-
finally { if (
|
|
3784
|
+
finally { if (e_35) throw e_35.error; }
|
|
3694
3785
|
}
|
|
3695
3786
|
}
|
|
3696
3787
|
if (status === 200) {
|