@aurigma/ng-design-atoms-api-client 2.21.1 → 2.26.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.
@@ -3081,7 +3081,6 @@
3081
3081
  responseType: "blob",
3082
3082
  headers: new i1.HttpHeaders({
3083
3083
  "Content-Type": "application/json",
3084
- "Accept": "application/json"
3085
3084
  })
3086
3085
  };
3087
3086
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
@@ -3125,9 +3124,7 @@
3125
3124
  }
3126
3125
  if (status === 200) {
3127
3126
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3128
- var result200 = null;
3129
- result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
3130
- return rxjs.of(result200);
3127
+ return rxjs.of(null);
3131
3128
  }));
3132
3129
  }
3133
3130
  else if (status === 404) {
@@ -3466,9 +3463,9 @@
3466
3463
  return rxjs.of(null);
3467
3464
  };
3468
3465
  /**
3469
- * Flatten items
3466
+ * Flatten items.
3470
3467
  * @param tenantId (optional) Tenant identifier
3471
- * @param body (optional) Items to flatten
3468
+ * @param body (optional) Items to flatten.
3472
3469
  * @return Success
3473
3470
  */
3474
3471
  DesignAtomsServiceApiClient.prototype.flattenItems = function (tenantId, body) {
@@ -3659,11 +3656,273 @@
3659
3656
  }
3660
3657
  return rxjs.of(null);
3661
3658
  };
