@aurigma/ng-design-atoms-api-client 2.34.1 → 2.34.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.
@@ -4725,6 +4725,120 @@
4725
4725
  }
4726
4726
  return rxjs.of(null);
4727
4727
  };
4728
+ /**
4729
+ * Loads product (design model) from resource file taken from storage
4730
+ * @param id Resource identifier
4731
+ * @param privateStorage (optional) If set to 'true' resource will be taken from private storage
4732
+ * @param privateStorageOwner (optional) Private storage owner identifier
4733
+ * @param tenantId (optional) Tenant identifier
4734
+ * @return Success
4735
+ */
4736
+ DesignAtomsServiceApiClient.prototype.loadProductFromResource = function (id, privateStorage, privateStorageOwner, tenantId) {
4737
+ var _this = this;
4738
+ var url_ = this.baseUrl + "/api/atoms/v1/resources/{id}/as-design/model?";
4739
+ if (id === undefined || id === null)
4740
+ throw new Error("The parameter 'id' must be defined.");
4741
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
4742
+ if (privateStorage !== undefined && privateStorage !== null)
4743
+ url_ += "privateStorage=" + encodeURIComponent("" + privateStorage) + "&";
4744
+ if (privateStorageOwner !== undefined && privateStorageOwner !== null)
4745
+ url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
4746
+ if (tenantId === null)
4747
+ throw new Error("The parameter 'tenantId' cannot be null.");
4748
+ else if (tenantId !== undefined)
4749
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
4750
+ url_ = url_.replace(/[?&]$/, "");
4751
+ var options_ = {
4752
+ observe: "response",
4753
+ responseType: "blob",
4754
+ headers: new i1.HttpHeaders({
4755
+ "Accept": "application/json"
4756
+ })
4757
+ };
4758
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
4759
+ return _this.http.request("get", url_, transformedOptions_);
4760
+ })).pipe(operators.mergeMap(function (response_) {
4761
+ return _this.transformResult(url_, response_, function (r) { return _this.processLoadProductFromResource(r); });
4762
+ })).pipe(operators.catchError(function (response_) {
4763
+ if (response_ instanceof i1.HttpResponseBase) {
4764
+ try {
4765
+ return _this.transformResult(url_, response_, function (r) { return _this.processLoadProductFromResource(r); });
4766
+ }
4767
+ catch (e) {
4768
+ return rxjs.throwError(e);
4769
+ }
4770
+ }
4771
+ else
4772
+ return rxjs.throwError(response_);
4773
+ }));
4774
+ };
4775
+ DesignAtomsServiceApiClient.prototype.processLoadProductFromResource = function (response) {
4776
+ var e_47, _a;
4777
+ var _this = this;
4778
+ var status = response.status;
4779
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
4780
+ response.error instanceof Blob ? response.error : undefined;
4781
+ var _headers = {};
4782
+ if (response.headers) {
4783
+ try {
4784
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
4785
+ var key = _c.value;
4786
+ _headers[key] = response.headers.get(key);
4787
+ }
4788
+ }
4789
+ catch (e_47_1) { e_47 = { error: e_47_1 }; }
4790
+ finally {
4791
+ try {
4792
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4793
+ }
4794
+ finally { if (e_47) throw e_47.error; }
4795
+ }
4796
+ }
4797
+ if (status === 200) {
4798
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4799
+ var result200 = null;
4800
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
4801
+ return rxjs.of(result200);
4802
+ }));
4803
+ }
4804
+ else if (status === 404) {
4805
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4806
+ var result404 = null;
4807
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
4808
+ return throwException("Not Found", status, _responseText, _headers, result404);
4809
+ }));
4810
+ }
4811
+ else if (status === 422) {
4812
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4813
+ var result422 = null;
4814
+ result422 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
4815
+ return throwException("Client Error", status, _responseText, _headers, result422);
4816
+ }));
4817
+ }
4818
+ else if (status === 401) {
4819
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4820
+ return throwException("Unauthorized", status, _responseText, _headers);
4821
+ }));
4822
+ }
4823
+ else if (status === 403) {
4824
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4825
+ return throwException("Forbidden", status, _responseText, _headers);
4826
+ }));
4827
+ }
4828
+ else if (status === 500) {
4829
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4830
+ var result500 = null;
4831
+ result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
4832
+ return throwException("Internal server error", status, _responseText, _headers, result500);
4833
+ }));
4834
+ }
4835
+ else if (status !== 200 && status !== 204) {
4836
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4837
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
4838
+ }));
4839
+ }
4840
+ return rxjs.of(null);
4841
+ };
4728
4842
  return DesignAtomsServiceApiClient;
