@aurigma/ng-design-atoms-api-client 2.12.5 → 2.15.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.
@@ -527,80 +527,6 @@
527
527
  _this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : _this.getBaseUrl("");
528
528
  return _this;
529
529
  }
530
- /**
531
- * @param body (optional)
532
- * @return Success
533
- */
534
- DesignAtomsCompatibilityApiClient.prototype.updateArchedTextItemHandler = function (tenantId, body) {
535
- var _this = this;
536
- var url_ = this.baseUrl + "/api/atoms/v1/tenants/{tenantId}/api/ccviewer/api/ccviewer/UpdateArchedTextItemHandler";
537
- if (tenantId === undefined || tenantId === null)
538
- throw new Error("The parameter 'tenantId' must be defined.");
539
- url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
540
- url_ = url_.replace(/[?&]$/, "");
541
- var content_ = JSON.stringify(body);
542
- var options_ = {
543
- body: content_,
544
- observe: "response",
545
- responseType: "blob",
546
- headers: new i1.HttpHeaders({
547
- "Content-Type": "application/json",
548
- "Accept": "application/json"
549
- })
550
- };
551
- return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
552
- return _this.http.request("post", url_, transformedOptions_);
553
- })).pipe(operators.mergeMap(function (response_) {
554
- return _this.transformResult(url_, response_, function (r) { return _this.processUpdateArchedTextItemHandler(r); });
555
- })).pipe(operators.catchError(function (response_) {
556
- if (response_ instanceof i1.HttpResponseBase) {
557
- try {
558
- return _this.transformResult(url_, response_, function (r) { return _this.processUpdateArchedTextItemHandler(r); });
559
- }
560
- catch (e) {
561
- return rxjs.throwError(e);
562
- }
563
- }
564
- else
565
- return rxjs.throwError(response_);
566
- }));
567
- };
568
- DesignAtomsCompatibilityApiClient.prototype.processUpdateArchedTextItemHandler = function (response) {
569
- var e_3, _a;
570
- var _this = this;
571
- var status = response.status;
572
- var responseBlob = response instanceof i1.HttpResponse ? response.body :
573
- response.error instanceof Blob ? response.error : undefined;
574
- var _headers = {};
575
- if (response.headers) {
576
- try {
577
- for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
578
- var key = _c.value;
579
- _headers[key] = response.headers.get(key);
580
- }
581
- }
582
- catch (e_3_1) { e_3 = { error: e_3_1 }; }
583
- finally {
584
- try {
585
- if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
586
- }
587
- finally { if (e_3) throw e_3.error; }
588
- }
589
- }
590
- if (status === 200) {
591
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
592
- var result200 = null;
593
- result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
594
- return rxjs.of(result200);
595
- }));
596
- }
597
- else if (status !== 200 && status !== 204) {
598
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
599
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
600
- }));
601
- }
602
- return rxjs.of(null);
603
- };
604
530
  /**
605
531
  * @param body (optional)
606
532
  * @return Success
@@ -640,7 +566,7 @@
640
566
  }));
641
567
  };
642
568
  DesignAtomsCompatibilityApiClient.prototype.processCssFonts = function (response) {
643
- var e_4, _a;
569
+ var e_3, _a;
644
570
  var _this = this;
645
571
  var status = response.status;
646
572
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -653,12 +579,12 @@
653
579
  _headers[key] = response.headers.get(key);
654
580
  }
655
581
  }
656
- catch (e_4_1) { e_4 = { error: e_4_1 }; }
582
+ catch (e_3_1) { e_3 = { error: e_3_1 }; }
657
583
  finally {
658
584
  try {
659
585
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
660
586
  }
661
- finally { if (e_4) throw e_4.error; }
587
+ finally { if (e_3) throw e_3.error; }
662
588
  }
663
589
  }
664
590
  if (status === 200) {
@@ -713,7 +639,7 @@
713
639
  }));
714
640
  };
715
641
  DesignAtomsCompatibilityApiClient.prototype.processFonts = function (response) {
716
- var e_5, _a;
642
+ var e_4, _a;
717
643
  var _this = this;
718
644
  var status = response.status;
719
645
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -726,12 +652,12 @@
726
652
  _headers[key] = response.headers.get(key);
727
653
  }
728
654
  }
729
- catch (e_5_1) { e_5 = { error: e_5_1 }; }
655
+ catch (e_4_1) { e_4 = { error: e_4_1 }; }
730
656
  finally {
731
657
  try {
732
658
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
733
659
  }
734
- finally { if (e_5) throw e_5.error; }
660
+ finally { if (e_4) throw e_4.error; }
735
661
  }
736
662
  }
737
663
  if (status === 200 || status === 206) {
@@ -792,7 +718,7 @@
792
718
  }));
793
719
  };
794
720
  DesignAtomsCompatibilityApiClient.prototype.processGetCssFont = function (response) {
795
- var e_6, _a;
721
+ var e_5, _a;
796
722
  var _this = this;
797
723
  var status = response.status;
798
724
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -805,12 +731,12 @@
805
731
  _headers[key] = response.headers.get(key);
806
732
  }
807
733
  }
808
- catch (e_6_1) { e_6 = { error: e_6_1 }; }
734
+ catch (e_5_1) { e_5 = { error: e_5_1 }; }
809
735
  finally {
810
736
  try {
811
737
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
812
738
  }
813
- finally { if (e_6) throw e_6.error; }
739
+ finally { if (e_5) throw e_5.error; }
814
740
  }
815
741
  }
816
742
  if (status === 200 || status === 206) {
@@ -872,7 +798,7 @@
872
798
  }));
873
799
  };
874
800
  DesignAtomsCompatibilityApiClient.prototype.processGetImageSize = function (response) {
875
- var e_7, _a;
801
+ var e_6, _a;
876
802
  var _this = this;
877
803
  var status = response.status;
878
804
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -885,12 +811,12 @@
885
811
  _headers[key] = response.headers.get(key);
886
812
  }
887
813
  }
888
- catch (e_7_1) { e_7 = { error: e_7_1 }; }
814
+ catch (e_6_1) { e_6 = { error: e_6_1 }; }
889
815
  finally {
890
816
  try {
891
817
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
892
818
  }
893
- finally { if (e_7) throw e_7.error; }
819
+ finally { if (e_6) throw e_6.error; }
894
820
  }
895
821
  }
896
822
  if (status === 200) {
@@ -946,7 +872,7 @@
946
872
  }));
947
873
  };
948
874
  DesignAtomsCompatibilityApiClient.prototype.processGetShapeBounds = function (response) {
949
- var e_8, _a;
875
+ var e_7, _a;
950
876
  var _this = this;
951
877
  var status = response.status;
952
878
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -959,12 +885,12 @@
959
885
  _headers[key] = response.headers.get(key);
960
886
  }
961
887
  }
962
- catch (e_8_1) { e_8 = { error: e_8_1 }; }
888
+ catch (e_7_1) { e_7 = { error: e_7_1 }; }
963
889
  finally {
964
890
  try {
965
891
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
966
892
  }
967
- finally { if (e_8) throw e_8.error; }
893
+ finally { if (e_7) throw e_7.error; }
968
894
  }
969
895
  }
970
896
  if (status === 200) {
@@ -1020,7 +946,7 @@
1020
946
  }));
1021
947
  };
1022
948
  DesignAtomsCompatibilityApiClient.prototype.processGetWatermarkItems = function (response) {
1023
- var e_9, _a;
949
+ var e_8, _a;
1024
950
  var _this = this;
1025
951
  var status = response.status;
1026
952
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -1033,12 +959,12 @@
1033
959
  _headers[key] = response.headers.get(key);
1034
960
  }
1035
961
  }
1036
- catch (e_9_1) { e_9 = { error: e_9_1 }; }
962
+ catch (e_8_1) { e_8 = { error: e_8_1 }; }
1037
963
  finally {
1038
964
  try {
1039
965
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1040
966
  }
1041
- finally { if (e_9) throw e_9.error; }
967
+ finally { if (e_8) throw e_8.error; }
1042
968
  }
1043
969
  }
1044
970
  if (status === 200) {
@@ -1138,7 +1064,7 @@
1138
1064
  }));
1139
1065
  };
1140
1066
  DesignAtomsCompatibilityApiClient.prototype.processImg = function (response) {
1141
- var e_10, _a;
1067
+ var e_9, _a;
1142
1068
  var _this = this;
1143
1069
  var status = response.status;
1144
1070
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -1151,12 +1077,12 @@
1151
1077
  _headers[key] = response.headers.get(key);
1152
1078
  }
1153
1079
  }
1154
- catch (e_10_1) { e_10 = { error: e_10_1 }; }
1080
+ catch (e_9_1) { e_9 = { error: e_9_1 }; }
1155
1081
  finally {
1156
1082
  try {
1157
1083
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1158
1084
  }
1159
- finally { if (e_10) throw e_10.error; }
1085
+ finally { if (e_9) throw e_9.error; }
1160
1086
  }
1161
1087
  }
1162
1088
  if (status === 200 || status === 206) {
@@ -1219,7 +1145,7 @@
1219
1145
  }));
1220
1146
  };
1221
1147
  DesignAtomsCompatibilityApiClient.prototype.processGetLicense = function (response) {
1222
- var e_11, _a;
1148
+ var e_10, _a;
1223
1149
  var _this = this;
1224
1150
  var status = response.status;
1225
1151
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -1232,12 +1158,12 @@
1232
1158
  _headers[key] = response.headers.get(key);
1233
1159
  }
1234
1160
  }
1235
- catch (e_11_1) { e_11 = { error: e_11_1 }; }
1161
+ catch (e_10_1) { e_10 = { error: e_10_1 }; }
1236
1162
  finally {
1237
1163
  try {
1238
1164
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1239
1165
  }
1240
- finally { if (e_11) throw e_11.error; }
1166
+ finally { if (e_10) throw e_10.error; }
1241
1167
  }
1242
1168
  }
1243
1169
  if (status === 200) {
@@ -1292,7 +1218,7 @@
1292
1218
  }));
1293
1219
  };
1294
1220
  DesignAtomsCompatibilityApiClient.prototype.processPth = function (response) {
1295
- var e_12, _a;
1221
+ var e_11, _a;
1296
1222
  var _this = this;
1297
1223
  var status = response.status;
1298
1224
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -1305,12 +1231,12 @@
1305
1231
  _headers[key] = response.headers.get(key);
1306
1232
  }
1307
1233
  }
1308
- catch (e_12_1) { e_12 = { error: e_12_1 }; }
1234
+ catch (e_11_1) { e_11 = { error: e_11_1 }; }
1309
1235
  finally {
1310
1236
  try {
1311
1237
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1312
1238
  }
1313
- finally { if (e_12) throw e_12.error; }
1239
+ finally { if (e_11) throw e_11.error; }
1314
1240
  }
1315
1241
  }
1316
1242
  if (status === 200 || status === 206) {
@@ -1376,7 +1302,7 @@
1376
1302
  }));
1377
1303
  };
1378
1304
  DesignAtomsCompatibilityApiClient.prototype.processResource = function (response) {
1379
- var e_13, _a;
1305
+ var e_12, _a;
1380
1306
  var _this = this;
1381
1307
  var status = response.status;
1382
1308
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -1389,12 +1315,12 @@
1389
1315
  _headers[key] = response.headers.get(key);
1390
1316
  }
1391
1317
  }
1392
- catch (e_13_1) { e_13 = { error: e_13_1 }; }
1318
+ catch (e_12_1) { e_12 = { error: e_12_1 }; }
1393
1319
  finally {
1394
1320
  try {
1395
1321
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1396
1322
  }
1397
- finally { if (e_13) throw e_13.error; }
1323
+ finally { if (e_12) throw e_12.error; }
1398
1324
  }
1399
1325
  }
1400
1326
  if (status === 200 || status === 206) {
@@ -1455,7 +1381,7 @@
1455
1381
  }));
1456
1382
  };
1457
1383
  DesignAtomsCompatibilityApiClient.prototype.processSvg = function (response) {
1458
- var e_14, _a;
1384
+ var e_13, _a;
1459
1385
  var _this = this;
1460
1386
  var status = response.status;
1461
1387
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -1468,12 +1394,12 @@
1468
1394
  _headers[key] = response.headers.get(key);
1469
1395
  }
1470
1396
  }
1471
- catch (e_14_1) { e_14 = { error: e_14_1 }; }
1397
+ catch (e_13_1) { e_13 = { error: e_13_1 }; }
1472
1398
  finally {
1473
1399
  try {
1474
1400
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1475
1401
  }
1476
- finally { if (e_14) throw e_14.error; }
1402
+ finally { if (e_13) throw e_13.error; }
1477
1403
  }
1478
1404
  }
1479
1405
  if (status === 200 || status === 206) {
@@ -1539,7 +1465,7 @@
1539
1465
  }));
1540
1466
  };
1541
1467
  DesignAtomsCompatibilityApiClient.prototype.processTxt = function (response) {
1542
- var e_15, _a;
1468
+ var e_14, _a;
1543
1469
  var _this = this;
1544
1470
  var status = response.status;
1545
1471
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -1552,12 +1478,12 @@
1552
1478
  _headers[key] = response.headers.get(key);
1553
1479
  }
1554
1480
  }
1555
- catch (e_15_1) { e_15 = { error: e_15_1 }; }
1481
+ catch (e_14_1) { e_14 = { error: e_14_1 }; }
1556
1482
  finally {
1557
1483
  try {
1558
1484
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1559
1485
  }
1560
- finally { if (e_15) throw e_15.error; }
1486
+ finally { if (e_14) throw e_14.error; }
1561
1487
  }
1562
1488
  }
1563
1489
  if (status === 200 || status === 206) {
@@ -1585,6 +1511,80 @@
1585
1511
  }
1586
1512
  return rxjs.of(null);
1587
1513
  };
1514
+ /**
1515
+ * @param body (optional)
1516
+ * @return Success
1517
+ */
1518
+ DesignAtomsCompatibilityApiClient.prototype.updateArchedTextItemHandler = function (tenantId, body) {
1519
+ var _this = this;
1520
+ var url_ = this.baseUrl + "/api/atoms/v1/tenants/{tenantId}/api/ccviewer/UpdateArchedTextItemHandler";
1521
+ if (tenantId === undefined || tenantId === null)
1522
+ throw new Error("The parameter 'tenantId' must be defined.");
1523
+ url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
1524
+ url_ = url_.replace(/[?&]$/, "");
1525
+ var content_ = JSON.stringify(body);
1526
+ var options_ = {
1527
+ body: content_,
1528
+ observe: "response",
1529
+ responseType: "blob",
1530
+ headers: new i1.HttpHeaders({
1531
+ "Content-Type": "application/json",
1532
+ "Accept": "application/json"
1533
+ })
1534
+ };
1535
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
1536
+ return _this.http.request("post", url_, transformedOptions_);
1537
+ })).pipe(operators.mergeMap(function (response_) {
1538
+ return _this.transformResult(url_, response_, function (r) { return _this.processUpdateArchedTextItemHandler(r); });
1539
+ })).pipe(operators.catchError(function (response_) {
1540
+ if (response_ instanceof i1.HttpResponseBase) {
1541
+ try {
1542
+ return _this.transformResult(url_, response_, function (r) { return _this.processUpdateArchedTextItemHandler(r); });
1543
+ }
1544
+ catch (e) {
1545
+ return rxjs.throwError(e);
1546
+ }
1547
+ }
1548
+ else
1549
+ return rxjs.throwError(response_);
1550
+ }));
1551
+ };
1552
+ DesignAtomsCompatibilityApiClient.prototype.processUpdateArchedTextItemHandler = function (response) {
1553
+ var e_15, _a;
1554
+ var _this = this;
1555
+ var status = response.status;
1556
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
1557
+ response.error instanceof Blob ? response.error : undefined;
1558
+ var _headers = {};
1559
+ if (response.headers) {
1560
+ try {
1561
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
1562
+ var key = _c.value;
1563
+ _headers[key] = response.headers.get(key);
1564
+ }
1565
+ }
1566
+ catch (e_15_1) { e_15 = { error: e_15_1 }; }
1567
+ finally {
1568
+ try {
1569
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1570
+ }
1571
+ finally { if (e_15) throw e_15.error; }
1572
+ }
1573
+ }
1574
+ if (status === 200) {
1575
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
1576
+ var result200 = null;
1577
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
1578
+ return rxjs.of(result200);
1579
+ }));
1580
+ }
1581
+ else if (status !== 200 && status !== 204) {
1582
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
1583
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
1584
+ }));
1585
+ }
1586
+ return rxjs.of(null);
1587
+ };
1588
1588
  /**
1589
1589
  * @param body (optional)
1590
1590
  * @return Success
@@ -2535,7 +2535,7 @@
2535
2535
  return rxjs.of(null);
2536
2536
  };
2537
2537
  /**
2538
- * Loads product from design file taken from storage
2538
+ * Loads product (design model) from design file taken from storage
2539
2539
  * @param id Design identifier
2540
2540
  * @param privateStorage (optional) If set to 'true' design will be taken from private storage
2541
2541
  * @param privateStorageOwner (optional) Private storage owner identifier
@@ -2635,7 +2635,7 @@
2635
2635
  return rxjs.of(null);
2636
2636
  };
2637
2637
  /**
2638
- * Saves product to design file and updates design in storage.
2638
+ * Saves product (design model) to design file and updates design in storage.
2639
2639
  * @param id Design identifier
2640
2640
  * @param privateStorage (optional) If set to 'true' design will be saved to private storage
2641
2641
  * @param privateStorageOwner (optional) Private storage owner identifier
@@ -2736,14 +2736,17 @@
2736
2736
  return rxjs.of(null);
2737
2737
  };
2738
2738
  /**
2739
- * Loads data schema from design file taken from storage
2739
+ * Patches product (design model) in design file
2740
2740
  * @param id Design identifier
2741
2741
  * @param tenantId (optional) Tenant identifier
2742
+ * @param patchType (optional)
2743
+ * @param replaceImageItemFileInfo_itemName (optional)
2744
+ * @param replaceImageItemFileInfo_sourceFile (optional)
2742
2745
  * @return Success
2743
2746
  */