3659
+ /**
3660
+ * Creates a private design from a public design.
3661
+ * @param designId (optional) Public design ID.
3662
+ * @param privateDesignId (optional) Private design ID.
3663
+ * @param privateStorageOwner (optional) Private storage owner ID.
3664
+ * @param tenantId (optional) Tenant identifier
3665
+ * @return Success
3666
+ */
3667
+ DesignAtomsServiceApiClient.prototype.createPrivateDesignFromDesign = function (designId, privateDesignId, privateStorageOwner, tenantId) {
3668
+ var _this = this;
3669
+ var url_ = this.baseUrl + "/api/atoms/v1/private-designs/from-design?";
3670
+ if (designId !== undefined && designId !== null)
3671
+ url_ += "designId=" + encodeURIComponent("" + designId) + "&";
3672
+ if (privateDesignId !== undefined && privateDesignId !== null)
3673
+ url_ += "privateDesignId=" + encodeURIComponent("" + privateDesignId) + "&";
3674
+ if (privateStorageOwner !== undefined && privateStorageOwner !== null)
3675
+ url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
3676
+ if (tenantId === null)
3677
+ throw new Error("The parameter 'tenantId' cannot be null.");
3678
+ else if (tenantId !== undefined)
3679
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3680
+ url_ = url_.replace(/[?&]$/, "");
3681
+ var options_ = {
3682
+ observe: "response",
3683
+ responseType: "blob",
3684
+ headers: new i1.HttpHeaders({})
3685
+ };
3686
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
3687
+ return _this.http.request("post", url_, transformedOptions_);
3688
+ })).pipe(operators.mergeMap(function (response_) {
3689
+ return _this.transformResult(url_, response_, function (r) { return _this.processCreatePrivateDesignFromDesign(r); });
3690
+ })).pipe(operators.catchError(function (response_) {
3691
+ if (response_ instanceof i1.HttpResponseBase) {
3692
+ try {
3693
+ return _this.transformResult(url_, response_, function (r) { return _this.processCreatePrivateDesignFromDesign(r); });
3694
+ }
3695
+ catch (e) {
3696
+ return rxjs.throwError(e);
3697
+ }
3698
+ }
3699
+ else
3700
+ return rxjs.throwError(response_);
3701
+ }));
3702
+ };
3703
+ DesignAtomsServiceApiClient.prototype.processCreatePrivateDesignFromDesign = function (response) {
3704
+ var e_39, _a;
3705
+ var status = response.status;
3706
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
3707
+ response.error instanceof Blob ? response.error : undefined;
3708
+ var _headers = {};
3709
+ if (response.headers) {
3710
+ try {
3711
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
3712
+ var key = _c.value;
3713
+ _headers[key] = response.headers.get(key);
3714
+ }
3715
+ }
3716
+ catch (e_39_1) { e_39 = { error: e_39_1 }; }
3717
+ finally {
3718
+ try {
3719
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3720
+ }
3721
+ finally { if (e_39) throw e_39.error; }
3722
+ }
3723
+ }
3724
+ if (status === 201) {
3725
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3726
+ return rxjs.of(null);
3727
+ }));
3728
+ }
3729
+ else if (status === 401) {
3730
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3731
+ return throwException("Unauthorized", status, _responseText, _headers);
3732
+ }));
3733
+ }
3734
+ else if (status === 403) {
3735
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3736
+ return throwException("Forbidden", status, _responseText, _headers);
3737
+ }));
3738
+ }
3739
+ else if (status !== 200 && status !== 204) {
3740
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3741
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
3742
+ }));
3743
+ }
3744
+ return rxjs.of(null);
3745
+ };
3746
+ /**
3747
+ * Creates a private design from a public resource.
3748
+ * @param resourceId (optional) Resource ID.
3749
+ * @param privateDesignId (optional) Private design ID.
3750
+ * @param privateStorageOwner (optional) Private storage owner ID.
3751
+ * @param tenantId (optional) Tenant identifier
3752
+ * @return Success
3753
+ */
3754
+ DesignAtomsServiceApiClient.prototype.createPrivateDesignFromResource = function (resourceId, privateDesignId, privateStorageOwner, tenantId) {
3755
+ var _this = this;
3756
+ var url_ = this.baseUrl + "/api/atoms/v1/private-designs/from-resource?";
3757
+ if (resourceId !== undefined && resourceId !== null)
3758
+ url_ += "resourceId=" + encodeURIComponent("" + resourceId) + "&";
3759
+ if (privateDesignId !== undefined && privateDesignId !== null)
3760
+ url_ += "privateDesignId=" + encodeURIComponent("" + privateDesignId) + "&";
3761
+ if (privateStorageOwner !== undefined && privateStorageOwner !== null)
3762
+ url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
3763
+ if (tenantId === null)
3764
+ throw new Error("The parameter 'tenantId' cannot be null.");
3765
+ else if (tenantId !== undefined)
3766
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3767
+ url_ = url_.replace(/[?&]$/, "");
3768
+ var options_ = {
3769
+ observe: "response",
3770
+ responseType: "blob",
3771
+ headers: new i1.HttpHeaders({})
3772
+ };
3773
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
3774
+ return _this.http.request("post", url_, transformedOptions_);
3775
+ })).pipe(operators.mergeMap(function (response_) {
3776
+ return _this.transformResult(url_, response_, function (r) { return _this.processCreatePrivateDesignFromResource(r); });
3777
+ })).pipe(operators.catchError(function (response_) {
3778
+ if (response_ instanceof i1.HttpResponseBase) {
3779
+ try {
3780
+ return _this.transformResult(url_, response_, function (r) { return _this.processCreatePrivateDesignFromResource(r); });
3781
+ }
3782
+ catch (e) {
3783
+ return rxjs.throwError(e);
3784
+ }
3785
+ }
3786
+ else
3787
+ return rxjs.throwError(response_);
3788
+ }));
3789
+ };
3790
+ DesignAtomsServiceApiClient.prototype.processCreatePrivateDesignFromResource = function (response) {
3791
+ var e_40, _a;
3792
+ var status = response.status;
3793
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
3794
+ response.error instanceof Blob ? response.error : undefined;
3795
+ var _headers = {};
3796
+ if (response.headers) {
3797
+ try {
3798
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
3799
+ var key = _c.value;
3800
+ _headers[key] = response.headers.get(key);
3801
+ }
3802
+ }
3803
+ catch (e_40_1) { e_40 = { error: e_40_1 }; }
3804
+ finally {
3805
+ try {
3806
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3807
+ }
3808
+ finally { if (e_40) throw e_40.error; }
3809
+ }
3810
+ }
3811
+ if (status === 201) {
3812
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3813
+ return rxjs.of(null);
3814
+ }));
3815
+ }
3816
+ else if (status === 401) {
3817
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3818
+ return throwException("Unauthorized", status, _responseText, _headers);
3819
+ }));
3820
+ }
3821
+ else if (status === 403) {
3822
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3823
+ return throwException("Forbidden", status, _responseText, _headers);
3824
+ }));
3825
+ }
3826
+ else if (status !== 200 && status !== 204) {
3827
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3828
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
3829
+ }));
3830
+ }
3831
+ return rxjs.of(null);
3832
+ };
3833
+ /**
3834
+ * Renders a design with the specified parameters.
3835
+ * @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied (default value is 'false').
3836
+ * @param tenantId (optional) Tenant identifier
3837
+ * @param body (optional) Render model with preview parameters.
3838
+ * @return Success
3839
+ */
3840
+ DesignAtomsServiceApiClient.prototype.renderDesign = function (attachment, tenantId, body) {
3841
+ var _this = this;
3842
+ var url_ = this.baseUrl + "/api/atoms/v1/render-design-preview?";
3843
+ if (attachment !== undefined && attachment !== null)
3844
+ url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
3845
+ if (tenantId === null)
3846
+ throw new Error("The parameter 'tenantId' cannot be null.");
3847
+ else if (tenantId !== undefined)
3848
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3849
+ url_ = url_.replace(/[?&]$/, "");
3850
+ var content_ = JSON.stringify(body);
3851
+ var options_ = {
3852
+ body: content_,
3853
+ observe: "response",
3854
+ responseType: "blob",
3855
+ headers: new i1.HttpHeaders({
3856
+ "Content-Type": "application/json",
3857
+ "Accept": "application/octet-stream"
3858
+ })
3859
+ };
3860
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
3861
+ return _this.http.request("post", url_, transformedOptions_);
3862
+ })).pipe(operators.mergeMap(function (response_) {
3863
+ return _this.transformResult(url_, response_, function (r) { return _this.processRenderDesign(r); });
3864
+ })).pipe(operators.catchError(function (response_) {
3865
+ if (response_ instanceof i1.HttpResponseBase) {
3866
+ try {
3867
+ return _this.transformResult(url_, response_, function (r) { return _this.processRenderDesign(r); });
3868
+ }
3869
+ catch (e) {
3870
+ return rxjs.throwError(e);
3871
+ }
3872
+ }
3873
+ else
3874
+ return rxjs.throwError(response_);
3875
+ }));
3876
+ };
3877
+ DesignAtomsServiceApiClient.prototype.processRenderDesign = function (response) {
3878
+ var e_41, _a;
3879
+ var status = response.status;
3880
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
3881
+ response.error instanceof Blob ? response.error : undefined;
3882
+ var _headers = {};
3883
+ if (response.headers) {
3884
+ try {
3885
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
3886
+ var key = _c.value;
3887
+ _headers[key] = response.headers.get(key);
3888
+ }
3889
+ }
3890
+ catch (e_41_1) { e_41 = { error: e_41_1 }; }
3891
+ finally {
3892
+ try {
3893
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3894
+ }
3895
+ finally { if (e_41) throw e_41.error; }
3896
+ }
3897
+ }
3898
+ if (status === 200 || status === 206) {
3899
+ var contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
3900
+ var fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
3901
+ var fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
3902
+ return rxjs.of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
3903
+ }
3904
+ else if (status === 401) {
3905
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3906
+ return throwException("Unauthorized", status, _responseText, _headers);
3907
+ }));
3908
+ }
3909
+ else if (status === 403) {
3910
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3911
+ return throwException("Forbidden", status, _responseText, _headers);
3912
+ }));
3913
+ }
3914
+ else if (status !== 200 && status !== 204) {
3915
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3916
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
3917
+ }));
3918
+ }
3919
+ return rxjs.of(null);
3920
+ };
3662
3921
  /**
3663
3922
  * Render product proof image with specified parameters.
3664
- * @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied (default value is 'false')
3923
+ * @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied (default value is 'false').
3665
3924
  * @param tenantId (optional) Tenant identifier
3666
- * @param body (optional) Preview parameters
3925
+ * @param body (optional) Preview parameters.
3667
3926
  * @return Success
3668
3927
  */