4729
4843
  }(ApiClientBase));
4730
4844
  DesignAtomsServiceApiClient.ɵprov = i0.ɵɵdefineInjectable({ factory: function DesignAtomsServiceApiClient_Factory() { return new DesignAtomsServiceApiClient(i0.ɵɵinject(ApiClientConfiguration), i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(API_BASE_URL, 8)); }, token: DesignAtomsServiceApiClient, providedIn: "root" });
@@ -4788,7 +4902,7 @@
4788
4902
  }));
4789
4903
  };
4790
4904
  DesignAtomsViewerApiClient.prototype.processCssFonts = function (response) {
4791
- var e_47, _a;
4905
+ var e_48, _a;
4792
4906
  var _this = this;
4793
4907
  var status = response.status;
4794
4908
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4801,12 +4915,12 @@
4801
4915
  _headers[key] = response.headers.get(key);
4802
4916
  }
4803
4917
  }
4804
- catch (e_47_1) { e_47 = { error: e_47_1 }; }
4918
+ catch (e_48_1) { e_48 = { error: e_48_1 }; }
4805
4919
  finally {
4806
4920
  try {
4807
4921
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4808
4922
  }
4809
- finally { if (e_47) throw e_47.error; }
4923
+ finally { if (e_48) throw e_48.error; }
4810
4924
  }
4811
4925
  }
4812
4926
  if (status === 200) {
@@ -4870,7 +4984,7 @@
4870
4984
  }));
4871
4985
  };
4872
4986
  DesignAtomsViewerApiClient.prototype.processFonts = function (response) {
4873
- var e_48, _a;
4987
+ var e_49, _a;
4874
4988
  var _this = this;
4875
4989
  var status = response.status;
4876
4990
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4883,12 +4997,12 @@
4883
4997
  _headers[key] = response.headers.get(key);
4884
4998
  }
4885
4999
  }
4886
- catch (e_48_1) { e_48 = { error: e_48_1 }; }
5000
+ catch (e_49_1) { e_49 = { error: e_49_1 }; }
4887
5001
  finally {
4888
5002
  try {
4889
5003
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4890
5004
  }
4891
- finally { if (e_48) throw e_48.error; }
5005
+ finally { if (e_49) throw e_49.error; }
4892
5006
  }
4893
5007
  }
4894
5008
  if (status === 200 || status === 206) {
@@ -4958,7 +5072,7 @@
4958
5072
  }));
4959
5073
  };
4960
5074
  DesignAtomsViewerApiClient.prototype.processGetCssFont = function (response) {
4961
- var e_49, _a;
5075
+ var e_50, _a;
4962
5076
  var _this = this;
4963
5077
  var status = response.status;
4964
5078
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4971,12 +5085,12 @@
4971
5085
  _headers[key] = response.headers.get(key);
4972
5086
  }
4973
5087
  }
4974
- catch (e_49_1) { e_49 = { error: e_49_1 }; }
5088
+ catch (e_50_1) { e_50 = { error: e_50_1 }; }
4975
5089
  finally {
4976
5090
  try {
4977
5091
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4978
5092
  }
4979
- finally { if (e_49) throw e_49.error; }
5093
+ finally { if (e_50) throw e_50.error; }
4980
5094
  }
4981
5095
  }
4982
5096
  if (status === 200 || status === 206) {
@@ -5043,7 +5157,7 @@
5043
5157
  }));
5044
5158
  };
5045
5159
  DesignAtomsViewerApiClient.prototype.processGetFallbackFonts = function (response) {
5046
- var e_50, _a;
5160
+ var e_51, _a;
5047
5161
  var _this = this;
5048
5162
  var status = response.status;
5049
5163
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5056,12 +5170,12 @@
5056
5170
  _headers[key] = response.headers.get(key);
5057
5171
  }
5058
5172
  }
5059
- catch (e_50_1) { e_50 = { error: e_50_1 }; }
5173
+ catch (e_51_1) { e_51 = { error: e_51_1 }; }
5060
5174
  finally {
5061
5175
  try {
5062
5176
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5063
5177
  }
5064
- finally { if (e_50) throw e_50.error; }
5178
+ finally { if (e_51) throw e_51.error; }
5065
5179
  }
