@aurigma/ng-design-atoms-api-client 2.76.4 → 2.79.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 +878 -319
- 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/aurigma-ng-design-atoms-api-client.js +1 -1
- package/esm2015/lib/design-atoms-api-client.js +507 -1
- package/esm2015/lib/design-atoms-api.module.js +1 -1
- package/esm2015/public-api.js +1 -1
- package/fesm2015/aurigma-ng-design-atoms-api-client.js +507 -1
- package/fesm2015/aurigma-ng-design-atoms-api-client.js.map +1 -1
- package/lib/design-atoms-api-client.d.ts +289 -3
- package/package.json +1 -1
|
@@ -32,4 +32,4 @@ DesignAtomsApiModule.decorators = [
|
|
|
32
32
|
exports: []
|
|
33
33
|
},] }
|
|
34
34
|
];
|
|
35
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
35
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVzaWduLWF0b21zLWFwaS5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiL2hvbWUvYXVyaWdtYS9hZ2VudHMvQ0NIMDIvX3dvcmsvOC9zL3NyYy9BdXJpZ21hLkRlc2lnbkF0b21zQXBpLlR5cGVTY3JpcHRBcGlDbGllbnQvQW5ndWxhci9hcGktY2xpZW50L3Byb2plY3RzL2NsaWVudC9zcmMvIiwic291cmNlcyI6WyJsaWIvZGVzaWduLWF0b21zLWFwaS5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFzQixRQUFRLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDNUQsT0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JX0JBU0VfVVJMLFxuICAgICAgICAgIHVzZVZhbHVlOiBhcGlVcmxcbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIHByb3ZpZGU6IERlc2lnbkF0b21zQXBpQ2xpZW50LkFwaUNsaWVudENvbmZpZ3VyYXRpb24sXG4gICAgICAgICAgdXNlRmFjdG9yeTogQ3JlYXRlQXBpQ2xpZW50Q29uZmlndXJhdGlvbi5iaW5kKHRoaXMsIHRva2VuICwgYXBpVXJsLCBhcGlLZXkpXG4gICAgICAgIH0sXG4gICAgICBdXG4gICAgfTtcbiAgfVxufVxuIl19
|
package/esm2015/public-api.js
CHANGED
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export * from './lib/design-atoms-api.module';
|
|
5
5
|
export * from './lib/design-atoms-api-client';
|
|
6
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIvaG9tZS9hdXJpZ21hL2FnZW50cy9DQ0gwMi9fd29yay84L3Mvc3JjL0F1cmlnbWEuRGVzaWduQXRvbXNBcGkuVHlwZVNjcmlwdEFwaUNsaWVudC9Bbmd1bGFyL2FwaS1jbGllbnQvcHJvamVjdHMvY2xpZW50L3NyYy8iLCJzb3VyY2VzIjpbInB1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLCtCQUErQixDQUFDO0FBQzlDLGNBQWMsK0JBQStCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIGNsaWVudFxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vbGliL2Rlc2lnbi1hdG9tcy1hcGkubW9kdWxlJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2Rlc2lnbi1hdG9tcy1hcGktY2xpZW50JztcbiJdfQ==
|
|
@@ -3545,6 +3545,303 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
|
|
|
3545
3545
|
}
|
|
3546
3546
|
return of(null);
|
|
3547
3547
|
}
|
|
3548
|
+
/**
|
|
3549
|
+
* Returns a list of print-product container descriptions of the specified design file.
|
|
3550
|
+
* @param id Design identifier.
|
|
3551
|
+
* @param index (optional)
|
|
3552
|
+
* @param surfaceId (optional) Print-product surface identifier.
|
|
3553
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
3554
|
+
* @param tenantId (optional) Tenant ID.
|
|
3555
|
+
* @param body (optional)
|
|
3556
|
+
* @return Success
|
|
3557
|
+
*/
|
|
3558
|
+
addDesignSurfaceContainer(id, index, surfaceId, privateStorageOwner, tenantId, body) {
|
|
3559
|
+
let url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product/containers?";
|
|
3560
|
+
if (id === undefined || id === null)
|
|
3561
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
3562
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3563
|
+
if (index !== undefined && index !== null)
|
|
3564
|
+
url_ += "index=" + encodeURIComponent("" + index) + "&";
|
|
3565
|
+
if (surfaceId !== undefined && surfaceId !== null)
|
|
3566
|
+
url_ += "surfaceId=" + encodeURIComponent("" + surfaceId) + "&";
|
|
3567
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
3568
|
+
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3569
|
+
if (tenantId === null)
|
|
3570
|
+
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
3571
|
+
else if (tenantId !== undefined)
|
|
3572
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
3573
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
3574
|
+
const content_ = JSON.stringify(body);
|
|
3575
|
+
let options_ = {
|
|
3576
|
+
body: content_,
|
|
3577
|
+
observe: "response",
|
|
3578
|
+
responseType: "blob",
|
|
3579
|
+
headers: new HttpHeaders({
|
|
3580
|
+
"Content-Type": "application/json",
|
|
3581
|
+
"Accept": "application/json"
|
|
3582
|
+
})
|
|
3583
|
+
};
|
|
3584
|
+
return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
|
|
3585
|
+
return this.http.request("post", url_, transformedOptions_);
|
|
3586
|
+
})).pipe(mergeMap((response_) => {
|
|
3587
|
+
return this.transformResult(url_, response_, (r) => this.processAddDesignSurfaceContainer(r));
|
|
3588
|
+
})).pipe(catchError((response_) => {
|
|
3589
|
+
if (response_ instanceof HttpResponseBase) {
|
|
3590
|
+
try {
|
|
3591
|
+
return this.transformResult(url_, response_, (r) => this.processAddDesignSurfaceContainer(r));
|
|
3592
|
+
}
|
|
3593
|
+
catch (e) {
|
|
3594
|
+
return throwError(e);
|
|
3595
|
+
}
|
|
3596
|
+
}
|
|
3597
|
+
else
|
|
3598
|
+
return throwError(response_);
|
|
3599
|
+
}));
|
|
3600
|
+
}
|
|
3601
|
+
processAddDesignSurfaceContainer(response) {
|
|
3602
|
+
const status = response.status;
|
|
3603
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
3604
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
3605
|
+
let _headers = {};
|
|
3606
|
+
if (response.headers) {
|
|
3607
|
+
for (let key of response.headers.keys()) {
|
|
3608
|
+
_headers[key] = response.headers.get(key);
|
|
3609
|
+
}
|
|
3610
|
+
}
|
|
3611
|
+
if (status === 200) {
|
|
3612
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3613
|
+
let result200 = null;
|
|
3614
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3615
|
+
return of(result200);
|
|
3616
|
+
}));
|
|
3617
|
+
}
|
|
3618
|
+
else if (status === 404) {
|
|
3619
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3620
|
+
let result404 = null;
|
|
3621
|
+
result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3622
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
3623
|
+
}));
|
|
3624
|
+
}
|
|
3625
|
+
else if (status === 409) {
|
|
3626
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3627
|
+
let result409 = null;
|
|
3628
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3629
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
3630
|
+
}));
|
|
3631
|
+
}
|
|
3632
|
+
else if (status === 401) {
|
|
3633
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3634
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
3635
|
+
}));
|
|
3636
|
+
}
|
|
3637
|
+
else if (status === 403) {
|
|
3638
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3639
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
3640
|
+
}));
|
|
3641
|
+
}
|
|
3642
|
+
else if (status !== 200 && status !== 204) {
|
|
3643
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3644
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3645
|
+
}));
|
|
3646
|
+
}
|
|
3647
|
+
return of(null);
|
|
3648
|
+
}
|
|
3649
|
+
/**
|
|
3650
|
+
* Returns a print-product container parameters of the specified design file.
|
|
3651
|
+
* @param id Design identifier.
|
|
3652
|
+
* @param containerId Print-product container identifier.
|
|
3653
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
3654
|
+
* @param tenantId (optional) Tenant ID.
|
|
3655
|
+
* @return Success
|
|
3656
|
+
*/
|
|
3657
|
+
getDesignSurfaceContainer(id, containerId, privateStorageOwner, tenantId) {
|
|
3658
|
+
let url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product/containers/{containerId}?";
|
|
3659
|
+
if (id === undefined || id === null)
|
|
3660
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
3661
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3662
|
+
if (containerId === undefined || containerId === null)
|
|
3663
|
+
throw new Error("The parameter 'containerId' must be defined.");
|
|
3664
|
+
url_ = url_.replace("{containerId}", encodeURIComponent("" + containerId));
|
|
3665
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
3666
|
+
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3667
|
+
if (tenantId === null)
|
|
3668
|
+
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
3669
|
+
else if (tenantId !== undefined)
|
|
3670
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
3671
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
3672
|
+
let options_ = {
|
|
3673
|
+
observe: "response",
|
|
3674
|
+
responseType: "blob",
|
|
3675
|
+
headers: new HttpHeaders({
|
|
3676
|
+
"Accept": "application/json"
|
|
3677
|
+
})
|
|
3678
|
+
};
|
|
3679
|
+
return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
|
|
3680
|
+
return this.http.request("get", url_, transformedOptions_);
|
|
3681
|
+
})).pipe(mergeMap((response_) => {
|
|
3682
|
+
return this.transformResult(url_, response_, (r) => this.processGetDesignSurfaceContainer(r));
|
|
3683
|
+
})).pipe(catchError((response_) => {
|
|
3684
|
+
if (response_ instanceof HttpResponseBase) {
|
|
3685
|
+
try {
|
|
3686
|
+
return this.transformResult(url_, response_, (r) => this.processGetDesignSurfaceContainer(r));
|
|
3687
|
+
}
|
|
3688
|
+
catch (e) {
|
|
3689
|
+
return throwError(e);
|
|
3690
|
+
}
|
|
3691
|
+
}
|
|
3692
|
+
else
|
|
3693
|
+
return throwError(response_);
|
|
3694
|
+
}));
|
|
3695
|
+
}
|
|
3696
|
+
processGetDesignSurfaceContainer(response) {
|
|
3697
|
+
const status = response.status;
|
|
3698
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
3699
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
3700
|
+
let _headers = {};
|
|
3701
|
+
if (response.headers) {
|
|
3702
|
+
for (let key of response.headers.keys()) {
|
|
3703
|
+
_headers[key] = response.headers.get(key);
|
|
3704
|
+
}
|
|
3705
|
+
}
|
|
3706
|
+
if (status === 200) {
|
|
3707
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3708
|
+
let result200 = null;
|
|
3709
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3710
|
+
return of(result200);
|
|
3711
|
+
}));
|
|
3712
|
+
}
|
|
3713
|
+
else if (status === 404) {
|
|
3714
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3715
|
+
let result404 = null;
|
|
3716
|
+
result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3717
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
3718
|
+
}));
|
|
3719
|
+
}
|
|
3720
|
+
else if (status === 409) {
|
|
3721
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3722
|
+
let result409 = null;
|
|
3723
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3724
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
3725
|
+
}));
|
|
3726
|
+
}
|
|
3727
|
+
else if (status === 401) {
|
|
3728
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3729
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
3730
|
+
}));
|
|
3731
|
+
}
|
|
3732
|
+
else if (status === 403) {
|
|
3733
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3734
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
3735
|
+
}));
|
|
3736
|
+
}
|
|
3737
|
+
else if (status !== 200 && status !== 204) {
|
|
3738
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3739
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3740
|
+
}));
|
|
3741
|
+
}
|
|
3742
|
+
return of(null);
|
|
3743
|
+
}
|
|
3744
|
+
/**
|
|
3745
|
+
* Returns a list of print-product container descriptions of the specified design file.
|
|
3746
|
+
* @param id Design identifier.
|
|
3747
|
+
* @param surfaceId (optional) Print-product surface identifier.
|
|
3748
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
3749
|
+
* @param tenantId (optional) Tenant ID.
|
|
3750
|
+
* @param body (optional)
|
|
3751
|
+
* @return Success
|
|
3752
|
+
*/
|
|
3753
|
+
updateDesignSurfaceContainer(id, containerId, surfaceId, privateStorageOwner, tenantId, body) {
|
|
3754
|
+
let url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product/containers/{containerId}?";
|
|
3755
|
+
if (id === undefined || id === null)
|
|
3756
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
3757
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3758
|
+
if (containerId === undefined || containerId === null)
|
|
3759
|
+
throw new Error("The parameter 'containerId' must be defined.");
|
|
3760
|
+
url_ = url_.replace("{containerId}", encodeURIComponent("" + containerId));
|
|
3761
|
+
if (surfaceId !== undefined && surfaceId !== null)
|
|
3762
|
+
url_ += "surfaceId=" + encodeURIComponent("" + surfaceId) + "&";
|
|
3763
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
3764
|
+
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3765
|
+
if (tenantId === null)
|
|
3766
|
+
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
3767
|
+
else if (tenantId !== undefined)
|
|
3768
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
3769
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
3770
|
+
const content_ = JSON.stringify(body);
|
|
3771
|
+
let options_ = {
|
|
3772
|
+
body: content_,
|
|
3773
|
+
observe: "response",
|
|
3774
|
+
responseType: "blob",
|
|
3775
|
+
headers: new HttpHeaders({
|
|
3776
|
+
"Content-Type": "application/json",
|
|
3777
|
+
"Accept": "application/json"
|
|
3778
|
+
})
|
|
3779
|
+
};
|
|
3780
|
+
return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
|
|
3781
|
+
return this.http.request("put", url_, transformedOptions_);
|
|
3782
|
+
})).pipe(mergeMap((response_) => {
|
|
3783
|
+
return this.transformResult(url_, response_, (r) => this.processUpdateDesignSurfaceContainer(r));
|
|
3784
|
+
})).pipe(catchError((response_) => {
|
|
3785
|
+
if (response_ instanceof HttpResponseBase) {
|
|
3786
|
+
try {
|
|
3787
|
+
return this.transformResult(url_, response_, (r) => this.processUpdateDesignSurfaceContainer(r));
|
|
3788
|
+
}
|
|
3789
|
+
catch (e) {
|
|
3790
|
+
return throwError(e);
|
|
3791
|
+
}
|
|
3792
|
+
}
|
|
3793
|
+
else
|
|
3794
|
+
return throwError(response_);
|
|
3795
|
+
}));
|
|
3796
|
+
}
|
|
3797
|
+
processUpdateDesignSurfaceContainer(response) {
|
|
3798
|
+
const status = response.status;
|
|
3799
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
3800
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
3801
|
+
let _headers = {};
|
|
3802
|
+
if (response.headers) {
|
|
3803
|
+
for (let key of response.headers.keys()) {
|
|
3804
|
+
_headers[key] = response.headers.get(key);
|
|
3805
|
+
}
|
|
3806
|
+
}
|
|
3807
|
+
if (status === 200) {
|
|
3808
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3809
|
+
let result200 = null;
|
|
3810
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3811
|
+
return of(result200);
|
|
3812
|
+
}));
|
|
3813
|
+
}
|
|
3814
|
+
else if (status === 404) {
|
|
3815
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3816
|
+
let result404 = null;
|
|
3817
|
+
result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3818
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
3819
|
+
}));
|
|
3820
|
+
}
|
|
3821
|
+
else if (status === 409) {
|
|
3822
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3823
|
+
let result409 = null;
|
|
3824
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3825
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
3826
|
+
}));
|
|
3827
|
+
}
|
|
3828
|
+
else if (status === 401) {
|
|
3829
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3830
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
3831
|
+
}));
|
|
3832
|
+
}
|
|
3833
|
+
else if (status === 403) {
|
|
3834
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3835
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
3836
|
+
}));
|
|
3837
|
+
}
|
|
3838
|
+
else if (status !== 200 && status !== 204) {
|
|
3839
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3840
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3841
|
+
}));
|
|
3842
|
+
}
|
|
3843
|
+
return of(null);
|
|
3844
|
+
}
|
|
3548
3845
|
/**
|
|
3549
3846
|
* Deletes a specified print-product container in an existing design file.
|
|
3550
3847
|
* @param id Design identifier.
|
|
@@ -6539,6 +6836,87 @@ class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
|
|
|
6539
6836
|
}
|
|
6540
6837
|
return of(null);
|
|
6541
6838
|
}
|
|
6839
|
+
/**
|
|
6840
|
+
* Creates ellipse print-product item and returns its serialized model.
|
|
6841
|
+
* @param tenantId (optional) Tenant ID.
|
|
6842
|
+
* @param body (optional) Operation parameters.
|
|
6843
|
+
* @return Success
|
|
6844
|
+
*/
|
|
6845
|
+
createEllipseItem(tenantId, body) {
|
|
6846
|
+
let url_ = this.baseUrl + "/api/atoms/v1/designs/print-product/items/ellipse?";
|
|
6847
|
+
if (tenantId === null)
|
|
6848
|
+
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
6849
|
+
else if (tenantId !== undefined)
|
|
6850
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
6851
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
6852
|
+
const content_ = JSON.stringify(body);
|
|
6853
|
+
let options_ = {
|
|
6854
|
+
body: content_,
|
|
6855
|
+
observe: "response",
|
|
6856
|
+
responseType: "blob",
|
|
6857
|
+
headers: new HttpHeaders({
|
|
6858
|
+
"Content-Type": "application/json",
|
|
6859
|
+
"Accept": "application/json"
|
|
6860
|
+
})
|
|
6861
|
+
};
|
|
6862
|
+
return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
|
|
6863
|
+
return this.http.request("post", url_, transformedOptions_);
|
|
6864
|
+
})).pipe(mergeMap((response_) => {
|
|
6865
|
+
return this.transformResult(url_, response_, (r) => this.processCreateEllipseItem(r));
|
|
6866
|
+
})).pipe(catchError((response_) => {
|
|
6867
|
+
if (response_ instanceof HttpResponseBase) {
|
|
6868
|
+
try {
|
|
6869
|
+
return this.transformResult(url_, response_, (r) => this.processCreateEllipseItem(r));
|
|
6870
|
+
}
|
|
6871
|
+
catch (e) {
|
|
6872
|
+
return throwError(e);
|
|
6873
|
+
}
|
|
6874
|
+
}
|
|
6875
|
+
else
|
|
6876
|
+
return throwError(response_);
|
|
6877
|
+
}));
|
|
6878
|
+
}
|
|
6879
|
+
processCreateEllipseItem(response) {
|
|
6880
|
+
const status = response.status;
|
|
6881
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
6882
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
6883
|
+
let _headers = {};
|
|
6884
|
+
if (response.headers) {
|
|
6885
|
+
for (let key of response.headers.keys()) {
|
|
6886
|
+
_headers[key] = response.headers.get(key);
|
|
6887
|
+
}
|
|
6888
|
+
}
|
|
6889
|
+
if (status === 200) {
|
|
6890
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6891
|
+
let result200 = null;
|
|
6892
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6893
|
+
return of(result200);
|
|
6894
|
+
}));
|
|
6895
|
+
}
|
|
6896
|
+
else if (status === 404) {
|
|
6897
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6898
|
+
let result404 = null;
|
|
6899
|
+
result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6900
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
6901
|
+
}));
|
|
6902
|
+
}
|
|
6903
|
+
else if (status === 401) {
|
|
6904
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6905
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6906
|
+
}));
|
|
6907
|
+
}
|
|
6908
|
+
else if (status === 403) {
|
|
6909
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6910
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6911
|
+
}));
|
|
6912
|
+
}
|
|
6913
|
+
else if (status !== 200 && status !== 204) {
|
|
6914
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6915
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6916
|
+
}));
|
|
6917
|
+
}
|
|
6918
|
+
return of(null);
|
|
6919
|
+
}
|
|
6542
6920
|
/**
|
|
6543
6921
|
* Extracts print-product item image.
|
|
6544
6922
|
* @param tenantId (optional) Tenant ID.
|
|
@@ -7382,6 +7760,87 @@ class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
|
|
|
7382
7760
|
}
|
|
7383
7761
|
return of(null);
|
|
7384
7762
|
}
|
|
7763
|
+
/**
|
|
7764
|
+
* Creates rectangle print-product item and returns its serialized model.
|
|
7765
|
+
* @param tenantId (optional) Tenant ID.
|
|
7766
|
+
* @param body (optional) Operation parameters.
|
|
7767
|
+
* @return Success
|
|
7768
|
+
*/
|
|
7769
|
+
createRectangleItem(tenantId, body) {
|
|
7770
|
+
let url_ = this.baseUrl + "/api/atoms/v1/designs/print-product/items/rectangle?";
|
|
7771
|
+
if (tenantId === null)
|
|
7772
|
+
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
7773
|
+
else if (tenantId !== undefined)
|
|
7774
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
7775
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
7776
|
+
const content_ = JSON.stringify(body);
|
|
7777
|
+
let options_ = {
|
|
7778
|
+
body: content_,
|
|
7779
|
+
observe: "response",
|
|
7780
|
+
responseType: "blob",
|
|
7781
|
+
headers: new HttpHeaders({
|
|
7782
|
+
"Content-Type": "application/json",
|
|
7783
|
+
"Accept": "application/json"
|
|
7784
|
+
})
|
|
7785
|
+
};
|
|
7786
|
+
return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
|
|
7787
|
+
return this.http.request("post", url_, transformedOptions_);
|
|
7788
|
+
})).pipe(mergeMap((response_) => {
|
|
7789
|
+
return this.transformResult(url_, response_, (r) => this.processCreateRectangleItem(r));
|
|
7790
|
+
})).pipe(catchError((response_) => {
|
|
7791
|
+
if (response_ instanceof HttpResponseBase) {
|
|
7792
|
+
try {
|
|
7793
|
+
return this.transformResult(url_, response_, (r) => this.processCreateRectangleItem(r));
|
|
7794
|
+
}
|
|
7795
|
+
catch (e) {
|
|
7796
|
+
return throwError(e);
|
|
7797
|
+
}
|
|
7798
|
+
}
|
|
7799
|
+
else
|
|
7800
|
+
return throwError(response_);
|
|
7801
|
+
}));
|
|
7802
|
+
}
|
|
7803
|
+
processCreateRectangleItem(response) {
|
|
7804
|
+
const status = response.status;
|
|
7805
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
7806
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
7807
|
+
let _headers = {};
|
|
7808
|
+
if (response.headers) {
|
|
7809
|
+
for (let key of response.headers.keys()) {
|
|
7810
|
+
_headers[key] = response.headers.get(key);
|
|
7811
|
+
}
|
|
7812
|
+
}
|
|
7813
|
+
if (status === 200) {
|
|
7814
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
7815
|
+
let result200 = null;
|
|
7816
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
7817
|
+
return of(result200);
|
|
7818
|
+
}));
|
|
7819
|
+
}
|
|
7820
|
+
else if (status === 404) {
|
|
7821
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
7822
|
+
let result404 = null;
|
|
7823
|
+
result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
7824
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
7825
|
+
}));
|
|
7826
|
+
}
|
|
7827
|
+
else if (status === 401) {
|
|
7828
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
7829
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
7830
|
+
}));
|
|
7831
|
+
}
|
|
7832
|
+
else if (status === 403) {
|
|
7833
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
7834
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
7835
|
+
}));
|
|
7836
|
+
}
|
|
7837
|
+
else if (status !== 200 && status !== 204) {
|
|
7838
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
7839
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
7840
|
+
}));
|
|
7841
|
+
}
|
|
7842
|
+
return of(null);
|
|
7843
|
+
}
|
|
7385
7844
|
}
|
|
7386
7845
|
DesignAtomsPrintProductItemsApiClient.ɵprov = ɵɵdefineInjectable({ factory: function DesignAtomsPrintProductItemsApiClient_Factory() { return new DesignAtomsPrintProductItemsApiClient(ɵɵinject(ApiClientConfiguration), ɵɵinject(HttpClient), ɵɵinject(API_BASE_URL, 8)); }, token: DesignAtomsPrintProductItemsApiClient, providedIn: "root" });
|
|
7387
7846
|
DesignAtomsPrintProductItemsApiClient.decorators = [
|
|
@@ -11710,6 +12169,32 @@ DesignAtomsViewerApiClient.ctorParameters = () => [
|
|
|
11710
12169
|
{ type: HttpClient, decorators: [{ type: Inject, args: [HttpClient,] }] },
|
|
11711
12170
|
{ type: String, decorators: [{ type: Optional }, { type: Inject, args: [API_BASE_URL,] }] }
|
|
11712
12171
|
];
|
|
12172
|
+
var ArtworkShapeType;
|
|
12173
|
+
(function (ArtworkShapeType) {
|
|
12174
|
+
ArtworkShapeType["Rectangle"] = "rectangle";
|
|
12175
|
+
ArtworkShapeType["Ellipse"] = "ellipse";
|
|
12176
|
+
})(ArtworkShapeType || (ArtworkShapeType = {}));
|
|
12177
|
+
/** Colorless container display type. */
|
|
12178
|
+
var ColorlessContainerDisplayType;
|
|
12179
|
+
(function (ColorlessContainerDisplayType) {
|
|
12180
|
+
ColorlessContainerDisplayType["Color"] = "Color";
|
|
12181
|
+
ColorlessContainerDisplayType["Texture"] = "Texture";
|
|
12182
|
+
})(ColorlessContainerDisplayType || (ColorlessContainerDisplayType = {}));
|
|
12183
|
+
/** Colorless container dither type. */
|
|
12184
|
+
var ColorlessContainerDitherType;
|
|
12185
|
+
(function (ColorlessContainerDitherType) {
|
|
12186
|
+
ColorlessContainerDitherType["None"] = "None";
|
|
12187
|
+
ColorlessContainerDitherType["Diffusion"] = "Diffusion";
|
|
12188
|
+
ColorlessContainerDitherType["Pattern"] = "Pattern";
|
|
12189
|
+
ColorlessContainerDitherType["Noise"] = "Noise";
|
|
12190
|
+
})(ColorlessContainerDitherType || (ColorlessContainerDitherType = {}));
|
|
12191
|
+
/** Colorless container format. */
|
|
12192
|
+
var ColorlessContainerFormat;
|
|
12193
|
+
(function (ColorlessContainerFormat) {
|
|
12194
|
+
ColorlessContainerFormat["OneBit"] = "OneBit";
|
|
12195
|
+
ColorlessContainerFormat["Grayscale"] = "Grayscale";
|
|
12196
|
+
ColorlessContainerFormat["Vector"] = "Vector";
|
|
12197
|
+
})(ColorlessContainerFormat || (ColorlessContainerFormat = {}));
|
|
11713
12198
|
/** Conflict types. */
|
|
11714
12199
|
var ConflictType;
|
|
11715
12200
|
(function (ConflictType) {
|
|
@@ -11718,6 +12203,22 @@ var ConflictType;
|
|
|
11718
12203
|
ConflictType["IdConflict"] = "IdConflict";
|
|
11719
12204
|
ConflictType["GeneralConflict"] = "GeneralConflict";
|
|
11720
12205
|
})(ConflictType || (ConflictType = {}));
|
|
12206
|
+
/** Full color container color space. */
|
|
12207
|
+
var ContainerColorSpace;
|
|
12208
|
+
(function (ContainerColorSpace) {
|
|
12209
|
+
ContainerColorSpace["Rgb"] = "Rgb";
|
|
12210
|
+
ContainerColorSpace["Cmyk"] = "Cmyk";
|
|
12211
|
+
ContainerColorSpace["Grayscale"] = "Grayscale";
|
|
12212
|
+
ContainerColorSpace["Lab"] = "Lab";
|
|
12213
|
+
ContainerColorSpace["Spot"] = "Spot";
|
|
12214
|
+
})(ContainerColorSpace || (ContainerColorSpace = {}));
|
|
12215
|
+
/** Container printing mode. */
|
|
12216
|
+
var ContainerPrintingMode;
|
|
12217
|
+
(function (ContainerPrintingMode) {
|
|
12218
|
+
ContainerPrintingMode["FullColor"] = "FullColor";
|
|
12219
|
+
ContainerPrintingMode["LimitedColor"] = "LimitedColor";
|
|
12220
|
+
ContainerPrintingMode["Colorless"] = "Colorless";
|
|
12221
|
+
})(ContainerPrintingMode || (ContainerPrintingMode = {}));
|
|
11721
12222
|
var DesignElementType;
|
|
11722
12223
|
(function (DesignElementType) {
|
|
11723
12224
|
DesignElementType["Product"] = "Product";
|
|
@@ -11747,6 +12248,11 @@ var ImagePreviewFormat;
|
|
|
11747
12248
|
ImagePreviewFormat["Jpeg"] = "Jpeg";
|
|
11748
12249
|
ImagePreviewFormat["Png"] = "Png";
|
|
11749
12250
|
})(ImagePreviewFormat || (ImagePreviewFormat = {}));
|
|
12251
|
+
var ItemBorderStyle;
|
|
12252
|
+
(function (ItemBorderStyle) {
|
|
12253
|
+
ItemBorderStyle["Solid"] = "Solid";
|
|
12254
|
+
ItemBorderStyle["Dashed"] = "Dashed";
|
|
12255
|
+
})(ItemBorderStyle || (ItemBorderStyle = {}));
|
|
11750
12256
|
/** Item source types. */
|
|
11751
12257
|
var ItemSourceType;
|
|
11752
12258
|
(function (ItemSourceType) {
|
|
@@ -11908,5 +12414,5 @@ DesignAtomsApiModule.decorators = [
|
|
|
11908
12414
|
* Generated bundle index. Do not edit.
|
|
11909
12415
|
*/
|
|
11910
12416
|
|
|
11911
|
-
export { API_BASE_URL, ApiClientBase, ApiClientConfiguration, ApiException, BuildInfoApiClient, ConflictType, CreateApiClientConfiguration, DesignAtomsApiModule, DesignAtomsCompatibilityApiClient, DesignAtomsImagesApiClient, DesignAtomsMockups2dApiClient, DesignAtomsMockups3dApiClient, DesignAtomsPalettesApiClient, DesignAtomsPrintProductApiClient, DesignAtomsPrintProductItemsApiClient, DesignAtomsServiceApiClient, DesignAtomsViewerApiClient, DesignElementType, ImageExtractionFormat, ImagePreviewFitMode, ImagePreviewFormat, ItemSourceType, ItemType, MockupPreviewFitMode, MockupPreviewFormat, PlaceholderItemContentType, ProductPatchType, ProductPreviewFormat, ProductProofFormat, ProductProofInterpolationMode, TextAlignment, TextVerticalAlignment };
|
|
12417
|
+
export { API_BASE_URL, ApiClientBase, ApiClientConfiguration, ApiException, ArtworkShapeType, BuildInfoApiClient, ColorlessContainerDisplayType, ColorlessContainerDitherType, ColorlessContainerFormat, ConflictType, ContainerColorSpace, ContainerPrintingMode, CreateApiClientConfiguration, DesignAtomsApiModule, DesignAtomsCompatibilityApiClient, DesignAtomsImagesApiClient, DesignAtomsMockups2dApiClient, DesignAtomsMockups3dApiClient, DesignAtomsPalettesApiClient, DesignAtomsPrintProductApiClient, DesignAtomsPrintProductItemsApiClient, DesignAtomsServiceApiClient, DesignAtomsViewerApiClient, DesignElementType, ImageExtractionFormat, ImagePreviewFitMode, ImagePreviewFormat, ItemBorderStyle, ItemSourceType, ItemType, MockupPreviewFitMode, MockupPreviewFormat, PlaceholderItemContentType, ProductPatchType, ProductPreviewFormat, ProductProofFormat, ProductProofInterpolationMode, TextAlignment, TextVerticalAlignment };
|
|
11912
12418
|
//# sourceMappingURL=aurigma-ng-design-atoms-api-client.js.map
|