3669
3928
  DesignAtomsServiceApiClient.prototype.renderProduct = function (attachment, tenantId, body) {
@@ -3683,7 +3942,7 @@
3683
3942
  responseType: "blob",
3684
3943
  headers: new i1.HttpHeaders({
3685
3944
  "Content-Type": "application/json",
3686
- "Accept": "application/json"
3945
+ "Accept": "application/octet-stream"
3687
3946
  })
3688
3947
  };
3689
3948
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
@@ -3704,7 +3963,7 @@
3704
3963
  }));
3705
3964
  };
3706
3965
  DesignAtomsServiceApiClient.prototype.processRenderProduct = function (response) {
3707
- var e_39, _a;
3966
+ var e_42, _a;
3708
3967
  var status = response.status;
3709
3968
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
3710
3969
  response.error instanceof Blob ? response.error : undefined;
@@ -3716,12 +3975,12 @@
3716
3975
  _headers[key] = response.headers.get(key);
3717
3976
  }
3718
3977
  }
3719
- catch (e_39_1) { e_39 = { error: e_39_1 }; }
3978
+ catch (e_42_1) { e_42 = { error: e_42_1 }; }
3720
3979
  finally {
3721
3980
  try {
3722
3981
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3723
3982
  }
3724
- finally { if (e_39) throw e_39.error; }
3983
+ finally { if (e_42) throw e_42.error; }
3725
3984
  }
3726
3985
  }
3727
3986
  if (status === 200 || status === 206) {
@@ -3810,7 +4069,7 @@
3810
4069
  }));
