@aurigma/axios-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/dist/cjs/design-atoms-api-client.d.ts +143 -22
- package/dist/cjs/design-atoms-api-client.js +781 -11
- package/dist/cjs/design-atoms-api-client.js.map +1 -1
- package/dist/esm/design-atoms-api-client.d.ts +143 -22
- package/dist/esm/design-atoms-api-client.js +780 -10
- package/dist/esm/design-atoms-api-client.js.map +1 -1
- package/package.json +1 -1
|
@@ -88,6 +88,13 @@ export class BuildInfoApiClient extends ApiClientBase {
|
|
|
88
88
|
const _responseText = response.data;
|
|
89
89
|
return Promise.resolve(null);
|
|
90
90
|
}
|
|
91
|
+
else if (status === 500) {
|
|
92
|
+
const _responseText = response.data;
|
|
93
|
+
let result500 = null;
|
|
94
|
+
let resultData500 = _responseText;
|
|
95
|
+
result500 = JSON.parse(resultData500);
|
|
96
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
97
|
+
}
|
|
91
98
|
else if (status !== 200 && status !== 204) {
|
|
92
99
|
const _responseText = response.data;
|
|
93
100
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -139,6 +146,13 @@ export class BuildInfoApiClient extends ApiClientBase {
|
|
|
139
146
|
result200 = JSON.parse(resultData200);
|
|
140
147
|
return Promise.resolve(result200);
|
|
141
148
|
}
|
|
149
|
+
else if (status === 500) {
|
|
150
|
+
const _responseText = response.data;
|
|
151
|
+
let result500 = null;
|
|
152
|
+
let resultData500 = _responseText;
|
|
153
|
+
result500 = JSON.parse(resultData500);
|
|
154
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
155
|
+
}
|
|
142
156
|
else if (status !== 200 && status !== 204) {
|
|
143
157
|
const _responseText = response.data;
|
|
144
158
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -206,6 +220,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
206
220
|
result200 = JSON.parse(resultData200);
|
|
207
221
|
return Promise.resolve(result200);
|
|
208
222
|
}
|
|
223
|
+
else if (status === 500) {
|
|
224
|
+
const _responseText = response.data;
|
|
225
|
+
let result500 = null;
|
|
226
|
+
let resultData500 = _responseText;
|
|
227
|
+
result500 = JSON.parse(resultData500);
|
|
228
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
229
|
+
}
|
|
209
230
|
else if (status !== 200 && status !== 204) {
|
|
210
231
|
const _responseText = response.data;
|
|
211
232
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -269,6 +290,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
269
290
|
result404 = JSON.parse(resultData404);
|
|
270
291
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
271
292
|
}
|
|
293
|
+
else if (status === 500) {
|
|
294
|
+
const _responseText = response.data;
|
|
295
|
+
let result500 = null;
|
|
296
|
+
let resultData500 = _responseText;
|
|
297
|
+
result500 = JSON.parse(resultData500);
|
|
298
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
299
|
+
}
|
|
272
300
|
else if (status !== 200 && status !== 204) {
|
|
273
301
|
const _responseText = response.data;
|
|
274
302
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -332,6 +360,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
332
360
|
result404 = JSON.parse(resultData404);
|
|
333
361
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
334
362
|
}
|
|
363
|
+
else if (status === 500) {
|
|
364
|
+
const _responseText = response.data;
|
|
365
|
+
let result500 = null;
|
|
366
|
+
let resultData500 = _responseText;
|
|
367
|
+
result500 = JSON.parse(resultData500);
|
|
368
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
369
|
+
}
|
|
335
370
|
else if (status !== 200 && status !== 204) {
|
|
336
371
|
const _responseText = response.data;
|
|
337
372
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -389,6 +424,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
389
424
|
result200 = JSON.parse(resultData200);
|
|
390
425
|
return Promise.resolve(result200);
|
|
391
426
|
}
|
|
427
|
+
else if (status === 500) {
|
|
428
|
+
const _responseText = response.data;
|
|
429
|
+
let result500 = null;
|
|
430
|
+
let resultData500 = _responseText;
|
|
431
|
+
result500 = JSON.parse(resultData500);
|
|
432
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
433
|
+
}
|
|
392
434
|
else if (status !== 200 && status !== 204) {
|
|
393
435
|
const _responseText = response.data;
|
|
394
436
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -446,6 +488,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
446
488
|
result200 = JSON.parse(resultData200);
|
|
447
489
|
return Promise.resolve(result200);
|
|
448
490
|
}
|
|
491
|
+
else if (status === 500) {
|
|
492
|
+
const _responseText = response.data;
|
|
493
|
+
let result500 = null;
|
|
494
|
+
let resultData500 = _responseText;
|
|
495
|
+
result500 = JSON.parse(resultData500);
|
|
496
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
497
|
+
}
|
|
449
498
|
else if (status !== 200 && status !== 204) {
|
|
450
499
|
const _responseText = response.data;
|
|
451
500
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -503,6 +552,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
503
552
|
result200 = JSON.parse(resultData200);
|
|
504
553
|
return Promise.resolve(result200);
|
|
505
554
|
}
|
|
555
|
+
else if (status === 500) {
|
|
556
|
+
const _responseText = response.data;
|
|
557
|
+
let result500 = null;
|
|
558
|
+
let resultData500 = _responseText;
|
|
559
|
+
result500 = JSON.parse(resultData500);
|
|
560
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
561
|
+
}
|
|
506
562
|
else if (status !== 200 && status !== 204) {
|
|
507
563
|
const _responseText = response.data;
|
|
508
564
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -615,6 +671,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
615
671
|
result404 = JSON.parse(resultData404);
|
|
616
672
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
617
673
|
}
|
|
674
|
+
else if (status === 500) {
|
|
675
|
+
const _responseText = response.data;
|
|
676
|
+
let result500 = null;
|
|
677
|
+
let resultData500 = _responseText;
|
|
678
|
+
result500 = JSON.parse(resultData500);
|
|
679
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
680
|
+
}
|
|
618
681
|
else if (status !== 200 && status !== 204) {
|
|
619
682
|
const _responseText = response.data;
|
|
620
683
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -668,6 +731,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
668
731
|
result200 = JSON.parse(resultData200);
|
|
669
732
|
return Promise.resolve(result200);
|
|
670
733
|
}
|
|
734
|
+
else if (status === 500) {
|
|
735
|
+
const _responseText = response.data;
|
|
736
|
+
let result500 = null;
|
|
737
|
+
let resultData500 = _responseText;
|
|
738
|
+
result500 = JSON.parse(resultData500);
|
|
739
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
740
|
+
}
|
|
671
741
|
else if (status !== 200 && status !== 204) {
|
|
672
742
|
const _responseText = response.data;
|
|
673
743
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -735,6 +805,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
735
805
|
result404 = JSON.parse(resultData404);
|
|
736
806
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
737
807
|
}
|
|
808
|
+
else if (status === 500) {
|
|
809
|
+
const _responseText = response.data;
|
|
810
|
+
let result500 = null;
|
|
811
|
+
let resultData500 = _responseText;
|
|
812
|
+
result500 = JSON.parse(resultData500);
|
|
813
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
814
|
+
}
|
|
738
815
|
else if (status !== 200 && status !== 204) {
|
|
739
816
|
const _responseText = response.data;
|
|
740
817
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -798,6 +875,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
798
875
|
result404 = JSON.parse(resultData404);
|
|
799
876
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
800
877
|
}
|
|
878
|
+
else if (status === 500) {
|
|
879
|
+
const _responseText = response.data;
|
|
880
|
+
let result500 = null;
|
|
881
|
+
let resultData500 = _responseText;
|
|
882
|
+
result500 = JSON.parse(resultData500);
|
|
883
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
884
|
+
}
|
|
801
885
|
else if (status !== 200 && status !== 204) {
|
|
802
886
|
const _responseText = response.data;
|
|
803
887
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -865,6 +949,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
865
949
|
result404 = JSON.parse(resultData404);
|
|
866
950
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
867
951
|
}
|
|
952
|
+
else if (status === 500) {
|
|
953
|
+
const _responseText = response.data;
|
|
954
|
+
let result500 = null;
|
|
955
|
+
let resultData500 = _responseText;
|
|
956
|
+
result500 = JSON.parse(resultData500);
|
|
957
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
958
|
+
}
|
|
868
959
|
else if (status !== 200 && status !== 204) {
|
|
869
960
|
const _responseText = response.data;
|
|
870
961
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -932,6 +1023,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
932
1023
|
result404 = JSON.parse(resultData404);
|
|
933
1024
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
934
1025
|
}
|
|
1026
|
+
else if (status === 500) {
|
|
1027
|
+
const _responseText = response.data;
|
|
1028
|
+
let result500 = null;
|
|
1029
|
+
let resultData500 = _responseText;
|
|
1030
|
+
result500 = JSON.parse(resultData500);
|
|
1031
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1032
|
+
}
|
|
935
1033
|
else if (status !== 200 && status !== 204) {
|
|
936
1034
|
const _responseText = response.data;
|
|
937
1035
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -989,6 +1087,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
989
1087
|
result200 = JSON.parse(resultData200);
|
|
990
1088
|
return Promise.resolve(result200);
|
|
991
1089
|
}
|
|
1090
|
+
else if (status === 500) {
|
|
1091
|
+
const _responseText = response.data;
|
|
1092
|
+
let result500 = null;
|
|
1093
|
+
let resultData500 = _responseText;
|
|
1094
|
+
result500 = JSON.parse(resultData500);
|
|
1095
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1096
|
+
}
|
|
992
1097
|
else if (status !== 200 && status !== 204) {
|
|
993
1098
|
const _responseText = response.data;
|
|
994
1099
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -1046,6 +1151,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1046
1151
|
result200 = JSON.parse(resultData200);
|
|
1047
1152
|
return Promise.resolve(result200);
|
|
1048
1153
|
}
|
|
1154
|
+
else if (status === 500) {
|
|
1155
|
+
const _responseText = response.data;
|
|
1156
|
+
let result500 = null;
|
|
1157
|
+
let resultData500 = _responseText;
|
|
1158
|
+
result500 = JSON.parse(resultData500);
|
|
1159
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1160
|
+
}
|
|
1049
1161
|
else if (status !== 200 && status !== 204) {
|
|
1050
1162
|
const _responseText = response.data;
|
|
1051
1163
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -1103,6 +1215,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1103
1215
|
result200 = JSON.parse(resultData200);
|
|
1104
1216
|
return Promise.resolve(result200);
|
|
1105
1217
|
}
|
|
1218
|
+
else if (status === 500) {
|
|
1219
|
+
const _responseText = response.data;
|
|
1220
|
+
let result500 = null;
|
|
1221
|
+
let resultData500 = _responseText;
|
|
1222
|
+
result500 = JSON.parse(resultData500);
|
|
1223
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1224
|
+
}
|
|
1106
1225
|
else if (status !== 200 && status !== 204) {
|
|
1107
1226
|
const _responseText = response.data;
|
|
1108
1227
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -1160,6 +1279,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1160
1279
|
result200 = JSON.parse(resultData200);
|
|
1161
1280
|
return Promise.resolve(result200);
|
|
1162
1281
|
}
|
|
1282
|
+
else if (status === 500) {
|
|
1283
|
+
const _responseText = response.data;
|
|
1284
|
+
let result500 = null;
|
|
1285
|
+
let resultData500 = _responseText;
|
|
1286
|
+
result500 = JSON.parse(resultData500);
|
|
1287
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1288
|
+
}
|
|
1163
1289
|
else if (status !== 200 && status !== 204) {
|
|
1164
1290
|
const _responseText = response.data;
|
|
1165
1291
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -1217,6 +1343,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1217
1343
|
result200 = JSON.parse(resultData200);
|
|
1218
1344
|
return Promise.resolve(result200);
|
|
1219
1345
|
}
|
|
1346
|
+
else if (status === 500) {
|
|
1347
|
+
const _responseText = response.data;
|
|
1348
|
+
let result500 = null;
|
|
1349
|
+
let resultData500 = _responseText;
|
|
1350
|
+
result500 = JSON.parse(resultData500);
|
|
1351
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1352
|
+
}
|
|
1220
1353
|
else if (status !== 200 && status !== 204) {
|
|
1221
1354
|
const _responseText = response.data;
|
|
1222
1355
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -1274,6 +1407,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1274
1407
|
result200 = JSON.parse(resultData200);
|
|
1275
1408
|
return Promise.resolve(result200);
|
|
1276
1409
|
}
|
|
1410
|
+
else if (status === 500) {
|
|
1411
|
+
const _responseText = response.data;
|
|
1412
|
+
let result500 = null;
|
|
1413
|
+
let resultData500 = _responseText;
|
|
1414
|
+
result500 = JSON.parse(resultData500);
|
|
1415
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1416
|
+
}
|
|
1277
1417
|
else if (status !== 200 && status !== 204) {
|
|
1278
1418
|
const _responseText = response.data;
|
|
1279
1419
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -1331,6 +1471,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1331
1471
|
result200 = JSON.parse(resultData200);
|
|
1332
1472
|
return Promise.resolve(result200);
|
|
1333
1473
|
}
|
|
1474
|
+
else if (status === 500) {
|
|
1475
|
+
const _responseText = response.data;
|
|
1476
|
+
let result500 = null;
|
|
1477
|
+
let resultData500 = _responseText;
|
|
1478
|
+
result500 = JSON.parse(resultData500);
|
|
1479
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1480
|
+
}
|
|
1334
1481
|
else if (status !== 200 && status !== 204) {
|
|
1335
1482
|
const _responseText = response.data;
|
|
1336
1483
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -1388,6 +1535,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1388
1535
|
result200 = JSON.parse(resultData200);
|
|
1389
1536
|
return Promise.resolve(result200);
|
|
1390
1537
|
}
|
|
1538
|
+
else if (status === 500) {
|
|
1539
|
+
const _responseText = response.data;
|
|
1540
|
+
let result500 = null;
|
|
1541
|
+
let resultData500 = _responseText;
|
|
1542
|
+
result500 = JSON.parse(resultData500);
|
|
1543
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1544
|
+
}
|
|
1391
1545
|
else if (status !== 200 && status !== 204) {
|
|
1392
1546
|
const _responseText = response.data;
|
|
1393
1547
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -1445,6 +1599,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1445
1599
|
result200 = JSON.parse(resultData200);
|
|
1446
1600
|
return Promise.resolve(result200);
|
|
1447
1601
|
}
|
|
1602
|
+
else if (status === 500) {
|
|
1603
|
+
const _responseText = response.data;
|
|
1604
|
+
let result500 = null;
|
|
1605
|
+
let resultData500 = _responseText;
|
|
1606
|
+
result500 = JSON.parse(resultData500);
|
|
1607
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1608
|
+
}
|
|
1448
1609
|
else if (status !== 200 && status !== 204) {
|
|
1449
1610
|
const _responseText = response.data;
|
|
1450
1611
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -1502,6 +1663,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1502
1663
|
result200 = JSON.parse(resultData200);
|
|
1503
1664
|
return Promise.resolve(result200);
|
|
1504
1665
|
}
|
|
1666
|
+
else if (status === 500) {
|
|
1667
|
+
const _responseText = response.data;
|
|
1668
|
+
let result500 = null;
|
|
1669
|
+
let resultData500 = _responseText;
|
|
1670
|
+
result500 = JSON.parse(resultData500);
|
|
1671
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1672
|
+
}
|
|
1505
1673
|
else if (status !== 200 && status !== 204) {
|
|
1506
1674
|
const _responseText = response.data;
|
|
1507
1675
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -1559,6 +1727,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1559
1727
|
result200 = JSON.parse(resultData200);
|
|
1560
1728
|
return Promise.resolve(result200);
|
|
1561
1729
|
}
|
|
1730
|
+
else if (status === 500) {
|
|
1731
|
+
const _responseText = response.data;
|
|
1732
|
+
let result500 = null;
|
|
1733
|
+
let resultData500 = _responseText;
|
|
1734
|
+
result500 = JSON.parse(resultData500);
|
|
1735
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1736
|
+
}
|
|
1562
1737
|
else if (status !== 200 && status !== 204) {
|
|
1563
1738
|
const _responseText = response.data;
|
|
1564
1739
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -1644,6 +1819,13 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
1644
1819
|
const _responseText = response.data;
|
|
1645
1820
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
1646
1821
|
}
|
|
1822
|
+
else if (status === 500) {
|
|
1823
|
+
const _responseText = response.data;
|
|
1824
|
+
let result500 = null;
|
|
1825
|
+
let resultData500 = _responseText;
|
|
1826
|
+
result500 = JSON.parse(resultData500);
|
|
1827
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1828
|
+
}
|
|
1647
1829
|
else if (status !== 200 && status !== 204) {
|
|
1648
1830
|
const _responseText = response.data;
|
|
1649
1831
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -1718,6 +1900,108 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
1718
1900
|
const _responseText = response.data;
|
|
1719
1901
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
1720
1902
|
}
|
|
1903
|
+
else if (status === 500) {
|
|
1904
|
+
const _responseText = response.data;
|
|
1905
|
+
let result500 = null;
|
|
1906
|
+
let resultData500 = _responseText;
|
|
1907
|
+
result500 = JSON.parse(resultData500);
|
|
1908
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1909
|
+
}
|
|
1910
|
+
else if (status !== 200 && status !== 204) {
|
|
1911
|
+
const _responseText = response.data;
|
|
1912
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1913
|
+
}
|
|
1914
|
+
return Promise.resolve(null);
|
|
1915
|
+
}
|
|
1916
|
+
/**
|
|
1917
|
+
* Returns content of the background.
|
|
1918
|
+
* @param id Design identifier.
|
|
1919
|
+
* @param surfaceIndex (optional) Surface index.
|
|
1920
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
1921
|
+
* @param tenantId (optional) Tenant identifier
|
|
1922
|
+
* @return Success
|
|
1923
|
+
*/
|
|
1924
|
+
extractBackground(id, surfaceIndex, privateStorageOwner, tenantId, cancelToken) {
|
|
1925
|
+
let url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/background?";
|
|
1926
|
+
if (id === undefined || id === null)
|
|
1927
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
1928
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
1929
|
+
if (surfaceIndex !== undefined && surfaceIndex !== null)
|
|
1930
|
+
url_ += "surfaceIndex=" + encodeURIComponent("" + surfaceIndex) + "&";
|
|
1931
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
1932
|
+
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
1933
|
+
if (tenantId === null)
|
|
1934
|
+
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
1935
|
+
else if (tenantId !== undefined)
|
|
1936
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
1937
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
1938
|
+
let options_ = {
|
|
1939
|
+
responseType: "blob",
|
|
1940
|
+
method: "GET",
|
|
1941
|
+
url: url_,
|
|
1942
|
+
headers: {
|
|
1943
|
+
"Accept": "application/octet-stream"
|
|
1944
|
+
},
|
|
1945
|
+
cancelToken
|
|
1946
|
+
};
|
|
1947
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
1948
|
+
return this.instance.request(transformedOptions_);
|
|
1949
|
+
}).catch((_error) => {
|
|
1950
|
+
if (isAxiosError(_error) && _error.response) {
|
|
1951
|
+
return _error.response;
|
|
1952
|
+
}
|
|
1953
|
+
else {
|
|
1954
|
+
throw _error;
|
|
1955
|
+
}
|
|
1956
|
+
}).then((_response) => {
|
|
1957
|
+
return this.transformResult(url_, _response, (_response) => this.processExtractBackground(_response));
|
|
1958
|
+
});
|
|
1959
|
+
}
|
|
1960
|
+
processExtractBackground(response) {
|
|
1961
|
+
const status = response.status;
|
|
1962
|
+
let _headers = {};
|
|
1963
|
+
if (response.headers && typeof response.headers === "object") {
|
|
1964
|
+
for (let k in response.headers) {
|
|
1965
|
+
if (response.headers.hasOwnProperty(k)) {
|
|
1966
|
+
_headers[k] = response.headers[k];
|
|
1967
|
+
}
|
|
1968
|
+
}
|
|
1969
|
+
}
|
|
1970
|
+
if (status === 200 || status === 206) {
|
|
1971
|
+
const contentDisposition = response.headers ? response.headers["content-disposition"] : undefined;
|
|
1972
|
+
const fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
|
|
1973
|
+
const fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
|
|
1974
|
+
return Promise.resolve({ fileName: fileName, status: status, data: new Blob([response.data]), headers: _headers });
|
|
1975
|
+
}
|
|
1976
|
+
else if (status === 404) {
|
|
1977
|
+
const _responseText = response.data;
|
|
1978
|
+
let result404 = null;
|
|
1979
|
+
let resultData404 = _responseText;
|
|
1980
|
+
result404 = JSON.parse(resultData404);
|
|
1981
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
1982
|
+
}
|
|
1983
|
+
else if (status === 422) {
|
|
1984
|
+
const _responseText = response.data;
|
|
1985
|
+
let result422 = null;
|
|
1986
|
+
let resultData422 = _responseText;
|
|
1987
|
+
result422 = JSON.parse(resultData422);
|
|
1988
|
+
return throwException("Client Error", status, _responseText, _headers, result422);
|
|
1989
|
+
}
|
|
1990
|
+
else if (status === 401) {
|
|
1991
|
+
const _responseText = response.data;
|
|
1992
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1993
|
+
}
|
|
1994
|
+
else if (status === 403) {
|
|
1995
|
+
const _responseText = response.data;
|
|
1996
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1997
|
+
}
|
|
1998
|
+
else if (status === 500) {
|
|
1999
|
+
const _responseText = response.data;
|
|
2000
|
+
let result500 = null;
|
|
2001
|
+
let resultData500 = _responseText;
|
|
2002
|
+
result500 = JSON.parse(resultData500);
|
|
2003
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2004
|
+
}
|
|
1721
2005
|
else if (status !== 200 && status !== 204) {
|
|
1722
2006
|
const _responseText = response.data;
|
|
1723
2007
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -1799,6 +2083,13 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
1799
2083
|
const _responseText = response.data;
|
|
1800
2084
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
1801
2085
|
}
|
|
2086
|
+
else if (status === 500) {
|
|
2087
|
+
const _responseText = response.data;
|
|
2088
|
+
let result500 = null;
|
|
2089
|
+
let resultData500 = _responseText;
|
|
2090
|
+
result500 = JSON.parse(resultData500);
|
|
2091
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2092
|
+
}
|
|
1802
2093
|
else if (status !== 200 && status !== 204) {
|
|
1803
2094
|
const _responseText = response.data;
|
|
1804
2095
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -1880,6 +2171,13 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
1880
2171
|
const _responseText = response.data;
|
|
1881
2172
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
1882
2173
|
}
|
|
2174
|
+
else if (status === 500) {
|
|
2175
|
+
const _responseText = response.data;
|
|
2176
|
+
let result500 = null;
|
|
2177
|
+
let resultData500 = _responseText;
|
|
2178
|
+
result500 = JSON.parse(resultData500);
|
|
2179
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2180
|
+
}
|
|
1883
2181
|
else if (status !== 200 && status !== 204) {
|
|
1884
2182
|
const _responseText = response.data;
|
|
1885
2183
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -1969,6 +2267,13 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
1969
2267
|
const _responseText = response.data;
|
|
1970
2268
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
1971
2269
|
}
|
|
2270
|
+
else if (status === 500) {
|
|
2271
|
+
const _responseText = response.data;
|
|
2272
|
+
let result500 = null;
|
|
2273
|
+
let resultData500 = _responseText;
|
|
2274
|
+
result500 = JSON.parse(resultData500);
|
|
2275
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2276
|
+
}
|
|
1972
2277
|
else if (status !== 200 && status !== 204) {
|
|
1973
2278
|
const _responseText = response.data;
|
|
1974
2279
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2057,6 +2362,13 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2057
2362
|
const _responseText = response.data;
|
|
2058
2363
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
2059
2364
|
}
|
|
2365
|
+
else if (status === 500) {
|
|
2366
|
+
const _responseText = response.data;
|
|
2367
|
+
let result500 = null;
|
|
2368
|
+
let resultData500 = _responseText;
|
|
2369
|
+
result500 = JSON.parse(resultData500);
|
|
2370
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2371
|
+
}
|
|
2060
2372
|
else if (status !== 200 && status !== 204) {
|
|
2061
2373
|
const _responseText = response.data;
|
|
2062
2374
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2138,6 +2450,13 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2138
2450
|
const _responseText = response.data;
|
|
2139
2451
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
2140
2452
|
}
|
|
2453
|
+
else if (status === 500) {
|
|
2454
|
+
const _responseText = response.data;
|
|
2455
|
+
let result500 = null;
|
|
2456
|
+
let resultData500 = _responseText;
|
|
2457
|
+
result500 = JSON.parse(resultData500);
|
|
2458
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2459
|
+
}
|
|
2141
2460
|
else if (status !== 200 && status !== 204) {
|
|
2142
2461
|
const _responseText = response.data;
|
|
2143
2462
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2174,7 +2493,6 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2174
2493
|
url: url_,
|
|
2175
2494
|
headers: {
|
|
2176
2495
|
"Content-Type": "application/json",
|
|
2177
|
-
"Accept": "application/json"
|
|
2178
2496
|
},
|
|
2179
2497
|
cancelToken
|
|
2180
2498
|
};
|
|
@@ -2203,10 +2521,7 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2203
2521
|
}
|
|
2204
2522
|
if (status === 200) {
|
|
2205
2523
|
const _responseText = response.data;
|
|
2206
|
-
|
|
2207
|
-
let resultData200 = _responseText;
|
|
2208
|
-
result200 = JSON.parse(resultData200);
|
|
2209
|
-
return Promise.resolve(result200);
|
|
2524
|
+
return Promise.resolve(null);
|
|
2210
2525
|
}
|
|
2211
2526
|
else if (status === 404) {
|
|
2212
2527
|
const _responseText = response.data;
|
|
@@ -2230,6 +2545,13 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2230
2545
|
const _responseText = response.data;
|
|
2231
2546
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
2232
2547
|
}
|
|
2548
|
+
else if (status === 500) {
|
|
2549
|
+
const _responseText = response.data;
|
|
2550
|
+
let result500 = null;
|
|
2551
|
+
let resultData500 = _responseText;
|
|
2552
|
+
result500 = JSON.parse(resultData500);
|
|
2553
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2554
|
+
}
|
|
2233
2555
|
else if (status !== 200 && status !== 204) {
|
|
2234
2556
|
const _responseText = response.data;
|
|
2235
2557
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2318,6 +2640,13 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2318
2640
|
const _responseText = response.data;
|
|
2319
2641
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
2320
2642
|
}
|
|
2643
|
+
else if (status === 500) {
|
|
2644
|
+
const _responseText = response.data;
|
|
2645
|
+
let result500 = null;
|
|
2646
|
+
let resultData500 = _responseText;
|
|
2647
|
+
result500 = JSON.parse(resultData500);
|
|
2648
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2649
|
+
}
|
|
2321
2650
|
else if (status !== 200 && status !== 204) {
|
|
2322
2651
|
const _responseText = response.data;
|
|
2323
2652
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2399,6 +2728,13 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2399
2728
|
const _responseText = response.data;
|
|
2400
2729
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
2401
2730
|
}
|
|
2731
|
+
else if (status === 500) {
|
|
2732
|
+
const _responseText = response.data;
|
|
2733
|
+
let result500 = null;
|
|
2734
|
+
let resultData500 = _responseText;
|
|
2735
|
+
result500 = JSON.parse(resultData500);
|
|
2736
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2737
|
+
}
|
|
2402
2738
|
else if (status !== 200 && status !== 204) {
|
|
2403
2739
|
const _responseText = response.data;
|
|
2404
2740
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2475,6 +2811,13 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2475
2811
|
const _responseText = response.data;
|
|
2476
2812
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
2477
2813
|
}
|
|
2814
|
+
else if (status === 500) {
|
|
2815
|
+
const _responseText = response.data;
|
|
2816
|
+
let result500 = null;
|
|
2817
|
+
let resultData500 = _responseText;
|
|
2818
|
+
result500 = JSON.parse(resultData500);
|
|
2819
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2820
|
+
}
|
|
2478
2821
|
else if (status !== 200 && status !== 204) {
|
|
2479
2822
|
const _responseText = response.data;
|
|
2480
2823
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2482,9 +2825,9 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2482
2825
|
return Promise.resolve(null);
|
|
2483
2826
|
}
|
|
2484
2827
|
/**
|
|
2485
|
-
* Flatten items
|
|
2828
|
+
* Flatten items.
|
|
2486
2829
|
* @param tenantId (optional) Tenant identifier
|
|
2487
|
-
* @param body (optional) Items to flatten
|
|
2830
|
+
* @param body (optional) Items to flatten.
|
|
2488
2831
|
* @return Success
|
|
2489
2832
|
*/
|
|
2490
2833
|
flattenItems(tenantId, body, cancelToken) {
|
|
@@ -2543,6 +2886,13 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2543
2886
|
const _responseText = response.data;
|
|
2544
2887
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
2545
2888
|
}
|
|
2889
|
+
else if (status === 500) {
|
|
2890
|
+
const _responseText = response.data;
|
|
2891
|
+
let result500 = null;
|
|
2892
|
+
let resultData500 = _responseText;
|
|
2893
|
+
result500 = JSON.parse(resultData500);
|
|
2894
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2895
|
+
}
|
|
2546
2896
|
else if (status !== 200 && status !== 204) {
|
|
2547
2897
|
const _responseText = response.data;
|
|
2548
2898
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2631,6 +2981,241 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2631
2981
|
const _responseText = response.data;
|
|
2632
2982
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
2633
2983
|
}
|
|
2984
|
+
else if (status === 500) {
|
|
2985
|
+
const _responseText = response.data;
|
|
2986
|
+
let result500 = null;
|
|
2987
|
+
let resultData500 = _responseText;
|
|
2988
|
+
result500 = JSON.parse(resultData500);
|
|
2989
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2990
|
+
}
|
|
2991
|
+
else if (status !== 200 && status !== 204) {
|
|
2992
|
+
const _responseText = response.data;
|
|
2993
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
2994
|
+
}
|
|
2995
|
+
return Promise.resolve(null);
|
|
2996
|
+
}
|
|
2997
|
+
/**
|
|
2998
|
+
* Creates a private design from a public design.
|
|
2999
|
+
* @param designId (optional) Public design ID.
|
|
3000
|
+
* @param privateDesignId (optional) Private design ID.
|
|
3001
|
+
* @param privateStorageOwner (optional) Private storage owner ID.
|
|
3002
|
+
* @param tenantId (optional) Tenant identifier
|
|
3003
|
+
* @return Success
|
|
3004
|
+
*/
|
|
3005
|
+
createPrivateDesignFromDesign(designId, privateDesignId, privateStorageOwner, tenantId, cancelToken) {
|
|
3006
|
+
let url_ = this.baseUrl + "/api/atoms/v1/private-designs/from-design?";
|
|
3007
|
+
if (designId !== undefined && designId !== null)
|
|
3008
|
+
url_ += "designId=" + encodeURIComponent("" + designId) + "&";
|
|
3009
|
+
if (privateDesignId !== undefined && privateDesignId !== null)
|
|
3010
|
+
url_ += "privateDesignId=" + encodeURIComponent("" + privateDesignId) + "&";
|
|
3011
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
3012
|
+
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3013
|
+
if (tenantId === null)
|
|
3014
|
+
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
3015
|
+
else if (tenantId !== undefined)
|
|
3016
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
3017
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
3018
|
+
let options_ = {
|
|
3019
|
+
method: "POST",
|
|
3020
|
+
url: url_,
|
|
3021
|
+
headers: {},
|
|
3022
|
+
cancelToken
|
|
3023
|
+
};
|
|
3024
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
3025
|
+
return this.instance.request(transformedOptions_);
|
|
3026
|
+
}).catch((_error) => {
|
|
3027
|
+
if (isAxiosError(_error) && _error.response) {
|
|
3028
|
+
return _error.response;
|
|
3029
|
+
}
|
|
3030
|
+
else {
|
|
3031
|
+
throw _error;
|
|
3032
|
+
}
|
|
3033
|
+
}).then((_response) => {
|
|
3034
|
+
return this.transformResult(url_, _response, (_response) => this.processCreatePrivateDesignFromDesign(_response));
|
|
3035
|
+
});
|
|
3036
|
+
}
|
|
3037
|
+
processCreatePrivateDesignFromDesign(response) {
|
|
3038
|
+
const status = response.status;
|
|
3039
|
+
let _headers = {};
|
|
3040
|
+
if (response.headers && typeof response.headers === "object") {
|
|
3041
|
+
for (let k in response.headers) {
|
|
3042
|
+
if (response.headers.hasOwnProperty(k)) {
|
|
3043
|
+
_headers[k] = response.headers[k];
|
|
3044
|
+
}
|
|
3045
|
+
}
|
|
3046
|
+
}
|
|
3047
|
+
if (status === 201) {
|
|
3048
|
+
const _responseText = response.data;
|
|
3049
|
+
return Promise.resolve(null);
|
|
3050
|
+
}
|
|
3051
|
+
else if (status === 401) {
|
|
3052
|
+
const _responseText = response.data;
|
|
3053
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
3054
|
+
}
|
|
3055
|
+
else if (status === 403) {
|
|
3056
|
+
const _responseText = response.data;
|
|
3057
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
3058
|
+
}
|
|
3059
|
+
else if (status === 500) {
|
|
3060
|
+
const _responseText = response.data;
|
|
3061
|
+
let result500 = null;
|
|
3062
|
+
let resultData500 = _responseText;
|
|
3063
|
+
result500 = JSON.parse(resultData500);
|
|
3064
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3065
|
+
}
|
|
3066
|
+
else if (status !== 200 && status !== 204) {
|
|
3067
|
+
const _responseText = response.data;
|
|
3068
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3069
|
+
}
|
|
3070
|
+
return Promise.resolve(null);
|
|
3071
|
+
}
|
|
3072
|
+
/**
|
|
3073
|
+
* Creates a private design from a public resource.
|
|
3074
|
+
* @param resourceId (optional) Resource ID.
|
|
3075
|
+
* @param privateDesignId (optional) Private design ID.
|
|
3076
|
+
* @param privateStorageOwner (optional) Private storage owner ID.
|
|
3077
|
+
* @param tenantId (optional) Tenant identifier
|
|
3078
|
+
* @return Success
|
|
3079
|
+
*/
|
|
3080
|
+
createPrivateDesignFromResource(resourceId, privateDesignId, privateStorageOwner, tenantId, cancelToken) {
|
|
3081
|
+
let url_ = this.baseUrl + "/api/atoms/v1/private-designs/from-resource?";
|
|
3082
|
+
if (resourceId !== undefined && resourceId !== null)
|
|
3083
|
+
url_ += "resourceId=" + encodeURIComponent("" + resourceId) + "&";
|
|
3084
|
+
if (privateDesignId !== undefined && privateDesignId !== null)
|
|
3085
|
+
url_ += "privateDesignId=" + encodeURIComponent("" + privateDesignId) + "&";
|
|
3086
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
3087
|
+
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3088
|
+
if (tenantId === null)
|
|
3089
|
+
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
3090
|
+
else if (tenantId !== undefined)
|
|
3091
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
3092
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
3093
|
+
let options_ = {
|
|
3094
|
+
method: "POST",
|
|
3095
|
+
url: url_,
|
|
3096
|
+
headers: {},
|
|
3097
|
+
cancelToken
|
|
3098
|
+
};
|
|
3099
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
3100
|
+
return this.instance.request(transformedOptions_);
|
|
3101
|
+
}).catch((_error) => {
|
|
3102
|
+
if (isAxiosError(_error) && _error.response) {
|
|
3103
|
+
return _error.response;
|
|
3104
|
+
}
|
|
3105
|
+
else {
|
|
3106
|
+
throw _error;
|
|
3107
|
+
}
|
|
3108
|
+
}).then((_response) => {
|
|
3109
|
+
return this.transformResult(url_, _response, (_response) => this.processCreatePrivateDesignFromResource(_response));
|
|
3110
|
+
});
|
|
3111
|
+
}
|
|
3112
|
+
processCreatePrivateDesignFromResource(response) {
|
|
3113
|
+
const status = response.status;
|
|
3114
|
+
let _headers = {};
|
|
3115
|
+
if (response.headers && typeof response.headers === "object") {
|
|
3116
|
+
for (let k in response.headers) {
|
|
3117
|
+
if (response.headers.hasOwnProperty(k)) {
|
|
3118
|
+
_headers[k] = response.headers[k];
|
|
3119
|
+
}
|
|
3120
|
+
}
|
|
3121
|
+
}
|
|
3122
|
+
if (status === 201) {
|
|
3123
|
+
const _responseText = response.data;
|
|
3124
|
+
return Promise.resolve(null);
|
|
3125
|
+
}
|
|
3126
|
+
else if (status === 401) {
|
|
3127
|
+
const _responseText = response.data;
|
|
3128
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
3129
|
+
}
|
|
3130
|
+
else if (status === 403) {
|
|
3131
|
+
const _responseText = response.data;
|
|
3132
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
3133
|
+
}
|
|
3134
|
+
else if (status === 500) {
|
|
3135
|
+
const _responseText = response.data;
|
|
3136
|
+
let result500 = null;
|
|
3137
|
+
let resultData500 = _responseText;
|
|
3138
|
+
result500 = JSON.parse(resultData500);
|
|
3139
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3140
|
+
}
|
|
3141
|
+
else if (status !== 200 && status !== 204) {
|
|
3142
|
+
const _responseText = response.data;
|
|
3143
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3144
|
+
}
|
|
3145
|
+
return Promise.resolve(null);
|
|
3146
|
+
}
|
|
3147
|
+
/**
|
|
3148
|
+
* Renders a design with the specified parameters.
|
|
3149
|
+
* @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied (default value is 'false').
|
|
3150
|
+
* @param tenantId (optional) Tenant identifier
|
|
3151
|
+
* @param body (optional) Render model with preview parameters.
|
|
3152
|
+
* @return Success
|
|
3153
|
+
*/
|
|
3154
|
+
renderDesign(attachment, tenantId, body, cancelToken) {
|
|
3155
|
+
let url_ = this.baseUrl + "/api/atoms/v1/render-design-preview?";
|
|
3156
|
+
if (attachment !== undefined && attachment !== null)
|
|
3157
|
+
url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
|
|
3158
|
+
if (tenantId === null)
|
|
3159
|
+
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
3160
|
+
else if (tenantId !== undefined)
|
|
3161
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
3162
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
3163
|
+
const content_ = JSON.stringify(body);
|
|
3164
|
+
let options_ = {
|
|
3165
|
+
data: content_,
|
|
3166
|
+
responseType: "blob",
|
|
3167
|
+
method: "POST",
|
|
3168
|
+
url: url_,
|
|
3169
|
+
headers: {
|
|
3170
|
+
"Content-Type": "application/json",
|
|
3171
|
+
"Accept": "application/octet-stream"
|
|
3172
|
+
},
|
|
3173
|
+
cancelToken
|
|
3174
|
+
};
|
|
3175
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
3176
|
+
return this.instance.request(transformedOptions_);
|
|
3177
|
+
}).catch((_error) => {
|
|
3178
|
+
if (isAxiosError(_error) && _error.response) {
|
|
3179
|
+
return _error.response;
|
|
3180
|
+
}
|
|
3181
|
+
else {
|
|
3182
|
+
throw _error;
|
|
3183
|
+
}
|
|
3184
|
+
}).then((_response) => {
|
|
3185
|
+
return this.transformResult(url_, _response, (_response) => this.processRenderDesign(_response));
|
|
3186
|
+
});
|
|
3187
|
+
}
|
|
3188
|
+
processRenderDesign(response) {
|
|
3189
|
+
const status = response.status;
|
|
3190
|
+
let _headers = {};
|
|
3191
|
+
if (response.headers && typeof response.headers === "object") {
|
|
3192
|
+
for (let k in response.headers) {
|
|
3193
|
+
if (response.headers.hasOwnProperty(k)) {
|
|
3194
|
+
_headers[k] = response.headers[k];
|
|
3195
|
+
}
|
|
3196
|
+
}
|
|
3197
|
+
}
|
|
3198
|
+
if (status === 200 || status === 206) {
|
|
3199
|
+
const contentDisposition = response.headers ? response.headers["content-disposition"] : undefined;
|
|
3200
|
+
const fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
|
|
3201
|
+
const fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
|
|
3202
|
+
return Promise.resolve({ fileName: fileName, status: status, data: new Blob([response.data]), headers: _headers });
|
|
3203
|
+
}
|
|
3204
|
+
else if (status === 401) {
|
|
3205
|
+
const _responseText = response.data;
|
|
3206
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
3207
|
+
}
|
|
3208
|
+
else if (status === 403) {
|
|
3209
|
+
const _responseText = response.data;
|
|
3210
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
3211
|
+
}
|
|
3212
|
+
else if (status === 500) {
|
|
3213
|
+
const _responseText = response.data;
|
|
3214
|
+
let result500 = null;
|
|
3215
|
+
let resultData500 = _responseText;
|
|
3216
|
+
result500 = JSON.parse(resultData500);
|
|
3217
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3218
|
+
}
|
|
2634
3219
|
else if (status !== 200 && status !== 204) {
|
|
2635
3220
|
const _responseText = response.data;
|
|
2636
3221
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2639,9 +3224,9 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2639
3224
|
}
|
|
2640
3225
|
/**
|
|
2641
3226
|
* Render product proof image with specified parameters.
|
|
2642
|
-
* @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied (default value is 'false')
|
|
3227
|
+
* @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied (default value is 'false').
|
|
2643
3228
|
* @param tenantId (optional) Tenant identifier
|
|
2644
|
-
* @param body (optional) Preview parameters
|
|
3229
|
+
* @param body (optional) Preview parameters.
|
|
2645
3230
|
* @return Success
|
|
2646
3231
|
*/
|
|
2647
3232
|
renderProduct(attachment, tenantId, body, cancelToken) {
|
|
@@ -2661,7 +3246,7 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2661
3246
|
url: url_,
|
|
2662
3247
|
headers: {
|
|
2663
3248
|
"Content-Type": "application/json",
|
|
2664
|
-
"Accept": "application/
|
|
3249
|
+
"Accept": "application/octet-stream"
|
|
2665
3250
|
},
|
|
2666
3251
|
cancelToken
|
|
2667
3252
|
};
|
|
@@ -2702,6 +3287,13 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2702
3287
|
const _responseText = response.data;
|
|
2703
3288
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
2704
3289
|
}
|
|
3290
|
+
else if (status === 500) {
|
|
3291
|
+
const _responseText = response.data;
|
|
3292
|
+
let result500 = null;
|
|
3293
|
+
let resultData500 = _responseText;
|
|
3294
|
+
result500 = JSON.parse(resultData500);
|
|
3295
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3296
|
+
}
|
|
2705
3297
|
else if (status !== 200 && status !== 204) {
|
|
2706
3298
|
const _responseText = response.data;
|
|
2707
3299
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2771,6 +3363,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
2771
3363
|
result200 = JSON.parse(resultData200);
|
|
2772
3364
|
return Promise.resolve(result200);
|
|
2773
3365
|
}
|
|
3366
|
+
else if (status === 500) {
|
|
3367
|
+
const _responseText = response.data;
|
|
3368
|
+
let result500 = null;
|
|
3369
|
+
let resultData500 = _responseText;
|
|
3370
|
+
result500 = JSON.parse(resultData500);
|
|
3371
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3372
|
+
}
|
|
2774
3373
|
else if (status !== 200 && status !== 204) {
|
|
2775
3374
|
const _responseText = response.data;
|
|
2776
3375
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2836,6 +3435,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
2836
3435
|
result404 = JSON.parse(resultData404);
|
|
2837
3436
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
2838
3437
|
}
|
|
3438
|
+
else if (status === 500) {
|
|
3439
|
+
const _responseText = response.data;
|
|
3440
|
+
let result500 = null;
|
|
3441
|
+
let resultData500 = _responseText;
|
|
3442
|
+
result500 = JSON.parse(resultData500);
|
|
3443
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3444
|
+
}
|
|
2839
3445
|
else if (status !== 200 && status !== 204) {
|
|
2840
3446
|
const _responseText = response.data;
|
|
2841
3447
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2901,6 +3507,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
2901
3507
|
result404 = JSON.parse(resultData404);
|
|
2902
3508
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
2903
3509
|
}
|
|
3510
|
+
else if (status === 500) {
|
|
3511
|
+
const _responseText = response.data;
|
|
3512
|
+
let result500 = null;
|
|
3513
|
+
let resultData500 = _responseText;
|
|
3514
|
+
result500 = JSON.parse(resultData500);
|
|
3515
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3516
|
+
}
|
|
2904
3517
|
else if (status !== 200 && status !== 204) {
|
|
2905
3518
|
const _responseText = response.data;
|
|
2906
3519
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2960,6 +3573,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
2960
3573
|
result200 = JSON.parse(resultData200);
|
|
2961
3574
|
return Promise.resolve(result200);
|
|
2962
3575
|
}
|
|
3576
|
+
else if (status === 500) {
|
|
3577
|
+
const _responseText = response.data;
|
|
3578
|
+
let result500 = null;
|
|
3579
|
+
let resultData500 = _responseText;
|
|
3580
|
+
result500 = JSON.parse(resultData500);
|
|
3581
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3582
|
+
}
|
|
2963
3583
|
else if (status !== 200 && status !== 204) {
|
|
2964
3584
|
const _responseText = response.data;
|
|
2965
3585
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3019,6 +3639,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
3019
3639
|
result200 = JSON.parse(resultData200);
|
|
3020
3640
|
return Promise.resolve(result200);
|
|
3021
3641
|
}
|
|
3642
|
+
else if (status === 500) {
|
|
3643
|
+
const _responseText = response.data;
|
|
3644
|
+
let result500 = null;
|
|
3645
|
+
let resultData500 = _responseText;
|
|
3646
|
+
result500 = JSON.parse(resultData500);
|
|
3647
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3648
|
+
}
|
|
3022
3649
|
else if (status !== 200 && status !== 204) {
|
|
3023
3650
|
const _responseText = response.data;
|
|
3024
3651
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3078,6 +3705,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
3078
3705
|
result200 = JSON.parse(resultData200);
|
|
3079
3706
|
return Promise.resolve(result200);
|
|
3080
3707
|
}
|
|
3708
|
+
else if (status === 500) {
|
|
3709
|
+
const _responseText = response.data;
|
|
3710
|
+
let result500 = null;
|
|
3711
|
+
let resultData500 = _responseText;
|
|
3712
|
+
result500 = JSON.parse(resultData500);
|
|
3713
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3714
|
+
}
|
|
3081
3715
|
else if (status !== 200 && status !== 204) {
|
|
3082
3716
|
const _responseText = response.data;
|
|
3083
3717
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3192,6 +3826,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
3192
3826
|
result404 = JSON.parse(resultData404);
|
|
3193
3827
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
3194
3828
|
}
|
|
3829
|
+
else if (status === 500) {
|
|
3830
|
+
const _responseText = response.data;
|
|
3831
|
+
let result500 = null;
|
|
3832
|
+
let resultData500 = _responseText;
|
|
3833
|
+
result500 = JSON.parse(resultData500);
|
|
3834
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3835
|
+
}
|
|
3195
3836
|
else if (status !== 200 && status !== 204) {
|
|
3196
3837
|
const _responseText = response.data;
|
|
3197
3838
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3247,6 +3888,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
3247
3888
|
result200 = JSON.parse(resultData200);
|
|
3248
3889
|
return Promise.resolve(result200);
|
|
3249
3890
|
}
|
|
3891
|
+
else if (status === 500) {
|
|
3892
|
+
const _responseText = response.data;
|
|
3893
|
+
let result500 = null;
|
|
3894
|
+
let resultData500 = _responseText;
|
|
3895
|
+
result500 = JSON.parse(resultData500);
|
|
3896
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3897
|
+
}
|
|
3250
3898
|
else if (status !== 200 && status !== 204) {
|
|
3251
3899
|
const _responseText = response.data;
|
|
3252
3900
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3316,6 +3964,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
3316
3964
|
result404 = JSON.parse(resultData404);
|
|
3317
3965
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
3318
3966
|
}
|
|
3967
|
+
else if (status === 500) {
|
|
3968
|
+
const _responseText = response.data;
|
|
3969
|
+
let result500 = null;
|
|
3970
|
+
let resultData500 = _responseText;
|
|
3971
|
+
result500 = JSON.parse(resultData500);
|
|
3972
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3973
|
+
}
|
|
3319
3974
|
else if (status !== 200 && status !== 204) {
|
|
3320
3975
|
const _responseText = response.data;
|
|
3321
3976
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3381,6 +4036,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
3381
4036
|
result404 = JSON.parse(resultData404);
|
|
3382
4037
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
3383
4038
|
}
|
|
4039
|
+
else if (status === 500) {
|
|
4040
|
+
const _responseText = response.data;
|
|
4041
|
+
let result500 = null;
|
|
4042
|
+
let resultData500 = _responseText;
|
|
4043
|
+
result500 = JSON.parse(resultData500);
|
|
4044
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4045
|
+
}
|
|
3384
4046
|
else if (status !== 200 && status !== 204) {
|
|
3385
4047
|
const _responseText = response.data;
|
|
3386
4048
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3450,6 +4112,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
3450
4112
|
result404 = JSON.parse(resultData404);
|
|
3451
4113
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
3452
4114
|
}
|
|
4115
|
+
else if (status === 500) {
|
|
4116
|
+
const _responseText = response.data;
|
|
4117
|
+
let result500 = null;
|
|
4118
|
+
let resultData500 = _responseText;
|
|
4119
|
+
result500 = JSON.parse(resultData500);
|
|
4120
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4121
|
+
}
|
|
3453
4122
|
else if (status !== 200 && status !== 204) {
|
|
3454
4123
|
const _responseText = response.data;
|
|
3455
4124
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3519,6 +4188,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
3519
4188
|
result404 = JSON.parse(resultData404);
|
|
3520
4189
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
3521
4190
|
}
|
|
4191
|
+
else if (status === 500) {
|
|
4192
|
+
const _responseText = response.data;
|
|
4193
|
+
let result500 = null;
|
|
4194
|
+
let resultData500 = _responseText;
|
|
4195
|
+
result500 = JSON.parse(resultData500);
|
|
4196
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4197
|
+
}
|
|
3522
4198
|
else if (status !== 200 && status !== 204) {
|
|
3523
4199
|
const _responseText = response.data;
|
|
3524
4200
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3578,6 +4254,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
3578
4254
|
result200 = JSON.parse(resultData200);
|
|
3579
4255
|
return Promise.resolve(result200);
|
|
3580
4256
|
}
|
|
4257
|
+
else if (status === 500) {
|
|
4258
|
+
const _responseText = response.data;
|
|
4259
|
+
let result500 = null;
|
|
4260
|
+
let resultData500 = _responseText;
|
|
4261
|
+
result500 = JSON.parse(resultData500);
|
|
4262
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4263
|
+
}
|
|
3581
4264
|
else if (status !== 200 && status !== 204) {
|
|
3582
4265
|
const _responseText = response.data;
|
|
3583
4266
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3637,6 +4320,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
3637
4320
|
result200 = JSON.parse(resultData200);
|
|
3638
4321
|
return Promise.resolve(result200);
|
|
3639
4322
|
}
|
|
4323
|
+
else if (status === 500) {
|
|
4324
|
+
const _responseText = response.data;
|
|
4325
|
+
let result500 = null;
|
|
4326
|
+
let resultData500 = _responseText;
|
|
4327
|
+
result500 = JSON.parse(resultData500);
|
|
4328
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4329
|
+
}
|
|
3640
4330
|
else if (status !== 200 && status !== 204) {
|
|
3641
4331
|
const _responseText = response.data;
|
|
3642
4332
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3696,6 +4386,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
3696
4386
|
result200 = JSON.parse(resultData200);
|
|
3697
4387
|
return Promise.resolve(result200);
|
|
3698
4388
|
}
|
|
4389
|
+
else if (status === 500) {
|
|
4390
|
+
const _responseText = response.data;
|
|
4391
|
+
let result500 = null;
|
|
4392
|
+
let resultData500 = _responseText;
|
|
4393
|
+
result500 = JSON.parse(resultData500);
|
|
4394
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4395
|
+
}
|
|
3699
4396
|
else if (status !== 200 && status !== 204) {
|
|
3700
4397
|
const _responseText = response.data;
|
|
3701
4398
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3755,6 +4452,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
3755
4452
|
result200 = JSON.parse(resultData200);
|
|
3756
4453
|
return Promise.resolve(result200);
|
|
3757
4454
|
}
|
|
4455
|
+
else if (status === 500) {
|
|
4456
|
+
const _responseText = response.data;
|
|
4457
|
+
let result500 = null;
|
|
4458
|
+
let resultData500 = _responseText;
|
|
4459
|
+
result500 = JSON.parse(resultData500);
|
|
4460
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4461
|
+
}
|
|
3758
4462
|
else if (status !== 200 && status !== 204) {
|
|
3759
4463
|
const _responseText = response.data;
|
|
3760
4464
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3814,6 +4518,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
3814
4518
|
result200 = JSON.parse(resultData200);
|
|
3815
4519
|
return Promise.resolve(result200);
|
|
3816
4520
|
}
|
|
4521
|
+
else if (status === 500) {
|
|
4522
|
+
const _responseText = response.data;
|
|
4523
|
+
let result500 = null;
|
|
4524
|
+
let resultData500 = _responseText;
|
|
4525
|
+
result500 = JSON.parse(resultData500);
|
|
4526
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4527
|
+
}
|
|
3817
4528
|
else if (status !== 200 && status !== 204) {
|
|
3818
4529
|
const _responseText = response.data;
|
|
3819
4530
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3873,6 +4584,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
3873
4584
|
result200 = JSON.parse(resultData200);
|
|
3874
4585
|
return Promise.resolve(result200);
|
|
3875
4586
|
}
|
|
4587
|
+
else if (status === 500) {
|
|
4588
|
+
const _responseText = response.data;
|
|
4589
|
+
let result500 = null;
|
|
4590
|
+
let resultData500 = _responseText;
|
|
4591
|
+
result500 = JSON.parse(resultData500);
|
|
4592
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4593
|
+
}
|
|
3876
4594
|
else if (status !== 200 && status !== 204) {
|
|
3877
4595
|
const _responseText = response.data;
|
|
3878
4596
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3932,6 +4650,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
3932
4650
|
result200 = JSON.parse(resultData200);
|
|
3933
4651
|
return Promise.resolve(result200);
|
|
3934
4652
|
}
|
|
4653
|
+
else if (status === 500) {
|
|
4654
|
+
const _responseText = response.data;
|
|
4655
|
+
let result500 = null;
|
|
4656
|
+
let resultData500 = _responseText;
|
|
4657
|
+
result500 = JSON.parse(resultData500);
|
|
4658
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4659
|
+
}
|
|
3935
4660
|
else if (status !== 200 && status !== 204) {
|
|
3936
4661
|
const _responseText = response.data;
|
|
3937
4662
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3991,6 +4716,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
3991
4716
|
result200 = JSON.parse(resultData200);
|
|
3992
4717
|
return Promise.resolve(result200);
|
|
3993
4718
|
}
|
|
4719
|
+
else if (status === 500) {
|
|
4720
|
+
const _responseText = response.data;
|
|
4721
|
+
let result500 = null;
|
|
4722
|
+
let resultData500 = _responseText;
|
|
4723
|
+
result500 = JSON.parse(resultData500);
|
|
4724
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4725
|
+
}
|
|
3994
4726
|
else if (status !== 200 && status !== 204) {
|
|
3995
4727
|
const _responseText = response.data;
|
|
3996
4728
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4050,6 +4782,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
4050
4782
|
result200 = JSON.parse(resultData200);
|
|
4051
4783
|
return Promise.resolve(result200);
|
|
4052
4784
|
}
|
|
4785
|
+
else if (status === 500) {
|
|
4786
|
+
const _responseText = response.data;
|
|
4787
|
+
let result500 = null;
|
|
4788
|
+
let resultData500 = _responseText;
|
|
4789
|
+
result500 = JSON.parse(resultData500);
|
|
4790
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4791
|
+
}
|
|
4053
4792
|
else if (status !== 200 && status !== 204) {
|
|
4054
4793
|
const _responseText = response.data;
|
|
4055
4794
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4109,6 +4848,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
4109
4848
|
result200 = JSON.parse(resultData200);
|
|
4110
4849
|
return Promise.resolve(result200);
|
|
4111
4850
|
}
|
|
4851
|
+
else if (status === 500) {
|
|
4852
|
+
const _responseText = response.data;
|
|
4853
|
+
let result500 = null;
|
|
4854
|
+
let resultData500 = _responseText;
|
|
4855
|
+
result500 = JSON.parse(resultData500);
|
|
4856
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4857
|
+
}
|
|
4112
4858
|
else if (status !== 200 && status !== 204) {
|
|
4113
4859
|
const _responseText = response.data;
|
|
4114
4860
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4168,6 +4914,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
4168
4914
|
result200 = JSON.parse(resultData200);
|
|
4169
4915
|
return Promise.resolve(result200);
|
|
4170
4916
|
}
|
|
4917
|
+
else if (status === 500) {
|
|
4918
|
+
const _responseText = response.data;
|
|
4919
|
+
let result500 = null;
|
|
4920
|
+
let resultData500 = _responseText;
|
|
4921
|
+
result500 = JSON.parse(resultData500);
|
|
4922
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4923
|
+
}
|
|
4171
4924
|
else if (status !== 200 && status !== 204) {
|
|
4172
4925
|
const _responseText = response.data;
|
|
4173
4926
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4175,6 +4928,15 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
4175
4928
|
return Promise.resolve(null);
|
|
4176
4929
|
}
|
|
4177
4930
|
}
|
|
4931
|
+
export var DesignElementType;
|
|
4932
|
+
(function (DesignElementType) {
|
|
4933
|
+
DesignElementType["Product"] = "Product";
|
|
4934
|
+
DesignElementType["Design"] = "Design";
|
|
4935
|
+
DesignElementType["Surface"] = "Surface";
|
|
4936
|
+
DesignElementType["Container"] = "Container";
|
|
4937
|
+
DesignElementType["PrintArea"] = "PrintArea";
|
|
4938
|
+
DesignElementType["Item"] = "Item";
|
|
4939
|
+
})(DesignElementType || (DesignElementType = {}));
|
|
4178
4940
|
/** Available patch type */
|
|
4179
4941
|
export var ProductPatchType;
|
|
4180
4942
|
(function (ProductPatchType) {
|
|
@@ -4195,6 +4957,14 @@ export var ItemSourceType;
|
|
|
4195
4957
|
ItemSourceType["ImageStorage"] = "ImageStorage";
|
|
4196
4958
|
ItemSourceType["PrivateImageStorage"] = "PrivateImageStorage";
|
|
4197
4959
|
})(ItemSourceType || (ItemSourceType = {}));
|
|
4960
|
+
/** Product preview file format. */
|
|
4961
|
+
export var ProductPreviewFormat;
|
|
4962
|
+
(function (ProductPreviewFormat) {
|
|
4963
|
+
ProductPreviewFormat["Jpeg"] = "Jpeg";
|
|
4964
|
+
ProductPreviewFormat["Png"] = "Png";
|
|
4965
|
+
ProductPreviewFormat["Tiff"] = "Tiff";
|
|
4966
|
+
ProductPreviewFormat["Pdf"] = "Pdf";
|
|
4967
|
+
})(ProductPreviewFormat || (ProductPreviewFormat = {}));
|
|
4198
4968
|
export var ProductProofFormat;
|
|
4199
4969
|
(function (ProductProofFormat) {
|
|
4200
4970
|
ProductProofFormat["Jpeg"] = "Jpeg";
|