@aurigma/ng-design-atoms-api-client 2.61.1 → 2.62.5
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 +781 -643
- 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 +793 -648
- 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 +793 -648
- package/fesm2015/aurigma-ng-design-atoms-api-client.js.map +1 -1
- package/lib/design-atoms-api-client.d.ts +514 -531
- package/package.json +1 -1
|
@@ -409,7 +409,6 @@
|
|
|
409
409
|
};
|
|
410
410
|
BuildInfoApiClient.prototype.processHeadInfo = function (response) {
|
|
411
411
|
var e_1, _a;
|
|
412
|
-
var _this = this;
|
|
413
412
|
var status = response.status;
|
|
414
413
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
415
414
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -434,13 +433,6 @@
|
|
|
434
433
|
return rxjs.of(null);
|
|
435
434
|
}));
|
|
436
435
|
}
|
|
437
|
-
else if (status === 500) {
|
|
438
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
439
|
-
var result500 = null;
|
|
440
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
441
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
442
|
-
}));
|
|
443
|
-
}
|
|
444
436
|
else if (status !== 200 && status !== 204) {
|
|
445
437
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
446
438
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -509,13 +501,6 @@
|
|
|
509
501
|
return rxjs.of(result200);
|
|
510
502
|
}));
|
|
511
503
|
}
|
|
512
|
-
else if (status === 500) {
|
|
513
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
514
|
-
var result500 = null;
|
|
515
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
516
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
517
|
-
}));
|
|
518
|
-
}
|
|
519
504
|
else if (status !== 200 && status !== 204) {
|
|
520
505
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
521
506
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -563,7 +548,7 @@
|
|
|
563
548
|
responseType: "blob",
|
|
564
549
|
headers: new i1.HttpHeaders({
|
|
565
550
|
"Content-Type": "application/json",
|
|
566
|
-
"Accept": "
|
|
551
|
+
"Accept": "text/css"
|
|
567
552
|
})
|
|
568
553
|
};
|
|
569
554
|
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
@@ -612,11 +597,14 @@
|
|
|
612
597
|
return rxjs.of(result200);
|
|
613
598
|
}));
|
|
614
599
|
}
|
|
615
|
-
else if (status ===
|
|
600
|
+
else if (status === 401) {
|
|
601
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
602
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
603
|
+
}));
|
|
604
|
+
}
|
|
605
|
+
else if (status === 403) {
|
|
616
606
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
617
|
-
|
|
618
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
619
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
607
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
620
608
|
}));
|
|
621
609
|
}
|
|
622
610
|
else if (status !== 200 && status !== 204) {
|
|
@@ -698,11 +686,14 @@
|
|
|
698
686
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
699
687
|
}));
|
|
700
688
|
}
|
|
701
|
-
else if (status ===
|
|
689
|
+
else if (status === 401) {
|
|
690
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
691
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
692
|
+
}));
|
|
693
|
+
}
|
|
694
|
+
else if (status === 403) {
|
|
702
695
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
703
|
-
|
|
704
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
705
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
696
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
706
697
|
}));
|
|
707
698
|
}
|
|
708
699
|
else if (status !== 200 && status !== 204) {
|
|
@@ -779,11 +770,14 @@
|
|
|
779
770
|
return rxjs.of(result200);
|
|
780
771
|
}));
|
|
781
772
|
}
|
|
782
|
-
else if (status ===
|
|
773
|
+
else if (status === 401) {
|
|
774
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
775
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
776
|
+
}));
|
|
777
|
+
}
|
|
778
|
+
else if (status === 403) {
|
|
783
779
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
784
|
-
|
|
785
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
786
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
780
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
787
781
|
}));
|
|
788
782
|
}
|
|
789
783
|
else if (status !== 200 && status !== 204) {
|
|
@@ -860,11 +854,14 @@
|
|
|
860
854
|
return rxjs.of(result200);
|
|
861
855
|
}));
|
|
862
856
|
}
|
|
863
|
-
else if (status ===
|
|
857
|
+
else if (status === 401) {
|
|
858
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
859
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
860
|
+
}));
|
|
861
|
+
}
|
|
862
|
+
else if (status === 403) {
|
|
864
863
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
865
|
-
|
|
866
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
867
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
864
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
868
865
|
}));
|
|
869
866
|
}
|
|
870
867
|
else if (status !== 200 && status !== 204) {
|
|
@@ -884,7 +881,9 @@
|
|
|
884
881
|
if (tenantId === undefined || tenantId === null)
|
|
885
882
|
throw new Error("The parameter 'tenantId' must be defined.");
|
|
886
883
|
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
887
|
-
if (fontKey
|
|
884
|
+
if (fontKey === null)
|
|
885
|
+
throw new Error("The parameter 'fontKey' cannot be null.");
|
|
886
|
+
else if (fontKey !== undefined)
|
|
888
887
|
url_ += "fontKey=" + encodeURIComponent("" + fontKey) + "&";
|
|
889
888
|
url_ = url_.replace(/[?&]$/, "");
|
|
890
889
|
var options_ = {
|
|
@@ -946,11 +945,14 @@
|
|
|
946
945
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
947
946
|
}));
|
|
948
947
|
}
|
|
949
|
-
else if (status ===
|
|
948
|
+
else if (status === 401) {
|
|
949
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
950
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
951
|
+
}));
|
|
952
|
+
}
|
|
953
|
+
else if (status === 403) {
|
|
950
954
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
951
|
-
|
|
952
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
953
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
955
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
954
956
|
}));
|
|
955
957
|
}
|
|
956
958
|
else if (status !== 200 && status !== 204) {
|
|
@@ -1016,17 +1018,21 @@
|
|
|
1016
1018
|
finally { if (e_8) throw e_8.error; }
|
|
1017
1019
|
}
|
|
1018
1020
|
}
|
|
1019
|
-
if (status === 200
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1021
|
+
if (status === 200) {
|
|
1022
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
1023
|
+
var result200 = null;
|
|
1024
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
1025
|
+
return rxjs.of(result200);
|
|
1026
|
+
}));
|
|
1027
|
+
}
|
|
1028
|
+
else if (status === 401) {
|
|
1029
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
1030
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1031
|
+
}));
|
|
1024
1032
|
}
|
|
1025
|
-
else if (status ===
|
|
1033
|
+
else if (status === 403) {
|
|
1026
1034
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
1027
|
-
|
|
1028
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
1029
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1035
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1030
1036
|
}));
|
|
1031
1037
|
}
|
|
1032
1038
|
else if (status !== 200 && status !== 204) {
|
|
@@ -1103,11 +1109,14 @@
|
|
|
1103
1109
|
return rxjs.of(result200);
|
|
1104
1110
|
}));
|
|
1105
1111
|
}
|
|
1106
|
-
else if (status ===
|
|
1112
|
+
else if (status === 401) {
|
|
1113
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
1114
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1115
|
+
}));
|
|
1116
|
+
}
|
|
1117
|
+
else if (status === 403) {
|
|
1107
1118
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
1108
|
-
|
|
1109
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
1110
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1119
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1111
1120
|
}));
|
|
1112
1121
|
}
|
|
1113
1122
|
else if (status !== 200 && status !== 204) {
|
|
@@ -1184,11 +1193,14 @@
|
|
|
1184
1193
|
return rxjs.of(result200);
|
|
1185
1194
|
}));
|
|
1186
1195
|
}
|
|
1187
|
-
else if (status ===
|
|
1196
|
+
else if (status === 401) {
|
|
1197
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
1198
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1199
|
+
}));
|
|
1200
|
+
}
|
|
1201
|
+
else if (status === 403) {
|
|
1188
1202
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
1189
|
-
|
|
1190
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
1191
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1203
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1192
1204
|
}));
|
|
1193
1205
|
}
|
|
1194
1206
|
else if (status !== 200 && status !== 204) {
|
|
@@ -1265,11 +1277,14 @@
|
|
|
1265
1277
|
return rxjs.of(result200);
|
|
1266
1278
|
}));
|
|
1267
1279
|
}
|
|
1268
|
-
else if (status ===
|
|
1280
|
+
else if (status === 401) {
|
|
1281
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
1282
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1283
|
+
}));
|
|
1284
|
+
}
|
|
1285
|
+
else if (status === 403) {
|
|
1269
1286
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
1270
|
-
|
|
1271
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
1272
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1287
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1273
1288
|
}));
|
|
1274
1289
|
}
|
|
1275
1290
|
else if (status !== 200 && status !== 204) {
|
|
@@ -1306,41 +1321,77 @@
|
|
|
1306
1321
|
if (tenantId === undefined || tenantId === null)
|
|
1307
1322
|
throw new Error("The parameter 'tenantId' must be defined.");
|
|
1308
1323
|
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
1309
|
-
if (f
|
|
1324
|
+
if (f === null)
|
|
1325
|
+
throw new Error("The parameter 'f' cannot be null.");
|
|
1326
|
+
else if (f !== undefined)
|
|
1310
1327
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
1311
|
-
if (w
|
|
1328
|
+
if (w === null)
|
|
1329
|
+
throw new Error("The parameter 'w' cannot be null.");
|
|
1330
|
+
else if (w !== undefined)
|
|
1312
1331
|
url_ += "w=" + encodeURIComponent("" + w) + "&";
|
|
1313
|
-
if (h
|
|
1332
|
+
if (h === null)
|
|
1333
|
+
throw new Error("The parameter 'h' cannot be null.");
|
|
1334
|
+
else if (h !== undefined)
|
|
1314
1335
|
url_ += "h=" + encodeURIComponent("" + h) + "&";
|
|
1315
|
-
if (cmyk
|
|
1336
|
+
if (cmyk === null)
|
|
1337
|
+
throw new Error("The parameter 'cmyk' cannot be null.");
|
|
1338
|
+
else if (cmyk !== undefined)
|
|
1316
1339
|
url_ += "cmyk=" + encodeURIComponent("" + cmyk) + "&";
|
|
1317
|
-
if (rgb
|
|
1340
|
+
if (rgb === null)
|
|
1341
|
+
throw new Error("The parameter 'rgb' cannot be null.");
|
|
1342
|
+
else if (rgb !== undefined)
|
|
1318
1343
|
url_ += "rgb=" + encodeURIComponent("" + rgb) + "&";
|
|
1319
|
-
if (grayscale
|
|
1344
|
+
if (grayscale === null)
|
|
1345
|
+
throw new Error("The parameter 'grayscale' cannot be null.");
|
|
1346
|
+
else if (grayscale !== undefined)
|
|
1320
1347
|
url_ += "grayscale=" + encodeURIComponent("" + grayscale) + "&";
|
|
1321
|
-
if (target
|
|
1348
|
+
if (target === null)
|
|
1349
|
+
throw new Error("The parameter 'target' cannot be null.");
|
|
1350
|
+
else if (target !== undefined)
|
|
1322
1351
|
url_ += "target=" + encodeURIComponent("" + target) + "&";
|
|
1323
|
-
if (sq
|
|
1352
|
+
if (sq === null)
|
|
1353
|
+
throw new Error("The parameter 'sq' cannot be null.");
|
|
1354
|
+
else if (sq !== undefined)
|
|
1324
1355
|
url_ += "sq=" + encodeURIComponent("" + sq) + "&";
|
|
1325
|
-
if (effect
|
|
1356
|
+
if (effect === null)
|
|
1357
|
+
throw new Error("The parameter 'effect' cannot be null.");
|
|
1358
|
+
else if (effect !== undefined)
|
|
1326
1359
|
url_ += "effect=" + encodeURIComponent("" + effect) + "&";
|
|
1327
|
-
if (kp
|
|
1360
|
+
if (kp === null)
|
|
1361
|
+
throw new Error("The parameter 'kp' cannot be null.");
|
|
1362
|
+
else if (kp !== undefined)
|
|
1328
1363
|
url_ += "kp=" + encodeURIComponent("" + kp) + "&";
|
|
1329
|
-
if (color
|
|
1364
|
+
if (color === null)
|
|
1365
|
+
throw new Error("The parameter 'color' cannot be null.");
|
|
1366
|
+
else if (color !== undefined)
|
|
1330
1367
|
url_ += "color=" + encodeURIComponent("" + color) + "&";
|
|
1331
|
-
if (obm
|
|
1368
|
+
if (obm === null)
|
|
1369
|
+
throw new Error("The parameter 'obm' cannot be null.");
|
|
1370
|
+
else if (obm !== undefined)
|
|
1332
1371
|
url_ += "obm=" + encodeURIComponent("" + obm) + "&";
|
|
1333
|
-
if (oo
|
|
1372
|
+
if (oo === null)
|
|
1373
|
+
throw new Error("The parameter 'oo' cannot be null.");
|
|
1374
|
+
else if (oo !== undefined)
|
|
1334
1375
|
url_ += "oo=" + encodeURIComponent("" + oo) + "&";
|
|
1335
|
-
if (alphaMask
|
|
1376
|
+
if (alphaMask === null)
|
|
1377
|
+
throw new Error("The parameter 'alphaMask' cannot be null.");
|
|
1378
|
+
else if (alphaMask !== undefined)
|
|
1336
1379
|
url_ += "alphaMask=" + encodeURIComponent("" + alphaMask) + "&";
|
|
1337
|
-
if (page
|
|
1380
|
+
if (page === null)
|
|
1381
|
+
throw new Error("The parameter 'page' cannot be null.");
|
|
1382
|
+
else if (page !== undefined)
|
|
1338
1383
|
url_ += "page=" + encodeURIComponent("" + page) + "&";
|
|
1339
|
-
if (colorizeColor
|
|
1384
|
+
if (colorizeColor === null)
|
|
1385
|
+
throw new Error("The parameter 'colorizeColor' cannot be null.");
|
|
1386
|
+
else if (colorizeColor !== undefined)
|
|
1340
1387
|
url_ += "colorizeColor=" + encodeURIComponent("" + colorizeColor) + "&";
|
|
1341
|
-
if (rw
|
|
1388
|
+
if (rw === null)
|
|
1389
|
+
throw new Error("The parameter 'rw' cannot be null.");
|
|
1390
|
+
else if (rw !== undefined)
|
|
1342
1391
|
url_ += "rw=" + encodeURIComponent("" + rw) + "&";
|
|
1343
|
-
if (rh
|
|
1392
|
+
if (rh === null)
|
|
1393
|
+
throw new Error("The parameter 'rh' cannot be null.");
|
|
1394
|
+
else if (rh !== undefined)
|
|
1344
1395
|
url_ += "rh=" + encodeURIComponent("" + rh) + "&";
|
|
1345
1396
|
url_ = url_.replace(/[?&]$/, "");
|
|
1346
1397
|
var options_ = {
|
|
@@ -1407,11 +1458,14 @@
|
|
|
1407
1458
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
1408
1459
|
}));
|
|
1409
1460
|
}
|
|
1410
|
-
else if (status ===
|
|
1461
|
+
else if (status === 401) {
|
|
1462
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
1463
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1464
|
+
}));
|
|
1465
|
+
}
|
|
1466
|
+
else if (status === 403) {
|
|
1411
1467
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
1412
|
-
|
|
1413
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
1414
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1468
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1415
1469
|
}));
|
|
1416
1470
|
}
|
|
1417
1471
|
else if (status !== 200 && status !== 204) {
|
|
@@ -1484,11 +1538,14 @@
|
|
|
1484
1538
|
return rxjs.of(result200);
|
|
1485
1539
|
}));
|
|
1486
1540
|
}
|
|
1487
|
-
else if (status ===
|
|
1541
|
+
else if (status === 401) {
|
|
1542
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
1543
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1544
|
+
}));
|
|
1545
|
+
}
|
|
1546
|
+
else if (status === 403) {
|
|
1488
1547
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
1489
|
-
|
|
1490
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
1491
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1548
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1492
1549
|
}));
|
|
1493
1550
|
}
|
|
1494
1551
|
else if (status !== 200 && status !== 204) {
|
|
@@ -1508,7 +1565,9 @@
|
|
|
1508
1565
|
if (tenantId === undefined || tenantId === null)
|
|
1509
1566
|
throw new Error("The parameter 'tenantId' must be defined.");
|
|
1510
1567
|
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
1511
|
-
if (f
|
|
1568
|
+
if (f === null)
|
|
1569
|
+
throw new Error("The parameter 'f' cannot be null.");
|
|
1570
|
+
else if (f !== undefined)
|
|
1512
1571
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
1513
1572
|
url_ = url_.replace(/[?&]$/, "");
|
|
1514
1573
|
var options_ = {
|
|
@@ -1575,11 +1634,14 @@
|
|
|
1575
1634
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
1576
1635
|
}));
|
|
1577
1636
|
}
|
|
1578
|
-
else if (status ===
|
|
1637
|
+
else if (status === 401) {
|
|
1638
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
1639
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1640
|
+
}));
|
|
1641
|
+
}
|
|
1642
|
+
else if (status === 403) {
|
|
1579
1643
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
1580
|
-
|
|
1581
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
1582
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1644
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1583
1645
|
}));
|
|
1584
1646
|
}
|
|
1585
1647
|
else if (status !== 200 && status !== 204) {
|
|
@@ -1599,7 +1661,9 @@
|
|
|
1599
1661
|
if (tenantId === undefined || tenantId === null)
|
|
1600
1662
|
throw new Error("The parameter 'tenantId' must be defined.");
|
|
1601
1663
|
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
1602
|
-
if (image
|
|
1664
|
+
if (image === null)
|
|
1665
|
+
throw new Error("The parameter 'image' cannot be null.");
|
|
1666
|
+
else if (image !== undefined)
|
|
1603
1667
|
url_ += "image=" + encodeURIComponent("" + image) + "&";
|
|
1604
1668
|
url_ = url_.replace(/[?&]$/, "");
|
|
1605
1669
|
var options_ = {
|
|
@@ -1661,11 +1725,14 @@
|
|
|
1661
1725
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
1662
1726
|
}));
|
|
1663
1727
|
}
|
|
1664
|
-
else if (status ===
|
|
1728
|
+
else if (status === 401) {
|
|
1729
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
1730
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1731
|
+
}));
|
|
1732
|
+
}
|
|
1733
|
+
else if (status === 403) {
|
|
1665
1734
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
1666
|
-
|
|
1667
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
1668
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1735
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1669
1736
|
}));
|
|
1670
1737
|
}
|
|
1671
1738
|
else if (status !== 200 && status !== 204) {
|
|
@@ -1702,41 +1769,77 @@
|
|
|
1702
1769
|
if (tenantId === undefined || tenantId === null)
|
|
1703
1770
|
throw new Error("The parameter 'tenantId' must be defined.");
|
|
1704
1771
|
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
1705
|
-
if (f
|
|
1772
|
+
if (f === null)
|
|
1773
|
+
throw new Error("The parameter 'f' cannot be null.");
|
|
1774
|
+
else if (f !== undefined)
|
|
1706
1775
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
1707
|
-
if (w
|
|
1776
|
+
if (w === null)
|
|
1777
|
+
throw new Error("The parameter 'w' cannot be null.");
|
|
1778
|
+
else if (w !== undefined)
|
|
1708
1779
|
url_ += "w=" + encodeURIComponent("" + w) + "&";
|
|
1709
|
-
if (h
|
|
1780
|
+
if (h === null)
|
|
1781
|
+
throw new Error("The parameter 'h' cannot be null.");
|
|
1782
|
+
else if (h !== undefined)
|
|
1710
1783
|
url_ += "h=" + encodeURIComponent("" + h) + "&";
|
|
1711
|
-
if (cmyk
|
|
1784
|
+
if (cmyk === null)
|
|
1785
|
+
throw new Error("The parameter 'cmyk' cannot be null.");
|
|
1786
|
+
else if (cmyk !== undefined)
|
|
1712
1787
|
url_ += "cmyk=" + encodeURIComponent("" + cmyk) + "&";
|
|
1713
|
-
if (rgb
|
|
1788
|
+
if (rgb === null)
|
|
1789
|
+
throw new Error("The parameter 'rgb' cannot be null.");
|
|
1790
|
+
else if (rgb !== undefined)
|
|
1714
1791
|
url_ += "rgb=" + encodeURIComponent("" + rgb) + "&";
|
|
1715
|
-
if (grayscale
|
|
1792
|
+
if (grayscale === null)
|
|
1793
|
+
throw new Error("The parameter 'grayscale' cannot be null.");
|
|
1794
|
+
else if (grayscale !== undefined)
|
|
1716
1795
|
url_ += "grayscale=" + encodeURIComponent("" + grayscale) + "&";
|
|
1717
|
-
if (target
|
|
1796
|
+
if (target === null)
|
|
1797
|
+
throw new Error("The parameter 'target' cannot be null.");
|
|
1798
|
+
else if (target !== undefined)
|
|
1718
1799
|
url_ += "target=" + encodeURIComponent("" + target) + "&";
|
|
1719
|
-
if (sq
|
|
1800
|
+
if (sq === null)
|
|
1801
|
+
throw new Error("The parameter 'sq' cannot be null.");
|
|
1802
|
+
else if (sq !== undefined)
|
|
1720
1803
|
url_ += "sq=" + encodeURIComponent("" + sq) + "&";
|
|
1721
|
-
if (effect
|
|
1804
|
+
if (effect === null)
|
|
1805
|
+
throw new Error("The parameter 'effect' cannot be null.");
|
|
1806
|
+
else if (effect !== undefined)
|
|
1722
1807
|
url_ += "effect=" + encodeURIComponent("" + effect) + "&";
|
|
1723
|
-
if (kp
|
|
1808
|
+
if (kp === null)
|
|
1809
|
+
throw new Error("The parameter 'kp' cannot be null.");
|
|
1810
|
+
else if (kp !== undefined)
|
|
1724
1811
|
url_ += "kp=" + encodeURIComponent("" + kp) + "&";
|
|
1725
|
-
if (color
|
|
1812
|
+
if (color === null)
|
|
1813
|
+
throw new Error("The parameter 'color' cannot be null.");
|
|
1814
|
+
else if (color !== undefined)
|
|
1726
1815
|
url_ += "color=" + encodeURIComponent("" + color) + "&";
|
|
1727
|
-
if (obm
|
|
1816
|
+
if (obm === null)
|
|
1817
|
+
throw new Error("The parameter 'obm' cannot be null.");
|
|
1818
|
+
else if (obm !== undefined)
|
|
1728
1819
|
url_ += "obm=" + encodeURIComponent("" + obm) + "&";
|
|
1729
|
-
if (oo
|
|
1820
|
+
if (oo === null)
|
|
1821
|
+
throw new Error("The parameter 'oo' cannot be null.");
|
|
1822
|
+
else if (oo !== undefined)
|
|
1730
1823
|
url_ += "oo=" + encodeURIComponent("" + oo) + "&";
|
|
1731
|
-
if (alphaMask
|
|
1824
|
+
if (alphaMask === null)
|
|
1825
|
+
throw new Error("The parameter 'alphaMask' cannot be null.");
|
|
1826
|
+
else if (alphaMask !== undefined)
|
|
1732
1827
|
url_ += "alphaMask=" + encodeURIComponent("" + alphaMask) + "&";
|
|
1733
|
-
if (page
|
|
1828
|
+
if (page === null)
|
|
1829
|
+
throw new Error("The parameter 'page' cannot be null.");
|
|
1830
|
+
else if (page !== undefined)
|
|
1734
1831
|
url_ += "page=" + encodeURIComponent("" + page) + "&";
|
|
1735
|
-
if (colorizeColor
|
|
1832
|
+
if (colorizeColor === null)
|
|
1833
|
+
throw new Error("The parameter 'colorizeColor' cannot be null.");
|
|
1834
|
+
else if (colorizeColor !== undefined)
|
|
1736
1835
|
url_ += "colorizeColor=" + encodeURIComponent("" + colorizeColor) + "&";
|
|
1737
|
-
if (rw
|
|
1836
|
+
if (rw === null)
|
|
1837
|
+
throw new Error("The parameter 'rw' cannot be null.");
|
|
1838
|
+
else if (rw !== undefined)
|
|
1738
1839
|
url_ += "rw=" + encodeURIComponent("" + rw) + "&";
|
|
1739
|
-
if (rh
|
|
1840
|
+
if (rh === null)
|
|
1841
|
+
throw new Error("The parameter 'rh' cannot be null.");
|
|
1842
|
+
else if (rh !== undefined)
|
|
1740
1843
|
url_ += "rh=" + encodeURIComponent("" + rh) + "&";
|
|
1741
1844
|
url_ = url_.replace(/[?&]$/, "");
|
|
1742
1845
|
var options_ = {
|
|
@@ -1803,11 +1906,14 @@
|
|
|
1803
1906
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
1804
1907
|
}));
|
|
1805
1908
|
}
|
|
1806
|
-
else if (status ===
|
|
1909
|
+
else if (status === 401) {
|
|
1910
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
1911
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1912
|
+
}));
|
|
1913
|
+
}
|
|
1914
|
+
else if (status === 403) {
|
|
1807
1915
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
1808
|
-
|
|
1809
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
1810
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1916
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1811
1917
|
}));
|
|
1812
1918
|
}
|
|
1813
1919
|
else if (status !== 200 && status !== 204) {
|
|
@@ -1827,7 +1933,9 @@
|
|
|
1827
1933
|
if (tenantId === undefined || tenantId === null)
|
|
1828
1934
|
throw new Error("The parameter 'tenantId' must be defined.");
|
|
1829
1935
|
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
1830
|
-
if (f
|
|
1936
|
+
if (f === null)
|
|
1937
|
+
throw new Error("The parameter 'f' cannot be null.");
|
|
1938
|
+
else if (f !== undefined)
|
|
1831
1939
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
1832
1940
|
url_ = url_.replace(/[?&]$/, "");
|
|
1833
1941
|
var options_ = {
|
|
@@ -1894,11 +2002,14 @@
|
|
|
1894
2002
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
1895
2003
|
}));
|
|
1896
2004
|
}
|
|
1897
|
-
else if (status ===
|
|
2005
|
+
else if (status === 401) {
|
|
2006
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
2007
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
2008
|
+
}));
|
|
2009
|
+
}
|
|
2010
|
+
else if (status === 403) {
|
|
1898
2011
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
1899
|
-
|
|
1900
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
1901
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2012
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1902
2013
|
}));
|
|
1903
2014
|
}
|
|
1904
2015
|
else if (status !== 200 && status !== 204) {
|
|
@@ -1975,11 +2086,14 @@
|
|
|
1975
2086
|
return rxjs.of(result200);
|
|
1976
2087
|
}));
|
|
1977
2088
|
}
|
|
1978
|
-
else if (status ===
|
|
2089
|
+
else if (status === 401) {
|
|
2090
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
2091
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
2092
|
+
}));
|
|
2093
|
+
}
|
|
2094
|
+
else if (status === 403) {
|
|
1979
2095
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
1980
|
-
|
|
1981
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
1982
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2096
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1983
2097
|
}));
|
|
1984
2098
|
}
|
|
1985
2099
|
else if (status !== 200 && status !== 204) {
|
|
@@ -2056,11 +2170,14 @@
|
|
|
2056
2170
|
return rxjs.of(result200);
|
|
2057
2171
|
}));
|
|
2058
2172
|
}
|
|
2059
|
-
else if (status ===
|
|
2173
|
+
else if (status === 401) {
|
|
2174
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
2175
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
2176
|
+
}));
|
|
2177
|
+
}
|
|
2178
|
+
else if (status === 403) {
|
|
2060
2179
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
2061
|
-
|
|
2062
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
2063
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2180
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
2064
2181
|
}));
|
|
2065
2182
|
}
|
|
2066
2183
|
else if (status !== 200 && status !== 204) {
|
|
@@ -2137,11 +2254,14 @@
|
|
|
2137
2254
|
return rxjs.of(result200);
|
|
2138
2255
|
}));
|
|
2139
2256
|
}
|
|
2140
|
-
else if (status ===
|
|
2257
|
+
else if (status === 401) {
|
|
2258
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
2259
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
2260
|
+
}));
|
|
2261
|
+
}
|
|
2262
|
+
else if (status === 403) {
|
|
2141
2263
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
2142
|
-
|
|
2143
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
2144
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2264
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
2145
2265
|
}));
|
|
2146
2266
|
}
|
|
2147
2267
|
else if (status !== 200 && status !== 204) {
|
|
@@ -2218,11 +2338,14 @@
|
|
|
2218
2338
|
return rxjs.of(result200);
|
|
2219
2339
|
}));
|
|
2220
2340
|
}
|
|
2221
|
-
else if (status ===
|
|
2341
|
+
else if (status === 401) {
|
|
2342
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
2343
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
2344
|
+
}));
|
|
2345
|
+
}
|
|
2346
|
+
else if (status === 403) {
|
|
2222
2347
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
2223
|
-
|
|
2224
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
2225
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2348
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
2226
2349
|
}));
|
|
2227
2350
|
}
|
|
2228
2351
|
else if (status !== 200 && status !== 204) {
|
|
@@ -2299,11 +2422,14 @@
|
|
|
2299
2422
|
return rxjs.of(result200);
|
|
2300
2423
|
}));
|
|
2301
2424
|
}
|
|
2302
|
-
else if (status ===
|
|
2425
|
+
else if (status === 401) {
|
|
2426
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
2427
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
2428
|
+
}));
|
|
2429
|
+
}
|
|
2430
|
+
else if (status === 403) {
|
|
2303
2431
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
2304
|
-
|
|
2305
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
2306
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2432
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
2307
2433
|
}));
|
|
2308
2434
|
}
|
|
2309
2435
|
else if (status !== 200 && status !== 204) {
|
|
@@ -2380,11 +2506,14 @@
|
|
|
2380
2506
|
return rxjs.of(result200);
|
|
2381
2507
|
}));
|
|
2382
2508
|
}
|
|
2383
|
-
else if (status ===
|
|
2509
|
+
else if (status === 401) {
|
|
2510
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
2511
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
2512
|
+
}));
|
|
2513
|
+
}
|
|
2514
|
+
else if (status === 403) {
|
|
2384
2515
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
2385
|
-
|
|
2386
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
2387
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2516
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
2388
2517
|
}));
|
|
2389
2518
|
}
|
|
2390
2519
|
else if (status !== 200 && status !== 204) {
|
|
@@ -2461,11 +2590,14 @@
|
|
|
2461
2590
|
return rxjs.of(result200);
|
|
2462
2591
|
}));
|
|
2463
2592
|
}
|
|
2464
|
-
else if (status ===
|
|
2593
|
+
else if (status === 401) {
|
|
2594
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
2595
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
2596
|
+
}));
|
|
2597
|
+
}
|
|
2598
|
+
else if (status === 403) {
|
|
2465
2599
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
2466
|
-
|
|
2467
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
2468
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2600
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
2469
2601
|
}));
|
|
2470
2602
|
}
|
|
2471
2603
|
else if (status !== 200 && status !== 204) {
|
|
@@ -2542,11 +2674,14 @@
|
|
|
2542
2674
|
return rxjs.of(result200);
|
|
2543
2675
|
}));
|
|
2544
2676
|
}
|
|
2545
|
-
else if (status ===
|
|
2677
|
+
else if (status === 401) {
|
|
2678
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
2679
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
2680
|
+
}));
|
|
2681
|
+
}
|
|
2682
|
+
else if (status === 403) {
|
|
2546
2683
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
2547
|
-
|
|
2548
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
2549
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2684
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
2550
2685
|
}));
|
|
2551
2686
|
}
|
|
2552
2687
|
else if (status !== 200 && status !== 204) {
|
|
@@ -2623,11 +2758,14 @@
|
|
|
2623
2758
|
return rxjs.of(result200);
|
|
2624
2759
|
}));
|
|
2625
2760
|
}
|
|
2626
|
-
else if (status ===
|
|
2761
|
+
else if (status === 401) {
|
|
2762
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
2763
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
2764
|
+
}));
|
|
2765
|
+
}
|
|
2766
|
+
else if (status === 403) {
|
|
2627
2767
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
2628
|
-
|
|
2629
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
2630
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2768
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
2631
2769
|
}));
|
|
2632
2770
|
}
|
|
2633
2771
|
else if (status !== 200 && status !== 204) {
|
|
@@ -2704,11 +2842,14 @@
|
|
|
2704
2842
|
return rxjs.of(result200);
|
|
2705
2843
|
}));
|
|
2706
2844
|
}
|
|
2707
|
-
else if (status ===
|
|
2845
|
+
else if (status === 401) {
|
|
2846
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
2847
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
2848
|
+
}));
|
|
2849
|
+
}
|
|
2850
|
+
else if (status === 403) {
|
|
2708
2851
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
2709
|
-
|
|
2710
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
2711
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2852
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
2712
2853
|
}));
|
|
2713
2854
|
}
|
|
2714
2855
|
else if (status !== 200 && status !== 204) {
|
|
@@ -2785,11 +2926,14 @@
|
|
|
2785
2926
|
return rxjs.of(result200);
|
|
2786
2927
|
}));
|
|
2787
2928
|
}
|
|
2788
|
-
else if (status ===
|
|
2929
|
+
else if (status === 401) {
|
|
2930
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
2931
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
2932
|
+
}));
|
|
2933
|
+
}
|
|
2934
|
+
else if (status === 403) {
|
|
2789
2935
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
2790
|
-
|
|
2791
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
2792
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2936
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
2793
2937
|
}));
|
|
2794
2938
|
}
|
|
2795
2939
|
else if (status !== 200 && status !== 204) {
|
|
@@ -2832,7 +2976,9 @@
|
|
|
2832
2976
|
DesignAtomsImagesApiClient.prototype.renderImagePreview = function (attachment, tenantId, body) {
|
|
2833
2977
|
var _this = this;
|
|
2834
2978
|
var url_ = this.baseUrl + "/api/atoms/v1/images/render-preview?";
|
|
2835
|
-
if (attachment
|
|
2979
|
+
if (attachment === null)
|
|
2980
|
+
throw new Error("The parameter 'attachment' cannot be null.");
|
|
2981
|
+
else if (attachment !== undefined)
|
|
2836
2982
|
url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
|
|
2837
2983
|
if (tenantId === null)
|
|
2838
2984
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -2868,7 +3014,6 @@
|
|
|
2868
3014
|
};
|
|
2869
3015
|
DesignAtomsImagesApiClient.prototype.processRenderImagePreview = function (response) {
|
|
2870
3016
|
var e_29, _a;
|
|
2871
|
-
var _this = this;
|
|
2872
3017
|
var status = response.status;
|
|
2873
3018
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
2874
3019
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -2904,13 +3049,6 @@
|
|
|
2904
3049
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
2905
3050
|
}));
|
|
2906
3051
|
}
|
|
2907
|
-
else if (status === 500) {
|
|
2908
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
2909
|
-
var result500 = null;
|
|
2910
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
2911
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2912
|
-
}));
|
|
2913
|
-
}
|
|
2914
3052
|
else if (status !== 200 && status !== 204) {
|
|
2915
3053
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
2916
3054
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2998,13 +3136,6 @@
|
|
|
2998
3136
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
2999
3137
|
}));
|
|
3000
3138
|
}
|
|
3001
|
-
else if (status === 500) {
|
|
3002
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
3003
|
-
var result500 = null;
|
|
3004
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
3005
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3006
|
-
}));
|
|
3007
|
-
}
|
|
3008
3139
|
else if (status !== 200 && status !== 204) {
|
|
3009
3140
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
3010
3141
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3047,7 +3178,9 @@
|
|
|
3047
3178
|
if (id === undefined || id === null)
|
|
3048
3179
|
throw new Error("The parameter 'id' must be defined.");
|
|
3049
3180
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3050
|
-
if (ownerId
|
|
3181
|
+
if (ownerId === null)
|
|
3182
|
+
throw new Error("The parameter 'ownerId' cannot be null.");
|
|
3183
|
+
else if (ownerId !== undefined)
|
|
3051
3184
|
url_ += "ownerId=" + encodeURIComponent("" + ownerId) + "&";
|
|
3052
3185
|
if (tenantId === null)
|
|
3053
3186
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3131,13 +3264,6 @@
|
|
|
3131
3264
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3132
3265
|
}));
|
|
3133
3266
|
}
|
|
3134
|
-
else if (status === 500) {
|
|
3135
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
3136
|
-
var result500 = null;
|
|
3137
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
3138
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3139
|
-
}));
|
|
3140
|
-
}
|
|
3141
3267
|
else if (status !== 200 && status !== 204) {
|
|
3142
3268
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
3143
3269
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3158,7 +3284,9 @@
|
|
|
3158
3284
|
if (id === undefined || id === null)
|
|
3159
3285
|
throw new Error("The parameter 'id' must be defined.");
|
|
3160
3286
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3161
|
-
if (ownerId
|
|
3287
|
+
if (ownerId === null)
|
|
3288
|
+
throw new Error("The parameter 'ownerId' cannot be null.");
|
|
3289
|
+
else if (ownerId !== undefined)
|
|
3162
3290
|
url_ += "ownerId=" + encodeURIComponent("" + ownerId) + "&";
|
|
3163
3291
|
if (tenantId === null)
|
|
3164
3292
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3169,7 +3297,7 @@
|
|
|
3169
3297
|
observe: "response",
|
|
3170
3298
|
responseType: "blob",
|
|
3171
3299
|
headers: new i1.HttpHeaders({
|
|
3172
|
-
"Accept": "application/
|
|
3300
|
+
"Accept": "application/json"
|
|
3173
3301
|
})
|
|
3174
3302
|
};
|
|
3175
3303
|
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
@@ -3241,13 +3369,6 @@
|
|
|
3241
3369
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3242
3370
|
}));
|
|
3243
3371
|
}
|
|
3244
|
-
else if (status === 500) {
|
|
3245
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
3246
|
-
var result500 = null;
|
|
3247
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
3248
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3249
|
-
}));
|
|
3250
|
-
}
|
|
3251
3372
|
else if (status !== 200 && status !== 204) {
|
|
3252
3373
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
3253
3374
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3268,7 +3389,9 @@
|
|
|
3268
3389
|
if (id === undefined || id === null)
|
|
3269
3390
|
throw new Error("The parameter 'id' must be defined.");
|
|
3270
3391
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3271
|
-
if (ownerId
|
|
3392
|
+
if (ownerId === null)
|
|
3393
|
+
throw new Error("The parameter 'ownerId' cannot be null.");
|
|
3394
|
+
else if (ownerId !== undefined)
|
|
3272
3395
|
url_ += "ownerId=" + encodeURIComponent("" + ownerId) + "&";
|
|
3273
3396
|
if (tenantId === null)
|
|
3274
3397
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3279,7 +3402,7 @@
|
|
|
3279
3402
|
observe: "response",
|
|
3280
3403
|
responseType: "blob",
|
|
3281
3404
|
headers: new i1.HttpHeaders({
|
|
3282
|
-
"Accept": "application/
|
|
3405
|
+
"Accept": "application/json"
|
|
3283
3406
|
})
|
|
3284
3407
|
};
|
|
3285
3408
|
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
@@ -3351,13 +3474,6 @@
|
|
|
3351
3474
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3352
3475
|
}));
|
|
3353
3476
|
}
|
|
3354
|
-
else if (status === 500) {
|
|
3355
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
3356
|
-
var result500 = null;
|
|
3357
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
3358
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3359
|
-
}));
|
|
3360
|
-
}
|
|
3361
3477
|
else if (status !== 200 && status !== 204) {
|
|
3362
3478
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
3363
3479
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3389,15 +3505,17 @@
|
|
|
3389
3505
|
}
|
|
3390
3506
|
/**
|
|
3391
3507
|
* Creates new design file with specified parameters and saves it in storage.
|
|
3392
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
3508
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
3393
3509
|
* @param tenantId (optional) Tenant identifier
|
|
3394
|
-
* @param body (optional) Design creation parameters
|
|
3395
|
-
* @return
|
|
3510
|
+
* @param body (optional) Design creation parameters.
|
|
3511
|
+
* @return Created
|
|
3396
3512
|
*/
|
|
3397
3513
|
DesignAtomsServiceApiClient.prototype.createDesign = function (privateStorageOwner, tenantId, body) {
|
|
3398
3514
|
var _this = this;
|
|
3399
3515
|
var url_ = this.baseUrl + "/api/atoms/v1/designs?";
|
|
3400
|
-
if (privateStorageOwner
|
|
3516
|
+
if (privateStorageOwner === null)
|
|
3517
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3518
|
+
else if (privateStorageOwner !== undefined)
|
|
3401
3519
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3402
3520
|
if (tenantId === null)
|
|
3403
3521
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3470,13 +3588,6 @@
|
|
|
3470
3588
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3471
3589
|
}));
|
|
3472
3590
|
}
|
|
3473
|
-
else if (status === 500) {
|
|
3474
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
3475
|
-
var result500 = null;
|
|
3476
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
3477
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3478
|
-
}));
|
|
3479
|
-
}
|
|
3480
3591
|
else if (status !== 200 && status !== 204) {
|
|
3481
3592
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
3482
3593
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3498,9 +3609,13 @@
|
|
|
3498
3609
|
if (id === undefined || id === null)
|
|
3499
3610
|
throw new Error("The parameter 'id' must be defined.");
|
|
3500
3611
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3501
|
-
if (surfaceIndex
|
|
3612
|
+
if (surfaceIndex === null)
|
|
3613
|
+
throw new Error("The parameter 'surfaceIndex' cannot be null.");
|
|
3614
|
+
else if (surfaceIndex !== undefined)
|
|
3502
3615
|
url_ += "surfaceIndex=" + encodeURIComponent("" + surfaceIndex) + "&";
|
|
3503
|
-
if (privateStorageOwner
|
|
3616
|
+
if (privateStorageOwner === null)
|
|
3617
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3618
|
+
else if (privateStorageOwner !== undefined)
|
|
3504
3619
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3505
3620
|
if (tenantId === null)
|
|
3506
3621
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3583,13 +3698,6 @@
|
|
|
3583
3698
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3584
3699
|
}));
|
|
3585
3700
|
}
|
|
3586
|
-
else if (status === 500) {
|
|
3587
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
3588
|
-
var result500 = null;
|
|
3589
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
3590
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3591
|
-
}));
|
|
3592
|
-
}
|
|
3593
3701
|
else if (status !== 200 && status !== 204) {
|
|
3594
3702
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
3595
3703
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3598,9 +3706,9 @@
|
|
|
3598
3706
|
return rxjs.of(null);
|
|
3599
3707
|
};
|
|
3600
3708
|
/**
|
|
3601
|
-
* Loads product (design model) from design file taken from storage
|
|
3602
|
-
* @param id Design identifier
|
|
3603
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
3709
|
+
* Loads product (design model) from design file taken from storage.
|
|
3710
|
+
* @param id Design identifier.
|
|
3711
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
3604
3712
|
* @param tenantId (optional) Tenant identifier
|
|
3605
3713
|
* @return Success
|
|
3606
3714
|
*/
|
|
@@ -3610,7 +3718,9 @@
|
|
|
3610
3718
|
if (id === undefined || id === null)
|
|
3611
3719
|
throw new Error("The parameter 'id' must be defined.");
|
|
3612
3720
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3613
|
-
if (privateStorageOwner
|
|
3721
|
+
if (privateStorageOwner === null)
|
|
3722
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3723
|
+
else if (privateStorageOwner !== undefined)
|
|
3614
3724
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3615
3725
|
if (tenantId === null)
|
|
3616
3726
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3687,13 +3797,6 @@
|
|
|
3687
3797
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3688
3798
|
}));
|
|
3689
3799
|
}
|
|
3690
|
-
else if (status === 500) {
|
|
3691
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
3692
|
-
var result500 = null;
|
|
3693
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
3694
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3695
|
-
}));
|
|
3696
|
-
}
|
|
3697
3800
|
else if (status !== 200 && status !== 204) {
|
|
3698
3801
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
3699
3802
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3703,10 +3806,10 @@
|
|
|
3703
3806
|
};
|
|
3704
3807
|
/**
|
|
3705
3808
|
* Saves product (design model) to design file and updates design in storage.
|
|
3706
|
-
* @param id Design identifier
|
|
3707
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
3809
|
+
* @param id Design identifier.
|
|
3810
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
3708
3811
|
* @param tenantId (optional) Tenant identifier
|
|
3709
|
-
* @param body (optional) Serialized product description
|
|
3812
|
+
* @param body (optional) Serialized product description.
|
|
3710
3813
|
* @return Success
|
|
3711
3814
|
*/
|
|
3712
3815
|
DesignAtomsServiceApiClient.prototype.saveProduct = function (id, privateStorageOwner, tenantId, body) {
|
|
@@ -3715,7 +3818,9 @@
|
|
|
3715
3818
|
if (id === undefined || id === null)
|
|
3716
3819
|
throw new Error("The parameter 'id' must be defined.");
|
|
3717
3820
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3718
|
-
if (privateStorageOwner
|
|
3821
|
+
if (privateStorageOwner === null)
|
|
3822
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3823
|
+
else if (privateStorageOwner !== undefined)
|
|
3719
3824
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3720
3825
|
if (tenantId === null)
|
|
3721
3826
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3792,13 +3897,6 @@
|
|
|
3792
3897
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3793
3898
|
}));
|
|
3794
3899
|
}
|
|
3795
|
-
else if (status === 500) {
|
|
3796
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
3797
|
-
var result500 = null;
|
|
3798
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
3799
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3800
|
-
}));
|
|
3801
|
-
}
|
|
3802
3900
|
else if (status !== 200 && status !== 204) {
|
|
3803
3901
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
3804
3902
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3825,7 +3923,9 @@
|
|
|
3825
3923
|
if (id === undefined || id === null)
|
|
3826
3924
|
throw new Error("The parameter 'id' must be defined.");
|
|
3827
3925
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3828
|
-
if (privateStorageOwner
|
|
3926
|
+
if (privateStorageOwner === null)
|
|
3927
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3928
|
+
else if (privateStorageOwner !== undefined)
|
|
3829
3929
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3830
3930
|
if (tenantId === null)
|
|
3831
3931
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3916,13 +4016,6 @@
|
|
|
3916
4016
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3917
4017
|
}));
|
|
3918
4018
|
}
|
|
3919
|
-
else if (status === 500) {
|
|
3920
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
3921
|
-
var result500 = null;
|
|
3922
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
3923
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3924
|
-
}));
|
|
3925
|
-
}
|
|
3926
4019
|
else if (status !== 200 && status !== 204) {
|
|
3927
4020
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
3928
4021
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3943,7 +4036,9 @@
|
|
|
3943
4036
|
if (id === undefined || id === null)
|
|
3944
4037
|
throw new Error("The parameter 'id' must be defined.");
|
|
3945
4038
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3946
|
-
if (privateStorageOwner
|
|
4039
|
+
if (privateStorageOwner === null)
|
|
4040
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
4041
|
+
else if (privateStorageOwner !== undefined)
|
|
3947
4042
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3948
4043
|
if (tenantId === null)
|
|
3949
4044
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4020,13 +4115,6 @@
|
|
|
4020
4115
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4021
4116
|
}));
|
|
4022
4117
|
}
|
|
4023
|
-
else if (status === 500) {
|
|
4024
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4025
|
-
var result500 = null;
|
|
4026
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4027
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4028
|
-
}));
|
|
4029
|
-
}
|
|
4030
4118
|
else if (status !== 200 && status !== 204) {
|
|
4031
4119
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4032
4120
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4035,9 +4123,9 @@
|
|
|
4035
4123
|
return rxjs.of(null);
|
|
4036
4124
|
};
|
|
4037
4125
|
/**
|
|
4038
|
-
* Loads data schema from design file taken from storage
|
|
4039
|
-
* @param id Design identifier
|
|
4040
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
4126
|
+
* Loads data schema from design file taken from storage.
|
|
4127
|
+
* @param id Design identifier.
|
|
4128
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
4041
4129
|
* @param tenantId (optional) Tenant identifier
|
|
4042
4130
|
* @return Success
|
|
4043
4131
|
*/
|
|
@@ -4047,7 +4135,9 @@
|
|
|
4047
4135
|
if (id === undefined || id === null)
|
|
4048
4136
|
throw new Error("The parameter 'id' must be defined.");
|
|
4049
4137
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4050
|
-
if (privateStorageOwner
|
|
4138
|
+
if (privateStorageOwner === null)
|
|
4139
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
4140
|
+
else if (privateStorageOwner !== undefined)
|
|
4051
4141
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
4052
4142
|
if (tenantId === null)
|
|
4053
4143
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4130,13 +4220,6 @@
|
|
|
4130
4220
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4131
4221
|
}));
|
|
4132
4222
|
}
|
|
4133
|
-
else if (status === 500) {
|
|
4134
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4135
|
-
var result500 = null;
|
|
4136
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4137
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4138
|
-
}));
|
|
4139
|
-
}
|
|
4140
4223
|
else if (status !== 200 && status !== 204) {
|
|
4141
4224
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4142
4225
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4145,7 +4228,7 @@
|
|
|
4145
4228
|
return rxjs.of(null);
|
|
4146
4229
|
};
|
|
4147
4230
|
/**
|
|
4148
|
-
* Loads toggle set from design file taken from storage.
|
|
4231
|
+
* Loads a toggle set from design file taken from storage.
|
|
4149
4232
|
* @param id Design identifier.
|
|
4150
4233
|
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
4151
4234
|
* @param tenantId (optional) Tenant identifier
|
|
@@ -4157,7 +4240,9 @@
|
|
|
4157
4240
|
if (id === undefined || id === null)
|
|
4158
4241
|
throw new Error("The parameter 'id' must be defined.");
|
|
4159
4242
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4160
|
-
if (privateStorageOwner
|
|
4243
|
+
if (privateStorageOwner === null)
|
|
4244
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
4245
|
+
else if (privateStorageOwner !== undefined)
|
|
4161
4246
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
4162
4247
|
if (tenantId === null)
|
|
4163
4248
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4240,13 +4325,6 @@
|
|
|
4240
4325
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4241
4326
|
}));
|
|
4242
4327
|
}
|
|
4243
|
-
else if (status === 500) {
|
|
4244
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4245
|
-
var result500 = null;
|
|
4246
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4247
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4248
|
-
}));
|
|
4249
|
-
}
|
|
4250
4328
|
else if (status !== 200 && status !== 204) {
|
|
4251
4329
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4252
4330
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4255,9 +4333,9 @@
|
|
|
4255
4333
|
return rxjs.of(null);
|
|
4256
4334
|
};
|
|
4257
4335
|
/**
|
|
4258
|
-
* Gets variable items information for design file taken from storage
|
|
4259
|
-
* @param id Design identifier
|
|
4260
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
4336
|
+
* Gets variable items information for design file taken from storage.
|
|
4337
|
+
* @param id Design identifier.
|
|
4338
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
4261
4339
|
* @param tenantId (optional) Tenant identifier
|
|
4262
4340
|
* @return Success
|
|
4263
4341
|
*/
|
|
@@ -4267,7 +4345,9 @@
|
|
|
4267
4345
|
if (id === undefined || id === null)
|
|
4268
4346
|
throw new Error("The parameter 'id' must be defined.");
|
|
4269
4347
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4270
|
-
if (privateStorageOwner
|
|
4348
|
+
if (privateStorageOwner === null)
|
|
4349
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
4350
|
+
else if (privateStorageOwner !== undefined)
|
|
4271
4351
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
4272
4352
|
if (tenantId === null)
|
|
4273
4353
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4344,14 +4424,7 @@
|
|
|
4344
4424
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4345
4425
|
}));
|
|
4346
4426
|
}
|
|
4347
|
-
else if (status
|
|
4348
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4349
|
-
var result500 = null;
|
|
4350
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4351
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4352
|
-
}));
|
|
4353
|
-
}
|
|
4354
|
-
else if (status !== 200 && status !== 204) {
|
|
4427
|
+
else if (status !== 200 && status !== 204) {
|
|
4355
4428
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4356
4429
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4357
4430
|
}));
|
|
@@ -4359,11 +4432,11 @@
|
|
|
4359
4432
|
return rxjs.of(null);
|
|
4360
4433
|
};
|
|
4361
4434
|
/**
|
|
4362
|
-
* Sets variable items values for design file taken from storage
|
|
4363
|
-
* @param id Design identifier
|
|
4364
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
4435
|
+
* Sets variable items values for design file taken from storage.
|
|
4436
|
+
* @param id Design identifier.
|
|
4437
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
4365
4438
|
* @param tenantId (optional) Tenant identifier
|
|
4366
|
-
* @param body (optional) Design variable values
|
|
4439
|
+
* @param body (optional) Design variable values.
|
|
4367
4440
|
* @return Success
|
|
4368
4441
|
*/
|
|
4369
4442
|
DesignAtomsServiceApiClient.prototype.setVariables = function (id, privateStorageOwner, tenantId, body) {
|
|
@@ -4372,7 +4445,9 @@
|
|
|
4372
4445
|
if (id === undefined || id === null)
|
|
4373
4446
|
throw new Error("The parameter 'id' must be defined.");
|
|
4374
4447
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4375
|
-
if (privateStorageOwner
|
|
4448
|
+
if (privateStorageOwner === null)
|
|
4449
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
4450
|
+
else if (privateStorageOwner !== undefined)
|
|
4376
4451
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
4377
4452
|
if (tenantId === null)
|
|
4378
4453
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4456,13 +4531,6 @@
|
|
|
4456
4531
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4457
4532
|
}));
|
|
4458
4533
|
}
|
|
4459
|
-
else if (status === 500) {
|
|
4460
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4461
|
-
var result500 = null;
|
|
4462
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4463
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4464
|
-
}));
|
|
4465
|
-
}
|
|
4466
4534
|
else if (status !== 200 && status !== 204) {
|
|
4467
4535
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4468
4536
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4471,9 +4539,9 @@
|
|
|
4471
4539
|
return rxjs.of(null);
|
|
4472
4540
|
};
|
|
4473
4541
|
/**
|
|
4474
|
-
* Loads variable data printing information from design file taken from storage
|
|
4475
|
-
* @param id Design identifier
|
|
4476
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
4542
|
+
* Loads variable data printing information from design file taken from storage.
|
|
4543
|
+
* @param id Design identifier.
|
|
4544
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
4477
4545
|
* @param tenantId (optional) Tenant identifier
|
|
4478
4546
|
* @return Success
|
|
4479
4547
|
*/
|
|
@@ -4483,7 +4551,9 @@
|
|
|
4483
4551
|
if (id === undefined || id === null)
|
|
4484
4552
|
throw new Error("The parameter 'id' must be defined.");
|
|
4485
4553
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4486
|
-
if (privateStorageOwner
|
|
4554
|
+
if (privateStorageOwner === null)
|
|
4555
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
4556
|
+
else if (privateStorageOwner !== undefined)
|
|
4487
4557
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
4488
4558
|
if (tenantId === null)
|
|
4489
4559
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4567,13 +4637,6 @@
|
|
|
4567
4637
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4568
4638
|
}));
|
|
4569
4639
|
}
|
|
4570
|
-
else if (status === 500) {
|
|
4571
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4572
|
-
var result500 = null;
|
|
4573
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4574
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4575
|
-
}));
|
|
4576
|
-
}
|
|
4577
4640
|
else if (status !== 200 && status !== 204) {
|
|
4578
4641
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4579
4642
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4583,10 +4646,10 @@
|
|
|
4583
4646
|
};
|
|
4584
4647
|
/**
|
|
4585
4648
|
* Saves variable data printing information to design file and updates design in storage.
|
|
4586
|
-
* @param id Design identifier
|
|
4587
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
4649
|
+
* @param id Design identifier.
|
|
4650
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
4588
4651
|
* @param tenantId (optional) Tenant identifier
|
|
4589
|
-
* @param body (optional) Serialized vdp data
|
|
4652
|
+
* @param body (optional) Serialized vdp data.
|
|
4590
4653
|
* @return Success
|
|
4591
4654
|
*/
|
|
4592
4655
|
DesignAtomsServiceApiClient.prototype.saveVdpData = function (id, privateStorageOwner, tenantId, body) {
|
|
@@ -4595,7 +4658,9 @@
|
|
|
4595
4658
|
if (id === undefined || id === null)
|
|
4596
4659
|
throw new Error("The parameter 'id' must be defined.");
|
|
4597
4660
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4598
|
-
if (privateStorageOwner
|
|
4661
|
+
if (privateStorageOwner === null)
|
|
4662
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
4663
|
+
else if (privateStorageOwner !== undefined)
|
|
4599
4664
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
4600
4665
|
if (tenantId === null)
|
|
4601
4666
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4672,13 +4737,6 @@
|
|
|
4672
4737
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4673
4738
|
}));
|
|
4674
4739
|
}
|
|
4675
|
-
else if (status === 500) {
|
|
4676
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4677
|
-
var result500 = null;
|
|
4678
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4679
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4680
|
-
}));
|
|
4681
|
-
}
|
|
4682
4740
|
else if (status !== 200 && status !== 204) {
|
|
4683
4741
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4684
4742
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4688,8 +4746,8 @@
|
|
|
4688
4746
|
};
|
|
4689
4747
|
/**
|
|
4690
4748
|
* Deletes variable data printing information from design file and updates design in storage.
|
|
4691
|
-
* @param id Design identifier
|
|
4692
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
4749
|
+
* @param id Design identifier.
|
|
4750
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
4693
4751
|
* @param tenantId (optional) Tenant identifier
|
|
4694
4752
|
* @return Success
|
|
4695
4753
|
*/
|
|
@@ -4699,7 +4757,9 @@
|
|
|
4699
4757
|
if (id === undefined || id === null)
|
|
4700
4758
|
throw new Error("The parameter 'id' must be defined.");
|
|
4701
4759
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4702
|
-
if (privateStorageOwner
|
|
4760
|
+
if (privateStorageOwner === null)
|
|
4761
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
4762
|
+
else if (privateStorageOwner !== undefined)
|
|
4703
4763
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
4704
4764
|
if (tenantId === null)
|
|
4705
4765
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4772,13 +4832,6 @@
|
|
|
4772
4832
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4773
4833
|
}));
|
|
4774
4834
|
}
|
|
4775
|
-
else if (status === 500) {
|
|
4776
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4777
|
-
var result500 = null;
|
|
4778
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4779
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4780
|
-
}));
|
|
4781
|
-
}
|
|
4782
4835
|
else if (status !== 200 && status !== 204) {
|
|
4783
4836
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4784
4837
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4787,9 +4840,9 @@
|
|
|
4787
4840
|
return rxjs.of(null);
|
|
4788
4841
|
};
|
|
4789
4842
|
/**
|
|
4790
|
-
* Loads product (design model) from resource file taken from storage
|
|
4791
|
-
* @param id Resource identifier
|
|
4792
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
4843
|
+
* Loads product (design model) from resource file taken from storage.
|
|
4844
|
+
* @param id Resource identifier.
|
|
4845
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
4793
4846
|
* @param tenantId (optional) Tenant identifier
|
|
4794
4847
|
* @return Success
|
|
4795
4848
|
*/
|
|
@@ -4799,7 +4852,9 @@
|
|
|
4799
4852
|
if (id === undefined || id === null)
|
|
4800
4853
|
throw new Error("The parameter 'id' must be defined.");
|
|
4801
4854
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4802
|
-
if (privateStorageOwner
|
|
4855
|
+
if (privateStorageOwner === null)
|
|
4856
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
4857
|
+
else if (privateStorageOwner !== undefined)
|
|
4803
4858
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
4804
4859
|
if (tenantId === null)
|
|
4805
4860
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4883,13 +4938,6 @@
|
|
|
4883
4938
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4884
4939
|
}));
|
|
4885
4940
|
}
|
|
4886
|
-
else if (status === 500) {
|
|
4887
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4888
|
-
var result500 = null;
|
|
4889
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4890
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4891
|
-
}));
|
|
4892
|
-
}
|
|
4893
4941
|
else if (status !== 200 && status !== 204) {
|
|
4894
4942
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4895
4943
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4898,9 +4946,9 @@
|
|
|
4898
4946
|
return rxjs.of(null);
|
|
4899
4947
|
};
|
|
4900
4948
|
/**
|
|
4901
|
-
* Converts colors
|
|
4949
|
+
* Converts colors.
|
|
4902
4950
|
* @param tenantId (optional) Tenant identifier
|
|
4903
|
-
* @param body (optional) Convert colors operation parameters
|
|
4951
|
+
* @param body (optional) Convert colors operation parameters.
|
|
4904
4952
|
* @return Success
|
|
4905
4953
|
*/
|
|
4906
4954
|
DesignAtomsServiceApiClient.prototype.convertColors = function (tenantId, body) {
|
|
@@ -4984,13 +5032,6 @@
|
|
|
4984
5032
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4985
5033
|
}));
|
|
4986
5034
|
}
|
|
4987
|
-
else if (status === 500) {
|
|
4988
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4989
|
-
var result500 = null;
|
|
4990
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4991
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4992
|
-
}));
|
|
4993
|
-
}
|
|
4994
5035
|
else if (status !== 200 && status !== 204) {
|
|
4995
5036
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4996
5037
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4999,8 +5040,8 @@
|
|
|
4999
5040
|
return rxjs.of(null);
|
|
5000
5041
|
};
|
|
5001
5042
|
/**
|
|
5002
|
-
* Creates product item
|
|
5003
|
-
* @param itemType (optional) Desired item type
|
|
5043
|
+
* Creates product item.
|
|
5044
|
+
* @param itemType (optional) Desired item type.
|
|
5004
5045
|
* @param tenantId (optional) Tenant identifier
|
|
5005
5046
|
* @param sourceType (optional)
|
|
5006
5047
|
* @param sourceId (optional)
|
|
@@ -5011,7 +5052,9 @@
|
|
|
5011
5052
|
DesignAtomsServiceApiClient.prototype.createItem = function (itemType, tenantId, sourceType, sourceId, sourceOwnerId, sourceFile) {
|
|
5012
5053
|
var _this = this;
|
|
5013
5054
|
var url_ = this.baseUrl + "/api/atoms/v1/designs/model/items?";
|
|
5014
|
-
if (itemType
|
|
5055
|
+
if (itemType === null)
|
|
5056
|
+
throw new Error("The parameter 'itemType' cannot be null.");
|
|
5057
|
+
else if (itemType !== undefined)
|
|
5015
5058
|
url_ += "itemType=" + encodeURIComponent("" + itemType) + "&";
|
|
5016
5059
|
if (tenantId === null)
|
|
5017
5060
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -5098,13 +5141,6 @@
|
|
|
5098
5141
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
5099
5142
|
}));
|
|
5100
5143
|
}
|
|
5101
|
-
else if (status === 500) {
|
|
5102
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5103
|
-
var result500 = null;
|
|
5104
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5105
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
5106
|
-
}));
|
|
5107
|
-
}
|
|
5108
5144
|
else if (status !== 200 && status !== 204) {
|
|
5109
5145
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5110
5146
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -5155,7 +5191,6 @@
|
|
|
5155
5191
|
};
|
|
5156
5192
|
DesignAtomsServiceApiClient.prototype.processExtractItemImage = function (response) {
|
|
5157
5193
|
var e_50, _a;
|
|
5158
|
-
var _this = this;
|
|
5159
5194
|
var status = response.status;
|
|
5160
5195
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
5161
5196
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -5191,13 +5226,6 @@
|
|
|
5191
5226
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
5192
5227
|
}));
|
|
5193
5228
|
}
|
|
5194
|
-
else if (status === 500) {
|
|
5195
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5196
|
-
var result500 = null;
|
|
5197
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5198
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
5199
|
-
}));
|
|
5200
|
-
}
|
|
5201
5229
|
else if (status !== 200 && status !== 204) {
|
|
5202
5230
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5203
5231
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -5285,13 +5313,6 @@
|
|
|
5285
5313
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
5286
5314
|
}));
|
|
5287
5315
|
}
|
|
5288
|
-
else if (status === 500) {
|
|
5289
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5290
|
-
var result500 = null;
|
|
5291
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5292
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
5293
|
-
}));
|
|
5294
|
-
}
|
|
5295
5316
|
else if (status !== 200 && status !== 204) {
|
|
5296
5317
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5297
5318
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -5301,7 +5322,8 @@
|
|
|
5301
5322
|
};
|
|
5302
5323
|
/**
|
|
5303
5324
|
* Render product proof image with specified parameters.
|
|
5304
|
-
* @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied
|
|
5325
|
+
* @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied
|
|
5326
|
+
(default value is 'false').
|
|
5305
5327
|
* @param tenantId (optional) Tenant identifier
|
|
5306
5328
|
* @param body (optional) Preview parameters.
|
|
5307
5329
|
* @return Success
|
|
@@ -5309,7 +5331,9 @@
|
|
|
5309
5331
|
DesignAtomsServiceApiClient.prototype.renderProduct = function (attachment, tenantId, body) {
|
|
5310
5332
|
var _this = this;
|
|
5311
5333
|
var url_ = this.baseUrl + "/api/atoms/v1/designs/model/render-proof?";
|
|
5312
|
-
if (attachment
|
|
5334
|
+
if (attachment === null)
|
|
5335
|
+
throw new Error("The parameter 'attachment' cannot be null.");
|
|
5336
|
+
else if (attachment !== undefined)
|
|
5313
5337
|
url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
|
|
5314
5338
|
if (tenantId === null)
|
|
5315
5339
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -5345,7 +5369,6 @@
|
|
|
5345
5369
|
};
|
|
5346
5370
|
DesignAtomsServiceApiClient.prototype.processRenderProduct = function (response) {
|
|
5347
5371
|
var e_52, _a;
|
|
5348
|
-
var _this = this;
|
|
5349
5372
|
var status = response.status;
|
|
5350
5373
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
5351
5374
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -5381,13 +5404,6 @@
|
|
|
5381
5404
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
5382
5405
|
}));
|
|
5383
5406
|
}
|
|
5384
|
-
else if (status === 500) {
|
|
5385
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5386
|
-
var result500 = null;
|
|
5387
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5388
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
5389
|
-
}));
|
|
5390
|
-
}
|
|
5391
5407
|
else if (status !== 200 && status !== 204) {
|
|
5392
5408
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5393
5409
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -5406,7 +5422,9 @@
|
|
|
5406
5422
|
DesignAtomsServiceApiClient.prototype.renderDesignPreview = function (attachment, tenantId, body) {
|
|
5407
5423
|
var _this = this;
|
|
5408
5424
|
var url_ = this.baseUrl + "/api/atoms/v1/designs/render-preview?";
|
|
5409
|
-
if (attachment
|
|
5425
|
+
if (attachment === null)
|
|
5426
|
+
throw new Error("The parameter 'attachment' cannot be null.");
|
|
5427
|
+
else if (attachment !== undefined)
|
|
5410
5428
|
url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
|
|
5411
5429
|
if (tenantId === null)
|
|
5412
5430
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -5442,7 +5460,6 @@
|
|
|
5442
5460
|
};
|
|
5443
5461
|
DesignAtomsServiceApiClient.prototype.processRenderDesignPreview = function (response) {
|
|
5444
5462
|
var e_53, _a;
|
|
5445
|
-
var _this = this;
|
|
5446
5463
|
var status = response.status;
|
|
5447
5464
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
5448
5465
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -5478,13 +5495,6 @@
|
|
|
5478
5495
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
5479
5496
|
}));
|
|
5480
5497
|
}
|
|
5481
|
-
else if (status === 500) {
|
|
5482
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5483
|
-
var result500 = null;
|
|
5484
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5485
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
5486
|
-
}));
|
|
5487
|
-
}
|
|
5488
5498
|
else if (status !== 200 && status !== 204) {
|
|
5489
5499
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5490
5500
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -5572,13 +5582,6 @@
|
|
|
5572
5582
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
5573
5583
|
}));
|
|
5574
5584
|
}
|
|
5575
|
-
else if (status === 500) {
|
|
5576
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5577
|
-
var result500 = null;
|
|
5578
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5579
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
5580
|
-
}));
|
|
5581
|
-
}
|
|
5582
5585
|
else if (status !== 200 && status !== 204) {
|
|
5583
5586
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5584
5587
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -5597,7 +5600,9 @@
|
|
|
5597
5600
|
DesignAtomsServiceApiClient.prototype.renderDesignProof = function (attachment, tenantId, body) {
|
|
5598
5601
|
var _this = this;
|
|
5599
5602
|
var url_ = this.baseUrl + "/api/atoms/v1/designs/render-proof?";
|
|
5600
|
-
if (attachment
|
|
5603
|
+
if (attachment === null)
|
|
5604
|
+
throw new Error("The parameter 'attachment' cannot be null.");
|
|
5605
|
+
else if (attachment !== undefined)
|
|
5601
5606
|
url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
|
|
5602
5607
|
if (tenantId === null)
|
|
5603
5608
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -5633,7 +5638,6 @@
|
|
|
5633
5638
|
};
|
|
5634
5639
|
DesignAtomsServiceApiClient.prototype.processRenderDesignProof = function (response) {
|
|
5635
5640
|
var e_55, _a;
|
|
5636
|
-
var _this = this;
|
|
5637
5641
|
var status = response.status;
|
|
5638
5642
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
5639
5643
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -5669,13 +5673,6 @@
|
|
|
5669
5673
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
5670
5674
|
}));
|
|
5671
5675
|
}
|
|
5672
|
-
else if (status === 500) {
|
|
5673
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5674
|
-
var result500 = null;
|
|
5675
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5676
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
5677
|
-
}));
|
|
5678
|
-
}
|
|
5679
5676
|
else if (status !== 200 && status !== 204) {
|
|
5680
5677
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5681
5678
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -5763,13 +5760,6 @@
|
|
|
5763
5760
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
5764
5761
|
}));
|
|
5765
5762
|
}
|
|
5766
|
-
else if (status === 500) {
|
|
5767
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5768
|
-
var result500 = null;
|
|
5769
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5770
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
5771
|
-
}));
|
|
5772
|
-
}
|
|
5773
5763
|
else if (status !== 200 && status !== 204) {
|
|
5774
5764
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5775
5765
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -5779,21 +5769,27 @@
|
|
|
5779
5769
|
};
|
|
5780
5770
|
/**
|
|
5781
5771
|
* Creates a private design from a public design.
|
|
5782
|
-
* @param designId (optional) Public design
|
|
5783
|
-
* @param privateDesignId (optional) Private design
|
|
5784
|
-
* @param privateStorageOwner (optional) Private storage owner
|
|
5772
|
+
* @param designId (optional) Public design identifier.
|
|
5773
|
+
* @param privateDesignId (optional) Private design identifier.
|
|
5774
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
5785
5775
|
* @param tenantId (optional) Tenant identifier
|
|
5786
|
-
* @return
|
|
5776
|
+
* @return Created
|
|
5787
5777
|
* @deprecated
|
|
5788
5778
|
*/
|
|
5789
5779
|
DesignAtomsServiceApiClient.prototype.createPrivateDesignFromDesign = function (designId, privateDesignId, privateStorageOwner, tenantId) {
|
|
5790
5780
|
var _this = this;
|
|
5791
5781
|
var url_ = this.baseUrl + "/api/atoms/v1/private-designs/from-design?";
|
|
5792
|
-
if (designId
|
|
5782
|
+
if (designId === null)
|
|
5783
|
+
throw new Error("The parameter 'designId' cannot be null.");
|
|
5784
|
+
else if (designId !== undefined)
|
|
5793
5785
|
url_ += "designId=" + encodeURIComponent("" + designId) + "&";
|
|
5794
|
-
if (privateDesignId
|
|
5786
|
+
if (privateDesignId === null)
|
|
5787
|
+
throw new Error("The parameter 'privateDesignId' cannot be null.");
|
|
5788
|
+
else if (privateDesignId !== undefined)
|
|
5795
5789
|
url_ += "privateDesignId=" + encodeURIComponent("" + privateDesignId) + "&";
|
|
5796
|
-
if (privateStorageOwner
|
|
5790
|
+
if (privateStorageOwner === null)
|
|
5791
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
5792
|
+
else if (privateStorageOwner !== undefined)
|
|
5797
5793
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
5798
5794
|
if (tenantId === null)
|
|
5799
5795
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -5824,7 +5820,6 @@
|
|
|
5824
5820
|
};
|
|
5825
5821
|
DesignAtomsServiceApiClient.prototype.processCreatePrivateDesignFromDesign = function (response) {
|
|
5826
5822
|
var e_57, _a;
|
|
5827
|
-
var _this = this;
|
|
5828
5823
|
var status = response.status;
|
|
5829
5824
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
5830
5825
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -5859,13 +5854,6 @@
|
|
|
5859
5854
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
5860
5855
|
}));
|
|
5861
5856
|
}
|
|
5862
|
-
else if (status === 500) {
|
|
5863
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5864
|
-
var result500 = null;
|
|
5865
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5866
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
5867
|
-
}));
|
|
5868
|
-
}
|
|
5869
5857
|
else if (status !== 200 && status !== 204) {
|
|
5870
5858
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5871
5859
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -5875,21 +5863,27 @@
|
|
|
5875
5863
|
};
|
|
5876
5864
|
/**
|
|
5877
5865
|
* Creates a private design from a public resource.
|
|
5878
|
-
* @param resourceId (optional) Resource
|
|
5879
|
-
* @param privateDesignId (optional) Private design
|
|
5880
|
-
* @param privateStorageOwner (optional) Private storage owner
|
|
5881
|
-
* @param tenantId (optional) Tenant identifier
|
|
5882
|
-
* @return
|
|
5866
|
+
* @param resourceId (optional) Resource identifier.
|
|
5867
|
+
* @param privateDesignId (optional) Private design identifier.
|
|
5868
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
5869
|
+
* @param tenantId (optional) Tenant identifier.
|
|
5870
|
+
* @return Created
|
|
5883
5871
|
* @deprecated
|
|
5884
5872
|
*/
|
|
5885
5873
|
DesignAtomsServiceApiClient.prototype.createPrivateDesignFromResource = function (resourceId, privateDesignId, privateStorageOwner, tenantId) {
|
|
5886
5874
|
var _this = this;
|
|
5887
5875
|
var url_ = this.baseUrl + "/api/atoms/v1/private-designs/from-resource?";
|
|
5888
|
-
if (resourceId
|
|
5876
|
+
if (resourceId === null)
|
|
5877
|
+
throw new Error("The parameter 'resourceId' cannot be null.");
|
|
5878
|
+
else if (resourceId !== undefined)
|
|
5889
5879
|
url_ += "resourceId=" + encodeURIComponent("" + resourceId) + "&";
|
|
5890
|
-
if (privateDesignId
|
|
5880
|
+
if (privateDesignId === null)
|
|
5881
|
+
throw new Error("The parameter 'privateDesignId' cannot be null.");
|
|
5882
|
+
else if (privateDesignId !== undefined)
|
|
5891
5883
|
url_ += "privateDesignId=" + encodeURIComponent("" + privateDesignId) + "&";
|
|
5892
|
-
if (privateStorageOwner
|
|
5884
|
+
if (privateStorageOwner === null)
|
|
5885
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
5886
|
+
else if (privateStorageOwner !== undefined)
|
|
5893
5887
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
5894
5888
|
if (tenantId === null)
|
|
5895
5889
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -5920,7 +5914,6 @@
|
|
|
5920
5914
|
};
|
|
5921
5915
|
DesignAtomsServiceApiClient.prototype.processCreatePrivateDesignFromResource = function (response) {
|
|
5922
5916
|
var e_58, _a;
|
|
5923
|
-
var _this = this;
|
|
5924
5917
|
var status = response.status;
|
|
5925
5918
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
5926
5919
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -5955,13 +5948,6 @@
|
|
|
5955
5948
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
5956
5949
|
}));
|
|
5957
5950
|
}
|
|
5958
|
-
else if (status === 500) {
|
|
5959
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5960
|
-
var result500 = null;
|
|
5961
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5962
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
5963
|
-
}));
|
|
5964
|
-
}
|
|
5965
5951
|
else if (status !== 200 && status !== 204) {
|
|
5966
5952
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5967
5953
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -6011,7 +5997,7 @@
|
|
|
6011
5997
|
responseType: "blob",
|
|
6012
5998
|
headers: new i1.HttpHeaders({
|
|
6013
5999
|
"Content-Type": "application/json",
|
|
6014
|
-
"Accept": "
|
|
6000
|
+
"Accept": "text/css"
|
|
6015
6001
|
})
|
|
6016
6002
|
};
|
|
6017
6003
|
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
@@ -6060,11 +6046,14 @@
|
|
|
6060
6046
|
return rxjs.of(result200);
|
|
6061
6047
|
}));
|
|
6062
6048
|
}
|
|
6063
|
-
else if (status ===
|
|
6049
|
+
else if (status === 401) {
|
|
6064
6050
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6065
|
-
|
|
6066
|
-
|
|
6067
|
-
|
|
6051
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6052
|
+
}));
|
|
6053
|
+
}
|
|
6054
|
+
else if (status === 403) {
|
|
6055
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6056
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6068
6057
|
}));
|
|
6069
6058
|
}
|
|
6070
6059
|
else if (status !== 200 && status !== 204) {
|
|
@@ -6148,11 +6137,14 @@
|
|
|
6148
6137
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
6149
6138
|
}));
|
|
6150
6139
|
}
|
|
6151
|
-
else if (status ===
|
|
6140
|
+
else if (status === 401) {
|
|
6141
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6142
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6143
|
+
}));
|
|
6144
|
+
}
|
|
6145
|
+
else if (status === 403) {
|
|
6152
6146
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6153
|
-
|
|
6154
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
6155
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
6147
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6156
6148
|
}));
|
|
6157
6149
|
}
|
|
6158
6150
|
else if (status !== 200 && status !== 204) {
|
|
@@ -6231,11 +6223,14 @@
|
|
|
6231
6223
|
return rxjs.of(result200);
|
|
6232
6224
|
}));
|
|
6233
6225
|
}
|
|
6234
|
-
else if (status ===
|
|
6226
|
+
else if (status === 401) {
|
|
6227
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6228
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6229
|
+
}));
|
|
6230
|
+
}
|
|
6231
|
+
else if (status === 403) {
|
|
6235
6232
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6236
|
-
|
|
6237
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
6238
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
6233
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6239
6234
|
}));
|
|
6240
6235
|
}
|
|
6241
6236
|
else if (status !== 200 && status !== 204) {
|
|
@@ -6314,11 +6309,14 @@
|
|
|
6314
6309
|
return rxjs.of(result200);
|
|
6315
6310
|
}));
|
|
6316
6311
|
}
|
|
6317
|
-
else if (status ===
|
|
6312
|
+
else if (status === 401) {
|
|
6313
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6314
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6315
|
+
}));
|
|
6316
|
+
}
|
|
6317
|
+
else if (status === 403) {
|
|
6318
6318
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6319
|
-
|
|
6320
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
6321
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
6319
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6322
6320
|
}));
|
|
6323
6321
|
}
|
|
6324
6322
|
else if (status !== 200 && status !== 204) {
|
|
@@ -6336,7 +6334,9 @@
|
|
|
6336
6334
|
DesignAtomsViewerApiClient.prototype.getCssFont = function (fontKey, tenantId) {
|
|
6337
6335
|
var _this = this;
|
|
6338
6336
|
var url_ = this.baseUrl + "/api/atoms/v1/ccviewer/GetCssFont?";
|
|
6339
|
-
if (fontKey
|
|
6337
|
+
if (fontKey === null)
|
|
6338
|
+
throw new Error("The parameter 'fontKey' cannot be null.");
|
|
6339
|
+
else if (fontKey !== undefined)
|
|
6340
6340
|
url_ += "fontKey=" + encodeURIComponent("" + fontKey) + "&";
|
|
6341
6341
|
if (tenantId === null)
|
|
6342
6342
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -6402,11 +6402,14 @@
|
|
|
6402
6402
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
6403
6403
|
}));
|
|
6404
6404
|
}
|
|
6405
|
-
else if (status ===
|
|
6405
|
+
else if (status === 401) {
|
|
6406
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6407
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6408
|
+
}));
|
|
6409
|
+
}
|
|
6410
|
+
else if (status === 403) {
|
|
6406
6411
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6407
|
-
|
|
6408
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
6409
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
6412
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6410
6413
|
}));
|
|
6411
6414
|
}
|
|
6412
6415
|
else if (status !== 200 && status !== 204) {
|
|
@@ -6474,17 +6477,21 @@
|
|
|
6474
6477
|
finally { if (e_64) throw e_64.error; }
|
|
6475
6478
|
}
|
|
6476
6479
|
}
|
|
6477
|
-
if (status === 200
|
|
6478
|
-
|
|
6479
|
-
|
|
6480
|
-
|
|
6481
|
-
|
|
6480
|
+
if (status === 200) {
|
|
6481
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6482
|
+
var result200 = null;
|
|
6483
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
6484
|
+
return rxjs.of(result200);
|
|
6485
|
+
}));
|
|
6482
6486
|
}
|
|
6483
|
-
else if (status ===
|
|
6487
|
+
else if (status === 401) {
|
|
6488
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6489
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6490
|
+
}));
|
|
6491
|
+
}
|
|
6492
|
+
else if (status === 403) {
|
|
6484
6493
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6485
|
-
|
|
6486
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
6487
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
6494
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6488
6495
|
}));
|
|
6489
6496
|
}
|
|
6490
6497
|
else if (status !== 200 && status !== 204) {
|
|
@@ -6563,11 +6570,14 @@
|
|
|
6563
6570
|
return rxjs.of(result200);
|
|
6564
6571
|
}));
|
|
6565
6572
|
}
|
|
6566
|
-
else if (status ===
|
|
6573
|
+
else if (status === 401) {
|
|
6574
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6575
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6576
|
+
}));
|
|
6577
|
+
}
|
|
6578
|
+
else if (status === 403) {
|
|
6567
6579
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6568
|
-
|
|
6569
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
6570
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
6580
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6571
6581
|
}));
|
|
6572
6582
|
}
|
|
6573
6583
|
else if (status !== 200 && status !== 204) {
|
|
@@ -6646,11 +6656,14 @@
|
|
|
6646
6656
|
return rxjs.of(result200);
|
|
6647
6657
|
}));
|
|
6648
6658
|
}
|
|
6649
|
-
else if (status ===
|
|
6659
|
+
else if (status === 401) {
|
|
6660
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6661
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6662
|
+
}));
|
|
6663
|
+
}
|
|
6664
|
+
else if (status === 403) {
|
|
6650
6665
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6651
|
-
|
|
6652
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
6653
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
6666
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6654
6667
|
}));
|
|
6655
6668
|
}
|
|
6656
6669
|
else if (status !== 200 && status !== 204) {
|
|
@@ -6729,11 +6742,14 @@
|
|
|
6729
6742
|
return rxjs.of(result200);
|
|
6730
6743
|
}));
|
|
6731
6744
|
}
|
|
6732
|
-
else if (status ===
|
|
6745
|
+
else if (status === 401) {
|
|
6746
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6747
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6748
|
+
}));
|
|
6749
|
+
}
|
|
6750
|
+
else if (status === 403) {
|
|
6733
6751
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6734
|
-
|
|
6735
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
6736
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
6752
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6737
6753
|
}));
|
|
6738
6754
|
}
|
|
6739
6755
|
else if (status !== 200 && status !== 204) {
|
|
@@ -6768,41 +6784,77 @@
|
|
|
6768
6784
|
DesignAtomsViewerApiClient.prototype.img = function (f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor, rw, rh, tenantId) {
|
|
6769
6785
|
var _this = this;
|
|
6770
6786
|
var url_ = this.baseUrl + "/api/atoms/v1/ccviewer/img?";
|
|
6771
|
-
if (f
|
|
6787
|
+
if (f === null)
|
|
6788
|
+
throw new Error("The parameter 'f' cannot be null.");
|
|
6789
|
+
else if (f !== undefined)
|
|
6772
6790
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
6773
|
-
if (w
|
|
6791
|
+
if (w === null)
|
|
6792
|
+
throw new Error("The parameter 'w' cannot be null.");
|
|
6793
|
+
else if (w !== undefined)
|
|
6774
6794
|
url_ += "w=" + encodeURIComponent("" + w) + "&";
|
|
6775
|
-
if (h
|
|
6795
|
+
if (h === null)
|
|
6796
|
+
throw new Error("The parameter 'h' cannot be null.");
|
|
6797
|
+
else if (h !== undefined)
|
|
6776
6798
|
url_ += "h=" + encodeURIComponent("" + h) + "&";
|
|
6777
|
-
if (cmyk
|
|
6799
|
+
if (cmyk === null)
|
|
6800
|
+
throw new Error("The parameter 'cmyk' cannot be null.");
|
|
6801
|
+
else if (cmyk !== undefined)
|
|
6778
6802
|
url_ += "cmyk=" + encodeURIComponent("" + cmyk) + "&";
|
|
6779
|
-
if (rgb
|
|
6803
|
+
if (rgb === null)
|
|
6804
|
+
throw new Error("The parameter 'rgb' cannot be null.");
|
|
6805
|
+
else if (rgb !== undefined)
|
|
6780
6806
|
url_ += "rgb=" + encodeURIComponent("" + rgb) + "&";
|
|
6781
|
-
if (grayscale
|
|
6807
|
+
if (grayscale === null)
|
|
6808
|
+
throw new Error("The parameter 'grayscale' cannot be null.");
|
|
6809
|
+
else if (grayscale !== undefined)
|
|
6782
6810
|
url_ += "grayscale=" + encodeURIComponent("" + grayscale) + "&";
|
|
6783
|
-
if (target
|
|
6811
|
+
if (target === null)
|
|
6812
|
+
throw new Error("The parameter 'target' cannot be null.");
|
|
6813
|
+
else if (target !== undefined)
|
|
6784
6814
|
url_ += "target=" + encodeURIComponent("" + target) + "&";
|
|
6785
|
-
if (sq
|
|
6815
|
+
if (sq === null)
|
|
6816
|
+
throw new Error("The parameter 'sq' cannot be null.");
|
|
6817
|
+
else if (sq !== undefined)
|
|
6786
6818
|
url_ += "sq=" + encodeURIComponent("" + sq) + "&";
|
|
6787
|
-
if (effect
|
|
6819
|
+
if (effect === null)
|
|
6820
|
+
throw new Error("The parameter 'effect' cannot be null.");
|
|
6821
|
+
else if (effect !== undefined)
|
|
6788
6822
|
url_ += "effect=" + encodeURIComponent("" + effect) + "&";
|
|
6789
|
-
if (kp
|
|
6823
|
+
if (kp === null)
|
|
6824
|
+
throw new Error("The parameter 'kp' cannot be null.");
|
|
6825
|
+
else if (kp !== undefined)
|
|
6790
6826
|
url_ += "kp=" + encodeURIComponent("" + kp) + "&";
|
|
6791
|
-
if (color
|
|
6827
|
+
if (color === null)
|
|
6828
|
+
throw new Error("The parameter 'color' cannot be null.");
|
|
6829
|
+
else if (color !== undefined)
|
|
6792
6830
|
url_ += "color=" + encodeURIComponent("" + color) + "&";
|
|
6793
|
-
if (obm
|
|
6831
|
+
if (obm === null)
|
|
6832
|
+
throw new Error("The parameter 'obm' cannot be null.");
|
|
6833
|
+
else if (obm !== undefined)
|
|
6794
6834
|
url_ += "obm=" + encodeURIComponent("" + obm) + "&";
|
|
6795
|
-
if (oo
|
|
6835
|
+
if (oo === null)
|
|
6836
|
+
throw new Error("The parameter 'oo' cannot be null.");
|
|
6837
|
+
else if (oo !== undefined)
|
|
6796
6838
|
url_ += "oo=" + encodeURIComponent("" + oo) + "&";
|
|
6797
|
-
if (alphaMask
|
|
6839
|
+
if (alphaMask === null)
|
|
6840
|
+
throw new Error("The parameter 'alphaMask' cannot be null.");
|
|
6841
|
+
else if (alphaMask !== undefined)
|
|
6798
6842
|
url_ += "alphaMask=" + encodeURIComponent("" + alphaMask) + "&";
|
|
6799
|
-
if (page
|
|
6843
|
+
if (page === null)
|
|
6844
|
+
throw new Error("The parameter 'page' cannot be null.");
|
|
6845
|
+
else if (page !== undefined)
|
|
6800
6846
|
url_ += "page=" + encodeURIComponent("" + page) + "&";
|
|
6801
|
-
if (colorizeColor
|
|
6847
|
+
if (colorizeColor === null)
|
|
6848
|
+
throw new Error("The parameter 'colorizeColor' cannot be null.");
|
|
6849
|
+
else if (colorizeColor !== undefined)
|
|
6802
6850
|
url_ += "colorizeColor=" + encodeURIComponent("" + colorizeColor) + "&";
|
|
6803
|
-
if (rw
|
|
6851
|
+
if (rw === null)
|
|
6852
|
+
throw new Error("The parameter 'rw' cannot be null.");
|
|
6853
|
+
else if (rw !== undefined)
|
|
6804
6854
|
url_ += "rw=" + encodeURIComponent("" + rw) + "&";
|
|
6805
|
-
if (rh
|
|
6855
|
+
if (rh === null)
|
|
6856
|
+
throw new Error("The parameter 'rh' cannot be null.");
|
|
6857
|
+
else if (rh !== undefined)
|
|
6806
6858
|
url_ += "rh=" + encodeURIComponent("" + rh) + "&";
|
|
6807
6859
|
if (tenantId === null)
|
|
6808
6860
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -6873,11 +6925,14 @@
|
|
|
6873
6925
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
6874
6926
|
}));
|
|
6875
6927
|
}
|
|
6876
|
-
else if (status ===
|
|
6928
|
+
else if (status === 401) {
|
|
6929
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6930
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6931
|
+
}));
|
|
6932
|
+
}
|
|
6933
|
+
else if (status === 403) {
|
|
6877
6934
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6878
|
-
|
|
6879
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
6880
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
6935
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6881
6936
|
}));
|
|
6882
6937
|
}
|
|
6883
6938
|
else if (status !== 200 && status !== 204) {
|
|
@@ -6952,11 +7007,14 @@
|
|
|
6952
7007
|
return rxjs.of(result200);
|
|
6953
7008
|
}));
|
|
6954
7009
|
}
|
|
6955
|
-
else if (status ===
|
|
7010
|
+
else if (status === 401) {
|
|
7011
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
7012
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
7013
|
+
}));
|
|
7014
|
+
}
|
|
7015
|
+
else if (status === 403) {
|
|
6956
7016
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6957
|
-
|
|
6958
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
6959
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
7017
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6960
7018
|
}));
|
|
6961
7019
|
}
|
|
6962
7020
|
else if (status !== 200 && status !== 204) {
|
|
@@ -6974,7 +7032,9 @@
|
|
|
6974
7032
|
DesignAtomsViewerApiClient.prototype.pth = function (f, tenantId) {
|
|
6975
7033
|
var _this = this;
|
|
6976
7034
|
var url_ = this.baseUrl + "/api/atoms/v1/ccviewer/pth?";
|
|
6977
|
-
if (f
|
|
7035
|
+
if (f === null)
|
|
7036
|
+
throw new Error("The parameter 'f' cannot be null.");
|
|
7037
|
+
else if (f !== undefined)
|
|
6978
7038
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
6979
7039
|
if (tenantId === null)
|
|
6980
7040
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -7045,11 +7105,14 @@
|
|
|
7045
7105
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
7046
7106
|
}));
|
|
7047
7107
|
}
|
|
7048
|
-
else if (status ===
|
|
7108
|
+
else if (status === 401) {
|
|
7049
7109
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
7050
|
-
|
|
7051
|
-
|
|
7052
|
-
|
|
7110
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
7111
|
+
}));
|
|
7112
|
+
}
|
|
7113
|
+
else if (status === 403) {
|
|
7114
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
7115
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
7053
7116
|
}));
|
|
7054
7117
|
}
|
|
7055
7118
|
else if (status !== 200 && status !== 204) {
|
|
@@ -7067,7 +7130,9 @@
|
|
|
7067
7130
|
DesignAtomsViewerApiClient.prototype.resource = function (image, tenantId) {
|
|
7068
7131
|
var _this = this;
|
|
7069
7132
|
var url_ = this.baseUrl + "/api/atoms/v1/ccviewer/resource?";
|
|
7070
|
-
if (image
|
|
7133
|
+
if (image === null)
|
|
7134
|
+
throw new Error("The parameter 'image' cannot be null.");
|
|
7135
|
+
else if (image !== undefined)
|
|
7071
7136
|
url_ += "image=" + encodeURIComponent("" + image) + "&";
|
|
7072
7137
|
if (tenantId === null)
|
|
7073
7138
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -7133,11 +7198,14 @@
|
|
|
7133
7198
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
7134
7199
|
}));
|
|
7135
7200
|
}
|
|
7136
|
-
else if (status ===
|
|
7201
|
+
else if (status === 401) {
|
|
7137
7202
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
7138
|
-
|
|
7139
|
-
|
|
7140
|
-
|
|
7203
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
7204
|
+
}));
|
|
7205
|
+
}
|
|
7206
|
+
else if (status === 403) {
|
|
7207
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
7208
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
7141
7209
|
}));
|
|
7142
7210
|
}
|
|
7143
7211
|
else if (status !== 200 && status !== 204) {
|
|
@@ -7172,41 +7240,77 @@
|
|
|
7172
7240
|
DesignAtomsViewerApiClient.prototype.svg = function (f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor, rw, rh, tenantId) {
|
|
7173
7241
|
var _this = this;
|
|
7174
7242
|
var url_ = this.baseUrl + "/api/atoms/v1/ccviewer/svg?";
|
|
7175
|
-
if (f
|
|
7243
|
+
if (f === null)
|
|
7244
|
+
throw new Error("The parameter 'f' cannot be null.");
|
|
7245
|
+
else if (f !== undefined)
|
|
7176
7246
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
7177
|
-
if (w
|
|
7247
|
+
if (w === null)
|
|
7248
|
+
throw new Error("The parameter 'w' cannot be null.");
|
|
7249
|
+
else if (w !== undefined)
|
|
7178
7250
|
url_ += "w=" + encodeURIComponent("" + w) + "&";
|
|
7179
|
-
if (h
|
|
7251
|
+
if (h === null)
|
|
7252
|
+
throw new Error("The parameter 'h' cannot be null.");
|
|
7253
|
+
else if (h !== undefined)
|
|
7180
7254
|
url_ += "h=" + encodeURIComponent("" + h) + "&";
|
|
7181
|
-
if (cmyk
|
|
7255
|
+
if (cmyk === null)
|
|
7256
|
+
throw new Error("The parameter 'cmyk' cannot be null.");
|
|
7257
|
+
else if (cmyk !== undefined)
|
|
7182
7258
|
url_ += "cmyk=" + encodeURIComponent("" + cmyk) + "&";
|
|
7183
|
-
if (rgb
|
|
7259
|
+
if (rgb === null)
|
|
7260
|
+
throw new Error("The parameter 'rgb' cannot be null.");
|
|
7261
|
+
else if (rgb !== undefined)
|
|
7184
7262
|
url_ += "rgb=" + encodeURIComponent("" + rgb) + "&";
|
|
7185
|
-
if (grayscale
|
|
7263
|
+
if (grayscale === null)
|
|
7264
|
+
throw new Error("The parameter 'grayscale' cannot be null.");
|
|
7265
|
+
else if (grayscale !== undefined)
|
|
7186
7266
|
url_ += "grayscale=" + encodeURIComponent("" + grayscale) + "&";
|
|
7187
|
-
if (target
|
|
7267
|
+
if (target === null)
|
|
7268
|
+
throw new Error("The parameter 'target' cannot be null.");
|
|
7269
|
+
else if (target !== undefined)
|
|
7188
7270
|
url_ += "target=" + encodeURIComponent("" + target) + "&";
|
|
7189
|
-
if (sq
|
|
7271
|
+
if (sq === null)
|
|
7272
|
+
throw new Error("The parameter 'sq' cannot be null.");
|
|
7273
|
+
else if (sq !== undefined)
|
|
7190
7274
|
url_ += "sq=" + encodeURIComponent("" + sq) + "&";
|
|
7191
|
-
if (effect
|
|
7275
|
+
if (effect === null)
|
|
7276
|
+
throw new Error("The parameter 'effect' cannot be null.");
|
|
7277
|
+
else if (effect !== undefined)
|
|
7192
7278
|
url_ += "effect=" + encodeURIComponent("" + effect) + "&";
|
|
7193
|
-
if (kp
|
|
7279
|
+
if (kp === null)
|
|
7280
|
+
throw new Error("The parameter 'kp' cannot be null.");
|
|
7281
|
+
else if (kp !== undefined)
|
|
7194
7282
|
url_ += "kp=" + encodeURIComponent("" + kp) + "&";
|
|
7195
|
-
if (color
|
|
7283
|
+
if (color === null)
|
|
7284
|
+
throw new Error("The parameter 'color' cannot be null.");
|
|
7285
|
+
else if (color !== undefined)
|
|
7196
7286
|
url_ += "color=" + encodeURIComponent("" + color) + "&";
|
|
7197
|
-
if (obm
|
|
7287
|
+
if (obm === null)
|
|
7288
|
+
throw new Error("The parameter 'obm' cannot be null.");
|
|
7289
|
+
else if (obm !== undefined)
|
|
7198
7290
|
url_ += "obm=" + encodeURIComponent("" + obm) + "&";
|
|
7199
|
-
if (oo
|
|
7291
|
+
if (oo === null)
|
|
7292
|
+
throw new Error("The parameter 'oo' cannot be null.");
|
|
7293
|
+
else if (oo !== undefined)
|
|
7200
7294
|
url_ += "oo=" + encodeURIComponent("" + oo) + "&";
|
|
7201
|
-
if (alphaMask
|
|
7295
|
+
if (alphaMask === null)
|
|
7296
|
+
throw new Error("The parameter 'alphaMask' cannot be null.");
|
|
7297
|
+
else if (alphaMask !== undefined)
|
|
7202
7298
|
url_ += "alphaMask=" + encodeURIComponent("" + alphaMask) + "&";
|
|
7203
|
-
if (page
|
|
7299
|
+
if (page === null)
|
|
7300
|
+
throw new Error("The parameter 'page' cannot be null.");
|
|
7301
|
+
else if (page !== undefined)
|
|
7204
7302
|
url_ += "page=" + encodeURIComponent("" + page) + "&";
|
|
7205
|
-
if (colorizeColor
|
|
7303
|
+
if (colorizeColor === null)
|
|
7304
|
+
throw new Error("The parameter 'colorizeColor' cannot be null.");
|
|
7305
|
+
else if (colorizeColor !== undefined)
|
|
7206
7306
|
url_ += "colorizeColor=" + encodeURIComponent("" + colorizeColor) + "&";
|
|
7207
|
-
if (rw
|
|
7307
|
+
if (rw === null)
|
|
7308
|
+
throw new Error("The parameter 'rw' cannot be null.");
|
|
7309
|
+
else if (rw !== undefined)
|
|
7208
7310
|
url_ += "rw=" + encodeURIComponent("" + rw) + "&";
|
|
7209
|
-
if (rh
|
|
7311
|
+
if (rh === null)
|
|
7312
|
+
throw new Error("The parameter 'rh' cannot be null.");
|
|
7313
|
+
else if (rh !== undefined)
|
|
7210
7314
|
url_ += "rh=" + encodeURIComponent("" + rh) + "&";
|
|
7211
7315
|
if (tenantId === null)
|
|
7212
7316
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -7277,11 +7381,14 @@
|
|
|
7277
7381
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
7278
7382
|
}));
|
|
7279
7383
|
}
|
|
7280
|
-
else if (status ===
|
|
7384
|
+
else if (status === 401) {
|
|
7281
7385
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
7282
|
-
|
|
7283
|
-
|
|
7284
|
-
|
|
7386
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
7387
|
+
}));
|
|
7388
|
+
}
|
|
7389
|
+
else if (status === 403) {
|
|
7390
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
7391
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
7285
7392
|
}));
|
|
7286
7393
|
}
|
|
7287
7394
|
else if (status !== 200 && status !== 204) {
|
|
@@ -7299,7 +7406,9 @@
|
|
|
7299
7406
|
DesignAtomsViewerApiClient.prototype.txt = function (f, tenantId) {
|
|
7300
7407
|
var _this = this;
|
|
7301
7408
|
var url_ = this.baseUrl + "/api/atoms/v1/ccviewer/txt?";
|
|
7302
|
-
if (f
|
|
7409
|
+
if (f === null)
|
|
7410
|
+
throw new Error("The parameter 'f' cannot be null.");
|
|
7411
|
+
else if (f !== undefined)
|
|
7303
7412
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
7304
7413
|
if (tenantId === null)
|
|
7305
7414
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -7370,11 +7479,14 @@
|
|
|
7370
7479
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
7371
7480
|
}));
|
|
7372
7481
|
}
|
|
7373
|
-
else if (status ===
|
|
7482
|
+
else if (status === 401) {
|
|
7483
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
7484
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
7485
|
+
}));
|
|
7486
|
+
}
|
|
7487
|
+
else if (status === 403) {
|
|
7374
7488
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
7375
|
-
|
|
7376
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
7377
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
7489
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
7378
7490
|
}));
|
|
7379
7491
|
}
|
|
7380
7492
|
else if (status !== 200 && status !== 204) {
|
|
@@ -7453,11 +7565,14 @@
|
|
|
7453
7565
|
return rxjs.of(result200);
|
|
7454
7566
|
}));
|
|
7455
7567
|
}
|
|
7456
|
-
else if (status ===
|
|
7568
|
+
else if (status === 401) {
|
|
7569
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
7570
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
7571
|
+
}));
|
|
7572
|
+
}
|
|
7573
|
+
else if (status === 403) {
|
|
7457
7574
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
7458
|
-
|
|
7459
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
7460
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
7575
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
7461
7576
|
}));
|
|
7462
7577
|
}
|
|
7463
7578
|
else if (status !== 200 && status !== 204) {
|
|
@@ -7536,11 +7651,14 @@
|
|
|
7536
7651
|
return rxjs.of(result200);
|
|
7537
7652
|
}));
|
|
7538
7653
|
}
|
|
7539
|
-
else if (status ===
|
|
7654
|
+
else if (status === 401) {
|
|
7540
7655
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
7541
|
-
|
|
7542
|
-
|
|
7543
|
-
|
|
7656
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
7657
|
+
}));
|
|
7658
|
+
}
|
|
7659
|
+
else if (status === 403) {
|
|
7660
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
7661
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
7544
7662
|
}));
|
|
7545
7663
|
}
|
|
7546
7664
|
else if (status !== 200 && status !== 204) {
|
|
@@ -7619,11 +7737,14 @@
|
|
|
7619
7737
|
return rxjs.of(result200);
|
|
7620
7738
|
}));
|
|
7621
7739
|
}
|
|
7622
|
-
else if (status ===
|
|
7740
|
+
else if (status === 401) {
|
|
7741
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
7742
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
7743
|
+
}));
|
|
7744
|
+
}
|
|
7745
|
+
else if (status === 403) {
|
|
7623
7746
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
7624
|
-
|
|
7625
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
7626
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
7747
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
7627
7748
|
}));
|
|
7628
7749
|
}
|
|
7629
7750
|
else if (status !== 200 && status !== 204) {
|
|
@@ -7702,11 +7823,14 @@
|
|
|
7702
7823
|
return rxjs.of(result200);
|
|
7703
7824
|
}));
|
|
7704
7825
|
}
|
|
7705
|
-
else if (status ===
|
|
7826
|
+
else if (status === 401) {
|
|
7827
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
7828
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
7829
|
+
}));
|
|
7830
|
+
}
|
|
7831
|
+
else if (status === 403) {
|
|
7706
7832
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
7707
|
-
|
|
7708
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
7709
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
7833
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
7710
7834
|
}));
|
|
7711
7835
|
}
|
|
7712
7836
|
else if (status !== 200 && status !== 204) {
|
|
@@ -7785,11 +7909,14 @@
|
|
|
7785
7909
|
return rxjs.of(result200);
|
|
7786
7910
|
}));
|
|
7787
7911
|
}
|
|
7788
|
-
else if (status ===
|
|
7912
|
+
else if (status === 401) {
|
|
7913
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
7914
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
7915
|
+
}));
|
|
7916
|
+
}
|
|
7917
|
+
else if (status === 403) {
|
|
7789
7918
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
7790
|
-
|
|
7791
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
7792
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
7919
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
7793
7920
|
}));
|
|
7794
7921
|
}
|
|
7795
7922
|
else if (status !== 200 && status !== 204) {
|
|
@@ -7868,11 +7995,14 @@
|
|
|
7868
7995
|
return rxjs.of(result200);
|
|
7869
7996
|
}));
|
|
7870
7997
|
}
|
|
7871
|
-
else if (status ===
|
|
7998
|
+
else if (status === 401) {
|
|
7999
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
8000
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
8001
|
+
}));
|
|
8002
|
+
}
|
|
8003
|
+
else if (status === 403) {
|
|
7872
8004
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
7873
|
-
|
|
7874
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
7875
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
8005
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
7876
8006
|
}));
|
|
7877
8007
|
}
|
|
7878
8008
|
else if (status !== 200 && status !== 204) {
|
|
@@ -7951,11 +8081,14 @@
|
|
|
7951
8081
|
return rxjs.of(result200);
|
|
7952
8082
|
}));
|
|
7953
8083
|
}
|
|
7954
|
-
else if (status ===
|
|
8084
|
+
else if (status === 401) {
|
|
8085
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
8086
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
8087
|
+
}));
|
|
8088
|
+
}
|
|
8089
|
+
else if (status === 403) {
|
|
7955
8090
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
7956
|
-
|
|
7957
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
7958
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
8091
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
7959
8092
|
}));
|
|
7960
8093
|
}
|
|
7961
8094
|
else if (status !== 200 && status !== 204) {
|
|
@@ -8034,11 +8167,14 @@
|
|
|
8034
8167
|
return rxjs.of(result200);
|
|
8035
8168
|
}));
|
|
8036
8169
|
}
|
|
8037
|
-
else if (status ===
|
|
8170
|
+
else if (status === 401) {
|
|
8038
8171
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
8039
|
-
|
|
8040
|
-
|
|
8041
|
-
|
|
8172
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
8173
|
+
}));
|
|
8174
|
+
}
|
|
8175
|
+
else if (status === 403) {
|
|
8176
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
8177
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
8042
8178
|
}));
|
|
8043
8179
|
}
|
|
8044
8180
|
else if (status !== 200 && status !== 204) {
|
|
@@ -8117,11 +8253,14 @@
|
|
|
8117
8253
|
return rxjs.of(result200);
|
|
8118
8254
|
}));
|
|
8119
8255
|
}
|
|
8120
|
-
else if (status ===
|
|
8256
|
+
else if (status === 401) {
|
|
8257
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
8258
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
8259
|
+
}));
|
|
8260
|
+
}
|
|
8261
|
+
else if (status === 403) {
|
|
8121
8262
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
8122
|
-
|
|
8123
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
8124
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
8263
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
8125
8264
|
}));
|
|
8126
8265
|
}
|
|
8127
8266
|
else if (status !== 200 && status !== 204) {
|
|
@@ -8200,11 +8339,14 @@
|
|
|
8200
8339
|
return rxjs.of(result200);
|
|
8201
8340
|
}));
|
|
8202
8341
|
}
|
|
8203
|
-
else if (status ===
|
|
8342
|
+
else if (status === 401) {
|
|
8343
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
8344
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
8345
|
+
}));
|
|
8346
|
+
}
|
|
8347
|
+
else if (status === 403) {
|
|
8204
8348
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
8205
|
-
|
|
8206
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
8207
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
8349
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
8208
8350
|
}));
|
|
8209
8351
|
}
|
|
8210
8352
|
else if (status !== 200 && status !== 204) {
|
|
@@ -8283,11 +8425,14 @@
|
|
|
8283
8425
|
return rxjs.of(result200);
|
|
8284
8426
|
}));
|
|
8285
8427
|
}
|
|
8286
|
-
else if (status ===
|
|
8428
|
+
else if (status === 401) {
|
|
8429
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
8430
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
8431
|
+
}));
|
|
8432
|
+
}
|
|
8433
|
+
else if (status === 403) {
|
|
8287
8434
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
8288
|
-
|
|
8289
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
8290
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
8435
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
8291
8436
|
}));
|
|
8292
8437
|
}
|
|
8293
8438
|
else if (status !== 200 && status !== 204) {
|
|
@@ -8310,23 +8455,6 @@
|
|
|
8310
8455
|
{ type: i1.HttpClient, decorators: [{ type: i0.Inject, args: [i1.HttpClient,] }] },
|
|
8311
8456
|
{ type: String, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [API_BASE_URL,] }] }
|
|
8312
8457
|
]; };
|
|
8313
|
-
(function (ColorSpace) {
|
|
8314
|
-
ColorSpace["Rgb"] = "Rgb";
|
|
8315
|
-
ColorSpace["Cmyk"] = "Cmyk";
|
|
8316
|
-
ColorSpace["Grayscale"] = "Grayscale";
|
|
8317
|
-
ColorSpace["Lab"] = "Lab";
|
|
8318
|
-
ColorSpace["Spot"] = "Spot";
|
|
8319
|
-
})(exports.ColorSpace || (exports.ColorSpace = {}));
|
|
8320
|
-
(function (ImagePreviewFormat) {
|
|
8321
|
-
ImagePreviewFormat["Jpeg"] = "Jpeg";
|
|
8322
|
-
ImagePreviewFormat["Png"] = "Png";
|
|
8323
|
-
})(exports.ImagePreviewFormat || (exports.ImagePreviewFormat = {}));
|
|
8324
|
-
(function (ImagePreviewFitMode) {
|
|
8325
|
-
ImagePreviewFitMode["Fit"] = "Fit";
|
|
8326
|
-
ImagePreviewFitMode["Shrink"] = "Shrink";
|
|
8327
|
-
ImagePreviewFitMode["Resize"] = "Resize";
|
|
8328
|
-
ImagePreviewFitMode["Fill"] = "Fill";
|
|
8329
|
-
})(exports.ImagePreviewFitMode || (exports.ImagePreviewFitMode = {}));
|
|
8330
8458
|
(function (DesignElementType) {
|
|
8331
8459
|
DesignElementType["Product"] = "Product";
|
|
8332
8460
|
DesignElementType["Design"] = "Design";
|
|
@@ -8335,25 +8463,39 @@
|
|
|
8335
8463
|
DesignElementType["PrintArea"] = "PrintArea";
|
|
8336
8464
|
DesignElementType["Item"] = "Item";
|
|
8337
8465
|
})(exports.DesignElementType || (exports.DesignElementType = {}));
|
|
8338
|
-
(function (
|
|
8339
|
-
|
|
8340
|
-
|
|
8341
|
-
|
|
8342
|
-
|
|
8343
|
-
(
|
|
8344
|
-
|
|
8345
|
-
|
|
8466
|
+
(function (ImagePreviewFitMode) {
|
|
8467
|
+
ImagePreviewFitMode["Fit"] = "Fit";
|
|
8468
|
+
ImagePreviewFitMode["Shrink"] = "Shrink";
|
|
8469
|
+
ImagePreviewFitMode["Resize"] = "Resize";
|
|
8470
|
+
ImagePreviewFitMode["Fill"] = "Fill";
|
|
8471
|
+
})(exports.ImagePreviewFitMode || (exports.ImagePreviewFitMode = {}));
|
|
8472
|
+
(function (ImagePreviewFormat) {
|
|
8473
|
+
ImagePreviewFormat["Jpeg"] = "Jpeg";
|
|
8474
|
+
ImagePreviewFormat["Png"] = "Png";
|
|
8475
|
+
})(exports.ImagePreviewFormat || (exports.ImagePreviewFormat = {}));
|
|
8476
|
+
(function (ItemSourceType) {
|
|
8477
|
+
ItemSourceType["File"] = "File";
|
|
8478
|
+
ItemSourceType["ImageStorage"] = "ImageStorage";
|
|
8479
|
+
ItemSourceType["PrivateImageStorage"] = "PrivateImageStorage";
|
|
8480
|
+
})(exports.ItemSourceType || (exports.ItemSourceType = {}));
|
|
8346
8481
|
(function (ItemType) {
|
|
8347
8482
|
ItemType["Image"] = "Image";
|
|
8348
8483
|
ItemType["Shape"] = "Shape";
|
|
8349
8484
|
ItemType["Clipart"] = "Clipart";
|
|
8350
8485
|
ItemType["Group"] = "Group";
|
|
8351
8486
|
})(exports.ItemType || (exports.ItemType = {}));
|
|
8352
|
-
(function (
|
|
8353
|
-
|
|
8354
|
-
|
|
8355
|
-
|
|
8356
|
-
|
|
8487
|
+
(function (PlaceholderItemContentType) {
|
|
8488
|
+
PlaceholderItemContentType["Image"] = "Image";
|
|
8489
|
+
})(exports.PlaceholderItemContentType || (exports.PlaceholderItemContentType = {}));
|
|
8490
|
+
(function (ProductPatchType) {
|
|
8491
|
+
ProductPatchType["Undefined"] = "Undefined";
|
|
8492
|
+
ProductPatchType["ReplaceImageItemFile"] = "ReplaceImageItemFile";
|
|
8493
|
+
ProductPatchType["ReplacePlaceholderItemContent"] = "ReplacePlaceholderItemContent";
|
|
8494
|
+
})(exports.ProductPatchType || (exports.ProductPatchType = {}));
|
|
8495
|
+
(function (ProductPreviewFormat) {
|
|
8496
|
+
ProductPreviewFormat["Jpeg"] = "Jpeg";
|
|
8497
|
+
ProductPreviewFormat["Png"] = "Png";
|
|
8498
|
+
})(exports.ProductPreviewFormat || (exports.ProductPreviewFormat = {}));
|
|
8357
8499
|
(function (ProductProofFormat) {
|
|
8358
8500
|
ProductProofFormat["Jpeg"] = "Jpeg";
|
|
8359
8501
|
ProductProofFormat["Png"] = "Png";
|
|
@@ -8373,10 +8515,6 @@
|
|
|
8373
8515
|
ProductProofInterpolationMode["Anisotropic9"] = "Anisotropic9";
|
|
8374
8516
|
ProductProofInterpolationMode["Lanczos3"] = "Lanczos3";
|
|
8375
8517
|
})(exports.ProductProofInterpolationMode || (exports.ProductProofInterpolationMode = {}));
|
|
8376
|
-
(function (ProductPreviewFormat) {
|
|
8377
|
-
ProductPreviewFormat["Jpeg"] = "Jpeg";
|
|
8378
|
-
ProductPreviewFormat["Png"] = "Png";
|
|
8379
|
-
})(exports.ProductPreviewFormat || (exports.ProductPreviewFormat = {}));
|
|
8380
8518
|
var ApiException = /** @class */ (function (_super) {
|
|
8381
8519
|
__extends(ApiException, _super);
|
|
8382
8520
|
function ApiException(message, status, response, headers, result) {
|