5066
5180
  }
5067
5181
  if (status === 200 || status === 206) {
@@ -5125,7 +5239,7 @@
5125
5239
  }));
5126
5240
  };
5127
5241
  DesignAtomsViewerApiClient.prototype.processGetImageSize = function (response) {
5128
- var e_51, _a;
5242
+ var e_52, _a;
5129
5243
  var _this = this;
5130
5244
  var status = response.status;
5131
5245
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5138,12 +5252,12 @@
5138
5252
  _headers[key] = response.headers.get(key);
5139
5253
  }
5140
5254
  }
5141
- catch (e_51_1) { e_51 = { error: e_51_1 }; }
5255
+ catch (e_52_1) { e_52 = { error: e_52_1 }; }
5142
5256
  finally {
5143
5257
  try {
5144
5258
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5145
5259
  }
5146
- finally { if (e_51) throw e_51.error; }
5260
+ finally { if (e_52) throw e_52.error; }
5147
5261
  }
5148
5262
  }
5149
5263
  if (status === 200) {
@@ -5208,7 +5322,7 @@
5208
5322
  }));
5209
5323
  };
5210
5324
  DesignAtomsViewerApiClient.prototype.processGetShapeBounds = function (response) {
5211
- var e_52, _a;
5325
+ var e_53, _a;
5212
5326
  var _this = this;
5213
5327
  var status = response.status;
5214
5328
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5221,12 +5335,12 @@
5221
5335
  _headers[key] = response.headers.get(key);
5222
5336
  }
5223
5337
  }
5224
- catch (e_52_1) { e_52 = { error: e_52_1 }; }
5338
+ catch (e_53_1) { e_53 = { error: e_53_1 }; }
5225
5339
  finally {
5226
5340
  try {
5227
5341
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5228
5342
  }
5229
- finally { if (e_52) throw e_52.error; }
5343
+ finally { if (e_53) throw e_53.error; }
5230
5344
  }
5231
5345
  }
5232
5346
  if (status === 200) {
@@ -5291,7 +5405,7 @@
5291
5405
  }));
5292
5406
  };
5293
5407
  DesignAtomsViewerApiClient.prototype.processGetWatermarkItems = function (response) {
5294
- var e_53, _a;
5408
+ var e_54, _a;
5295
5409
  var _this = this;
5296
5410
  var status = response.status;
5297
5411
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5304,12 +5418,12 @@
5304
5418
  _headers[key] = response.headers.get(key);
5305
5419
  }
5306
5420
  }
5307
- catch (e_53_1) { e_53 = { error: e_53_1 }; }
5421
+ catch (e_54_1) { e_54 = { error: e_54_1 }; }
5308
5422
  finally {
5309
5423
  try {
5310
5424
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5311
5425
  }
5312
- finally { if (e_53) throw e_53.error; }
5426
+ finally { if (e_54) throw e_54.error; }
5313
5427
  }
5314
5428
  }
5315
5429
  if (status === 200) {
@@ -5418,7 +5532,7 @@
5418
5532
  }));
5419
5533
  };
5420
5534
  DesignAtomsViewerApiClient.prototype.processImg = function (response) {
5421
- var e_54, _a;
5535
+ var e_55, _a;
5422
5536
  var _this = this;
5423
5537
  var status = response.status;
5424
5538
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5431,12 +5545,12 @@
5431
5545
  _headers[key] = response.headers.get(key);
5432
5546
  }
5433
5547
  }
5434
- catch (e_54_1) { e_54 = { error: e_54_1 }; }
5548
+ catch (e_55_1) { e_55 = { error: e_55_1 }; }
5435
5549
  finally {
5436
5550
  try {
5437
5551
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5438
5552
  }
5439
- finally { if (e_54) throw e_54.error; }
5553
+ finally { if (e_55) throw e_55.error; }
5440
5554
  }
5441
5555
  }
5442
5556
  if (status === 200 || status === 206) {
@@ -5508,7 +5622,7 @@
5508
5622
  }));
5509
5623
  };
5510
5624
  DesignAtomsViewerApiClient.prototype.processGetLicense = function (response) {
5511
- var e_55, _a;
5625
+ var e_56, _a;
5512
5626
  var _this = this;
5513
5627
  var status = response.status;
5514
5628
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5521,12 +5635,12 @@
5521
5635
  _headers[key] = response.headers.get(key);
5522
5636
  }
