@aurigma/ng-backoffice-api-client 2.57.1 → 2.59.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-backoffice-api-client.metadata.json +1 -1
- package/bundles/aurigma-ng-backoffice-api-client.umd.js +193 -65
- package/bundles/aurigma-ng-backoffice-api-client.umd.js.map +1 -1
- package/bundles/aurigma-ng-backoffice-api-client.umd.min.js +1 -1
- package/bundles/aurigma-ng-backoffice-api-client.umd.min.js.map +1 -1
- package/esm2015/aurigma-ng-backoffice-api-client.js +1 -1
- package/esm2015/lib/backoffice-api-client.js +121 -6
- package/esm2015/lib/backoffice.module.js +1 -1
- package/esm2015/public-api.js +1 -1
- package/fesm2015/aurigma-ng-backoffice-api-client.js +120 -5
- package/fesm2015/aurigma-ng-backoffice-api-client.js.map +1 -1
- package/lib/backoffice-api-client.d.ts +31 -8
- package/package.json +1 -1
|
@@ -1288,7 +1288,7 @@
|
|
|
1288
1288
|
/**
|
|
1289
1289
|
* Creates a new product and returns its description.
|
|
1290
1290
|
* @param tenantId (optional) Tenant identifier.
|
|
1291
|
-
* @param body (optional)
|
|
1291
|
+
* @param body (optional) Product creation parameters.
|
|
1292
1292
|
* @return Success
|
|
1293
1293
|
*/
|
|
1294
1294
|
ProductsManagementApiClient.prototype.createProduct = function (tenantId, body) {
|
|
@@ -2360,6 +2360,13 @@
|
|
|
2360
2360
|
return rxjs.of(null);
|
|
2361
2361
|
}));
|
|
2362
2362
|
}
|
|
2363
|
+
else if (status === 400) {
|
|
2364
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
2365
|
+
var result400 = null;
|
|
2366
|
+
result400 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
2367
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
2368
|
+
}));
|
|
2369
|
+
}
|
|
2363
2370
|
else if (status === 404) {
|
|
2364
2371
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
2365
2372
|
var result404 = null;
|
|
@@ -2460,6 +2467,13 @@
|
|
|
2460
2467
|
return rxjs.of(null);
|
|
2461
2468
|
}));
|
|
2462
2469
|
}
|
|
2470
|
+
else if (status === 400) {
|
|
2471
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
2472
|
+
var result400 = null;
|
|
2473
|
+
result400 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
2474
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
2475
|
+
}));
|
|
2476
|
+
}
|
|
2463
2477
|
else if (status === 404) {
|
|
2464
2478
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
2465
2479
|
var result404 = null;
|
|
@@ -2560,6 +2574,13 @@
|
|
|
2560
2574
|
return rxjs.of(null);
|
|
2561
2575
|
}));
|
|
2562
2576
|
}
|
|
2577
|
+
else if (status === 400) {
|
|
2578
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
2579
|
+
var result400 = null;
|
|
2580
|
+
result400 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
2581
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
2582
|
+
}));
|
|
2583
|
+
}
|
|
2563
2584
|
else if (status === 404) {
|
|
2564
2585
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
2565
2586
|
var result404 = null;
|
|
@@ -3291,6 +3312,116 @@
|
|
|
3291
3312
|
}
|
|
3292
3313
|
return rxjs.of(null);
|
|
3293
3314
|
};
|
|
3315
|
+
/**
|
|
3316
|
+
* Set a thumbnail image for an existing product.
|
|
3317
|
+
* @param id Product identifier.
|
|
3318
|
+
* @param productVersionId (optional)
|
|
3319
|
+
* @param tenantId (optional) Tenant identifier.
|
|
3320
|
+
* @param file (optional)
|
|
3321
|
+
* @return Success
|
|
3322
|
+
*/
|
|
3323
|
+
ProductsManagementApiClient.prototype.setProductImage = function (id, productVersionId, tenantId, file) {
|
|
3324
|
+
var _this = this;
|
|
3325
|
+
var url_ = this.baseUrl + "/api/backoffice/v1/products/{id}/set-image?";
|
|
3326
|
+
if (id === undefined || id === null)
|
|
3327
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
3328
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3329
|
+
if (productVersionId !== undefined && productVersionId !== null)
|
|
3330
|
+
url_ += "productVersionId=" + encodeURIComponent("" + productVersionId) + "&";
|
|
3331
|
+
if (tenantId !== undefined && tenantId !== null)
|
|
3332
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
3333
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
3334
|
+
var content_ = new FormData();
|
|
3335
|
+
if (file !== null && file !== undefined)
|
|
3336
|
+
content_.append("file", file.data, file.fileName ? file.fileName : "file");
|
|
3337
|
+
var options_ = {
|
|
3338
|
+
body: content_,
|
|
3339
|
+
observe: "response",
|
|
3340
|
+
responseType: "blob",
|
|
3341
|
+
headers: new i1.HttpHeaders({})
|
|
3342
|
+
};
|
|
3343
|
+
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
3344
|
+
return _this.http.request("post", url_, transformedOptions_);
|
|
3345
|
+
})).pipe(operators.mergeMap(function (response_) {
|
|
3346
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processSetProductImage(r); });
|
|
3347
|
+
})).pipe(operators.catchError(function (response_) {
|
|
3348
|
+
if (response_ instanceof i1.HttpResponseBase) {
|
|
3349
|
+
try {
|
|
3350
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processSetProductImage(r); });
|
|
3351
|
+
}
|
|
3352
|
+
catch (e) {
|
|
3353
|
+
return rxjs.throwError(e);
|
|
3354
|
+
}
|
|
3355
|
+
}
|
|
3356
|
+
else
|
|
3357
|
+
return rxjs.throwError(response_);
|
|
3358
|
+
}));
|
|
3359
|
+
};
|
|
3360
|
+
ProductsManagementApiClient.prototype.processSetProductImage = function (response) {
|
|
3361
|
+
var e_27, _a;
|
|
3362
|
+
var _this = this;
|
|
3363
|
+
var status = response.status;
|
|
3364
|
+
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
3365
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
3366
|
+
var _headers = {};
|
|
3367
|
+
if (response.headers) {
|
|
3368
|
+
try {
|
|
3369
|
+
for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
3370
|
+
var key = _c.value;
|
|
3371
|
+
_headers[key] = response.headers.get(key);
|
|
3372
|
+
}
|
|
3373
|
+
}
|
|
3374
|
+
catch (e_27_1) { e_27 = { error: e_27_1 }; }
|
|
3375
|
+
finally {
|
|
3376
|
+
try {
|
|
3377
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
3378
|
+
}
|
|
3379
|
+
finally { if (e_27) throw e_27.error; }
|
|
3380
|
+
}
|
|
3381
|
+
}
|
|
3382
|
+
if (status === 200) {
|
|
3383
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
3384
|
+
return rxjs.of(null);
|
|
3385
|
+
}));
|
|
3386
|
+
}
|
|
3387
|
+
else if (status === 400) {
|
|
3388
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
3389
|
+
var result400 = null;
|
|
3390
|
+
result400 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
3391
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
3392
|
+
}));
|
|
3393
|
+
}
|
|
3394
|
+
else if (status === 404) {
|
|
3395
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
3396
|
+
var result404 = null;
|
|
3397
|
+
result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
3398
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
3399
|
+
}));
|
|
3400
|
+
}
|
|
3401
|
+
else if (status === 409) {
|
|
3402
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
3403
|
+
var result409 = null;
|
|
3404
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
3405
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
3406
|
+
}));
|
|
3407
|
+
}
|
|
3408
|
+
else if (status === 401) {
|
|
3409
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
3410
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
3411
|
+
}));
|
|
3412
|
+
}
|
|
3413
|
+
else if (status === 403) {
|
|
3414
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
3415
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
3416
|
+
}));
|
|
3417
|
+
}
|
|
3418
|
+
else if (status !== 200 && status !== 204) {
|
|
3419
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
3420
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3421
|
+
}));
|
|
3422
|
+
}
|
|
3423
|
+
return rxjs.of(null);
|
|
3424
|
+
};
|
|
3294
3425
|
/**
|
|
3295
3426
|
* Returns all available product personalization workflows.
|
|
3296
3427
|
* @param skip (optional) Defines page start offset from beginning of sorted result list.
|
|
@@ -3336,7 +3467,7 @@
|
|
|
3336
3467
|
}));
|
|
3337
3468
|
};
|
|
3338
3469
|
ProductsManagementApiClient.prototype.processGetAvailablePersonalizationWorkflows = function (response) {
|
|
3339
|
-
var
|
|
3470
|
+
var e_28, _a;
|
|
3340
3471
|
var _this = this;
|
|
3341
3472
|
var status = response.status;
|
|
3342
3473
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -3349,12 +3480,12 @@
|
|
|
3349
3480
|
_headers[key] = response.headers.get(key);
|
|
3350
3481
|
}
|
|
3351
3482
|
}
|
|
3352
|
-
catch (
|
|
3483
|
+
catch (e_28_1) { e_28 = { error: e_28_1 }; }
|
|
3353
3484
|
finally {
|
|
3354
3485
|
try {
|
|
3355
3486
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
3356
3487
|
}
|
|
3357
|
-
finally { if (
|
|
3488
|
+
finally { if (e_28) throw e_28.error; }
|
|
3358
3489
|
}
|
|
3359
3490
|
}
|
|
3360
3491
|
if (status === 200) {
|
|
@@ -3426,7 +3557,7 @@
|
|
|
3426
3557
|
}));
|
|
3427
3558
|
};
|
|
3428
3559
|
ProductsManagementApiClient.prototype.processGetAvailableProcessingPipelines = function (response) {
|
|
3429
|
-
var
|
|
3560
|
+
var e_29, _a;
|
|
3430
3561
|
var _this = this;
|
|
3431
3562
|
var status = response.status;
|
|
3432
3563
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -3439,12 +3570,12 @@
|
|
|
3439
3570
|
_headers[key] = response.headers.get(key);
|
|
3440
3571
|
}
|
|
3441
3572
|
}
|
|
3442
|
-
catch (
|
|
3573
|
+
catch (e_29_1) { e_29 = { error: e_29_1 }; }
|
|
3443
3574
|
finally {
|
|
3444
3575
|
try {
|
|
3445
3576
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
3446
3577
|
}
|
|
3447
|
-
finally { if (
|
|
3578
|
+
finally { if (e_29) throw e_29.error; }
|
|
3448
3579
|
}
|
|
3449
3580
|
}
|
|
3450
3581
|
if (status === 200) {
|
|
@@ -3544,7 +3675,7 @@
|
|
|
3544
3675
|
}));
|
|
3545
3676
|
};
|
|
3546
3677
|
StorefrontsManagementApiClient.prototype.processGetAll = function (response) {
|
|
3547
|
-
var
|
|
3678
|
+
var e_30, _a;
|
|
3548
3679
|
var _this = this;
|
|
3549
3680
|
var status = response.status;
|
|
3550
3681
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -3557,12 +3688,12 @@
|
|
|
3557
3688
|
_headers[key] = response.headers.get(key);
|
|
3558
3689
|
}
|
|
3559
3690
|
}
|
|
3560
|
-
catch (
|
|
3691
|
+
catch (e_30_1) { e_30 = { error: e_30_1 }; }
|
|
3561
3692
|
finally {
|
|
3562
3693
|
try {
|
|
3563
3694
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
3564
3695
|
}
|
|
3565
|
-
finally { if (
|
|
3696
|
+
finally { if (e_30) throw e_30.error; }
|
|
3566
3697
|
}
|
|
3567
3698
|
}
|
|
3568
3699
|
if (status === 200) {
|
|
@@ -3629,7 +3760,7 @@
|
|
|
3629
3760
|
}));
|
|
3630
3761
|
};
|
|
3631
3762
|
StorefrontsManagementApiClient.prototype.processGet = function (response) {
|
|
3632
|
-
var
|
|
3763
|
+
var e_31, _a;
|
|
3633
3764
|
var _this = this;
|
|
3634
3765
|
var status = response.status;
|
|
3635
3766
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -3642,12 +3773,12 @@
|
|
|
3642
3773
|
_headers[key] = response.headers.get(key);
|
|
3643
3774
|
}
|
|
3644
3775
|
}
|
|
3645
|
-
catch (
|
|
3776
|
+
catch (e_31_1) { e_31 = { error: e_31_1 }; }
|
|
3646
3777
|
finally {
|
|
3647
3778
|
try {
|
|
3648
3779
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
3649
3780
|
}
|
|
3650
|
-
finally { if (
|
|
3781
|
+
finally { if (e_31) throw e_31.error; }
|
|
3651
3782
|
}
|
|
3652
3783
|
}
|
|
3653
3784
|
if (status === 200) {
|
|
@@ -3721,7 +3852,7 @@
|
|
|
3721
3852
|
}));
|
|
3722
3853
|
};
|
|
3723
3854
|
StorefrontsManagementApiClient.prototype.processDelete = function (response) {
|
|
3724
|
-
var
|
|
3855
|
+
var e_32, _a;
|
|
3725
3856
|
var _this = this;
|
|
3726
3857
|
var status = response.status;
|
|
3727
3858
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -3734,12 +3865,12 @@
|
|
|
3734
3865
|
_headers[key] = response.headers.get(key);
|
|
3735
3866
|
}
|
|
3736
3867
|
}
|
|
3737
|
-
catch (
|
|
3868
|
+
catch (e_32_1) { e_32 = { error: e_32_1 }; }
|
|
3738
3869
|
finally {
|
|
3739
3870
|
try {
|
|
3740
3871
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
3741
3872
|
}
|
|
3742
|
-
finally { if (
|
|
3873
|
+
finally { if (e_32) throw e_32.error; }
|
|
3743
3874
|
}
|
|
3744
3875
|
}
|
|
3745
3876
|
if (status === 200) {
|
|
@@ -3813,7 +3944,7 @@
|
|
|
3813
3944
|
}));
|
|
3814
3945
|
};
|
|
3815
3946
|
StorefrontsManagementApiClient.prototype.processCreateCustomStorefront = function (response) {
|
|
3816
|
-
var
|
|
3947
|
+
var e_33, _a;
|
|
3817
3948
|
var _this = this;
|
|
3818
3949
|
var status = response.status;
|
|
3819
3950
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -3826,12 +3957,12 @@
|
|
|
3826
3957
|
_headers[key] = response.headers.get(key);
|
|
3827
3958
|
}
|
|
3828
3959
|
}
|
|
3829
|
-
catch (
|
|
3960
|
+
catch (e_33_1) { e_33 = { error: e_33_1 }; }
|
|
3830
3961
|
finally {
|
|
3831
3962
|
try {
|
|
3832
3963
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
3833
3964
|
}
|
|
3834
|
-
finally { if (
|
|
3965
|
+
finally { if (e_33) throw e_33.error; }
|
|
3835
3966
|
}
|
|
3836
3967
|
}
|
|
3837
3968
|
if (status === 200) {
|
|
@@ -3912,7 +4043,7 @@
|
|
|
3912
4043
|
}));
|
|
3913
4044
|
};
|
|
3914
4045
|
StorefrontsManagementApiClient.prototype.processGetCustomStorefront = function (response) {
|
|
3915
|
-
var
|
|
4046
|
+
var e_34, _a;
|
|
3916
4047
|
var _this = this;
|
|
3917
4048
|
var status = response.status;
|
|
3918
4049
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -3925,12 +4056,12 @@
|
|
|
3925
4056
|
_headers[key] = response.headers.get(key);
|
|
3926
4057
|
}
|
|
3927
4058
|
}
|
|
3928
|
-
catch (
|
|
4059
|
+
catch (e_34_1) { e_34 = { error: e_34_1 }; }
|
|
3929
4060
|
finally {
|
|
3930
4061
|
try {
|
|
3931
4062
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
3932
4063
|
}
|
|
3933
|
-
finally { if (
|
|
4064
|
+
finally { if (e_34) throw e_34.error; }
|
|
3934
4065
|
}
|
|
3935
4066
|
}
|
|
3936
4067
|
if (status === 200) {
|
|
@@ -4004,7 +4135,7 @@
|
|
|
4004
4135
|
}));
|
|
4005
4136
|
};
|
|
4006
4137
|
StorefrontsManagementApiClient.prototype.processCreateNopCommerceStorefront = function (response) {
|
|
4007
|
-
var
|
|
4138
|
+
var e_35, _a;
|
|
4008
4139
|
var _this = this;
|
|
4009
4140
|
var status = response.status;
|
|
4010
4141
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4017,12 +4148,12 @@
|
|
|
4017
4148
|
_headers[key] = response.headers.get(key);
|
|
4018
4149
|
}
|
|
4019
4150
|
}
|
|
4020
|
-
catch (
|
|
4151
|
+
catch (e_35_1) { e_35 = { error: e_35_1 }; }
|
|
4021
4152
|
finally {
|
|
4022
4153
|
try {
|
|
4023
4154
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4024
4155
|
}
|
|
4025
|
-
finally { if (
|
|
4156
|
+
finally { if (e_35) throw e_35.error; }
|
|
4026
4157
|
}
|
|
4027
4158
|
}
|
|
4028
4159
|
if (status === 200) {
|
|
@@ -4103,7 +4234,7 @@
|
|
|
4103
4234
|
}));
|
|
4104
4235
|
};
|
|
4105
4236
|
StorefrontsManagementApiClient.prototype.processGetNopCommerceStorefront = function (response) {
|
|
4106
|
-
var
|
|
4237
|
+
var e_36, _a;
|
|
4107
4238
|
var _this = this;
|
|
4108
4239
|
var status = response.status;
|
|
4109
4240
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4116,12 +4247,12 @@
|
|
|
4116
4247
|
_headers[key] = response.headers.get(key);
|
|
4117
4248
|
}
|
|
4118
4249
|
}
|
|
4119
|
-
catch (
|
|
4250
|
+
catch (e_36_1) { e_36 = { error: e_36_1 }; }
|
|
4120
4251
|
finally {
|
|
4121
4252
|
try {
|
|
4122
4253
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4123
4254
|
}
|
|
4124
|
-
finally { if (
|
|
4255
|
+
finally { if (e_36) throw e_36.error; }
|
|
4125
4256
|
}
|
|
4126
4257
|
}
|
|
4127
4258
|
if (status === 200) {
|
|
@@ -4195,7 +4326,7 @@
|
|
|
4195
4326
|
}));
|
|
4196
4327
|
};
|
|
4197
4328
|
StorefrontsManagementApiClient.prototype.processCreateWooCommerceStorefront = function (response) {
|
|
4198
|
-
var
|
|
4329
|
+
var e_37, _a;
|
|
4199
4330
|
var _this = this;
|
|
4200
4331
|
var status = response.status;
|
|
4201
4332
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4208,12 +4339,12 @@
|
|
|
4208
4339
|
_headers[key] = response.headers.get(key);
|
|
4209
4340
|
}
|
|
4210
4341
|
}
|
|
4211
|
-
catch (
|
|
4342
|
+
catch (e_37_1) { e_37 = { error: e_37_1 }; }
|
|
4212
4343
|
finally {
|
|
4213
4344
|
try {
|
|
4214
4345
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4215
4346
|
}
|
|
4216
|
-
finally { if (
|
|
4347
|
+
finally { if (e_37) throw e_37.error; }
|
|
4217
4348
|
}
|
|
4218
4349
|
}
|
|
4219
4350
|
if (status === 200) {
|
|
@@ -4294,7 +4425,7 @@
|
|
|
4294
4425
|
}));
|
|
4295
4426
|
};
|
|
4296
4427
|
StorefrontsManagementApiClient.prototype.processGetWooCommerceStorefront = function (response) {
|
|
4297
|
-
var
|
|
4428
|
+
var e_38, _a;
|
|
4298
4429
|
var _this = this;
|
|
4299
4430
|
var status = response.status;
|
|
4300
4431
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4307,12 +4438,12 @@
|
|
|
4307
4438
|
_headers[key] = response.headers.get(key);
|
|
4308
4439
|
}
|
|
4309
4440
|
}
|
|
4310
|
-
catch (
|
|
4441
|
+
catch (e_38_1) { e_38 = { error: e_38_1 }; }
|
|
4311
4442
|
finally {
|
|
4312
4443
|
try {
|
|
4313
4444
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4314
4445
|
}
|
|
4315
|
-
finally { if (
|
|
4446
|
+
finally { if (e_38) throw e_38.error; }
|
|
4316
4447
|
}
|
|
4317
4448
|
}
|
|
4318
4449
|
if (status === 200) {
|
|
@@ -4386,7 +4517,7 @@
|
|
|
4386
4517
|
}));
|
|
4387
4518
|
};
|
|
4388
4519
|
StorefrontsManagementApiClient.prototype.processCreateMagentoStorefront = function (response) {
|
|
4389
|
-
var
|
|
4520
|
+
var e_39, _a;
|
|
4390
4521
|
var _this = this;
|
|
4391
4522
|
var status = response.status;
|
|
4392
4523
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4399,12 +4530,12 @@
|
|
|
4399
4530
|
_headers[key] = response.headers.get(key);
|
|
4400
4531
|
}
|
|
4401
4532
|
}
|
|
4402
|
-
catch (
|
|
4533
|
+
catch (e_39_1) { e_39 = { error: e_39_1 }; }
|
|
4403
4534
|
finally {
|
|
4404
4535
|
try {
|
|
4405
4536
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4406
4537
|
}
|
|
4407
|
-
finally { if (
|
|
4538
|
+
finally { if (e_39) throw e_39.error; }
|
|
4408
4539
|
}
|
|
4409
4540
|
}
|
|
4410
4541
|
if (status === 200) {
|
|
@@ -4485,7 +4616,7 @@
|
|
|
4485
4616
|
}));
|
|
4486
4617
|
};
|
|
4487
4618
|
StorefrontsManagementApiClient.prototype.processGetMagentoStorefront = function (response) {
|
|
4488
|
-
var
|
|
4619
|
+
var e_40, _a;
|
|
4489
4620
|
var _this = this;
|
|
4490
4621
|
var status = response.status;
|
|
4491
4622
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4498,12 +4629,12 @@
|
|
|
4498
4629
|
_headers[key] = response.headers.get(key);
|
|
4499
4630
|
}
|
|
4500
4631
|
}
|
|
4501
|
-
catch (
|
|
4632
|
+
catch (e_40_1) { e_40 = { error: e_40_1 }; }
|
|
4502
4633
|
finally {
|
|
4503
4634
|
try {
|
|
4504
4635
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4505
4636
|
}
|
|
4506
|
-
finally { if (
|
|
4637
|
+
finally { if (e_40) throw e_40.error; }
|
|
4507
4638
|
}
|
|
4508
4639
|
}
|
|
4509
4640
|
if (status === 200) {
|
|
@@ -4577,7 +4708,7 @@
|
|
|
4577
4708
|
}));
|
|
4578
4709
|
};
|
|
4579
4710
|
StorefrontsManagementApiClient.prototype.processCreateBigCommerceStorefront = function (response) {
|
|
4580
|
-
var
|
|
4711
|
+
var e_41, _a;
|
|
4581
4712
|
var _this = this;
|
|
4582
4713
|
var status = response.status;
|
|
4583
4714
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4590,12 +4721,12 @@
|
|
|
4590
4721
|
_headers[key] = response.headers.get(key);
|
|
4591
4722
|
}
|
|
4592
4723
|
}
|
|
4593
|
-
catch (
|
|
4724
|
+
catch (e_41_1) { e_41 = { error: e_41_1 }; }
|
|
4594
4725
|
finally {
|
|
4595
4726
|
try {
|
|
4596
4727
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4597
4728
|
}
|
|
4598
|
-
finally { if (
|
|
4729
|
+
finally { if (e_41) throw e_41.error; }
|
|
4599
4730
|
}
|
|
4600
4731
|
}
|
|
4601
4732
|
if (status === 200) {
|
|
@@ -4676,7 +4807,7 @@
|
|
|
4676
4807
|
}));
|
|
4677
4808
|
};
|
|
4678
4809
|
StorefrontsManagementApiClient.prototype.processGetBigCommerceStorefront = function (response) {
|
|
4679
|
-
var
|
|
4810
|
+
var e_42, _a;
|
|
4680
4811
|
var _this = this;
|
|
4681
4812
|
var status = response.status;
|
|
4682
4813
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4689,12 +4820,12 @@
|
|
|
4689
4820
|
_headers[key] = response.headers.get(key);
|
|
4690
4821
|
}
|
|
4691
4822
|
}
|
|
4692
|
-
catch (
|
|
4823
|
+
catch (e_42_1) { e_42 = { error: e_42_1 }; }
|
|
4693
4824
|
finally {
|
|
4694
4825
|
try {
|
|
4695
4826
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4696
4827
|
}
|
|
4697
|
-
finally { if (
|
|
4828
|
+
finally { if (e_42) throw e_42.error; }
|
|
4698
4829
|
}
|
|
4699
4830
|
}
|
|
4700
4831
|
if (status === 200) {
|
|
@@ -4786,7 +4917,7 @@
|
|
|
4786
4917
|
}));
|
|
4787
4918
|
};
|
|
4788
4919
|
UsersManagementApiClient.prototype.processGetAll = function (response) {
|
|
4789
|
-
var
|
|
4920
|
+
var e_43, _a;
|
|
4790
4921
|
var _this = this;
|
|
4791
4922
|
var status = response.status;
|
|
4792
4923
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4799,12 +4930,12 @@
|
|
|
4799
4930
|
_headers[key] = response.headers.get(key);
|
|
4800
4931
|
}
|
|
4801
4932
|
}
|
|
4802
|
-
catch (
|
|
4933
|
+
catch (e_43_1) { e_43 = { error: e_43_1 }; }
|
|
4803
4934
|
finally {
|
|
4804
4935
|
try {
|
|
4805
4936
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4806
4937
|
}
|
|
4807
|
-
finally { if (
|
|
4938
|
+
finally { if (e_43) throw e_43.error; }
|
|
4808
4939
|
}
|
|
4809
4940
|
}
|
|
4810
4941
|
if (status === 200) {
|
|
@@ -4871,7 +5002,7 @@
|
|
|
4871
5002
|
}));
|
|
4872
5003
|
};
|
|
4873
5004
|
UsersManagementApiClient.prototype.processCreate = function (response) {
|
|
4874
|
-
var
|
|
5005
|
+
var e_44, _a;
|
|
4875
5006
|
var _this = this;
|
|
4876
5007
|
var status = response.status;
|
|
4877
5008
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4884,12 +5015,12 @@
|
|
|
4884
5015
|
_headers[key] = response.headers.get(key);
|
|
4885
5016
|
}
|
|
4886
5017
|
}
|
|
4887
|
-
catch (
|
|
5018
|
+
catch (e_44_1) { e_44 = { error: e_44_1 }; }
|
|
4888
5019
|
finally {
|
|
4889
5020
|
try {
|
|
4890
5021
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4891
5022
|
}
|
|
4892
|
-
finally { if (
|
|
5023
|
+
finally { if (e_44) throw e_44.error; }
|
|
4893
5024
|
}
|
|
4894
5025
|
}
|
|
4895
5026
|
if (status === 200) {
|
|
@@ -4963,7 +5094,7 @@
|
|
|
4963
5094
|
}));
|
|
4964
5095
|
};
|
|
4965
5096
|
UsersManagementApiClient.prototype.processGet = function (response) {
|
|
4966
|
-
var
|
|
5097
|
+
var e_45, _a;
|
|
4967
5098
|
var _this = this;
|
|
4968
5099
|
var status = response.status;
|
|
4969
5100
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4976,12 +5107,12 @@
|
|
|
4976
5107
|
_headers[key] = response.headers.get(key);
|
|
4977
5108
|
}
|
|
4978
5109
|
}
|
|
4979
|
-
catch (
|
|
5110
|
+
catch (e_45_1) { e_45 = { error: e_45_1 }; }
|
|
4980
5111
|
finally {
|
|
4981
5112
|
try {
|
|
4982
5113
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4983
5114
|
}
|
|
4984
|
-
finally { if (
|
|
5115
|
+
finally { if (e_45) throw e_45.error; }
|
|
4985
5116
|
}
|
|
4986
5117
|
}
|
|
4987
5118
|
if (status === 200) {
|
|
@@ -5053,7 +5184,7 @@
|
|
|
5053
5184
|
}));
|
|
5054
5185
|
};
|
|
5055
5186
|
UsersManagementApiClient.prototype.processDelete = function (response) {
|
|
5056
|
-
var
|
|
5187
|
+
var e_46, _a;
|
|
5057
5188
|
var status = response.status;
|
|
5058
5189
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
5059
5190
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -5065,12 +5196,12 @@
|
|
|
5065
5196
|
_headers[key] = response.headers.get(key);
|
|
5066
5197
|
}
|
|
5067
5198
|
}
|
|
5068
|
-
catch (
|
|
5199
|
+
catch (e_46_1) { e_46 = { error: e_46_1 }; }
|
|
5069
5200
|
finally {
|
|
5070
5201
|
try {
|
|
5071
5202
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5072
5203
|
}
|
|
5073
|
-
finally { if (
|
|
5204
|
+
finally { if (e_46) throw e_46.error; }
|
|
5074
5205
|
}
|
|
5075
5206
|
}
|
|
5076
5207
|
if (status === 200) {
|
|
@@ -5143,7 +5274,7 @@
|
|
|
5143
5274
|
}));
|
|
5144
5275
|
};
|
|
5145
5276
|
UsersManagementApiClient.prototype.processGetAllRoles = function (response) {
|
|
5146
|
-
var
|
|
5277
|
+
var e_47, _a;
|
|
5147
5278
|
var _this = this;
|
|
5148
5279
|
var status = response.status;
|
|
5149
5280
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -5156,12 +5287,12 @@
|
|
|
5156
5287
|
_headers[key] = response.headers.get(key);
|
|
5157
5288
|
}
|
|
5158
5289
|
}
|
|
5159
|
-
catch (
|
|
5290
|
+
catch (e_47_1) { e_47 = { error: e_47_1 }; }
|
|
5160
5291
|
finally {
|
|
5161
5292
|
try {
|
|
5162
5293
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5163
5294
|
}
|
|
5164
|
-
finally { if (
|
|
5295
|
+
finally { if (e_47) throw e_47.error; }
|
|
5165
5296
|
}
|
|
5166
5297
|
}
|
|
5167
5298
|
if (status === 200) {
|
|
@@ -5282,10 +5413,7 @@
|
|
|
5282
5413
|
return ApiException;
|
|
5283
5414
|
}(Error));
|
|
5284
5415
|
function throwException(message, status, response, headers, result) {
|
|
5285
|
-
|
|
5286
|
-
return rxjs.throwError(result);
|
|
5287
|
-
else
|
|
5288
|
-
return rxjs.throwError(new ApiException(message, status, response, headers, null));
|
|
5416
|
+
return rxjs.throwError(new ApiException(message, status, response, headers, result));
|
|
5289
5417
|
}
|
|
5290
5418
|
function blobToText(blob) {
|
|
5291
5419
|
return new rxjs.Observable(function (observer) {
|