@aurigma/ng-design-atoms-api-client 2.74.1 → 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.
@@ -32,4 +32,4 @@ DesignAtomsApiModule.decorators = [
32
32
  exports: []
33
33
  },] }
34
34
  ];
35
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVzaWduLWF0b21zLWFwaS5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiL2hvbWUvYXVyaWdtYS9hZ2VudHMvQ0NIMDIvX3dvcmsvOC9zL3NyYy9BdXJpZ21hLkRlc2lnbkF0b21zQXBpLlR5cGVTY3JpcHRBcGlDbGllbnQvQW5ndWxhci9hcGktY2xpZW50L3Byb2plY3RzL2NsaWVudC9zcmMvIiwic291cmNlcyI6WyJsaWIvZGVzaWduLWF0b21zLWFwaS5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFzQixRQUFRLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDNUQsT0FBTyxLQUFLLG9CQUFvQixNQUFNLDJCQUEyQixDQUFDO0FBRWxFLFdBQVc7QUFDWCxNQUFNLFVBQVUsNEJBQTRCLENBQUMsS0FBYSxFQUFFLE1BQWMsRUFBRSxTQUFpQixRQUFRO0lBQ25HLE1BQU0sT0FBTyxHQUFHLElBQUksb0JBQW9CLENBQUMsc0JBQXNCLEVBQUUsQ0FBQztJQUNsRSxPQUFPLENBQUMsTUFBTSxHQUFHLE1BQU0sQ0FBQztJQUN4QixPQUFPLENBQUMsTUFBTSxHQUFHLE1BQU0sQ0FBQztJQUN4QixPQUFPLENBQUMscUJBQXFCLENBQUMsS0FBSyxDQUFDLENBQUM7SUFDckMsT0FBTyxPQUFPLENBQUM7QUFDakIsQ0FBQztBQVFELE1BQU0sT0FBTyxvQkFBb0I7SUFDL0IsTUFBTSxDQUFDLE9BQU8sQ0FBQyxL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SBhcGlLZXk7XG4gIGFwaUNvbmYuYXBpVXJsID0gYXBpVXJsO1xuICBhcGlDb25mLnNldEF1dGhvcml6YXRpb25Ub2tlbih0b2tlbik7XG4gIHJldHVybiBhcGlDb25mO1xufVxuXG5ATmdNb2R1bGUoe1xuICBkZWNsYXJhdGlvbnM6IFtdLFxuICBpbXBvcnRzOiBbXG4gIF0sXG4gIGV4cG9ydHM6IFtdXG59KVxuZXhwb3J0IGNsYXNzIERlc2lnbkF0b21zQXBpTW9kdWxlIHtcbiAgc3RhdGljIGZvclJvb3QodG9rZW46IHN0cmluZywgYXBpVXJsOiBzdHJpbmcsIGFwaUtleTogc3RyaW5nID0gJ0FwaUtleScpOiBNb2R1bGVXaXRoUHJvdmlkZXJzPERlc2lnbkF0b21zQXBpTW9kdWxlPiB7XG4gICAgcmV0dXJuIHtcbiAgICAgIG5nTW9kdWxlOiBEZXNpZ25BdG9tc0FwaU1vZHVsZSxcbiAgICAgIHByb3ZpZGVyczogW1xuICAgICAgICB7XG4gICAgICAgICAgcHJvdmlkZTogRGVzaWduQXRvbXNBcGlDbGllbnQuQVBJX0JBU0VfVVJMLFxuICAgICAgICAgIHVzZVZhbHVlOiBhcGlVcmxcbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIHByb3ZpZGU6IERlc2lnbkF0b21zQXBpQ2xpZW50LkFwaUNsaWVudENvbmZpZ3VyYXRpb24sXG4gICAgICAgICAgdXNlRmFjdG9yeTogQ3JlYXRlQXBpQ2xpZW50Q29uZmlndXJhdGlvbi5iaW5kKHRoaXMsIHRva2VuICwgYXBpVXJsLCBhcGlLZXkpXG4gICAgICAgIH0sXG4gICAgICBdXG4gICAgfTtcbiAgfVxufVxuIl19
35
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVzaWduLWF0b21zLWFwaS5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiL2hvbWUvYXVyaWdtYS9hZ2VudHMvQ0NIM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mluZywgYXBpVXJsOiBzdHJpbmcsIGFwaUtleTogc3RyaW5nID0gJ0FwaUtleScpOiBNb2R1bGVXaXRoUHJvdmlkZXJzPERlc2lnbkF0b21zQXBpTW9kdWxlPiB7XG4gICAgcmV0dXJuIHtcbiAgICAgIG5nTW9kdWxlOiBEZXNpZ25BdG9tc0FwaU1vZHVsZSxcbiAgICAgIHByb3ZpZGVyczogW1xuICAgICAgICB7XG4gICAgICAgICAgcHJvdmlkZTogRGVzaWduQXRvbXNBcGlDbGllbnQuQVBJX0JBU0VfVVJMLFxuICAgICAgICAgIHVzZVZhbHVlOiBhcGlVcmxcbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIHByb3ZpZGU6IERlc2lnbkF0b21zQXBpQ2xpZW50LkFwaUNsaWVudENvbmZpZ3VyYXRpb24sXG4gICAgICAgICAgdXNlRmFjdG9yeTogQ3JlYXRlQXBpQ2xpZW50Q29uZmlndXJhdGlvbi5iaW5kKHRoaXMsIHRva2VuICwgYXBpVXJsLCBhcGlLZXkpXG4gICAgICAgIH0sXG4gICAgICBdXG4gICAgfTtcbiAgfVxufVxuIl19
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIvaG9tZS9hdXJpZ21hL2FnZW50cy9DQ0gwMi9fd29yay84L3Mvc3JjL0F1cmlnbWEuRGVzaWduQXRvbXNBcGkuVHlwZVNjcmlwdEFwaUNsaWVudC9Bbmd1bGFyL2FwaS1jbGllbnQvcHJvamVjdHMvY2xpZW50L3NyYy8iLCJzb3VyY2VzIjpbInB1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLCtCQUErQixDQUFDO0FBQzlDLGNBQWMsK0JBQStCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIGNsaWVudFxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vbGliL2Rlc2lnbi1hdG9tcy1hcGkubW9kdWxlJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2Rlc2lnbi1hdG9tcy1hcGktY2xpZW50JztcbiJdfQ==
6
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIvaG9tZS9hdXJpZ21hL2FnZW50cy9DQ0gwNC9fd29yay82L3Mvc3JjL0F1cmlnbWEuRGVzaWduQXRvbXNBcGkuVHlwZVNjcmlwdEFwaUNsaWVudC9Bbmd1bGFyL2FwaS1jbGllbnQvcHJvamVjdHMvY2xpZW50L3NyYy8iLCJzb3VyY2VzIjpbInB1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLCtCQUErQixDQUFDO0FBQzlDLGNBQWMsK0JBQStCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIGNsaWVudFxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vbGliL2Rlc2lnbi1hdG9tcy1hcGkubW9kdWxlJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2Rlc2lnbi1hdG9tcy1hcGktY2xpZW50JztcbiJdfQ==
@@ -2730,6 +2730,116 @@ DesignAtomsImagesApiClient.ctorParameters = () => [
2730
2730
  { type: HttpClient, decorators: [{ type: Inject, args: [HttpClient,] }] },
2731
2731
  { type: String, decorators: [{ type: Optional }, { type: Inject, args: [API_BASE_URL,] }] }
2732
2732
  ];