5523
5637
  }
5524
- catch (e_55_1) { e_55 = { error: e_55_1 }; }
5638
+ catch (e_56_1) { e_56 = { error: e_56_1 }; }
5525
5639
  finally {
5526
5640
  try {
5527
5641
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5528
5642
  }
5529
- finally { if (e_55) throw e_55.error; }
5643
+ finally { if (e_56) throw e_56.error; }
5530
5644
  }
5531
5645
  }
5532
5646
  if (status === 200) {
@@ -5590,7 +5704,7 @@
5590
5704
  }));
5591
5705
  };
5592
5706
  DesignAtomsViewerApiClient.prototype.processPth = function (response) {
5593
- var e_56, _a;
5707
+ var e_57, _a;
5594
5708
  var _this = this;
5595
5709
  var status = response.status;
5596
5710
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5603,12 +5717,12 @@
5603
5717
  _headers[key] = response.headers.get(key);
5604
5718
  }
5605
5719
  }
5606
- catch (e_56_1) { e_56 = { error: e_56_1 }; }
5720
+ catch (e_57_1) { e_57 = { error: e_57_1 }; }
5607
5721
  finally {
5608
5722
  try {
5609
5723
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5610
5724
  }
5611
- finally { if (e_56) throw e_56.error; }
5725
+ finally { if (e_57) throw e_57.error; }
5612
5726
  }
5613
5727
  }
5614
5728
  if (status === 200 || status === 206) {
@@ -5683,7 +5797,7 @@
5683
5797
  }));
5684
5798
  };
5685
5799
  DesignAtomsViewerApiClient.prototype.processResource = function (response) {
5686
- var e_57, _a;
5800
+ var e_58, _a;
5687
5801
  var _this = this;
5688
5802
  var status = response.status;
5689
5803
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5696,12 +5810,12 @@
5696
5810
  _headers[key] = response.headers.get(key);
5697
5811
  }
5698
5812
  }
5699
- catch (e_57_1) { e_57 = { error: e_57_1 }; }
5813
+ catch (e_58_1) { e_58 = { error: e_58_1 }; }
5700
5814
  finally {
5701
5815
  try {
5702
5816
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5703
5817
  }
5704
- finally { if (e_57) throw e_57.error; }
5818
+ finally { if (e_58) throw e_58.error; }
5705
5819
  }
5706
5820
  }
5707
5821
  if (status === 200 || status === 206) {
@@ -5771,7 +5885,7 @@
5771
5885
  }));
5772
5886
  };
5773
5887
  DesignAtomsViewerApiClient.prototype.processSvg = function (response) {
5774
- var e_58, _a;
5888
+ var e_59, _a;
5775
5889
  var _this = this;
5776
5890
  var status = response.status;
5777
5891
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5784,12 +5898,12 @@
5784
5898
  _headers[key] = response.headers.get(key);
5785
5899
  }
5786
5900
  }
5787
- catch (e_58_1) { e_58 = { error: e_58_1 }; }
5901
+ catch (e_59_1) { e_59 = { error: e_59_1 }; }
5788
5902
  finally {
5789
5903
  try {
5790
5904
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5791
5905
  }
5792
- finally { if (e_58) throw e_58.error; }
5906
+ finally { if (e_59) throw e_59.error; }
5793
5907
  }
5794
5908
  }
5795
5909
  if (status === 200 || status === 206) {
@@ -5864,7 +5978,7 @@
5864
5978
  }));
5865
5979
  };
5866
5980
  DesignAtomsViewerApiClient.prototype.processTxt = function (response) {
5867
- var e_59, _a;
5981
+ var e_60, _a;
5868
5982
  var _this = this;
5869
5983
  var status = response.status;
5870
5984
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5877,12 +5991,12 @@
5877
5991
  _headers[key] = response.headers.get(key);
5878
5992
  }
5879
5993
  }
5880
- catch (e_59_1) { e_59 = { error: e_59_1 }; }
5994
+ catch (e_60_1) { e_60 = { error: e_60_1 }; }
5881
5995
  finally {
5882
5996
  try {
5883
5997
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5884
5998
  }
5885
- finally { if (e_59) throw e_59.error; }
5999
+ finally { if (e_60) throw e_60.error; }
5886
6000
  }
5887
6001
  }