3811
4070
  };
3812
4071
  DesignAtomsViewerApiClient.prototype.processCssFonts = function (response) {
3813
- var e_40, _a;
4072
+ var e_43, _a;
3814
4073
  var _this = this;
3815
4074
  var status = response.status;
3816
4075
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3823,12 +4082,12 @@
3823
4082
  _headers[key] = response.headers.get(key);
3824
4083
  }
3825
4084
  }
3826
- catch (e_40_1) { e_40 = { error: e_40_1 }; }
4085
+ catch (e_43_1) { e_43 = { error: e_43_1 }; }
3827
4086
  finally {
3828
4087
  try {
3829
4088
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3830
4089
  }
3831
- finally { if (e_40) throw e_40.error; }
4090
+ finally { if (e_43) throw e_43.error; }
3832
4091
  }
3833
4092
  }
3834
4093
  if (status === 200) {
@@ -3885,7 +4144,7 @@
3885
4144
  }));
3886
4145
  };
3887
4146
  DesignAtomsViewerApiClient.prototype.processFonts = function (response) {
3888
- var e_41, _a;
4147
+ var e_44, _a;
3889
4148
  var _this = this;
3890
4149
  var status = response.status;
3891
4150
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3898,12 +4157,12 @@
3898
4157
  _headers[key] = response.headers.get(key);
3899
4158
  }
3900
4159
  }
3901
- catch (e_41_1) { e_41 = { error: e_41_1 }; }
4160
+ catch (e_44_1) { e_44 = { error: e_44_1 }; }
3902
4161
  finally {
3903
4162
  try {
3904
4163
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3905
4164
  }
3906
- finally { if (e_41) throw e_41.error; }
4165
+ finally { if (e_44) throw e_44.error; }
3907
4166
  }
3908
4167
  }
3909
4168
  if (status === 200 || status === 206) {
@@ -3966,7 +4225,7 @@
3966
4225
  }));
3967
4226
  };
3968
4227
  DesignAtomsViewerApiClient.prototype.processGetCssFont = function (response) {
3969
- var e_42, _a;
4228
+ var e_45, _a;
3970
4229
  var _this = this;
3971
4230
  var status = response.status;
3972
4231
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3979,12 +4238,12 @@
3979
4238
  _headers[key] = response.headers.get(key);
3980
4239
  }
3981
4240
  }
3982
- catch (e_42_1) { e_42 = { error: e_42_1 }; }
4241
+ catch (e_45_1) { e_45 = { error: e_45_1 }; }
3983
4242
  finally {
3984
4243
  try {
3985
4244
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3986
4245
  }
3987
- finally { if (e_42) throw e_42.error; }
4246
+ finally { if (e_45) throw e_45.error; }
3988
4247
  }
3989
4248
  }
3990
4249
  if (status === 200 || status === 206) {
@@ -4048,7 +4307,7 @@
4048
4307
  }));
4049
4308
  };
4050
4309
  DesignAtomsViewerApiClient.prototype.processGetImageSize = function (response) {
4051
- var e_43, _a;
4310
+ var e_46, _a;
4052
4311
  var _this = this;
4053
4312
  var status = response.status;
4054
4313
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4061,12 +4320,12 @@
4061
4320
  _headers[key] = response.headers.get(key);
4062
4321
  }
4063
4322
  }
4064
- catch (e_43_1) { e_43 = { error: e_43_1 }; }
4323
+ catch (e_46_1) { e_46 = { error: e_46_1 }; }
4065
4324
  finally {
4066
4325
  try {
4067
4326
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4068
4327
  }
4069
- finally { if (e_43) throw e_43.error; }
4328
+ finally { if (e_46) throw e_46.error; }
4070
4329
  }
4071
4330
  }
4072
4331
  if (status === 200) {
@@ -4124,7 +4383,7 @@
4124
4383
  }));
4125
4384
  };
4126
4385
  DesignAtomsViewerApiClient.prototype.processGetShapeBounds = function (response) {
4127
- var e_44, _a;
4386
+ var e_47, _a;
4128
4387
  var _this = this;
4129
4388
  var status = response.status;
4130
4389
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4137,12 +4396,12 @@
4137
4396
  _headers[key] = response.headers.get(key);
4138
4397
  }
4139
4398
  }
4140
- catch (e_44_1) { e_44 = { error: e_44_1 }; }
4399
+ catch (e_47_1) { e_47 = { error: e_47_1 }; }
4141
4400
  finally {
4142
4401
  try {
4143
4402
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4144
4403
  }
4145
- finally { if (e_44) throw e_44.error; }
4404
+ finally { if (e_47) throw e_47.error; }
4146
4405
  }
