@aurigma/ng-design-atoms-api-client 2.13.1 → 2.16.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 +352 -245
- 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/aurigma-ng-design-atoms-api-client.js +1 -1
- package/esm2015/lib/design-atoms-api-client.js +224 -128
- package/esm2015/lib/design-atoms-api.module.js +1 -1
- package/esm2015/public-api.js +1 -1
- package/fesm2015/aurigma-ng-design-atoms-api-client.js +223 -127
- package/fesm2015/aurigma-ng-design-atoms-api-client.js.map +1 -1
- package/lib/design-atoms-api-client.d.ts +59 -33
- package/package.json +1 -1
|
@@ -527,80 +527,6 @@
|
|
|
527
527
|
_this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : _this.getBaseUrl("");
|
|
528
528
|
return _this;
|
|
529
529
|
}
|
|
530
|
-
/**
|
|
531
|
-
* @param body (optional)
|
|
532
|
-
* @return Success
|
|
533
|
-
*/
|
|
534
|
-
DesignAtomsCompatibilityApiClient.prototype.updateArchedTextItemHandler = function (tenantId, body) {
|
|
535
|
-
var _this = this;
|
|
536
|
-
var url_ = this.baseUrl + "/api/atoms/v1/tenants/{tenantId}/api/ccviewer/api/ccviewer/UpdateArchedTextItemHandler";
|
|
537
|
-
if (tenantId === undefined || tenantId === null)
|
|
538
|
-
throw new Error("The parameter 'tenantId' must be defined.");
|
|
539
|
-
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
540
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
541
|
-
var content_ = JSON.stringify(body);
|
|
542
|
-
var options_ = {
|
|
543
|
-
body: content_,
|
|
544
|
-
observe: "response",
|
|
545
|
-
responseType: "blob",
|
|
546
|
-
headers: new i1.HttpHeaders({
|
|
547
|
-
"Content-Type": "application/json",
|
|
548
|
-
"Accept": "application/json"
|
|
549
|
-
})
|
|
550
|
-
};
|
|
551
|
-
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
552
|
-
return _this.http.request("post", url_, transformedOptions_);
|
|
553
|
-
})).pipe(operators.mergeMap(function (response_) {
|
|
554
|
-
return _this.transformResult(url_, response_, function (r) { return _this.processUpdateArchedTextItemHandler(r); });
|
|
555
|
-
})).pipe(operators.catchError(function (response_) {
|
|
556
|
-
if (response_ instanceof i1.HttpResponseBase) {
|
|
557
|
-
try {
|
|
558
|
-
return _this.transformResult(url_, response_, function (r) { return _this.processUpdateArchedTextItemHandler(r); });
|
|
559
|
-
}
|
|
560
|
-
catch (e) {
|
|
561
|
-
return rxjs.throwError(e);
|
|
562
|
-
}
|
|
563
|
-
}
|
|
564
|
-
else
|
|
565
|
-
return rxjs.throwError(response_);
|
|
566
|
-
}));
|
|
567
|
-
};
|
|
568
|
-
DesignAtomsCompatibilityApiClient.prototype.processUpdateArchedTextItemHandler = function (response) {
|
|
569
|
-
var e_3, _a;
|
|
570
|
-
var _this = this;
|
|
571
|
-
var status = response.status;
|
|
572
|
-
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
573
|
-
response.error instanceof Blob ? response.error : undefined;
|
|
574
|
-
var _headers = {};
|
|
575
|
-
if (response.headers) {
|
|
576
|
-
try {
|
|
577
|
-
for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
578
|
-
var key = _c.value;
|
|
579
|
-
_headers[key] = response.headers.get(key);
|
|
580
|
-
}
|
|
581
|
-
}
|
|
582
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
583
|
-
finally {
|
|
584
|
-
try {
|
|
585
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
586
|
-
}
|
|
587
|
-
finally { if (e_3) throw e_3.error; }
|
|
588
|
-
}
|
|
589
|
-
}
|
|
590
|
-
if (status === 200) {
|
|
591
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
592
|
-
var result200 = null;
|
|
593
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
594
|
-
return rxjs.of(result200);
|
|
595
|
-
}));
|
|
596
|
-
}
|
|
597
|
-
else if (status !== 200 && status !== 204) {
|
|
598
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
599
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
600
|
-
}));
|
|
601
|
-
}
|
|
602
|
-
return rxjs.of(null);
|
|
603
|
-
};
|
|
604
530
|
/**
|
|
605
531
|
* @param body (optional)
|
|
606
532
|
* @return Success
|
|
@@ -640,7 +566,7 @@
|
|
|
640
566
|
}));
|
|
641
567
|
};
|
|
642
568
|
DesignAtomsCompatibilityApiClient.prototype.processCssFonts = function (response) {
|
|
643
|
-
var
|
|
569
|
+
var e_3, _a;
|
|
644
570
|
var _this = this;
|
|
645
571
|
var status = response.status;
|
|
646
572
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -653,12 +579,12 @@
|
|
|
653
579
|
_headers[key] = response.headers.get(key);
|
|
654
580
|
}
|
|
655
581
|
}
|
|
656
|
-
catch (
|
|
582
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
657
583
|
finally {
|
|
658
584
|
try {
|
|
659
585
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
660
586
|
}
|
|
661
|
-
finally { if (
|
|
587
|
+
finally { if (e_3) throw e_3.error; }
|
|
662
588
|
}
|
|
663
589
|
}
|
|
664
590
|
if (status === 200) {
|
|
@@ -713,7 +639,7 @@
|
|
|
713
639
|
}));
|
|
714
640
|
};
|
|
715
641
|
DesignAtomsCompatibilityApiClient.prototype.processFonts = function (response) {
|
|
716
|
-
var
|
|
642
|
+
var e_4, _a;
|
|
717
643
|
var _this = this;
|
|
718
644
|
var status = response.status;
|
|
719
645
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -726,12 +652,12 @@
|
|
|
726
652
|
_headers[key] = response.headers.get(key);
|
|
727
653
|
}
|
|
728
654
|
}
|
|
729
|
-
catch (
|
|
655
|
+
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
730
656
|
finally {
|
|
731
657
|
try {
|
|
732
658
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
733
659
|
}
|
|
734
|
-
finally { if (
|
|
660
|
+
finally { if (e_4) throw e_4.error; }
|
|
735
661
|
}
|
|
736
662
|
}
|
|
737
663
|
if (status === 200 || status === 206) {
|
|
@@ -792,7 +718,7 @@
|
|
|
792
718
|
}));
|
|
793
719
|
};
|
|
794
720
|
DesignAtomsCompatibilityApiClient.prototype.processGetCssFont = function (response) {
|
|
795
|
-
var
|
|
721
|
+
var e_5, _a;
|
|
796
722
|
var _this = this;
|
|
797
723
|
var status = response.status;
|
|
798
724
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -805,12 +731,12 @@
|
|
|
805
731
|
_headers[key] = response.headers.get(key);
|
|
806
732
|
}
|
|
807
733
|
}
|
|
808
|
-
catch (
|
|
734
|
+
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
|
809
735
|
finally {
|
|
810
736
|
try {
|
|
811
737
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
812
738
|
}
|
|
813
|
-
finally { if (
|
|
739
|
+
finally { if (e_5) throw e_5.error; }
|
|
814
740
|
}
|
|
815
741
|
}
|
|
816
742
|
if (status === 200 || status === 206) {
|
|
@@ -872,7 +798,7 @@
|
|
|
872
798
|
}));
|
|
873
799
|
};
|
|
874
800
|
DesignAtomsCompatibilityApiClient.prototype.processGetImageSize = function (response) {
|
|
875
|
-
var
|
|
801
|
+
var e_6, _a;
|
|
876
802
|
var _this = this;
|
|
877
803
|
var status = response.status;
|
|
878
804
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -885,12 +811,12 @@
|
|
|
885
811
|
_headers[key] = response.headers.get(key);
|
|
886
812
|
}
|
|
887
813
|
}
|
|
888
|
-
catch (
|
|
814
|
+
catch (e_6_1) { e_6 = { error: e_6_1 }; }
|
|
889
815
|
finally {
|
|
890
816
|
try {
|
|
891
817
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
892
818
|
}
|
|
893
|
-
finally { if (
|
|
819
|
+
finally { if (e_6) throw e_6.error; }
|
|
894
820
|
}
|
|
895
821
|
}
|
|
896
822
|
if (status === 200) {
|
|
@@ -946,7 +872,7 @@
|
|
|
946
872
|
}));
|
|
947
873
|
};
|
|
948
874
|
DesignAtomsCompatibilityApiClient.prototype.processGetShapeBounds = function (response) {
|
|
949
|
-
var
|
|
875
|
+
var e_7, _a;
|
|
950
876
|
var _this = this;
|
|
951
877
|
var status = response.status;
|
|
952
878
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -959,12 +885,12 @@
|
|
|
959
885
|
_headers[key] = response.headers.get(key);
|
|
960
886
|
}
|
|
961
887
|
}
|
|
962
|
-
catch (
|
|
888
|
+
catch (e_7_1) { e_7 = { error: e_7_1 }; }
|
|
963
889
|
finally {
|
|
964
890
|
try {
|
|
965
891
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
966
892
|
}
|
|
967
|
-
finally { if (
|
|
893
|
+
finally { if (e_7) throw e_7.error; }
|
|
968
894
|
}
|
|
969
895
|
}
|
|
970
896
|
if (status === 200) {
|
|
@@ -1020,7 +946,7 @@
|
|
|
1020
946
|
}));
|
|
1021
947
|
};
|
|
1022
948
|
DesignAtomsCompatibilityApiClient.prototype.processGetWatermarkItems = function (response) {
|
|
1023
|
-
var
|
|
949
|
+
var e_8, _a;
|
|
1024
950
|
var _this = this;
|
|
1025
951
|
var status = response.status;
|
|
1026
952
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -1033,12 +959,12 @@
|
|
|
1033
959
|
_headers[key] = response.headers.get(key);
|
|
1034
960
|
}
|
|
1035
961
|
}
|
|
1036
|
-
catch (
|
|
962
|
+
catch (e_8_1) { e_8 = { error: e_8_1 }; }
|
|
1037
963
|
finally {
|
|
1038
964
|
try {
|
|
1039
965
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
1040
966
|
}
|
|
1041
|
-
finally { if (
|
|
967
|
+
finally { if (e_8) throw e_8.error; }
|
|
1042
968
|
}
|
|
1043
969
|
}
|
|
1044
970
|
if (status === 200) {
|
|
@@ -1138,7 +1064,7 @@
|
|
|
1138
1064
|
}));
|
|
1139
1065
|
};
|
|
1140
1066
|
DesignAtomsCompatibilityApiClient.prototype.processImg = function (response) {
|
|
1141
|
-
var
|
|
1067
|
+
var e_9, _a;
|
|
1142
1068
|
var _this = this;
|
|
1143
1069
|
var status = response.status;
|
|
1144
1070
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -1151,12 +1077,12 @@
|
|
|
1151
1077
|
_headers[key] = response.headers.get(key);
|
|
1152
1078
|
}
|
|
1153
1079
|
}
|
|
1154
|
-
catch (
|
|
1080
|
+
catch (e_9_1) { e_9 = { error: e_9_1 }; }
|
|
1155
1081
|
finally {
|
|
1156
1082
|
try {
|
|
1157
1083
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
1158
1084
|
}
|
|
1159
|
-
finally { if (
|
|
1085
|
+
finally { if (e_9) throw e_9.error; }
|
|
1160
1086
|
}
|
|
1161
1087
|
}
|
|
1162
1088
|
if (status === 200 || status === 206) {
|
|
@@ -1219,7 +1145,7 @@
|
|
|
1219
1145
|
}));
|
|
1220
1146
|
};
|
|
1221
1147
|
DesignAtomsCompatibilityApiClient.prototype.processGetLicense = function (response) {
|
|
1222
|
-
var
|
|
1148
|
+
var e_10, _a;
|
|
1223
1149
|
var _this = this;
|
|
1224
1150
|
var status = response.status;
|
|
1225
1151
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -1232,12 +1158,12 @@
|
|
|
1232
1158
|
_headers[key] = response.headers.get(key);
|
|
1233
1159
|
}
|
|
1234
1160
|
}
|
|
1235
|
-
catch (
|
|
1161
|
+
catch (e_10_1) { e_10 = { error: e_10_1 }; }
|
|
1236
1162
|
finally {
|
|
1237
1163
|
try {
|
|
1238
1164
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
1239
1165
|
}
|
|
1240
|
-
finally { if (
|
|
1166
|
+
finally { if (e_10) throw e_10.error; }
|
|
1241
1167
|
}
|
|
1242
1168
|
}
|
|
1243
1169
|
if (status === 200) {
|
|
@@ -1292,7 +1218,7 @@
|
|
|
1292
1218
|
}));
|
|
1293
1219
|
};
|
|
1294
1220
|
DesignAtomsCompatibilityApiClient.prototype.processPth = function (response) {
|
|
1295
|
-
var
|
|
1221
|
+
var e_11, _a;
|
|
1296
1222
|
var _this = this;
|
|
1297
1223
|
var status = response.status;
|
|
1298
1224
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -1305,12 +1231,12 @@
|
|
|
1305
1231
|
_headers[key] = response.headers.get(key);
|
|
1306
1232
|
}
|
|
1307
1233
|
}
|
|
1308
|
-
catch (
|
|
1234
|
+
catch (e_11_1) { e_11 = { error: e_11_1 }; }
|
|
1309
1235
|
finally {
|
|
1310
1236
|
try {
|
|
1311
1237
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
1312
1238
|
}
|
|
1313
|
-
finally { if (
|
|
1239
|
+
finally { if (e_11) throw e_11.error; }
|
|
1314
1240
|
}
|
|
1315
1241
|
}
|
|
1316
1242
|
if (status === 200 || status === 206) {
|
|
@@ -1376,7 +1302,7 @@
|
|
|
1376
1302
|
}));
|
|
1377
1303
|
};
|
|
1378
1304
|
DesignAtomsCompatibilityApiClient.prototype.processResource = function (response) {
|
|
1379
|
-
var
|
|
1305
|
+
var e_12, _a;
|
|
1380
1306
|
var _this = this;
|
|
1381
1307
|
var status = response.status;
|
|
1382
1308
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -1389,12 +1315,12 @@
|
|
|
1389
1315
|
_headers[key] = response.headers.get(key);
|
|
1390
1316
|
}
|
|
1391
1317
|
}
|
|
1392
|
-
catch (
|
|
1318
|
+
catch (e_12_1) { e_12 = { error: e_12_1 }; }
|
|
1393
1319
|
finally {
|
|
1394
1320
|
try {
|
|
1395
1321
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
1396
1322
|
}
|
|
1397
|
-
finally { if (
|
|
1323
|
+
finally { if (e_12) throw e_12.error; }
|
|
1398
1324
|
}
|
|
1399
1325
|
}
|
|
1400
1326
|
if (status === 200 || status === 206) {
|
|
@@ -1455,7 +1381,7 @@
|
|
|
1455
1381
|
}));
|
|
1456
1382
|
};
|
|
1457
1383
|
DesignAtomsCompatibilityApiClient.prototype.processSvg = function (response) {
|
|
1458
|
-
var
|
|
1384
|
+
var e_13, _a;
|
|
1459
1385
|
var _this = this;
|
|
1460
1386
|
var status = response.status;
|
|
1461
1387
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -1468,12 +1394,12 @@
|
|
|
1468
1394
|
_headers[key] = response.headers.get(key);
|
|
1469
1395
|
}
|
|
1470
1396
|
}
|
|
1471
|
-
catch (
|
|
1397
|
+
catch (e_13_1) { e_13 = { error: e_13_1 }; }
|
|
1472
1398
|
finally {
|
|
1473
1399
|
try {
|
|
1474
1400
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
1475
1401
|
}
|
|
1476
|
-
finally { if (
|
|
1402
|
+
finally { if (e_13) throw e_13.error; }
|
|
1477
1403
|
}
|
|
1478
1404
|
}
|
|
1479
1405
|
if (status === 200 || status === 206) {
|
|
@@ -1539,7 +1465,7 @@
|
|
|
1539
1465
|
}));
|
|
1540
1466
|
};
|
|
1541
1467
|
DesignAtomsCompatibilityApiClient.prototype.processTxt = function (response) {
|
|
1542
|
-
var
|
|
1468
|
+
var e_14, _a;
|
|
1543
1469
|
var _this = this;
|
|
1544
1470
|
var status = response.status;
|
|
1545
1471
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -1552,12 +1478,12 @@
|
|
|
1552
1478
|
_headers[key] = response.headers.get(key);
|
|
1553
1479
|
}
|
|
1554
1480
|
}
|
|
1555
|
-
catch (
|
|
1481
|
+
catch (e_14_1) { e_14 = { error: e_14_1 }; }
|
|
1556
1482
|
finally {
|
|
1557
1483
|
try {
|
|
1558
1484
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
1559
1485
|
}
|
|
1560
|
-
finally { if (
|
|
1486
|
+
finally { if (e_14) throw e_14.error; }
|
|
1561
1487
|
}
|
|
1562
1488
|
}
|
|
1563
1489
|
if (status === 200 || status === 206) {
|
|
@@ -1585,6 +1511,80 @@
|
|
|
1585
1511
|
}
|
|
1586
1512
|
return rxjs.of(null);
|
|
1587
1513
|
};
|
|
1514
|
+
/**
|
|
1515
|
+
* @param body (optional)
|
|
1516
|
+
* @return Success
|
|
1517
|
+
*/
|
|
1518
|
+
DesignAtomsCompatibilityApiClient.prototype.updateArchedTextItemHandler = function (tenantId, body) {
|
|
1519
|
+
var _this = this;
|
|
1520
|
+
var url_ = this.baseUrl + "/api/atoms/v1/tenants/{tenantId}/api/ccviewer/UpdateArchedTextItemHandler";
|
|
1521
|
+
if (tenantId === undefined || tenantId === null)
|
|
1522
|
+
throw new Error("The parameter 'tenantId' must be defined.");
|
|
1523
|
+
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
1524
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
1525
|
+
var content_ = JSON.stringify(body);
|
|
1526
|
+
var options_ = {
|
|
1527
|
+
body: content_,
|
|
1528
|
+
observe: "response",
|
|
1529
|
+
responseType: "blob",
|
|
1530
|
+
headers: new i1.HttpHeaders({
|
|
1531
|
+
"Content-Type": "application/json",
|
|
1532
|
+
"Accept": "application/json"
|
|
1533
|
+
})
|
|
1534
|
+
};
|
|
1535
|
+
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
1536
|
+
return _this.http.request("post", url_, transformedOptions_);
|
|
1537
|
+
})).pipe(operators.mergeMap(function (response_) {
|
|
1538
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processUpdateArchedTextItemHandler(r); });
|
|
1539
|
+
})).pipe(operators.catchError(function (response_) {
|
|
1540
|
+
if (response_ instanceof i1.HttpResponseBase) {
|
|
1541
|
+
try {
|
|
1542
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processUpdateArchedTextItemHandler(r); });
|
|
1543
|
+
}
|
|
1544
|
+
catch (e) {
|
|
1545
|
+
return rxjs.throwError(e);
|
|
1546
|
+
}
|
|
1547
|
+
}
|
|
1548
|
+
else
|
|
1549
|
+
return rxjs.throwError(response_);
|
|
1550
|
+
}));
|
|
1551
|
+
};
|
|
1552
|
+
DesignAtomsCompatibilityApiClient.prototype.processUpdateArchedTextItemHandler = function (response) {
|
|
1553
|
+
var e_15, _a;
|
|
1554
|
+
var _this = this;
|
|
1555
|
+
var status = response.status;
|
|
1556
|
+
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
1557
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
1558
|
+
var _headers = {};
|
|
1559
|
+
if (response.headers) {
|
|
1560
|
+
try {
|
|
1561
|
+
for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
1562
|
+
var key = _c.value;
|
|
1563
|
+
_headers[key] = response.headers.get(key);
|
|
1564
|
+
}
|
|
1565
|
+
}
|
|
1566
|
+
catch (e_15_1) { e_15 = { error: e_15_1 }; }
|
|
1567
|
+
finally {
|
|
1568
|
+
try {
|
|
1569
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
1570
|
+
}
|
|
1571
|
+
finally { if (e_15) throw e_15.error; }
|
|
1572
|
+
}
|
|
1573
|
+
}
|
|
1574
|
+
if (status === 200) {
|
|
1575
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
1576
|
+
var result200 = null;
|
|
1577
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
1578
|
+
return rxjs.of(result200);
|
|
1579
|
+
}));
|
|
1580
|
+
}
|
|
1581
|
+
else if (status !== 200 && status !== 204) {
|
|
1582
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
1583
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1584
|
+
}));
|
|
1585
|
+
}
|
|
1586
|
+
return rxjs.of(null);
|
|
1587
|
+
};
|
|
1588
1588
|
/**
|
|
1589
1589
|
* @param body (optional)
|
|
1590
1590
|
* @return Success
|
|
@@ -2535,7 +2535,7 @@
|
|
|
2535
2535
|
return rxjs.of(null);
|
|
2536
2536
|
};
|
|
2537
2537
|
/**
|
|
2538
|
-
* Loads product from design file taken from storage
|
|
2538
|
+
* Loads product (design model) from design file taken from storage
|
|
2539
2539
|
* @param id Design identifier
|
|
2540
2540
|
* @param privateStorage (optional) If set to 'true' design will be taken from private storage
|
|
2541
2541
|
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
@@ -2635,7 +2635,7 @@
|
|
|
2635
2635
|
return rxjs.of(null);
|
|
2636
2636
|
};
|
|
2637
2637
|
/**
|
|
2638
|
-
* Saves product to design file and updates design in storage.
|
|
2638
|
+
* Saves product (design model) to design file and updates design in storage.
|
|
2639
2639
|
* @param id Design identifier
|
|
2640
2640
|
* @param privateStorage (optional) If set to 'true' design will be saved to private storage
|
|
2641
2641
|
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
@@ -2735,6 +2735,109 @@
|
|
|
2735
2735
|
}
|
|
2736
2736
|
return rxjs.of(null);
|
|
2737
2737
|
};
|
|
2738
|
+
/**
|
|
2739
|
+
* Patches product (design model) in design file
|
|
2740
|
+
* @param id Design identifier
|
|
2741
|
+
* @param tenantId (optional) Tenant identifier
|
|
2742
|
+
* @param patchType (optional)
|
|
2743
|
+
* @param replaceImageItemFileInfo_itemName (optional)
|
|
2744
|
+
* @param replaceImageItemFileInfo_sourceFile (optional)
|
|
2745
|
+
* @return Success
|
|
2746
|
+
*/
|
|
2747
|
+
DesignAtomsServiceApiClient.prototype.patchProduct = function (id, tenantId, patchType, replaceImageItemFileInfo_itemName, replaceImageItemFileInfo_sourceFile) {
|
|
2748
|
+
var _this = this;
|
|
2749
|
+
var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/model?";
|
|
2750
|
+
if (id === undefined || id === null)
|
|
2751
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
2752
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2753
|
+
if (tenantId === null)
|
|
2754
|
+
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
2755
|
+
else if (tenantId !== undefined)
|
|
2756
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
2757
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
2758
|
+
var content_ = new FormData();
|
|
2759
|
+
if (patchType === null || patchType === undefined)
|
|
2760
|
+
throw new Error("The parameter 'patchType' cannot be null.");
|
|
2761
|
+
else
|
|
2762
|
+
content_.append("patchType", patchType.toString());
|
|
2763
|
+
if (replaceImageItemFileInfo_itemName !== null && replaceImageItemFileInfo_itemName !== undefined)
|
|
2764
|
+
content_.append("replaceImageItemFileInfo.itemName", replaceImageItemFileInfo_itemName.toString());
|
|
2765
|
+
if (replaceImageItemFileInfo_sourceFile !== null && replaceImageItemFileInfo_sourceFile !== undefined)
|
|
2766
|
+
content_.append("replaceImageItemFileInfo.sourceFile", replaceImageItemFileInfo_sourceFile.data, replaceImageItemFileInfo_sourceFile.fileName ? replaceImageItemFileInfo_sourceFile.fileName : "replaceImageItemFileInfo.sourceFile");
|
|
2767
|
+
var options_ = {
|
|
2768
|
+
body: content_,
|
|
2769
|
+
observe: "response",
|
|
2770
|
+
responseType: "blob",
|
|
2771
|
+
headers: new i1.HttpHeaders({})
|
|
2772
|
+
};
|
|
2773
|
+
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
2774
|
+
return _this.http.request("patch", url_, transformedOptions_);
|
|
2775
|
+
})).pipe(operators.mergeMap(function (response_) {
|
|
2776
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processPatchProduct(r); });
|
|
2777
|
+
})).pipe(operators.catchError(function (response_) {
|
|
2778
|
+
if (response_ instanceof i1.HttpResponseBase) {
|
|
2779
|
+
try {
|
|
2780
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processPatchProduct(r); });
|
|
2781
|
+
}
|
|
2782
|
+
catch (e) {
|
|
2783
|
+
return rxjs.throwError(e);
|
|
2784
|
+
}
|
|
2785
|
+
}
|
|
2786
|
+
else
|
|
2787
|
+
return rxjs.throwError(response_);
|
|
2788
|
+
}));
|
|
2789
|
+
};
|
|
2790
|
+
DesignAtomsServiceApiClient.prototype.processPatchProduct = function (response) {
|
|
2791
|
+
var e_30, _a;
|
|
2792
|
+
var _this = this;
|
|
2793
|
+
var status = response.status;
|
|
2794
|
+
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
2795
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
2796
|
+
var _headers = {};
|
|
2797
|
+
if (response.headers) {
|
|
2798
|
+
try {
|
|
2799
|
+
for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
2800
|
+
var key = _c.value;
|
|
2801
|
+
_headers[key] = response.headers.get(key);
|
|
2802
|
+
}
|
|
2803
|
+
}
|
|
2804
|
+
catch (e_30_1) { e_30 = { error: e_30_1 }; }
|
|
2805
|
+
finally {
|
|
2806
|
+
try {
|
|
2807
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
2808
|
+
}
|
|
2809
|
+
finally { if (e_30) throw e_30.error; }
|
|
2810
|
+
}
|
|
2811
|
+
}
|
|
2812
|
+
if (status === 200) {
|
|
2813
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
2814
|
+
return rxjs.of(null);
|
|
2815
|
+
}));
|
|
2816
|
+
}
|
|
2817
|
+
else if (status === 404) {
|
|
2818
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
2819
|
+
var result404 = null;
|
|
2820
|
+
result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
2821
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
2822
|
+
}));
|
|
2823
|
+
}
|
|
2824
|
+
else if (status === 401) {
|
|
2825
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
2826
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
2827
|
+
}));
|
|
2828
|
+
}
|
|
2829
|
+
else if (status === 403) {
|
|
2830
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
2831
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
2832
|
+
}));
|
|
2833
|
+
}
|
|
2834
|
+
else if (status !== 200 && status !== 204) {
|
|
2835
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
2836
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
2837
|
+
}));
|
|
2838
|
+
}
|
|
2839
|
+
return rxjs.of(null);
|
|
2840
|
+
};
|
|
2738
2841
|
/**
|
|
2739
2842
|
* Loads data schema from design file taken from storage
|
|
2740
2843
|
* @param id Design identifier
|
|
@@ -2777,7 +2880,7 @@
|
|
|
2777
2880
|
}));
|
|
2778
2881
|
};
|
|
2779
2882
|
DesignAtomsServiceApiClient.prototype.processLoadDataSchema = function (response) {
|
|
2780
|
-
var
|
|
2883
|
+
var e_31, _a;
|
|
2781
2884
|
var _this = this;
|
|
2782
2885
|
var status = response.status;
|
|
2783
2886
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -2790,12 +2893,12 @@
|
|
|
2790
2893
|
_headers[key] = response.headers.get(key);
|
|
2791
2894
|
}
|
|
2792
2895
|
}
|
|
2793
|
-
catch (
|
|
2896
|
+
catch (e_31_1) { e_31 = { error: e_31_1 }; }
|
|
2794
2897
|
finally {
|
|
2795
2898
|
try {
|
|
2796
2899
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
2797
2900
|
}
|
|
2798
|
-
finally { if (
|
|
2901
|
+
finally { if (e_31) throw e_31.error; }
|
|
2799
2902
|
}
|
|
2800
2903
|
}
|
|
2801
2904
|
if (status === 200 || status === 206) {
|
|
@@ -2877,7 +2980,7 @@
|
|
|
2877
2980
|
}));
|
|
2878
2981
|
};
|
|
2879
2982
|
DesignAtomsServiceApiClient.prototype.processGetVariables = function (response) {
|
|
2880
|
-
var
|
|
2983
|
+
var e_32, _a;
|
|
2881
2984
|
var _this = this;
|
|
2882
2985
|
var status = response.status;
|
|
2883
2986
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -2890,12 +2993,12 @@
|
|
|
2890
2993
|
_headers[key] = response.headers.get(key);
|
|
2891
2994
|
}
|
|
2892
2995
|
}
|
|
2893
|
-
catch (
|
|
2996
|
+
catch (e_32_1) { e_32 = { error: e_32_1 }; }
|
|
2894
2997
|
finally {
|
|
2895
2998
|
try {
|
|
2896
2999
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
2897
3000
|
}
|
|
2898
|
-
finally { if (
|
|
3001
|
+
finally { if (e_32) throw e_32.error; }
|
|
2899
3002
|
}
|
|
2900
3003
|
}
|
|
2901
3004
|
if (status === 200) {
|
|
@@ -2975,7 +3078,7 @@
|
|
|
2975
3078
|
}));
|
|
2976
3079
|
};
|
|
2977
3080
|
DesignAtomsServiceApiClient.prototype.processSetVariables = function (response) {
|
|
2978
|
-
var
|
|
3081
|
+
var e_33, _a;
|
|
2979
3082
|
var _this = this;
|
|
2980
3083
|
var status = response.status;
|
|
2981
3084
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -2988,12 +3091,12 @@
|
|
|
2988
3091
|
_headers[key] = response.headers.get(key);
|
|
2989
3092
|
}
|
|
2990
3093
|
}
|
|
2991
|
-
catch (
|
|
3094
|
+
catch (e_33_1) { e_33 = { error: e_33_1 }; }
|
|
2992
3095
|
finally {
|
|
2993
3096
|
try {
|
|
2994
3097
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
2995
3098
|
}
|
|
2996
|
-
finally { if (
|
|
3099
|
+
finally { if (e_33) throw e_33.error; }
|
|
2997
3100
|
}
|
|
2998
3101
|
}
|
|
2999
3102
|
if (status === 200) {
|
|
@@ -3076,7 +3179,7 @@
|
|
|
3076
3179
|
}));
|
|
3077
3180
|
};
|
|
3078
3181
|
DesignAtomsServiceApiClient.prototype.processLoadVdpData = function (response) {
|
|
3079
|
-
var
|
|
3182
|
+
var e_34, _a;
|
|
3080
3183
|
var _this = this;
|
|
3081
3184
|
var status = response.status;
|
|
3082
3185
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -3089,12 +3192,12 @@
|
|
|
3089
3192
|
_headers[key] = response.headers.get(key);
|
|
3090
3193
|
}
|
|
3091
3194
|
}
|
|
3092
|
-
catch (
|
|
3195
|
+
catch (e_34_1) { e_34 = { error: e_34_1 }; }
|
|
3093
3196
|
finally {
|
|
3094
3197
|
try {
|
|
3095
3198
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
3096
3199
|
}
|
|
3097
|
-
finally { if (
|
|
3200
|
+
finally { if (e_34) throw e_34.error; }
|
|
3098
3201
|
}
|
|
3099
3202
|
}
|
|
3100
3203
|
if (status === 200) {
|
|
@@ -3180,7 +3283,7 @@
|
|
|
3180
3283
|
}));
|
|
3181
3284
|
};
|
|
3182
3285
|
DesignAtomsServiceApiClient.prototype.processSaveVdpData = function (response) {
|
|
3183
|
-
var
|
|
3286
|
+
var e_35, _a;
|
|
3184
3287
|
var _this = this;
|
|
3185
3288
|
var status = response.status;
|
|
3186
3289
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -3193,12 +3296,12 @@
|
|
|
3193
3296
|
_headers[key] = response.headers.get(key);
|
|
3194
3297
|
}
|
|
3195
3298
|
}
|
|
3196
|
-
catch (
|
|
3299
|
+
catch (e_35_1) { e_35 = { error: e_35_1 }; }
|
|
3197
3300
|
finally {
|
|
3198
3301
|
try {
|
|
3199
3302
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
3200
3303
|
}
|
|
3201
|
-
finally { if (
|
|
3304
|
+
finally { if (e_35) throw e_35.error; }
|
|
3202
3305
|
}
|
|
3203
3306
|
}
|
|
3204
3307
|
if (status === 200) {
|
|
@@ -3270,7 +3373,7 @@
|
|
|
3270
3373
|
}));
|
|
3271
3374
|
};
|
|
3272
3375
|
DesignAtomsServiceApiClient.prototype.processDeleteVdpData = function (response) {
|
|
3273
|
-
var
|
|
3376
|
+
var e_36, _a;
|
|
3274
3377
|
var _this = this;
|
|
3275
3378
|
var status = response.status;
|
|
3276
3379
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -3283,12 +3386,12 @@
|
|
|
3283
3386
|
_headers[key] = response.headers.get(key);
|
|
3284
3387
|
}
|
|
3285
3388
|
}
|
|
3286
|
-
catch (
|
|
3389
|
+
catch (e_36_1) { e_36 = { error: e_36_1 }; }
|
|
3287
3390
|
finally {
|
|
3288
3391
|
try {
|
|
3289
3392
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
3290
3393
|
}
|
|
3291
|
-
finally { if (
|
|
3394
|
+
finally { if (e_36) throw e_36.error; }
|
|
3292
3395
|
}
|
|
3293
3396
|
}
|
|
3294
3397
|
if (status === 200) {
|
|
@@ -3362,7 +3465,7 @@
|
|
|
3362
3465
|
}));
|
|
3363
3466
|
};
|
|
3364
3467
|
DesignAtomsServiceApiClient.prototype.processFlattenItems = function (response) {
|
|
3365
|
-
var
|
|
3468
|
+
var e_37, _a;
|
|
3366
3469
|
var _this = this;
|
|
3367
3470
|
var status = response.status;
|
|
3368
3471
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -3375,12 +3478,12 @@
|
|
|
3375
3478
|
_headers[key] = response.headers.get(key);
|
|
3376
3479
|
}
|
|
3377
3480
|
}
|
|
3378
|
-
catch (
|
|
3481
|
+
catch (e_37_1) { e_37 = { error: e_37_1 }; }
|
|
3379
3482
|
finally {
|
|
3380
3483
|
try {
|
|
3381
3484
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
3382
3485
|
}
|
|
3383
|
-
finally { if (
|
|
3486
|
+
finally { if (e_37) throw e_37.error; }
|
|
3384
3487
|
}
|
|
3385
3488
|
}
|
|
3386
3489
|
if (status === 200) {
|
|
@@ -3462,7 +3565,7 @@
|
|
|
3462
3565
|
}));
|
|
3463
3566
|
};
|
|
3464
3567
|
DesignAtomsServiceApiClient.prototype.processCreateItem = function (response) {
|
|
3465
|
-
var
|
|
3568
|
+
var e_38, _a;
|
|
3466
3569
|
var _this = this;
|
|
3467
3570
|
var status = response.status;
|
|
3468
3571
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -3475,12 +3578,12 @@
|
|
|
3475
3578
|
_headers[key] = response.headers.get(key);
|
|
3476
3579
|
}
|
|
3477
3580
|
}
|
|
3478
|
-
catch (
|
|
3581
|
+
catch (e_38_1) { e_38 = { error: e_38_1 }; }
|
|
3479
3582
|
finally {
|
|
3480
3583
|
try {
|
|
3481
3584
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
3482
3585
|
}
|
|
3483
|
-
finally { if (
|
|
3586
|
+
finally { if (e_38) throw e_38.error; }
|
|
3484
3587
|
}
|
|
3485
3588
|
}
|
|
3486
3589
|
if (status === 200) {
|
|
@@ -3559,7 +3662,7 @@
|
|
|
3559
3662
|
}));
|
|
3560
3663
|
};
|
|
3561
3664
|
DesignAtomsServiceApiClient.prototype.processRenderProduct = function (response) {
|
|
3562
|
-
var
|
|
3665
|
+
var e_39, _a;
|
|
3563
3666
|
var status = response.status;
|
|
3564
3667
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
3565
3668
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -3571,12 +3674,12 @@
|
|
|
3571
3674
|
_headers[key] = response.headers.get(key);
|
|
3572
3675
|
}
|
|
3573
3676
|
}
|
|
3574
|
-
catch (
|
|
3677
|
+
catch (e_39_1) { e_39 = { error: e_39_1 }; }
|
|
3575
3678
|
finally {
|
|
3576
3679
|
try {
|
|
3577
3680
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
3578
3681
|
}
|
|
3579
|
-
finally { if (
|
|
3682
|
+
finally { if (e_39) throw e_39.error; }
|
|
3580
3683
|
}
|
|
3581
3684
|
}
|
|
3582
3685
|
if (status === 200 || status === 206) {
|
|
@@ -3624,82 +3727,6 @@
|
|
|
3624
3727
|
_this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : _this.getBaseUrl("");
|
|
3625
3728
|
return _this;
|
|
3626
3729
|
}
|
|
3627
|
-
/**
|
|
3628
|
-
* @param tenantId (optional) Tenant identifier
|
|
3629
|
-
* @param body (optional)
|
|
3630
|
-
* @return Success
|
|
3631
|
-
*/
|
|
3632
|
-
DesignAtomsViewerApiClient.prototype.updateArchedTextItemHandler = function (tenantId, body) {
|
|
3633
|
-
var _this = this;
|
|
3634
|
-
var url_ = this.baseUrl + "/api/atoms/v1/ccviewer/api/ccviewer/UpdateArchedTextItemHandler?";
|
|
3635
|
-
if (tenantId === null)
|
|
3636
|
-
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
3637
|
-
else if (tenantId !== undefined)
|
|
3638
|
-
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
3639
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
3640
|
-
var content_ = JSON.stringify(body);
|
|
3641
|
-
var options_ = {
|
|
3642
|
-
body: content_,
|
|
3643
|
-
observe: "response",
|
|
3644
|
-
responseType: "blob",
|
|
3645
|
-
headers: new i1.HttpHeaders({
|
|
3646
|
-
"Content-Type": "application/json",
|
|
3647
|
-
"Accept": "application/json"
|
|
3648
|
-
})
|
|
3649
|
-
};
|
|
3650
|
-
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
3651
|
-
return _this.http.request("post", url_, transformedOptions_);
|
|
3652
|
-
})).pipe(operators.mergeMap(function (response_) {
|
|
3653
|
-
return _this.transformResult(url_, response_, function (r) { return _this.processUpdateArchedTextItemHandler(r); });
|
|
3654
|
-
})).pipe(operators.catchError(function (response_) {
|
|
3655
|
-
if (response_ instanceof i1.HttpResponseBase) {
|
|
3656
|
-
try {
|
|
3657
|
-
return _this.transformResult(url_, response_, function (r) { return _this.processUpdateArchedTextItemHandler(r); });
|
|
3658
|
-
}
|
|
3659
|
-
catch (e) {
|
|
3660
|
-
return rxjs.throwError(e);
|
|
3661
|
-
}
|
|
3662
|
-
}
|
|
3663
|
-
else
|
|
3664
|
-
return rxjs.throwError(response_);
|
|
3665
|
-
}));
|
|
3666
|
-
};
|
|
3667
|
-
DesignAtomsViewerApiClient.prototype.processUpdateArchedTextItemHandler = function (response) {
|
|
3668
|
-
var e_39, _a;
|
|
3669
|
-
var _this = this;
|
|
3670
|
-
var status = response.status;
|
|
3671
|
-
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
3672
|
-
response.error instanceof Blob ? response.error : undefined;
|
|
3673
|
-
var _headers = {};
|
|
3674
|
-
if (response.headers) {
|
|
3675
|
-
try {
|
|
3676
|
-
for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
3677
|
-
var key = _c.value;
|
|
3678
|
-
_headers[key] = response.headers.get(key);
|
|
3679
|
-
}
|
|
3680
|
-
}
|
|
3681
|
-
catch (e_39_1) { e_39 = { error: e_39_1 }; }
|
|
3682
|
-
finally {
|
|
3683
|
-
try {
|
|
3684
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
3685
|
-
}
|
|
3686
|
-
finally { if (e_39) throw e_39.error; }
|
|
3687
|
-
}
|
|
3688
|
-
}
|
|
3689
|
-
if (status === 200) {
|
|
3690
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
3691
|
-
var result200 = null;
|
|
3692
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
3693
|
-
return rxjs.of(result200);
|
|
3694
|
-
}));
|
|
3695
|
-
}
|
|
3696
|
-
else if (status !== 200 && status !== 204) {
|
|
3697
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
3698
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3699
|
-
}));
|
|
3700
|
-
}
|
|
3701
|
-
return rxjs.of(null);
|
|
3702
|
-
};
|
|
3703
3730
|
/**
|
|
3704
3731
|
* @param tenantId (optional) Tenant identifier
|
|
3705
3732
|
* @param body (optional)
|
|
@@ -4708,6 +4735,82 @@
|
|
|
4708
4735
|
}
|
|
4709
4736
|
return rxjs.of(null);
|
|
4710
4737
|
};
|
|
4738
|
+
/**
|
|
4739
|
+
* @param tenantId (optional) Tenant identifier
|
|
4740
|
+
* @param body (optional)
|
|
4741
|
+
* @return Success
|
|
4742
|
+
*/
|
|
4743
|
+
DesignAtomsViewerApiClient.prototype.updateArchedTextItemHandler = function (tenantId, body) {
|
|
4744
|
+
var _this = this;
|
|
4745
|
+
var url_ = this.baseUrl + "/api/atoms/v1/ccviewer/UpdateArchedTextItemHandler?";
|
|
4746
|
+
if (tenantId === null)
|
|
4747
|
+
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
4748
|
+
else if (tenantId !== undefined)
|
|
4749
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
4750
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
4751
|
+
var content_ = JSON.stringify(body);
|
|
4752
|
+
var options_ = {
|
|
4753
|
+
body: content_,
|
|
4754
|
+
observe: "response",
|
|
4755
|
+
responseType: "blob",
|
|
4756
|
+
headers: new i1.HttpHeaders({
|
|
4757
|
+
"Content-Type": "application/json",
|
|
4758
|
+
"Accept": "application/json"
|
|
4759
|
+
})
|
|
4760
|
+
};
|
|
4761
|
+
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
4762
|
+
return _this.http.request("post", url_, transformedOptions_);
|
|
4763
|
+
})).pipe(operators.mergeMap(function (response_) {
|
|
4764
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processUpdateArchedTextItemHandler(r); });
|
|
4765
|
+
})).pipe(operators.catchError(function (response_) {
|
|
4766
|
+
if (response_ instanceof i1.HttpResponseBase) {
|
|
4767
|
+
try {
|
|
4768
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processUpdateArchedTextItemHandler(r); });
|
|
4769
|
+
}
|
|
4770
|
+
catch (e) {
|
|
4771
|
+
return rxjs.throwError(e);
|
|
4772
|
+
}
|
|
4773
|
+
}
|
|
4774
|
+
else
|
|
4775
|
+
return rxjs.throwError(response_);
|
|
4776
|
+
}));
|
|
4777
|
+
};
|
|
4778
|
+
DesignAtomsViewerApiClient.prototype.processUpdateArchedTextItemHandler = function (response) {
|
|
4779
|
+
var e_52, _a;
|
|
4780
|
+
var _this = this;
|
|
4781
|
+
var status = response.status;
|
|
4782
|
+
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
4783
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
4784
|
+
var _headers = {};
|
|
4785
|
+
if (response.headers) {
|
|
4786
|
+
try {
|
|
4787
|
+
for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
4788
|
+
var key = _c.value;
|
|
4789
|
+
_headers[key] = response.headers.get(key);
|
|
4790
|
+
}
|
|
4791
|
+
}
|
|
4792
|
+
catch (e_52_1) { e_52 = { error: e_52_1 }; }
|
|
4793
|
+
finally {
|
|
4794
|
+
try {
|
|
4795
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4796
|
+
}
|
|
4797
|
+
finally { if (e_52) throw e_52.error; }
|
|
4798
|
+
}
|
|
4799
|
+
}
|
|
4800
|
+
if (status === 200) {
|
|
4801
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4802
|
+
var result200 = null;
|
|
4803
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4804
|
+
return rxjs.of(result200);
|
|
4805
|
+
}));
|
|
4806
|
+
}
|
|
4807
|
+
else if (status !== 200 && status !== 204) {
|
|
4808
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4809
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4810
|
+
}));
|
|
4811
|
+
}
|
|
4812
|
+
return rxjs.of(null);
|
|
4813
|
+
};
|
|
4711
4814
|
/**
|
|
4712
4815
|
* @param tenantId (optional) Tenant identifier
|
|
4713
4816
|
* @param body (optional)
|
|
@@ -4749,7 +4852,7 @@
|
|
|
4749
4852
|
}));
|
|
4750
4853
|
};
|
|
4751
4854
|
DesignAtomsViewerApiClient.prototype.processUpdateAutoScaledTextItemHandler = function (response) {
|
|
4752
|
-
var
|
|
4855
|
+
var e_53, _a;
|
|
4753
4856
|
var _this = this;
|
|
4754
4857
|
var status = response.status;
|
|
4755
4858
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4762,12 +4865,12 @@
|
|
|
4762
4865
|
_headers[key] = response.headers.get(key);
|
|
4763
4866
|
}
|
|
4764
4867
|
}
|
|
4765
|
-
catch (
|
|
4868
|
+
catch (e_53_1) { e_53 = { error: e_53_1 }; }
|
|
4766
4869
|
finally {
|
|
4767
4870
|
try {
|
|
4768
4871
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4769
4872
|
}
|
|
4770
|
-
finally { if (
|
|
4873
|
+
finally { if (e_53) throw e_53.error; }
|
|
4771
4874
|
}
|
|
4772
4875
|
}
|
|
4773
4876
|
if (status === 200) {
|
|
@@ -4825,7 +4928,7 @@
|
|
|
4825
4928
|
}));
|
|
4826
4929
|
};
|
|
4827
4930
|
DesignAtomsViewerApiClient.prototype.processUpdateBarcodeItemHandler = function (response) {
|
|
4828
|
-
var
|
|
4931
|
+
var e_54, _a;
|
|
4829
4932
|
var _this = this;
|
|
4830
4933
|
var status = response.status;
|
|
4831
4934
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4838,12 +4941,12 @@
|
|
|
4838
4941
|
_headers[key] = response.headers.get(key);
|
|
4839
4942
|
}
|
|
4840
4943
|
}
|
|
4841
|
-
catch (
|
|
4944
|
+
catch (e_54_1) { e_54 = { error: e_54_1 }; }
|
|
4842
4945
|
finally {
|
|
4843
4946
|
try {
|
|
4844
4947
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4845
4948
|
}
|
|
4846
|
-
finally { if (
|
|
4949
|
+
finally { if (e_54) throw e_54.error; }
|
|
4847
4950
|
}
|
|
4848
4951
|
}
|
|
4849
4952
|
if (status === 200) {
|
|
@@ -4901,7 +5004,7 @@
|
|
|
4901
5004
|
}));
|
|
4902
5005
|
};
|
|
4903
5006
|
DesignAtomsViewerApiClient.prototype.processUpdateBoundedTextItemHandler = function (response) {
|
|
4904
|
-
var
|
|
5007
|
+
var e_55, _a;
|
|
4905
5008
|
var _this = this;
|
|
4906
5009
|
var status = response.status;
|
|
4907
5010
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4914,12 +5017,12 @@
|
|
|
4914
5017
|
_headers[key] = response.headers.get(key);
|
|
4915
5018
|
}
|
|
4916
5019
|
}
|
|
4917
|
-
catch (
|
|
5020
|
+
catch (e_55_1) { e_55 = { error: e_55_1 }; }
|
|
4918
5021
|
finally {
|
|
4919
5022
|
try {
|
|
4920
5023
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4921
5024
|
}
|
|
4922
|
-
finally { if (
|
|
5025
|
+
finally { if (e_55) throw e_55.error; }
|
|
4923
5026
|
}
|
|
4924
5027
|
}
|
|
4925
5028
|
if (status === 200) {
|
|
@@ -4977,7 +5080,7 @@
|
|
|
4977
5080
|
}));
|
|
4978
5081
|
};
|
|
4979
5082
|
DesignAtomsViewerApiClient.prototype.processUpdateByColorData = function (response) {
|
|
4980
|
-
var
|
|
5083
|
+
var e_56, _a;
|
|
4981
5084
|
var _this = this;
|
|
4982
5085
|
var status = response.status;
|
|
4983
5086
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4990,12 +5093,12 @@
|
|
|
4990
5093
|
_headers[key] = response.headers.get(key);
|
|
4991
5094
|
}
|
|
4992
5095
|
}
|
|
4993
|
-
catch (
|
|
5096
|
+
catch (e_56_1) { e_56 = { error: e_56_1 }; }
|
|
4994
5097
|
finally {
|
|
4995
5098
|
try {
|
|
4996
5099
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4997
5100
|
}
|
|
4998
|
-
finally { if (
|
|
5101
|
+
finally { if (e_56) throw e_56.error; }
|
|
4999
5102
|
}
|
|
5000
5103
|
}
|
|
5001
5104
|
if (status === 200) {
|
|
@@ -5053,7 +5156,7 @@
|
|
|
5053
5156
|
}));
|
|
5054
5157
|
};
|
|
5055
5158
|
DesignAtomsViewerApiClient.prototype.processUpdateByMultiCallRequest = function (response) {
|
|
5056
|
-
var
|
|
5159
|
+
var e_57, _a;
|
|
5057
5160
|
var _this = this;
|
|
5058
5161
|
var status = response.status;
|
|
5059
5162
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -5066,12 +5169,12 @@
|
|
|
5066
5169
|
_headers[key] = response.headers.get(key);
|
|
5067
5170
|
}
|
|
5068
5171
|
}
|
|
5069
|
-
catch (
|
|
5172
|
+
catch (e_57_1) { e_57 = { error: e_57_1 }; }
|
|
5070
5173
|
finally {
|
|
5071
5174
|
try {
|
|
5072
5175
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5073
5176
|
}
|
|
5074
|
-
finally { if (
|
|
5177
|
+
finally { if (e_57) throw e_57.error; }
|
|
5075
5178
|
}
|
|
5076
5179
|
}
|
|
5077
5180
|
if (status === 200) {
|
|
@@ -5129,7 +5232,7 @@
|
|
|
5129
5232
|
}));
|
|
5130
5233
|
};
|
|
5131
5234
|
DesignAtomsViewerApiClient.prototype.processUpdateCurvedTextItemHandler = function (response) {
|
|
5132
|
-
var
|
|
5235
|
+
var e_58, _a;
|
|
5133
5236
|
var _this = this;
|
|
5134
5237
|
var status = response.status;
|
|
5135
5238
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -5142,12 +5245,12 @@
|
|
|
5142
5245
|
_headers[key] = response.headers.get(key);
|
|
5143
5246
|
}
|
|
5144
5247
|
}
|
|
5145
|
-
catch (
|
|
5248
|
+
catch (e_58_1) { e_58 = { error: e_58_1 }; }
|
|
5146
5249
|
finally {
|
|
5147
5250
|
try {
|
|
5148
5251
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5149
5252
|
}
|
|
5150
|
-
finally { if (
|
|
5253
|
+
finally { if (e_58) throw e_58.error; }
|
|
5151
5254
|
}
|
|
5152
5255
|
}
|
|
5153
5256
|
if (status === 200) {
|
|
@@ -5205,7 +5308,7 @@
|
|
|
5205
5308
|
}));
|
|
5206
5309
|
};
|
|
5207
5310
|
DesignAtomsViewerApiClient.prototype.processUpdateImageItemHandler = function (response) {
|
|
5208
|
-
var
|
|
5311
|
+
var e_59, _a;
|
|
5209
5312
|
var _this = this;
|
|
5210
5313
|
var status = response.status;
|
|
5211
5314
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -5218,12 +5321,12 @@
|
|
|
5218
5321
|
_headers[key] = response.headers.get(key);
|
|
5219
5322
|
}
|
|
5220
5323
|
}
|
|
5221
|
-
catch (
|
|
5324
|
+
catch (e_59_1) { e_59 = { error: e_59_1 }; }
|
|
5222
5325
|
finally {
|
|
5223
5326
|
try {
|
|
5224
5327
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5225
5328
|
}
|
|
5226
|
-
finally { if (
|
|
5329
|
+
finally { if (e_59) throw e_59.error; }
|
|
5227
5330
|
}
|
|
5228
5331
|
}
|
|
5229
5332
|
if (status === 200) {
|
|
@@ -5281,7 +5384,7 @@
|
|
|
5281
5384
|
}));
|
|
5282
5385
|
};
|
|
5283
5386
|
DesignAtomsViewerApiClient.prototype.processUpdatePathBoundedTextItemHandler = function (response) {
|
|
5284
|
-
var
|
|
5387
|
+
var e_60, _a;
|
|
5285
5388
|
var _this = this;
|
|
5286
5389
|
var status = response.status;
|
|
5287
5390
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -5294,12 +5397,12 @@
|
|
|
5294
5397
|
_headers[key] = response.headers.get(key);
|
|
5295
5398
|
}
|
|
5296
5399
|
}
|
|
5297
|
-
catch (
|
|
5400
|
+
catch (e_60_1) { e_60 = { error: e_60_1 }; }
|
|
5298
5401
|
finally {
|
|
5299
5402
|
try {
|
|
5300
5403
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5301
5404
|
}
|
|
5302
|
-
finally { if (
|
|
5405
|
+
finally { if (e_60) throw e_60.error; }
|
|
5303
5406
|
}
|
|
5304
5407
|
}
|
|
5305
5408
|
if (status === 200) {
|
|
@@ -5357,7 +5460,7 @@
|
|
|
5357
5460
|
}));
|
|
5358
5461
|
};
|
|
5359
5462
|
DesignAtomsViewerApiClient.prototype.processUpdatePlainTextItemHandler = function (response) {
|
|
5360
|
-
var
|
|
5463
|
+
var e_61, _a;
|
|
5361
5464
|
var _this = this;
|
|
5362
5465
|
var status = response.status;
|
|
5363
5466
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -5370,12 +5473,12 @@
|
|
|
5370
5473
|
_headers[key] = response.headers.get(key);
|
|
5371
5474
|
}
|
|
5372
5475
|
}
|
|
5373
|
-
catch (
|
|
5476
|
+
catch (e_61_1) { e_61 = { error: e_61_1 }; }
|
|
5374
5477
|
finally {
|
|
5375
5478
|
try {
|
|
5376
5479
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5377
5480
|
}
|
|
5378
|
-
finally { if (
|
|
5481
|
+
finally { if (e_61) throw e_61.error; }
|
|
5379
5482
|
}
|
|
5380
5483
|
}
|
|
5381
5484
|
if (status === 200) {
|
|
@@ -5433,7 +5536,7 @@
|
|
|
5433
5536
|
}));
|
|
5434
5537
|
};
|
|
5435
5538
|
DesignAtomsViewerApiClient.prototype.processUpdateShapeItemHandler = function (response) {
|
|
5436
|
-
var
|
|
5539
|
+
var e_62, _a;
|
|
5437
5540
|
var _this = this;
|
|
5438
5541
|
var status = response.status;
|
|
5439
5542
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -5446,12 +5549,12 @@
|
|
|
5446
5549
|
_headers[key] = response.headers.get(key);
|
|
5447
5550
|
}
|
|
5448
5551
|
}
|
|
5449
|
-
catch (
|
|
5552
|
+
catch (e_62_1) { e_62 = { error: e_62_1 }; }
|
|
5450
5553
|
finally {
|
|
5451
5554
|
try {
|
|
5452
5555
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5453
5556
|
}
|
|
5454
|
-
finally { if (
|
|
5557
|
+
finally { if (e_62) throw e_62.error; }
|
|
5455
5558
|
}
|
|
5456
5559
|
}
|
|
5457
5560
|
if (status === 200) {
|
|
@@ -5481,6 +5584,10 @@
|
|
|
5481
5584
|
{ type: i1.HttpClient, decorators: [{ type: i0.Inject, args: [i1.HttpClient,] }] },
|
|
5482
5585
|
{ type: String, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [API_BASE_URL,] }] }
|
|
5483
5586
|
]; };
|
|
5587
|
+
(function (ProductPatchType) {
|
|
5588
|
+
ProductPatchType["Undefined"] = "Undefined";
|
|
5589
|
+
ProductPatchType["ReplaceImageItemFile"] = "ReplaceImageItemFile";
|
|
5590
|
+
})(exports.ProductPatchType || (exports.ProductPatchType = {}));
|
|
5484
5591
|
(function (ItemType) {
|
|
5485
5592
|
ItemType["Image"] = "Image";
|
|
5486
5593
|
ItemType["Shape"] = "Shape";
|