@aurigma/ng-design-atoms-api-client 2.54.3 → 2.56.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-design-atoms-api-client.metadata.json +1 -1
- package/bundles/aurigma-ng-design-atoms-api-client.umd.js +264 -295
- package/bundles/aurigma-ng-design-atoms-api-client.umd.js.map +1 -1
- package/bundles/aurigma-ng-design-atoms-api-client.umd.min.js +1 -1
- package/bundles/aurigma-ng-design-atoms-api-client.umd.min.js.map +1 -1
- package/esm2015/lib/design-atoms-api-client.js +219 -250
- package/fesm2015/aurigma-ng-design-atoms-api-client.js +218 -249
- package/fesm2015/aurigma-ng-design-atoms-api-client.js.map +1 -1
- package/lib/design-atoms-api-client.d.ts +166 -176
- package/package.json +1 -1
|
@@ -2831,7 +2831,7 @@
|
|
|
2831
2831
|
*/
|
|
2832
2832
|
DesignAtomsImagesApiClient.prototype.renderImagePreview = function (attachment, tenantId, body) {
|
|
2833
2833
|
var _this = this;
|
|
2834
|
-
var url_ = this.baseUrl + "/api/atoms/v1/images/render-
|
|
2834
|
+
var url_ = this.baseUrl + "/api/atoms/v1/images/render-preview?";
|
|
2835
2835
|
if (attachment !== undefined && attachment !== null)
|
|
2836
2836
|
url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
|
|
2837
2837
|
if (tenantId === null)
|
|
@@ -2926,7 +2926,7 @@
|
|
|
2926
2926
|
*/
|
|
2927
2927
|
DesignAtomsImagesApiClient.prototype.renderImagePreviewToResource = function (tenantId, body) {
|
|
2928
2928
|
var _this = this;
|
|
2929
|
-
var url_ = this.baseUrl + "/api/atoms/v1/images/render-
|
|
2929
|
+
var url_ = this.baseUrl + "/api/atoms/v1/images/render-preview/to-resource?";
|
|
2930
2930
|
if (tenantId === null)
|
|
2931
2931
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
2932
2932
|
else if (tenantId !== undefined)
|
|
@@ -3387,120 +3387,16 @@
|
|
|
3387
3387
|
_this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : _this.getBaseUrl("");
|
|
3388
3388
|
return _this;
|
|
3389
3389
|
}
|
|
3390
|
-
/**
|
|
3391
|
-
* Converts colors
|
|
3392
|
-
* @param tenantId (optional) Tenant identifier
|
|
3393
|
-
* @param body (optional) Convert colors operation parameters
|
|
3394
|
-
* @return Success
|
|
3395
|
-
*/
|
|
3396
|
-
DesignAtomsServiceApiClient.prototype.convertColors = function (tenantId, body) {
|
|
3397
|
-
var _this = this;
|
|
3398
|
-
var url_ = this.baseUrl + "/api/atoms/v1/colorConverter?";
|
|
3399
|
-
if (tenantId === null)
|
|
3400
|
-
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
3401
|
-
else if (tenantId !== undefined)
|
|
3402
|
-
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
3403
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
3404
|
-
var content_ = JSON.stringify(body);
|
|
3405
|
-
var options_ = {
|
|
3406
|
-
body: content_,
|
|
3407
|
-
observe: "response",
|
|
3408
|
-
responseType: "blob",
|
|
3409
|
-
headers: new i1.HttpHeaders({
|
|
3410
|
-
"Content-Type": "application/json",
|
|
3411
|
-
"Accept": "application/json"
|
|
3412
|
-
})
|
|
3413
|
-
};
|
|
3414
|
-
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
3415
|
-
return _this.http.request("post", url_, transformedOptions_);
|
|
3416
|
-
})).pipe(operators.mergeMap(function (response_) {
|
|
3417
|
-
return _this.transformResult(url_, response_, function (r) { return _this.processConvertColors(r); });
|
|
3418
|
-
})).pipe(operators.catchError(function (response_) {
|
|
3419
|
-
if (response_ instanceof i1.HttpResponseBase) {
|
|
3420
|
-
try {
|
|
3421
|
-
return _this.transformResult(url_, response_, function (r) { return _this.processConvertColors(r); });
|
|
3422
|
-
}
|
|
3423
|
-
catch (e) {
|
|
3424
|
-
return rxjs.throwError(e);
|
|
3425
|
-
}
|
|
3426
|
-
}
|
|
3427
|
-
else
|
|
3428
|
-
return rxjs.throwError(response_);
|
|
3429
|
-
}));
|
|
3430
|
-
};
|
|
3431
|
-
DesignAtomsServiceApiClient.prototype.processConvertColors = function (response) {
|
|
3432
|
-
var e_34, _a;
|
|
3433
|
-
var _this = this;
|
|
3434
|
-
var status = response.status;
|
|
3435
|
-
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
3436
|
-
response.error instanceof Blob ? response.error : undefined;
|
|
3437
|
-
var _headers = {};
|
|
3438
|
-
if (response.headers) {
|
|
3439
|
-
try {
|
|
3440
|
-
for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
3441
|
-
var key = _c.value;
|
|
3442
|
-
_headers[key] = response.headers.get(key);
|
|
3443
|
-
}
|
|
3444
|
-
}
|
|
3445
|
-
catch (e_34_1) { e_34 = { error: e_34_1 }; }
|
|
3446
|
-
finally {
|
|
3447
|
-
try {
|
|
3448
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
3449
|
-
}
|
|
3450
|
-
finally { if (e_34) throw e_34.error; }
|
|
3451
|
-
}
|
|
3452
|
-
}
|
|
3453
|
-
if (status === 200) {
|
|
3454
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
3455
|
-
var result200 = null;
|
|
3456
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
3457
|
-
return rxjs.of(result200);
|
|
3458
|
-
}));
|
|
3459
|
-
}
|
|
3460
|
-
else if (status === 404) {
|
|
3461
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
3462
|
-
var result404 = null;
|
|
3463
|
-
result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
3464
|
-
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
3465
|
-
}));
|
|
3466
|
-
}
|
|
3467
|
-
else if (status === 401) {
|
|
3468
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
3469
|
-
return throwException("Unauthorized", status, _responseText, _headers);
|
|
3470
|
-
}));
|
|
3471
|
-
}
|
|
3472
|
-
else if (status === 403) {
|
|
3473
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
3474
|
-
return throwException("Forbidden", status, _responseText, _headers);
|
|
3475
|
-
}));
|
|
3476
|
-
}
|
|
3477
|
-
else if (status === 500) {
|
|
3478
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
3479
|
-
var result500 = null;
|
|
3480
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
3481
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3482
|
-
}));
|
|
3483
|
-
}
|
|
3484
|
-
else if (status !== 200 && status !== 204) {
|
|
3485
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
3486
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3487
|
-
}));
|
|
3488
|
-
}
|
|
3489
|
-
return rxjs.of(null);
|
|
3490
|
-
};
|
|
3491
3390
|
/**
|
|
3492
3391
|
* Creates new design file with specified parameters and saves it in storage.
|
|
3493
|
-
* @param privateStorage (optional) If set to 'true' design will be saved to private storage
|
|
3494
3392
|
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
3495
3393
|
* @param tenantId (optional) Tenant identifier
|
|
3496
3394
|
* @param body (optional) Design creation parameters
|
|
3497
3395
|
* @return Success
|
|
3498
3396
|
*/
|
|
3499
|
-
DesignAtomsServiceApiClient.prototype.createDesign = function (
|
|
3397
|
+
DesignAtomsServiceApiClient.prototype.createDesign = function (privateStorageOwner, tenantId, body) {
|
|
3500
3398
|
var _this = this;
|
|
3501
3399
|
var url_ = this.baseUrl + "/api/atoms/v1/designs?";
|
|
3502
|
-
if (privateStorage !== undefined && privateStorage !== null)
|
|
3503
|
-
url_ += "privateStorage=" + encodeURIComponent("" + privateStorage) + "&";
|
|
3504
3400
|
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
3505
3401
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3506
3402
|
if (tenantId === null)
|
|
@@ -3536,7 +3432,7 @@
|
|
|
3536
3432
|
}));
|
|
3537
3433
|
};
|
|
3538
3434
|
DesignAtomsServiceApiClient.prototype.processCreateDesign = function (response) {
|
|
3539
|
-
var
|
|
3435
|
+
var e_34, _a;
|
|
3540
3436
|
var _this = this;
|
|
3541
3437
|
var status = response.status;
|
|
3542
3438
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -3549,12 +3445,12 @@
|
|
|
3549
3445
|
_headers[key] = response.headers.get(key);
|
|
3550
3446
|
}
|
|
3551
3447
|
}
|
|
3552
|
-
catch (
|
|
3448
|
+
catch (e_34_1) { e_34 = { error: e_34_1 }; }
|
|
3553
3449
|
finally {
|
|
3554
3450
|
try {
|
|
3555
3451
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
3556
3452
|
}
|
|
3557
|
-
finally { if (
|
|
3453
|
+
finally { if (e_34) throw e_34.error; }
|
|
3558
3454
|
}
|
|
3559
3455
|
}
|
|
3560
3456
|
if (status === 201) {
|
|
@@ -3636,7 +3532,7 @@
|
|
|
3636
3532
|
}));
|
|
3637
3533
|
};
|
|
3638
3534
|
DesignAtomsServiceApiClient.prototype.processExtractBackground = function (response) {
|
|
3639
|
-
var
|
|
3535
|
+
var e_35, _a;
|
|
3640
3536
|
var _this = this;
|
|
3641
3537
|
var status = response.status;
|
|
3642
3538
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -3649,12 +3545,12 @@
|
|
|
3649
3545
|
_headers[key] = response.headers.get(key);
|
|
3650
3546
|
}
|
|
3651
3547
|
}
|
|
3652
|
-
catch (
|
|
3548
|
+
catch (e_35_1) { e_35 = { error: e_35_1 }; }
|
|
3653
3549
|
finally {
|
|
3654
3550
|
try {
|
|
3655
3551
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
3656
3552
|
}
|
|
3657
|
-
finally { if (
|
|
3553
|
+
finally { if (e_35) throw e_35.error; }
|
|
3658
3554
|
}
|
|
3659
3555
|
}
|
|
3660
3556
|
if (status === 200 || status === 206) {
|
|
@@ -3704,19 +3600,16 @@
|
|
|
3704
3600
|
/**
|
|
3705
3601
|
* Loads product (design model) from design file taken from storage
|
|
3706
3602
|
* @param id Design identifier
|
|
3707
|
-
* @param privateStorage (optional) If set to 'true' design will be taken from private storage
|
|
3708
3603
|
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
3709
3604
|
* @param tenantId (optional) Tenant identifier
|
|
3710
3605
|
* @return Success
|
|
3711
3606
|
*/
|
|
3712
|
-
DesignAtomsServiceApiClient.prototype.loadProduct = function (id,
|
|
3607
|
+
DesignAtomsServiceApiClient.prototype.loadProduct = function (id, privateStorageOwner, tenantId) {
|
|
3713
3608
|
var _this = this;
|
|
3714
3609
|
var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/model?";
|
|
3715
3610
|
if (id === undefined || id === null)
|
|
3716
3611
|
throw new Error("The parameter 'id' must be defined.");
|
|
3717
3612
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3718
|
-
if (privateStorage !== undefined && privateStorage !== null)
|
|
3719
|
-
url_ += "privateStorage=" + encodeURIComponent("" + privateStorage) + "&";
|
|
3720
3613
|
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
3721
3614
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3722
3615
|
if (tenantId === null)
|
|
@@ -3749,7 +3642,7 @@
|
|
|
3749
3642
|
}));
|
|
3750
3643
|
};
|
|
3751
3644
|
DesignAtomsServiceApiClient.prototype.processLoadProduct = function (response) {
|
|
3752
|
-
var
|
|
3645
|
+
var e_36, _a;
|
|
3753
3646
|
var _this = this;
|
|
3754
3647
|
var status = response.status;
|
|
3755
3648
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -3762,12 +3655,12 @@
|
|
|
3762
3655
|
_headers[key] = response.headers.get(key);
|
|
3763
3656
|
}
|
|
3764
3657
|
}
|
|
3765
|
-
catch (
|
|
3658
|
+
catch (e_36_1) { e_36 = { error: e_36_1 }; }
|
|
3766
3659
|
finally {
|
|
3767
3660
|
try {
|
|
3768
3661
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
3769
3662
|
}
|
|
3770
|
-
finally { if (
|
|
3663
|
+
finally { if (e_36) throw e_36.error; }
|
|
3771
3664
|
}
|
|
3772
3665
|
}
|
|
3773
3666
|
if (status === 200) {
|
|
@@ -3811,20 +3704,17 @@
|
|
|
3811
3704
|
/**
|
|
3812
3705
|
* Saves product (design model) to design file and updates design in storage.
|
|
3813
3706
|
* @param id Design identifier
|
|
3814
|
-
* @param privateStorage (optional) If set to 'true' design will be saved to private storage
|
|
3815
3707
|
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
3816
3708
|
* @param tenantId (optional) Tenant identifier
|
|
3817
3709
|
* @param body (optional) Serialized product description
|
|
3818
3710
|
* @return Success
|
|
3819
3711
|
*/
|
|
3820
|
-
DesignAtomsServiceApiClient.prototype.saveProduct = function (id,
|
|
3712
|
+
DesignAtomsServiceApiClient.prototype.saveProduct = function (id, privateStorageOwner, tenantId, body) {
|
|
3821
3713
|
var _this = this;
|
|
3822
3714
|
var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/model?";
|
|
3823
3715
|
if (id === undefined || id === null)
|
|
3824
3716
|
throw new Error("The parameter 'id' must be defined.");
|
|
3825
3717
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3826
|
-
if (privateStorage !== undefined && privateStorage !== null)
|
|
3827
|
-
url_ += "privateStorage=" + encodeURIComponent("" + privateStorage) + "&";
|
|
3828
3718
|
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
3829
3719
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3830
3720
|
if (tenantId === null)
|
|
@@ -3859,7 +3749,7 @@
|
|
|
3859
3749
|
}));
|
|
3860
3750
|
};
|
|
3861
3751
|
DesignAtomsServiceApiClient.prototype.processSaveProduct = function (response) {
|
|
3862
|
-
var
|
|
3752
|
+
var e_37, _a;
|
|
3863
3753
|
var _this = this;
|
|
3864
3754
|
var status = response.status;
|
|
3865
3755
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -3872,12 +3762,12 @@
|
|
|
3872
3762
|
_headers[key] = response.headers.get(key);
|
|
3873
3763
|
}
|
|
3874
3764
|
}
|
|
3875
|
-
catch (
|
|
3765
|
+
catch (e_37_1) { e_37 = { error: e_37_1 }; }
|
|
3876
3766
|
finally {
|
|
3877
3767
|
try {
|
|
3878
3768
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
3879
3769
|
}
|
|
3880
|
-
finally { if (
|
|
3770
|
+
finally { if (e_37) throw e_37.error; }
|
|
3881
3771
|
}
|
|
3882
3772
|
}
|
|
3883
3773
|
if (status === 200) {
|
|
@@ -3919,7 +3809,6 @@
|
|
|
3919
3809
|
/**
|
|
3920
3810
|
* Patches product (design model) in design file.
|
|
3921
3811
|
* @param id Design identifier.
|
|
3922
|
-
* @param privateStorage (optional) If set to 'true' design will be taken from private storage.
|
|
3923
3812
|
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
3924
3813
|
* @param tenantId (optional) Tenant identifier
|
|
3925
3814
|
* @param patchType (optional)
|
|
@@ -3930,14 +3819,12 @@
|
|
|
3930
3819
|
* @param replacePlaceholderItemContentInfo_sourceFile (optional)
|
|
3931
3820
|
* @return Success
|
|
3932
3821
|
*/
|
|
3933
|
-
DesignAtomsServiceApiClient.prototype.patchProduct = function (id,
|
|
3822
|
+
DesignAtomsServiceApiClient.prototype.patchProduct = function (id, privateStorageOwner, tenantId, patchType, replaceImageItemFileInfo_itemName, replaceImageItemFileInfo_sourceFile, replacePlaceholderItemContentInfo_placeholderItemName, replacePlaceholderItemContentInfo_newContentType, replacePlaceholderItemContentInfo_sourceFile) {
|
|
3934
3823
|
var _this = this;
|
|
3935
3824
|
var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/model?";
|
|
3936
3825
|
if (id === undefined || id === null)
|
|
3937
3826
|
throw new Error("The parameter 'id' must be defined.");
|
|
3938
3827
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3939
|
-
if (privateStorage !== undefined && privateStorage !== null)
|
|
3940
|
-
url_ += "privateStorage=" + encodeURIComponent("" + privateStorage) + "&";
|
|
3941
3828
|
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
3942
3829
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3943
3830
|
if (tenantId === null)
|
|
@@ -3986,7 +3873,7 @@
|
|
|
3986
3873
|
}));
|
|
3987
3874
|
};
|
|
3988
3875
|
DesignAtomsServiceApiClient.prototype.processPatchProduct = function (response) {
|
|
3989
|
-
var
|
|
3876
|
+
var e_38, _a;
|
|
3990
3877
|
var _this = this;
|
|
3991
3878
|
var status = response.status;
|
|
3992
3879
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -3999,12 +3886,12 @@
|
|
|
3999
3886
|
_headers[key] = response.headers.get(key);
|
|
4000
3887
|
}
|
|
4001
3888
|
}
|
|
4002
|
-
catch (
|
|
3889
|
+
catch (e_38_1) { e_38 = { error: e_38_1 }; }
|
|
4003
3890
|
finally {
|
|
4004
3891
|
try {
|
|
4005
3892
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4006
3893
|
}
|
|
4007
|
-
finally { if (
|
|
3894
|
+
finally { if (e_38) throw e_38.error; }
|
|
4008
3895
|
}
|
|
4009
3896
|
}
|
|
4010
3897
|
if (status === 200) {
|
|
@@ -4088,7 +3975,7 @@
|
|
|
4088
3975
|
}));
|
|
4089
3976
|
};
|
|
4090
3977
|
DesignAtomsServiceApiClient.prototype.processGetDesignParameters = function (response) {
|
|
4091
|
-
var
|
|
3978
|
+
var e_39, _a;
|
|
4092
3979
|
var _this = this;
|
|
4093
3980
|
var status = response.status;
|
|
4094
3981
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4101,12 +3988,12 @@
|
|
|
4101
3988
|
_headers[key] = response.headers.get(key);
|
|
4102
3989
|
}
|
|
4103
3990
|
}
|
|
4104
|
-
catch (
|
|
3991
|
+
catch (e_39_1) { e_39 = { error: e_39_1 }; }
|
|
4105
3992
|
finally {
|
|
4106
3993
|
try {
|
|
4107
3994
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4108
3995
|
}
|
|
4109
|
-
finally { if (
|
|
3996
|
+
finally { if (e_39) throw e_39.error; }
|
|
4110
3997
|
}
|
|
4111
3998
|
}
|
|
4112
3999
|
if (status === 200) {
|
|
@@ -4150,19 +4037,16 @@
|
|
|
4150
4037
|
/**
|
|
4151
4038
|
* Loads data schema from design file taken from storage
|
|
4152
4039
|
* @param id Design identifier
|
|
4153
|
-
* @param privateStorage (optional) If set to 'true' design will be taken from private storage
|
|
4154
4040
|
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
4155
4041
|
* @param tenantId (optional) Tenant identifier
|
|
4156
4042
|
* @return Success
|
|
4157
4043
|
*/
|
|
4158
|
-
DesignAtomsServiceApiClient.prototype.loadDataSchema = function (id,
|
|
4044
|
+
DesignAtomsServiceApiClient.prototype.loadDataSchema = function (id, privateStorageOwner, tenantId) {
|
|
4159
4045
|
var _this = this;
|
|
4160
4046
|
var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/schema?";
|
|
4161
4047
|
if (id === undefined || id === null)
|
|
4162
4048
|
throw new Error("The parameter 'id' must be defined.");
|
|
4163
4049
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4164
|
-
if (privateStorage !== undefined && privateStorage !== null)
|
|
4165
|
-
url_ += "privateStorage=" + encodeURIComponent("" + privateStorage) + "&";
|
|
4166
4050
|
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
4167
4051
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
4168
4052
|
if (tenantId === null)
|
|
@@ -4195,7 +4079,7 @@
|
|
|
4195
4079
|
}));
|
|
4196
4080
|
};
|
|
4197
4081
|
DesignAtomsServiceApiClient.prototype.processLoadDataSchema = function (response) {
|
|
4198
|
-
var
|
|
4082
|
+
var e_40, _a;
|
|
4199
4083
|
var _this = this;
|
|
4200
4084
|
var status = response.status;
|
|
4201
4085
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4208,12 +4092,12 @@
|
|
|
4208
4092
|
_headers[key] = response.headers.get(key);
|
|
4209
4093
|
}
|
|
4210
4094
|
}
|
|
4211
|
-
catch (
|
|
4095
|
+
catch (e_40_1) { e_40 = { error: e_40_1 }; }
|
|
4212
4096
|
finally {
|
|
4213
4097
|
try {
|
|
4214
4098
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4215
4099
|
}
|
|
4216
|
-
finally { if (
|
|
4100
|
+
finally { if (e_40) throw e_40.error; }
|
|
4217
4101
|
}
|
|
4218
4102
|
}
|
|
4219
4103
|
if (status === 200 || status === 206) {
|
|
@@ -4263,19 +4147,16 @@
|
|
|
4263
4147
|
/**
|
|
4264
4148
|
* Gets variable items information for design file taken from storage
|
|
4265
4149
|
* @param id Design identifier
|
|
4266
|
-
* @param privateStorage (optional) If set to 'true' design will be taken from private storage
|
|
4267
4150
|
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
4268
4151
|
* @param tenantId (optional) Tenant identifier
|
|
4269
4152
|
* @return Success
|
|
4270
4153
|
*/
|
|
4271
|
-
DesignAtomsServiceApiClient.prototype.getVariables = function (id,
|
|
4154
|
+
DesignAtomsServiceApiClient.prototype.getVariables = function (id, privateStorageOwner, tenantId) {
|
|
4272
4155
|
var _this = this;
|
|
4273
4156
|
var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/variables?";
|
|
4274
4157
|
if (id === undefined || id === null)
|
|
4275
4158
|
throw new Error("The parameter 'id' must be defined.");
|
|
4276
4159
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4277
|
-
if (privateStorage !== undefined && privateStorage !== null)
|
|
4278
|
-
url_ += "privateStorage=" + encodeURIComponent("" + privateStorage) + "&";
|
|
4279
4160
|
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
4280
4161
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
4281
4162
|
if (tenantId === null)
|
|
@@ -4308,7 +4189,7 @@
|
|
|
4308
4189
|
}));
|
|
4309
4190
|
};
|
|
4310
4191
|
DesignAtomsServiceApiClient.prototype.processGetVariables = function (response) {
|
|
4311
|
-
var
|
|
4192
|
+
var e_41, _a;
|
|
4312
4193
|
var _this = this;
|
|
4313
4194
|
var status = response.status;
|
|
4314
4195
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4321,12 +4202,12 @@
|
|
|
4321
4202
|
_headers[key] = response.headers.get(key);
|
|
4322
4203
|
}
|
|
4323
4204
|
}
|
|
4324
|
-
catch (
|
|
4205
|
+
catch (e_41_1) { e_41 = { error: e_41_1 }; }
|
|
4325
4206
|
finally {
|
|
4326
4207
|
try {
|
|
4327
4208
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4328
4209
|
}
|
|
4329
|
-
finally { if (
|
|
4210
|
+
finally { if (e_41) throw e_41.error; }
|
|
4330
4211
|
}
|
|
4331
4212
|
}
|
|
4332
4213
|
if (status === 200) {
|
|
@@ -4370,20 +4251,17 @@
|
|
|
4370
4251
|
/**
|
|
4371
4252
|
* Sets variable items values for design file taken from storage
|
|
4372
4253
|
* @param id Design identifier
|
|
4373
|
-
* @param privateStorage (optional) If set to 'true' design will be taken from private storage
|
|
4374
4254
|
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
4375
4255
|
* @param tenantId (optional) Tenant identifier
|
|
4376
4256
|
* @param body (optional) Design variable values
|
|
4377
4257
|
* @return Success
|
|
4378
4258
|
*/
|
|
4379
|
-
DesignAtomsServiceApiClient.prototype.setVariables = function (id,
|
|
4259
|
+
DesignAtomsServiceApiClient.prototype.setVariables = function (id, privateStorageOwner, tenantId, body) {
|
|
4380
4260
|
var _this = this;
|
|
4381
4261
|
var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/variables?";
|
|
4382
4262
|
if (id === undefined || id === null)
|
|
4383
4263
|
throw new Error("The parameter 'id' must be defined.");
|
|
4384
4264
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4385
|
-
if (privateStorage !== undefined && privateStorage !== null)
|
|
4386
|
-
url_ += "privateStorage=" + encodeURIComponent("" + privateStorage) + "&";
|
|
4387
4265
|
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
4388
4266
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
4389
4267
|
if (tenantId === null)
|
|
@@ -4418,7 +4296,7 @@
|
|
|
4418
4296
|
}));
|
|
4419
4297
|
};
|
|
4420
4298
|
DesignAtomsServiceApiClient.prototype.processSetVariables = function (response) {
|
|
4421
|
-
var
|
|
4299
|
+
var e_42, _a;
|
|
4422
4300
|
var _this = this;
|
|
4423
4301
|
var status = response.status;
|
|
4424
4302
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4431,12 +4309,12 @@
|
|
|
4431
4309
|
_headers[key] = response.headers.get(key);
|
|
4432
4310
|
}
|
|
4433
4311
|
}
|
|
4434
|
-
catch (
|
|
4312
|
+
catch (e_42_1) { e_42 = { error: e_42_1 }; }
|
|
4435
4313
|
finally {
|
|
4436
4314
|
try {
|
|
4437
4315
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4438
4316
|
}
|
|
4439
|
-
finally { if (
|
|
4317
|
+
finally { if (e_42) throw e_42.error; }
|
|
4440
4318
|
}
|
|
4441
4319
|
}
|
|
4442
4320
|
if (status === 200) {
|
|
@@ -4485,19 +4363,16 @@
|
|
|
4485
4363
|
/**
|
|
4486
4364
|
* Loads variable data printing information from design file taken from storage
|
|
4487
4365
|
* @param id Design identifier
|
|
4488
|
-
* @param privateStorage (optional) If set to 'true' design will be taken from private storage
|
|
4489
4366
|
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
4490
4367
|
* @param tenantId (optional) Tenant identifier
|
|
4491
4368
|
* @return Success
|
|
4492
4369
|
*/
|
|
4493
|
-
DesignAtomsServiceApiClient.prototype.loadVdpData = function (id,
|
|
4370
|
+
DesignAtomsServiceApiClient.prototype.loadVdpData = function (id, privateStorageOwner, tenantId) {
|
|
4494
4371
|
var _this = this;
|
|
4495
|
-
var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/
|
|
4372
|
+
var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/vdp-data?";
|
|
4496
4373
|
if (id === undefined || id === null)
|
|
4497
4374
|
throw new Error("The parameter 'id' must be defined.");
|
|
4498
4375
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4499
|
-
if (privateStorage !== undefined && privateStorage !== null)
|
|
4500
|
-
url_ += "privateStorage=" + encodeURIComponent("" + privateStorage) + "&";
|
|
4501
4376
|
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
4502
4377
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
4503
4378
|
if (tenantId === null)
|
|
@@ -4530,7 +4405,7 @@
|
|
|
4530
4405
|
}));
|
|
4531
4406
|
};
|
|
4532
4407
|
DesignAtomsServiceApiClient.prototype.processLoadVdpData = function (response) {
|
|
4533
|
-
var
|
|
4408
|
+
var e_43, _a;
|
|
4534
4409
|
var _this = this;
|
|
4535
4410
|
var status = response.status;
|
|
4536
4411
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4543,12 +4418,12 @@
|
|
|
4543
4418
|
_headers[key] = response.headers.get(key);
|
|
4544
4419
|
}
|
|
4545
4420
|
}
|
|
4546
|
-
catch (
|
|
4421
|
+
catch (e_43_1) { e_43 = { error: e_43_1 }; }
|
|
4547
4422
|
finally {
|
|
4548
4423
|
try {
|
|
4549
4424
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4550
4425
|
}
|
|
4551
|
-
finally { if (
|
|
4426
|
+
finally { if (e_43) throw e_43.error; }
|
|
4552
4427
|
}
|
|
4553
4428
|
}
|
|
4554
4429
|
if (status === 200) {
|
|
@@ -4599,20 +4474,17 @@
|
|
|
4599
4474
|
/**
|
|
4600
4475
|
* Saves variable data printing information to design file and updates design in storage.
|
|
4601
4476
|
* @param id Design identifier
|
|
4602
|
-
* @param privateStorage (optional) If set to 'true' design will be taken from private storage
|
|
4603
4477
|
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
4604
4478
|
* @param tenantId (optional) Tenant identifier
|
|
4605
4479
|
* @param body (optional) Serialized vdp data
|
|
4606
4480
|
* @return Success
|
|
4607
4481
|
*/
|
|
4608
|
-
DesignAtomsServiceApiClient.prototype.saveVdpData = function (id,
|
|
4482
|
+
DesignAtomsServiceApiClient.prototype.saveVdpData = function (id, privateStorageOwner, tenantId, body) {
|
|
4609
4483
|
var _this = this;
|
|
4610
|
-
var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/
|
|
4484
|
+
var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/vdp-data?";
|
|
4611
4485
|
if (id === undefined || id === null)
|
|
4612
4486
|
throw new Error("The parameter 'id' must be defined.");
|
|
4613
4487
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4614
|
-
if (privateStorage !== undefined && privateStorage !== null)
|
|
4615
|
-
url_ += "privateStorage=" + encodeURIComponent("" + privateStorage) + "&";
|
|
4616
4488
|
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
4617
4489
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
4618
4490
|
if (tenantId === null)
|
|
@@ -4647,7 +4519,7 @@
|
|
|
4647
4519
|
}));
|
|
4648
4520
|
};
|
|
4649
4521
|
DesignAtomsServiceApiClient.prototype.processSaveVdpData = function (response) {
|
|
4650
|
-
var
|
|
4522
|
+
var e_44, _a;
|
|
4651
4523
|
var _this = this;
|
|
4652
4524
|
var status = response.status;
|
|
4653
4525
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4660,12 +4532,12 @@
|
|
|
4660
4532
|
_headers[key] = response.headers.get(key);
|
|
4661
4533
|
}
|
|
4662
4534
|
}
|
|
4663
|
-
catch (
|
|
4535
|
+
catch (e_44_1) { e_44 = { error: e_44_1 }; }
|
|
4664
4536
|
finally {
|
|
4665
4537
|
try {
|
|
4666
4538
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4667
4539
|
}
|
|
4668
|
-
finally { if (
|
|
4540
|
+
finally { if (e_44) throw e_44.error; }
|
|
4669
4541
|
}
|
|
4670
4542
|
}
|
|
4671
4543
|
if (status === 200) {
|
|
@@ -4705,21 +4577,18 @@
|
|
|
4705
4577
|
return rxjs.of(null);
|
|
4706
4578
|
};
|
|
4707
4579
|
/**
|
|
4708
|
-
* Deletes variable data printing
|
|
4580
|
+
* Deletes variable data printing information from design file and updates design in storage.
|
|
4709
4581
|
* @param id Design identifier
|
|
4710
|
-
* @param privateStorage (optional) If set to 'true' design will be taken from private storage
|
|
4711
4582
|
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
4712
4583
|
* @param tenantId (optional) Tenant identifier
|
|
4713
4584
|
* @return Success
|
|
4714
4585
|
*/
|
|
4715
|
-
DesignAtomsServiceApiClient.prototype.deleteVdpData = function (id,
|
|
4586
|
+
DesignAtomsServiceApiClient.prototype.deleteVdpData = function (id, privateStorageOwner, tenantId) {
|
|
4716
4587
|
var _this = this;
|
|
4717
|
-
var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/
|
|
4588
|
+
var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/vdp-data?";
|
|
4718
4589
|
if (id === undefined || id === null)
|
|
4719
4590
|
throw new Error("The parameter 'id' must be defined.");
|
|
4720
4591
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4721
|
-
if (privateStorage !== undefined && privateStorage !== null)
|
|
4722
|
-
url_ += "privateStorage=" + encodeURIComponent("" + privateStorage) + "&";
|
|
4723
4592
|
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
4724
4593
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
4725
4594
|
if (tenantId === null)
|
|
@@ -4750,7 +4619,7 @@
|
|
|
4750
4619
|
}));
|
|
4751
4620
|
};
|
|
4752
4621
|
DesignAtomsServiceApiClient.prototype.processDeleteVdpData = function (response) {
|
|
4753
|
-
var
|
|
4622
|
+
var e_45, _a;
|
|
4754
4623
|
var _this = this;
|
|
4755
4624
|
var status = response.status;
|
|
4756
4625
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4763,12 +4632,12 @@
|
|
|
4763
4632
|
_headers[key] = response.headers.get(key);
|
|
4764
4633
|
}
|
|
4765
4634
|
}
|
|
4766
|
-
catch (
|
|
4635
|
+
catch (e_45_1) { e_45 = { error: e_45_1 }; }
|
|
4767
4636
|
finally {
|
|
4768
4637
|
try {
|
|
4769
4638
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4770
4639
|
}
|
|
4771
|
-
finally { if (
|
|
4640
|
+
finally { if (e_45) throw e_45.error; }
|
|
4772
4641
|
}
|
|
4773
4642
|
}
|
|
4774
4643
|
if (status === 200) {
|
|
@@ -4808,14 +4677,125 @@
|
|
|
4808
4677
|
return rxjs.of(null);
|
|
4809
4678
|
};
|
|
4810
4679
|
/**
|
|
4811
|
-
*
|
|
4680
|
+
* Loads product (design model) from resource file taken from storage
|
|
4681
|
+
* @param id Resource identifier
|
|
4682
|
+
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
4812
4683
|
* @param tenantId (optional) Tenant identifier
|
|
4813
|
-
* @param body (optional) Items to flatten.
|
|
4814
4684
|
* @return Success
|
|
4815
4685
|
*/
|
|
4816
|
-
DesignAtomsServiceApiClient.prototype.
|
|
4686
|
+
DesignAtomsServiceApiClient.prototype.loadProductFromResource = function (id, privateStorageOwner, tenantId) {
|
|
4687
|
+
var _this = this;
|
|
4688
|
+
var url_ = this.baseUrl + "/api/atoms/v1/designs/from-resource/{id}/model?";
|
|
4689
|
+
if (id === undefined || id === null)
|
|
4690
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
4691
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4692
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
4693
|
+
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
4694
|
+
if (tenantId === null)
|
|
4695
|
+
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
4696
|
+
else if (tenantId !== undefined)
|
|
4697
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
4698
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
4699
|
+
var options_ = {
|
|
4700
|
+
observe: "response",
|
|
4701
|
+
responseType: "blob",
|
|
4702
|
+
headers: new i1.HttpHeaders({
|
|
4703
|
+
"Accept": "application/json"
|
|
4704
|
+
})
|
|
4705
|
+
};
|
|
4706
|
+
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
4707
|
+
return _this.http.request("get", url_, transformedOptions_);
|
|
4708
|
+
})).pipe(operators.mergeMap(function (response_) {
|
|
4709
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processLoadProductFromResource(r); });
|
|
4710
|
+
})).pipe(operators.catchError(function (response_) {
|
|
4711
|
+
if (response_ instanceof i1.HttpResponseBase) {
|
|
4712
|
+
try {
|
|
4713
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processLoadProductFromResource(r); });
|
|
4714
|
+
}
|
|
4715
|
+
catch (e) {
|
|
4716
|
+
return rxjs.throwError(e);
|
|
4717
|
+
}
|
|
4718
|
+
}
|
|
4719
|
+
else
|
|
4720
|
+
return rxjs.throwError(response_);
|
|
4721
|
+
}));
|
|
4722
|
+
};
|
|
4723
|
+
DesignAtomsServiceApiClient.prototype.processLoadProductFromResource = function (response) {
|
|
4724
|
+
var e_46, _a;
|
|
4725
|
+
var _this = this;
|
|
4726
|
+
var status = response.status;
|
|
4727
|
+
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
4728
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
4729
|
+
var _headers = {};
|
|
4730
|
+
if (response.headers) {
|
|
4731
|
+
try {
|
|
4732
|
+
for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
4733
|
+
var key = _c.value;
|
|
4734
|
+
_headers[key] = response.headers.get(key);
|
|
4735
|
+
}
|
|
4736
|
+
}
|
|
4737
|
+
catch (e_46_1) { e_46 = { error: e_46_1 }; }
|
|
4738
|
+
finally {
|
|
4739
|
+
try {
|
|
4740
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4741
|
+
}
|
|
4742
|
+
finally { if (e_46) throw e_46.error; }
|
|
4743
|
+
}
|
|
4744
|
+
}
|
|
4745
|
+
if (status === 200) {
|
|
4746
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4747
|
+
var result200 = null;
|
|
4748
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4749
|
+
return rxjs.of(result200);
|
|
4750
|
+
}));
|
|
4751
|
+
}
|
|
4752
|
+
else if (status === 404) {
|
|
4753
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4754
|
+
var result404 = null;
|
|
4755
|
+
result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4756
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
4757
|
+
}));
|
|
4758
|
+
}
|
|
4759
|
+
else if (status === 422) {
|
|
4760
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4761
|
+
var result422 = null;
|
|
4762
|
+
result422 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4763
|
+
return throwException("Client Error", status, _responseText, _headers, result422);
|
|
4764
|
+
}));
|
|
4765
|
+
}
|
|
4766
|
+
else if (status === 401) {
|
|
4767
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4768
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
4769
|
+
}));
|
|
4770
|
+
}
|
|
4771
|
+
else if (status === 403) {
|
|
4772
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4773
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
4774
|
+
}));
|
|
4775
|
+
}
|
|
4776
|
+
else if (status === 500) {
|
|
4777
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4778
|
+
var result500 = null;
|
|
4779
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4780
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4781
|
+
}));
|
|
4782
|
+
}
|
|
4783
|
+
else if (status !== 200 && status !== 204) {
|
|
4784
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4785
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4786
|
+
}));
|
|
4787
|
+
}
|
|
4788
|
+
return rxjs.of(null);
|
|
4789
|
+
};
|
|
4790
|
+
/**
|
|
4791
|
+
* Converts colors
|
|
4792
|
+
* @param tenantId (optional) Tenant identifier
|
|
4793
|
+
* @param body (optional) Convert colors operation parameters
|
|
4794
|
+
* @return Success
|
|
4795
|
+
*/
|
|
4796
|
+
DesignAtomsServiceApiClient.prototype.convertColors = function (tenantId, body) {
|
|
4817
4797
|
var _this = this;
|
|
4818
|
-
var url_ = this.baseUrl + "/api/atoms/v1/
|
|
4798
|
+
var url_ = this.baseUrl + "/api/atoms/v1/designs/model/convert-colors?";
|
|
4819
4799
|
if (tenantId === null)
|
|
4820
4800
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
4821
4801
|
else if (tenantId !== undefined)
|
|
@@ -4834,11 +4814,11 @@
|
|
|
4834
4814
|
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
4835
4815
|
return _this.http.request("post", url_, transformedOptions_);
|
|
4836
4816
|
})).pipe(operators.mergeMap(function (response_) {
|
|
4837
|
-
return _this.transformResult(url_, response_, function (r) { return _this.
|
|
4817
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processConvertColors(r); });
|
|
4838
4818
|
})).pipe(operators.catchError(function (response_) {
|
|
4839
4819
|
if (response_ instanceof i1.HttpResponseBase) {
|
|
4840
4820
|
try {
|
|
4841
|
-
return _this.transformResult(url_, response_, function (r) { return _this.
|
|
4821
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processConvertColors(r); });
|
|
4842
4822
|
}
|
|
4843
4823
|
catch (e) {
|
|
4844
4824
|
return rxjs.throwError(e);
|
|
@@ -4848,7 +4828,7 @@
|
|
|
4848
4828
|
return rxjs.throwError(response_);
|
|
4849
4829
|
}));
|
|
4850
4830
|
};
|
|
4851
|
-
DesignAtomsServiceApiClient.prototype.
|
|
4831
|
+
DesignAtomsServiceApiClient.prototype.processConvertColors = function (response) {
|
|
4852
4832
|
var e_47, _a;
|
|
4853
4833
|
var _this = this;
|
|
4854
4834
|
var status = response.status;
|
|
@@ -4877,6 +4857,13 @@
|
|
|
4877
4857
|
return rxjs.of(result200);
|
|
4878
4858
|
}));
|
|
4879
4859
|
}
|
|
4860
|
+
else if (status === 404) {
|
|
4861
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4862
|
+
var result404 = null;
|
|
4863
|
+
result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4864
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
4865
|
+
}));
|
|
4866
|
+
}
|
|
4880
4867
|
else if (status === 401) {
|
|
4881
4868
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4882
4869
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -4913,7 +4900,7 @@
|
|
|
4913
4900
|
*/
|
|
4914
4901
|
DesignAtomsServiceApiClient.prototype.createItem = function (itemType, tenantId, sourceType, sourceId, sourceOwnerId, sourceFile) {
|
|
4915
4902
|
var _this = this;
|
|
4916
|
-
var url_ = this.baseUrl + "/api/atoms/v1/
|
|
4903
|
+
var url_ = this.baseUrl + "/api/atoms/v1/designs/model/items?";
|
|
4917
4904
|
if (itemType !== undefined && itemType !== null)
|
|
4918
4905
|
url_ += "itemType=" + encodeURIComponent("" + itemType) + "&";
|
|
4919
4906
|
if (tenantId === null)
|
|
@@ -5023,7 +5010,7 @@
|
|
|
5023
5010
|
*/
|
|
5024
5011
|
DesignAtomsServiceApiClient.prototype.extractItemImage = function (tenantId, body) {
|
|
5025
5012
|
var _this = this;
|
|
5026
|
-
var url_ = this.baseUrl + "/api/atoms/v1/
|
|
5013
|
+
var url_ = this.baseUrl + "/api/atoms/v1/designs/model/items/extract-image?";
|
|
5027
5014
|
if (tenantId === null)
|
|
5028
5015
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
5029
5016
|
else if (tenantId !== undefined)
|
|
@@ -5109,40 +5096,37 @@
|
|
|
5109
5096
|
return rxjs.of(null);
|
|
5110
5097
|
};
|
|
5111
5098
|
/**
|
|
5112
|
-
*
|
|
5113
|
-
* @param designId (optional) Public design ID.
|
|
5114
|
-
* @param privateDesignId (optional) Private design ID.
|
|
5115
|
-
* @param privateStorageOwner (optional) Private storage owner ID.
|
|
5099
|
+
* Flatten items.
|
|
5116
5100
|
* @param tenantId (optional) Tenant identifier
|
|
5101
|
+
* @param body (optional) Items to flatten.
|
|
5117
5102
|
* @return Success
|
|
5118
5103
|
*/
|
|
5119
|
-
DesignAtomsServiceApiClient.prototype.
|
|
5104
|
+
DesignAtomsServiceApiClient.prototype.flattenItems = function (tenantId, body) {
|
|
5120
5105
|
var _this = this;
|
|
5121
|
-
var url_ = this.baseUrl + "/api/atoms/v1/
|
|
5122
|
-
if (designId !== undefined && designId !== null)
|
|
5123
|
-
url_ += "designId=" + encodeURIComponent("" + designId) + "&";
|
|
5124
|
-
if (privateDesignId !== undefined && privateDesignId !== null)
|
|
5125
|
-
url_ += "privateDesignId=" + encodeURIComponent("" + privateDesignId) + "&";
|
|
5126
|
-
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
5127
|
-
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
5106
|
+
var url_ = this.baseUrl + "/api/atoms/v1/designs/model/items/flatten?";
|
|
5128
5107
|
if (tenantId === null)
|
|
5129
5108
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
5130
5109
|
else if (tenantId !== undefined)
|
|
5131
5110
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
5132
5111
|
url_ = url_.replace(/[?&]$/, "");
|
|
5112
|
+
var content_ = JSON.stringify(body);
|
|
5133
5113
|
var options_ = {
|
|
5114
|
+
body: content_,
|
|
5134
5115
|
observe: "response",
|
|
5135
5116
|
responseType: "blob",
|
|
5136
|
-
headers: new i1.HttpHeaders({
|
|
5117
|
+
headers: new i1.HttpHeaders({
|
|
5118
|
+
"Content-Type": "application/json",
|
|
5119
|
+
"Accept": "application/json"
|
|
5120
|
+
})
|
|
5137
5121
|
};
|
|
5138
5122
|
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
5139
5123
|
return _this.http.request("post", url_, transformedOptions_);
|
|
5140
5124
|
})).pipe(operators.mergeMap(function (response_) {
|
|
5141
|
-
return _this.transformResult(url_, response_, function (r) { return _this.
|
|
5125
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processFlattenItems(r); });
|
|
5142
5126
|
})).pipe(operators.catchError(function (response_) {
|
|
5143
5127
|
if (response_ instanceof i1.HttpResponseBase) {
|
|
5144
5128
|
try {
|
|
5145
|
-
return _this.transformResult(url_, response_, function (r) { return _this.
|
|
5129
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processFlattenItems(r); });
|
|
5146
5130
|
}
|
|
5147
5131
|
catch (e) {
|
|
5148
5132
|
return rxjs.throwError(e);
|
|
@@ -5152,7 +5136,7 @@
|
|
|
5152
5136
|
return rxjs.throwError(response_);
|
|
5153
5137
|
}));
|
|
5154
5138
|
};
|
|
5155
|
-
DesignAtomsServiceApiClient.prototype.
|
|
5139
|
+
DesignAtomsServiceApiClient.prototype.processFlattenItems = function (response) {
|
|
5156
5140
|
var e_50, _a;
|
|
5157
5141
|
var _this = this;
|
|
5158
5142
|
var status = response.status;
|
|
@@ -5174,9 +5158,11 @@
|
|
|
5174
5158
|
finally { if (e_50) throw e_50.error; }
|
|
5175
5159
|
}
|
|
5176
5160
|
}
|
|
5177
|
-
if (status ===
|
|
5161
|
+
if (status === 200) {
|
|
5178
5162
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5179
|
-
|
|
5163
|
+
var result200 = null;
|
|
5164
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5165
|
+
return rxjs.of(result200);
|
|
5180
5166
|
}));
|
|
5181
5167
|
}
|
|
5182
5168
|
else if (status === 401) {
|
|
@@ -5204,40 +5190,40 @@
|
|
|
5204
5190
|
return rxjs.of(null);
|
|
5205
5191
|
};
|
|
5206
5192
|
/**
|
|
5207
|
-
*
|
|
5208
|
-
* @param
|
|
5209
|
-
* @param privateDesignId (optional) Private design ID.
|
|
5210
|
-
* @param privateStorageOwner (optional) Private storage owner ID.
|
|
5193
|
+
* Render product proof image with specified parameters.
|
|
5194
|
+
* @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied (default value is 'false').
|
|
5211
5195
|
* @param tenantId (optional) Tenant identifier
|
|
5196
|
+
* @param body (optional) Preview parameters.
|
|
5212
5197
|
* @return Success
|
|
5213
5198
|
*/
|
|
5214
|
-
DesignAtomsServiceApiClient.prototype.
|
|
5199
|
+
DesignAtomsServiceApiClient.prototype.renderProduct = function (attachment, tenantId, body) {
|
|
5215
5200
|
var _this = this;
|
|
5216
|
-
var url_ = this.baseUrl + "/api/atoms/v1/
|
|
5217
|
-
if (
|
|
5218
|
-
url_ += "
|
|
5219
|
-
if (privateDesignId !== undefined && privateDesignId !== null)
|
|
5220
|
-
url_ += "privateDesignId=" + encodeURIComponent("" + privateDesignId) + "&";
|
|
5221
|
-
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
5222
|
-
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
5201
|
+
var url_ = this.baseUrl + "/api/atoms/v1/designs/model/render-proof?";
|
|
5202
|
+
if (attachment !== undefined && attachment !== null)
|
|
5203
|
+
url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
|
|
5223
5204
|
if (tenantId === null)
|
|
5224
5205
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
5225
5206
|
else if (tenantId !== undefined)
|
|
5226
5207
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
5227
5208
|
url_ = url_.replace(/[?&]$/, "");
|
|
5209
|
+
var content_ = JSON.stringify(body);
|
|
5228
5210
|
var options_ = {
|
|
5211
|
+
body: content_,
|
|
5229
5212
|
observe: "response",
|
|
5230
5213
|
responseType: "blob",
|
|
5231
|
-
headers: new i1.HttpHeaders({
|
|
5214
|
+
headers: new i1.HttpHeaders({
|
|
5215
|
+
"Content-Type": "application/json",
|
|
5216
|
+
"Accept": "application/octet-stream"
|
|
5217
|
+
})
|
|
5232
5218
|
};
|
|
5233
5219
|
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
5234
5220
|
return _this.http.request("post", url_, transformedOptions_);
|
|
5235
5221
|
})).pipe(operators.mergeMap(function (response_) {
|
|
5236
|
-
return _this.transformResult(url_, response_, function (r) { return _this.
|
|
5222
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processRenderProduct(r); });
|
|
5237
5223
|
})).pipe(operators.catchError(function (response_) {
|
|
5238
5224
|
if (response_ instanceof i1.HttpResponseBase) {
|
|
5239
5225
|
try {
|
|
5240
|
-
return _this.transformResult(url_, response_, function (r) { return _this.
|
|
5226
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processRenderProduct(r); });
|
|
5241
5227
|
}
|
|
5242
5228
|
catch (e) {
|
|
5243
5229
|
return rxjs.throwError(e);
|
|
@@ -5247,7 +5233,7 @@
|
|
|
5247
5233
|
return rxjs.throwError(response_);
|
|
5248
5234
|
}));
|
|
5249
5235
|
};
|
|
5250
|
-
DesignAtomsServiceApiClient.prototype.
|
|
5236
|
+
DesignAtomsServiceApiClient.prototype.processRenderProduct = function (response) {
|
|
5251
5237
|
var e_51, _a;
|
|
5252
5238
|
var _this = this;
|
|
5253
5239
|
var status = response.status;
|
|
@@ -5269,10 +5255,11 @@
|
|
|
5269
5255
|
finally { if (e_51) throw e_51.error; }
|
|
5270
5256
|
}
|
|
5271
5257
|
}
|
|
5272
|
-
if (status ===
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
|
|
5258
|
+
if (status === 200 || status === 206) {
|
|
5259
|
+
var contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
|
|
5260
|
+
var fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
|
|
5261
|
+
var fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
|
|
5262
|
+
return rxjs.of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
|
|
5276
5263
|
}
|
|
5277
5264
|
else if (status === 401) {
|
|
5278
5265
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
@@ -5308,7 +5295,7 @@
|
|
|
5308
5295
|
*/
|
|
5309
5296
|
DesignAtomsServiceApiClient.prototype.renderDesignPreview = function (attachment, tenantId, body) {
|
|
5310
5297
|
var _this = this;
|
|
5311
|
-
var url_ = this.baseUrl + "/api/atoms/v1/render-
|
|
5298
|
+
var url_ = this.baseUrl + "/api/atoms/v1/designs/render-preview?";
|
|
5312
5299
|
if (attachment !== undefined && attachment !== null)
|
|
5313
5300
|
url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
|
|
5314
5301
|
if (tenantId === null)
|
|
@@ -5403,7 +5390,7 @@
|
|
|
5403
5390
|
*/
|
|
5404
5391
|
DesignAtomsServiceApiClient.prototype.renderDesignPreviewToResource = function (tenantId, body) {
|
|
5405
5392
|
var _this = this;
|
|
5406
|
-
var url_ = this.baseUrl + "/api/atoms/v1/render-
|
|
5393
|
+
var url_ = this.baseUrl + "/api/atoms/v1/designs/render-preview/to-resource?";
|
|
5407
5394
|
if (tenantId === null)
|
|
5408
5395
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
5409
5396
|
else if (tenantId !== undefined)
|
|
@@ -5499,7 +5486,7 @@
|
|
|
5499
5486
|
*/
|
|
5500
5487
|
DesignAtomsServiceApiClient.prototype.renderDesignProof = function (attachment, tenantId, body) {
|
|
5501
5488
|
var _this = this;
|
|
5502
|
-
var url_ = this.baseUrl + "/api/atoms/v1/render-
|
|
5489
|
+
var url_ = this.baseUrl + "/api/atoms/v1/designs/render-proof?";
|
|
5503
5490
|
if (attachment !== undefined && attachment !== null)
|
|
5504
5491
|
url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
|
|
5505
5492
|
if (tenantId === null)
|
|
@@ -5594,7 +5581,7 @@
|
|
|
5594
5581
|
*/
|
|
5595
5582
|
DesignAtomsServiceApiClient.prototype.renderDesignProofToResource = function (tenantId, body) {
|
|
5596
5583
|
var _this = this;
|
|
5597
|
-
var url_ = this.baseUrl + "/api/atoms/v1/render-
|
|
5584
|
+
var url_ = this.baseUrl + "/api/atoms/v1/designs/render-proof/to-resource?";
|
|
5598
5585
|
if (tenantId === null)
|
|
5599
5586
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
5600
5587
|
else if (tenantId !== undefined)
|
|
@@ -5681,40 +5668,41 @@
|
|
|
5681
5668
|
return rxjs.of(null);
|
|
5682
5669
|
};
|
|
5683
5670
|
/**
|
|
5684
|
-
*
|
|
5685
|
-
* @param
|
|
5671
|
+
* Creates a private design from a public design.
|
|
5672
|
+
* @param designId (optional) Public design ID.
|
|
5673
|
+
* @param privateDesignId (optional) Private design ID.
|
|
5674
|
+
* @param privateStorageOwner (optional) Private storage owner ID.
|
|
5686
5675
|
* @param tenantId (optional) Tenant identifier
|
|
5687
|
-
* @param body (optional) Preview parameters.
|
|
5688
5676
|
* @return Success
|
|
5677
|
+
* @deprecated
|
|
5689
5678
|
*/
|
|
5690
|
-
DesignAtomsServiceApiClient.prototype.
|
|
5679
|
+
DesignAtomsServiceApiClient.prototype.createPrivateDesignFromDesign = function (designId, privateDesignId, privateStorageOwner, tenantId) {
|
|
5691
5680
|
var _this = this;
|
|
5692
|
-
var url_ = this.baseUrl + "/api/atoms/v1/
|
|
5693
|
-
if (
|
|
5694
|
-
url_ += "
|
|
5681
|
+
var url_ = this.baseUrl + "/api/atoms/v1/private-designs/from-design?";
|
|
5682
|
+
if (designId !== undefined && designId !== null)
|
|
5683
|
+
url_ += "designId=" + encodeURIComponent("" + designId) + "&";
|
|
5684
|
+
if (privateDesignId !== undefined && privateDesignId !== null)
|
|
5685
|
+
url_ += "privateDesignId=" + encodeURIComponent("" + privateDesignId) + "&";
|
|
5686
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
5687
|
+
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
5695
5688
|
if (tenantId === null)
|
|
5696
5689
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
5697
5690
|
else if (tenantId !== undefined)
|
|
5698
5691
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
5699
5692
|
url_ = url_.replace(/[?&]$/, "");
|
|
5700
|
-
var content_ = JSON.stringify(body);
|
|
5701
5693
|
var options_ = {
|
|
5702
|
-
body: content_,
|
|
5703
5694
|
observe: "response",
|
|
5704
5695
|
responseType: "blob",
|
|
5705
|
-
headers: new i1.HttpHeaders({
|
|
5706
|
-
"Content-Type": "application/json",
|
|
5707
|
-
"Accept": "application/octet-stream"
|
|
5708
|
-
})
|
|
5696
|
+
headers: new i1.HttpHeaders({})
|
|
5709
5697
|
};
|
|
5710
5698
|
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
5711
5699
|
return _this.http.request("post", url_, transformedOptions_);
|
|
5712
5700
|
})).pipe(operators.mergeMap(function (response_) {
|
|
5713
|
-
return _this.transformResult(url_, response_, function (r) { return _this.
|
|
5701
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processCreatePrivateDesignFromDesign(r); });
|
|
5714
5702
|
})).pipe(operators.catchError(function (response_) {
|
|
5715
5703
|
if (response_ instanceof i1.HttpResponseBase) {
|
|
5716
5704
|
try {
|
|
5717
|
-
return _this.transformResult(url_, response_, function (r) { return _this.
|
|
5705
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processCreatePrivateDesignFromDesign(r); });
|
|
5718
5706
|
}
|
|
5719
5707
|
catch (e) {
|
|
5720
5708
|
return rxjs.throwError(e);
|
|
@@ -5724,7 +5712,7 @@
|
|
|
5724
5712
|
return rxjs.throwError(response_);
|
|
5725
5713
|
}));
|
|
5726
5714
|
};
|
|
5727
|
-
DesignAtomsServiceApiClient.prototype.
|
|
5715
|
+
DesignAtomsServiceApiClient.prototype.processCreatePrivateDesignFromDesign = function (response) {
|
|
5728
5716
|
var e_56, _a;
|
|
5729
5717
|
var _this = this;
|
|
5730
5718
|
var status = response.status;
|
|
@@ -5746,11 +5734,10 @@
|
|
|
5746
5734
|
finally { if (e_56) throw e_56.error; }
|
|
5747
5735
|
}
|
|
5748
5736
|
}
|
|
5749
|
-
if (status ===
|
|
5750
|
-
|
|
5751
|
-
|
|
5752
|
-
|
|
5753
|
-
return rxjs.of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
|
|
5737
|
+
if (status === 201) {
|
|
5738
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5739
|
+
return rxjs.of(null);
|
|
5740
|
+
}));
|
|
5754
5741
|
}
|
|
5755
5742
|
else if (status === 401) {
|
|
5756
5743
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
@@ -5777,21 +5764,21 @@
|
|
|
5777
5764
|
return rxjs.of(null);
|
|
5778
5765
|
};
|
|
5779
5766
|
/**
|
|
5780
|
-
*
|
|
5781
|
-
* @param
|
|
5782
|
-
* @param
|
|
5783
|
-
* @param privateStorageOwner (optional) Private storage owner
|
|
5767
|
+
* Creates a private design from a public resource.
|
|
5768
|
+
* @param resourceId (optional) Resource ID.
|
|
5769
|
+
* @param privateDesignId (optional) Private design ID.
|
|
5770
|
+
* @param privateStorageOwner (optional) Private storage owner ID.
|
|
5784
5771
|
* @param tenantId (optional) Tenant identifier
|
|
5785
5772
|
* @return Success
|
|
5773
|
+
* @deprecated
|
|
5786
5774
|
*/
|
|
5787
|
-
DesignAtomsServiceApiClient.prototype.
|
|
5775
|
+
DesignAtomsServiceApiClient.prototype.createPrivateDesignFromResource = function (resourceId, privateDesignId, privateStorageOwner, tenantId) {
|
|
5788
5776
|
var _this = this;
|
|
5789
|
-
var url_ = this.baseUrl + "/api/atoms/v1/
|
|
5790
|
-
if (
|
|
5791
|
-
|
|
5792
|
-
|
|
5793
|
-
|
|
5794
|
-
url_ += "privateStorage=" + encodeURIComponent("" + privateStorage) + "&";
|
|
5777
|
+
var url_ = this.baseUrl + "/api/atoms/v1/private-designs/from-resource?";
|
|
5778
|
+
if (resourceId !== undefined && resourceId !== null)
|
|
5779
|
+
url_ += "resourceId=" + encodeURIComponent("" + resourceId) + "&";
|
|
5780
|
+
if (privateDesignId !== undefined && privateDesignId !== null)
|
|
5781
|
+
url_ += "privateDesignId=" + encodeURIComponent("" + privateDesignId) + "&";
|
|
5795
5782
|
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
5796
5783
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
5797
5784
|
if (tenantId === null)
|
|
@@ -5802,18 +5789,16 @@
|
|
|
5802
5789
|
var options_ = {
|
|
5803
5790
|
observe: "response",
|
|
5804
5791
|
responseType: "blob",
|
|
5805
|
-
headers: new i1.HttpHeaders({
|
|
5806
|
-
"Accept": "application/json"
|
|
5807
|
-
})
|
|
5792
|
+
headers: new i1.HttpHeaders({})
|
|
5808
5793
|
};
|
|
5809
5794
|
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
5810
|
-
return _this.http.request("
|
|
5795
|
+
return _this.http.request("post", url_, transformedOptions_);
|
|
5811
5796
|
})).pipe(operators.mergeMap(function (response_) {
|
|
5812
|
-
return _this.transformResult(url_, response_, function (r) { return _this.
|
|
5797
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processCreatePrivateDesignFromResource(r); });
|
|
5813
5798
|
})).pipe(operators.catchError(function (response_) {
|
|
5814
5799
|
if (response_ instanceof i1.HttpResponseBase) {
|
|
5815
5800
|
try {
|
|
5816
|
-
return _this.transformResult(url_, response_, function (r) { return _this.
|
|
5801
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processCreatePrivateDesignFromResource(r); });
|
|
5817
5802
|
}
|
|
5818
5803
|
catch (e) {
|
|
5819
5804
|
return rxjs.throwError(e);
|
|
@@ -5823,7 +5808,7 @@
|
|
|
5823
5808
|
return rxjs.throwError(response_);
|
|
5824
5809
|
}));
|
|
5825
5810
|
};
|
|
5826
|
-
DesignAtomsServiceApiClient.prototype.
|
|
5811
|
+
DesignAtomsServiceApiClient.prototype.processCreatePrivateDesignFromResource = function (response) {
|
|
5827
5812
|
var e_57, _a;
|
|
5828
5813
|
var _this = this;
|
|
5829
5814
|
var status = response.status;
|
|
@@ -5845,25 +5830,9 @@
|
|
|
5845
5830
|
finally { if (e_57) throw e_57.error; }
|
|
5846
5831
|
}
|
|
5847
5832
|
}
|
|
5848
|
-
if (status ===
|
|
5849
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5850
|
-
var result200 = null;
|
|
5851
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5852
|
-
return rxjs.of(result200);
|
|
5853
|
-
}));
|
|
5854
|
-
}
|
|
5855
|
-
else if (status === 404) {
|
|
5856
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5857
|
-
var result404 = null;
|
|
5858
|
-
result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5859
|
-
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
5860
|
-
}));
|
|
5861
|
-
}
|
|
5862
|
-
else if (status === 422) {
|
|
5833
|
+
if (status === 201) {
|
|
5863
5834
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5864
|
-
|
|
5865
|
-
result422 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5866
|
-
return throwException("Client Error", status, _responseText, _headers, result422);
|
|
5835
|
+
return rxjs.of(null);
|
|
5867
5836
|
}));
|
|
5868
5837
|
}
|
|
5869
5838
|
else if (status === 401) {
|
|
@@ -8275,10 +8244,6 @@
|
|
|
8275
8244
|
ItemSourceType["ImageStorage"] = "ImageStorage";
|
|
8276
8245
|
ItemSourceType["PrivateImageStorage"] = "PrivateImageStorage";
|
|
8277
8246
|
})(exports.ItemSourceType || (exports.ItemSourceType = {}));
|
|
8278
|
-
(function (ProductPreviewFormat) {
|
|
8279
|
-
ProductPreviewFormat["Jpeg"] = "Jpeg";
|
|
8280
|
-
ProductPreviewFormat["Png"] = "Png";
|
|
8281
|
-
})(exports.ProductPreviewFormat || (exports.ProductPreviewFormat = {}));
|
|
8282
8247
|
(function (ProductProofFormat) {
|
|
8283
8248
|
ProductProofFormat["Jpeg"] = "Jpeg";
|
|
8284
8249
|
ProductProofFormat["Png"] = "Png";
|
|
@@ -8298,6 +8263,10 @@
|
|
|
8298
8263
|
ProductProofInterpolationMode["Anisotropic9"] = "Anisotropic9";
|
|
8299
8264
|
ProductProofInterpolationMode["Lanczos3"] = "Lanczos3";
|
|
8300
8265
|
})(exports.ProductProofInterpolationMode || (exports.ProductProofInterpolationMode = {}));
|
|
8266
|
+
(function (ProductPreviewFormat) {
|
|
8267
|
+
ProductPreviewFormat["Jpeg"] = "Jpeg";
|
|
8268
|
+
ProductPreviewFormat["Png"] = "Png";
|
|
8269
|
+
})(exports.ProductPreviewFormat || (exports.ProductPreviewFormat = {}));
|
|
8301
8270
|
var ApiException = /** @class */ (function (_super) {
|
|
8302
8271
|
__extends(ApiException, _super);
|
|
8303
8272
|
function ApiException(message, status, response, headers, result) {
|