2744
- DesignAtomsServiceApiClient.prototype.loadDataSchema = function (id, tenantId) {
2747
+ DesignAtomsServiceApiClient.prototype.patchProduct = function (id, tenantId, patchType, replaceImageItemFileInfo_itemName, replaceImageItemFileInfo_sourceFile) {
2745
2748
  var _this = this;
2746
- var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/schema?";
2749
+ var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/model?";
2747
2750
  if (id === undefined || id === null)
2748
2751
  throw new Error("The parameter 'id' must be defined.");
2749
2752
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
@@ -2752,21 +2755,29 @@
2752
2755
  else if (tenantId !== undefined)
2753
2756
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
2754
2757
  url_ = url_.replace(/[?&]$/, "");
2758
+ var content_ = new FormData();
2759
+ if (patchType === null || patchType === undefined)
2760
+ throw new Error("The parameter 'patchType' cannot be null.");
2761
+ else
2762
+ content_.append("patchType", patchType.toString());
2763
+ if (replaceImageItemFileInfo_itemName !== null && replaceImageItemFileInfo_itemName !== undefined)
2764
+ content_.append("replaceImageItemFileInfo.itemName", replaceImageItemFileInfo_itemName.toString());
2765
+ if (replaceImageItemFileInfo_sourceFile !== null && replaceImageItemFileInfo_sourceFile !== undefined)
2766
+ content_.append("replaceImageItemFileInfo.sourceFile", replaceImageItemFileInfo_sourceFile.data, replaceImageItemFileInfo_sourceFile.fileName ? replaceImageItemFileInfo_sourceFile.fileName : "replaceImageItemFileInfo.sourceFile");
2755
2767
  var options_ = {
2768
+ body: content_,
2756
2769
  observe: "response",
2757
2770
  responseType: "blob",
2758
- headers: new i1.HttpHeaders({
2759
- "Accept": "application/octet-stream"
2760
- })
2771
+ headers: new i1.HttpHeaders({})
2761
2772
  };
2762
2773
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
2763
- return _this.http.request("get", url_, transformedOptions_);
2774
+ return _this.http.request("patch", url_, transformedOptions_);
2764
2775
  })).pipe(operators.mergeMap(function (response_) {
2765
- return _this.transformResult(url_, response_, function (r) { return _this.processLoadDataSchema(r); });
2776
+ return _this.transformResult(url_, response_, function (r) { return _this.processPatchProduct(r); });
2766
2777
  })).pipe(operators.catchError(function (response_) {
2767
2778
  if (response_ instanceof i1.HttpResponseBase) {
2768
2779
  try {
2769
- return _this.transformResult(url_, response_, function (r) { return _this.processLoadDataSchema(r); });
2780
+ return _this.transformResult(url_, response_, function (r) { return _this.processPatchProduct(r); });
2770
2781
  }
2771
2782
  catch (e) {
2772
2783
  return rxjs.throwError(e);
@@ -2776,7 +2787,7 @@
2776
2787
  return rxjs.throwError(response_);
2777
2788
  }));
2778
2789
  };
2779
- DesignAtomsServiceApiClient.prototype.processLoadDataSchema = function (response) {
2790
+ DesignAtomsServiceApiClient.prototype.processPatchProduct = function (response) {
2780
2791
  var e_30, _a;
2781
2792
  var _this = this;
2782
2793
  var status = response.status;
@@ -2798,11 +2809,10 @@
2798
2809
  finally { if (e_30) throw e_30.error; }
2799
2810
  }
2800
2811
  }
2801
- if (status === 200 || status === 206) {
2802
- var contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
2803
- var fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
2804
- var fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
2805
- return rxjs.of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
2812
+ if (status === 200) {
2813
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2814
+ return rxjs.of(null);
2815
+ }));
2806
2816
  }