5888
6002
  if (status === 200 || status === 206) {
@@ -5958,7 +6072,7 @@
5958
6072
  }));
5959
6073
  };
5960
6074
  DesignAtomsViewerApiClient.prototype.processUpdateArchedTextItemHandler = function (response) {
5961
- var e_60, _a;
6075
+ var e_61, _a;
5962
6076
  var _this = this;
5963
6077
  var status = response.status;
5964
6078
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5971,12 +6085,12 @@
5971
6085
  _headers[key] = response.headers.get(key);
5972
6086
  }
5973
6087
  }
5974
- catch (e_60_1) { e_60 = { error: e_60_1 }; }
6088
+ catch (e_61_1) { e_61 = { error: e_61_1 }; }
5975
6089
  finally {
5976
6090
  try {
5977
6091
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5978
6092
  }
5979
- finally { if (e_60) throw e_60.error; }
6093
+ finally { if (e_61) throw e_61.error; }
5980
6094
  }
5981
6095
  }
5982
6096
  if (status === 200) {
@@ -6041,7 +6155,7 @@
6041
6155
  }));
6042
6156
  };
6043
6157
  DesignAtomsViewerApiClient.prototype.processUpdateAutoScaledTextItemHandler = function (response) {
6044
- var e_61, _a;
6158
+ var e_62, _a;
6045
6159
  var _this = this;
6046
6160
  var status = response.status;
6047
6161
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -6054,12 +6168,12 @@
6054
6168
  _headers[key] = response.headers.get(key);
6055
6169
  }
6056
6170
  }
6057
- catch (e_61_1) { e_61 = { error: e_61_1 }; }
6171
+ catch (e_62_1) { e_62 = { error: e_62_1 }; }
6058
6172
  finally {
6059
6173
  try {
6060
6174
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
6061
6175
  }
6062
- finally { if (e_61) throw e_61.error; }
6176
+ finally { if (e_62) throw e_62.error; }
6063
6177
  }
6064
6178
  }
6065
6179
  if (status === 200) {
@@ -6124,7 +6238,7 @@
6124
6238
  }));
6125
6239
  };
6126
6240
  DesignAtomsViewerApiClient.prototype.processUpdateBarcodeItemHandler = function (response) {
6127
- var e_62, _a;
6241
+ var e_63, _a;
6128
6242
  var _this = this;
6129
6243
  var status = response.status;
6130
6244
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -6137,12 +6251,12 @@
6137
6251
  _headers[key] = response.headers.get(key);
6138
6252
  }
6139
6253
  }
6140
- catch (e_62_1) { e_62 = { error: e_62_1 }; }
6254
+ catch (e_63_1) { e_63 = { error: e_63_1 }; }
6141
6255
  finally {
6142
6256
  try {
6143
6257
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
6144
6258
  }
6145
- finally { if (e_62) throw e_62.error; }
6259
+ finally { if (e_63) throw e_63.error; }
6146
6260
  }
6147
6261
  }
6148
6262
  if (status === 200) {
@@ -6207,7 +6321,7 @@
6207
6321
  }));
6208
6322
  };
6209
6323
  DesignAtomsViewerApiClient.prototype.processUpdateBoundedTextItemHandler = function (response) {
6210
- var e_63, _a;
6324
+ var e_64, _a;
6211
6325
  var _this = this;
6212
6326
  var status = response.status;
6213
6327
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -6220,12 +6334,12 @@
6220
6334
  _headers[key] = response.headers.get(key);
6221
6335
  }
6222
6336
  }
6223
- catch (e_63_1) { e_63 = { error: e_63_1 }; }
6337
+ catch (e_64_1) { e_64 = { error: e_64_1 }; }
6224
6338
  finally {
6225
6339
  try {
6226
6340
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
6227
6341
  }
6228
- finally { if (e_63) throw e_63.error; }
6342
+ finally { if (e_64) throw e_64.error; }
6229
6343
  }
6230
6344
  }
6231
6345
  if (status === 200) {
@@ -6290,7 +6404,7 @@
6290
6404
  }));
6291
6405
  };
6292
6406
  DesignAtomsViewerApiClient.prototype.processUpdateByColorData = function (response) {
6293
- var e_64, _a;
6407
+ var e_65, _a;
6294
6408
  var _this = this;
6295
6409
  var status = response.status;
6296
6410
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -6303,12 +6417,12 @@
6303
6417
  _headers[key] = response.headers.get(key);
6304
6418
  }