4147
4406
  }
4148
4407
  if (status === 200) {
@@ -4200,7 +4459,7 @@
4200
4459
  }));
4201
4460
  };
4202
4461
  DesignAtomsViewerApiClient.prototype.processGetWatermarkItems = function (response) {
4203
- var e_45, _a;
4462
+ var e_48, _a;
4204
4463
  var _this = this;
4205
4464
  var status = response.status;
4206
4465
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4213,12 +4472,12 @@
4213
4472
  _headers[key] = response.headers.get(key);
4214
4473
  }
4215
4474
  }
4216
- catch (e_45_1) { e_45 = { error: e_45_1 }; }
4475
+ catch (e_48_1) { e_48 = { error: e_48_1 }; }
4217
4476
  finally {
4218
4477
  try {
4219
4478
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4220
4479
  }
4221
- finally { if (e_45) throw e_45.error; }
4480
+ finally { if (e_48) throw e_48.error; }
4222
4481
  }
4223
4482
  }
4224
4483
  if (status === 200) {
@@ -4320,7 +4579,7 @@
4320
4579
  }));
4321
4580
  };
4322
4581
  DesignAtomsViewerApiClient.prototype.processImg = function (response) {
4323
- var e_46, _a;
4582
+ var e_49, _a;
4324
4583
  var _this = this;
4325
4584
  var status = response.status;
4326
4585
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4333,12 +4592,12 @@
4333
4592
  _headers[key] = response.headers.get(key);
4334
4593
  }
4335
4594
  }
4336
- catch (e_46_1) { e_46 = { error: e_46_1 }; }
4595
+ catch (e_49_1) { e_49 = { error: e_49_1 }; }
4337
4596
  finally {
4338
4597
  try {
4339
4598
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4340
4599
  }
4341
- finally { if (e_46) throw e_46.error; }
4600
+ finally { if (e_49) throw e_49.error; }
4342
4601
  }
4343
4602
  }
4344
4603
  if (status === 200 || status === 206) {
@@ -4403,7 +4662,7 @@
4403
4662
  }));
4404
4663
  };
4405
4664
  DesignAtomsViewerApiClient.prototype.processGetLicense = function (response) {
4406
- var e_47, _a;
4665
+ var e_50, _a;
4407
4666
  var _this = this;
4408
4667
  var status = response.status;
4409
4668
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4416,12 +4675,12 @@
4416
4675
  _headers[key] = response.headers.get(key);
4417
4676
  }
4418
4677
  }
4419
- catch (e_47_1) { e_47 = { error: e_47_1 }; }
4678
+ catch (e_50_1) { e_50 = { error: e_50_1 }; }
4420
4679
  finally {
4421
4680
  try {
4422
4681
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4423
4682
  }
4424
- finally { if (e_47) throw e_47.error; }
4683
+ finally { if (e_50) throw e_50.error; }
4425
4684
  }
4426
4685
  }
4427
4686
  if (status === 200) {
@@ -4478,7 +4737,7 @@
4478
4737
  }));
4479
4738
  };
4480
4739
  DesignAtomsViewerApiClient.prototype.processPth = function (response) {
4481
- var e_48, _a;
4740
+ var e_51, _a;
4482
4741
  var _this = this;
4483
4742
  var status = response.status;
4484
4743
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4491,12 +4750,12 @@
4491
4750
  _headers[key] = response.headers.get(key);
4492
4751
  }
4493
4752
  }
4494
- catch (e_48_1) { e_48 = { error: e_48_1 }; }
4753
+ catch (e_51_1) { e_51 = { error: e_51_1 }; }
4495
4754
  finally {
4496
4755
  try {
4497
4756
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4498
4757
  }
4499
- finally { if (e_48) throw e_48.error; }
4758
+ finally { if (e_51) throw e_51.error; }
4500
4759
  }
4501
4760
  }
4502
4761
  if (status === 200 || status === 206) {
@@ -4564,7 +4823,7 @@
4564
4823
  }));
4565
4824
  };
4566
4825
  DesignAtomsViewerApiClient.prototype.processResource = function (response) {
4567
- var e_49, _a;
4826
+ var e_52, _a;
4568
4827
  var _this = this;
4569
4828
  var status = response.status;
4570
4829
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4577,12 +4836,12 @@
4577
4836
  _headers[key] = response.headers.get(key);
4578
4837
  }
4579
4838
  }