2807
2817
  else if (status === 404) {
2808
2818
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
@@ -2811,13 +2821,6 @@
2811
2821
  return throwException("Not Found", status, _responseText, _headers, result404);
2812
2822
  }));
2813
2823
  }
2814
- else if (status === 409) {
2815
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2816
- var result409 = null;
2817
- result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
2818
- return throwException("Conflict", status, _responseText, _headers, result409);
2819
- }));
2820
- }
2821
2824
  else if (status === 401) {
2822
2825
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2823
2826
  return throwException("Unauthorized", status, _responseText, _headers);
@@ -2836,14 +2839,14 @@
2836
2839
  return rxjs.of(null);
2837
2840
  };
2838
2841
  /**
2839
- * Gets variable items information for design file taken from storage
2842
+ * Loads data schema from design file taken from storage
2840
2843
  * @param id Design identifier
2841
2844
  * @param tenantId (optional) Tenant identifier
2842
2845
  * @return Success
2843
2846
  */
2844
- DesignAtomsServiceApiClient.prototype.getVariables = function (id, tenantId) {
2847
+ DesignAtomsServiceApiClient.prototype.loadDataSchema = function (id, tenantId) {
2845
2848
  var _this = this;
2846
- var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/variables?";
2849
+ var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/schema?";
2847
2850
  if (id === undefined || id === null)
2848
2851
  throw new Error("The parameter 'id' must be defined.");
2849
2852
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
@@ -2856,17 +2859,17 @@
2856
2859
  observe: "response",
2857
2860
  responseType: "blob",
2858
2861
  headers: new i1.HttpHeaders({
2859
- "Accept": "application/json"
2862
+ "Accept": "application/octet-stream"
2860
2863
  })
2861
2864
  };
2862
2865
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
2863
2866
  return _this.http.request("get", url_, transformedOptions_);
2864
2867
  })).pipe(operators.mergeMap(function (response_) {
2865
- return _this.transformResult(url_, response_, function (r) { return _this.processGetVariables(r); });
2868
+ return _this.transformResult(url_, response_, function (r) { return _this.processLoadDataSchema(r); });
2866
2869
  })).pipe(operators.catchError(function (response_) {
2867
2870
  if (response_ instanceof i1.HttpResponseBase) {
2868
2871
  try {
2869
- return _this.transformResult(url_, response_, function (r) { return _this.processGetVariables(r); });
2872
+ return _this.transformResult(url_, response_, function (r) { return _this.processLoadDataSchema(r); });
2870
2873
  }
2871
2874
  catch (e) {
2872
2875
  return rxjs.throwError(e);
@@ -2876,7 +2879,7 @@
2876
2879
  return rxjs.throwError(response_);
2877
2880
  }));
2878
2881
  };
2879
- DesignAtomsServiceApiClient.prototype.processGetVariables = function (response) {
2882
+ DesignAtomsServiceApiClient.prototype.processLoadDataSchema = function (response) {
2880
2883
  var e_31, _a;
2881
2884
  var _this = this;
2882
2885
  var status = response.status;
@@ -2898,6 +2901,106 @@
2898
2901
  finally { if (e_31) throw e_31.error; }
2899
2902
  }
2900
2903
  }
2904
+ if (status === 200 || status === 206) {
2905
+ var contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
2906
+ var fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
2907
+ var fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
2908
+ return rxjs.of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
2909
+ }
2910
+ else if (status === 404) {
2911
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2912
+ var result404 = null;
2913
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
2914
+ return throwException("Not Found", status, _responseText, _headers, result404);
2915
+ }));
2916
+ }
2917
+ else if (status === 409) {
2918
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2919
+ var result409 = null;
2920
+ result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
2921
+ return throwException("Conflict", status, _responseText, _headers, result409);
2922
+ }));
2923
+ }
2924
+ else if (status === 401) {
2925
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2926
+ return throwException("Unauthorized", status, _responseText, _headers);
2927
+ }));
2928
+ }
2929
+ else if (status === 403) {
2930
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2931
+ return throwException("Forbidden", status, _responseText, _headers);
2932
+ }));
2933
+ }
2934
+ else if (status !== 200 && status !== 204) {
2935
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2936
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
2937
+ }));
2938
+ }
2939
+ return rxjs.of(null);
2940
+ };
2941
+ /**
2942
+ * Gets variable items information for design file taken from storage
2943
+ * @param id Design identifier
2944
+ * @param tenantId (optional) Tenant identifier
2945
+ * @return Success
2946
+ */
2947
+ DesignAtomsServiceApiClient.prototype.getVariables = function (id, tenantId) {
2948
+ var _this = this;
2949
+ var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/variables?";
2950
+ if (id === undefined || id === null)
2951
+ throw new Error("The parameter 'id' must be defined.");
2952
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
2953
+ if (tenantId === null)
2954
+ throw new Error("The parameter 'tenantId' cannot be null.");
2955
+ else if (tenantId !== undefined)
2956
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
2957
+ url_ = url_.replace(/[?&]$/, "");
2958
+ var options_ = {
2959
+ observe: "response",
2960
+ responseType: "blob",
2961
+ headers: new i1.HttpHeaders({
2962
+ "Accept": "application/json"
2963
+ })
2964
+ };
2965
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
2966
+ return _this.http.request("get", url_, transformedOptions_);
2967
+ })).pipe(operators.mergeMap(function (response_) {
2968
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetVariables(r); });
2969
+ })).pipe(operators.catchError(function (response_) {
2970
+ if (response_ instanceof i1.HttpResponseBase) {
2971
+ try {
2972
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetVariables(r); });
2973
+ }
2974
+ catch (e) {
2975
+ return rxjs.throwError(e);
2976
+ }
2977
+ }
2978
+ else
2979
+ return rxjs.throwError(response_);
2980
+ }));
2981
+ };
2982
+ DesignAtomsServiceApiClient.prototype.processGetVariables = function (response) {
2983
+ var e_32, _a;
2984
+ var _this = this;
2985
+ var status = response.status;
2986
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
2987
+ response.error instanceof Blob ? response.error : undefined;
2988
+ var _headers = {};
2989
+ if (response.headers) {
2990
+ try {
2991
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
2992
+ var key = _c.value;
2993
+ _headers[key] = response.headers.get(key);
2994
+ }
2995
+ }
2996
+ catch (e_32_1) { e_32 = { error: e_32_1 }; }
2997
+ finally {
2998
+ try {
2999
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3000
+ }
3001
+ finally { if (e_32) throw e_32.error; }
3002
+ }
3003
+ }
2901
3004
  if (status === 200) {
2902
3005
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2903
3006
  var result200 = null;
@@ -2975,7 +3078,7 @@
2975
3078
  }));