2733
+ class DesignAtomsMockups2dApiClient extends ApiClientBase {
2734
+ constructor(configuration, http, baseUrl) {
2735
+ super(configuration);
2736
+ this.jsonParseReviver = undefined;
2737
+ this.http = http;
2738
+ this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : this.getBaseUrl("");
2739
+ }
2740
+ /**
2741
+ * Renders a mockup preview with the specified parameters.
2742
+ * @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied
2743
+ (default value is 'false').
2744
+ * @param tenantId (optional) Tenant ID.
2745
+ * @param body (optional) Render model with preview parameters.
2746
+ * @return Success
2747
+ */
2748
+ renderMockupPreview(attachment, tenantId, body) {
2749
+ let url_ = this.baseUrl + "/api/atoms/v1/mockups-2d/render-preview?";
2750
+ if (attachment !== undefined && attachment !== null)
2751
+ url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
2752
+ if (tenantId === null)
2753
+ throw new Error("The parameter 'tenantId' cannot be null.");
2754
+ else if (tenantId !== undefined)
2755
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
2756
+ url_ = url_.replace(/[?&]$/, "");
2757
+ const content_ = JSON.stringify(body);
2758
+ let options_ = {
2759
+ body: content_,
2760
+ observe: "response",
2761
+ responseType: "blob",
2762
+ headers: new HttpHeaders({
2763
+ "Content-Type": "application/json",
2764
+ "Accept": "application/octet-stream"
2765
+ })
2766
+ };
2767
+ return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
2768
+ return this.http.request("post", url_, transformedOptions_);
2769
+ })).pipe(mergeMap((response_) => {
2770
+ return this.transformResult(url_, response_, (r) => this.processRenderMockupPreview(r));
2771
+ })).pipe(catchError((response_) => {
2772
+ if (response_ instanceof HttpResponseBase) {
2773
+ try {
2774
+ return this.transformResult(url_, response_, (r) => this.processRenderMockupPreview(r));
2775
+ }
2776
+ catch (e) {
2777
+ return throwError(e);
2778
+ }
2779
+ }
2780
+ else
2781
+ return throwError(response_);
2782
+ }));
2783
+ }
2784
+ processRenderMockupPreview(response) {
2785
+ const status = response.status;
2786
+ const responseBlob = response instanceof HttpResponse ? response.body :
2787
+ response.error instanceof Blob ? response.error : undefined;
2788
+ let _headers = {};
2789
+ if (response.headers) {
2790
+ for (let key of response.headers.keys()) {
2791
+ _headers[key] = response.headers.get(key);
2792
+ }
2793
+ }
2794
+ if (status === 200 || status === 206) {
2795
+ const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
2796
+ const fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
2797
+ const fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
2798
+ return of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
2799
+ }
2800
+ else if (status === 404) {
2801
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
2802
+ let result404 = null;
2803
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
2804
+ return throwException("Not Found", status, _responseText, _headers, result404);
2805
+ }));
2806
+ }
2807
+ else if (status === 409) {
2808
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
2809
+ let result409 = null;
2810
+ result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
2811
+ return throwException("Conflict", status, _responseText, _headers, result409);
2812
+ }));
2813
+ }
2814
+ else if (status === 401) {
2815
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
2816
+ return throwException("Unauthorized", status, _responseText, _headers);
2817
+ }));
2818
+ }
2819
+ else if (status === 403) {
2820
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
2821
+ return throwException("Forbidden", status, _responseText, _headers);
2822
+ }));
2823
+ }
2824
+ else if (status !== 200 && status !== 204) {
2825
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
2826
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
2827
+ }));
2828
+ }
2829
+ return of(null);
2830
+ }
2831
+ }
2832
+ DesignAtomsMockups2dApiClient.ɵprov = ɵɵdefineInjectable({ factory: function DesignAtomsMockups2dApiClient_Factory() { return new DesignAtomsMockups2dApiClient(ɵɵinject(ApiClientConfiguration), ɵɵinject(HttpClient), ɵɵinject(API_BASE_URL, 8)); }, token: DesignAtomsMockups2dApiClient, providedIn: "root" });
2833
+ DesignAtomsMockups2dApiClient.decorators = [
2834
+ { type: Injectable, args: [{
2835
+ providedIn: 'root'
2836
+ },] }
2837
+ ];
2838
+ DesignAtomsMockups2dApiClient.ctorParameters = () => [
2839
+ { type: ApiClientConfiguration, decorators: [{ type: Inject, args: [ApiClientConfiguration,] }] },
2840
+ { type: HttpClient, decorators: [{ type: Inject, args: [HttpClient,] }] },
2841
+ { type: String, decorators: [{ type: Optional }, { type: Inject, args: [API_BASE_URL,] }] }
2842
+ ];
2733
2843
  class DesignAtomsMockups3dApiClient extends ApiClientBase {
2734
2844
  constructor(configuration, http, baseUrl) {
2735
2845
  super(configuration);
@@ -3435,6 +3545,303 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
3435
3545
  }
3436
3546
  return of(null);
3437
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
+ }
3438
3845
  /**
3439
3846
  * Deletes a specified print-product container in an existing design file.
3440
3847
  * @param id Design identifier.
@@ -9526,11 +9933,11 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
9526
9933
  * @param resourceId (optional) Resource identifier.
9527
9934
  * @param privateDesignId (optional) Private design identifier.
9528
9935
  * @param privateStorageOwner (optional) Private storage owner identifier.
9529
- * @param tenantIdQuery (optional) Tenant identifier.
9936
+ * @param tenantId (optional) Tenant ID.
9530
9937
  * @return Created
9531
9938
  * @deprecated
9532
9939
  */