4580
- catch (e_49_1) { e_49 = { error: e_49_1 }; }
4839
+ catch (e_52_1) { e_52 = { error: e_52_1 }; }
4581
4840
  finally {
4582
4841
  try {
4583
4842
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4584
4843
  }
4585
- finally { if (e_49) throw e_49.error; }
4844
+ finally { if (e_52) throw e_52.error; }
4586
4845
  }
4587
4846
  }
4588
4847
  if (status === 200 || status === 206) {
@@ -4645,7 +4904,7 @@
4645
4904
  }));
4646
4905
  };
4647
4906
  DesignAtomsViewerApiClient.prototype.processSvg = function (response) {
4648
- var e_50, _a;
4907
+ var e_53, _a;
4649
4908
  var _this = this;
4650
4909
  var status = response.status;
4651
4910
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4658,12 +4917,12 @@
4658
4917
  _headers[key] = response.headers.get(key);
4659
4918
  }
4660
4919
  }
4661
- catch (e_50_1) { e_50 = { error: e_50_1 }; }
4920
+ catch (e_53_1) { e_53 = { error: e_53_1 }; }
4662
4921
  finally {
4663
4922
  try {
4664
4923
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4665
4924
  }
4666
- finally { if (e_50) throw e_50.error; }
4925
+ finally { if (e_53) throw e_53.error; }
4667
4926
  }
4668
4927
  }
4669
4928
  if (status === 200 || status === 206) {
@@ -4731,7 +4990,7 @@
4731
4990
  }));
4732
4991
  };
4733
4992
  DesignAtomsViewerApiClient.prototype.processTxt = function (response) {
4734
- var e_51, _a;
4993
+ var e_54, _a;
4735
4994
  var _this = this;
4736
4995
  var status = response.status;
4737
4996
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4744,12 +5003,12 @@
4744
5003
  _headers[key] = response.headers.get(key);
4745
5004
  }
4746
5005
  }
4747
- catch (e_51_1) { e_51 = { error: e_51_1 }; }
5006
+ catch (e_54_1) { e_54 = { error: e_54_1 }; }
4748
5007
  finally {
4749
5008
  try {
4750
5009
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4751
5010
  }
4752
- finally { if (e_51) throw e_51.error; }
5011
+ finally { if (e_54) throw e_54.error; }
4753
5012
  }
4754
5013
  }
4755
5014
  if (status === 200 || status === 206) {
@@ -4818,7 +5077,7 @@
4818
5077
  }));
4819
5078
  };
4820
5079
  DesignAtomsViewerApiClient.prototype.processUpdateArchedTextItemHandler = function (response) {
4821
- var e_52, _a;
5080
+ var e_55, _a;
4822
5081
  var _this = this;
4823
5082
  var status = response.status;
4824
5083
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4831,12 +5090,12 @@
4831
5090
  _headers[key] = response.headers.get(key);
4832
5091
  }
4833
5092
  }
4834
- catch (e_52_1) { e_52 = { error: e_52_1 }; }
5093
+ catch (e_55_1) { e_55 = { error: e_55_1 }; }
4835
5094
  finally {
4836
5095
  try {
4837
5096
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4838
5097
  }
4839
- finally { if (e_52) throw e_52.error; }
5098
+ finally { if (e_55) throw e_55.error; }
4840
5099
  }
4841
5100
  }
4842
5101
  if (status === 200) {
@@ -4894,7 +5153,7 @@
4894
5153
  }));
4895
5154
  };
4896
5155
  DesignAtomsViewerApiClient.prototype.processUpdateAutoScaledTextItemHandler = function (response) {
4897
- var e_53, _a;
5156
+ var e_56, _a;
4898
5157
  var _this = this;
4899
5158
  var status = response.status;
4900
5159
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4907,12 +5166,12 @@
4907
5166
  _headers[key] = response.headers.get(key);
4908
5167
  }
4909
5168
  }
4910
- catch (e_53_1) { e_53 = { error: e_53_1 }; }
5169
+ catch (e_56_1) { e_56 = { error: e_56_1 }; }
4911
5170
  finally {
4912
5171
  try {
4913
5172
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4914
5173
  }
4915
- finally { if (e_53) throw e_53.error; }
5174
+ finally { if (e_56) throw e_56.error; }
4916
5175
  }
4917
5176
  }
4918
5177
  if (status === 200) {
@@ -4970,7 +5229,7 @@
4970
5229
  }));
4971
5230
  };
4972
5231
  DesignAtomsViewerApiClient.prototype.processUpdateBarcodeItemHandler = function (response) {
4973
- var e_54, _a;
5232
+ var e_57, _a;
4974
5233
  var _this = this;
4975
5234
  var status = response.status;
4976
5235
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4983,12 +5242,12 @@
4983
5242
  _headers[key] = response.headers.get(key);
4984
5243
  }