2976
3079
  };
2977
3080
  DesignAtomsServiceApiClient.prototype.processSetVariables = function (response) {
2978
- var e_32, _a;
3081
+ var e_33, _a;
2979
3082
  var _this = this;
2980
3083
  var status = response.status;
2981
3084
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2988,12 +3091,12 @@
2988
3091
  _headers[key] = response.headers.get(key);
2989
3092
  }
2990
3093
  }
2991
- catch (e_32_1) { e_32 = { error: e_32_1 }; }
3094
+ catch (e_33_1) { e_33 = { error: e_33_1 }; }
2992
3095
  finally {
2993
3096
  try {
2994
3097
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2995
3098
  }
2996
- finally { if (e_32) throw e_32.error; }
3099
+ finally { if (e_33) throw e_33.error; }
2997
3100
  }
2998
3101
  }
2999
3102
  if (status === 200) {
@@ -3076,7 +3179,7 @@
3076
3179
  }));
3077
3180
  };
3078
3181
  DesignAtomsServiceApiClient.prototype.processLoadVdpData = function (response) {
3079
- var e_33, _a;
3182
+ var e_34, _a;
3080
3183
  var _this = this;
3081
3184
  var status = response.status;
3082
3185
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3089,12 +3192,12 @@
3089
3192
  _headers[key] = response.headers.get(key);
3090
3193
  }
3091
3194
  }
3092
- catch (e_33_1) { e_33 = { error: e_33_1 }; }
3195
+ catch (e_34_1) { e_34 = { error: e_34_1 }; }
3093
3196
  finally {
3094
3197
  try {
3095
3198
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3096
3199
  }
3097
- finally { if (e_33) throw e_33.error; }
3200
+ finally { if (e_34) throw e_34.error; }
3098
3201
  }
3099
3202
  }
3100
3203
  if (status === 200) {
@@ -3180,7 +3283,7 @@
3180
3283
  }));
3181
3284
  };
3182
3285
  DesignAtomsServiceApiClient.prototype.processSaveVdpData = function (response) {
3183
- var e_34, _a;
3286
+ var e_35, _a;
3184
3287
  var _this = this;
3185
3288
  var status = response.status;
3186
3289
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3193,12 +3296,12 @@
3193
3296
  _headers[key] = response.headers.get(key);
3194
3297
  }
3195
3298
  }
3196
- catch (e_34_1) { e_34 = { error: e_34_1 }; }
3299
+ catch (e_35_1) { e_35 = { error: e_35_1 }; }
3197
3300
  finally {
3198
3301
  try {
3199
3302
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3200
3303
  }
3201
- finally { if (e_34) throw e_34.error; }
3304
+ finally { if (e_35) throw e_35.error; }
3202
3305
  }
3203
3306
  }
3204
3307
  if (status === 200) {
@@ -3270,7 +3373,7 @@
3270
3373
  }));
3271
3374
  };
3272
3375
  DesignAtomsServiceApiClient.prototype.processDeleteVdpData = function (response) {
3273
- var e_35, _a;
3376
+ var e_36, _a;
3274
3377
  var _this = this;
3275
3378
  var status = response.status;
3276
3379
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3283,12 +3386,12 @@
3283
3386
  _headers[key] = response.headers.get(key);
3284
3387
  }
3285
3388
  }
3286
- catch (e_35_1) { e_35 = { error: e_35_1 }; }
3389
+ catch (e_36_1) { e_36 = { error: e_36_1 }; }
3287
3390
  finally {
3288
3391
  try {
3289
3392
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3290
3393
  }
3291
- finally { if (e_35) throw e_35.error; }
3394
+ finally { if (e_36) throw e_36.error; }
3292
3395
  }
3293
3396
  }
3294
3397
  if (status === 200) {
@@ -3320,6 +3423,93 @@
3320
3423
  }
3321
3424
  return rxjs.of(null);
3322
3425
  };
