@aurigma/ng-design-atoms-api-client 2.39.5 → 2.42.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.
- package/aurigma-ng-design-atoms-api-client.metadata.json +1 -1
- package/bundles/aurigma-ng-design-atoms-api-client.umd.js +631 -296
- package/bundles/aurigma-ng-design-atoms-api-client.umd.js.map +1 -1
- package/bundles/aurigma-ng-design-atoms-api-client.umd.min.js +1 -1
- package/bundles/aurigma-ng-design-atoms-api-client.umd.min.js.map +1 -1
- package/esm2015/lib/design-atoms-api-client.js +285 -1
- package/fesm2015/aurigma-ng-design-atoms-api-client.js +285 -1
- package/fesm2015/aurigma-ng-design-atoms-api-client.js.map +1 -1
- package/lib/design-atoms-api-client.d.ts +72 -0
- package/package.json +1 -1
|
@@ -712,6 +712,168 @@
|
|
|
712
712
|
}
|
|
713
713
|
return rxjs.of(null);
|
|
714
714
|
};
|
|
715
|
+
/**
|
|
716
|
+
* @param body (optional)
|
|
717
|
+
* @return Success
|
|
718
|
+
*/
|
|
719
|
+
DesignAtomsCompatibilityApiClient.prototype.getColorPreview = function (tenantId, body) {
|
|
720
|
+
var _this = this;
|
|
721
|
+
var url_ = this.baseUrl + "/api/atoms/v1/tenants/{tenantId}/api/ccviewer/GetColorPreview";
|
|
722
|
+
if (tenantId === undefined || tenantId === null)
|
|
723
|
+
throw new Error("The parameter 'tenantId' must be defined.");
|
|
724
|
+
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
725
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
726
|
+
var content_ = JSON.stringify(body);
|
|
727
|
+
var options_ = {
|
|
728
|
+
body: content_,
|
|
729
|
+
observe: "response",
|
|
730
|
+
responseType: "blob",
|
|
731
|
+
headers: new i1.HttpHeaders({
|
|
732
|
+
"Content-Type": "application/json",
|
|
733
|
+
"Accept": "application/json"
|
|
734
|
+
})
|
|
735
|
+
};
|
|
736
|
+
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
737
|
+
return _this.http.request("post", url_, transformedOptions_);
|
|
738
|
+
})).pipe(operators.mergeMap(function (response_) {
|
|
739
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processGetColorPreview(r); });
|
|
740
|
+
})).pipe(operators.catchError(function (response_) {
|
|
741
|
+
if (response_ instanceof i1.HttpResponseBase) {
|
|
742
|
+
try {
|
|
743
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processGetColorPreview(r); });
|
|
744
|
+
}
|
|
745
|
+
catch (e) {
|
|
746
|
+
return rxjs.throwError(e);
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
else
|
|
750
|
+
return rxjs.throwError(response_);
|
|
751
|
+
}));
|
|
752
|
+
};
|
|
753
|
+
DesignAtomsCompatibilityApiClient.prototype.processGetColorPreview = function (response) {
|
|
754
|
+
var e_5, _a;
|
|
755
|
+
var _this = this;
|
|
756
|
+
var status = response.status;
|
|
757
|
+
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
758
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
759
|
+
var _headers = {};
|
|
760
|
+
if (response.headers) {
|
|
761
|
+
try {
|
|
762
|
+
for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
763
|
+
var key = _c.value;
|
|
764
|
+
_headers[key] = response.headers.get(key);
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
|
768
|
+
finally {
|
|
769
|
+
try {
|
|
770
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
771
|
+
}
|
|
772
|
+
finally { if (e_5) throw e_5.error; }
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
if (status === 200) {
|
|
776
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
777
|
+
var result200 = null;
|
|
778
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
779
|
+
return rxjs.of(result200);
|
|
780
|
+
}));
|
|
781
|
+
}
|
|
782
|
+
else if (status === 500) {
|
|
783
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
784
|
+
var result500 = null;
|
|
785
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
786
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
787
|
+
}));
|
|
788
|
+
}
|
|
789
|
+
else if (status !== 200 && status !== 204) {
|
|
790
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
791
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
792
|
+
}));
|
|
793
|
+
}
|
|
794
|
+
return rxjs.of(null);
|
|
795
|
+
};
|
|
796
|
+
/**
|
|
797
|
+
* @param body (optional)
|
|
798
|
+
* @return Success
|
|
799
|
+
*/
|
|
800
|
+
DesignAtomsCompatibilityApiClient.prototype.getColorPreviews = function (tenantId, body) {
|
|
801
|
+
var _this = this;
|
|
802
|
+
var url_ = this.baseUrl + "/api/atoms/v1/tenants/{tenantId}/api/ccviewer/GetColorPreviews";
|
|
803
|
+
if (tenantId === undefined || tenantId === null)
|
|
804
|
+
throw new Error("The parameter 'tenantId' must be defined.");
|
|
805
|
+
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
806
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
807
|
+
var content_ = JSON.stringify(body);
|
|
808
|
+
var options_ = {
|
|
809
|
+
body: content_,
|
|
810
|
+
observe: "response",
|
|
811
|
+
responseType: "blob",
|
|
812
|
+
headers: new i1.HttpHeaders({
|
|
813
|
+
"Content-Type": "application/json",
|
|
814
|
+
"Accept": "application/json"
|
|
815
|
+
})
|
|
816
|
+
};
|
|
817
|
+
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
818
|
+
return _this.http.request("post", url_, transformedOptions_);
|
|
819
|
+
})).pipe(operators.mergeMap(function (response_) {
|
|
820
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processGetColorPreviews(r); });
|
|
821
|
+
})).pipe(operators.catchError(function (response_) {
|
|
822
|
+
if (response_ instanceof i1.HttpResponseBase) {
|
|
823
|
+
try {
|
|
824
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processGetColorPreviews(r); });
|
|
825
|
+
}
|
|
826
|
+
catch (e) {
|
|
827
|
+
return rxjs.throwError(e);
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
else
|
|
831
|
+
return rxjs.throwError(response_);
|
|
832
|
+
}));
|
|
833
|
+
};
|
|
834
|
+
DesignAtomsCompatibilityApiClient.prototype.processGetColorPreviews = function (response) {
|
|
835
|
+
var e_6, _a;
|
|
836
|
+
var _this = this;
|
|
837
|
+
var status = response.status;
|
|
838
|
+
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
839
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
840
|
+
var _headers = {};
|
|
841
|
+
if (response.headers) {
|
|
842
|
+
try {
|
|
843
|
+
for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
844
|
+
var key = _c.value;
|
|
845
|
+
_headers[key] = response.headers.get(key);
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
catch (e_6_1) { e_6 = { error: e_6_1 }; }
|
|
849
|
+
finally {
|
|
850
|
+
try {
|
|
851
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
852
|
+
}
|
|
853
|
+
finally { if (e_6) throw e_6.error; }
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
if (status === 200) {
|
|
857
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
858
|
+
var result200 = null;
|
|
859
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
860
|
+
return rxjs.of(result200);
|
|
861
|
+
}));
|
|
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
|
+
};
|
|
715
877
|
/**
|
|
716
878
|
* @param fontKey (optional)
|
|
717
879
|
* @return Success
|
|
@@ -750,7 +912,7 @@
|
|
|
750
912
|
}));
|
|
751
913
|
};
|
|
752
914
|
DesignAtomsCompatibilityApiClient.prototype.processGetCssFont = function (response) {
|
|
753
|
-
var
|
|
915
|
+
var e_7, _a;
|
|
754
916
|
var _this = this;
|
|
755
917
|
var status = response.status;
|
|
756
918
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -763,12 +925,12 @@
|
|
|
763
925
|
_headers[key] = response.headers.get(key);
|
|
764
926
|
}
|
|
765
927
|
}
|
|
766
|
-
catch (
|
|
928
|
+
catch (e_7_1) { e_7 = { error: e_7_1 }; }
|
|
767
929
|
finally {
|
|
768
930
|
try {
|
|
769
931
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
770
932
|
}
|
|
771
|
-
finally { if (
|
|
933
|
+
finally { if (e_7) throw e_7.error; }
|
|
772
934
|
}
|
|
773
935
|
}
|
|
774
936
|
if (status === 200 || status === 206) {
|
|
@@ -833,7 +995,7 @@
|
|
|
833
995
|
}));
|
|
834
996
|
};
|
|
835
997
|
DesignAtomsCompatibilityApiClient.prototype.processGetFallbackFonts = function (response) {
|
|
836
|
-
var
|
|
998
|
+
var e_8, _a;
|
|
837
999
|
var _this = this;
|
|
838
1000
|
var status = response.status;
|
|
839
1001
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -846,12 +1008,12 @@
|
|
|
846
1008
|
_headers[key] = response.headers.get(key);
|
|
847
1009
|
}
|
|
848
1010
|
}
|
|
849
|
-
catch (
|
|
1011
|
+
catch (e_8_1) { e_8 = { error: e_8_1 }; }
|
|
850
1012
|
finally {
|
|
851
1013
|
try {
|
|
852
1014
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
853
1015
|
}
|
|
854
|
-
finally { if (
|
|
1016
|
+
finally { if (e_8) throw e_8.error; }
|
|
855
1017
|
}
|
|
856
1018
|
}
|
|
857
1019
|
if (status === 200 || status === 206) {
|
|
@@ -913,7 +1075,7 @@
|
|
|
913
1075
|
}));
|
|
914
1076
|
};
|
|
915
1077
|
DesignAtomsCompatibilityApiClient.prototype.processGetImageSize = function (response) {
|
|
916
|
-
var
|
|
1078
|
+
var e_9, _a;
|
|
917
1079
|
var _this = this;
|
|
918
1080
|
var status = response.status;
|
|
919
1081
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -926,12 +1088,12 @@
|
|
|
926
1088
|
_headers[key] = response.headers.get(key);
|
|
927
1089
|
}
|
|
928
1090
|
}
|
|
929
|
-
catch (
|
|
1091
|
+
catch (e_9_1) { e_9 = { error: e_9_1 }; }
|
|
930
1092
|
finally {
|
|
931
1093
|
try {
|
|
932
1094
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
933
1095
|
}
|
|
934
|
-
finally { if (
|
|
1096
|
+
finally { if (e_9) throw e_9.error; }
|
|
935
1097
|
}
|
|
936
1098
|
}
|
|
937
1099
|
if (status === 200) {
|
|
@@ -994,7 +1156,7 @@
|
|
|
994
1156
|
}));
|
|
995
1157
|
};
|
|
996
1158
|
DesignAtomsCompatibilityApiClient.prototype.processGetShapeBounds = function (response) {
|
|
997
|
-
var
|
|
1159
|
+
var e_10, _a;
|
|
998
1160
|
var _this = this;
|
|
999
1161
|
var status = response.status;
|
|
1000
1162
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -1007,12 +1169,12 @@
|
|
|
1007
1169
|
_headers[key] = response.headers.get(key);
|
|
1008
1170
|
}
|
|
1009
1171
|
}
|
|
1010
|
-
catch (
|
|
1172
|
+
catch (e_10_1) { e_10 = { error: e_10_1 }; }
|
|
1011
1173
|
finally {
|
|
1012
1174
|
try {
|
|
1013
1175
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
1014
1176
|
}
|
|
1015
|
-
finally { if (
|
|
1177
|
+
finally { if (e_10) throw e_10.error; }
|
|
1016
1178
|
}
|
|
1017
1179
|
}
|
|
1018
1180
|
if (status === 200) {
|
|
@@ -1075,7 +1237,7 @@
|
|
|
1075
1237
|
}));
|
|
1076
1238
|
};
|
|
1077
1239
|
DesignAtomsCompatibilityApiClient.prototype.processGetWatermarkItems = function (response) {
|
|
1078
|
-
var
|
|
1240
|
+
var e_11, _a;
|
|
1079
1241
|
var _this = this;
|
|
1080
1242
|
var status = response.status;
|
|
1081
1243
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -1088,12 +1250,12 @@
|
|
|
1088
1250
|
_headers[key] = response.headers.get(key);
|
|
1089
1251
|
}
|
|
1090
1252
|
}
|
|
1091
|
-
catch (
|
|
1253
|
+
catch (e_11_1) { e_11 = { error: e_11_1 }; }
|
|
1092
1254
|
finally {
|
|
1093
1255
|
try {
|
|
1094
1256
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
1095
1257
|
}
|
|
1096
|
-
finally { if (
|
|
1258
|
+
finally { if (e_11) throw e_11.error; }
|
|
1097
1259
|
}
|
|
1098
1260
|
}
|
|
1099
1261
|
if (status === 200) {
|
|
@@ -1200,7 +1362,7 @@
|
|
|
1200
1362
|
}));
|
|
1201
1363
|
};
|
|
1202
1364
|
DesignAtomsCompatibilityApiClient.prototype.processImg = function (response) {
|
|
1203
|
-
var
|
|
1365
|
+
var e_12, _a;
|
|
1204
1366
|
var _this = this;
|
|
1205
1367
|
var status = response.status;
|
|
1206
1368
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -1213,12 +1375,12 @@
|
|
|
1213
1375
|
_headers[key] = response.headers.get(key);
|
|
1214
1376
|
}
|
|
1215
1377
|
}
|
|
1216
|
-
catch (
|
|
1378
|
+
catch (e_12_1) { e_12 = { error: e_12_1 }; }
|
|
1217
1379
|
finally {
|
|
1218
1380
|
try {
|
|
1219
1381
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
1220
1382
|
}
|
|
1221
|
-
finally { if (
|
|
1383
|
+
finally { if (e_12) throw e_12.error; }
|
|
1222
1384
|
}
|
|
1223
1385
|
}
|
|
1224
1386
|
if (status === 200 || status === 206) {
|
|
@@ -1288,7 +1450,7 @@
|
|
|
1288
1450
|
}));
|
|
1289
1451
|
};
|
|
1290
1452
|
DesignAtomsCompatibilityApiClient.prototype.processGetLicense = function (response) {
|
|
1291
|
-
var
|
|
1453
|
+
var e_13, _a;
|
|
1292
1454
|
var _this = this;
|
|
1293
1455
|
var status = response.status;
|
|
1294
1456
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -1301,12 +1463,12 @@
|
|
|
1301
1463
|
_headers[key] = response.headers.get(key);
|
|
1302
1464
|
}
|
|
1303
1465
|
}
|
|
1304
|
-
catch (
|
|
1466
|
+
catch (e_13_1) { e_13 = { error: e_13_1 }; }
|
|
1305
1467
|
finally {
|
|
1306
1468
|
try {
|
|
1307
1469
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
1308
1470
|
}
|
|
1309
|
-
finally { if (
|
|
1471
|
+
finally { if (e_13) throw e_13.error; }
|
|
1310
1472
|
}
|
|
1311
1473
|
}
|
|
1312
1474
|
if (status === 200) {
|
|
@@ -1368,7 +1530,7 @@
|
|
|
1368
1530
|
}));
|
|
1369
1531
|
};
|
|
1370
1532
|
DesignAtomsCompatibilityApiClient.prototype.processPth = function (response) {
|
|
1371
|
-
var
|
|
1533
|
+
var e_14, _a;
|
|
1372
1534
|
var _this = this;
|
|
1373
1535
|
var status = response.status;
|
|
1374
1536
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -1381,12 +1543,12 @@
|
|
|
1381
1543
|
_headers[key] = response.headers.get(key);
|
|
1382
1544
|
}
|
|
1383
1545
|
}
|
|
1384
|
-
catch (
|
|
1546
|
+
catch (e_14_1) { e_14 = { error: e_14_1 }; }
|
|
1385
1547
|
finally {
|
|
1386
1548
|
try {
|
|
1387
1549
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
1388
1550
|
}
|
|
1389
|
-
finally { if (
|
|
1551
|
+
finally { if (e_14) throw e_14.error; }
|
|
1390
1552
|
}
|
|
1391
1553
|
}
|
|
1392
1554
|
if (status === 200 || status === 206) {
|
|
@@ -1459,7 +1621,7 @@
|
|
|
1459
1621
|
}));
|
|
1460
1622
|
};
|
|
1461
1623
|
DesignAtomsCompatibilityApiClient.prototype.processResource = function (response) {
|
|
1462
|
-
var
|
|
1624
|
+
var e_15, _a;
|
|
1463
1625
|
var _this = this;
|
|
1464
1626
|
var status = response.status;
|
|
1465
1627
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -1472,12 +1634,12 @@
|
|
|
1472
1634
|
_headers[key] = response.headers.get(key);
|
|
1473
1635
|
}
|
|
1474
1636
|
}
|
|
1475
|
-
catch (
|
|
1637
|
+
catch (e_15_1) { e_15 = { error: e_15_1 }; }
|
|
1476
1638
|
finally {
|
|
1477
1639
|
try {
|
|
1478
1640
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
1479
1641
|
}
|
|
1480
|
-
finally { if (
|
|
1642
|
+
finally { if (e_15) throw e_15.error; }
|
|
1481
1643
|
}
|
|
1482
1644
|
}
|
|
1483
1645
|
if (status === 200 || status === 206) {
|
|
@@ -1545,7 +1707,7 @@
|
|
|
1545
1707
|
}));
|
|
1546
1708
|
};
|
|
1547
1709
|
DesignAtomsCompatibilityApiClient.prototype.processSvg = function (response) {
|
|
1548
|
-
var
|
|
1710
|
+
var e_16, _a;
|
|
1549
1711
|
var _this = this;
|
|
1550
1712
|
var status = response.status;
|
|
1551
1713
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -1558,12 +1720,12 @@
|
|
|
1558
1720
|
_headers[key] = response.headers.get(key);
|
|
1559
1721
|
}
|
|
1560
1722
|
}
|
|
1561
|
-
catch (
|
|
1723
|
+
catch (e_16_1) { e_16 = { error: e_16_1 }; }
|
|
1562
1724
|
finally {
|
|
1563
1725
|
try {
|
|
1564
1726
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
1565
1727
|
}
|
|
1566
|
-
finally { if (
|
|
1728
|
+
finally { if (e_16) throw e_16.error; }
|
|
1567
1729
|
}
|
|
1568
1730
|
}
|
|
1569
1731
|
if (status === 200 || status === 206) {
|
|
@@ -1636,7 +1798,7 @@
|
|
|
1636
1798
|
}));
|
|
1637
1799
|
};
|
|
1638
1800
|
DesignAtomsCompatibilityApiClient.prototype.processTxt = function (response) {
|
|
1639
|
-
var
|
|
1801
|
+
var e_17, _a;
|
|
1640
1802
|
var _this = this;
|
|
1641
1803
|
var status = response.status;
|
|
1642
1804
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -1649,12 +1811,12 @@
|
|
|
1649
1811
|
_headers[key] = response.headers.get(key);
|
|
1650
1812
|
}
|
|
1651
1813
|
}
|
|
1652
|
-
catch (
|
|
1814
|
+
catch (e_17_1) { e_17 = { error: e_17_1 }; }
|
|
1653
1815
|
finally {
|
|
1654
1816
|
try {
|
|
1655
1817
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
1656
1818
|
}
|
|
1657
|
-
finally { if (
|
|
1819
|
+
finally { if (e_17) throw e_17.error; }
|
|
1658
1820
|
}
|
|
1659
1821
|
}
|
|
1660
1822
|
if (status === 200 || status === 206) {
|
|
@@ -1728,7 +1890,7 @@
|
|
|
1728
1890
|
}));
|
|
1729
1891
|
};
|
|
1730
1892
|
DesignAtomsCompatibilityApiClient.prototype.processUpdateArchedTextItemHandler = function (response) {
|
|
1731
|
-
var
|
|
1893
|
+
var e_18, _a;
|
|
1732
1894
|
var _this = this;
|
|
1733
1895
|
var status = response.status;
|
|
1734
1896
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -1741,12 +1903,12 @@
|
|
|
1741
1903
|
_headers[key] = response.headers.get(key);
|
|
1742
1904
|
}
|
|
1743
1905
|
}
|
|
1744
|
-
catch (
|
|
1906
|
+
catch (e_18_1) { e_18 = { error: e_18_1 }; }
|
|
1745
1907
|
finally {
|
|
1746
1908
|
try {
|
|
1747
1909
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
1748
1910
|
}
|
|
1749
|
-
finally { if (
|
|
1911
|
+
finally { if (e_18) throw e_18.error; }
|
|
1750
1912
|
}
|
|
1751
1913
|
}
|
|
1752
1914
|
if (status === 200) {
|
|
@@ -1809,7 +1971,7 @@
|
|
|
1809
1971
|
}));
|
|
1810
1972
|
};
|
|
1811
1973
|
DesignAtomsCompatibilityApiClient.prototype.processUpdateAutoScaledTextItemHandler = function (response) {
|
|
1812
|
-
var
|
|
1974
|
+
var e_19, _a;
|
|
1813
1975
|
var _this = this;
|
|
1814
1976
|
var status = response.status;
|
|
1815
1977
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -1822,12 +1984,12 @@
|
|
|
1822
1984
|
_headers[key] = response.headers.get(key);
|
|
1823
1985
|
}
|
|
1824
1986
|
}
|
|
1825
|
-
catch (
|
|
1987
|
+
catch (e_19_1) { e_19 = { error: e_19_1 }; }
|
|
1826
1988
|
finally {
|
|
1827
1989
|
try {
|
|
1828
1990
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
1829
1991
|
}
|
|
1830
|
-
finally { if (
|
|
1992
|
+
finally { if (e_19) throw e_19.error; }
|
|
1831
1993
|
}
|
|
1832
1994
|
}
|
|
1833
1995
|
if (status === 200) {
|
|
@@ -1890,7 +2052,7 @@
|
|
|
1890
2052
|
}));
|
|
1891
2053
|
};
|
|
1892
2054
|
DesignAtomsCompatibilityApiClient.prototype.processUpdateBarcodeItemHandler = function (response) {
|
|
1893
|
-
var
|
|
2055
|
+
var e_20, _a;
|
|
1894
2056
|
var _this = this;
|
|
1895
2057
|
var status = response.status;
|
|
1896
2058
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -1903,12 +2065,12 @@
|
|
|
1903
2065
|
_headers[key] = response.headers.get(key);
|
|
1904
2066
|
}
|
|
1905
2067
|
}
|
|
1906
|
-
catch (
|
|
2068
|
+
catch (e_20_1) { e_20 = { error: e_20_1 }; }
|
|
1907
2069
|
finally {
|
|
1908
2070
|
try {
|
|
1909
2071
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
1910
2072
|
}
|
|
1911
|
-
finally { if (
|
|
2073
|
+
finally { if (e_20) throw e_20.error; }
|
|
1912
2074
|
}
|
|
1913
2075
|
}
|
|
1914
2076
|
if (status === 200) {
|
|
@@ -1971,7 +2133,7 @@
|
|
|
1971
2133
|
}));
|
|
1972
2134
|
};
|
|
1973
2135
|
DesignAtomsCompatibilityApiClient.prototype.processUpdateBoundedTextItemHandler = function (response) {
|
|
1974
|
-
var
|
|
2136
|
+
var e_21, _a;
|
|
1975
2137
|
var _this = this;
|
|
1976
2138
|
var status = response.status;
|
|
1977
2139
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -1984,12 +2146,12 @@
|
|
|
1984
2146
|
_headers[key] = response.headers.get(key);
|
|
1985
2147
|
}
|
|
1986
2148
|
}
|
|
1987
|
-
catch (
|
|
2149
|
+
catch (e_21_1) { e_21 = { error: e_21_1 }; }
|
|
1988
2150
|
finally {
|
|
1989
2151
|
try {
|
|
1990
2152
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
1991
2153
|
}
|
|
1992
|
-
finally { if (
|
|
2154
|
+
finally { if (e_21) throw e_21.error; }
|
|
1993
2155
|
}
|
|
1994
2156
|
}
|
|
1995
2157
|
if (status === 200) {
|
|
@@ -2052,7 +2214,7 @@
|
|
|
2052
2214
|
}));
|
|
2053
2215
|
};
|
|
2054
2216
|
DesignAtomsCompatibilityApiClient.prototype.processUpdateByColorData = function (response) {
|
|
2055
|
-
var
|
|
2217
|
+
var e_22, _a;
|
|
2056
2218
|
var _this = this;
|
|
2057
2219
|
var status = response.status;
|
|
2058
2220
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -2065,12 +2227,12 @@
|
|
|
2065
2227
|
_headers[key] = response.headers.get(key);
|
|
2066
2228
|
}
|
|
2067
2229
|
}
|
|
2068
|
-
catch (
|
|
2230
|
+
catch (e_22_1) { e_22 = { error: e_22_1 }; }
|
|
2069
2231
|
finally {
|
|
2070
2232
|
try {
|
|
2071
2233
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
2072
2234
|
}
|
|
2073
|
-
finally { if (
|
|
2235
|
+
finally { if (e_22) throw e_22.error; }
|
|
2074
2236
|
}
|
|
2075
2237
|
}
|
|
2076
2238
|
if (status === 200) {
|
|
@@ -2133,7 +2295,7 @@
|
|
|
2133
2295
|
}));
|
|
2134
2296
|
};
|
|
2135
2297
|
DesignAtomsCompatibilityApiClient.prototype.processUpdateByMultiCallRequest = function (response) {
|
|
2136
|
-
var
|
|
2298
|
+
var e_23, _a;
|
|
2137
2299
|
var _this = this;
|
|
2138
2300
|
var status = response.status;
|
|
2139
2301
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -2146,12 +2308,12 @@
|
|
|
2146
2308
|
_headers[key] = response.headers.get(key);
|
|
2147
2309
|
}
|
|
2148
2310
|
}
|
|
2149
|
-
catch (
|
|
2311
|
+
catch (e_23_1) { e_23 = { error: e_23_1 }; }
|
|
2150
2312
|
finally {
|
|
2151
2313
|
try {
|
|
2152
2314
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
2153
2315
|
}
|
|
2154
|
-
finally { if (
|
|
2316
|
+
finally { if (e_23) throw e_23.error; }
|
|
2155
2317
|
}
|
|
2156
2318
|
}
|
|
2157
2319
|
if (status === 200) {
|
|
@@ -2214,7 +2376,7 @@
|
|
|
2214
2376
|
}));
|
|
2215
2377
|
};
|
|
2216
2378
|
DesignAtomsCompatibilityApiClient.prototype.processUpdateCurvedTextItemHandler = function (response) {
|
|
2217
|
-
var
|
|
2379
|
+
var e_24, _a;
|
|
2218
2380
|
var _this = this;
|
|
2219
2381
|
var status = response.status;
|
|
2220
2382
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -2227,12 +2389,12 @@
|
|
|
2227
2389
|
_headers[key] = response.headers.get(key);
|
|
2228
2390
|
}
|
|
2229
2391
|
}
|
|
2230
|
-
catch (
|
|
2392
|
+
catch (e_24_1) { e_24 = { error: e_24_1 }; }
|
|
2231
2393
|
finally {
|
|
2232
2394
|
try {
|
|
2233
2395
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
2234
2396
|
}
|
|
2235
|
-
finally { if (
|
|
2397
|
+
finally { if (e_24) throw e_24.error; }
|
|
2236
2398
|
}
|
|
2237
2399
|
}
|
|
2238
2400
|
if (status === 200) {
|
|
@@ -2295,7 +2457,7 @@
|
|
|
2295
2457
|
}));
|
|
2296
2458
|
};
|
|
2297
2459
|
DesignAtomsCompatibilityApiClient.prototype.processUpdateImageItemHandler = function (response) {
|
|
2298
|
-
var
|
|
2460
|
+
var e_25, _a;
|
|
2299
2461
|
var _this = this;
|
|
2300
2462
|
var status = response.status;
|
|
2301
2463
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -2308,12 +2470,12 @@
|
|
|
2308
2470
|
_headers[key] = response.headers.get(key);
|
|
2309
2471
|
}
|
|
2310
2472
|
}
|
|
2311
|
-
catch (
|
|
2473
|
+
catch (e_25_1) { e_25 = { error: e_25_1 }; }
|
|
2312
2474
|
finally {
|
|
2313
2475
|
try {
|
|
2314
2476
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
2315
2477
|
}
|
|
2316
|
-
finally { if (
|
|
2478
|
+
finally { if (e_25) throw e_25.error; }
|
|
2317
2479
|
}
|
|
2318
2480
|
}
|
|
2319
2481
|
if (status === 200) {
|
|
@@ -2376,7 +2538,7 @@
|
|
|
2376
2538
|
}));
|
|
2377
2539
|
};
|
|
2378
2540
|
DesignAtomsCompatibilityApiClient.prototype.processUpdatePathBoundedTextItemHandler = function (response) {
|
|
2379
|
-
var
|
|
2541
|
+
var e_26, _a;
|
|
2380
2542
|
var _this = this;
|
|
2381
2543
|
var status = response.status;
|
|
2382
2544
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -2389,12 +2551,12 @@
|
|
|
2389
2551
|
_headers[key] = response.headers.get(key);
|
|
2390
2552
|
}
|
|
2391
2553
|
}
|
|
2392
|
-
catch (
|
|
2554
|
+
catch (e_26_1) { e_26 = { error: e_26_1 }; }
|
|
2393
2555
|
finally {
|
|
2394
2556
|
try {
|
|
2395
2557
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
2396
2558
|
}
|
|
2397
|
-
finally { if (
|
|
2559
|
+
finally { if (e_26) throw e_26.error; }
|
|
2398
2560
|
}
|
|
2399
2561
|
}
|
|
2400
2562
|
if (status === 200) {
|
|
@@ -2457,7 +2619,7 @@
|
|
|
2457
2619
|
}));
|
|
2458
2620
|
};
|
|
2459
2621
|
DesignAtomsCompatibilityApiClient.prototype.processUpdatePlainTextItemHandler = function (response) {
|
|
2460
|
-
var
|
|
2622
|
+
var e_27, _a;
|
|
2461
2623
|
var _this = this;
|
|
2462
2624
|
var status = response.status;
|
|
2463
2625
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -2470,12 +2632,12 @@
|
|
|
2470
2632
|
_headers[key] = response.headers.get(key);
|
|
2471
2633
|
}
|
|
2472
2634
|
}
|
|
2473
|
-
catch (
|
|
2635
|
+
catch (e_27_1) { e_27 = { error: e_27_1 }; }
|
|
2474
2636
|
finally {
|
|
2475
2637
|
try {
|
|
2476
2638
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
2477
2639
|
}
|
|
2478
|
-
finally { if (
|
|
2640
|
+
finally { if (e_27) throw e_27.error; }
|
|
2479
2641
|
}
|
|
2480
2642
|
}
|
|
2481
2643
|
if (status === 200) {
|
|
@@ -2538,7 +2700,7 @@
|
|
|
2538
2700
|
}));
|
|
2539
2701
|
};
|
|
2540
2702
|
DesignAtomsCompatibilityApiClient.prototype.processUpdateShapeItemHandler = function (response) {
|
|
2541
|
-
var
|
|
2703
|
+
var e_28, _a;
|
|
2542
2704
|
var _this = this;
|
|
2543
2705
|
var status = response.status;
|
|
2544
2706
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -2551,12 +2713,12 @@
|
|
|
2551
2713
|
_headers[key] = response.headers.get(key);
|
|
2552
2714
|
}
|
|
2553
2715
|
}
|
|
2554
|
-
catch (
|
|
2716
|
+
catch (e_28_1) { e_28 = { error: e_28_1 }; }
|
|
2555
2717
|
finally {
|
|
2556
2718
|
try {
|
|
2557
2719
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
2558
2720
|
}
|
|
2559
|
-
finally { if (
|
|
2721
|
+
finally { if (e_28) throw e_28.error; }
|
|
2560
2722
|
}
|
|
2561
2723
|
}
|
|
2562
2724
|
if (status === 200) {
|
|
@@ -2648,7 +2810,7 @@
|
|
|
2648
2810
|
}));
|
|
2649
2811
|
};
|
|
2650
2812
|
DesignAtomsImagesApiClient.prototype.processRenderImagePreview = function (response) {
|
|
2651
|
-
var
|
|
2813
|
+
var e_29, _a;
|
|
2652
2814
|
var _this = this;
|
|
2653
2815
|
var status = response.status;
|
|
2654
2816
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -2661,12 +2823,12 @@
|
|
|
2661
2823
|
_headers[key] = response.headers.get(key);
|
|
2662
2824
|
}
|
|
2663
2825
|
}
|
|
2664
|
-
catch (
|
|
2826
|
+
catch (e_29_1) { e_29 = { error: e_29_1 }; }
|
|
2665
2827
|
finally {
|
|
2666
2828
|
try {
|
|
2667
2829
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
2668
2830
|
}
|
|
2669
|
-
finally { if (
|
|
2831
|
+
finally { if (e_29) throw e_29.error; }
|
|
2670
2832
|
}
|
|
2671
2833
|
}
|
|
2672
2834
|
if (status === 200 || status === 206) {
|
|
@@ -2763,7 +2925,7 @@
|
|
|
2763
2925
|
}));
|
|
2764
2926
|
};
|
|
2765
2927
|
DesignAtomsMockups3dApiClient.prototype.processGetContentAsProtobuf = function (response) {
|
|
2766
|
-
var
|
|
2928
|
+
var e_30, _a;
|
|
2767
2929
|
var _this = this;
|
|
2768
2930
|
var status = response.status;
|
|
2769
2931
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -2776,12 +2938,12 @@
|
|
|
2776
2938
|
_headers[key] = response.headers.get(key);
|
|
2777
2939
|
}
|
|
2778
2940
|
}
|
|
2779
|
-
catch (
|
|
2941
|
+
catch (e_30_1) { e_30 = { error: e_30_1 }; }
|
|
2780
2942
|
finally {
|
|
2781
2943
|
try {
|
|
2782
2944
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
2783
2945
|
}
|
|
2784
|
-
finally { if (
|
|
2946
|
+
finally { if (e_30) throw e_30.error; }
|
|
2785
2947
|
}
|
|
2786
2948
|
}
|
|
2787
2949
|
if (status === 200 || status === 206) {
|
|
@@ -2870,7 +3032,7 @@
|
|
|
2870
3032
|
}));
|
|
2871
3033
|
};
|
|
2872
3034
|
DesignAtomsMockups3dApiClient.prototype.processGetGeometryFile = function (response) {
|
|
2873
|
-
var
|
|
3035
|
+
var e_31, _a;
|
|
2874
3036
|
var _this = this;
|
|
2875
3037
|
var status = response.status;
|
|
2876
3038
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -2883,12 +3045,12 @@
|
|
|
2883
3045
|
_headers[key] = response.headers.get(key);
|
|
2884
3046
|
}
|
|
2885
3047
|
}
|
|
2886
|
-
catch (
|
|
3048
|
+
catch (e_31_1) { e_31 = { error: e_31_1 }; }
|
|
2887
3049
|
finally {
|
|
2888
3050
|
try {
|
|
2889
3051
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
2890
3052
|
}
|
|
2891
|
-
finally { if (
|
|
3053
|
+
finally { if (e_31) throw e_31.error; }
|
|
2892
3054
|
}
|
|
2893
3055
|
}
|
|
2894
3056
|
if (status === 200 || status === 206) {
|
|
@@ -2999,7 +3161,7 @@
|
|
|
2999
3161
|
}));
|
|
3000
3162
|
};
|
|
3001
3163
|
DesignAtomsServiceApiClient.prototype.processConvertColors = function (response) {
|
|
3002
|
-
var
|
|
3164
|
+
var e_32, _a;
|
|
3003
3165
|
var _this = this;
|
|
3004
3166
|
var status = response.status;
|
|
3005
3167
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -3012,12 +3174,12 @@
|
|
|
3012
3174
|
_headers[key] = response.headers.get(key);
|
|
3013
3175
|
}
|
|
3014
3176
|
}
|
|
3015
|
-
catch (
|
|
3177
|
+
catch (e_32_1) { e_32 = { error: e_32_1 }; }
|
|
3016
3178
|
finally {
|
|
3017
3179
|
try {
|
|
3018
3180
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
3019
3181
|
}
|
|
3020
|
-
finally { if (
|
|
3182
|
+
finally { if (e_32) throw e_32.error; }
|
|
3021
3183
|
}
|
|
3022
3184
|
}
|
|
3023
3185
|
if (status === 200) {
|
|
@@ -3106,7 +3268,7 @@
|
|
|
3106
3268
|
}));
|
|
3107
3269
|
};
|
|
3108
3270
|
DesignAtomsServiceApiClient.prototype.processCreateDesign = function (response) {
|
|
3109
|
-
var
|
|
3271
|
+
var e_33, _a;
|
|
3110
3272
|
var _this = this;
|
|
3111
3273
|
var status = response.status;
|
|
3112
3274
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -3119,12 +3281,12 @@
|
|
|
3119
3281
|
_headers[key] = response.headers.get(key);
|
|
3120
3282
|
}
|
|
3121
3283
|
}
|
|
3122
|
-
catch (
|
|
3284
|
+
catch (e_33_1) { e_33 = { error: e_33_1 }; }
|
|
3123
3285
|
finally {
|
|
3124
3286
|
try {
|
|
3125
3287
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
3126
3288
|
}
|
|
3127
|
-
finally { if (
|
|
3289
|
+
finally { if (e_33) throw e_33.error; }
|
|
3128
3290
|
}
|
|
3129
3291
|
}
|
|
3130
3292
|
if (status === 201) {
|
|
@@ -3206,7 +3368,7 @@
|
|
|
3206
3368
|
}));
|
|
3207
3369
|
};
|
|
3208
3370
|
DesignAtomsServiceApiClient.prototype.processExtractBackground = function (response) {
|
|
3209
|
-
var
|
|
3371
|
+
var e_34, _a;
|
|
3210
3372
|
var _this = this;
|
|
3211
3373
|
var status = response.status;
|
|
3212
3374
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -3219,12 +3381,12 @@
|
|
|
3219
3381
|
_headers[key] = response.headers.get(key);
|
|
3220
3382
|
}
|
|
3221
3383
|
}
|
|
3222
|
-
catch (
|
|
3384
|
+
catch (e_34_1) { e_34 = { error: e_34_1 }; }
|
|
3223
3385
|
finally {
|
|
3224
3386
|
try {
|
|
3225
3387
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
3226
3388
|
}
|
|
3227
|
-
finally { if (
|
|
3389
|
+
finally { if (e_34) throw e_34.error; }
|
|
3228
3390
|
}
|
|
3229
3391
|
}
|
|
3230
3392
|
if (status === 200 || status === 206) {
|
|
@@ -3319,7 +3481,7 @@
|
|
|
3319
3481
|
}));
|
|
3320
3482
|
};
|
|
3321
3483
|
DesignAtomsServiceApiClient.prototype.processLoadProduct = function (response) {
|
|
3322
|
-
var
|
|
3484
|
+
var e_35, _a;
|
|
3323
3485
|
var _this = this;
|
|
3324
3486
|
var status = response.status;
|
|
3325
3487
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -3332,12 +3494,12 @@
|
|
|
3332
3494
|
_headers[key] = response.headers.get(key);
|
|
3333
3495
|
}
|
|
3334
3496
|
}
|
|
3335
|
-
catch (
|
|
3497
|
+
catch (e_35_1) { e_35 = { error: e_35_1 }; }
|
|
3336
3498
|
finally {
|
|
3337
3499
|
try {
|
|
3338
3500
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
3339
3501
|
}
|
|
3340
|
-
finally { if (
|
|
3502
|
+
finally { if (e_35) throw e_35.error; }
|
|
3341
3503
|
}
|
|
3342
3504
|
}
|
|
3343
3505
|
if (status === 200) {
|
|
@@ -3429,7 +3591,7 @@
|
|
|
3429
3591
|
}));
|
|
3430
3592
|
};
|
|
3431
3593
|
DesignAtomsServiceApiClient.prototype.processSaveProduct = function (response) {
|
|
3432
|
-
var
|
|
3594
|
+
var e_36, _a;
|
|
3433
3595
|
var _this = this;
|
|
3434
3596
|
var status = response.status;
|
|
3435
3597
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -3442,12 +3604,12 @@
|
|
|
3442
3604
|
_headers[key] = response.headers.get(key);
|
|
3443
3605
|
}
|
|
3444
3606
|
}
|
|
3445
|
-
catch (
|
|
3607
|
+
catch (e_36_1) { e_36 = { error: e_36_1 }; }
|
|
3446
3608
|
finally {
|
|
3447
3609
|
try {
|
|
3448
3610
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
3449
3611
|
}
|
|
3450
|
-
finally { if (
|
|
3612
|
+
finally { if (e_36) throw e_36.error; }
|
|
3451
3613
|
}
|
|
3452
3614
|
}
|
|
3453
3615
|
if (status === 200) {
|
|
@@ -3556,7 +3718,7 @@
|
|
|
3556
3718
|
}));
|
|
3557
3719
|
};
|
|
3558
3720
|
DesignAtomsServiceApiClient.prototype.processPatchProduct = function (response) {
|
|
3559
|
-
var
|
|
3721
|
+
var e_37, _a;
|
|
3560
3722
|
var _this = this;
|
|
3561
3723
|
var status = response.status;
|
|
3562
3724
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -3569,12 +3731,12 @@
|
|
|
3569
3731
|
_headers[key] = response.headers.get(key);
|
|
3570
3732
|
}
|
|
3571
3733
|
}
|
|
3572
|
-
catch (
|
|
3734
|
+
catch (e_37_1) { e_37 = { error: e_37_1 }; }
|
|
3573
3735
|
finally {
|
|
3574
3736
|
try {
|
|
3575
3737
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
3576
3738
|
}
|
|
3577
|
-
finally { if (
|
|
3739
|
+
finally { if (e_37) throw e_37.error; }
|
|
3578
3740
|
}
|
|
3579
3741
|
}
|
|
3580
3742
|
if (status === 200) {
|
|
@@ -3661,7 +3823,7 @@
|
|
|
3661
3823
|
}));
|
|
3662
3824
|
};
|
|
3663
3825
|
DesignAtomsServiceApiClient.prototype.processLoadDataSchema = function (response) {
|
|
3664
|
-
var
|
|
3826
|
+
var e_38, _a;
|
|
3665
3827
|
var _this = this;
|
|
3666
3828
|
var status = response.status;
|
|
3667
3829
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -3674,12 +3836,12 @@
|
|
|
3674
3836
|
_headers[key] = response.headers.get(key);
|
|
3675
3837
|
}
|
|
3676
3838
|
}
|
|
3677
|
-
catch (
|
|
3839
|
+
catch (e_38_1) { e_38 = { error: e_38_1 }; }
|
|
3678
3840
|
finally {
|
|
3679
3841
|
try {
|
|
3680
3842
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
3681
3843
|
}
|
|
3682
|
-
finally { if (
|
|
3844
|
+
finally { if (e_38) throw e_38.error; }
|
|
3683
3845
|
}
|
|
3684
3846
|
}
|
|
3685
3847
|
if (status === 200 || status === 206) {
|
|
@@ -3774,7 +3936,7 @@
|
|
|
3774
3936
|
}));
|
|
3775
3937
|
};
|
|
3776
3938
|
DesignAtomsServiceApiClient.prototype.processGetVariables = function (response) {
|
|
3777
|
-
var
|
|
3939
|
+
var e_39, _a;
|
|
3778
3940
|
var _this = this;
|
|
3779
3941
|
var status = response.status;
|
|
3780
3942
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -3787,12 +3949,12 @@
|
|
|
3787
3949
|
_headers[key] = response.headers.get(key);
|
|
3788
3950
|
}
|
|
3789
3951
|
}
|
|
3790
|
-
catch (
|
|
3952
|
+
catch (e_39_1) { e_39 = { error: e_39_1 }; }
|
|
3791
3953
|
finally {
|
|
3792
3954
|
try {
|
|
3793
3955
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
3794
3956
|
}
|
|
3795
|
-
finally { if (
|
|
3957
|
+
finally { if (e_39) throw e_39.error; }
|
|
3796
3958
|
}
|
|
3797
3959
|
}
|
|
3798
3960
|
if (status === 200) {
|
|
@@ -3884,7 +4046,7 @@
|
|
|
3884
4046
|
}));
|
|
3885
4047
|
};
|
|
3886
4048
|
DesignAtomsServiceApiClient.prototype.processSetVariables = function (response) {
|
|
3887
|
-
var
|
|
4049
|
+
var e_40, _a;
|
|
3888
4050
|
var _this = this;
|
|
3889
4051
|
var status = response.status;
|
|
3890
4052
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -3897,12 +4059,12 @@
|
|
|
3897
4059
|
_headers[key] = response.headers.get(key);
|
|
3898
4060
|
}
|
|
3899
4061
|
}
|
|
3900
|
-
catch (
|
|
4062
|
+
catch (e_40_1) { e_40 = { error: e_40_1 }; }
|
|
3901
4063
|
finally {
|
|
3902
4064
|
try {
|
|
3903
4065
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
3904
4066
|
}
|
|
3905
|
-
finally { if (
|
|
4067
|
+
finally { if (e_40) throw e_40.error; }
|
|
3906
4068
|
}
|
|
3907
4069
|
}
|
|
3908
4070
|
if (status === 200) {
|
|
@@ -3996,7 +4158,7 @@
|
|
|
3996
4158
|
}));
|
|
3997
4159
|
};
|
|
3998
4160
|
DesignAtomsServiceApiClient.prototype.processLoadVdpData = function (response) {
|
|
3999
|
-
var
|
|
4161
|
+
var e_41, _a;
|
|
4000
4162
|
var _this = this;
|
|
4001
4163
|
var status = response.status;
|
|
4002
4164
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4009,12 +4171,12 @@
|
|
|
4009
4171
|
_headers[key] = response.headers.get(key);
|
|
4010
4172
|
}
|
|
4011
4173
|
}
|
|
4012
|
-
catch (
|
|
4174
|
+
catch (e_41_1) { e_41 = { error: e_41_1 }; }
|
|
4013
4175
|
finally {
|
|
4014
4176
|
try {
|
|
4015
4177
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4016
4178
|
}
|
|
4017
|
-
finally { if (
|
|
4179
|
+
finally { if (e_41) throw e_41.error; }
|
|
4018
4180
|
}
|
|
4019
4181
|
}
|
|
4020
4182
|
if (status === 200) {
|
|
@@ -4113,7 +4275,7 @@
|
|
|
4113
4275
|
}));
|
|
4114
4276
|
};
|
|
4115
4277
|
DesignAtomsServiceApiClient.prototype.processSaveVdpData = function (response) {
|
|
4116
|
-
var
|
|
4278
|
+
var e_42, _a;
|
|
4117
4279
|
var _this = this;
|
|
4118
4280
|
var status = response.status;
|
|
4119
4281
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4126,12 +4288,12 @@
|
|
|
4126
4288
|
_headers[key] = response.headers.get(key);
|
|
4127
4289
|
}
|
|
4128
4290
|
}
|
|
4129
|
-
catch (
|
|
4291
|
+
catch (e_42_1) { e_42 = { error: e_42_1 }; }
|
|
4130
4292
|
finally {
|
|
4131
4293
|
try {
|
|
4132
4294
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4133
4295
|
}
|
|
4134
|
-
finally { if (
|
|
4296
|
+
finally { if (e_42) throw e_42.error; }
|
|
4135
4297
|
}
|
|
4136
4298
|
}
|
|
4137
4299
|
if (status === 200) {
|
|
@@ -4216,7 +4378,7 @@
|
|
|
4216
4378
|
}));
|
|
4217
4379
|
};
|
|
4218
4380
|
DesignAtomsServiceApiClient.prototype.processDeleteVdpData = function (response) {
|
|
4219
|
-
var
|
|
4381
|
+
var e_43, _a;
|
|
4220
4382
|
var _this = this;
|
|
4221
4383
|
var status = response.status;
|
|
4222
4384
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4229,12 +4391,12 @@
|
|
|
4229
4391
|
_headers[key] = response.headers.get(key);
|
|
4230
4392
|
}
|
|
4231
4393
|
}
|
|
4232
|
-
catch (
|
|
4394
|
+
catch (e_43_1) { e_43 = { error: e_43_1 }; }
|
|
4233
4395
|
finally {
|
|
4234
4396
|
try {
|
|
4235
4397
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4236
4398
|
}
|
|
4237
|
-
finally { if (
|
|
4399
|
+
finally { if (e_43) throw e_43.error; }
|
|
4238
4400
|
}
|
|
4239
4401
|
}
|
|
4240
4402
|
if (status === 200) {
|
|
@@ -4315,7 +4477,7 @@
|
|
|
4315
4477
|
}));
|
|
4316
4478
|
};
|
|
4317
4479
|
DesignAtomsServiceApiClient.prototype.processFlattenItems = function (response) {
|
|
4318
|
-
var
|
|
4480
|
+
var e_44, _a;
|
|
4319
4481
|
var _this = this;
|
|
4320
4482
|
var status = response.status;
|
|
4321
4483
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4328,12 +4490,12 @@
|
|
|
4328
4490
|
_headers[key] = response.headers.get(key);
|
|
4329
4491
|
}
|
|
4330
4492
|
}
|
|
4331
|
-
catch (
|
|
4493
|
+
catch (e_44_1) { e_44 = { error: e_44_1 }; }
|
|
4332
4494
|
finally {
|
|
4333
4495
|
try {
|
|
4334
4496
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4335
4497
|
}
|
|
4336
|
-
finally { if (
|
|
4498
|
+
finally { if (e_44) throw e_44.error; }
|
|
4337
4499
|
}
|
|
4338
4500
|
}
|
|
4339
4501
|
if (status === 200) {
|
|
@@ -4422,7 +4584,7 @@
|
|
|
4422
4584
|
}));
|
|
4423
4585
|
};
|
|
4424
4586
|
DesignAtomsServiceApiClient.prototype.processCreateItem = function (response) {
|
|
4425
|
-
var
|
|
4587
|
+
var e_45, _a;
|
|
4426
4588
|
var _this = this;
|
|
4427
4589
|
var status = response.status;
|
|
4428
4590
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4435,12 +4597,12 @@
|
|
|
4435
4597
|
_headers[key] = response.headers.get(key);
|
|
4436
4598
|
}
|
|
4437
4599
|
}
|
|
4438
|
-
catch (
|
|
4600
|
+
catch (e_45_1) { e_45 = { error: e_45_1 }; }
|
|
4439
4601
|
finally {
|
|
4440
4602
|
try {
|
|
4441
4603
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4442
4604
|
}
|
|
4443
|
-
finally { if (
|
|
4605
|
+
finally { if (e_45) throw e_45.error; }
|
|
4444
4606
|
}
|
|
4445
4607
|
}
|
|
4446
4608
|
if (status === 200) {
|
|
@@ -4526,7 +4688,7 @@
|
|
|
4526
4688
|
}));
|
|
4527
4689
|
};
|
|
4528
4690
|
DesignAtomsServiceApiClient.prototype.processCreatePrivateDesignFromDesign = function (response) {
|
|
4529
|
-
var
|
|
4691
|
+
var e_46, _a;
|
|
4530
4692
|
var _this = this;
|
|
4531
4693
|
var status = response.status;
|
|
4532
4694
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4539,12 +4701,12 @@
|
|
|
4539
4701
|
_headers[key] = response.headers.get(key);
|
|
4540
4702
|
}
|
|
4541
4703
|
}
|
|
4542
|
-
catch (
|
|
4704
|
+
catch (e_46_1) { e_46 = { error: e_46_1 }; }
|
|
4543
4705
|
finally {
|
|
4544
4706
|
try {
|
|
4545
4707
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4546
4708
|
}
|
|
4547
|
-
finally { if (
|
|
4709
|
+
finally { if (e_46) throw e_46.error; }
|
|
4548
4710
|
}
|
|
4549
4711
|
}
|
|
4550
4712
|
if (status === 201) {
|
|
@@ -4621,7 +4783,7 @@
|
|
|
4621
4783
|
}));
|
|
4622
4784
|
};
|
|
4623
4785
|
DesignAtomsServiceApiClient.prototype.processCreatePrivateDesignFromResource = function (response) {
|
|
4624
|
-
var
|
|
4786
|
+
var e_47, _a;
|
|
4625
4787
|
var _this = this;
|
|
4626
4788
|
var status = response.status;
|
|
4627
4789
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4634,12 +4796,12 @@
|
|
|
4634
4796
|
_headers[key] = response.headers.get(key);
|
|
4635
4797
|
}
|
|
4636
4798
|
}
|
|
4637
|
-
catch (
|
|
4799
|
+
catch (e_47_1) { e_47 = { error: e_47_1 }; }
|
|
4638
4800
|
finally {
|
|
4639
4801
|
try {
|
|
4640
4802
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4641
4803
|
}
|
|
4642
|
-
finally { if (
|
|
4804
|
+
finally { if (e_47) throw e_47.error; }
|
|
4643
4805
|
}
|
|
4644
4806
|
}
|
|
4645
4807
|
if (status === 201) {
|
|
@@ -4717,7 +4879,7 @@
|
|
|
4717
4879
|
}));
|
|
4718
4880
|
};
|
|
4719
4881
|
DesignAtomsServiceApiClient.prototype.processRenderDesignPreview = function (response) {
|
|
4720
|
-
var
|
|
4882
|
+
var e_48, _a;
|
|
4721
4883
|
var _this = this;
|
|
4722
4884
|
var status = response.status;
|
|
4723
4885
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4730,12 +4892,12 @@
|
|
|
4730
4892
|
_headers[key] = response.headers.get(key);
|
|
4731
4893
|
}
|
|
4732
4894
|
}
|
|
4733
|
-
catch (
|
|
4895
|
+
catch (e_48_1) { e_48 = { error: e_48_1 }; }
|
|
4734
4896
|
finally {
|
|
4735
4897
|
try {
|
|
4736
4898
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4737
4899
|
}
|
|
4738
|
-
finally { if (
|
|
4900
|
+
finally { if (e_48) throw e_48.error; }
|
|
4739
4901
|
}
|
|
4740
4902
|
}
|
|
4741
4903
|
if (status === 200 || status === 206) {
|
|
@@ -4814,7 +4976,7 @@
|
|
|
4814
4976
|
}));
|
|
4815
4977
|
};
|
|
4816
4978
|
DesignAtomsServiceApiClient.prototype.processRenderDesignProof = function (response) {
|
|
4817
|
-
var
|
|
4979
|
+
var e_49, _a;
|
|
4818
4980
|
var _this = this;
|
|
4819
4981
|
var status = response.status;
|
|
4820
4982
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4827,12 +4989,12 @@
|
|
|
4827
4989
|
_headers[key] = response.headers.get(key);
|
|
4828
4990
|
}
|
|
4829
4991
|
}
|
|
4830
|
-
catch (
|
|
4992
|
+
catch (e_49_1) { e_49 = { error: e_49_1 }; }
|
|
4831
4993
|
finally {
|
|
4832
4994
|
try {
|
|
4833
4995
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4834
4996
|
}
|
|
4835
|
-
finally { if (
|
|
4997
|
+
finally { if (e_49) throw e_49.error; }
|
|
4836
4998
|
}
|
|
4837
4999
|
}
|
|
4838
5000
|
if (status === 200 || status === 206) {
|
|
@@ -4910,7 +5072,7 @@
|
|
|
4910
5072
|
}));
|
|
4911
5073
|
};
|
|
4912
5074
|
DesignAtomsServiceApiClient.prototype.processRenderProduct = function (response) {
|
|
4913
|
-
var
|
|
5075
|
+
var e_50, _a;
|
|
4914
5076
|
var _this = this;
|
|
4915
5077
|
var status = response.status;
|
|
4916
5078
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4923,12 +5085,12 @@
|
|
|
4923
5085
|
_headers[key] = response.headers.get(key);
|
|
4924
5086
|
}
|
|
4925
5087
|
}
|
|
4926
|
-
catch (
|
|
5088
|
+
catch (e_50_1) { e_50 = { error: e_50_1 }; }
|
|
4927
5089
|
finally {
|
|
4928
5090
|
try {
|
|
4929
5091
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4930
5092
|
}
|
|
4931
|
-
finally { if (
|
|
5093
|
+
finally { if (e_50) throw e_50.error; }
|
|
4932
5094
|
}
|
|
4933
5095
|
}
|
|
4934
5096
|
if (status === 200 || status === 206) {
|
|
@@ -4942,9 +5104,228 @@
|
|
|
4942
5104
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
4943
5105
|
}));
|
|
4944
5106
|
}
|
|
4945
|
-
else if (status === 403) {
|
|
5107
|
+
else if (status === 403) {
|
|
5108
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5109
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5110
|
+
}));
|
|
5111
|
+
}
|
|
5112
|
+
else if (status === 500) {
|
|
5113
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5114
|
+
var result500 = null;
|
|
5115
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5116
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
5117
|
+
}));
|
|
5118
|
+
}
|
|
5119
|
+
else if (status !== 200 && status !== 204) {
|
|
5120
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5121
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5122
|
+
}));
|
|
5123
|
+
}
|
|
5124
|
+
return rxjs.of(null);
|
|
5125
|
+
};
|
|
5126
|
+
/**
|
|
5127
|
+
* Loads product (design model) from resource file taken from storage
|
|
5128
|
+
* @param id Resource identifier
|
|
5129
|
+
* @param privateStorage (optional) If set to 'true' resource will be taken from private storage
|
|
5130
|
+
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
5131
|
+
* @param tenantId (optional) Tenant identifier
|
|
5132
|
+
* @return Success
|
|
5133
|
+
*/
|
|
5134
|
+
DesignAtomsServiceApiClient.prototype.loadProductFromResource = function (id, privateStorage, privateStorageOwner, tenantId) {
|
|
5135
|
+
var _this = this;
|
|
5136
|
+
var url_ = this.baseUrl + "/api/atoms/v1/resources/{id}/as-design/model?";
|
|
5137
|
+
if (id === undefined || id === null)
|
|
5138
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
5139
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
5140
|
+
if (privateStorage !== undefined && privateStorage !== null)
|
|
5141
|
+
url_ += "privateStorage=" + encodeURIComponent("" + privateStorage) + "&";
|
|
5142
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
5143
|
+
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
5144
|
+
if (tenantId === null)
|
|
5145
|
+
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
5146
|
+
else if (tenantId !== undefined)
|
|
5147
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
5148
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5149
|
+
var options_ = {
|
|
5150
|
+
observe: "response",
|
|
5151
|
+
responseType: "blob",
|
|
5152
|
+
headers: new i1.HttpHeaders({
|
|
5153
|
+
"Accept": "application/json"
|
|
5154
|
+
})
|
|
5155
|
+
};
|
|
5156
|
+
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
5157
|
+
return _this.http.request("get", url_, transformedOptions_);
|
|
5158
|
+
})).pipe(operators.mergeMap(function (response_) {
|
|
5159
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processLoadProductFromResource(r); });
|
|
5160
|
+
})).pipe(operators.catchError(function (response_) {
|
|
5161
|
+
if (response_ instanceof i1.HttpResponseBase) {
|
|
5162
|
+
try {
|
|
5163
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processLoadProductFromResource(r); });
|
|
5164
|
+
}
|
|
5165
|
+
catch (e) {
|
|
5166
|
+
return rxjs.throwError(e);
|
|
5167
|
+
}
|
|
5168
|
+
}
|
|
5169
|
+
else
|
|
5170
|
+
return rxjs.throwError(response_);
|
|
5171
|
+
}));
|
|
5172
|
+
};
|
|
5173
|
+
DesignAtomsServiceApiClient.prototype.processLoadProductFromResource = function (response) {
|
|
5174
|
+
var e_51, _a;
|
|
5175
|
+
var _this = this;
|
|
5176
|
+
var status = response.status;
|
|
5177
|
+
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
5178
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
5179
|
+
var _headers = {};
|
|
5180
|
+
if (response.headers) {
|
|
5181
|
+
try {
|
|
5182
|
+
for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
5183
|
+
var key = _c.value;
|
|
5184
|
+
_headers[key] = response.headers.get(key);
|
|
5185
|
+
}
|
|
5186
|
+
}
|
|
5187
|
+
catch (e_51_1) { e_51 = { error: e_51_1 }; }
|
|
5188
|
+
finally {
|
|
5189
|
+
try {
|
|
5190
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5191
|
+
}
|
|
5192
|
+
finally { if (e_51) throw e_51.error; }
|
|
5193
|
+
}
|
|
5194
|
+
}
|
|
5195
|
+
if (status === 200) {
|
|
5196
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5197
|
+
var result200 = null;
|
|
5198
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5199
|
+
return rxjs.of(result200);
|
|
5200
|
+
}));
|
|
5201
|
+
}
|
|
5202
|
+
else if (status === 404) {
|
|
5203
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5204
|
+
var result404 = null;
|
|
5205
|
+
result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5206
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
5207
|
+
}));
|
|
5208
|
+
}
|
|
5209
|
+
else if (status === 422) {
|
|
5210
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5211
|
+
var result422 = null;
|
|
5212
|
+
result422 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5213
|
+
return throwException("Client Error", status, _responseText, _headers, result422);
|
|
5214
|
+
}));
|
|
5215
|
+
}
|
|
5216
|
+
else if (status === 401) {
|
|
5217
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5218
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5219
|
+
}));
|
|
5220
|
+
}
|
|
5221
|
+
else if (status === 403) {
|
|
5222
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5223
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5224
|
+
}));
|
|
5225
|
+
}
|
|
5226
|
+
else if (status === 500) {
|
|
5227
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5228
|
+
var result500 = null;
|
|
5229
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5230
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
5231
|
+
}));
|
|
5232
|
+
}
|
|
5233
|
+
else if (status !== 200 && status !== 204) {
|
|
5234
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5235
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5236
|
+
}));
|
|
5237
|
+
}
|
|
5238
|
+
return rxjs.of(null);
|
|
5239
|
+
};
|
|
5240
|
+
return DesignAtomsServiceApiClient;
|
|
5241
|
+
}(ApiClientBase));
|
|
5242
|
+
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" });
|
|
5243
|
+
DesignAtomsServiceApiClient.decorators = [
|
|
5244
|
+
{ type: i0.Injectable, args: [{
|
|
5245
|
+
providedIn: 'root'
|
|
5246
|
+
},] }
|
|
5247
|
+
];
|
|
5248
|
+
DesignAtomsServiceApiClient.ctorParameters = function () { return [
|
|
5249
|
+
{ type: ApiClientConfiguration, decorators: [{ type: i0.Inject, args: [ApiClientConfiguration,] }] },
|
|
5250
|
+
{ type: i1.HttpClient, decorators: [{ type: i0.Inject, args: [i1.HttpClient,] }] },
|
|
5251
|
+
{ type: String, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [API_BASE_URL,] }] }
|
|
5252
|
+
]; };
|
|
5253
|
+
var DesignAtomsViewerApiClient = /** @class */ (function (_super) {
|
|
5254
|
+
__extends(DesignAtomsViewerApiClient, _super);
|
|
5255
|
+
function DesignAtomsViewerApiClient(configuration, http, baseUrl) {
|
|
5256
|
+
var _this = _super.call(this, configuration) || this;
|
|
5257
|
+
_this.jsonParseReviver = undefined;
|
|
5258
|
+
_this.http = http;
|
|
5259
|
+
_this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : _this.getBaseUrl("");
|
|
5260
|
+
return _this;
|
|
5261
|
+
}
|
|
5262
|
+
/**
|
|
5263
|
+
* @param tenantId (optional) Tenant identifier
|
|
5264
|
+
* @param body (optional)
|
|
5265
|
+
* @return Success
|
|
5266
|
+
*/
|
|
5267
|
+
DesignAtomsViewerApiClient.prototype.cssFonts = function (tenantId, body) {
|
|
5268
|
+
var _this = this;
|
|
5269
|
+
var url_ = this.baseUrl + "/api/atoms/v1/ccviewer/cssfonts?";
|
|
5270
|
+
if (tenantId === null)
|
|
5271
|
+
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
5272
|
+
else if (tenantId !== undefined)
|
|
5273
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
5274
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5275
|
+
var content_ = JSON.stringify(body);
|
|
5276
|
+
var options_ = {
|
|
5277
|
+
body: content_,
|
|
5278
|
+
observe: "response",
|
|
5279
|
+
responseType: "blob",
|
|
5280
|
+
headers: new i1.HttpHeaders({
|
|
5281
|
+
"Content-Type": "application/json",
|
|
5282
|
+
"Accept": "application/json"
|
|
5283
|
+
})
|
|
5284
|
+
};
|
|
5285
|
+
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
5286
|
+
return _this.http.request("post", url_, transformedOptions_);
|
|
5287
|
+
})).pipe(operators.mergeMap(function (response_) {
|
|
5288
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processCssFonts(r); });
|
|
5289
|
+
})).pipe(operators.catchError(function (response_) {
|
|
5290
|
+
if (response_ instanceof i1.HttpResponseBase) {
|
|
5291
|
+
try {
|
|
5292
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processCssFonts(r); });
|
|
5293
|
+
}
|
|
5294
|
+
catch (e) {
|
|
5295
|
+
return rxjs.throwError(e);
|
|
5296
|
+
}
|
|
5297
|
+
}
|
|
5298
|
+
else
|
|
5299
|
+
return rxjs.throwError(response_);
|
|
5300
|
+
}));
|
|
5301
|
+
};
|
|
5302
|
+
DesignAtomsViewerApiClient.prototype.processCssFonts = function (response) {
|
|
5303
|
+
var e_52, _a;
|
|
5304
|
+
var _this = this;
|
|
5305
|
+
var status = response.status;
|
|
5306
|
+
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
5307
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
5308
|
+
var _headers = {};
|
|
5309
|
+
if (response.headers) {
|
|
5310
|
+
try {
|
|
5311
|
+
for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
5312
|
+
var key = _c.value;
|
|
5313
|
+
_headers[key] = response.headers.get(key);
|
|
5314
|
+
}
|
|
5315
|
+
}
|
|
5316
|
+
catch (e_52_1) { e_52 = { error: e_52_1 }; }
|
|
5317
|
+
finally {
|
|
5318
|
+
try {
|
|
5319
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5320
|
+
}
|
|
5321
|
+
finally { if (e_52) throw e_52.error; }
|
|
5322
|
+
}
|
|
5323
|
+
}
|
|
5324
|
+
if (status === 200) {
|
|
4946
5325
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4947
|
-
|
|
5326
|
+
var result200 = null;
|
|
5327
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5328
|
+
return rxjs.of(result200);
|
|
4948
5329
|
}));
|
|
4949
5330
|
}
|
|
4950
5331
|
else if (status === 500) {
|
|
@@ -4962,23 +5343,15 @@
|
|
|
4962
5343
|
return rxjs.of(null);
|
|
4963
5344
|
};
|
|
4964
5345
|
/**
|
|
4965
|
-
* Loads product (design model) from resource file taken from storage
|
|
4966
|
-
* @param id Resource identifier
|
|
4967
|
-
* @param privateStorage (optional) If set to 'true' resource will be taken from private storage
|
|
4968
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
4969
5346
|
* @param tenantId (optional) Tenant identifier
|
|
4970
5347
|
* @return Success
|
|
4971
5348
|
*/
|
|
4972
|
-
|
|
5349
|
+
DesignAtomsViewerApiClient.prototype.fonts = function (psName, tenantId) {
|
|
4973
5350
|
var _this = this;
|
|
4974
|
-
var url_ = this.baseUrl + "/api/atoms/v1/
|
|
4975
|
-
if (
|
|
4976
|
-
throw new Error("The parameter '
|
|
4977
|
-
url_ = url_.replace("{
|
|
4978
|
-
if (privateStorage !== undefined && privateStorage !== null)
|
|
4979
|
-
url_ += "privateStorage=" + encodeURIComponent("" + privateStorage) + "&";
|
|
4980
|
-
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
4981
|
-
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
5351
|
+
var url_ = this.baseUrl + "/api/atoms/v1/ccviewer/fonts/{psName}?";
|
|
5352
|
+
if (psName === undefined || psName === null)
|
|
5353
|
+
throw new Error("The parameter 'psName' must be defined.");
|
|
5354
|
+
url_ = url_.replace("{psName}", encodeURIComponent("" + psName));
|
|
4982
5355
|
if (tenantId === null)
|
|
4983
5356
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
4984
5357
|
else if (tenantId !== undefined)
|
|
@@ -4988,17 +5361,17 @@
|
|
|
4988
5361
|
observe: "response",
|
|
4989
5362
|
responseType: "blob",
|
|
4990
5363
|
headers: new i1.HttpHeaders({
|
|
4991
|
-
"Accept": "application/
|
|
5364
|
+
"Accept": "application/octet-stream"
|
|
4992
5365
|
})
|
|
4993
5366
|
};
|
|
4994
5367
|
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
4995
5368
|
return _this.http.request("get", url_, transformedOptions_);
|
|
4996
5369
|
})).pipe(operators.mergeMap(function (response_) {
|
|
4997
|
-
return _this.transformResult(url_, response_, function (r) { return _this.
|
|
5370
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processFonts(r); });
|
|
4998
5371
|
})).pipe(operators.catchError(function (response_) {
|
|
4999
5372
|
if (response_ instanceof i1.HttpResponseBase) {
|
|
5000
5373
|
try {
|
|
5001
|
-
return _this.transformResult(url_, response_, function (r) { return _this.
|
|
5374
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processFonts(r); });
|
|
5002
5375
|
}
|
|
5003
5376
|
catch (e) {
|
|
5004
5377
|
return rxjs.throwError(e);
|
|
@@ -5008,8 +5381,8 @@
|
|
|
5008
5381
|
return rxjs.throwError(response_);
|
|
5009
5382
|
}));
|
|
5010
5383
|
};
|
|
5011
|
-
|
|
5012
|
-
var
|
|
5384
|
+
DesignAtomsViewerApiClient.prototype.processFonts = function (response) {
|
|
5385
|
+
var e_53, _a;
|
|
5013
5386
|
var _this = this;
|
|
5014
5387
|
var status = response.status;
|
|
5015
5388
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -5022,20 +5395,19 @@
|
|
|
5022
5395
|
_headers[key] = response.headers.get(key);
|
|
5023
5396
|
}
|
|
5024
5397
|
}
|
|
5025
|
-
catch (
|
|
5398
|
+
catch (e_53_1) { e_53 = { error: e_53_1 }; }
|
|
5026
5399
|
finally {
|
|
5027
5400
|
try {
|
|
5028
5401
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5029
5402
|
}
|
|
5030
|
-
finally { if (
|
|
5403
|
+
finally { if (e_53) throw e_53.error; }
|
|
5031
5404
|
}
|
|
5032
5405
|
}
|
|
5033
|
-
if (status === 200) {
|
|
5034
|
-
|
|
5035
|
-
|
|
5036
|
-
|
|
5037
|
-
|
|
5038
|
-
}));
|
|
5406
|
+
if (status === 200 || status === 206) {
|
|
5407
|
+
var contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
|
|
5408
|
+
var fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
|
|
5409
|
+
var fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
|
|
5410
|
+
return rxjs.of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
|
|
5039
5411
|
}
|
|
5040
5412
|
else if (status === 404) {
|
|
5041
5413
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
@@ -5044,23 +5416,6 @@
|
|
|
5044
5416
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
5045
5417
|
}));
|
|
5046
5418
|
}
|
|
5047
|
-
else if (status === 422) {
|
|
5048
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5049
|
-
var result422 = null;
|
|
5050
|
-
result422 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5051
|
-
return throwException("Client Error", status, _responseText, _headers, result422);
|
|
5052
|
-
}));
|
|
5053
|
-
}
|
|
5054
|
-
else if (status === 401) {
|
|
5055
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5056
|
-
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5057
|
-
}));
|
|
5058
|
-
}
|
|
5059
|
-
else if (status === 403) {
|
|
5060
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5061
|
-
return throwException("Forbidden", status, _responseText, _headers);
|
|
5062
|
-
}));
|
|
5063
|
-
}
|
|
5064
5419
|
else if (status === 500) {
|
|
5065
5420
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5066
5421
|
var result500 = null;
|
|
@@ -5075,36 +5430,14 @@
|
|
|
5075
5430
|
}
|
|
5076
5431
|
return rxjs.of(null);
|
|
5077
5432
|
};
|
|
5078
|
-
return DesignAtomsServiceApiClient;
|
|
5079
|
-
}(ApiClientBase));
|
|
5080
|
-
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" });
|
|
5081
|
-
DesignAtomsServiceApiClient.decorators = [
|
|
5082
|
-
{ type: i0.Injectable, args: [{
|
|
5083
|
-
providedIn: 'root'
|
|
5084
|
-
},] }
|
|
5085
|
-
];
|
|
5086
|
-
DesignAtomsServiceApiClient.ctorParameters = function () { return [
|
|
5087
|
-
{ type: ApiClientConfiguration, decorators: [{ type: i0.Inject, args: [ApiClientConfiguration,] }] },
|
|
5088
|
-
{ type: i1.HttpClient, decorators: [{ type: i0.Inject, args: [i1.HttpClient,] }] },
|
|
5089
|
-
{ type: String, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [API_BASE_URL,] }] }
|
|
5090
|
-
]; };
|
|
5091
|
-
var DesignAtomsViewerApiClient = /** @class */ (function (_super) {
|
|
5092
|
-
__extends(DesignAtomsViewerApiClient, _super);
|
|
5093
|
-
function DesignAtomsViewerApiClient(configuration, http, baseUrl) {
|
|
5094
|
-
var _this = _super.call(this, configuration) || this;
|
|
5095
|
-
_this.jsonParseReviver = undefined;
|
|
5096
|
-
_this.http = http;
|
|
5097
|
-
_this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : _this.getBaseUrl("");
|
|
5098
|
-
return _this;
|
|
5099
|
-
}
|
|
5100
5433
|
/**
|
|
5101
5434
|
* @param tenantId (optional) Tenant identifier
|
|
5102
5435
|
* @param body (optional)
|
|
5103
5436
|
* @return Success
|
|
5104
5437
|
*/
|
|
5105
|
-
DesignAtomsViewerApiClient.prototype.
|
|
5438
|
+
DesignAtomsViewerApiClient.prototype.getColorPreview = function (tenantId, body) {
|
|
5106
5439
|
var _this = this;
|
|
5107
|
-
var url_ = this.baseUrl + "/api/atoms/v1/ccviewer/
|
|
5440
|
+
var url_ = this.baseUrl + "/api/atoms/v1/ccviewer/GetColorPreview?";
|
|
5108
5441
|
if (tenantId === null)
|
|
5109
5442
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
5110
5443
|
else if (tenantId !== undefined)
|
|
@@ -5123,11 +5456,11 @@
|
|
|
5123
5456
|
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
5124
5457
|
return _this.http.request("post", url_, transformedOptions_);
|
|
5125
5458
|
})).pipe(operators.mergeMap(function (response_) {
|
|
5126
|
-
return _this.transformResult(url_, response_, function (r) { return _this.
|
|
5459
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processGetColorPreview(r); });
|
|
5127
5460
|
})).pipe(operators.catchError(function (response_) {
|
|
5128
5461
|
if (response_ instanceof i1.HttpResponseBase) {
|
|
5129
5462
|
try {
|
|
5130
|
-
return _this.transformResult(url_, response_, function (r) { return _this.
|
|
5463
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processGetColorPreview(r); });
|
|
5131
5464
|
}
|
|
5132
5465
|
catch (e) {
|
|
5133
5466
|
return rxjs.throwError(e);
|
|
@@ -5137,8 +5470,8 @@
|
|
|
5137
5470
|
return rxjs.throwError(response_);
|
|
5138
5471
|
}));
|
|
5139
5472
|
};
|
|
5140
|
-
DesignAtomsViewerApiClient.prototype.
|
|
5141
|
-
var
|
|
5473
|
+
DesignAtomsViewerApiClient.prototype.processGetColorPreview = function (response) {
|
|
5474
|
+
var e_54, _a;
|
|
5142
5475
|
var _this = this;
|
|
5143
5476
|
var status = response.status;
|
|
5144
5477
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -5151,12 +5484,12 @@
|
|
|
5151
5484
|
_headers[key] = response.headers.get(key);
|
|
5152
5485
|
}
|
|
5153
5486
|
}
|
|
5154
|
-
catch (
|
|
5487
|
+
catch (e_54_1) { e_54 = { error: e_54_1 }; }
|
|
5155
5488
|
finally {
|
|
5156
5489
|
try {
|
|
5157
5490
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5158
5491
|
}
|
|
5159
|
-
finally { if (
|
|
5492
|
+
finally { if (e_54) throw e_54.error; }
|
|
5160
5493
|
}
|
|
5161
5494
|
}
|
|
5162
5495
|
if (status === 200) {
|
|
@@ -5182,34 +5515,35 @@
|
|
|
5182
5515
|
};
|
|
5183
5516
|
/**
|
|
5184
5517
|
* @param tenantId (optional) Tenant identifier
|
|
5518
|
+
* @param body (optional)
|
|
5185
5519
|
* @return Success
|
|
5186
5520
|
*/
|
|
5187
|
-
DesignAtomsViewerApiClient.prototype.
|
|
5521
|
+
DesignAtomsViewerApiClient.prototype.getColorPreviews = function (tenantId, body) {
|
|
5188
5522
|
var _this = this;
|
|
5189
|
-
var url_ = this.baseUrl + "/api/atoms/v1/ccviewer/
|
|
5190
|
-
if (psName === undefined || psName === null)
|
|
5191
|
-
throw new Error("The parameter 'psName' must be defined.");
|
|
5192
|
-
url_ = url_.replace("{psName}", encodeURIComponent("" + psName));
|
|
5523
|
+
var url_ = this.baseUrl + "/api/atoms/v1/ccviewer/GetColorPreviews?";
|
|
5193
5524
|
if (tenantId === null)
|
|
5194
5525
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
5195
5526
|
else if (tenantId !== undefined)
|
|
5196
5527
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
5197
5528
|
url_ = url_.replace(/[?&]$/, "");
|
|
5529
|
+
var content_ = JSON.stringify(body);
|
|
5198
5530
|
var options_ = {
|
|
5531
|
+
body: content_,
|
|
5199
5532
|
observe: "response",
|
|
5200
5533
|
responseType: "blob",
|
|
5201
5534
|
headers: new i1.HttpHeaders({
|
|
5202
|
-
"
|
|
5535
|
+
"Content-Type": "application/json",
|
|
5536
|
+
"Accept": "application/json"
|
|
5203
5537
|
})
|
|
5204
5538
|
};
|
|
5205
5539
|
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
5206
|
-
return _this.http.request("
|
|
5540
|
+
return _this.http.request("post", url_, transformedOptions_);
|
|
5207
5541
|
})).pipe(operators.mergeMap(function (response_) {
|
|
5208
|
-
return _this.transformResult(url_, response_, function (r) { return _this.
|
|
5542
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processGetColorPreviews(r); });
|
|
5209
5543
|
})).pipe(operators.catchError(function (response_) {
|
|
5210
5544
|
if (response_ instanceof i1.HttpResponseBase) {
|
|
5211
5545
|
try {
|
|
5212
|
-
return _this.transformResult(url_, response_, function (r) { return _this.
|
|
5546
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processGetColorPreviews(r); });
|
|
5213
5547
|
}
|
|
5214
5548
|
catch (e) {
|
|
5215
5549
|
return rxjs.throwError(e);
|
|
@@ -5219,8 +5553,8 @@
|
|
|
5219
5553
|
return rxjs.throwError(response_);
|
|
5220
5554
|
}));
|
|
5221
5555
|
};
|
|
5222
|
-
DesignAtomsViewerApiClient.prototype.
|
|
5223
|
-
var
|
|
5556
|
+
DesignAtomsViewerApiClient.prototype.processGetColorPreviews = function (response) {
|
|
5557
|
+
var e_55, _a;
|
|
5224
5558
|
var _this = this;
|
|
5225
5559
|
var status = response.status;
|
|
5226
5560
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -5233,25 +5567,19 @@
|
|
|
5233
5567
|
_headers[key] = response.headers.get(key);
|
|
5234
5568
|
}
|
|
5235
5569
|
}
|
|
5236
|
-
catch (
|
|
5570
|
+
catch (e_55_1) { e_55 = { error: e_55_1 }; }
|
|
5237
5571
|
finally {
|
|
5238
5572
|
try {
|
|
5239
5573
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5240
5574
|
}
|
|
5241
|
-
finally { if (
|
|
5575
|
+
finally { if (e_55) throw e_55.error; }
|
|
5242
5576
|
}
|
|
5243
5577
|
}
|
|
5244
|
-
if (status === 200
|
|
5245
|
-
var contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
|
|
5246
|
-
var fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
|
|
5247
|
-
var fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
|
|
5248
|
-
return rxjs.of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
|
|
5249
|
-
}
|
|
5250
|
-
else if (status === 404) {
|
|
5578
|
+
if (status === 200) {
|
|
5251
5579
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5252
|
-
var
|
|
5253
|
-
|
|
5254
|
-
return
|
|
5580
|
+
var result200 = null;
|
|
5581
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5582
|
+
return rxjs.of(result200);
|
|
5255
5583
|
}));
|
|
5256
5584
|
}
|
|
5257
5585
|
else if (status === 500) {
|
|
@@ -5308,7 +5636,7 @@
|
|
|
5308
5636
|
}));
|
|
5309
5637
|
};
|
|
5310
5638
|
DesignAtomsViewerApiClient.prototype.processGetCssFont = function (response) {
|
|
5311
|
-
var
|
|
5639
|
+
var e_56, _a;
|
|
5312
5640
|
var _this = this;
|
|
5313
5641
|
var status = response.status;
|
|
5314
5642
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -5321,12 +5649,12 @@
|
|
|
5321
5649
|
_headers[key] = response.headers.get(key);
|
|
5322
5650
|
}
|
|
5323
5651
|
}
|
|
5324
|
-
catch (
|
|
5652
|
+
catch (e_56_1) { e_56 = { error: e_56_1 }; }
|
|
5325
5653
|
finally {
|
|
5326
5654
|
try {
|
|
5327
5655
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5328
5656
|
}
|
|
5329
|
-
finally { if (
|
|
5657
|
+
finally { if (e_56) throw e_56.error; }
|
|
5330
5658
|
}
|
|
5331
5659
|
}
|
|
5332
5660
|
if (status === 200 || status === 206) {
|
|
@@ -5393,7 +5721,7 @@
|
|
|
5393
5721
|
}));
|
|
5394
5722
|
};
|
|
5395
5723
|
DesignAtomsViewerApiClient.prototype.processGetFallbackFonts = function (response) {
|
|
5396
|
-
var
|
|
5724
|
+
var e_57, _a;
|
|
5397
5725
|
var _this = this;
|
|
5398
5726
|
var status = response.status;
|
|
5399
5727
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -5406,12 +5734,12 @@
|
|
|
5406
5734
|
_headers[key] = response.headers.get(key);
|
|
5407
5735
|
}
|
|
5408
5736
|
}
|
|
5409
|
-
catch (
|
|
5737
|
+
catch (e_57_1) { e_57 = { error: e_57_1 }; }
|
|
5410
5738
|
finally {
|
|
5411
5739
|
try {
|
|
5412
5740
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5413
5741
|
}
|
|
5414
|
-
finally { if (
|
|
5742
|
+
finally { if (e_57) throw e_57.error; }
|
|
5415
5743
|
}
|
|
5416
5744
|
}
|
|
5417
5745
|
if (status === 200 || status === 206) {
|
|
@@ -5475,7 +5803,7 @@
|
|
|
5475
5803
|
}));
|
|
5476
5804
|
};
|
|
5477
5805
|
DesignAtomsViewerApiClient.prototype.processGetImageSize = function (response) {
|
|
5478
|
-
var
|
|
5806
|
+
var e_58, _a;
|
|
5479
5807
|
var _this = this;
|
|
5480
5808
|
var status = response.status;
|
|
5481
5809
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -5488,12 +5816,12 @@
|
|
|
5488
5816
|
_headers[key] = response.headers.get(key);
|
|
5489
5817
|
}
|
|
5490
5818
|
}
|
|
5491
|
-
catch (
|
|
5819
|
+
catch (e_58_1) { e_58 = { error: e_58_1 }; }
|
|
5492
5820
|
finally {
|
|
5493
5821
|
try {
|
|
5494
5822
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5495
5823
|
}
|
|
5496
|
-
finally { if (
|
|
5824
|
+
finally { if (e_58) throw e_58.error; }
|
|
5497
5825
|
}
|
|
5498
5826
|
}
|
|
5499
5827
|
if (status === 200) {
|
|
@@ -5558,7 +5886,7 @@
|
|
|
5558
5886
|
}));
|
|
5559
5887
|
};
|
|
5560
5888
|
DesignAtomsViewerApiClient.prototype.processGetShapeBounds = function (response) {
|
|
5561
|
-
var
|
|
5889
|
+
var e_59, _a;
|
|
5562
5890
|
var _this = this;
|
|
5563
5891
|
var status = response.status;
|
|
5564
5892
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -5571,12 +5899,12 @@
|
|
|
5571
5899
|
_headers[key] = response.headers.get(key);
|
|
5572
5900
|
}
|
|
5573
5901
|
}
|
|
5574
|
-
catch (
|
|
5902
|
+
catch (e_59_1) { e_59 = { error: e_59_1 }; }
|
|
5575
5903
|
finally {
|
|
5576
5904
|
try {
|
|
5577
5905
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5578
5906
|
}
|
|
5579
|
-
finally { if (
|
|
5907
|
+
finally { if (e_59) throw e_59.error; }
|
|
5580
5908
|
}
|
|
5581
5909
|
}
|
|
5582
5910
|
if (status === 200) {
|
|
@@ -5641,7 +5969,7 @@
|
|
|
5641
5969
|
}));
|
|
5642
5970
|
};
|
|
5643
5971
|
DesignAtomsViewerApiClient.prototype.processGetWatermarkItems = function (response) {
|
|
5644
|
-
var
|
|
5972
|
+
var e_60, _a;
|
|
5645
5973
|
var _this = this;
|
|
5646
5974
|
var status = response.status;
|
|
5647
5975
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -5654,12 +5982,12 @@
|
|
|
5654
5982
|
_headers[key] = response.headers.get(key);
|
|
5655
5983
|
}
|
|
5656
5984
|
}
|
|
5657
|
-
catch (
|
|
5985
|
+
catch (e_60_1) { e_60 = { error: e_60_1 }; }
|
|
5658
5986
|
finally {
|
|
5659
5987
|
try {
|
|
5660
5988
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5661
5989
|
}
|
|
5662
|
-
finally { if (
|
|
5990
|
+
finally { if (e_60) throw e_60.error; }
|
|
5663
5991
|
}
|
|
5664
5992
|
}
|
|
5665
5993
|
if (status === 200) {
|
|
@@ -5768,7 +6096,7 @@
|
|
|
5768
6096
|
}));
|
|
5769
6097
|
};
|
|
5770
6098
|
DesignAtomsViewerApiClient.prototype.processImg = function (response) {
|
|
5771
|
-
var
|
|
6099
|
+
var e_61, _a;
|
|
5772
6100
|
var _this = this;
|
|
5773
6101
|
var status = response.status;
|
|
5774
6102
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -5781,12 +6109,12 @@
|
|
|
5781
6109
|
_headers[key] = response.headers.get(key);
|
|
5782
6110
|
}
|
|
5783
6111
|
}
|
|
5784
|
-
catch (
|
|
6112
|
+
catch (e_61_1) { e_61 = { error: e_61_1 }; }
|
|
5785
6113
|
finally {
|
|
5786
6114
|
try {
|
|
5787
6115
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5788
6116
|
}
|
|
5789
|
-
finally { if (
|
|
6117
|
+
finally { if (e_61) throw e_61.error; }
|
|
5790
6118
|
}
|
|
5791
6119
|
}
|
|
5792
6120
|
if (status === 200 || status === 206) {
|
|
@@ -5858,7 +6186,7 @@
|
|
|
5858
6186
|
}));
|
|
5859
6187
|
};
|
|
5860
6188
|
DesignAtomsViewerApiClient.prototype.processGetLicense = function (response) {
|
|
5861
|
-
var
|
|
6189
|
+
var e_62, _a;
|
|
5862
6190
|
var _this = this;
|
|
5863
6191
|
var status = response.status;
|
|
5864
6192
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -5871,12 +6199,12 @@
|
|
|
5871
6199
|
_headers[key] = response.headers.get(key);
|
|
5872
6200
|
}
|
|
5873
6201
|
}
|
|
5874
|
-
catch (
|
|
6202
|
+
catch (e_62_1) { e_62 = { error: e_62_1 }; }
|
|
5875
6203
|
finally {
|
|
5876
6204
|
try {
|
|
5877
6205
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5878
6206
|
}
|
|
5879
|
-
finally { if (
|
|
6207
|
+
finally { if (e_62) throw e_62.error; }
|
|
5880
6208
|
}
|
|
5881
6209
|
}
|
|
5882
6210
|
if (status === 200) {
|
|
@@ -5940,7 +6268,7 @@
|
|
|
5940
6268
|
}));
|
|
5941
6269
|
};
|
|
5942
6270
|
DesignAtomsViewerApiClient.prototype.processPth = function (response) {
|
|
5943
|
-
var
|
|
6271
|
+
var e_63, _a;
|
|
5944
6272
|
var _this = this;
|
|
5945
6273
|
var status = response.status;
|
|
5946
6274
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -5953,12 +6281,12 @@
|
|
|
5953
6281
|
_headers[key] = response.headers.get(key);
|
|
5954
6282
|
}
|
|
5955
6283
|
}
|
|
5956
|
-
catch (
|
|
6284
|
+
catch (e_63_1) { e_63 = { error: e_63_1 }; }
|
|
5957
6285
|
finally {
|
|
5958
6286
|
try {
|
|
5959
6287
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5960
6288
|
}
|
|
5961
|
-
finally { if (
|
|
6289
|
+
finally { if (e_63) throw e_63.error; }
|
|
5962
6290
|
}
|
|
5963
6291
|
}
|
|
5964
6292
|
if (status === 200 || status === 206) {
|
|
@@ -6033,7 +6361,7 @@
|
|
|
6033
6361
|
}));
|
|
6034
6362
|
};
|
|
6035
6363
|
DesignAtomsViewerApiClient.prototype.processResource = function (response) {
|
|
6036
|
-
var
|
|
6364
|
+
var e_64, _a;
|
|
6037
6365
|
var _this = this;
|
|
6038
6366
|
var status = response.status;
|
|
6039
6367
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -6046,12 +6374,12 @@
|
|
|
6046
6374
|
_headers[key] = response.headers.get(key);
|
|
6047
6375
|
}
|
|
6048
6376
|
}
|
|
6049
|
-
catch (
|
|
6377
|
+
catch (e_64_1) { e_64 = { error: e_64_1 }; }
|
|
6050
6378
|
finally {
|
|
6051
6379
|
try {
|
|
6052
6380
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
6053
6381
|
}
|
|
6054
|
-
finally { if (
|
|
6382
|
+
finally { if (e_64) throw e_64.error; }
|
|
6055
6383
|
}
|
|
6056
6384
|
}
|
|
6057
6385
|
if (status === 200 || status === 206) {
|
|
@@ -6121,7 +6449,7 @@
|
|
|
6121
6449
|
}));
|
|
6122
6450
|
};
|
|
6123
6451
|
DesignAtomsViewerApiClient.prototype.processSvg = function (response) {
|
|
6124
|
-
var
|
|
6452
|
+
var e_65, _a;
|
|
6125
6453
|
var _this = this;
|
|
6126
6454
|
var status = response.status;
|
|
6127
6455
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -6134,12 +6462,12 @@
|
|
|
6134
6462
|
_headers[key] = response.headers.get(key);
|
|
6135
6463
|
}
|
|
6136
6464
|
}
|
|
6137
|
-
catch (
|
|
6465
|
+
catch (e_65_1) { e_65 = { error: e_65_1 }; }
|
|
6138
6466
|
finally {
|
|
6139
6467
|
try {
|
|
6140
6468
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
6141
6469
|
}
|
|
6142
|
-
finally { if (
|
|
6470
|
+
finally { if (e_65) throw e_65.error; }
|
|
6143
6471
|
}
|
|
6144
6472
|
}
|
|
6145
6473
|
if (status === 200 || status === 206) {
|
|
@@ -6214,7 +6542,7 @@
|
|
|
6214
6542
|
}));
|
|
6215
6543
|
};
|
|
6216
6544
|
DesignAtomsViewerApiClient.prototype.processTxt = function (response) {
|
|
6217
|
-
var
|
|
6545
|
+
var e_66, _a;
|
|
6218
6546
|
var _this = this;
|
|
6219
6547
|
var status = response.status;
|
|
6220
6548
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -6227,12 +6555,12 @@
|
|
|
6227
6555
|
_headers[key] = response.headers.get(key);
|
|
6228
6556
|
}
|
|
6229
6557
|
}
|
|
6230
|
-
catch (
|
|
6558
|
+
catch (e_66_1) { e_66 = { error: e_66_1 }; }
|
|
6231
6559
|
finally {
|
|
6232
6560
|
try {
|
|
6233
6561
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
6234
6562
|
}
|
|
6235
|
-
finally { if (
|
|
6563
|
+
finally { if (e_66) throw e_66.error; }
|
|
6236
6564
|
}
|
|
6237
6565
|
}
|
|
6238
6566
|
if (status === 200 || status === 206) {
|
|
@@ -6308,7 +6636,7 @@
|
|
|
6308
6636
|
}));
|
|
6309
6637
|
};
|
|
6310
6638
|
DesignAtomsViewerApiClient.prototype.processUpdateArchedTextItemHandler = function (response) {
|
|
6311
|
-
var
|
|
6639
|
+
var e_67, _a;
|
|
6312
6640
|
var _this = this;
|
|
6313
6641
|
var status = response.status;
|
|
6314
6642
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -6321,12 +6649,12 @@
|
|
|
6321
6649
|
_headers[key] = response.headers.get(key);
|
|
6322
6650
|
}
|
|
6323
6651
|
}
|
|
6324
|
-
catch (
|
|
6652
|
+
catch (e_67_1) { e_67 = { error: e_67_1 }; }
|
|
6325
6653
|
finally {
|
|
6326
6654
|
try {
|
|
6327
6655
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
6328
6656
|
}
|
|
6329
|
-
finally { if (
|
|
6657
|
+
finally { if (e_67) throw e_67.error; }
|
|
6330
6658
|
}
|
|
6331
6659
|
}
|
|
6332
6660
|
if (status === 200) {
|
|
@@ -6391,7 +6719,7 @@
|
|
|
6391
6719
|
}));
|
|
6392
6720
|
};
|
|
6393
6721
|
DesignAtomsViewerApiClient.prototype.processUpdateAutoScaledTextItemHandler = function (response) {
|
|
6394
|
-
var
|
|
6722
|
+
var e_68, _a;
|
|
6395
6723
|
var _this = this;
|
|
6396
6724
|
var status = response.status;
|
|
6397
6725
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -6404,12 +6732,12 @@
|
|
|
6404
6732
|
_headers[key] = response.headers.get(key);
|
|
6405
6733
|
}
|
|
6406
6734
|
}
|
|
6407
|
-
catch (
|
|
6735
|
+
catch (e_68_1) { e_68 = { error: e_68_1 }; }
|
|
6408
6736
|
finally {
|
|
6409
6737
|
try {
|
|
6410
6738
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
6411
6739
|
}
|
|
6412
|
-
finally { if (
|
|
6740
|
+
finally { if (e_68) throw e_68.error; }
|
|
6413
6741
|
}
|
|
6414
6742
|
}
|
|
6415
6743
|
if (status === 200) {
|
|
@@ -6474,7 +6802,7 @@
|
|
|
6474
6802
|
}));
|
|
6475
6803
|
};
|
|
6476
6804
|
DesignAtomsViewerApiClient.prototype.processUpdateBarcodeItemHandler = function (response) {
|
|
6477
|
-
var
|
|
6805
|
+
var e_69, _a;
|
|
6478
6806
|
var _this = this;
|
|
6479
6807
|
var status = response.status;
|
|
6480
6808
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -6487,12 +6815,12 @@
|
|
|
6487
6815
|
_headers[key] = response.headers.get(key);
|
|
6488
6816
|
}
|
|
6489
6817
|
}
|
|
6490
|
-
catch (
|
|
6818
|
+
catch (e_69_1) { e_69 = { error: e_69_1 }; }
|
|
6491
6819
|
finally {
|
|
6492
6820
|
try {
|
|
6493
6821
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
6494
6822
|
}
|
|
6495
|
-
finally { if (
|
|
6823
|
+
finally { if (e_69) throw e_69.error; }
|
|
6496
6824
|
}
|
|
6497
6825
|
}
|
|
6498
6826
|
if (status === 200) {
|
|
@@ -6557,7 +6885,7 @@
|
|
|
6557
6885
|
}));
|
|
6558
6886
|
};
|
|
6559
6887
|
DesignAtomsViewerApiClient.prototype.processUpdateBoundedTextItemHandler = function (response) {
|
|
6560
|
-
var
|
|
6888
|
+
var e_70, _a;
|
|
6561
6889
|
var _this = this;
|
|
6562
6890
|
var status = response.status;
|
|
6563
6891
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -6570,12 +6898,12 @@
|
|
|
6570
6898
|
_headers[key] = response.headers.get(key);
|
|
6571
6899
|
}
|
|
6572
6900
|
}
|
|
6573
|
-
catch (
|
|
6901
|
+
catch (e_70_1) { e_70 = { error: e_70_1 }; }
|
|
6574
6902
|
finally {
|
|
6575
6903
|
try {
|
|
6576
6904
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
6577
6905
|
}
|
|
6578
|
-
finally { if (
|
|
6906
|
+
finally { if (e_70) throw e_70.error; }
|
|
6579
6907
|
}
|
|
6580
6908
|
}
|
|
6581
6909
|
if (status === 200) {
|
|
@@ -6640,7 +6968,7 @@
|
|
|
6640
6968
|
}));
|
|
6641
6969
|
};
|
|
6642
6970
|
DesignAtomsViewerApiClient.prototype.processUpdateByColorData = function (response) {
|
|
6643
|
-
var
|
|
6971
|
+
var e_71, _a;
|
|
6644
6972
|
var _this = this;
|
|
6645
6973
|
var status = response.status;
|
|
6646
6974
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -6653,12 +6981,12 @@
|
|
|
6653
6981
|
_headers[key] = response.headers.get(key);
|
|
6654
6982
|
}
|
|
6655
6983
|
}
|
|
6656
|
-
catch (
|
|
6984
|
+
catch (e_71_1) { e_71 = { error: e_71_1 }; }
|
|
6657
6985
|
finally {
|
|
6658
6986
|
try {
|
|
6659
6987
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
6660
6988
|
}
|
|
6661
|
-
finally { if (
|
|
6989
|
+
finally { if (e_71) throw e_71.error; }
|
|
6662
6990
|
}
|
|
6663
6991
|
}
|
|
6664
6992
|
if (status === 200) {
|
|
@@ -6723,7 +7051,7 @@
|
|
|
6723
7051
|
}));
|
|
6724
7052
|
};
|
|
6725
7053
|
DesignAtomsViewerApiClient.prototype.processUpdateByMultiCallRequest = function (response) {
|
|
6726
|
-
var
|
|
7054
|
+
var e_72, _a;
|
|
6727
7055
|
var _this = this;
|
|
6728
7056
|
var status = response.status;
|
|
6729
7057
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -6736,12 +7064,12 @@
|
|
|
6736
7064
|
_headers[key] = response.headers.get(key);
|
|
6737
7065
|
}
|
|
6738
7066
|
}
|
|
6739
|
-
catch (
|
|
7067
|
+
catch (e_72_1) { e_72 = { error: e_72_1 }; }
|
|
6740
7068
|
finally {
|
|
6741
7069
|
try {
|
|
6742
7070
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
6743
7071
|
}
|
|
6744
|
-
finally { if (
|
|
7072
|
+
finally { if (e_72) throw e_72.error; }
|
|
6745
7073
|
}
|
|
6746
7074
|
}
|
|
6747
7075
|
if (status === 200) {
|
|
@@ -6806,7 +7134,7 @@
|
|
|
6806
7134
|
}));
|
|
6807
7135
|
};
|
|
6808
7136
|
DesignAtomsViewerApiClient.prototype.processUpdateCurvedTextItemHandler = function (response) {
|
|
6809
|
-
var
|
|
7137
|
+
var e_73, _a;
|
|
6810
7138
|
var _this = this;
|
|
6811
7139
|
var status = response.status;
|
|
6812
7140
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -6819,12 +7147,12 @@
|
|
|
6819
7147
|
_headers[key] = response.headers.get(key);
|
|
6820
7148
|
}
|
|
6821
7149
|
}
|
|
6822
|
-
catch (
|
|
7150
|
+
catch (e_73_1) { e_73 = { error: e_73_1 }; }
|
|
6823
7151
|
finally {
|
|
6824
7152
|
try {
|
|
6825
7153
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
6826
7154
|
}
|
|
6827
|
-
finally { if (
|
|
7155
|
+
finally { if (e_73) throw e_73.error; }
|
|
6828
7156
|
}
|
|
6829
7157
|
}
|
|
6830
7158
|
if (status === 200) {
|
|
@@ -6889,7 +7217,7 @@
|
|
|
6889
7217
|
}));
|
|
6890
7218
|
};
|
|
6891
7219
|
DesignAtomsViewerApiClient.prototype.processUpdateImageItemHandler = function (response) {
|
|
6892
|
-
var
|
|
7220
|
+
var e_74, _a;
|
|
6893
7221
|
var _this = this;
|
|
6894
7222
|
var status = response.status;
|
|
6895
7223
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -6902,12 +7230,12 @@
|
|
|
6902
7230
|
_headers[key] = response.headers.get(key);
|
|
6903
7231
|
}
|
|
6904
7232
|
}
|
|
6905
|
-
catch (
|
|
7233
|
+
catch (e_74_1) { e_74 = { error: e_74_1 }; }
|
|
6906
7234
|
finally {
|
|
6907
7235
|
try {
|
|
6908
7236
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
6909
7237
|
}
|
|
6910
|
-
finally { if (
|
|
7238
|
+
finally { if (e_74) throw e_74.error; }
|
|
6911
7239
|
}
|
|
6912
7240
|
}
|
|
6913
7241
|
if (status === 200) {
|
|
@@ -6972,7 +7300,7 @@
|
|
|
6972
7300
|
}));
|
|
6973
7301
|
};
|
|
6974
7302
|
DesignAtomsViewerApiClient.prototype.processUpdatePathBoundedTextItemHandler = function (response) {
|
|
6975
|
-
var
|
|
7303
|
+
var e_75, _a;
|
|
6976
7304
|
var _this = this;
|
|
6977
7305
|
var status = response.status;
|
|
6978
7306
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -6985,12 +7313,12 @@
|
|
|
6985
7313
|
_headers[key] = response.headers.get(key);
|
|
6986
7314
|
}
|
|
6987
7315
|
}
|
|
6988
|
-
catch (
|
|
7316
|
+
catch (e_75_1) { e_75 = { error: e_75_1 }; }
|
|
6989
7317
|
finally {
|
|
6990
7318
|
try {
|
|
6991
7319
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
6992
7320
|
}
|
|
6993
|
-
finally { if (
|
|
7321
|
+
finally { if (e_75) throw e_75.error; }
|
|
6994
7322
|
}
|
|
6995
7323
|
}
|
|
6996
7324
|
if (status === 200) {
|
|
@@ -7055,7 +7383,7 @@
|
|
|
7055
7383
|
}));
|
|
7056
7384
|
};
|
|
7057
7385
|
DesignAtomsViewerApiClient.prototype.processUpdatePlainTextItemHandler = function (response) {
|
|
7058
|
-
var
|
|
7386
|
+
var e_76, _a;
|
|
7059
7387
|
var _this = this;
|
|
7060
7388
|
var status = response.status;
|
|
7061
7389
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -7068,12 +7396,12 @@
|
|
|
7068
7396
|
_headers[key] = response.headers.get(key);
|
|
7069
7397
|
}
|
|
7070
7398
|
}
|
|
7071
|
-
catch (
|
|
7399
|
+
catch (e_76_1) { e_76 = { error: e_76_1 }; }
|
|
7072
7400
|
finally {
|
|
7073
7401
|
try {
|
|
7074
7402
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
7075
7403
|
}
|
|
7076
|
-
finally { if (
|
|
7404
|
+
finally { if (e_76) throw e_76.error; }
|
|
7077
7405
|
}
|
|
7078
7406
|
}
|
|
7079
7407
|
if (status === 200) {
|
|
@@ -7138,7 +7466,7 @@
|
|
|
7138
7466
|
}));
|
|
7139
7467
|
};
|
|
7140
7468
|
DesignAtomsViewerApiClient.prototype.processUpdateShapeItemHandler = function (response) {
|
|
7141
|
-
var
|
|
7469
|
+
var e_77, _a;
|
|
7142
7470
|
var _this = this;
|
|
7143
7471
|
var status = response.status;
|
|
7144
7472
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -7151,12 +7479,12 @@
|
|
|
7151
7479
|
_headers[key] = response.headers.get(key);
|
|
7152
7480
|
}
|
|
7153
7481
|
}
|
|
7154
|
-
catch (
|
|
7482
|
+
catch (e_77_1) { e_77 = { error: e_77_1 }; }
|
|
7155
7483
|
finally {
|
|
7156
7484
|
try {
|
|
7157
7485
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
7158
7486
|
}
|
|
7159
|
-
finally { if (
|
|
7487
|
+
finally { if (e_77) throw e_77.error; }
|
|
7160
7488
|
}
|
|
7161
7489
|
}
|
|
7162
7490
|
if (status === 200) {
|
|
@@ -7193,6 +7521,13 @@
|
|
|
7193
7521
|
{ type: i1.HttpClient, decorators: [{ type: i0.Inject, args: [i1.HttpClient,] }] },
|
|
7194
7522
|
{ type: String, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [API_BASE_URL,] }] }
|
|
7195
7523
|
]; };
|
|
7524
|
+
(function (ColorSpace) {
|
|
7525
|
+
ColorSpace["Rgb"] = "Rgb";
|
|
7526
|
+
ColorSpace["Cmyk"] = "Cmyk";
|
|
7527
|
+
ColorSpace["Grayscale"] = "Grayscale";
|
|
7528
|
+
ColorSpace["Lab"] = "Lab";
|
|
7529
|
+
ColorSpace["Spot"] = "Spot";
|
|
7530
|
+
})(exports.ColorSpace || (exports.ColorSpace = {}));
|
|
7196
7531
|
(function (ImagePreviewFormat) {
|
|
7197
7532
|
ImagePreviewFormat["Jpeg"] = "Jpeg";
|
|
7198
7533
|
ImagePreviewFormat["Png"] = "Png";
|