@aurigma/ng-design-atoms-api-client 2.33.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.
@@ -798,6 +798,82 @@
798
798
  }
799
799
  return rxjs.of(null);
800
800
  };
801
+ /**
802
+ * @return Success
803
+ */
804
+ DesignAtomsCompatibilityApiClient.prototype.getFallbackFonts = function (tenantId) {
805
+ var _this = this;
806
+ var url_ = this.baseUrl + "/api/atoms/v1/tenants/{tenantId}/api/ccviewer/GetFallbackFonts";
807
+ if (tenantId === undefined || tenantId === null)
808
+ throw new Error("The parameter 'tenantId' must be defined.");
809
+ url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
810
+ url_ = url_.replace(/[?&]$/, "");
811
+ var options_ = {
812
+ observe: "response",
813
+ responseType: "blob",
814
+ headers: new i1.HttpHeaders({
815
+ "Accept": "application/json"
816
+ })
817
+ };
818
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
819
+ return _this.http.request("get", url_, transformedOptions_);
820
+ })).pipe(operators.mergeMap(function (response_) {
821
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetFallbackFonts(r); });
822
+ })).pipe(operators.catchError(function (response_) {
823
+ if (response_ instanceof i1.HttpResponseBase) {
824
+ try {
825
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetFallbackFonts(r); });
826
+ }
827
+ catch (e) {
828
+ return rxjs.throwError(e);
829
+ }
830
+ }
831
+ else
832
+ return rxjs.throwError(response_);
833
+ }));
834
+ };
835
+ DesignAtomsCompatibilityApiClient.prototype.processGetFallbackFonts = function (response) {
836
+ var e_6, _a;
837
+ var _this = this;
838
+ var status = response.status;
839
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
840
+ response.error instanceof Blob ? response.error : undefined;
841
+ var _headers = {};
842
+ if (response.headers) {
843
+ try {
844
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
845
+ var key = _c.value;
846
+ _headers[key] = response.headers.get(key);
847
+ }
848
+ }
849
+ catch (e_6_1) { e_6 = { error: e_6_1 }; }
850
+ finally {
851
+ try {
852
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
853
+ }
854
+ finally { if (e_6) throw e_6.error; }
855
+ }
856
+ }
857
+ if (status === 200 || status === 206) {
858
+ var contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
859
+ var fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
860
+ var fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
861
+ return rxjs.of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
862
+ }
863
+ else if (status === 500) {
864
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
865
+ var result500 = null;
866
+ result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
867
+ return throwException("Internal server error", status, _responseText, _headers, result500);
868
+ }));
869
+ }
870
+ else if (status !== 200 && status !== 204) {
871
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
872
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
873
+ }));
874
+ }
875
+ return rxjs.of(null);
876
+ };
801
877
  /**
802
878
  * @param body (optional)
803
879
  * @return Success
@@ -837,7 +913,7 @@
837
913
  }));
838
914
  };
839
915
  DesignAtomsCompatibilityApiClient.prototype.processGetImageSize = function (response) {
840
- var e_6, _a;
916
+ var e_7, _a;
841
917
  var _this = this;
842
918
  var status = response.status;
843
919
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -850,12 +926,12 @@
850
926
  _headers[key] = response.headers.get(key);
851
927
  }
852
928
  }
853
- catch (e_6_1) { e_6 = { error: e_6_1 }; }
929
+ catch (e_7_1) { e_7 = { error: e_7_1 }; }
854
930
  finally {
855
931
  try {
856
932
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
857
933
  }
858
- finally { if (e_6) throw e_6.error; }
934
+ finally { if (e_7) throw e_7.error; }
859
935
  }
860
936
  }
861
937
  if (status === 200) {
@@ -918,7 +994,7 @@
918
994
  }));
919
995
  };
920
996
  DesignAtomsCompatibilityApiClient.prototype.processGetShapeBounds = function (response) {
921
- var e_7, _a;
997
+ var e_8, _a;
922
998
  var _this = this;
923
999
  var status = response.status;
924
1000
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -931,12 +1007,12 @@
931
1007
  _headers[key] = response.headers.get(key);
932
1008
  }
933
1009
  }
934
- catch (e_7_1) { e_7 = { error: e_7_1 }; }
1010
+ catch (e_8_1) { e_8 = { error: e_8_1 }; }
935
1011
  finally {
936
1012
  try {
937
1013
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
938
1014
  }
939
- finally { if (e_7) throw e_7.error; }
1015
+ finally { if (e_8) throw e_8.error; }
940
1016
  }
941
1017
  }
942
1018
  if (status === 200) {
@@ -999,7 +1075,7 @@
999
1075
  }));
1000
1076
  };
1001
1077
  DesignAtomsCompatibilityApiClient.prototype.processGetWatermarkItems = function (response) {
1002
- var e_8, _a;
1078
+ var e_9, _a;
1003
1079
  var _this = this;
1004
1080
  var status = response.status;
1005
1081
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -1012,12 +1088,12 @@
1012
1088
  _headers[key] = response.headers.get(key);
1013
1089
  }
1014
1090
  }
1015
- catch (e_8_1) { e_8 = { error: e_8_1 }; }
1091
+ catch (e_9_1) { e_9 = { error: e_9_1 }; }
1016
1092
  finally {
1017
1093
  try {
1018
1094
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1019
1095
  }
1020
- finally { if (e_8) throw e_8.error; }
1096
+ finally { if (e_9) throw e_9.error; }
1021
1097
  }
1022
1098
  }
1023
1099
  if (status === 200) {
@@ -1124,7 +1200,7 @@
1124
1200
  }));
1125
1201
  };
1126
1202
  DesignAtomsCompatibilityApiClient.prototype.processImg = function (response) {
1127
- var e_9, _a;
1203
+ var e_10, _a;
1128
1204
  var _this = this;
1129
1205
  var status = response.status;
1130
1206
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -1137,12 +1213,12 @@
1137
1213
  _headers[key] = response.headers.get(key);
1138
1214
  }
1139
1215
  }
1140
- catch (e_9_1) { e_9 = { error: e_9_1 }; }
1216
+ catch (e_10_1) { e_10 = { error: e_10_1 }; }
1141
1217
  finally {
1142
1218
  try {
1143
1219
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1144
1220
  }
1145
- finally { if (e_9) throw e_9.error; }
1221
+ finally { if (e_10) throw e_10.error; }
1146
1222
  }
1147
1223
  }
1148
1224
  if (status === 200 || status === 206) {
@@ -1212,7 +1288,7 @@
1212
1288
  }));
1213
1289
  };
1214
1290
  DesignAtomsCompatibilityApiClient.prototype.processGetLicense = function (response) {
1215
- var e_10, _a;
1291
+ var e_11, _a;
1216
1292
  var _this = this;
1217
1293
  var status = response.status;
1218
1294
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -1225,12 +1301,12 @@
1225
1301
  _headers[key] = response.headers.get(key);
1226
1302
  }
1227
1303
  }
1228
- catch (e_10_1) { e_10 = { error: e_10_1 }; }
1304
+ catch (e_11_1) { e_11 = { error: e_11_1 }; }
1229
1305
  finally {
1230
1306
  try {
1231
1307
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1232
1308
  }
1233
- finally { if (e_10) throw e_10.error; }
1309
+ finally { if (e_11) throw e_11.error; }
1234
1310
  }
1235
1311
  }
1236
1312
  if (status === 200) {
@@ -1292,7 +1368,7 @@
1292
1368
  }));
1293
1369
  };
1294
1370
  DesignAtomsCompatibilityApiClient.prototype.processPth = function (response) {
1295
- var e_11, _a;
1371
+ var e_12, _a;
1296
1372
  var _this = this;
1297
1373
  var status = response.status;
1298
1374
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -1305,12 +1381,12 @@
1305
1381
  _headers[key] = response.headers.get(key);
1306
1382
  }
1307
1383
  }
1308
- catch (e_11_1) { e_11 = { error: e_11_1 }; }
1384
+ catch (e_12_1) { e_12 = { error: e_12_1 }; }
1309
1385
  finally {
1310
1386
  try {
1311
1387
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1312
1388
  }
1313
- finally { if (e_11) throw e_11.error; }
1389
+ finally { if (e_12) throw e_12.error; }
1314
1390
  }
1315
1391
  }
1316
1392
  if (status === 200 || status === 206) {
@@ -1383,7 +1459,7 @@
1383
1459
  }));
1384
1460
  };
1385
1461
  DesignAtomsCompatibilityApiClient.prototype.processResource = function (response) {
1386
- var e_12, _a;
1462
+ var e_13, _a;
1387
1463
  var _this = this;
1388
1464
  var status = response.status;
1389
1465
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -1396,12 +1472,12 @@
1396
1472
  _headers[key] = response.headers.get(key);
1397
1473
  }
1398
1474
  }
1399
- catch (e_12_1) { e_12 = { error: e_12_1 }; }
1475
+ catch (e_13_1) { e_13 = { error: e_13_1 }; }
1400
1476
  finally {
1401
1477
  try {
1402
1478
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1403
1479
  }
1404
- finally { if (e_12) throw e_12.error; }
1480
+ finally { if (e_13) throw e_13.error; }
1405
1481
  }
1406
1482
  }
1407
1483
  if (status === 200 || status === 206) {
@@ -1469,7 +1545,7 @@
1469
1545
  }));
1470
1546
  };
1471
1547
  DesignAtomsCompatibilityApiClient.prototype.processSvg = function (response) {
1472
- var e_13, _a;
1548
+ var e_14, _a;
1473
1549
  var _this = this;
1474
1550
  var status = response.status;
1475
1551
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -1482,12 +1558,12 @@
1482
1558
  _headers[key] = response.headers.get(key);
1483
1559
  }
1484
1560
  }
1485
- catch (e_13_1) { e_13 = { error: e_13_1 }; }
1561
+ catch (e_14_1) { e_14 = { error: e_14_1 }; }
1486
1562
  finally {
1487
1563
  try {
1488
1564
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1489
1565
  }
1490
- finally { if (e_13) throw e_13.error; }
1566
+ finally { if (e_14) throw e_14.error; }
1491
1567
  }
1492
1568
  }
1493
1569
  if (status === 200 || status === 206) {
@@ -1560,7 +1636,7 @@
1560
1636
  }));
1561
1637
  };
1562
1638
  DesignAtomsCompatibilityApiClient.prototype.processTxt = function (response) {
1563
- var e_14, _a;
1639
+ var e_15, _a;
1564
1640
  var _this = this;
1565
1641
  var status = response.status;
1566
1642
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -1573,12 +1649,12 @@
1573
1649
  _headers[key] = response.headers.get(key);
1574
1650
  }
1575
1651
  }
1576
- catch (e_14_1) { e_14 = { error: e_14_1 }; }
1652
+ catch (e_15_1) { e_15 = { error: e_15_1 }; }
1577
1653
  finally {
1578
1654
  try {
1579
1655
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1580
1656
  }
1581
- finally { if (e_14) throw e_14.error; }
1657
+ finally { if (e_15) throw e_15.error; }
1582
1658
  }
1583
1659
  }
1584
1660
  if (status === 200 || status === 206) {
@@ -1652,7 +1728,7 @@
1652
1728
  }));
1653
1729
  };
1654
1730
  DesignAtomsCompatibilityApiClient.prototype.processUpdateArchedTextItemHandler = function (response) {
1655
- var e_15, _a;
1731
+ var e_16, _a;
1656
1732
  var _this = this;
1657
1733
  var status = response.status;
1658
1734
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -1665,12 +1741,12 @@
1665
1741
  _headers[key] = response.headers.get(key);
1666
1742
  }
1667
1743
  }
1668
- catch (e_15_1) { e_15 = { error: e_15_1 }; }
1744
+ catch (e_16_1) { e_16 = { error: e_16_1 }; }
1669
1745
  finally {
1670
1746
  try {
1671
1747
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1672
1748
  }
1673
- finally { if (e_15) throw e_15.error; }
1749
+ finally { if (e_16) throw e_16.error; }
1674
1750
  }
1675
1751
  }
1676
1752
  if (status === 200) {
@@ -1733,7 +1809,7 @@
1733
1809
  }));
1734
1810
  };
1735
1811
  DesignAtomsCompatibilityApiClient.prototype.processUpdateAutoScaledTextItemHandler = function (response) {
1736
- var e_16, _a;
1812
+ var e_17, _a;
1737
1813
  var _this = this;
1738
1814
  var status = response.status;
1739
1815
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -1746,12 +1822,12 @@
1746
1822
  _headers[key] = response.headers.get(key);
1747
1823
  }
1748
1824
  }
1749
- catch (e_16_1) { e_16 = { error: e_16_1 }; }
1825
+ catch (e_17_1) { e_17 = { error: e_17_1 }; }
1750
1826
  finally {
1751
1827
  try {
1752
1828
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1753
1829
  }
1754
- finally { if (e_16) throw e_16.error; }
1830
+ finally { if (e_17) throw e_17.error; }
1755
1831
  }
1756
1832
  }
1757
1833
  if (status === 200) {
@@ -1814,7 +1890,7 @@
1814
1890
  }));
1815
1891
  };
1816
1892
  DesignAtomsCompatibilityApiClient.prototype.processUpdateBarcodeItemHandler = function (response) {
1817
- var e_17, _a;
1893
+ var e_18, _a;
1818
1894
  var _this = this;
1819
1895
  var status = response.status;
1820
1896
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -1827,12 +1903,12 @@
1827
1903
  _headers[key] = response.headers.get(key);
1828
1904
  }
1829
1905
  }
1830
- catch (e_17_1) { e_17 = { error: e_17_1 }; }
1906
+ catch (e_18_1) { e_18 = { error: e_18_1 }; }
1831
1907
  finally {
1832
1908
  try {
1833
1909
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1834
1910
  }
1835
- finally { if (e_17) throw e_17.error; }
1911
+ finally { if (e_18) throw e_18.error; }
1836
1912
  }
1837
1913
  }
1838
1914
  if (status === 200) {
@@ -1895,7 +1971,7 @@
1895
1971
  }));
1896
1972
  };
1897
1973
  DesignAtomsCompatibilityApiClient.prototype.processUpdateBoundedTextItemHandler = function (response) {
1898
- var e_18, _a;
1974
+ var e_19, _a;
1899
1975
  var _this = this;
1900
1976
  var status = response.status;
1901
1977
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -1908,12 +1984,12 @@
1908
1984
  _headers[key] = response.headers.get(key);
1909
1985
  }
1910
1986
  }
1911
- catch (e_18_1) { e_18 = { error: e_18_1 }; }
1987
+ catch (e_19_1) { e_19 = { error: e_19_1 }; }
1912
1988
  finally {
1913
1989
  try {
1914
1990
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1915
1991
  }
1916
- finally { if (e_18) throw e_18.error; }
1992
+ finally { if (e_19) throw e_19.error; }
1917
1993
  }
1918
1994
  }
1919
1995
  if (status === 200) {
@@ -1976,7 +2052,7 @@
1976
2052
  }));
1977
2053
  };
1978
2054
  DesignAtomsCompatibilityApiClient.prototype.processUpdateByColorData = function (response) {
1979
- var e_19, _a;
2055
+ var e_20, _a;
1980
2056
  var _this = this;
1981
2057
  var status = response.status;
1982
2058
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -1989,12 +2065,12 @@
1989
2065
  _headers[key] = response.headers.get(key);
1990
2066
  }
1991
2067
  }
1992
- catch (e_19_1) { e_19 = { error: e_19_1 }; }
2068
+ catch (e_20_1) { e_20 = { error: e_20_1 }; }
1993
2069
  finally {
1994
2070
  try {
1995
2071
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1996
2072
  }
1997
- finally { if (e_19) throw e_19.error; }
2073
+ finally { if (e_20) throw e_20.error; }
1998
2074
  }
1999
2075
  }
2000
2076
  if (status === 200) {
@@ -2057,7 +2133,7 @@
2057
2133
  }));
2058
2134
  };
2059
2135
  DesignAtomsCompatibilityApiClient.prototype.processUpdateByMultiCallRequest = function (response) {
2060
- var e_20, _a;
2136
+ var e_21, _a;
2061
2137
  var _this = this;
2062
2138
  var status = response.status;
2063
2139
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2070,12 +2146,12 @@
2070
2146
  _headers[key] = response.headers.get(key);
2071
2147
  }
2072
2148
  }
2073
- catch (e_20_1) { e_20 = { error: e_20_1 }; }
2149
+ catch (e_21_1) { e_21 = { error: e_21_1 }; }
2074
2150
  finally {
2075
2151
  try {
2076
2152
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2077
2153
  }
2078
- finally { if (e_20) throw e_20.error; }
2154
+ finally { if (e_21) throw e_21.error; }
2079
2155
  }
2080
2156
  }
2081
2157
  if (status === 200) {
@@ -2138,7 +2214,7 @@
2138
2214
  }));
2139
2215
  };
2140
2216
  DesignAtomsCompatibilityApiClient.prototype.processUpdateCurvedTextItemHandler = function (response) {
2141
- var e_21, _a;
2217
+ var e_22, _a;
2142
2218
  var _this = this;
2143
2219
  var status = response.status;
2144
2220
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2151,12 +2227,12 @@
2151
2227
  _headers[key] = response.headers.get(key);
2152
2228
  }
2153
2229
  }
2154
- catch (e_21_1) { e_21 = { error: e_21_1 }; }
2230
+ catch (e_22_1) { e_22 = { error: e_22_1 }; }
2155
2231
  finally {
2156
2232
  try {
2157
2233
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2158
2234
  }
2159
- finally { if (e_21) throw e_21.error; }
2235
+ finally { if (e_22) throw e_22.error; }
2160
2236
  }
2161
2237
  }
2162
2238
  if (status === 200) {
@@ -2219,7 +2295,7 @@
2219
2295
  }));
2220
2296
  };
2221
2297
  DesignAtomsCompatibilityApiClient.prototype.processUpdateImageItemHandler = function (response) {
2222
- var e_22, _a;
2298
+ var e_23, _a;
2223
2299
  var _this = this;
2224
2300
  var status = response.status;
2225
2301
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2232,12 +2308,12 @@
2232
2308
  _headers[key] = response.headers.get(key);
2233
2309
  }
2234
2310
  }
2235
- catch (e_22_1) { e_22 = { error: e_22_1 }; }
2311
+ catch (e_23_1) { e_23 = { error: e_23_1 }; }
2236
2312
  finally {
2237
2313
  try {
2238
2314
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2239
2315
  }
2240
- finally { if (e_22) throw e_22.error; }
2316
+ finally { if (e_23) throw e_23.error; }
2241
2317
  }
2242
2318
  }
2243
2319
  if (status === 200) {
@@ -2300,7 +2376,7 @@
2300
2376
  }));
2301
2377
  };
2302
2378
  DesignAtomsCompatibilityApiClient.prototype.processUpdatePathBoundedTextItemHandler = function (response) {
2303
- var e_23, _a;
2379
+ var e_24, _a;
2304
2380
  var _this = this;
2305
2381
  var status = response.status;
2306
2382
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2313,12 +2389,12 @@
2313
2389
  _headers[key] = response.headers.get(key);
2314
2390
  }
2315
2391
  }
2316
- catch (e_23_1) { e_23 = { error: e_23_1 }; }
2392
+ catch (e_24_1) { e_24 = { error: e_24_1 }; }
2317
2393
  finally {
2318
2394
  try {
2319
2395
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2320
2396
  }
2321
- finally { if (e_23) throw e_23.error; }
2397
+ finally { if (e_24) throw e_24.error; }
2322
2398
  }
2323
2399
  }
2324
2400
  if (status === 200) {
@@ -2381,7 +2457,7 @@
2381
2457
  }));
2382
2458
  };
2383
2459
  DesignAtomsCompatibilityApiClient.prototype.processUpdatePlainTextItemHandler = function (response) {
2384
- var e_24, _a;
2460
+ var e_25, _a;
2385
2461
  var _this = this;
2386
2462
  var status = response.status;
2387
2463
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2394,12 +2470,12 @@
2394
2470
  _headers[key] = response.headers.get(key);
2395
2471
  }
2396
2472
  }
2397
- catch (e_24_1) { e_24 = { error: e_24_1 }; }
2473
+ catch (e_25_1) { e_25 = { error: e_25_1 }; }
2398
2474
  finally {
2399
2475
  try {
2400
2476
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2401
2477
  }
2402
- finally { if (e_24) throw e_24.error; }
2478
+ finally { if (e_25) throw e_25.error; }
2403
2479
  }
2404
2480
  }
2405
2481
  if (status === 200) {
@@ -2462,7 +2538,7 @@
2462
2538
  }));
2463
2539
  };
2464
2540
  DesignAtomsCompatibilityApiClient.prototype.processUpdateShapeItemHandler = function (response) {
2465
- var e_25, _a;
2541
+ var e_26, _a;
2466
2542
  var _this = this;
2467
2543
  var status = response.status;
2468
2544
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2475,12 +2551,12 @@
2475
2551
  _headers[key] = response.headers.get(key);
2476
2552
  }
2477
2553
  }
2478
- catch (e_25_1) { e_25 = { error: e_25_1 }; }
2554
+ catch (e_26_1) { e_26 = { error: e_26_1 }; }
2479
2555
  finally {
2480
2556
  try {
2481
2557
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2482
2558
  }
2483
- finally { if (e_25) throw e_25.error; }
2559
+ finally { if (e_26) throw e_26.error; }
2484
2560
  }
2485
2561
  }
2486
2562
  if (status === 200) {
@@ -2572,7 +2648,7 @@
2572
2648
  }));
2573
2649
  };
2574
2650
  DesignAtomsImagesApiClient.prototype.processRenderImagePreview = function (response) {
2575
- var e_26, _a;
2651
+ var e_27, _a;
2576
2652
  var _this = this;
2577
2653
  var status = response.status;
2578
2654
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2585,12 +2661,12 @@
2585
2661
  _headers[key] = response.headers.get(key);
2586
2662
  }
2587
2663
  }
2588
- catch (e_26_1) { e_26 = { error: e_26_1 }; }
2664
+ catch (e_27_1) { e_27 = { error: e_27_1 }; }
2589
2665
  finally {
2590
2666
  try {
2591
2667
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2592
2668
  }
2593
- finally { if (e_26) throw e_26.error; }
2669
+ finally { if (e_27) throw e_27.error; }
2594
2670
  }
2595
2671
  }
2596
2672
  if (status === 200 || status === 206) {
@@ -2687,7 +2763,7 @@
2687
2763
  }));
2688
2764
  };
2689
2765
  DesignAtomsServiceApiClient.prototype.processConvertColors = function (response) {
2690
- var e_27, _a;
2766
+ var e_28, _a;
2691
2767
  var _this = this;
2692
2768
  var status = response.status;
2693
2769
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2700,12 +2776,12 @@
2700
2776
  _headers[key] = response.headers.get(key);
2701
2777
  }
2702
2778
  }
2703
- catch (e_27_1) { e_27 = { error: e_27_1 }; }
2779
+ catch (e_28_1) { e_28 = { error: e_28_1 }; }
2704
2780
  finally {
2705
2781
  try {
2706
2782
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2707
2783
  }
2708
- finally { if (e_27) throw e_27.error; }
2784
+ finally { if (e_28) throw e_28.error; }
2709
2785
  }
2710
2786
  }
2711
2787
  if (status === 200) {
@@ -2794,7 +2870,7 @@
2794
2870
  }));
2795
2871
  };
2796
2872
  DesignAtomsServiceApiClient.prototype.processCreateDesign = function (response) {
2797
- var e_28, _a;
2873
+ var e_29, _a;
2798
2874
  var _this = this;
2799
2875
  var status = response.status;
2800
2876
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2807,12 +2883,12 @@
2807
2883
  _headers[key] = response.headers.get(key);
2808
2884
  }
2809
2885
  }
2810
- catch (e_28_1) { e_28 = { error: e_28_1 }; }
2886
+ catch (e_29_1) { e_29 = { error: e_29_1 }; }
2811
2887
  finally {
2812
2888
  try {
2813
2889
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2814
2890
  }
2815
- finally { if (e_28) throw e_28.error; }
2891
+ finally { if (e_29) throw e_29.error; }
2816
2892
  }
2817
2893
  }
2818
2894
  if (status === 201) {
@@ -2894,7 +2970,7 @@
2894
2970
  }));
2895
2971
  };
2896
2972
  DesignAtomsServiceApiClient.prototype.processExtractBackground = function (response) {
2897
- var e_29, _a;
2973
+ var e_30, _a;
2898
2974
  var _this = this;
2899
2975
  var status = response.status;
2900
2976
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2907,12 +2983,12 @@
2907
2983
  _headers[key] = response.headers.get(key);
2908
2984
  }
2909
2985
  }
2910
- catch (e_29_1) { e_29 = { error: e_29_1 }; }
2986
+ catch (e_30_1) { e_30 = { error: e_30_1 }; }
2911
2987
  finally {
2912
2988
  try {
2913
2989
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2914
2990
  }
2915
- finally { if (e_29) throw e_29.error; }
2991
+ finally { if (e_30) throw e_30.error; }
2916
2992
  }
2917
2993
  }
2918
2994
  if (status === 200 || status === 206) {
@@ -3007,7 +3083,7 @@
3007
3083
  }));
3008
3084
  };
3009
3085
  DesignAtomsServiceApiClient.prototype.processLoadProduct = function (response) {
3010
- var e_30, _a;
3086
+ var e_31, _a;
3011
3087
  var _this = this;
3012
3088
  var status = response.status;
3013
3089
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3020,12 +3096,12 @@
3020
3096
  _headers[key] = response.headers.get(key);
3021
3097
  }
3022
3098
  }
3023
- catch (e_30_1) { e_30 = { error: e_30_1 }; }
3099
+ catch (e_31_1) { e_31 = { error: e_31_1 }; }
3024
3100
  finally {
3025
3101
  try {
3026
3102
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3027
3103
  }
3028
- finally { if (e_30) throw e_30.error; }
3104
+ finally { if (e_31) throw e_31.error; }
3029
3105
  }
3030
3106
  }
3031
3107
  if (status === 200) {
@@ -3117,7 +3193,7 @@
3117
3193
  }));
3118
3194
  };
3119
3195
  DesignAtomsServiceApiClient.prototype.processSaveProduct = function (response) {
3120
- var e_31, _a;
3196
+ var e_32, _a;
3121
3197
  var _this = this;
3122
3198
  var status = response.status;
3123
3199
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3130,12 +3206,12 @@
3130
3206
  _headers[key] = response.headers.get(key);
3131
3207
  }
3132
3208
  }
3133
- catch (e_31_1) { e_31 = { error: e_31_1 }; }
3209
+ catch (e_32_1) { e_32 = { error: e_32_1 }; }
3134
3210
  finally {
3135
3211
  try {
3136
3212
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3137
3213
  }
3138
- finally { if (e_31) throw e_31.error; }
3214
+ finally { if (e_32) throw e_32.error; }
3139
3215
  }
3140
3216
  }
3141
3217
  if (status === 200) {
@@ -3244,7 +3320,7 @@
3244
3320
  }));
3245
3321
  };
3246
3322
  DesignAtomsServiceApiClient.prototype.processPatchProduct = function (response) {
3247
- var e_32, _a;
3323
+ var e_33, _a;
3248
3324
  var _this = this;
3249
3325
  var status = response.status;
3250
3326
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3257,12 +3333,12 @@
3257
3333
  _headers[key] = response.headers.get(key);
3258
3334
  }
3259
3335
  }
3260
- catch (e_32_1) { e_32 = { error: e_32_1 }; }
3336
+ catch (e_33_1) { e_33 = { error: e_33_1 }; }
3261
3337
  finally {
3262
3338
  try {
3263
3339
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3264
3340
  }
3265
- finally { if (e_32) throw e_32.error; }
3341
+ finally { if (e_33) throw e_33.error; }
3266
3342
  }
3267
3343
  }
3268
3344
  if (status === 200) {
@@ -3349,7 +3425,7 @@
3349
3425
  }));
3350
3426
  };
3351
3427
  DesignAtomsServiceApiClient.prototype.processLoadDataSchema = function (response) {
3352
- var e_33, _a;
3428
+ var e_34, _a;
3353
3429
  var _this = this;
3354
3430
  var status = response.status;
3355
3431
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3362,12 +3438,12 @@
3362
3438
  _headers[key] = response.headers.get(key);
3363
3439
  }
3364
3440
  }
3365
- catch (e_33_1) { e_33 = { error: e_33_1 }; }
3441
+ catch (e_34_1) { e_34 = { error: e_34_1 }; }
3366
3442
  finally {
3367
3443
  try {
3368
3444
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3369
3445
  }
3370
- finally { if (e_33) throw e_33.error; }
3446
+ finally { if (e_34) throw e_34.error; }
3371
3447
  }
3372
3448
  }
3373
3449
  if (status === 200 || status === 206) {
@@ -3462,7 +3538,7 @@
3462
3538
  }));
3463
3539
  };
3464
3540
  DesignAtomsServiceApiClient.prototype.processGetVariables = function (response) {
3465
- var e_34, _a;
3541
+ var e_35, _a;
3466
3542
  var _this = this;
3467
3543
  var status = response.status;
3468
3544
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3475,12 +3551,12 @@
3475
3551
  _headers[key] = response.headers.get(key);
3476
3552
  }
3477
3553
  }
3478
- catch (e_34_1) { e_34 = { error: e_34_1 }; }
3554
+ catch (e_35_1) { e_35 = { error: e_35_1 }; }
3479
3555
  finally {
3480
3556
  try {
3481
3557
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3482
3558
  }
3483
- finally { if (e_34) throw e_34.error; }
3559
+ finally { if (e_35) throw e_35.error; }
3484
3560
  }
3485
3561
  }
3486
3562
  if (status === 200) {
@@ -3572,7 +3648,7 @@
3572
3648
  }));
3573
3649
  };
3574
3650
  DesignAtomsServiceApiClient.prototype.processSetVariables = function (response) {
3575
- var e_35, _a;
3651
+ var e_36, _a;
3576
3652
  var _this = this;
3577
3653
  var status = response.status;
3578
3654
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3585,12 +3661,12 @@
3585
3661
  _headers[key] = response.headers.get(key);
3586
3662
  }
3587
3663
  }
3588
- catch (e_35_1) { e_35 = { error: e_35_1 }; }
3664
+ catch (e_36_1) { e_36 = { error: e_36_1 }; }
3589
3665
  finally {
3590
3666
  try {
3591
3667
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3592
3668
  }
3593
- finally { if (e_35) throw e_35.error; }
3669
+ finally { if (e_36) throw e_36.error; }
3594
3670
  }
3595
3671
  }
3596
3672
  if (status === 200) {
@@ -3684,7 +3760,7 @@
3684
3760
  }));
3685
3761
  };
3686
3762
  DesignAtomsServiceApiClient.prototype.processLoadVdpData = function (response) {
3687
- var e_36, _a;
3763
+ var e_37, _a;
3688
3764
  var _this = this;
3689
3765
  var status = response.status;
3690
3766
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3697,12 +3773,12 @@
3697
3773
  _headers[key] = response.headers.get(key);
3698
3774
  }
3699
3775
  }
3700
- catch (e_36_1) { e_36 = { error: e_36_1 }; }
3776
+ catch (e_37_1) { e_37 = { error: e_37_1 }; }
3701
3777
  finally {
3702
3778
  try {
3703
3779
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3704
3780
  }
3705
- finally { if (e_36) throw e_36.error; }
3781
+ finally { if (e_37) throw e_37.error; }
3706
3782
  }
3707
3783
  }
3708
3784
  if (status === 200) {
@@ -3801,7 +3877,7 @@
3801
3877
  }));
3802
3878
  };
3803
3879
  DesignAtomsServiceApiClient.prototype.processSaveVdpData = function (response) {
3804
- var e_37, _a;
3880
+ var e_38, _a;
3805
3881
  var _this = this;
3806
3882
  var status = response.status;
3807
3883
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3814,12 +3890,12 @@
3814
3890
  _headers[key] = response.headers.get(key);
3815
3891
  }
3816
3892
  }
3817
- catch (e_37_1) { e_37 = { error: e_37_1 }; }
3893
+ catch (e_38_1) { e_38 = { error: e_38_1 }; }
3818
3894
  finally {
3819
3895
  try {
3820
3896
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3821
3897
  }
3822
- finally { if (e_37) throw e_37.error; }
3898
+ finally { if (e_38) throw e_38.error; }
3823
3899
  }
3824
3900
  }
3825
3901
  if (status === 200) {
@@ -3904,7 +3980,7 @@
3904
3980
  }));
3905
3981
  };
3906
3982
  DesignAtomsServiceApiClient.prototype.processDeleteVdpData = function (response) {
3907
- var e_38, _a;
3983
+ var e_39, _a;
3908
3984
  var _this = this;
3909
3985
  var status = response.status;
3910
3986
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3917,12 +3993,12 @@
3917
3993
  _headers[key] = response.headers.get(key);
3918
3994
  }
3919
3995
  }
3920
- catch (e_38_1) { e_38 = { error: e_38_1 }; }
3996
+ catch (e_39_1) { e_39 = { error: e_39_1 }; }
3921
3997
  finally {
3922
3998
  try {
3923
3999
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3924
4000
  }
3925
- finally { if (e_38) throw e_38.error; }
4001
+ finally { if (e_39) throw e_39.error; }
3926
4002
  }
3927
4003
  }
3928
4004
  if (status === 200) {
@@ -4003,7 +4079,7 @@
4003
4079
  }));
4004
4080
  };
4005
4081
  DesignAtomsServiceApiClient.prototype.processFlattenItems = function (response) {
4006
- var e_39, _a;
4082
+ var e_40, _a;
4007
4083
  var _this = this;
4008
4084
  var status = response.status;
4009
4085
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4016,12 +4092,12 @@
4016
4092
  _headers[key] = response.headers.get(key);
4017
4093
  }
4018
4094
  }
4019
- catch (e_39_1) { e_39 = { error: e_39_1 }; }
4095
+ catch (e_40_1) { e_40 = { error: e_40_1 }; }
4020
4096
  finally {
4021
4097
  try {
4022
4098
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4023
4099
  }
4024
- finally { if (e_39) throw e_39.error; }
4100
+ finally { if (e_40) throw e_40.error; }
4025
4101
  }
4026
4102
  }
4027
4103
  if (status === 200) {
@@ -4110,7 +4186,7 @@
4110
4186
  }));
4111
4187
  };
4112
4188
  DesignAtomsServiceApiClient.prototype.processCreateItem = function (response) {
4113
- var e_40, _a;
4189
+ var e_41, _a;
4114
4190
  var _this = this;
4115
4191
  var status = response.status;
4116
4192
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4123,12 +4199,12 @@
4123
4199
  _headers[key] = response.headers.get(key);
4124
4200
  }
4125
4201
  }
4126
- catch (e_40_1) { e_40 = { error: e_40_1 }; }
4202
+ catch (e_41_1) { e_41 = { error: e_41_1 }; }
4127
4203
  finally {
4128
4204
  try {
4129
4205
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4130
4206
  }
4131
- finally { if (e_40) throw e_40.error; }
4207
+ finally { if (e_41) throw e_41.error; }
4132
4208
  }
4133
4209
  }
4134
4210
  if (status === 200) {
@@ -4214,7 +4290,7 @@
4214
4290
  }));
4215
4291
  };
4216
4292
  DesignAtomsServiceApiClient.prototype.processCreatePrivateDesignFromDesign = function (response) {
4217
- var e_41, _a;
4293
+ var e_42, _a;
4218
4294
  var _this = this;
4219
4295
  var status = response.status;
4220
4296
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4227,12 +4303,12 @@
4227
4303
  _headers[key] = response.headers.get(key);
4228
4304
  }
4229
4305
  }
4230
- catch (e_41_1) { e_41 = { error: e_41_1 }; }
4306
+ catch (e_42_1) { e_42 = { error: e_42_1 }; }
4231
4307
  finally {
4232
4308
  try {
4233
4309
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4234
4310
  }
4235
- finally { if (e_41) throw e_41.error; }
4311
+ finally { if (e_42) throw e_42.error; }
4236
4312
  }
4237
4313
  }
4238
4314
  if (status === 201) {
@@ -4309,7 +4385,7 @@
4309
4385
  }));
4310
4386
  };
4311
4387
  DesignAtomsServiceApiClient.prototype.processCreatePrivateDesignFromResource = function (response) {
4312
- var e_42, _a;
4388
+ var e_43, _a;
4313
4389
  var _this = this;
4314
4390
  var status = response.status;
4315
4391
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4322,12 +4398,12 @@
4322
4398
  _headers[key] = response.headers.get(key);
4323
4399
  }
4324
4400
  }
4325
- catch (e_42_1) { e_42 = { error: e_42_1 }; }
4401
+ catch (e_43_1) { e_43 = { error: e_43_1 }; }
4326
4402
  finally {
4327
4403
  try {
4328
4404
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4329
4405
  }
4330
- finally { if (e_42) throw e_42.error; }
4406
+ finally { if (e_43) throw e_43.error; }
4331
4407
  }
4332
4408
  }
4333
4409
  if (status === 201) {
@@ -4405,7 +4481,7 @@
4405
4481
  }));
4406
4482
  };
4407
4483
  DesignAtomsServiceApiClient.prototype.processRenderDesignPreview = function (response) {
4408
- var e_43, _a;
4484
+ var e_44, _a;
4409
4485
  var _this = this;
4410
4486
  var status = response.status;
4411
4487
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4418,12 +4494,12 @@
4418
4494
  _headers[key] = response.headers.get(key);
4419
4495
  }
4420
4496
  }
4421
- catch (e_43_1) { e_43 = { error: e_43_1 }; }
4497
+ catch (e_44_1) { e_44 = { error: e_44_1 }; }
4422
4498
  finally {
4423
4499
  try {
4424
4500
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4425
4501
  }
4426
- finally { if (e_43) throw e_43.error; }
4502
+ finally { if (e_44) throw e_44.error; }
4427
4503
  }
4428
4504
  }
4429
4505
  if (status === 200 || status === 206) {
@@ -4502,7 +4578,7 @@
4502
4578
  }));
4503
4579
  };
4504
4580
  DesignAtomsServiceApiClient.prototype.processRenderDesignProof = function (response) {
4505
- var e_44, _a;
4581
+ var e_45, _a;
4506
4582
  var _this = this;
4507
4583
  var status = response.status;
4508
4584
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4515,12 +4591,12 @@
4515
4591
  _headers[key] = response.headers.get(key);
4516
4592
  }
4517
4593
  }
4518
- catch (e_44_1) { e_44 = { error: e_44_1 }; }
4594
+ catch (e_45_1) { e_45 = { error: e_45_1 }; }
4519
4595
  finally {
4520
4596
  try {
4521
4597
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4522
4598
  }
4523
- finally { if (e_44) throw e_44.error; }
4599
+ finally { if (e_45) throw e_45.error; }
4524
4600
  }
4525
4601
  }
4526
4602
  if (status === 200 || status === 206) {
@@ -4598,7 +4674,7 @@
4598
4674
  }));
4599
4675
  };
4600
4676
  DesignAtomsServiceApiClient.prototype.processRenderProduct = function (response) {
4601
- var e_45, _a;
4677
+ var e_46, _a;
4602
4678
  var _this = this;
4603
4679
  var status = response.status;
4604
4680
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4611,12 +4687,12 @@
4611
4687
  _headers[key] = response.headers.get(key);
4612
4688
  }
4613
4689
  }
4614
- catch (e_45_1) { e_45 = { error: e_45_1 }; }
4690
+ catch (e_46_1) { e_46 = { error: e_46_1 }; }
4615
4691
  finally {
4616
4692
  try {
4617
4693
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4618
4694
  }
4619
- finally { if (e_45) throw e_45.error; }
4695
+ finally { if (e_46) throw e_46.error; }
4620
4696
  }
4621
4697
  }
4622
4698
  if (status === 200 || status === 206) {
@@ -4649,6 +4725,120 @@
4649
4725
  }
4650
4726
  return rxjs.of(null);
4651
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
+ };
4652
4842
  return DesignAtomsServiceApiClient;
4653
4843
  }(ApiClientBase));
4654
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" });
@@ -4712,7 +4902,7 @@
4712
4902
  }));
4713
4903
  };
4714
4904
  DesignAtomsViewerApiClient.prototype.processCssFonts = function (response) {
4715
- var e_46, _a;
4905
+ var e_48, _a;
4716
4906
  var _this = this;
4717
4907
  var status = response.status;
4718
4908
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4725,12 +4915,12 @@
4725
4915
  _headers[key] = response.headers.get(key);
4726
4916
  }
4727
4917
  }
4728
- catch (e_46_1) { e_46 = { error: e_46_1 }; }
4918
+ catch (e_48_1) { e_48 = { error: e_48_1 }; }
4729
4919
  finally {
4730
4920
  try {
4731
4921
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4732
4922
  }
4733
- finally { if (e_46) throw e_46.error; }
4923
+ finally { if (e_48) throw e_48.error; }
4734
4924
  }
4735
4925
  }
4736
4926
  if (status === 200) {
@@ -4794,7 +4984,7 @@
4794
4984
  }));
4795
4985
  };
4796
4986
  DesignAtomsViewerApiClient.prototype.processFonts = function (response) {
4797
- var e_47, _a;
4987
+ var e_49, _a;
4798
4988
  var _this = this;
4799
4989
  var status = response.status;
4800
4990
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4807,12 +4997,12 @@
4807
4997
  _headers[key] = response.headers.get(key);
4808
4998
  }
4809
4999
  }
4810
- catch (e_47_1) { e_47 = { error: e_47_1 }; }
5000
+ catch (e_49_1) { e_49 = { error: e_49_1 }; }
4811
5001
  finally {
4812
5002
  try {
4813
5003
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4814
5004
  }
4815
- finally { if (e_47) throw e_47.error; }
5005
+ finally { if (e_49) throw e_49.error; }
4816
5006
  }
4817
5007
  }
4818
5008
  if (status === 200 || status === 206) {
@@ -4882,7 +5072,7 @@
4882
5072
  }));
4883
5073
  };
4884
5074
  DesignAtomsViewerApiClient.prototype.processGetCssFont = function (response) {
4885
- var e_48, _a;
5075
+ var e_50, _a;
4886
5076
  var _this = this;
4887
5077
  var status = response.status;
4888
5078
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4895,12 +5085,12 @@
4895
5085
  _headers[key] = response.headers.get(key);
4896
5086
  }
4897
5087
  }
4898
- catch (e_48_1) { e_48 = { error: e_48_1 }; }
5088
+ catch (e_50_1) { e_50 = { error: e_50_1 }; }
4899
5089
  finally {
4900
5090
  try {
4901
5091
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4902
5092
  }
4903
- finally { if (e_48) throw e_48.error; }
5093
+ finally { if (e_50) throw e_50.error; }
4904
5094
  }
4905
5095
  }
4906
5096
  if (status === 200 || status === 206) {
@@ -4930,6 +5120,84 @@
4930
5120
  }
4931
5121
  return rxjs.of(null);
4932
5122
  };
5123
+ /**
5124
+ * @param tenantId (optional) Tenant identifier
5125
+ * @return Success
5126
+ */
5127
+ DesignAtomsViewerApiClient.prototype.getFallbackFonts = function (tenantId) {
5128
+ var _this = this;
5129
+ var url_ = this.baseUrl + "/api/atoms/v1/ccviewer/GetFallbackFonts?";
5130
+ if (tenantId === null)
5131
+ throw new Error("The parameter 'tenantId' cannot be null.");
5132
+ else if (tenantId !== undefined)
5133
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
5134
+ url_ = url_.replace(/[?&]$/, "");
5135
+ var options_ = {
5136
+ observe: "response",
5137
+ responseType: "blob",
5138
+ headers: new i1.HttpHeaders({
5139
+ "Accept": "application/json"
5140
+ })
5141
+ };
5142
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
5143
+ return _this.http.request("get", url_, transformedOptions_);
5144
+ })).pipe(operators.mergeMap(function (response_) {
5145
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetFallbackFonts(r); });
5146
+ })).pipe(operators.catchError(function (response_) {
5147
+ if (response_ instanceof i1.HttpResponseBase) {
5148
+ try {
5149
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetFallbackFonts(r); });
5150
+ }
5151
+ catch (e) {
5152
+ return rxjs.throwError(e);
5153
+ }
5154
+ }
5155
+ else
5156
+ return rxjs.throwError(response_);
5157
+ }));
5158
+ };
5159
+ DesignAtomsViewerApiClient.prototype.processGetFallbackFonts = function (response) {
5160
+ var e_51, _a;
5161
+ var _this = this;
5162
+ var status = response.status;
5163
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
5164
+ response.error instanceof Blob ? response.error : undefined;
5165
+ var _headers = {};
5166
+ if (response.headers) {
5167
+ try {
5168
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
5169
+ var key = _c.value;
5170
+ _headers[key] = response.headers.get(key);
5171
+ }
5172
+ }
5173
+ catch (e_51_1) { e_51 = { error: e_51_1 }; }
5174
+ finally {
5175
+ try {
5176
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5177
+ }
5178
+ finally { if (e_51) throw e_51.error; }
5179
+ }
5180
+ }
5181
+ if (status === 200 || status === 206) {
5182
+ var contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
5183
+ var fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
5184
+ var fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
5185
+ return rxjs.of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
5186
+ }
5187
+ else if (status === 500) {
5188
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
5189
+ var result500 = null;
5190
+ result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
5191
+ return throwException("Internal server error", status, _responseText, _headers, result500);
5192
+ }));
5193
+ }
5194
+ else if (status !== 200 && status !== 204) {
5195
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
5196
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
5197
+ }));
5198
+ }
5199
+ return rxjs.of(null);
5200
+ };
4933
5201
  /**
4934
5202
  * @param tenantId (optional) Tenant identifier
4935
5203
  * @param body (optional)
@@ -4971,7 +5239,7 @@
4971
5239
  }));
4972
5240
  };
4973
5241
  DesignAtomsViewerApiClient.prototype.processGetImageSize = function (response) {
4974
- var e_49, _a;
5242
+ var e_52, _a;
4975
5243
  var _this = this;
4976
5244
  var status = response.status;
4977
5245
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4984,12 +5252,12 @@
4984
5252
  _headers[key] = response.headers.get(key);
4985
5253
  }
4986
5254
  }
4987
- catch (e_49_1) { e_49 = { error: e_49_1 }; }
5255
+ catch (e_52_1) { e_52 = { error: e_52_1 }; }
4988
5256
  finally {
4989
5257
  try {
4990
5258
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4991
5259
  }
4992
- finally { if (e_49) throw e_49.error; }
5260
+ finally { if (e_52) throw e_52.error; }
4993
5261
  }
4994
5262
  }
4995
5263
  if (status === 200) {
@@ -5054,7 +5322,7 @@
5054
5322
  }));
5055
5323
  };
5056
5324
  DesignAtomsViewerApiClient.prototype.processGetShapeBounds = function (response) {
5057
- var e_50, _a;
5325
+ var e_53, _a;
5058
5326
  var _this = this;
5059
5327
  var status = response.status;
5060
5328
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5067,12 +5335,12 @@
5067
5335
  _headers[key] = response.headers.get(key);
5068
5336
  }
5069
5337
  }
5070
- catch (e_50_1) { e_50 = { error: e_50_1 }; }
5338
+ catch (e_53_1) { e_53 = { error: e_53_1 }; }
5071
5339
  finally {
5072
5340
  try {
5073
5341
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5074
5342
  }
5075
- finally { if (e_50) throw e_50.error; }
5343
+ finally { if (e_53) throw e_53.error; }
5076
5344
  }
5077
5345
  }
5078
5346
  if (status === 200) {
@@ -5137,7 +5405,7 @@
5137
5405
  }));
5138
5406
  };
5139
5407
  DesignAtomsViewerApiClient.prototype.processGetWatermarkItems = function (response) {
5140
- var e_51, _a;
5408
+ var e_54, _a;
5141
5409
  var _this = this;
5142
5410
  var status = response.status;
5143
5411
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5150,12 +5418,12 @@
5150
5418
  _headers[key] = response.headers.get(key);
5151
5419
  }
5152
5420
  }
5153
- catch (e_51_1) { e_51 = { error: e_51_1 }; }
5421
+ catch (e_54_1) { e_54 = { error: e_54_1 }; }
5154
5422
  finally {
5155
5423
  try {
5156
5424
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5157
5425
  }
5158
- finally { if (e_51) throw e_51.error; }
5426
+ finally { if (e_54) throw e_54.error; }
5159
5427
  }
5160
5428
  }
5161
5429
  if (status === 200) {
@@ -5264,7 +5532,7 @@
5264
5532
  }));
5265
5533
  };
5266
5534
  DesignAtomsViewerApiClient.prototype.processImg = function (response) {
5267
- var e_52, _a;
5535
+ var e_55, _a;
5268
5536
  var _this = this;
5269
5537
  var status = response.status;
5270
5538
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5277,12 +5545,12 @@
5277
5545
  _headers[key] = response.headers.get(key);
5278
5546
  }
5279
5547
  }
5280
- catch (e_52_1) { e_52 = { error: e_52_1 }; }
5548
+ catch (e_55_1) { e_55 = { error: e_55_1 }; }
5281
5549
  finally {
5282
5550
  try {
5283
5551
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5284
5552
  }
5285
- finally { if (e_52) throw e_52.error; }
5553
+ finally { if (e_55) throw e_55.error; }
5286
5554
  }
5287
5555
  }
5288
5556
  if (status === 200 || status === 206) {
@@ -5354,7 +5622,7 @@
5354
5622
  }));
5355
5623
  };
5356
5624
  DesignAtomsViewerApiClient.prototype.processGetLicense = function (response) {
5357
- var e_53, _a;
5625
+ var e_56, _a;
5358
5626
  var _this = this;
5359
5627
  var status = response.status;
5360
5628
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5367,12 +5635,12 @@
5367
5635
  _headers[key] = response.headers.get(key);
5368
5636
  }
5369
5637
  }
5370
- catch (e_53_1) { e_53 = { error: e_53_1 }; }
5638
+ catch (e_56_1) { e_56 = { error: e_56_1 }; }
5371
5639
  finally {
5372
5640
  try {
5373
5641
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5374
5642
  }
5375
- finally { if (e_53) throw e_53.error; }
5643
+ finally { if (e_56) throw e_56.error; }
5376
5644
  }
5377
5645
  }
5378
5646
  if (status === 200) {
@@ -5436,7 +5704,7 @@
5436
5704
  }));
5437
5705
  };
5438
5706
  DesignAtomsViewerApiClient.prototype.processPth = function (response) {
5439
- var e_54, _a;
5707
+ var e_57, _a;
5440
5708
  var _this = this;
5441
5709
  var status = response.status;
5442
5710
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5449,12 +5717,12 @@
5449
5717
  _headers[key] = response.headers.get(key);
5450
5718
  }
5451
5719
  }
5452
- catch (e_54_1) { e_54 = { error: e_54_1 }; }
5720
+ catch (e_57_1) { e_57 = { error: e_57_1 }; }
5453
5721
  finally {
5454
5722
  try {
5455
5723
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5456
5724
  }
5457
- finally { if (e_54) throw e_54.error; }
5725
+ finally { if (e_57) throw e_57.error; }
5458
5726
  }
5459
5727
  }
5460
5728
  if (status === 200 || status === 206) {
@@ -5529,7 +5797,7 @@
5529
5797
  }));
5530
5798
  };
5531
5799
  DesignAtomsViewerApiClient.prototype.processResource = function (response) {
5532
- var e_55, _a;
5800
+ var e_58, _a;
5533
5801
  var _this = this;
5534
5802
  var status = response.status;
5535
5803
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5542,12 +5810,12 @@
5542
5810
  _headers[key] = response.headers.get(key);
5543
5811
  }
5544
5812
  }
5545
- catch (e_55_1) { e_55 = { error: e_55_1 }; }
5813
+ catch (e_58_1) { e_58 = { error: e_58_1 }; }
5546
5814
  finally {
5547
5815
  try {
5548
5816
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5549
5817
  }
5550
- finally { if (e_55) throw e_55.error; }
5818
+ finally { if (e_58) throw e_58.error; }
5551
5819
  }
5552
5820
  }
5553
5821
  if (status === 200 || status === 206) {
@@ -5617,7 +5885,7 @@
5617
5885
  }));
5618
5886
  };
5619
5887
  DesignAtomsViewerApiClient.prototype.processSvg = function (response) {
5620
- var e_56, _a;
5888
+ var e_59, _a;
5621
5889
  var _this = this;
5622
5890
  var status = response.status;
5623
5891
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5630,12 +5898,12 @@
5630
5898
  _headers[key] = response.headers.get(key);
5631
5899
  }
5632
5900
  }
5633
- catch (e_56_1) { e_56 = { error: e_56_1 }; }
5901
+ catch (e_59_1) { e_59 = { error: e_59_1 }; }
5634
5902
  finally {
5635
5903
  try {
5636
5904
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5637
5905
  }
5638
- finally { if (e_56) throw e_56.error; }
5906
+ finally { if (e_59) throw e_59.error; }
5639
5907
  }
5640
5908
  }
5641
5909
  if (status === 200 || status === 206) {
@@ -5710,7 +5978,7 @@
5710
5978
  }));
5711
5979
  };
5712
5980
  DesignAtomsViewerApiClient.prototype.processTxt = function (response) {
5713
- var e_57, _a;
5981
+ var e_60, _a;
5714
5982
  var _this = this;
5715
5983
  var status = response.status;
5716
5984
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5723,12 +5991,12 @@
5723
5991
  _headers[key] = response.headers.get(key);
5724
5992
  }
5725
5993
  }
5726
- catch (e_57_1) { e_57 = { error: e_57_1 }; }
5994
+ catch (e_60_1) { e_60 = { error: e_60_1 }; }
5727
5995
  finally {
5728
5996
  try {
5729
5997
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5730
5998
  }
5731
- finally { if (e_57) throw e_57.error; }
5999
+ finally { if (e_60) throw e_60.error; }
5732
6000
  }
5733
6001
  }
5734
6002
  if (status === 200 || status === 206) {
@@ -5804,7 +6072,7 @@
5804
6072
  }));
5805
6073
  };
5806
6074
  DesignAtomsViewerApiClient.prototype.processUpdateArchedTextItemHandler = function (response) {
5807
- var e_58, _a;
6075
+ var e_61, _a;
5808
6076
  var _this = this;
5809
6077
  var status = response.status;
5810
6078
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5817,12 +6085,12 @@
5817
6085
  _headers[key] = response.headers.get(key);
5818
6086
  }
5819
6087
  }
5820
- catch (e_58_1) { e_58 = { error: e_58_1 }; }
6088
+ catch (e_61_1) { e_61 = { error: e_61_1 }; }
5821
6089
  finally {
5822
6090
  try {
5823
6091
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5824
6092
  }
5825
- finally { if (e_58) throw e_58.error; }
6093
+ finally { if (e_61) throw e_61.error; }
5826
6094
  }
5827
6095
  }
5828
6096
  if (status === 200) {
@@ -5887,7 +6155,7 @@
5887
6155
  }));
5888
6156
  };
5889
6157
  DesignAtomsViewerApiClient.prototype.processUpdateAutoScaledTextItemHandler = function (response) {
5890
- var e_59, _a;
6158
+ var e_62, _a;
5891
6159
  var _this = this;
5892
6160
  var status = response.status;
5893
6161
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5900,12 +6168,12 @@
5900
6168
  _headers[key] = response.headers.get(key);
5901
6169
  }
5902
6170
  }
5903
- catch (e_59_1) { e_59 = { error: e_59_1 }; }
6171
+ catch (e_62_1) { e_62 = { error: e_62_1 }; }
5904
6172
  finally {
5905
6173
  try {
5906
6174
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5907
6175
  }
5908
- finally { if (e_59) throw e_59.error; }
6176
+ finally { if (e_62) throw e_62.error; }
5909
6177
  }
5910
6178
  }
5911
6179
  if (status === 200) {
@@ -5970,7 +6238,7 @@
5970
6238
  }));
5971
6239
  };
5972
6240
  DesignAtomsViewerApiClient.prototype.processUpdateBarcodeItemHandler = function (response) {
5973
- var e_60, _a;
6241
+ var e_63, _a;
5974
6242
  var _this = this;
5975
6243
  var status = response.status;
5976
6244
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5983,12 +6251,12 @@
5983
6251
  _headers[key] = response.headers.get(key);
5984
6252
  }
5985
6253
  }
5986
- catch (e_60_1) { e_60 = { error: e_60_1 }; }
6254
+ catch (e_63_1) { e_63 = { error: e_63_1 }; }
5987
6255
  finally {
5988
6256
  try {
5989
6257
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5990
6258
  }
5991
- finally { if (e_60) throw e_60.error; }
6259
+ finally { if (e_63) throw e_63.error; }
5992
6260
  }
5993
6261
  }
5994
6262
  if (status === 200) {
@@ -6053,7 +6321,7 @@
6053
6321
  }));
6054
6322
  };
6055
6323
  DesignAtomsViewerApiClient.prototype.processUpdateBoundedTextItemHandler = function (response) {
6056
- var e_61, _a;
6324
+ var e_64, _a;
6057
6325
  var _this = this;
6058
6326
  var status = response.status;
6059
6327
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -6066,12 +6334,12 @@
6066
6334
  _headers[key] = response.headers.get(key);
6067
6335
  }
6068
6336
  }
6069
- catch (e_61_1) { e_61 = { error: e_61_1 }; }
6337
+ catch (e_64_1) { e_64 = { error: e_64_1 }; }
6070
6338
  finally {
6071
6339
  try {
6072
6340
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
6073
6341
  }
6074
- finally { if (e_61) throw e_61.error; }
6342
+ finally { if (e_64) throw e_64.error; }
6075
6343
  }
6076
6344
  }
6077
6345
  if (status === 200) {
@@ -6136,7 +6404,7 @@
6136
6404
  }));
6137
6405
  };
6138
6406
  DesignAtomsViewerApiClient.prototype.processUpdateByColorData = function (response) {
6139
- var e_62, _a;
6407
+ var e_65, _a;
6140
6408
  var _this = this;
6141
6409
  var status = response.status;
6142
6410
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -6149,12 +6417,12 @@
6149
6417
  _headers[key] = response.headers.get(key);
6150
6418
  }
6151
6419
  }
6152
- catch (e_62_1) { e_62 = { error: e_62_1 }; }
6420
+ catch (e_65_1) { e_65 = { error: e_65_1 }; }
6153
6421
  finally {
6154
6422
  try {
6155
6423
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
6156
6424
  }
6157
- finally { if (e_62) throw e_62.error; }
6425
+ finally { if (e_65) throw e_65.error; }
6158
6426
  }
6159
6427
  }
6160
6428
  if (status === 200) {
@@ -6219,7 +6487,7 @@
6219
6487
  }));
6220
6488
  };
6221
6489
  DesignAtomsViewerApiClient.prototype.processUpdateByMultiCallRequest = function (response) {
6222
- var e_63, _a;
6490
+ var e_66, _a;
6223
6491
  var _this = this;
6224
6492
  var status = response.status;
6225
6493
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -6232,12 +6500,12 @@
6232
6500
  _headers[key] = response.headers.get(key);
6233
6501
  }
6234
6502
  }
6235
- catch (e_63_1) { e_63 = { error: e_63_1 }; }
6503
+ catch (e_66_1) { e_66 = { error: e_66_1 }; }
6236
6504
  finally {
6237
6505
  try {
6238
6506
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
6239
6507
  }
6240
- finally { if (e_63) throw e_63.error; }
6508
+ finally { if (e_66) throw e_66.error; }
6241
6509
  }
6242
6510
  }
6243
6511
  if (status === 200) {
@@ -6302,7 +6570,7 @@
6302
6570
  }));
6303
6571
  };
6304
6572
  DesignAtomsViewerApiClient.prototype.processUpdateCurvedTextItemHandler = function (response) {
6305
- var e_64, _a;
6573
+ var e_67, _a;
6306
6574
  var _this = this;
6307
6575
  var status = response.status;
6308
6576
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -6315,12 +6583,12 @@
6315
6583
  _headers[key] = response.headers.get(key);
6316
6584
  }
6317
6585
  }
6318
- catch (e_64_1) { e_64 = { error: e_64_1 }; }
6586
+ catch (e_67_1) { e_67 = { error: e_67_1 }; }
6319
6587
  finally {
6320
6588
  try {
6321
6589
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
6322
6590
  }
6323
- finally { if (e_64) throw e_64.error; }
6591
+ finally { if (e_67) throw e_67.error; }
6324
6592
  }
6325
6593
  }
6326
6594
  if (status === 200) {
@@ -6385,7 +6653,7 @@
6385
6653
  }));
6386
6654
  };
6387
6655
  DesignAtomsViewerApiClient.prototype.processUpdateImageItemHandler = function (response) {
6388
- var e_65, _a;
6656
+ var e_68, _a;
6389
6657
  var _this = this;
6390
6658
  var status = response.status;
6391
6659
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -6398,12 +6666,12 @@
6398
6666
  _headers[key] = response.headers.get(key);
6399
6667
  }
6400
6668
  }
6401
- catch (e_65_1) { e_65 = { error: e_65_1 }; }
6669
+ catch (e_68_1) { e_68 = { error: e_68_1 }; }
6402
6670
  finally {
6403
6671
  try {
6404
6672
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
6405
6673
  }
6406
- finally { if (e_65) throw e_65.error; }
6674
+ finally { if (e_68) throw e_68.error; }
6407
6675
  }
6408
6676
  }
6409
6677
  if (status === 200) {
@@ -6468,7 +6736,7 @@
6468
6736
  }));
6469
6737
  };
6470
6738
  DesignAtomsViewerApiClient.prototype.processUpdatePathBoundedTextItemHandler = function (response) {
6471
- var e_66, _a;
6739
+ var e_69, _a;
6472
6740
  var _this = this;
6473
6741
  var status = response.status;
6474
6742
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -6481,12 +6749,12 @@
6481
6749
  _headers[key] = response.headers.get(key);
6482
6750
  }
6483
6751
  }
6484
- catch (e_66_1) { e_66 = { error: e_66_1 }; }
6752
+ catch (e_69_1) { e_69 = { error: e_69_1 }; }
6485
6753
  finally {
6486
6754
  try {
6487
6755
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
6488
6756
  }
6489
- finally { if (e_66) throw e_66.error; }
6757
+ finally { if (e_69) throw e_69.error; }
6490
6758
  }
6491
6759
  }
6492
6760
  if (status === 200) {
@@ -6551,7 +6819,7 @@
6551
6819
  }));
6552
6820
  };
6553
6821
  DesignAtomsViewerApiClient.prototype.processUpdatePlainTextItemHandler = function (response) {
6554
- var e_67, _a;
6822
+ var e_70, _a;
6555
6823
  var _this = this;
6556
6824
  var status = response.status;
6557
6825
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -6564,12 +6832,12 @@
6564
6832
  _headers[key] = response.headers.get(key);
6565
6833
  }
6566
6834
  }
6567
- catch (e_67_1) { e_67 = { error: e_67_1 }; }
6835
+ catch (e_70_1) { e_70 = { error: e_70_1 }; }
6568
6836
  finally {
6569
6837
  try {
6570
6838
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
6571
6839
  }
6572
- finally { if (e_67) throw e_67.error; }
6840
+ finally { if (e_70) throw e_70.error; }
6573
6841
  }
6574
6842
  }
6575
6843
  if (status === 200) {
@@ -6634,7 +6902,7 @@
6634
6902
  }));
6635
6903
  };
6636
6904
  DesignAtomsViewerApiClient.prototype.processUpdateShapeItemHandler = function (response) {
6637
- var e_68, _a;
6905
+ var e_71, _a;
6638
6906
  var _this = this;
6639
6907
  var status = response.status;
6640
6908
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -6647,12 +6915,12 @@
6647
6915
  _headers[key] = response.headers.get(key);
6648
6916
  }
6649
6917
  }
6650
- catch (e_68_1) { e_68 = { error: e_68_1 }; }
6918
+ catch (e_71_1) { e_71 = { error: e_71_1 }; }
6651
6919
  finally {
6652
6920
  try {
6653
6921
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
6654
6922
  }
6655
- finally { if (e_68) throw e_68.error; }
6923
+ finally { if (e_71) throw e_71.error; }
6656
6924
  }
6657
6925
  }
6658
6926
  if (status === 200) {
@@ -6689,12 +6957,12 @@
6689
6957
  { type: i1.HttpClient, decorators: [{ type: i0.Inject, args: [i1.HttpClient,] }] },
6690
6958
  { type: String, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [API_BASE_URL,] }] }
6691
6959
  ]; };
6692
- (function (ProductPreviewFormat) {
6693
- ProductPreviewFormat["Jpeg"] = "Jpeg";
6694
- ProductPreviewFormat["Png"] = "Png";
6695
- ProductPreviewFormat["Tiff"] = "Tiff";
6696
- ProductPreviewFormat["Pdf"] = "Pdf";
6697
- })(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 = {}));
6698
6966
  (function (DesignElementType) {
6699
6967
  DesignElementType["Product"] = "Product";
6700
6968
  DesignElementType["Design"] = "Design";
@@ -6722,6 +6990,12 @@
6722
6990
  ItemSourceType["ImageStorage"] = "ImageStorage";
6723
6991
  ItemSourceType["PrivateImageStorage"] = "PrivateImageStorage";
6724
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 = {}));
6725
6999
  (function (ProductProofFormat) {
6726
7000
  ProductProofFormat["Jpeg"] = "Jpeg";
6727
7001
  ProductProofFormat["Png"] = "Png";