4985
5244
  }
4986
- catch (e_54_1) { e_54 = { error: e_54_1 }; }
5245
+ catch (e_57_1) { e_57 = { error: e_57_1 }; }
4987
5246
  finally {
4988
5247
  try {
4989
5248
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4990
5249
  }
4991
- finally { if (e_54) throw e_54.error; }
5250
+ finally { if (e_57) throw e_57.error; }
4992
5251
  }
4993
5252
  }
4994
5253
  if (status === 200) {
@@ -5046,7 +5305,7 @@
5046
5305
  }));
5047
5306
  };
5048
5307
  DesignAtomsViewerApiClient.prototype.processUpdateBoundedTextItemHandler = function (response) {
5049
- var e_55, _a;
5308
+ var e_58, _a;
5050
5309
  var _this = this;
5051
5310
  var status = response.status;
5052
5311
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5059,12 +5318,12 @@
5059
5318
  _headers[key] = response.headers.get(key);
5060
5319
  }
5061
5320
  }
5062
- catch (e_55_1) { e_55 = { error: e_55_1 }; }
5321
+ catch (e_58_1) { e_58 = { error: e_58_1 }; }
5063
5322
  finally {
5064
5323
  try {
5065
5324
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5066
5325
  }
5067
- finally { if (e_55) throw e_55.error; }
5326
+ finally { if (e_58) throw e_58.error; }
5068
5327
  }
5069
5328
  }
5070
5329
  if (status === 200) {
@@ -5122,7 +5381,7 @@
5122
5381
  }));
5123
5382
  };
5124
5383
  DesignAtomsViewerApiClient.prototype.processUpdateByColorData = function (response) {
5125
- var e_56, _a;
5384
+ var e_59, _a;
5126
5385
  var _this = this;
5127
5386
  var status = response.status;
5128
5387
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5135,12 +5394,12 @@
5135
5394
  _headers[key] = response.headers.get(key);
5136
5395
  }
5137
5396
  }
5138
- catch (e_56_1) { e_56 = { error: e_56_1 }; }
5397
+ catch (e_59_1) { e_59 = { error: e_59_1 }; }
5139
5398
  finally {
5140
5399
  try {
5141
5400
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5142
5401
  }
5143
- finally { if (e_56) throw e_56.error; }
5402
+ finally { if (e_59) throw e_59.error; }
5144
5403
  }
5145
5404
  }
5146
5405
  if (status === 200) {
@@ -5198,7 +5457,7 @@
5198
5457
  }));
5199
5458
  };
5200
5459
  DesignAtomsViewerApiClient.prototype.processUpdateByMultiCallRequest = function (response) {
5201
- var e_57, _a;
5460
+ var e_60, _a;
5202
5461
  var _this = this;
5203
5462
  var status = response.status;
5204
5463
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5211,12 +5470,12 @@
5211
5470
  _headers[key] = response.headers.get(key);
5212
5471
  }
5213
5472
  }
5214
- catch (e_57_1) { e_57 = { error: e_57_1 }; }
5473
+ catch (e_60_1) { e_60 = { error: e_60_1 }; }
5215
5474
  finally {
5216
5475
  try {
5217
5476
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5218
5477
  }
5219
- finally { if (e_57) throw e_57.error; }
5478
+ finally { if (e_60) throw e_60.error; }
5220
5479
  }
5221
5480
  }
5222
5481
  if (status === 200) {
@@ -5274,7 +5533,7 @@
5274
5533
  }));
5275
5534
  };
5276
5535
  DesignAtomsViewerApiClient.prototype.processUpdateCurvedTextItemHandler = function (response) {
5277
- var e_58, _a;
5536
+ var e_61, _a;
5278
5537
  var _this = this;
5279
5538
  var status = response.status;
5280
5539
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5287,12 +5546,12 @@
5287
5546
  _headers[key] = response.headers.get(key);
5288
5547
  }
5289
5548
  }
5290
- catch (e_58_1) { e_58 = { error: e_58_1 }; }
5549
+ catch (e_61_1) { e_61 = { error: e_61_1 }; }
5291
5550
  finally {
5292
5551
  try {
5293
5552
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5294
5553
  }
5295
- finally { if (e_58) throw e_58.error; }
5554
+ finally { if (e_61) throw e_61.error; }
5296
5555
  }
5297
5556
  }
5298
5557
  if (status === 200) {
@@ -5350,7 +5609,7 @@
5350
5609
  }));
5351
5610
  };