9533
- createPrivateDesignFromResource(resourceId, privateDesignId, privateStorageOwner, tenantIdQuery) {
9940
+ createPrivateDesignFromResource(resourceId, privateDesignId, privateStorageOwner, tenantId) {
9534
9941
  let url_ = this.baseUrl + "/api/atoms/v1/private-designs/from-resource?";
9535
9942
  if (resourceId !== undefined && resourceId !== null)
9536
9943
  url_ += "resourceId=" + encodeURIComponent("" + resourceId) + "&";
@@ -9538,10 +9945,10 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
9538
9945
  url_ += "privateDesignId=" + encodeURIComponent("" + privateDesignId) + "&";
9539
9946
  if (privateStorageOwner !== undefined && privateStorageOwner !== null)
9540
9947
  url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
9541
- if (tenantIdQuery === null)
9542
- throw new Error("The parameter 'tenantIdQuery' cannot be null.");
9543
- else if (tenantIdQuery !== undefined)
9544
- url_ += "tenantId=" + encodeURIComponent("" + tenantIdQuery) + "&";
9948
+ if (tenantId === null)
9949
+ throw new Error("The parameter 'tenantId' cannot be null.");
9950
+ else if (tenantId !== undefined)
9951
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
9545
9952
  url_ = url_.replace(/[?&]$/, "");
9546
9953
  let options_ = {
9547
9954
  observe: "response",
@@ -11600,6 +12007,32 @@ DesignAtomsViewerApiClient.ctorParameters = () => [
11600
12007
  { type: HttpClient, decorators: [{ type: Inject, args: [HttpClient,] }] },
11601
12008
  { type: String, decorators: [{ type: Optional }, { type: Inject, args: [API_BASE_URL,] }] }
11602
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 = {}));
11603
12036
  /** Conflict types. */
11604
12037
  var ConflictType;
11605
12038
  (function (ConflictType) {
@@ -11608,6 +12041,22 @@ var ConflictType;
11608
12041
  ConflictType["IdConflict"] = "IdConflict";
11609
12042
  ConflictType["GeneralConflict"] = "GeneralConflict";
11610
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 = {}));
11611
12060
  var DesignElementType;
11612
12061
  (function (DesignElementType) {
11613
12062
  DesignElementType["Product"] = "Product";
@@ -11652,6 +12101,20 @@ var ItemType;
11652
12101
  ItemType["Clipart"] = "Clipart";
11653
12102
  ItemType["Group"] = "Group";
11654
12103
  })(ItemType || (ItemType = {}));
12104
+ /** Mockup preview fitting mode. */
12105
+ var MockupPreviewFitMode;
12106
+ (function (MockupPreviewFitMode) {
12107
+ MockupPreviewFitMode["Fit"] = "Fit";
12108
+ MockupPreviewFitMode["Shrink"] = "Shrink";
12109
+ MockupPreviewFitMode["Resize"] = "Resize";
12110
+ MockupPreviewFitMode["Fill"] = "Fill";
12111
+ })(MockupPreviewFitMode || (MockupPreviewFitMode = {}));
12112
+ /** Mockup preview file format. */
12113
+ var MockupPreviewFormat;
12114
+ (function (MockupPreviewFormat) {
12115
+ MockupPreviewFormat["Jpeg"] = "Jpeg";
12116
+ MockupPreviewFormat["Png"] = "Png";
12117
+ })(MockupPreviewFormat || (MockupPreviewFormat = {}));
11655
12118
  /** Placeholder item content type. */
11656
12119
  var PlaceholderItemContentType;
11657
12120
  (function (PlaceholderItemContentType) {
@@ -11784,5 +12247,5 @@ DesignAtomsApiModule.decorators = [
11784
12247
  * Generated bundle index. Do not edit.
11785
12248
  */
11786
12249
 
11787
- export { API_BASE_URL, ApiClientBase, ApiClientConfiguration, ApiException, BuildInfoApiClient, ConflictType, CreateApiClientConfiguration, DesignAtomsApiModule, DesignAtomsCompatibilityApiClient, DesignAtomsImagesApiClient, DesignAtomsMockups3dApiClient, DesignAtomsPalettesApiClient, DesignAtomsPrintProductApiClient, DesignAtomsPrintProductItemsApiClient, DesignAtomsServiceApiClient, DesignAtomsViewerApiClient, DesignElementType, ImageExtractionFormat, ImagePreviewFitMode, ImagePreviewFormat, ItemSourceType, ItemType, 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 };
11788
12251
  //# sourceMappingURL=aurigma-ng-design-atoms-api-client.js.map