6305
6419
  }
6306
- catch (e_64_1) { e_64 = { error: e_64_1 }; }
6420
+ catch (e_65_1) { e_65 = { error: e_65_1 }; }
6307
6421
  finally {
6308
6422
  try {
6309
6423
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
6310
6424
  }
6311
- finally { if (e_64) throw e_64.error; }
6425
+ finally { if (e_65) throw e_65.error; }
6312
6426
  }
6313
6427
  }
6314
6428
  if (status === 200) {
@@ -6373,7 +6487,7 @@
6373
6487
  }));
6374
6488
  };
6375
6489
  DesignAtomsViewerApiClient.prototype.processUpdateByMultiCallRequest = function (response) {
6376
- var e_65, _a;
6490
+ var e_66, _a;
6377
6491
  var _this = this;
6378
6492
  var status = response.status;
6379
6493
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -6386,12 +6500,12 @@
6386
6500
  _headers[key] = response.headers.get(key);
6387
6501
  }
6388
6502
  }
6389
- catch (e_65_1) { e_65 = { error: e_65_1 }; }
6503
+ catch (e_66_1) { e_66 = { error: e_66_1 }; }
6390
6504
  finally {
6391
6505
  try {
6392
6506
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
6393
6507
  }
6394
- finally { if (e_65) throw e_65.error; }
6508
+ finally { if (e_66) throw e_66.error; }
6395
6509
  }
6396
6510
  }
6397
6511
  if (status === 200) {
@@ -6456,7 +6570,7 @@
6456
6570
  }));
6457
6571
  };
6458
6572
  DesignAtomsViewerApiClient.prototype.processUpdateCurvedTextItemHandler = function (response) {
6459
- var e_66, _a;
6573
+ var e_67, _a;
6460
6574
  var _this = this;
6461
6575
  var status = response.status;
6462
6576
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -6469,12 +6583,12 @@
6469
6583
  _headers[key] = response.headers.get(key);
6470
6584
  }
6471
6585
  }
6472
- catch (e_66_1) { e_66 = { error: e_66_1 }; }
6586
+ catch (e_67_1) { e_67 = { error: e_67_1 }; }
6473
6587
  finally {
6474
6588
  try {
6475
6589
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
6476
6590
  }
6477
- finally { if (e_66) throw e_66.error; }
6591
+ finally { if (e_67) throw e_67.error; }
6478
6592
  }
6479
6593
  }
6480
6594
  if (status === 200) {
@@ -6539,7 +6653,7 @@
6539
6653
  }));
6540
6654
  };
6541
6655
  DesignAtomsViewerApiClient.prototype.processUpdateImageItemHandler = function (response) {
6542
- var e_67, _a;
6656
+ var e_68, _a;
6543
6657
  var _this = this;
6544
6658
  var status = response.status;
6545
6659
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -6552,12 +6666,12 @@
6552
6666
  _headers[key] = response.headers.get(key);
6553
6667
  }
6554
6668
  }
6555
- catch (e_67_1) { e_67 = { error: e_67_1 }; }
6669
+ catch (e_68_1) { e_68 = { error: e_68_1 }; }
6556
6670
  finally {
6557
6671
  try {
6558
6672
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
6559
6673
  }
6560
- finally { if (e_67) throw e_67.error; }
6674
+ finally { if (e_68) throw e_68.error; }
6561
6675
  }
6562
6676
  }
6563
6677
  if (status === 200) {
@@ -6622,7 +6736,7 @@
6622
6736
  }));
6623
6737
  };
6624
6738
  DesignAtomsViewerApiClient.prototype.processUpdatePathBoundedTextItemHandler = function (response) {
6625
- var e_68, _a;
6739
+ var e_69, _a;
6626
6740
  var _this = this;
6627
6741
  var status = response.status;
6628
6742
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -6635,12 +6749,12 @@
6635
6749
  _headers[key] = response.headers.get(key);
6636
6750
  }
6637
6751
  }
6638
- catch (e_68_1) { e_68 = { error: e_68_1 }; }
6752
+ catch (e_69_1) { e_69 = { error: e_69_1 }; }
6639
6753
  finally {
6640
6754
  try {
6641
6755
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
6642
6756
  }
6643
- finally { if (e_68) throw e_68.error; }
6757
+ finally { if (e_69) throw e_69.error; }
6644
6758
  }
