@aurigma/ng-design-atoms-api-client 2.76.4 → 2.77.4
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 +643 -276
- 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 +340 -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 +340 -1
- package/fesm2015/aurigma-ng-design-atoms-api-client.js.map +1 -1
- package/lib/design-atoms-api-client.d.ts +225 -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVzaWduLWF0b21zLWFwaS5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiL2hvbWUvYXVyaWdtYS9hZ2VudHMvQ0NIMDQvX3dvcmsvNi9zL3NyYy9BdXJpZ21hLkRlc2lnbkF0b21zQXBpLlR5cGVTY3JpcHRBcGlDbGllbnQvQW5ndWxhci9hcGktY2xpZW50L3Byb2plY3RzL2NsaWVudC9zcmMvIiwic291cmNlcyI6WyJsaWIvZGVzaWduLWF0b21zLWFwaS5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFzQixRQUFRLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDNUQsT0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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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIvaG9tZS9hdXJpZ21hL2FnZW50cy9DQ0gwNC9fd29yay82L3Mvc3JjL0F1cmlnbWEuRGVzaWduQXRvbXNBcGkuVHlwZVNjcmlwdEFwaUNsaWVudC9Bbmd1bGFyL2FwaS1jbGllbnQvcHJvamVjdHMvY2xpZW50L3NyYy8iLCJzb3VyY2VzIjpbInB1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLCtCQUErQixDQUFDO0FBQzlDLGNBQWMsK0JBQStCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIGNsaWVudFxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vbGliL2Rlc2lnbi1hdG9tcy1hcGkubW9kdWxlJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2Rlc2lnbi1hdG9tcy1hcGktY2xpZW50JztcbiJdfQ==
|
|
@@ -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.
|
|
@@ -11710,6 +12007,32 @@ DesignAtomsViewerApiClient.ctorParameters = () => [
|
|
|
11710
12007
|
{ type: HttpClient, decorators: [{ type: Inject, args: [HttpClient,] }] },
|
|
11711
12008
|
{ type: String, decorators: [{ type: Optional }, { type: Inject, args: [API_BASE_URL,] }] }
|
|
11712
12009
|
];
|
|
12010
|
+
var ArtworkShapeType;
|
|
12011
|
+
(function (ArtworkShapeType) {
|
|
12012
|
+
ArtworkShapeType["Rectangle"] = "rectangle";
|
|
12013
|
+
ArtworkShapeType["Ellipse"] = "ellipse";
|
|
12014
|
+
})(ArtworkShapeType || (ArtworkShapeType = {}));
|
|
12015
|
+
/** Colorless container display type. */
|
|
12016
|
+
var ColorlessContainerDisplayType;
|
|
12017
|
+
(function (ColorlessContainerDisplayType) {
|
|
12018
|
+
ColorlessContainerDisplayType["Color"] = "Color";
|
|
12019
|
+
ColorlessContainerDisplayType["Texture"] = "Texture";
|
|
12020
|
+
})(ColorlessContainerDisplayType || (ColorlessContainerDisplayType = {}));
|
|
12021
|
+
/** Colorless container dither type. */
|
|
12022
|
+
var ColorlessContainerDitherType;
|
|
12023
|
+
(function (ColorlessContainerDitherType) {
|
|
12024
|
+
ColorlessContainerDitherType["None"] = "None";
|
|
12025
|
+
ColorlessContainerDitherType["Diffusion"] = "Diffusion";
|
|
12026
|
+
ColorlessContainerDitherType["Pattern"] = "Pattern";
|
|
12027
|
+
ColorlessContainerDitherType["Noise"] = "Noise";
|
|
12028
|
+
})(ColorlessContainerDitherType || (ColorlessContainerDitherType = {}));
|
|
12029
|
+
/** Colorless container format. */
|
|
12030
|
+
var ColorlessContainerFormat;
|
|
12031
|
+
(function (ColorlessContainerFormat) {
|
|
12032
|
+
ColorlessContainerFormat["OneBit"] = "OneBit";
|
|
12033
|
+
ColorlessContainerFormat["Grayscale"] = "Grayscale";
|
|
12034
|
+
ColorlessContainerFormat["Vector"] = "Vector";
|
|
12035
|
+
})(ColorlessContainerFormat || (ColorlessContainerFormat = {}));
|
|
11713
12036
|
/** Conflict types. */
|
|
11714
12037
|
var ConflictType;
|
|
11715
12038
|
(function (ConflictType) {
|
|
@@ -11718,6 +12041,22 @@ var ConflictType;
|
|
|
11718
12041
|
ConflictType["IdConflict"] = "IdConflict";
|
|
11719
12042
|
ConflictType["GeneralConflict"] = "GeneralConflict";
|
|
11720
12043
|
})(ConflictType || (ConflictType = {}));
|
|
12044
|
+
/** Full color container color space. */
|
|
12045
|
+
var ContainerColorSpace;
|
|
12046
|
+
(function (ContainerColorSpace) {
|
|
12047
|
+
ContainerColorSpace["Rgb"] = "Rgb";
|
|
12048
|
+
ContainerColorSpace["Cmyk"] = "Cmyk";
|
|
12049
|
+
ContainerColorSpace["Grayscale"] = "Grayscale";
|
|
12050
|
+
ContainerColorSpace["Lab"] = "Lab";
|
|
12051
|
+
ContainerColorSpace["Spot"] = "Spot";
|
|
12052
|
+
})(ContainerColorSpace || (ContainerColorSpace = {}));
|
|
12053
|
+
/** Container printing mode. */
|
|
12054
|
+
var ContainerPrintingMode;
|
|
12055
|
+
(function (ContainerPrintingMode) {
|
|
12056
|
+
ContainerPrintingMode["FullColor"] = "FullColor";
|
|
12057
|
+
ContainerPrintingMode["LimitedColor"] = "LimitedColor";
|
|
12058
|
+
ContainerPrintingMode["Colorless"] = "Colorless";
|
|
12059
|
+
})(ContainerPrintingMode || (ContainerPrintingMode = {}));
|
|
11721
12060
|
var DesignElementType;
|
|
11722
12061
|
(function (DesignElementType) {
|
|
11723
12062
|
DesignElementType["Product"] = "Product";
|
|
@@ -11908,5 +12247,5 @@ DesignAtomsApiModule.decorators = [
|
|
|
11908
12247
|
* Generated bundle index. Do not edit.
|
|
11909
12248
|
*/
|
|
11910
12249
|
|
|
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 };
|
|
12250
|
+
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, ItemSourceType, ItemType, MockupPreviewFitMode, MockupPreviewFormat, PlaceholderItemContentType, ProductPatchType, ProductPreviewFormat, ProductProofFormat, ProductProofInterpolationMode, TextAlignment, TextVerticalAlignment };
|
|
11912
12251
|
//# sourceMappingURL=aurigma-ng-design-atoms-api-client.js.map
|