@aurigma/ng-design-atoms-api-client 2.23.1 → 2.28.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 +960 -114
- 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 +805 -10
- 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 +805 -10
- package/fesm2015/aurigma-ng-design-atoms-api-client.js.map +1 -1
- package/lib/design-atoms-api-client.d.ts +143 -22
- package/package.json +1 -1
|
@@ -93,6 +93,13 @@ class BuildInfoApiClient extends ApiClientBase {
|
|
|
93
93
|
return of(null);
|
|
94
94
|
}));
|
|
95
95
|
}
|
|
96
|
+
else if (status === 500) {
|
|
97
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
98
|
+
let result500 = null;
|
|
99
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
100
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
101
|
+
}));
|
|
102
|
+
}
|
|
96
103
|
else if (status !== 200 && status !== 204) {
|
|
97
104
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
98
105
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -148,6 +155,13 @@ class BuildInfoApiClient extends ApiClientBase {
|
|
|
148
155
|
return of(result200);
|
|
149
156
|
}));
|
|
150
157
|
}
|
|
158
|
+
else if (status === 500) {
|
|
159
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
160
|
+
let result500 = null;
|
|
161
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
162
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
163
|
+
}));
|
|
164
|
+
}
|
|
151
165
|
else if (status !== 200 && status !== 204) {
|
|
152
166
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
153
167
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -228,6 +242,13 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
228
242
|
return of(result200);
|
|
229
243
|
}));
|
|
230
244
|
}
|
|
245
|
+
else if (status === 500) {
|
|
246
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
247
|
+
let result500 = null;
|
|
248
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
249
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
250
|
+
}));
|
|
251
|
+
}
|
|
231
252
|
else if (status !== 200 && status !== 204) {
|
|
232
253
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
233
254
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -294,6 +315,13 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
294
315
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
295
316
|
}));
|
|
296
317
|
}
|
|
318
|
+
else if (status === 500) {
|
|
319
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
320
|
+
let result500 = null;
|
|
321
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
322
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
323
|
+
}));
|
|
324
|
+
}
|
|
297
325
|
else if (status !== 200 && status !== 204) {
|
|
298
326
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
299
327
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -360,6 +388,13 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
360
388
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
361
389
|
}));
|
|
362
390
|
}
|
|
391
|
+
else if (status === 500) {
|
|
392
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
393
|
+
let result500 = null;
|
|
394
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
395
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
396
|
+
}));
|
|
397
|
+
}
|
|
363
398
|
else if (status !== 200 && status !== 204) {
|
|
364
399
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
365
400
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -421,6 +456,13 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
421
456
|
return of(result200);
|
|
422
457
|
}));
|
|
423
458
|
}
|
|
459
|
+
else if (status === 500) {
|
|
460
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
461
|
+
let result500 = null;
|
|
462
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
463
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
464
|
+
}));
|
|
465
|
+
}
|
|
424
466
|
else if (status !== 200 && status !== 204) {
|
|
425
467
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
426
468
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -482,6 +524,13 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
482
524
|
return of(result200);
|
|
483
525
|
}));
|
|
484
526
|
}
|
|
527
|
+
else if (status === 500) {
|
|
528
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
529
|
+
let result500 = null;
|
|
530
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
531
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
532
|
+
}));
|
|
533
|
+
}
|
|
485
534
|
else if (status !== 200 && status !== 204) {
|
|
486
535
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
487
536
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -543,6 +592,13 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
543
592
|
return of(result200);
|
|
544
593
|
}));
|
|
545
594
|
}
|
|
595
|
+
else if (status === 500) {
|
|
596
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
597
|
+
let result500 = null;
|
|
598
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
599
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
600
|
+
}));
|
|
601
|
+
}
|
|
546
602
|
else if (status !== 200 && status !== 204) {
|
|
547
603
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
548
604
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -659,6 +715,13 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
659
715
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
660
716
|
}));
|
|
661
717
|
}
|
|
718
|
+
else if (status === 500) {
|
|
719
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
720
|
+
let result500 = null;
|
|
721
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
722
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
723
|
+
}));
|
|
724
|
+
}
|
|
662
725
|
else if (status !== 200 && status !== 204) {
|
|
663
726
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
664
727
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -716,6 +779,13 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
716
779
|
return of(result200);
|
|
717
780
|
}));
|
|
718
781
|
}
|
|
782
|
+
else if (status === 500) {
|
|
783
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
784
|
+
let result500 = null;
|
|
785
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
786
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
787
|
+
}));
|
|
788
|
+
}
|
|
719
789
|
else if (status !== 200 && status !== 204) {
|
|
720
790
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
721
791
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -787,6 +857,13 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
787
857
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
788
858
|
}));
|
|
789
859
|
}
|
|
860
|
+
else if (status === 500) {
|
|
861
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
862
|
+
let result500 = null;
|
|
863
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
864
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
865
|
+
}));
|
|
866
|
+
}
|
|
790
867
|
else if (status !== 200 && status !== 204) {
|
|
791
868
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
792
869
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -853,6 +930,13 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
853
930
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
854
931
|
}));
|
|
855
932
|
}
|
|
933
|
+
else if (status === 500) {
|
|
934
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
935
|
+
let result500 = null;
|
|
936
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
937
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
938
|
+
}));
|
|
939
|
+
}
|
|
856
940
|
else if (status !== 200 && status !== 204) {
|
|
857
941
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
858
942
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -924,6 +1008,13 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
924
1008
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
925
1009
|
}));
|
|
926
1010
|
}
|
|
1011
|
+
else if (status === 500) {
|
|
1012
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1013
|
+
let result500 = null;
|
|
1014
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1015
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1016
|
+
}));
|
|
1017
|
+
}
|
|
927
1018
|
else if (status !== 200 && status !== 204) {
|
|
928
1019
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
929
1020
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -995,6 +1086,13 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
995
1086
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
996
1087
|
}));
|
|
997
1088
|
}
|
|
1089
|
+
else if (status === 500) {
|
|
1090
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1091
|
+
let result500 = null;
|
|
1092
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1093
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1094
|
+
}));
|
|
1095
|
+
}
|
|
998
1096
|
else if (status !== 200 && status !== 204) {
|
|
999
1097
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1000
1098
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -1056,6 +1154,13 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1056
1154
|
return of(result200);
|
|
1057
1155
|
}));
|
|
1058
1156
|
}
|
|
1157
|
+
else if (status === 500) {
|
|
1158
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1159
|
+
let result500 = null;
|
|
1160
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1161
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1162
|
+
}));
|
|
1163
|
+
}
|
|
1059
1164
|
else if (status !== 200 && status !== 204) {
|
|
1060
1165
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1061
1166
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -1117,6 +1222,13 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1117
1222
|
return of(result200);
|
|
1118
1223
|
}));
|
|
1119
1224
|
}
|
|
1225
|
+
else if (status === 500) {
|
|
1226
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1227
|
+
let result500 = null;
|
|
1228
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1229
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1230
|
+
}));
|
|
1231
|
+
}
|
|
1120
1232
|
else if (status !== 200 && status !== 204) {
|
|
1121
1233
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1122
1234
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -1178,6 +1290,13 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1178
1290
|
return of(result200);
|
|
1179
1291
|
}));
|
|
1180
1292
|
}
|
|
1293
|
+
else if (status === 500) {
|
|
1294
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1295
|
+
let result500 = null;
|
|
1296
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1297
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1298
|
+
}));
|
|
1299
|
+
}
|
|
1181
1300
|
else if (status !== 200 && status !== 204) {
|
|
1182
1301
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1183
1302
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -1239,6 +1358,13 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1239
1358
|
return of(result200);
|
|
1240
1359
|
}));
|
|
1241
1360
|
}
|
|
1361
|
+
else if (status === 500) {
|
|
1362
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1363
|
+
let result500 = null;
|
|
1364
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1365
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1366
|
+
}));
|
|
1367
|
+
}
|
|
1242
1368
|
else if (status !== 200 && status !== 204) {
|
|
1243
1369
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1244
1370
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -1300,6 +1426,13 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1300
1426
|
return of(result200);
|
|
1301
1427
|
}));
|
|
1302
1428
|
}
|
|
1429
|
+
else if (status === 500) {
|
|
1430
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1431
|
+
let result500 = null;
|
|
1432
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1433
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1434
|
+
}));
|
|
1435
|
+
}
|
|
1303
1436
|
else if (status !== 200 && status !== 204) {
|
|
1304
1437
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1305
1438
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -1361,6 +1494,13 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1361
1494
|
return of(result200);
|
|
1362
1495
|
}));
|
|
1363
1496
|
}
|
|
1497
|
+
else if (status === 500) {
|
|
1498
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1499
|
+
let result500 = null;
|
|
1500
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1501
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1502
|
+
}));
|
|
1503
|
+
}
|
|
1364
1504
|
else if (status !== 200 && status !== 204) {
|
|
1365
1505
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1366
1506
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -1422,6 +1562,13 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1422
1562
|
return of(result200);
|
|
1423
1563
|
}));
|
|
1424
1564
|
}
|
|
1565
|
+
else if (status === 500) {
|
|
1566
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1567
|
+
let result500 = null;
|
|
1568
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1569
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1570
|
+
}));
|
|
1571
|
+
}
|
|
1425
1572
|
else if (status !== 200 && status !== 204) {
|
|
1426
1573
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1427
1574
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -1483,6 +1630,13 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1483
1630
|
return of(result200);
|
|
1484
1631
|
}));
|
|
1485
1632
|
}
|
|
1633
|
+
else if (status === 500) {
|
|
1634
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1635
|
+
let result500 = null;
|
|
1636
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1637
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1638
|
+
}));
|
|
1639
|
+
}
|
|
1486
1640
|
else if (status !== 200 && status !== 204) {
|
|
1487
1641
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1488
1642
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -1544,6 +1698,13 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1544
1698
|
return of(result200);
|
|
1545
1699
|
}));
|
|
1546
1700
|
}
|
|
1701
|
+
else if (status === 500) {
|
|
1702
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1703
|
+
let result500 = null;
|
|
1704
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1705
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1706
|
+
}));
|
|
1707
|
+
}
|
|
1547
1708
|
else if (status !== 200 && status !== 204) {
|
|
1548
1709
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1549
1710
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -1605,6 +1766,13 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1605
1766
|
return of(result200);
|
|
1606
1767
|
}));
|
|
1607
1768
|
}
|
|
1769
|
+
else if (status === 500) {
|
|
1770
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1771
|
+
let result500 = null;
|
|
1772
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1773
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1774
|
+
}));
|
|
1775
|
+
}
|
|
1608
1776
|
else if (status !== 200 && status !== 204) {
|
|
1609
1777
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1610
1778
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -1666,6 +1834,13 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1666
1834
|
return of(result200);
|
|
1667
1835
|
}));
|
|
1668
1836
|
}
|
|
1837
|
+
else if (status === 500) {
|
|
1838
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1839
|
+
let result500 = null;
|
|
1840
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1841
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1842
|
+
}));
|
|
1843
|
+
}
|
|
1669
1844
|
else if (status !== 200 && status !== 204) {
|
|
1670
1845
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1671
1846
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -1766,6 +1941,13 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
1766
1941
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
1767
1942
|
}));
|
|
1768
1943
|
}
|
|
1944
|
+
else if (status === 500) {
|
|
1945
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1946
|
+
let result500 = null;
|
|
1947
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1948
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1949
|
+
}));
|
|
1950
|
+
}
|
|
1769
1951
|
else if (status !== 200 && status !== 204) {
|
|
1770
1952
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1771
1953
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -1846,6 +2028,113 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
1846
2028
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
1847
2029
|
}));
|
|
1848
2030
|
}
|
|
2031
|
+
else if (status === 500) {
|
|
2032
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2033
|
+
let result500 = null;
|
|
2034
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2035
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2036
|
+
}));
|
|
2037
|
+
}
|
|
2038
|
+
else if (status !== 200 && status !== 204) {
|
|
2039
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2040
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
2041
|
+
}));
|
|
2042
|
+
}
|
|
2043
|
+
return of(null);
|
|
2044
|
+
}
|
|
2045
|
+
/**
|
|
2046
|
+
* Returns content of the background.
|
|
2047
|
+
* @param id Design identifier.
|
|
2048
|
+
* @param surfaceIndex (optional) Surface index.
|
|
2049
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
2050
|
+
* @param tenantId (optional) Tenant identifier
|
|
2051
|
+
* @return Success
|
|
2052
|
+
*/
|
|
2053
|
+
extractBackground(id, surfaceIndex, privateStorageOwner, tenantId) {
|
|
2054
|
+
let url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/background?";
|
|
2055
|
+
if (id === undefined || id === null)
|
|
2056
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
2057
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2058
|
+
if (surfaceIndex !== undefined && surfaceIndex !== null)
|
|
2059
|
+
url_ += "surfaceIndex=" + encodeURIComponent("" + surfaceIndex) + "&";
|
|
2060
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
2061
|
+
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
2062
|
+
if (tenantId === null)
|
|
2063
|
+
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
2064
|
+
else if (tenantId !== undefined)
|
|
2065
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
2066
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
2067
|
+
let options_ = {
|
|
2068
|
+
observe: "response",
|
|
2069
|
+
responseType: "blob",
|
|
2070
|
+
headers: new HttpHeaders({
|
|
2071
|
+
"Accept": "application/octet-stream"
|
|
2072
|
+
})
|
|
2073
|
+
};
|
|
2074
|
+
return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
|
|
2075
|
+
return this.http.request("get", url_, transformedOptions_);
|
|
2076
|
+
})).pipe(mergeMap((response_) => {
|
|
2077
|
+
return this.transformResult(url_, response_, (r) => this.processExtractBackground(r));
|
|
2078
|
+
})).pipe(catchError((response_) => {
|
|
2079
|
+
if (response_ instanceof HttpResponseBase) {
|
|
2080
|
+
try {
|
|
2081
|
+
return this.transformResult(url_, response_, (r) => this.processExtractBackground(r));
|
|
2082
|
+
}
|
|
2083
|
+
catch (e) {
|
|
2084
|
+
return throwError(e);
|
|
2085
|
+
}
|
|
2086
|
+
}
|
|
2087
|
+
else
|
|
2088
|
+
return throwError(response_);
|
|
2089
|
+
}));
|
|
2090
|
+
}
|
|
2091
|
+
processExtractBackground(response) {
|
|
2092
|
+
const status = response.status;
|
|
2093
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
2094
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
2095
|
+
let _headers = {};
|
|
2096
|
+
if (response.headers) {
|
|
2097
|
+
for (let key of response.headers.keys()) {
|
|
2098
|
+
_headers[key] = response.headers.get(key);
|
|
2099
|
+
}
|
|
2100
|
+
}
|
|
2101
|
+
if (status === 200 || status === 206) {
|
|
2102
|
+
const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
|
|
2103
|
+
const fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
|
|
2104
|
+
const fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
|
|
2105
|
+
return of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
|
|
2106
|
+
}
|
|
2107
|
+
else if (status === 404) {
|
|
2108
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2109
|
+
let result404 = null;
|
|
2110
|
+
result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2111
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
2112
|
+
}));
|
|
2113
|
+
}
|
|
2114
|
+
else if (status === 422) {
|
|
2115
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2116
|
+
let result422 = null;
|
|
2117
|
+
result422 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2118
|
+
return throwException("Client Error", status, _responseText, _headers, result422);
|
|
2119
|
+
}));
|
|
2120
|
+
}
|
|
2121
|
+
else if (status === 401) {
|
|
2122
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2123
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
2124
|
+
}));
|
|
2125
|
+
}
|
|
2126
|
+
else if (status === 403) {
|
|
2127
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2128
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
2129
|
+
}));
|
|
2130
|
+
}
|
|
2131
|
+
else if (status === 500) {
|
|
2132
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2133
|
+
let result500 = null;
|
|
2134
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2135
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2136
|
+
}));
|
|
2137
|
+
}
|
|
1849
2138
|
else if (status !== 200 && status !== 204) {
|
|
1850
2139
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1851
2140
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -1933,6 +2222,13 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
1933
2222
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
1934
2223
|
}));
|
|
1935
2224
|
}
|
|
2225
|
+
else if (status === 500) {
|
|
2226
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2227
|
+
let result500 = null;
|
|
2228
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2229
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2230
|
+
}));
|
|
2231
|
+
}
|
|
1936
2232
|
else if (status !== 200 && status !== 204) {
|
|
1937
2233
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1938
2234
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2021,6 +2317,13 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2021
2317
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
2022
2318
|
}));
|
|
2023
2319
|
}
|
|
2320
|
+
else if (status === 500) {
|
|
2321
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2322
|
+
let result500 = null;
|
|
2323
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2324
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2325
|
+
}));
|
|
2326
|
+
}
|
|
2024
2327
|
else if (status !== 200 && status !== 204) {
|
|
2025
2328
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2026
2329
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2117,6 +2420,13 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2117
2420
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
2118
2421
|
}));
|
|
2119
2422
|
}
|
|
2423
|
+
else if (status === 500) {
|
|
2424
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2425
|
+
let result500 = null;
|
|
2426
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2427
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2428
|
+
}));
|
|
2429
|
+
}
|
|
2120
2430
|
else if (status !== 200 && status !== 204) {
|
|
2121
2431
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2122
2432
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2210,6 +2520,13 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2210
2520
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
2211
2521
|
}));
|
|
2212
2522
|
}
|
|
2523
|
+
else if (status === 500) {
|
|
2524
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2525
|
+
let result500 = null;
|
|
2526
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2527
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2528
|
+
}));
|
|
2529
|
+
}
|
|
2213
2530
|
else if (status !== 200 && status !== 204) {
|
|
2214
2531
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2215
2532
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2297,6 +2614,13 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2297
2614
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
2298
2615
|
}));
|
|
2299
2616
|
}
|
|
2617
|
+
else if (status === 500) {
|
|
2618
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2619
|
+
let result500 = null;
|
|
2620
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2621
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2622
|
+
}));
|
|
2623
|
+
}
|
|
2300
2624
|
else if (status !== 200 && status !== 204) {
|
|
2301
2625
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2302
2626
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2334,7 +2658,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2334
2658
|
responseType: "blob",
|
|
2335
2659
|
headers: new HttpHeaders({
|
|
2336
2660
|
"Content-Type": "application/json",
|
|
2337
|
-
"Accept": "application/json"
|
|
2338
2661
|
})
|
|
2339
2662
|
};
|
|
2340
2663
|
return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
|
|
@@ -2366,9 +2689,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2366
2689
|
}
|
|
2367
2690
|
if (status === 200) {
|
|
2368
2691
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2369
|
-
|
|
2370
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2371
|
-
return of(result200);
|
|
2692
|
+
return of(null);
|
|
2372
2693
|
}));
|
|
2373
2694
|
}
|
|
2374
2695
|
else if (status === 404) {
|
|
@@ -2395,6 +2716,13 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2395
2716
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
2396
2717
|
}));
|
|
2397
2718
|
}
|
|
2719
|
+
else if (status === 500) {
|
|
2720
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2721
|
+
let result500 = null;
|
|
2722
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2723
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2724
|
+
}));
|
|
2725
|
+
}
|
|
2398
2726
|
else if (status !== 200 && status !== 204) {
|
|
2399
2727
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2400
2728
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2489,6 +2817,13 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2489
2817
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
2490
2818
|
}));
|
|
2491
2819
|
}
|
|
2820
|
+
else if (status === 500) {
|
|
2821
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2822
|
+
let result500 = null;
|
|
2823
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2824
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2825
|
+
}));
|
|
2826
|
+
}
|
|
2492
2827
|
else if (status !== 200 && status !== 204) {
|
|
2493
2828
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2494
2829
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2577,6 +2912,13 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2577
2912
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
2578
2913
|
}));
|
|
2579
2914
|
}
|
|
2915
|
+
else if (status === 500) {
|
|
2916
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2917
|
+
let result500 = null;
|
|
2918
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2919
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2920
|
+
}));
|
|
2921
|
+
}
|
|
2580
2922
|
else if (status !== 200 && status !== 204) {
|
|
2581
2923
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2582
2924
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2660,6 +3002,13 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2660
3002
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
2661
3003
|
}));
|
|
2662
3004
|
}
|
|
3005
|
+
else if (status === 500) {
|
|
3006
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3007
|
+
let result500 = null;
|
|
3008
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3009
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3010
|
+
}));
|
|
3011
|
+
}
|
|
2663
3012
|
else if (status !== 200 && status !== 204) {
|
|
2664
3013
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2665
3014
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2668,9 +3017,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2668
3017
|
return of(null);
|
|
2669
3018
|
}
|
|
2670
3019
|
/**
|
|
2671
|
-
* Flatten items
|
|
3020
|
+
* Flatten items.
|
|
2672
3021
|
* @param tenantId (optional) Tenant identifier
|
|
2673
|
-
* @param body (optional) Items to flatten
|
|
3022
|
+
* @param body (optional) Items to flatten.
|
|
2674
3023
|
* @return Success
|
|
2675
3024
|
*/
|
|
2676
3025
|
flattenItems(tenantId, body) {
|
|
@@ -2734,6 +3083,13 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2734
3083
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
2735
3084
|
}));
|
|
2736
3085
|
}
|
|
3086
|
+
else if (status === 500) {
|
|
3087
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3088
|
+
let result500 = null;
|
|
3089
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3090
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3091
|
+
}));
|
|
3092
|
+
}
|
|
2737
3093
|
else if (status !== 200 && status !== 204) {
|
|
2738
3094
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2739
3095
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2828,6 +3184,260 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2828
3184
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
2829
3185
|
}));
|
|
2830
3186
|
}
|
|
3187
|
+
else if (status === 500) {
|
|
3188
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3189
|
+
let result500 = null;
|
|
3190
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3191
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3192
|
+
}));
|
|
3193
|
+
}
|
|
3194
|
+
else if (status !== 200 && status !== 204) {
|
|
3195
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3196
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3197
|
+
}));
|
|
3198
|
+
}
|
|
3199
|
+
return of(null);
|
|
3200
|
+
}
|
|
3201
|
+
/**
|
|
3202
|
+
* Creates a private design from a public design.
|
|
3203
|
+
* @param designId (optional) Public design ID.
|
|
3204
|
+
* @param privateDesignId (optional) Private design ID.
|
|
3205
|
+
* @param privateStorageOwner (optional) Private storage owner ID.
|
|
3206
|
+
* @param tenantId (optional) Tenant identifier
|
|
3207
|
+
* @return Success
|
|
3208
|
+
*/
|
|
3209
|
+
createPrivateDesignFromDesign(designId, privateDesignId, privateStorageOwner, tenantId) {
|
|
3210
|
+
let url_ = this.baseUrl + "/api/atoms/v1/private-designs/from-design?";
|
|
3211
|
+
if (designId !== undefined && designId !== null)
|
|
3212
|
+
url_ += "designId=" + encodeURIComponent("" + designId) + "&";
|
|
3213
|
+
if (privateDesignId !== undefined && privateDesignId !== null)
|
|
3214
|
+
url_ += "privateDesignId=" + encodeURIComponent("" + privateDesignId) + "&";
|
|
3215
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
3216
|
+
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3217
|
+
if (tenantId === null)
|
|
3218
|
+
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
3219
|
+
else if (tenantId !== undefined)
|
|
3220
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
3221
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
3222
|
+
let options_ = {
|
|
3223
|
+
observe: "response",
|
|
3224
|
+
responseType: "blob",
|
|
3225
|
+
headers: new HttpHeaders({})
|
|
3226
|
+
};
|
|
3227
|
+
return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
|
|
3228
|
+
return this.http.request("post", url_, transformedOptions_);
|
|
3229
|
+
})).pipe(mergeMap((response_) => {
|
|
3230
|
+
return this.transformResult(url_, response_, (r) => this.processCreatePrivateDesignFromDesign(r));
|
|
3231
|
+
})).pipe(catchError((response_) => {
|
|
3232
|
+
if (response_ instanceof HttpResponseBase) {
|
|
3233
|
+
try {
|
|
3234
|
+
return this.transformResult(url_, response_, (r) => this.processCreatePrivateDesignFromDesign(r));
|
|
3235
|
+
}
|
|
3236
|
+
catch (e) {
|
|
3237
|
+
return throwError(e);
|
|
3238
|
+
}
|
|
3239
|
+
}
|
|
3240
|
+
else
|
|
3241
|
+
return throwError(response_);
|
|
3242
|
+
}));
|
|
3243
|
+
}
|
|
3244
|
+
processCreatePrivateDesignFromDesign(response) {
|
|
3245
|
+
const status = response.status;
|
|
3246
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
3247
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
3248
|
+
let _headers = {};
|
|
3249
|
+
if (response.headers) {
|
|
3250
|
+
for (let key of response.headers.keys()) {
|
|
3251
|
+
_headers[key] = response.headers.get(key);
|
|
3252
|
+
}
|
|
3253
|
+
}
|
|
3254
|
+
if (status === 201) {
|
|
3255
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3256
|
+
return of(null);
|
|
3257
|
+
}));
|
|
3258
|
+
}
|
|
3259
|
+
else if (status === 401) {
|
|
3260
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3261
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
3262
|
+
}));
|
|
3263
|
+
}
|
|
3264
|
+
else if (status === 403) {
|
|
3265
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3266
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
3267
|
+
}));
|
|
3268
|
+
}
|
|
3269
|
+
else if (status === 500) {
|
|
3270
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3271
|
+
let result500 = null;
|
|
3272
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3273
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3274
|
+
}));
|
|
3275
|
+
}
|
|
3276
|
+
else if (status !== 200 && status !== 204) {
|
|
3277
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3278
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3279
|
+
}));
|
|
3280
|
+
}
|
|
3281
|
+
return of(null);
|
|
3282
|
+
}
|
|
3283
|
+
/**
|
|
3284
|
+
* Creates a private design from a public resource.
|
|
3285
|
+
* @param resourceId (optional) Resource ID.
|
|
3286
|
+
* @param privateDesignId (optional) Private design ID.
|
|
3287
|
+
* @param privateStorageOwner (optional) Private storage owner ID.
|
|
3288
|
+
* @param tenantId (optional) Tenant identifier
|
|
3289
|
+
* @return Success
|
|
3290
|
+
*/
|
|
3291
|
+
createPrivateDesignFromResource(resourceId, privateDesignId, privateStorageOwner, tenantId) {
|
|
3292
|
+
let url_ = this.baseUrl + "/api/atoms/v1/private-designs/from-resource?";
|
|
3293
|
+
if (resourceId !== undefined && resourceId !== null)
|
|
3294
|
+
url_ += "resourceId=" + encodeURIComponent("" + resourceId) + "&";
|
|
3295
|
+
if (privateDesignId !== undefined && privateDesignId !== null)
|
|
3296
|
+
url_ += "privateDesignId=" + encodeURIComponent("" + privateDesignId) + "&";
|
|
3297
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
3298
|
+
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3299
|
+
if (tenantId === null)
|
|
3300
|
+
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
3301
|
+
else if (tenantId !== undefined)
|
|
3302
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
3303
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
3304
|
+
let options_ = {
|
|
3305
|
+
observe: "response",
|
|
3306
|
+
responseType: "blob",
|
|
3307
|
+
headers: new HttpHeaders({})
|
|
3308
|
+
};
|
|
3309
|
+
return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
|
|
3310
|
+
return this.http.request("post", url_, transformedOptions_);
|
|
3311
|
+
})).pipe(mergeMap((response_) => {
|
|
3312
|
+
return this.transformResult(url_, response_, (r) => this.processCreatePrivateDesignFromResource(r));
|
|
3313
|
+
})).pipe(catchError((response_) => {
|
|
3314
|
+
if (response_ instanceof HttpResponseBase) {
|
|
3315
|
+
try {
|
|
3316
|
+
return this.transformResult(url_, response_, (r) => this.processCreatePrivateDesignFromResource(r));
|
|
3317
|
+
}
|
|
3318
|
+
catch (e) {
|
|
3319
|
+
return throwError(e);
|
|
3320
|
+
}
|
|
3321
|
+
}
|
|
3322
|
+
else
|
|
3323
|
+
return throwError(response_);
|
|
3324
|
+
}));
|
|
3325
|
+
}
|
|
3326
|
+
processCreatePrivateDesignFromResource(response) {
|
|
3327
|
+
const status = response.status;
|
|
3328
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
3329
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
3330
|
+
let _headers = {};
|
|
3331
|
+
if (response.headers) {
|
|
3332
|
+
for (let key of response.headers.keys()) {
|
|
3333
|
+
_headers[key] = response.headers.get(key);
|
|
3334
|
+
}
|
|
3335
|
+
}
|
|
3336
|
+
if (status === 201) {
|
|
3337
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3338
|
+
return of(null);
|
|
3339
|
+
}));
|
|
3340
|
+
}
|
|
3341
|
+
else if (status === 401) {
|
|
3342
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3343
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
3344
|
+
}));
|
|
3345
|
+
}
|
|
3346
|
+
else if (status === 403) {
|
|
3347
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3348
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
3349
|
+
}));
|
|
3350
|
+
}
|
|
3351
|
+
else if (status === 500) {
|
|
3352
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3353
|
+
let result500 = null;
|
|
3354
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3355
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3356
|
+
}));
|
|
3357
|
+
}
|
|
3358
|
+
else if (status !== 200 && status !== 204) {
|
|
3359
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3360
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3361
|
+
}));
|
|
3362
|
+
}
|
|
3363
|
+
return of(null);
|
|
3364
|
+
}
|
|
3365
|
+
/**
|
|
3366
|
+
* Renders a design with the specified parameters.
|
|
3367
|
+
* @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied (default value is 'false').
|
|
3368
|
+
* @param tenantId (optional) Tenant identifier
|
|
3369
|
+
* @param body (optional) Render model with preview parameters.
|
|
3370
|
+
* @return Success
|
|
3371
|
+
*/
|
|
3372
|
+
renderDesign(attachment, tenantId, body) {
|
|
3373
|
+
let url_ = this.baseUrl + "/api/atoms/v1/render-design-preview?";
|
|
3374
|
+
if (attachment !== undefined && attachment !== null)
|
|
3375
|
+
url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
|
|
3376
|
+
if (tenantId === null)
|
|
3377
|
+
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
3378
|
+
else if (tenantId !== undefined)
|
|
3379
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
3380
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
3381
|
+
const content_ = JSON.stringify(body);
|
|
3382
|
+
let options_ = {
|
|
3383
|
+
body: content_,
|
|
3384
|
+
observe: "response",
|
|
3385
|
+
responseType: "blob",
|
|
3386
|
+
headers: new HttpHeaders({
|
|
3387
|
+
"Content-Type": "application/json",
|
|
3388
|
+
"Accept": "application/octet-stream"
|
|
3389
|
+
})
|
|
3390
|
+
};
|
|
3391
|
+
return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
|
|
3392
|
+
return this.http.request("post", url_, transformedOptions_);
|
|
3393
|
+
})).pipe(mergeMap((response_) => {
|
|
3394
|
+
return this.transformResult(url_, response_, (r) => this.processRenderDesign(r));
|
|
3395
|
+
})).pipe(catchError((response_) => {
|
|
3396
|
+
if (response_ instanceof HttpResponseBase) {
|
|
3397
|
+
try {
|
|
3398
|
+
return this.transformResult(url_, response_, (r) => this.processRenderDesign(r));
|
|
3399
|
+
}
|
|
3400
|
+
catch (e) {
|
|
3401
|
+
return throwError(e);
|
|
3402
|
+
}
|
|
3403
|
+
}
|
|
3404
|
+
else
|
|
3405
|
+
return throwError(response_);
|
|
3406
|
+
}));
|
|
3407
|
+
}
|
|
3408
|
+
processRenderDesign(response) {
|
|
3409
|
+
const status = response.status;
|
|
3410
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
3411
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
3412
|
+
let _headers = {};
|
|
3413
|
+
if (response.headers) {
|
|
3414
|
+
for (let key of response.headers.keys()) {
|
|
3415
|
+
_headers[key] = response.headers.get(key);
|
|
3416
|
+
}
|
|
3417
|
+
}
|
|
3418
|
+
if (status === 200 || status === 206) {
|
|
3419
|
+
const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
|
|
3420
|
+
const fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
|
|
3421
|
+
const fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
|
|
3422
|
+
return of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
|
|
3423
|
+
}
|
|
3424
|
+
else if (status === 401) {
|
|
3425
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3426
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
3427
|
+
}));
|
|
3428
|
+
}
|
|
3429
|
+
else if (status === 403) {
|
|
3430
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3431
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
3432
|
+
}));
|
|
3433
|
+
}
|
|
3434
|
+
else if (status === 500) {
|
|
3435
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3436
|
+
let result500 = null;
|
|
3437
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3438
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3439
|
+
}));
|
|
3440
|
+
}
|
|
2831
3441
|
else if (status !== 200 && status !== 204) {
|
|
2832
3442
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2833
3443
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2837,9 +3447,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2837
3447
|
}
|
|
2838
3448
|
/**
|
|
2839
3449
|
* Render product proof image with specified parameters.
|
|
2840
|
-
* @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied (default value is 'false')
|
|
3450
|
+
* @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied (default value is 'false').
|
|
2841
3451
|
* @param tenantId (optional) Tenant identifier
|
|
2842
|
-
* @param body (optional) Preview parameters
|
|
3452
|
+
* @param body (optional) Preview parameters.
|
|
2843
3453
|
* @return Success
|
|
2844
3454
|
*/
|
|
2845
3455
|
renderProduct(attachment, tenantId, body) {
|
|
@@ -2858,7 +3468,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2858
3468
|
responseType: "blob",
|
|
2859
3469
|
headers: new HttpHeaders({
|
|
2860
3470
|
"Content-Type": "application/json",
|
|
2861
|
-
"Accept": "application/
|
|
3471
|
+
"Accept": "application/octet-stream"
|
|
2862
3472
|
})
|
|
2863
3473
|
};
|
|
2864
3474
|
return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
|
|
@@ -2904,6 +3514,13 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2904
3514
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
2905
3515
|
}));
|
|
2906
3516
|
}
|
|
3517
|
+
else if (status === 500) {
|
|
3518
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3519
|
+
let result500 = null;
|
|
3520
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3521
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3522
|
+
}));
|
|
3523
|
+
}
|
|
2907
3524
|
else if (status !== 200 && status !== 204) {
|
|
2908
3525
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2909
3526
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2986,6 +3603,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
2986
3603
|
return of(result200);
|
|
2987
3604
|
}));
|
|
2988
3605
|
}
|
|
3606
|
+
else if (status === 500) {
|
|
3607
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3608
|
+
let result500 = null;
|
|
3609
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3610
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3611
|
+
}));
|
|
3612
|
+
}
|
|
2989
3613
|
else if (status !== 200 && status !== 204) {
|
|
2990
3614
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2991
3615
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3054,6 +3678,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
3054
3678
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
3055
3679
|
}));
|
|
3056
3680
|
}
|
|
3681
|
+
else if (status === 500) {
|
|
3682
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3683
|
+
let result500 = null;
|
|
3684
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3685
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3686
|
+
}));
|
|
3687
|
+
}
|
|
3057
3688
|
else if (status !== 200 && status !== 204) {
|
|
3058
3689
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3059
3690
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3122,6 +3753,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
3122
3753
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
3123
3754
|
}));
|
|
3124
3755
|
}
|
|
3756
|
+
else if (status === 500) {
|
|
3757
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3758
|
+
let result500 = null;
|
|
3759
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3760
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3761
|
+
}));
|
|
3762
|
+
}
|
|
3125
3763
|
else if (status !== 200 && status !== 204) {
|
|
3126
3764
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3127
3765
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3185,6 +3823,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
3185
3823
|
return of(result200);
|
|
3186
3824
|
}));
|
|
3187
3825
|
}
|
|
3826
|
+
else if (status === 500) {
|
|
3827
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3828
|
+
let result500 = null;
|
|
3829
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3830
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3831
|
+
}));
|
|
3832
|
+
}
|
|
3188
3833
|
else if (status !== 200 && status !== 204) {
|
|
3189
3834
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3190
3835
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3248,6 +3893,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
3248
3893
|
return of(result200);
|
|
3249
3894
|
}));
|
|
3250
3895
|
}
|
|
3896
|
+
else if (status === 500) {
|
|
3897
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3898
|
+
let result500 = null;
|
|
3899
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3900
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3901
|
+
}));
|
|
3902
|
+
}
|
|
3251
3903
|
else if (status !== 200 && status !== 204) {
|
|
3252
3904
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3253
3905
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3311,6 +3963,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
3311
3963
|
return of(result200);
|
|
3312
3964
|
}));
|
|
3313
3965
|
}
|
|
3966
|
+
else if (status === 500) {
|
|
3967
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3968
|
+
let result500 = null;
|
|
3969
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3970
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3971
|
+
}));
|
|
3972
|
+
}
|
|
3314
3973
|
else if (status !== 200 && status !== 204) {
|
|
3315
3974
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3316
3975
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3429,6 +4088,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
3429
4088
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
3430
4089
|
}));
|
|
3431
4090
|
}
|
|
4091
|
+
else if (status === 500) {
|
|
4092
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4093
|
+
let result500 = null;
|
|
4094
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4095
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4096
|
+
}));
|
|
4097
|
+
}
|
|
3432
4098
|
else if (status !== 200 && status !== 204) {
|
|
3433
4099
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3434
4100
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3488,6 +4154,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
3488
4154
|
return of(result200);
|
|
3489
4155
|
}));
|
|
3490
4156
|
}
|
|
4157
|
+
else if (status === 500) {
|
|
4158
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4159
|
+
let result500 = null;
|
|
4160
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4161
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4162
|
+
}));
|
|
4163
|
+
}
|
|
3491
4164
|
else if (status !== 200 && status !== 204) {
|
|
3492
4165
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3493
4166
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3561,6 +4234,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
3561
4234
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
3562
4235
|
}));
|
|
3563
4236
|
}
|
|
4237
|
+
else if (status === 500) {
|
|
4238
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4239
|
+
let result500 = null;
|
|
4240
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4241
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4242
|
+
}));
|
|
4243
|
+
}
|
|
3564
4244
|
else if (status !== 200 && status !== 204) {
|
|
3565
4245
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3566
4246
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3629,6 +4309,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
3629
4309
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
3630
4310
|
}));
|
|
3631
4311
|
}
|
|
4312
|
+
else if (status === 500) {
|
|
4313
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4314
|
+
let result500 = null;
|
|
4315
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4316
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4317
|
+
}));
|
|
4318
|
+
}
|
|
3632
4319
|
else if (status !== 200 && status !== 204) {
|
|
3633
4320
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3634
4321
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3702,6 +4389,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
3702
4389
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
3703
4390
|
}));
|
|
3704
4391
|
}
|
|
4392
|
+
else if (status === 500) {
|
|
4393
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4394
|
+
let result500 = null;
|
|
4395
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4396
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4397
|
+
}));
|
|
4398
|
+
}
|
|
3705
4399
|
else if (status !== 200 && status !== 204) {
|
|
3706
4400
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3707
4401
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3775,6 +4469,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
3775
4469
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
3776
4470
|
}));
|
|
3777
4471
|
}
|
|
4472
|
+
else if (status === 500) {
|
|
4473
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4474
|
+
let result500 = null;
|
|
4475
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4476
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4477
|
+
}));
|
|
4478
|
+
}
|
|
3778
4479
|
else if (status !== 200 && status !== 204) {
|
|
3779
4480
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3780
4481
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3838,6 +4539,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
3838
4539
|
return of(result200);
|
|
3839
4540
|
}));
|
|
3840
4541
|
}
|
|
4542
|
+
else if (status === 500) {
|
|
4543
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4544
|
+
let result500 = null;
|
|
4545
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4546
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4547
|
+
}));
|
|
4548
|
+
}
|
|
3841
4549
|
else if (status !== 200 && status !== 204) {
|
|
3842
4550
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3843
4551
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3901,6 +4609,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
3901
4609
|
return of(result200);
|
|
3902
4610
|
}));
|
|
3903
4611
|
}
|
|
4612
|
+
else if (status === 500) {
|
|
4613
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4614
|
+
let result500 = null;
|
|
4615
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4616
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4617
|
+
}));
|
|
4618
|
+
}
|
|
3904
4619
|
else if (status !== 200 && status !== 204) {
|
|
3905
4620
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3906
4621
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3964,6 +4679,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
3964
4679
|
return of(result200);
|
|
3965
4680
|
}));
|
|
3966
4681
|
}
|
|
4682
|
+
else if (status === 500) {
|
|
4683
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4684
|
+
let result500 = null;
|
|
4685
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4686
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4687
|
+
}));
|
|
4688
|
+
}
|
|
3967
4689
|
else if (status !== 200 && status !== 204) {
|
|
3968
4690
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3969
4691
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4027,6 +4749,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
4027
4749
|
return of(result200);
|
|
4028
4750
|
}));
|
|
4029
4751
|
}
|
|
4752
|
+
else if (status === 500) {
|
|
4753
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4754
|
+
let result500 = null;
|
|
4755
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4756
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4757
|
+
}));
|
|
4758
|
+
}
|
|
4030
4759
|
else if (status !== 200 && status !== 204) {
|
|
4031
4760
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4032
4761
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4090,6 +4819,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
4090
4819
|
return of(result200);
|
|
4091
4820
|
}));
|
|
4092
4821
|
}
|
|
4822
|
+
else if (status === 500) {
|
|
4823
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4824
|
+
let result500 = null;
|
|
4825
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4826
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4827
|
+
}));
|
|
4828
|
+
}
|
|
4093
4829
|
else if (status !== 200 && status !== 204) {
|
|
4094
4830
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4095
4831
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4153,6 +4889,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
4153
4889
|
return of(result200);
|
|
4154
4890
|
}));
|
|
4155
4891
|
}
|
|
4892
|
+
else if (status === 500) {
|
|
4893
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4894
|
+
let result500 = null;
|
|
4895
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4896
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4897
|
+
}));
|
|
4898
|
+
}
|
|
4156
4899
|
else if (status !== 200 && status !== 204) {
|
|
4157
4900
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4158
4901
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4216,6 +4959,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
4216
4959
|
return of(result200);
|
|
4217
4960
|
}));
|
|
4218
4961
|
}
|
|
4962
|
+
else if (status === 500) {
|
|
4963
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4964
|
+
let result500 = null;
|
|
4965
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4966
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4967
|
+
}));
|
|
4968
|
+
}
|
|
4219
4969
|
else if (status !== 200 && status !== 204) {
|
|
4220
4970
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4221
4971
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4279,6 +5029,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
4279
5029
|
return of(result200);
|
|
4280
5030
|
}));
|
|
4281
5031
|
}
|
|
5032
|
+
else if (status === 500) {
|
|
5033
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
5034
|
+
let result500 = null;
|
|
5035
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5036
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
5037
|
+
}));
|
|
5038
|
+
}
|
|
4282
5039
|
else if (status !== 200 && status !== 204) {
|
|
4283
5040
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4284
5041
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4342,6 +5099,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
4342
5099
|
return of(result200);
|
|
4343
5100
|
}));
|
|
4344
5101
|
}
|
|
5102
|
+
else if (status === 500) {
|
|
5103
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
5104
|
+
let result500 = null;
|
|
5105
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5106
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
5107
|
+
}));
|
|
5108
|
+
}
|
|
4345
5109
|
else if (status !== 200 && status !== 204) {
|
|
4346
5110
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4347
5111
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4405,6 +5169,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
4405
5169
|
return of(result200);
|
|
4406
5170
|
}));
|
|
4407
5171
|
}
|
|
5172
|
+
else if (status === 500) {
|
|
5173
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
5174
|
+
let result500 = null;
|
|
5175
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5176
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
5177
|
+
}));
|
|
5178
|
+
}
|
|
4408
5179
|
else if (status !== 200 && status !== 204) {
|
|
4409
5180
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4410
5181
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4468,6 +5239,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
4468
5239
|
return of(result200);
|
|
4469
5240
|
}));
|
|
4470
5241
|
}
|
|
5242
|
+
else if (status === 500) {
|
|
5243
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
5244
|
+
let result500 = null;
|
|
5245
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5246
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
5247
|
+
}));
|
|
5248
|
+
}
|
|
4471
5249
|
else if (status !== 200 && status !== 204) {
|
|
4472
5250
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4473
5251
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4487,6 +5265,15 @@ DesignAtomsViewerApiClient.ctorParameters = () => [
|
|
|
4487
5265
|
{ type: HttpClient, decorators: [{ type: Inject, args: [HttpClient,] }] },
|
|
4488
5266
|
{ type: String, decorators: [{ type: Optional }, { type: Inject, args: [API_BASE_URL,] }] }
|
|
4489
5267
|
];
|
|
5268
|
+
var DesignElementType;
|
|
5269
|
+
(function (DesignElementType) {
|
|
5270
|
+
DesignElementType["Product"] = "Product";
|
|
5271
|
+
DesignElementType["Design"] = "Design";
|
|
5272
|
+
DesignElementType["Surface"] = "Surface";
|
|
5273
|
+
DesignElementType["Container"] = "Container";
|
|
5274
|
+
DesignElementType["PrintArea"] = "PrintArea";
|
|
5275
|
+
DesignElementType["Item"] = "Item";
|
|
5276
|
+
})(DesignElementType || (DesignElementType = {}));
|
|
4490
5277
|
/** Available patch type */
|
|
4491
5278
|
var ProductPatchType;
|
|
4492
5279
|
(function (ProductPatchType) {
|
|
@@ -4507,6 +5294,14 @@ var ItemSourceType;
|
|
|
4507
5294
|
ItemSourceType["ImageStorage"] = "ImageStorage";
|
|
4508
5295
|
ItemSourceType["PrivateImageStorage"] = "PrivateImageStorage";
|
|
4509
5296
|
})(ItemSourceType || (ItemSourceType = {}));
|
|
5297
|
+
/** Product preview file format. */
|
|
5298
|
+
var ProductPreviewFormat;
|
|
5299
|
+
(function (ProductPreviewFormat) {
|
|
5300
|
+
ProductPreviewFormat["Jpeg"] = "Jpeg";
|
|
5301
|
+
ProductPreviewFormat["Png"] = "Png";
|
|
5302
|
+
ProductPreviewFormat["Tiff"] = "Tiff";
|
|
5303
|
+
ProductPreviewFormat["Pdf"] = "Pdf";
|
|
5304
|
+
})(ProductPreviewFormat || (ProductPreviewFormat = {}));
|
|
4510
5305
|
var ProductProofFormat;
|
|
4511
5306
|
(function (ProductProofFormat) {
|
|
4512
5307
|
ProductProofFormat["Jpeg"] = "Jpeg";
|
|
@@ -4606,5 +5401,5 @@ DesignAtomsApiModule.decorators = [
|
|
|
4606
5401
|
* Generated bundle index. Do not edit.
|
|
4607
5402
|
*/
|
|
4608
5403
|
|
|
4609
|
-
export { API_BASE_URL, ApiClientBase, ApiClientConfiguration, ApiException, BuildInfoApiClient, CreateApiClientConfiguration, DesignAtomsApiModule, DesignAtomsCompatibilityApiClient, DesignAtomsServiceApiClient, DesignAtomsViewerApiClient, ItemSourceType, ItemType, ProductPatchType, ProductProofFormat, ProductProofInterpolationMode };
|
|
5404
|
+
export { API_BASE_URL, ApiClientBase, ApiClientConfiguration, ApiException, BuildInfoApiClient, CreateApiClientConfiguration, DesignAtomsApiModule, DesignAtomsCompatibilityApiClient, DesignAtomsServiceApiClient, DesignAtomsViewerApiClient, DesignElementType, ItemSourceType, ItemType, ProductPatchType, ProductPreviewFormat, ProductProofFormat, ProductProofInterpolationMode };
|
|
4610
5405
|
//# sourceMappingURL=aurigma-ng-design-atoms-api-client.js.map
|