@aurigma/ng-storefront-api-client 2.51.1 → 2.52.2
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 +253 -64
- 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 +178 -2
- package/esm2015/lib/storefront.module.js +1 -1
- package/esm2015/public-api.js +1 -1
- package/fesm2015/aurigma-ng-storefront-api-client.js +177 -1
- package/fesm2015/aurigma-ng-storefront-api-client.js.map +1 -1
- package/lib/storefront-api-client.d.ts +38 -7
- package/package.json +1 -1
|
@@ -32,4 +32,4 @@ StorefrontModule.decorators = [
|
|
|
32
32
|
exports: []
|
|
33
33
|
},] }
|
|
34
34
|
];
|
|
35
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
35
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RvcmVmcm9udC5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiL2hvbWUvYXVyaWdtYS9hZ2VudHMvQ0NIMDIvX3dvcmsvMS9zL0JhY2tlbmQvc3JjL0JhY2tPZmZpY2UuV2ViLlB1YmxpY0FwaS5UeXBlU2NyaXB0QXBpQ2xpZW50L0FuZ3VsYXIvYXBpLWNsaWVudC9zdG9yZWZyb250LWNsaWVudC9wcm9qZWN0cy9jbGllbnQvc3JjLyIsInNvdXJjZXMiOlsibGliL3N0b3JlZnJvbnQubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBc0IsUUFBUSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQzVELE9BQ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AgICAgICB1c2VWYWx1ZTogYXBpVXJsXG4gICAgICAgIH0sXG4gICAgICAgIHtcbiAgICAgICAgICBwcm92aWRlOiBTdG9yZWZyb250QXBpQ2xpZW50LkFwaUNsaWVudENvbmZpZ3VyYXRpb24sXG4gICAgICAgICAgdXNlRmFjdG9yeTogQ3JlYXRlQXBpQ2xpZW50Q29uZmlndXJhdGlvbi5iaW5kKHRoaXMsIHRva2VuICwgYXBpVXJsLCBhcGlLZXkpXG4gICAgICAgIH0sXG4gICAgICBdXG4gICAgfTtcbiAgfVxufVxuIl19
|
package/esm2015/public-api.js
CHANGED
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export * from './lib/storefront.module';
|
|
5
5
|
export * from './lib/storefront-api-client';
|
|
6
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIvaG9tZS9hdXJpZ21hL2FnZW50cy9DQ0gwMi9fd29yay8xL3MvQmFja2VuZC9zcmMvQmFja09mZmljZS5XZWIuUHVibGljQXBpLlR5cGVTY3JpcHRBcGlDbGllbnQvQW5ndWxhci9hcGktY2xpZW50L3N0b3JlZnJvbnQtY2xpZW50L3Byb2plY3RzL2NsaWVudC9zcmMvIiwic291cmNlcyI6WyJwdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyx5QkFBeUIsQ0FBQztBQUN4QyxjQUFjLDZCQUE2QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIFB1YmxpYyBBUEkgU3VyZmFjZSBvZiBjbGllbnRcbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2xpYi9zdG9yZWZyb250Lm1vZHVsZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9zdG9yZWZyb250LWFwaS1jbGllbnQnO1xuIl19
|
|
@@ -1415,11 +1415,12 @@ class ProjectsApiClient extends ApiClientBase {
|
|
|
1415
1415
|
* @param search (optional) Search string for partial match.
|
|
1416
1416
|
* @param orderId (optional) Identifier of corresponding order.
|
|
1417
1417
|
* @param processingStatus (optional) Project processing status filter.
|
|
1418
|
+
* @param includeObsolete (optional) Indicates if obsolete projects prepared to be removed should be included to result.
|
|
1418
1419
|
* @param storefrontId (optional) Storefront identifier.
|
|
1419
1420
|
* @param tenantId (optional) Tenant identifier.
|
|
1420
1421
|
* @return Success
|
|
1421
1422
|
*/
|
|
1422
|
-
getAll(ownerId, productReference, status, datePeriod, skip, take, sorting, search, orderId, processingStatus, storefrontId, tenantId) {
|
|
1423
|
+
getAll(ownerId, productReference, status, datePeriod, skip, take, sorting, search, orderId, processingStatus, includeObsolete, storefrontId, tenantId) {
|
|
1423
1424
|
let url_ = this.baseUrl + "/api/storefront/v1/projects?";
|
|
1424
1425
|
if (ownerId !== undefined && ownerId !== null)
|
|
1425
1426
|
url_ += "ownerId=" + encodeURIComponent("" + ownerId) + "&";
|
|
@@ -1443,6 +1444,10 @@ class ProjectsApiClient extends ApiClientBase {
|
|
|
1443
1444
|
url_ += "orderId=" + encodeURIComponent("" + orderId) + "&";
|
|
1444
1445
|
if (processingStatus !== undefined && processingStatus !== null)
|
|
1445
1446
|
url_ += "processingStatus=" + encodeURIComponent("" + processingStatus) + "&";
|
|
1447
|
+
if (includeObsolete === null)
|
|
1448
|
+
throw new Error("The parameter 'includeObsolete' cannot be null.");
|
|
1449
|
+
else if (includeObsolete !== undefined)
|
|
1450
|
+
url_ += "includeObsolete=" + encodeURIComponent("" + includeObsolete) + "&";
|
|
1446
1451
|
if (storefrontId !== undefined && storefrontId !== null)
|
|
1447
1452
|
url_ += "storefrontId=" + encodeURIComponent("" + storefrontId) + "&";
|
|
1448
1453
|
if (tenantId !== undefined && tenantId !== null)
|
|
@@ -1568,6 +1573,13 @@ class ProjectsApiClient extends ApiClientBase {
|
|
|
1568
1573
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
1569
1574
|
}));
|
|
1570
1575
|
}
|
|
1576
|
+
else if (status === 409) {
|
|
1577
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1578
|
+
let result409 = null;
|
|
1579
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1580
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
1581
|
+
}));
|
|
1582
|
+
}
|
|
1571
1583
|
else if (status === 401) {
|
|
1572
1584
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1573
1585
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -1643,6 +1655,13 @@ class ProjectsApiClient extends ApiClientBase {
|
|
|
1643
1655
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
1644
1656
|
}));
|
|
1645
1657
|
}
|
|
1658
|
+
else if (status === 409) {
|
|
1659
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1660
|
+
let result409 = null;
|
|
1661
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1662
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
1663
|
+
}));
|
|
1664
|
+
}
|
|
1646
1665
|
else if (status === 401) {
|
|
1647
1666
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1648
1667
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -1721,6 +1740,13 @@ class ProjectsApiClient extends ApiClientBase {
|
|
|
1721
1740
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
1722
1741
|
}));
|
|
1723
1742
|
}
|
|
1743
|
+
else if (status === 409) {
|
|
1744
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1745
|
+
let result409 = null;
|
|
1746
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1747
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
1748
|
+
}));
|
|
1749
|
+
}
|
|
1724
1750
|
else if (status === 401) {
|
|
1725
1751
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1726
1752
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -1800,6 +1826,13 @@ class ProjectsApiClient extends ApiClientBase {
|
|
|
1800
1826
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
1801
1827
|
}));
|
|
1802
1828
|
}
|
|
1829
|
+
else if (status === 409) {
|
|
1830
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1831
|
+
let result409 = null;
|
|
1832
|
+
result409 = _responseText === "" ? null : _responseText;
|
|
1833
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
1834
|
+
}));
|
|
1835
|
+
}
|
|
1803
1836
|
else if (status === 401) {
|
|
1804
1837
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1805
1838
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -2444,6 +2477,86 @@ class ProjectsApiClient extends ApiClientBase {
|
|
|
2444
2477
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
2445
2478
|
}));
|
|
2446
2479
|
}
|
|
2480
|
+
else if (status === 409) {
|
|
2481
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2482
|
+
let result409 = null;
|
|
2483
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2484
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
2485
|
+
}));
|
|
2486
|
+
}
|
|
2487
|
+
else if (status === 401) {
|
|
2488
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2489
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
2490
|
+
}));
|
|
2491
|
+
}
|
|
2492
|
+
else if (status === 403) {
|
|
2493
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2494
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
2495
|
+
}));
|
|
2496
|
+
}
|
|
2497
|
+
else if (status !== 200 && status !== 204) {
|
|
2498
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2499
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
2500
|
+
}));
|
|
2501
|
+
}
|
|
2502
|
+
return of(null);
|
|
2503
|
+
}
|
|
2504
|
+
/**
|
|
2505
|
+
* Deletes specified projects.
|
|
2506
|
+
These projects will be hide from projects list immediately, but complete projects data cleaning will take some additional time.
|
|
2507
|
+
* @param tenantId (optional) Tenant identifier.
|
|
2508
|
+
* @param body (optional)
|
|
2509
|
+
* @return Success
|
|
2510
|
+
*/
|
|
2511
|
+
batchDelete(tenantId, body) {
|
|
2512
|
+
let url_ = this.baseUrl + "/api/storefront/v1/projects/batch-delete?";
|
|
2513
|
+
if (tenantId !== undefined && tenantId !== null)
|
|
2514
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
2515
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
2516
|
+
const content_ = JSON.stringify(body);
|
|
2517
|
+
let options_ = {
|
|
2518
|
+
body: content_,
|
|
2519
|
+
observe: "response",
|
|
2520
|
+
responseType: "blob",
|
|
2521
|
+
headers: new HttpHeaders({
|
|
2522
|
+
"Content-Type": "application/json-patch+json",
|
|
2523
|
+
"Accept": "text/plain"
|
|
2524
|
+
})
|
|
2525
|
+
};
|
|
2526
|
+
return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
|
|
2527
|
+
return this.http.request("delete", url_, transformedOptions_);
|
|
2528
|
+
})).pipe(mergeMap((response_) => {
|
|
2529
|
+
return this.transformResult(url_, response_, (r) => this.processBatchDelete(r));
|
|
2530
|
+
})).pipe(catchError((response_) => {
|
|
2531
|
+
if (response_ instanceof HttpResponseBase) {
|
|
2532
|
+
try {
|
|
2533
|
+
return this.transformResult(url_, response_, (r) => this.processBatchDelete(r));
|
|
2534
|
+
}
|
|
2535
|
+
catch (e) {
|
|
2536
|
+
return throwError(e);
|
|
2537
|
+
}
|
|
2538
|
+
}
|
|
2539
|
+
else
|
|
2540
|
+
return throwError(response_);
|
|
2541
|
+
}));
|
|
2542
|
+
}
|
|
2543
|
+
processBatchDelete(response) {
|
|
2544
|
+
const status = response.status;
|
|
2545
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
2546
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
2547
|
+
let _headers = {};
|
|
2548
|
+
if (response.headers) {
|
|
2549
|
+
for (let key of response.headers.keys()) {
|
|
2550
|
+
_headers[key] = response.headers.get(key);
|
|
2551
|
+
}
|
|
2552
|
+
}
|
|
2553
|
+
if (status === 200) {
|
|
2554
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2555
|
+
let result200 = null;
|
|
2556
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2557
|
+
return of(result200);
|
|
2558
|
+
}));
|
|
2559
|
+
}
|
|
2447
2560
|
else if (status === 401) {
|
|
2448
2561
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2449
2562
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -2663,6 +2776,13 @@ class ProjectsApiClient extends ApiClientBase {
|
|
|
2663
2776
|
return of(result200);
|
|
2664
2777
|
}));
|
|
2665
2778
|
}
|
|
2779
|
+
else if (status === 409) {
|
|
2780
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2781
|
+
let result409 = null;
|
|
2782
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2783
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
2784
|
+
}));
|
|
2785
|
+
}
|
|
2666
2786
|
else if (status === 401) {
|
|
2667
2787
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2668
2788
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -2755,6 +2875,13 @@ class ProjectsApiClient extends ApiClientBase {
|
|
|
2755
2875
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
2756
2876
|
}));
|
|
2757
2877
|
}
|
|
2878
|
+
else if (status === 409) {
|
|
2879
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2880
|
+
let result409 = null;
|
|
2881
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2882
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
2883
|
+
}));
|
|
2884
|
+
}
|
|
2758
2885
|
else if (status === 401) {
|
|
2759
2886
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2760
2887
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -2837,6 +2964,13 @@ class ProjectsApiClient extends ApiClientBase {
|
|
|
2837
2964
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
2838
2965
|
}));
|
|
2839
2966
|
}
|
|
2967
|
+
else if (status === 409) {
|
|
2968
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2969
|
+
let result409 = null;
|
|
2970
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2971
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
2972
|
+
}));
|
|
2973
|
+
}
|
|
2840
2974
|
else if (status === 401) {
|
|
2841
2975
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2842
2976
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -2915,6 +3049,13 @@ class ProjectsApiClient extends ApiClientBase {
|
|
|
2915
3049
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
2916
3050
|
}));
|
|
2917
3051
|
}
|
|
3052
|
+
else if (status === 409) {
|
|
3053
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3054
|
+
let result409 = null;
|
|
3055
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3056
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
3057
|
+
}));
|
|
3058
|
+
}
|
|
2918
3059
|
else if (status === 401) {
|
|
2919
3060
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2920
3061
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -2993,6 +3134,13 @@ class ProjectsApiClient extends ApiClientBase {
|
|
|
2993
3134
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
2994
3135
|
}));
|
|
2995
3136
|
}
|
|
3137
|
+
else if (status === 409) {
|
|
3138
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3139
|
+
let result409 = null;
|
|
3140
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3141
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
3142
|
+
}));
|
|
3143
|
+
}
|
|
2996
3144
|
else if (status === 401) {
|
|
2997
3145
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2998
3146
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -3072,6 +3220,13 @@ class ProjectsApiClient extends ApiClientBase {
|
|
|
3072
3220
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
3073
3221
|
}));
|
|
3074
3222
|
}
|
|
3223
|
+
else if (status === 409) {
|
|
3224
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3225
|
+
let result409 = null;
|
|
3226
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3227
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
3228
|
+
}));
|
|
3229
|
+
}
|
|
3075
3230
|
else if (status === 401) {
|
|
3076
3231
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3077
3232
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -3155,6 +3310,13 @@ class ProjectsApiClient extends ApiClientBase {
|
|
|
3155
3310
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
3156
3311
|
}));
|
|
3157
3312
|
}
|
|
3313
|
+
else if (status === 409) {
|
|
3314
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3315
|
+
let result409 = null;
|
|
3316
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3317
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
3318
|
+
}));
|
|
3319
|
+
}
|
|
3158
3320
|
else if (status === 401) {
|
|
3159
3321
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3160
3322
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -3336,6 +3498,13 @@ class StorefrontsApiClient extends ApiClientBase {
|
|
|
3336
3498
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
3337
3499
|
}));
|
|
3338
3500
|
}
|
|
3501
|
+
else if (status === 409) {
|
|
3502
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3503
|
+
let result409 = null;
|
|
3504
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3505
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
3506
|
+
}));
|
|
3507
|
+
}
|
|
3339
3508
|
else if (status === 401) {
|
|
3340
3509
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3341
3510
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -3611,6 +3780,13 @@ class StorefrontUsersApiClient extends ApiClientBase {
|
|
|
3611
3780
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
3612
3781
|
}));
|
|
3613
3782
|
}
|
|
3783
|
+
else if (status === 409) {
|
|
3784
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3785
|
+
let result409 = null;
|
|
3786
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3787
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
3788
|
+
}));
|
|
3789
|
+
}
|
|
3614
3790
|
else if (status === 401) {
|
|
3615
3791
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3616
3792
|
return throwException("Unauthorized", status, _responseText, _headers);
|