5352
5611
  DesignAtomsViewerApiClient.prototype.processUpdateImageItemHandler = function (response) {
5353
- var e_59, _a;
5612
+ var e_62, _a;
5354
5613
  var _this = this;
5355
5614
  var status = response.status;
5356
5615
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5363,12 +5622,12 @@
5363
5622
  _headers[key] = response.headers.get(key);
5364
5623
  }
5365
5624
  }
5366
- catch (e_59_1) { e_59 = { error: e_59_1 }; }
5625
+ catch (e_62_1) { e_62 = { error: e_62_1 }; }
5367
5626
  finally {
5368
5627
  try {
5369
5628
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5370
5629
  }
5371
- finally { if (e_59) throw e_59.error; }
5630
+ finally { if (e_62) throw e_62.error; }
5372
5631
  }
5373
5632
  }
5374
5633
  if (status === 200) {
@@ -5426,7 +5685,7 @@
5426
5685
  }));
5427
5686
  };
5428
5687
  DesignAtomsViewerApiClient.prototype.processUpdatePathBoundedTextItemHandler = function (response) {
5429
- var e_60, _a;
5688
+ var e_63, _a;
5430
5689
  var _this = this;
5431
5690
  var status = response.status;
5432
5691
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5439,12 +5698,12 @@
5439
5698
  _headers[key] = response.headers.get(key);
5440
5699
  }
5441
5700
  }
5442
- catch (e_60_1) { e_60 = { error: e_60_1 }; }
5701
+ catch (e_63_1) { e_63 = { error: e_63_1 }; }
5443
5702
  finally {
5444
5703
  try {
5445
5704
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5446
5705
  }
5447
- finally { if (e_60) throw e_60.error; }
5706
+ finally { if (e_63) throw e_63.error; }
5448
5707
  }
5449
5708
  }
5450
5709
  if (status === 200) {
@@ -5502,7 +5761,7 @@
5502
5761
  }));
5503
5762
  };
5504
5763
  DesignAtomsViewerApiClient.prototype.processUpdatePlainTextItemHandler = function (response) {
5505
- var e_61, _a;
5764
+ var e_64, _a;
5506
5765
  var _this = this;
5507
5766
  var status = response.status;
5508
5767
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5515,12 +5774,12 @@
5515
5774
  _headers[key] = response.headers.get(key);
5516
5775
  }
5517
5776
  }
5518
- catch (e_61_1) { e_61 = { error: e_61_1 }; }
5777
+ catch (e_64_1) { e_64 = { error: e_64_1 }; }
5519
5778
  finally {
5520
5779
  try {
5521
5780
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5522
5781
  }
5523
- finally { if (e_61) throw e_61.error; }
5782
+ finally { if (e_64) throw e_64.error; }
5524
5783
  }
5525
5784
  }
5526
5785
  if (status === 200) {
@@ -5578,7 +5837,7 @@
5578
5837
  }));
5579
5838
  };
5580
5839
  DesignAtomsViewerApiClient.prototype.processUpdateShapeItemHandler = function (response) {
5581
- var e_62, _a;
5840
+ var e_65, _a;
5582
5841
  var _this = this;
5583
5842
  var status = response.status;
5584
5843
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5591,12 +5850,12 @@
5591
5850
  _headers[key] = response.headers.get(key);
5592
5851
  }
5593
5852
  }
5594
- catch (e_62_1) { e_62 = { error: e_62_1 }; }
5853
+ catch (e_65_1) { e_65 = { error: e_65_1 }; }
5595
5854
  finally {
5596
5855
  try {
5597
5856
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5598
5857
  }
5599
- finally { if (e_62) throw e_62.error; }
5858
+ finally { if (e_65) throw e_65.error; }
5600
5859
  }
5601
5860
  }
5602
5861
  if (status === 200) {
@@ -5641,6 +5900,12 @@
5641
5900
  ItemSourceType["ImageStorage"] = "ImageStorage";
5642
5901
  ItemSourceType["PrivateImageStorage"] = "PrivateImageStorage";
5643
5902
  })(exports.ItemSourceType || (exports.ItemSourceType = {}));
5903
+ (function (ProductPreviewFormat) {
5904
+ ProductPreviewFormat["Jpeg"] = "Jpeg";
5905
+ ProductPreviewFormat["Png"] = "Png";
5906
+ ProductPreviewFormat["Tiff"] = "Tiff";
5907
+ ProductPreviewFormat["Pdf"] = "Pdf";
5908
+ })(exports.ProductPreviewFormat || (exports.ProductPreviewFormat = {}));
5644
5909
  (function (ProductProofFormat) {
5645
5910
  ProductProofFormat["Jpeg"] = "Jpeg";
5646
5911
  ProductProofFormat["Png"] = "Png";