3426
+ /**
3427
+ * Flatten items
3428
+ * @param tenantId (optional) Tenant identifier
3429
+ * @param body (optional) Items to flatten
3430
+ * @return Success
3431
+ */
3432
+ DesignAtomsServiceApiClient.prototype.flattenItems = function (tenantId, body) {
3433
+ var _this = this;
3434
+ var url_ = this.baseUrl + "/api/atoms/v1/flatten?";
3435
+ if (tenantId === null)
3436
+ throw new Error("The parameter 'tenantId' cannot be null.");
3437
+ else if (tenantId !== undefined)
3438
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3439
+ url_ = url_.replace(/[?&]$/, "");
3440
+ var content_ = JSON.stringify(body);
3441
+ var options_ = {
3442
+ body: content_,
3443
+ observe: "response",
3444
+ responseType: "blob",
3445
+ headers: new i1.HttpHeaders({
3446
+ "Content-Type": "application/json",
3447
+ "Accept": "application/json"
3448
+ })
3449
+ };
3450
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
3451
+ return _this.http.request("post", url_, transformedOptions_);
3452
+ })).pipe(operators.mergeMap(function (response_) {
3453
+ return _this.transformResult(url_, response_, function (r) { return _this.processFlattenItems(r); });
3454
+ })).pipe(operators.catchError(function (response_) {
3455
+ if (response_ instanceof i1.HttpResponseBase) {
3456
+ try {
3457
+ return _this.transformResult(url_, response_, function (r) { return _this.processFlattenItems(r); });
3458
+ }
3459
+ catch (e) {
3460
+ return rxjs.throwError(e);
3461
+ }
3462
+ }
3463
+ else
3464
+ return rxjs.throwError(response_);
3465
+ }));
3466
+ };
3467
+ DesignAtomsServiceApiClient.prototype.processFlattenItems = function (response) {
3468
+ var e_37, _a;
3469
+ var _this = this;
3470
+ var status = response.status;
3471
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
3472
+ response.error instanceof Blob ? response.error : undefined;
3473
+ var _headers = {};
3474
+ if (response.headers) {
3475
+ try {
3476
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
3477
+ var key = _c.value;
3478
+ _headers[key] = response.headers.get(key);
3479
+ }
3480
+ }
3481
+ catch (e_37_1) { e_37 = { error: e_37_1 }; }
3482
+ finally {
3483
+ try {
3484
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3485
+ }
3486
+ finally { if (e_37) throw e_37.error; }
3487
+ }
3488
+ }
3489
+ if (status === 200) {
3490
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3491
+ var result200 = null;
3492
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
3493
+ return rxjs.of(result200);
3494
+ }));
3495
+ }
3496
+ else if (status === 401) {
3497
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3498
+ return throwException("Unauthorized", status, _responseText, _headers);
3499
+ }));
3500
+ }
3501
+ else if (status === 403) {
3502
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3503
+ return throwException("Forbidden", status, _responseText, _headers);
3504
+ }));
3505
+ }
3506
+ else if (status !== 200 && status !== 204) {
3507
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3508
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
3509
+ }));
3510
+ }
3511
+ return rxjs.of(null);
3512
+ };
3323
3513
  /**
3324
3514
  * Creates product item
3325
3515
  * @param itemType (optional) Desired item type
@@ -3375,7 +3565,7 @@
3375
3565
  }));
3376
3566
  };
3377
3567
  DesignAtomsServiceApiClient.prototype.processCreateItem = function (response) {
3378
- var e_36, _a;
3568
+ var e_38, _a;
3379
3569
  var _this = this;
3380
3570
  var status = response.status;
3381
3571
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3388,12 +3578,12 @@
3388
3578
  _headers[key] = response.headers.get(key);
3389
3579
  }
3390
3580
  }
3391
- catch (e_36_1) { e_36 = { error: e_36_1 }; }
3581
+ catch (e_38_1) { e_38 = { error: e_38_1 }; }
3392
3582
  finally {
3393
3583
  try {
3394
3584
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3395
3585
  }
3396
- finally { if (e_36) throw e_36.error; }
3586
+ finally { if (e_38) throw e_38.error; }
3397
3587
  }
3398
3588
  }
3399
3589
  if (status === 200) {
@@ -3472,7 +3662,7 @@
3472
3662
  }));
3473
3663
  };
3474
3664
  DesignAtomsServiceApiClient.prototype.processRenderProduct = function (response) {
3475
- var e_37, _a;
3665
+ var e_39, _a;
3476
3666
  var status = response.status;
3477
3667
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
3478
3668
  response.error instanceof Blob ? response.error : undefined;
@@ -3484,12 +3674,12 @@
3484
3674
  _headers[key] = response.headers.get(key);
3485
3675
  }
3486
3676
  }
3487
- catch (e_37_1) { e_37 = { error: e_37_1 }; }
3677
+ catch (e_39_1) { e_39 = { error: e_39_1 }; }
3488
3678
  finally {
3489
3679
  try {
3490
3680
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3491
3681
  }
3492
- finally { if (e_37) throw e_37.error; }
3682
+ finally { if (e_39) throw e_39.error; }
3493
3683
  }
3494
3684
  }
3495
3685
  if (status === 200 || status === 206) {
@@ -3537,82 +3727,6 @@
3537
3727
  _this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : _this.getBaseUrl("");
3538
3728
  return _this;
3539
3729
  }
3540
- /**
3541
- * @param tenantId (optional) Tenant identifier
3542
- * @param body (optional)
3543
- * @return Success
3544
- */
3545
- DesignAtomsViewerApiClient.prototype.updateArchedTextItemHandler = function (tenantId, body) {
3546
- var _this = this;
3547
- var url_ = this.baseUrl + "/api/atoms/v1/ccviewer/api/ccviewer/UpdateArchedTextItemHandler?";
3548
- if (tenantId === null)
3549
- throw new Error("The parameter 'tenantId' cannot be null.");
3550
- else if (tenantId !== undefined)
3551
- url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3552
- url_ = url_.replace(/[?&]$/, "");
3553
- var content_ = JSON.stringify(body);
3554
- var options_ = {
3555
- body: content_,
3556
- observe: "response",
3557
- responseType: "blob",
3558
- headers: new i1.HttpHeaders({
3559
- "Content-Type": "application/json",
3560
- "Accept": "application/json"
3561
- })
3562
- };
3563
- return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
3564
- return _this.http.request("post", url_, transformedOptions_);
3565
- })).pipe(operators.mergeMap(function (response_) {
3566
- return _this.transformResult(url_, response_, function (r) { return _this.processUpdateArchedTextItemHandler(r); });
3567
- })).pipe(operators.catchError(function (response_) {
3568
- if (response_ instanceof i1.HttpResponseBase) {
3569
- try {
3570
- return _this.transformResult(url_, response_, function (r) { return _this.processUpdateArchedTextItemHandler(r); });
3571
- }
3572
- catch (e) {
3573
- return rxjs.throwError(e);
3574
- }
3575
- }
3576
- else
3577
- return rxjs.throwError(response_);
3578
- }));
3579
- };
3580
- DesignAtomsViewerApiClient.prototype.processUpdateArchedTextItemHandler = function (response) {
3581
- var e_38, _a;
3582
- var _this = this;
3583
- var status = response.status;
3584
- var responseBlob = response instanceof i1.HttpResponse ? response.body :
3585
- response.error instanceof Blob ? response.error : undefined;
3586
- var _headers = {};
3587
- if (response.headers) {
3588
- try {
3589
- for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
3590
- var key = _c.value;
3591
- _headers[key] = response.headers.get(key);
3592
- }
3593
- }
3594
- catch (e_38_1) { e_38 = { error: e_38_1 }; }
3595
- finally {
3596
- try {
3597
- if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3598
- }
3599
- finally { if (e_38) throw e_38.error; }
3600
- }
3601
- }
3602
- if (status === 200) {
3603
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3604
- var result200 = null;
3605
- result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
3606
- return rxjs.of(result200);
3607
- }));
3608
- }
3609
- else if (status !== 200 && status !== 204) {
3610
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3611
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
3612
- }));
3613
- }
3614
- return rxjs.of(null);
3615
- };
3616
3730
  /**
3617
3731
  * @param tenantId (optional) Tenant identifier
3618
3732
  * @param body (optional)
@@ -3654,7 +3768,7 @@
3654
3768
  }));
3655
3769
  };
3656
3770
  DesignAtomsViewerApiClient.prototype.processCssFonts = function (response) {
3657
- var e_39, _a;
3771
+ var e_40, _a;
3658
3772
  var _this = this;
3659
3773
  var status = response.status;
3660
3774
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3667,12 +3781,12 @@
3667
3781
  _headers[key] = response.headers.get(key);
3668
3782
  }
3669
3783
  }
3670
- catch (e_39_1) { e_39 = { error: e_39_1 }; }
3784
+ catch (e_40_1) { e_40 = { error: e_40_1 }; }
3671
3785
  finally {
3672
3786
  try {
3673
3787
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3674
3788
  }
3675
- finally { if (e_39) throw e_39.error; }
3789
+ finally { if (e_40) throw e_40.error; }
3676
3790
  }
3677
3791
  }
3678
3792
  if (status === 200) {
@@ -3729,7 +3843,7 @@
3729
3843
  }));
3730
3844
  };
3731
3845
  DesignAtomsViewerApiClient.prototype.processFonts = function (response) {
3732
- var e_40, _a;
3846
+ var e_41, _a;
3733
3847
  var _this = this;
3734
3848
  var status = response.status;
3735
3849
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3742,12 +3856,12 @@
3742
3856
  _headers[key] = response.headers.get(key);
3743
3857
  }
3744
3858
  }
3745
- catch (e_40_1) { e_40 = { error: e_40_1 }; }
3859
+ catch (e_41_1) { e_41 = { error: e_41_1 }; }
3746
3860
  finally {
3747
3861
  try {
3748
3862
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3749
3863
  }
3750
- finally { if (e_40) throw e_40.error; }
3864
+ finally { if (e_41) throw e_41.error; }
3751
3865
  }
3752
3866
  }
3753
3867
  if (status === 200 || status === 206) {
@@ -3810,7 +3924,7 @@
3810
3924
  }));
3811
3925
  };
3812
3926
  DesignAtomsViewerApiClient.prototype.processGetCssFont = function (response) {
3813
- var e_41, _a;
3927
+ var e_42, _a;
3814
3928
  var _this = this;
3815
3929
  var status = response.status;
3816
3930
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3823,12 +3937,12 @@
3823
3937
  _headers[key] = response.headers.get(key);
3824
3938
  }
3825
3939
  }
3826
- catch (e_41_1) { e_41 = { error: e_41_1 }; }
3940
+ catch (e_42_1) { e_42 = { error: e_42_1 }; }
3827
3941
  finally {
3828
3942
  try {
3829
3943
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3830
3944
  }
3831
- finally { if (e_41) throw e_41.error; }
3945
+ finally { if (e_42) throw e_42.error; }
3832
3946
  }
3833
3947
  }
3834
3948
  if (status === 200 || status === 206) {
@@ -3892,7 +4006,7 @@
3892
4006
  }));
3893
4007
  };
3894
4008
  DesignAtomsViewerApiClient.prototype.processGetImageSize = function (response) {
3895
- var e_42, _a;
4009
+ var e_43, _a;
3896
4010
  var _this = this;
3897
4011
  var status = response.status;
3898
4012
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3905,12 +4019,12 @@
3905
4019
  _headers[key] = response.headers.get(key);
3906
4020
  }
3907
4021
  }
3908
- catch (e_42_1) { e_42 = { error: e_42_1 }; }
4022
+ catch (e_43_1) { e_43 = { error: e_43_1 }; }
3909
4023
  finally {
3910
4024
  try {
3911
4025
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3912
4026
  }
3913
- finally { if (e_42) throw e_42.error; }
4027
+ finally { if (e_43) throw e_43.error; }
3914
4028
  }
3915
4029
  }
3916
4030
  if (status === 200) {
@@ -3968,7 +4082,7 @@
3968
4082
  }));
3969
4083
  };
3970
4084
  DesignAtomsViewerApiClient.prototype.processGetShapeBounds = function (response) {
3971
- var e_43, _a;
4085
+ var e_44, _a;
3972
4086
  var _this = this;
3973
4087
  var status = response.status;
3974
4088
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3981,12 +4095,12 @@
3981
4095
  _headers[key] = response.headers.get(key);
3982
4096
  }
3983
4097
  }
3984
- catch (e_43_1) { e_43 = { error: e_43_1 }; }
4098
+ catch (e_44_1) { e_44 = { error: e_44_1 }; }
3985
4099
  finally {
3986
4100
  try {
3987
4101
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3988
4102
  }
3989
- finally { if (e_43) throw e_43.error; }
4103
+ finally { if (e_44) throw e_44.error; }
3990
4104
  }
3991
4105
  }
3992
4106
  if (status === 200) {
@@ -4044,7 +4158,7 @@
4044
4158
  }));
4045
4159
  };
4046
4160
  DesignAtomsViewerApiClient.prototype.processGetWatermarkItems = function (response) {
4047
- var e_44, _a;
4161
+ var e_45, _a;
4048
4162
  var _this = this;
4049
4163
  var status = response.status;
4050
4164
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4057,12 +4171,12 @@
4057
4171
  _headers[key] = response.headers.get(key);
4058
4172
  }
4059
4173
  }
4060
- catch (e_44_1) { e_44 = { error: e_44_1 }; }
4174
+ catch (e_45_1) { e_45 = { error: e_45_1 }; }
4061
4175
  finally {
4062
4176
  try {
4063
4177
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4064
4178
  }
4065
- finally { if (e_44) throw e_44.error; }
4179
+ finally { if (e_45) throw e_45.error; }
4066
4180
  }
4067
4181
  }
4068
4182
  if (status === 200) {
@@ -4164,7 +4278,7 @@
4164
4278
  }));
4165
4279
  };
4166
4280
  DesignAtomsViewerApiClient.prototype.processImg = function (response) {
4167
- var e_45, _a;
4281
+ var e_46, _a;
4168
4282
  var _this = this;
4169
4283
  var status = response.status;
4170
4284
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4177,12 +4291,12 @@
4177
4291
  _headers[key] = response.headers.get(key);
4178
4292
  }
4179
4293
  }
4180
- catch (e_45_1) { e_45 = { error: e_45_1 }; }
4294
+ catch (e_46_1) { e_46 = { error: e_46_1 }; }
4181
4295
  finally {
4182
4296
  try {
4183
4297
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4184
4298
  }
4185
- finally { if (e_45) throw e_45.error; }
4299
+ finally { if (e_46) throw e_46.error; }
4186
4300
  }
4187
4301
  }
4188
4302
  if (status === 200 || status === 206) {
@@ -4247,7 +4361,7 @@
4247
4361
  }));
4248
4362
  };
4249
4363
  DesignAtomsViewerApiClient.prototype.processGetLicense = function (response) {
4250
- var e_46, _a;
4364
+ var e_47, _a;
4251
4365
  var _this = this;
4252
4366
  var status = response.status;
4253
4367
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4260,12 +4374,12 @@
4260
4374
  _headers[key] = response.headers.get(key);
4261
4375
  }
4262
4376
  }
4263
- catch (e_46_1) { e_46 = { error: e_46_1 }; }
4377
+ catch (e_47_1) { e_47 = { error: e_47_1 }; }
4264
4378
  finally {
4265
4379
  try {
4266
4380
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4267
4381
  }
4268
- finally { if (e_46) throw e_46.error; }
4382
+ finally { if (e_47) throw e_47.error; }
4269
4383
  }
4270
4384
  }
4271
4385
  if (status === 200) {
@@ -4322,7 +4436,7 @@
4322
4436
  }));
4323
4437
  };
4324
4438
  DesignAtomsViewerApiClient.prototype.processPth = function (response) {
4325
- var e_47, _a;
4439
+ var e_48, _a;
4326
4440
  var _this = this;
4327
4441
  var status = response.status;
4328
4442
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4335,12 +4449,12 @@
4335
4449
  _headers[key] = response.headers.get(key);
4336
4450
  }
4337
4451
  }
4338
- catch (e_47_1) { e_47 = { error: e_47_1 }; }
4452
+ catch (e_48_1) { e_48 = { error: e_48_1 }; }
4339
4453
  finally {
4340
4454
  try {
4341
4455
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4342
4456
  }
4343
- finally { if (e_47) throw e_47.error; }
4457
+ finally { if (e_48) throw e_48.error; }
4344
4458
  }
4345
4459
  }
4346
4460
  if (status === 200 || status === 206) {
@@ -4408,7 +4522,7 @@
4408
4522
  }));
4409
4523
  };
4410
4524
  DesignAtomsViewerApiClient.prototype.processResource = function (response) {
4411
- var e_48, _a;
4525
+ var e_49, _a;
4412
4526
  var _this = this;
4413
4527
  var status = response.status;
4414
4528
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4421,12 +4535,12 @@
4421
4535
  _headers[key] = response.headers.get(key);
4422
4536
  }
4423
4537
  }
4424
- catch (e_48_1) { e_48 = { error: e_48_1 }; }
4538
+ catch (e_49_1) { e_49 = { error: e_49_1 }; }
4425
4539
  finally {
4426
4540
  try {
4427
4541
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4428
4542
  }
4429
- finally { if (e_48) throw e_48.error; }
4543
+ finally { if (e_49) throw e_49.error; }
4430
4544
  }
4431
4545
  }
4432
4546
  if (status === 200 || status === 206) {
@@ -4489,7 +4603,7 @@
4489
4603
  }));
4490
4604
  };
4491
4605
  DesignAtomsViewerApiClient.prototype.processSvg = function (response) {
4492
- var e_49, _a;
4606
+ var e_50, _a;
4493
4607
  var _this = this;
4494
4608
  var status = response.status;
4495
4609
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4502,12 +4616,12 @@
4502
4616
  _headers[key] = response.headers.get(key);
4503
4617
  }
4504
4618
  }
4505
- catch (e_49_1) { e_49 = { error: e_49_1 }; }
4619
+ catch (e_50_1) { e_50 = { error: e_50_1 }; }
4506
4620
  finally {
4507
4621
  try {
4508
4622
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4509
4623
  }
4510
- finally { if (e_49) throw e_49.error; }
4624
+ finally { if (e_50) throw e_50.error; }
4511
4625
  }
4512
4626
  }
4513
4627
  if (status === 200 || status === 206) {
@@ -4575,7 +4689,7 @@
4575
4689
  }));
4576
4690
  };
4577
4691
  DesignAtomsViewerApiClient.prototype.processTxt = function (response) {
4578
- var e_50, _a;
4692
+ var e_51, _a;
4579
4693
  var _this = this;
4580
4694
  var status = response.status;
4581
4695
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4588,12 +4702,12 @@
4588
4702
  _headers[key] = response.headers.get(key);
4589
4703
  }
4590
4704
  }
4591
- catch (e_50_1) { e_50 = { error: e_50_1 }; }
4705
+ catch (e_51_1) { e_51 = { error: e_51_1 }; }
4592
4706
  finally {
4593
4707
  try {
4594
4708
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4595
4709
  }
4596
- finally { if (e_50) throw e_50.error; }
4710
+ finally { if (e_51) throw e_51.error; }
4597
4711
  }
4598
4712
  }
4599
4713
  if (status === 200 || status === 206) {
@@ -4621,6 +4735,82 @@
4621
4735
  }
4622
4736
  return rxjs.of(null);
4623
4737
  };
4738
+ /**
4739
+ * @param tenantId (optional) Tenant identifier
4740
+ * @param body (optional)
4741
+ * @return Success
4742
+ */
4743
+ DesignAtomsViewerApiClient.prototype.updateArchedTextItemHandler = function (tenantId, body) {
4744
+ var _this = this;
4745
+ var url_ = this.baseUrl + "/api/atoms/v1/ccviewer/UpdateArchedTextItemHandler?";
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 content_ = JSON.stringify(body);
4752
+ var options_ = {
4753
+ body: content_,
4754
+ observe: "response",
4755
+ responseType: "blob",
4756
+ headers: new i1.HttpHeaders({
4757
+ "Content-Type": "application/json",
4758
+ "Accept": "application/json"
4759
+ })
4760
+ };
4761
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
4762
+ return _this.http.request("post", url_, transformedOptions_);
4763
+ })).pipe(operators.mergeMap(function (response_) {
4764
+ return _this.transformResult(url_, response_, function (r) { return _this.processUpdateArchedTextItemHandler(r); });
4765
+ })).pipe(operators.catchError(function (response_) {
4766
+ if (response_ instanceof i1.HttpResponseBase) {
4767
+ try {
4768
+ return _this.transformResult(url_, response_, function (r) { return _this.processUpdateArchedTextItemHandler(r); });
4769
+ }
4770
+ catch (e) {
4771
+ return rxjs.throwError(e);
4772
+ }
4773
+ }
4774
+ else
4775
+ return rxjs.throwError(response_);
4776
+ }));
4777
+ };
4778
+ DesignAtomsViewerApiClient.prototype.processUpdateArchedTextItemHandler = function (response) {
4779
+ var e_52, _a;
4780
+ var _this = this;
4781
+ var status = response.status;
4782
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
4783
+ response.error instanceof Blob ? response.error : undefined;
4784
+ var _headers = {};
4785
+ if (response.headers) {
4786
+ try {
4787
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
4788
+ var key = _c.value;
4789
+ _headers[key] = response.headers.get(key);
4790
+ }
4791
+ }
4792
+ catch (e_52_1) { e_52 = { error: e_52_1 }; }
4793
+ finally {
4794
+ try {
4795
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4796
+ }
4797
+ finally { if (e_52) throw e_52.error; }
4798
+ }
4799
+ }
4800
+ if (status === 200) {
4801
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4802
+ var result200 = null;
4803
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
4804
+ return rxjs.of(result200);
4805
+ }));
4806
+ }
4807
+ else if (status !== 200 && status !== 204) {
4808
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4809
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
4810
+ }));
4811
+ }
4812
+ return rxjs.of(null);
4813
+ };
4624
4814
  /**
4625
4815
  * @param tenantId (optional) Tenant identifier
4626
4816
  * @param body (optional)
@@ -4662,7 +4852,7 @@
4662
4852
  }));
4663
4853
  };
4664
4854
  DesignAtomsViewerApiClient.prototype.processUpdateAutoScaledTextItemHandler = function (response) {
4665
- var e_51, _a;
4855
+ var e_53, _a;
4666
4856
  var _this = this;
4667
4857
  var status = response.status;
4668
4858
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4675,12 +4865,12 @@
4675
4865
  _headers[key] = response.headers.get(key);
4676
4866
  }
4677
4867
  }
4678
- catch (e_51_1) { e_51 = { error: e_51_1 }; }
4868
+ catch (e_53_1) { e_53 = { error: e_53_1 }; }
4679
4869
  finally {
4680
4870
  try {
4681
4871
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4682
4872
  }
4683
- finally { if (e_51) throw e_51.error; }
4873
+ finally { if (e_53) throw e_53.error; }
4684
4874
  }
4685
4875
  }
4686
4876
  if (status === 200) {
@@ -4738,7 +4928,7 @@
4738
4928
  }));
4739
4929
  };
4740
4930
  DesignAtomsViewerApiClient.prototype.processUpdateBarcodeItemHandler = function (response) {
4741
- var e_52, _a;
4931
+ var e_54, _a;
4742
4932
  var _this = this;
4743
4933
  var status = response.status;
4744
4934
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4751,12 +4941,12 @@
4751
4941
  _headers[key] = response.headers.get(key);
4752
4942
  }
4753
4943
  }
4754
- catch (e_52_1) { e_52 = { error: e_52_1 }; }
4944
+ catch (e_54_1) { e_54 = { error: e_54_1 }; }
4755
4945
  finally {
4756
4946
  try {
4757
4947
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4758
4948
  }
4759
- finally { if (e_52) throw e_52.error; }
4949
+ finally { if (e_54) throw e_54.error; }
4760
4950
  }
4761
4951
  }
4762
4952
  if (status === 200) {
@@ -4814,7 +5004,7 @@
4814
5004
  }));
4815
5005
  };
4816
5006
  DesignAtomsViewerApiClient.prototype.processUpdateBoundedTextItemHandler = function (response) {
4817
- var e_53, _a;
5007
+ var e_55, _a;
4818
5008
  var _this = this;
4819
5009
  var status = response.status;
4820
5010
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4827,12 +5017,12 @@
4827
5017
  _headers[key] = response.headers.get(key);
4828
5018
  }
4829
5019
  }
4830
- catch (e_53_1) { e_53 = { error: e_53_1 }; }
5020
+ catch (e_55_1) { e_55 = { error: e_55_1 }; }
4831
5021
  finally {
4832
5022
  try {
4833
5023
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4834
5024
  }
4835
- finally { if (e_53) throw e_53.error; }
5025
+ finally { if (e_55) throw e_55.error; }
4836
5026
  }
4837
5027
  }
4838
5028
  if (status === 200) {
@@ -4890,7 +5080,7 @@
4890
5080
  }));
4891
5081
  };
4892
5082
  DesignAtomsViewerApiClient.prototype.processUpdateByColorData = function (response) {
4893
- var e_54, _a;
5083
+ var e_56, _a;
4894
5084
  var _this = this;
4895
5085
  var status = response.status;
4896
5086
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4903,12 +5093,12 @@
4903
5093
  _headers[key] = response.headers.get(key);
4904
5094
  }
4905
5095
  }
4906
- catch (e_54_1) { e_54 = { error: e_54_1 }; }
5096
+ catch (e_56_1) { e_56 = { error: e_56_1 }; }
4907
5097
  finally {
4908
5098
  try {
4909
5099
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4910
5100
  }
4911
- finally { if (e_54) throw e_54.error; }
5101
+ finally { if (e_56) throw e_56.error; }
4912
5102
  }
4913
5103
  }
4914
5104
  if (status === 200) {
@@ -4966,7 +5156,7 @@
4966
5156
  }));
4967
5157
  };
4968
5158
  DesignAtomsViewerApiClient.prototype.processUpdateByMultiCallRequest = function (response) {
4969
- var e_55, _a;
5159
+ var e_57, _a;
4970
5160
  var _this = this;
4971
5161
  var status = response.status;
4972
5162
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4979,12 +5169,12 @@
4979
5169
  _headers[key] = response.headers.get(key);
4980
5170
  }
4981
5171
  }
4982
- catch (e_55_1) { e_55 = { error: e_55_1 }; }
5172
+ catch (e_57_1) { e_57 = { error: e_57_1 }; }
4983
5173
  finally {
4984
5174
  try {
4985
5175
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4986
5176
  }
4987
- finally { if (e_55) throw e_55.error; }
5177
+ finally { if (e_57) throw e_57.error; }
4988
5178
  }
4989
5179
  }
4990
5180
  if (status === 200) {
@@ -5042,7 +5232,7 @@
5042
5232
  }));
5043
5233
  };
5044
5234
  DesignAtomsViewerApiClient.prototype.processUpdateCurvedTextItemHandler = function (response) {
5045
- var e_56, _a;
5235
+ var e_58, _a;
5046
5236
  var _this = this;
5047
5237
  var status = response.status;
5048
5238
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5055,12 +5245,12 @@
5055
5245
  _headers[key] = response.headers.get(key);
5056
5246
  }
5057
5247
  }
5058
- catch (e_56_1) { e_56 = { error: e_56_1 }; }
5248
+ catch (e_58_1) { e_58 = { error: e_58_1 }; }
5059
5249
  finally {
5060
5250
  try {
5061
5251
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5062
5252
  }
5063
- finally { if (e_56) throw e_56.error; }
5253
+ finally { if (e_58) throw e_58.error; }
5064
5254
  }
5065
5255
  }
5066
5256
  if (status === 200) {
@@ -5118,7 +5308,7 @@
5118
5308
  }));
5119
5309
  };
5120
5310
  DesignAtomsViewerApiClient.prototype.processUpdateImageItemHandler = function (response) {
5121
- var e_57, _a;
5311
+ var e_59, _a;
5122
5312
  var _this = this;
5123
5313
  var status = response.status;
5124
5314
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5131,12 +5321,12 @@
5131
5321
  _headers[key] = response.headers.get(key);
5132
5322
  }
5133
5323
  }
5134
- catch (e_57_1) { e_57 = { error: e_57_1 }; }
5324
+ catch (e_59_1) { e_59 = { error: e_59_1 }; }
5135
5325
  finally {
5136
5326
  try {
5137
5327
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5138
5328
  }
5139
- finally { if (e_57) throw e_57.error; }
5329
+ finally { if (e_59) throw e_59.error; }
5140
5330
  }
5141
5331
  }
5142
5332
  if (status === 200) {
@@ -5194,7 +5384,7 @@
5194
5384
  }));
5195
5385
  };
5196
5386
  DesignAtomsViewerApiClient.prototype.processUpdatePathBoundedTextItemHandler = function (response) {
5197
- var e_58, _a;
5387
+ var e_60, _a;
5198
5388
  var _this = this;
5199
5389
  var status = response.status;
5200
5390
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5207,12 +5397,12 @@
5207
5397
  _headers[key] = response.headers.get(key);
5208
5398
  }
5209
5399
  }
5210
- catch (e_58_1) { e_58 = { error: e_58_1 }; }
5400
+ catch (e_60_1) { e_60 = { error: e_60_1 }; }
5211
5401
  finally {
5212
5402
  try {
5213
5403
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5214
5404
  }
5215
- finally { if (e_58) throw e_58.error; }
5405
+ finally { if (e_60) throw e_60.error; }
5216
5406
  }
5217
5407
  }
5218
5408
  if (status === 200) {
@@ -5270,7 +5460,7 @@
5270
5460
  }));
5271
5461
  };
5272
5462
  DesignAtomsViewerApiClient.prototype.processUpdatePlainTextItemHandler = function (response) {
5273
- var e_59, _a;
5463
+ var e_61, _a;
5274
5464
  var _this = this;
5275
5465
  var status = response.status;
5276
5466
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5283,12 +5473,12 @@
5283
5473
  _headers[key] = response.headers.get(key);
5284
5474
  }
5285
5475
  }
5286
- catch (e_59_1) { e_59 = { error: e_59_1 }; }
5476
+ catch (e_61_1) { e_61 = { error: e_61_1 }; }
5287
5477
  finally {
5288
5478
  try {
5289
5479
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5290
5480
  }
5291
- finally { if (e_59) throw e_59.error; }
5481
+ finally { if (e_61) throw e_61.error; }
5292
5482
  }
5293
5483
  }
5294
5484
  if (status === 200) {
@@ -5346,7 +5536,7 @@
5346
5536
  }));
5347
5537
  };
5348
5538
  DesignAtomsViewerApiClient.prototype.processUpdateShapeItemHandler = function (response) {
5349
- var e_60, _a;
5539
+ var e_62, _a;
5350
5540
  var _this = this;
5351
5541
  var status = response.status;
5352
5542
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5359,12 +5549,12 @@
5359
5549
  _headers[key] = response.headers.get(key);
5360
5550
  }
5361
5551
  }
5362
- catch (e_60_1) { e_60 = { error: e_60_1 }; }
5552
+ catch (e_62_1) { e_62 = { error: e_62_1 }; }
5363
5553
  finally {
5364
5554
  try {
5365
5555
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5366
5556
  }
5367
- finally { if (e_60) throw e_60.error; }
5557
+ finally { if (e_62) throw e_62.error; }
5368
5558
  }
5369
5559
  }
5370
5560
  if (status === 200) {
@@ -5394,6 +5584,10 @@
5394
5584
  { type: i1.HttpClient, decorators: [{ type: i0.Inject, args: [i1.HttpClient,] }] },
5395
5585
  { type: String, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [API_BASE_URL,] }] }
5396
5586
  ]; };
5587
+ (function (ProductPatchType) {
5588
+ ProductPatchType["Undefined"] = "Undefined";
5589
+ ProductPatchType["ReplaceImageItemFile"] = "ReplaceImageItemFile";
5590
+ })(exports.ProductPatchType || (exports.ProductPatchType = {}));
5397
5591
  (function (ItemType) {
5398
5592
  ItemType["Image"] = "Image";
5399
5593
  ItemType["Shape"] = "Shape";