6645
6759
  }
6646
6760
  if (status === 200) {
@@ -6705,7 +6819,7 @@
6705
6819
  }));
6706
6820
  };
6707
6821
  DesignAtomsViewerApiClient.prototype.processUpdatePlainTextItemHandler = function (response) {
6708
- var e_69, _a;
6822
+ var e_70, _a;
6709
6823
  var _this = this;
6710
6824
  var status = response.status;
6711
6825
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -6718,12 +6832,12 @@
6718
6832
  _headers[key] = response.headers.get(key);
6719
6833
  }
6720
6834
  }
6721
- catch (e_69_1) { e_69 = { error: e_69_1 }; }
6835
+ catch (e_70_1) { e_70 = { error: e_70_1 }; }
6722
6836
  finally {
6723
6837
  try {
6724
6838
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
6725
6839
  }
6726
- finally { if (e_69) throw e_69.error; }
6840
+ finally { if (e_70) throw e_70.error; }
6727
6841
  }
6728
6842
  }
6729
6843
  if (status === 200) {
@@ -6788,7 +6902,7 @@
6788
6902
  }));
6789
6903
  };
6790
6904
  DesignAtomsViewerApiClient.prototype.processUpdateShapeItemHandler = function (response) {
6791
- var e_70, _a;
6905
+ var e_71, _a;
6792
6906
  var _this = this;
6793
6907
  var status = response.status;
6794
6908
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -6801,12 +6915,12 @@
6801
6915
  _headers[key] = response.headers.get(key);
6802
6916
  }
6803
6917
  }
6804
- catch (e_70_1) { e_70 = { error: e_70_1 }; }
6918
+ catch (e_71_1) { e_71 = { error: e_71_1 }; }
6805
6919
  finally {
6806
6920
  try {
6807
6921
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
6808
6922
  }
6809
- finally { if (e_70) throw e_70.error; }
6923
+ finally { if (e_71) throw e_71.error; }
6810
6924
  }
6811
6925
  }
6812
6926
  if (status === 200) {
@@ -6843,12 +6957,12 @@
6843
6957
  { type: i1.HttpClient, decorators: [{ type: i0.Inject, args: [i1.HttpClient,] }] },
6844
6958
  { type: String, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [API_BASE_URL,] }] }
6845
6959
  ]; };
6846
- (function (ProductPreviewFormat) {
6847
- ProductPreviewFormat["Jpeg"] = "Jpeg";
6848
- ProductPreviewFormat["Png"] = "Png";
6849
- ProductPreviewFormat["Tiff"] = "Tiff";
6850
- ProductPreviewFormat["Pdf"] = "Pdf";
6851
- })(exports.ProductPreviewFormat || (exports.ProductPreviewFormat = {}));
6960
+ (function (ImagePreviewFormat) {
6961
+ ImagePreviewFormat["Jpeg"] = "Jpeg";
6962
+ ImagePreviewFormat["Png"] = "Png";
6963
+ ImagePreviewFormat["Tiff"] = "Tiff";
6964
+ ImagePreviewFormat["Pdf"] = "Pdf";
6965
+ })(exports.ImagePreviewFormat || (exports.ImagePreviewFormat = {}));
6852
6966
  (function (DesignElementType) {
6853
6967
  DesignElementType["Product"] = "Product";
6854
6968
  DesignElementType["Design"] = "Design";
@@ -6876,6 +6990,12 @@
6876
6990
  ItemSourceType["ImageStorage"] = "ImageStorage";
6877
6991
  ItemSourceType["PrivateImageStorage"] = "PrivateImageStorage";
6878
6992
  })(exports.ItemSourceType || (exports.ItemSourceType = {}));
6993
+ (function (ProductPreviewFormat) {
6994
+ ProductPreviewFormat["Jpeg"] = "Jpeg";
6995
+ ProductPreviewFormat["Png"] = "Png";
6996
+ ProductPreviewFormat["Tiff"] = "Tiff";
6997
+ ProductPreviewFormat["Pdf"] = "Pdf";
6998
+ })(exports.ProductPreviewFormat || (exports.ProductPreviewFormat = {}));
6879
6999
  (function (ProductProofFormat) {
6880
7000
  ProductProofFormat["Jpeg"] = "Jpeg";
6881
7001
  ProductProofFormat["Png"] = "Png";